/* Frontend */
.cfgs-wrapper {
    --cfgs-primary: #2271b1;
    --cfgs-button-bg: #2271b1;
    --cfgs-button-text: #ffffff;
    --cfgs-header-bg: #f6f7f7;
    --cfgs-header-text: #1d2327;
    --cfgs-border: #dddddd;
    --cfgs-radius: 8px;
    width: 100%;
    margin: 20px 0;
    box-sizing: border-box;
}

.cfgs-wrapper *,
.cfgs-wrapper *::before,
.cfgs-wrapper *::after {
    box-sizing: border-box;
}

.cfgs-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.cfgs-form-stacked .cfgs-form {
    flex-direction: column;
    align-items: stretch;
}

.cfgs-form select,
.cfgs-form button {
    min-height: 44px;
    padding: 9px 13px;
    font-size: 15px;
    border-radius: var(--cfgs-radius);
    line-height: 1.4;
}

.cfgs-form select {
    flex: 1 1 220px;
    min-width: 220px;
    max-width: 100%;
    border: 1px solid var(--cfgs-border);
    background: #fff;
}

.cfgs-form-stacked .cfgs-form select,
.cfgs-form-stacked .cfgs-form button {
    width: 100%;
}

.cfgs-form button,
.cfgs-apply {
    border: 0;
    background: var(--cfgs-button-bg);
    color: var(--cfgs-button-text) !important;
    cursor: pointer;
    text-decoration: none !important;
    border-radius: var(--cfgs-radius);
    font-weight: 600;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.cfgs-form button:hover,
.cfgs-apply:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cfgs-form button {
    padding: 10px 22px;
    flex: 0 0 auto;
}

.cfgs-form .cfgs-reset {
    background: transparent;
    color: var(--cfgs-primary) !important;
    border: 1px solid var(--cfgs-primary);
}

.cfgs-form .cfgs-reset:hover {
    background: rgba(0, 0, 0, 0.03);
}

.cfgs-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--cfgs-radius);
}

.cfgs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #fff;
    border: 1px solid var(--cfgs-border);
    border-radius: var(--cfgs-radius);
    overflow: hidden;
}

.cfgs-table th,
.cfgs-table td {
    border: 1px solid var(--cfgs-border);
    padding: 13px 14px;
    text-align: left;
    vertical-align: middle;
    word-break: break-word;
}

.cfgs-table th {
    background: var(--cfgs-header-bg);
    color: var(--cfgs-header-text);
    font-weight: 700;
    white-space: nowrap;
}

.cfgs-style-striped .cfgs-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.025);
}

.cfgs-style-boxed .cfgs-table {
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.cfgs-style-compact .cfgs-table th,
.cfgs-style-compact .cfgs-table td {
    padding: 8px 10px;
    font-size: 14px;
}

.cfgs-apply {
    display: inline-block;
    padding: 8px 15px;
    text-align: center;
    white-space: nowrap;
}

.cfgs-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cfgs-message {
    padding: 12px 14px;
    background: #f6f7f7;
    border-left: 4px solid var(--cfgs-primary);
    border-radius: var(--cfgs-radius);
}

.cfgs-warning {
    border-left-color: #d63638;
}

@media (max-width: 700px) {
    .cfgs-form select,
    .cfgs-form button {
        width: 100%;
        min-width: 100%;
    }

    .cfgs-table-wrap {
        overflow-x: visible;
    }

    .cfgs-table,
    .cfgs-table thead,
    .cfgs-table tbody,
    .cfgs-table th,
    .cfgs-table td,
    .cfgs-table tr {
        display: block;
        width: 100%;
    }

    .cfgs-table thead {
        display: none;
    }

    .cfgs-table {
        border: 0;
        background: transparent;
    }

    .cfgs-table tr {
        margin-bottom: 14px;
        border: 1px solid var(--cfgs-border);
        border-radius: var(--cfgs-radius);
        background: #fff;
        overflow: hidden;
    }

    .cfgs-table td {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        border: 0;
        border-bottom: 1px solid var(--cfgs-border);
        text-align: right;
    }

    .cfgs-table td:last-child {
        border-bottom: 0;
    }

    .cfgs-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--cfgs-header-text);
        text-align: left;
        flex: 0 0 42%;
    }

    .cfgs-apply {
        width: auto;
        min-width: 100px;
    }
}

/* Admin */
.cfgs-admin-wrap {
    max-width: 1180px;
}

.cfgs-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 18px 0 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 10px;
}

.cfgs-admin-header h1 {
    margin: 0 0 5px;
}

.cfgs-admin-header p {
    margin: 0;
    color: #646970;
}

.cfgs-shortcode-box {
    flex: 0 0 auto;
    padding: 12px 15px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 8px;
}

.cfgs-admin-card {
    margin: 0 0 20px;
    padding: 18px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 10px;
}

.cfgs-admin-card h2 {
    margin-top: 0;
}

.cfgs-responsive-table {
    width: 100%;
    overflow-x: auto;
}

.cfgs-admin-table {
    min-width: 680px;
    border-radius: 8px;
    overflow: hidden;
}

.cfgs-admin-table th {
    width: 230px;
    font-weight: 700;
}

.cfgs-admin-table td,
.cfgs-admin-table th {
    padding: 14px 16px;
    vertical-align: top;
}

.cfgs-admin-table input.regular-text,
.cfgs-admin-table textarea,
.cfgs-admin-table select {
    max-width: 100%;
}

@media (max-width: 782px) {
    .cfgs-admin-header {
        flex-direction: column;
        align-items: stretch;
    }

    .cfgs-shortcode-box {
        width: 100%;
    }

    .cfgs-admin-card {
        padding: 14px;
    }

    .cfgs-responsive-table {
        overflow-x: visible;
    }

    .cfgs-admin-table {
        min-width: 0;
    }

    .cfgs-admin-table,
    .cfgs-admin-table tbody,
    .cfgs-admin-table tr,
    .cfgs-admin-table th,
    .cfgs-admin-table td {
        display: block;
        width: 100%;
    }

    .cfgs-admin-table tr {
        border-bottom: 1px solid #dcdcde;
    }

    .cfgs-admin-table th {
        padding-bottom: 6px;
    }

    .cfgs-admin-table td {
        padding-top: 6px;
    }

    .cfgs-admin-table input[type="text"],
    .cfgs-admin-table input[type="url"],
    .cfgs-admin-table input[type="number"],
    .cfgs-admin-table textarea,
    .cfgs-admin-table select {
        width: 100%;
    }
}

/* Visitor Count Frontend + Backend Preview */
.cfgs-visitor-count {
    --cfgs-vc-primary: #2271b1;
    --cfgs-vc-bg: #ffffff;
    --cfgs-vc-text: #111827;
    --cfgs-vc-border: #dcdcde;
    --cfgs-vc-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--cfgs-vc-border);
    border-radius: var(--cfgs-vc-radius);
    background: var(--cfgs-vc-bg);
    color: var(--cfgs-vc-text);
    line-height: 1.2;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.cfgs-visitor-count *,
.cfgs-visitor-count *::before,
.cfgs-visitor-count *::after {
    box-sizing: border-box;
}

.cfgs-vc-label,
.cfgs-vc-prefix,
.cfgs-vc-suffix {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.cfgs-vc-number {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 800;
    font-size: clamp(20px, 4vw, 34px);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cfgs-vc-digit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0.78em;
    min-height: 1.15em;
}

.cfgs-vc-button {
    background: var(--cfgs-vc-primary);
    color: #fff;
    border-color: var(--cfgs-vc-primary);
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.18);
}
.cfgs-vc-button .cfgs-vc-digit { background: rgba(255,255,255,0.18); border-radius: 6px; padding: 4px; }

.cfgs-vc-scroll .cfgs-vc-digit,
.cfgs-vc-countdown .cfgs-vc-digit {
    overflow: hidden;
    border-radius: 6px;
    background: var(--cfgs-vc-primary);
    color: #fff;
    padding: 5px 7px;
    animation: cfgsVcScroll var(--cfgs-vc-speed, 650ms) ease both;
}
.cfgs-vc-countdown .cfgs-vc-digit { animation-name: cfgsVcCountdown; }

.cfgs-vc-meter,
.cfgs-vc-odometer {
    background: #1f2937;
    color: #f9fafb;
    border-color: #111827;
    box-shadow: inset 0 2px 8px rgba(255,255,255,0.08), inset 0 -4px 10px rgba(0,0,0,0.35);
}
.cfgs-vc-meter .cfgs-vc-digit,
.cfgs-vc-odometer .cfgs-vc-digit {
    background: #020617;
    border: 1px solid #374151;
    border-radius: 4px;
    color: #fff;
    padding: 6px 8px;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.08);
}

.cfgs-vc-flip .cfgs-vc-digit {
    background: linear-gradient(to bottom, var(--cfgs-vc-primary) 0 50%, rgba(0,0,0,0.18) 50% 100%);
    color: #fff;
    border-radius: 6px;
    padding: 6px 8px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.16);
}

.cfgs-vc-neon {
    background: #050816;
    color: #fff;
    border-color: var(--cfgs-vc-primary);
    box-shadow: 0 0 18px color-mix(in srgb, var(--cfgs-vc-primary) 55%, transparent);
}
.cfgs-vc-neon .cfgs-vc-number { color: var(--cfgs-vc-primary); text-shadow: 0 0 10px currentColor; }

.cfgs-vc-minimal { border: 0; background: transparent; padding: 4px; }
.cfgs-vc-minimal .cfgs-vc-number { color: var(--cfgs-vc-primary); }

.cfgs-vc-boxed .cfgs-vc-digit { border: 1px solid var(--cfgs-vc-border); border-radius: 6px; padding: 6px 8px; background: #f8fafc; }

.cfgs-vc-circular {
    width: 170px;
    min-height: 170px;
    border-radius: 50%;
    flex-direction: column;
    border-width: 6px;
    border-color: var(--cfgs-vc-primary);
}

.cfgs-vc-badge { padding: 7px 12px; border-radius: 999px; background: var(--cfgs-vc-primary); color: #fff; }
.cfgs-vc-badge .cfgs-vc-number { font-size: 20px; }

.cfgs-vc-glass {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.cfgs-vc-gradient {
    background: linear-gradient(135deg, var(--cfgs-vc-primary), #111827);
    color: #fff;
    border: 0;
}

.cfgs-vc-shadow { box-shadow: 0 14px 30px rgba(0,0,0,0.14); border: 0; }
.cfgs-vc-outline { border: 2px solid var(--cfgs-vc-primary); background: transparent; }
.cfgs-vc-outline .cfgs-vc-number { color: var(--cfgs-vc-primary); }

.cfgs-vc-labeltop { flex-direction: column; align-items: center; }
.cfgs-vc-labeltop .cfgs-vc-label { order: -1; color: var(--cfgs-vc-primary); }

.cfgs-vc-labelleft { justify-content: flex-start; }
.cfgs-vc-labelleft .cfgs-vc-label { background: var(--cfgs-vc-primary); color: #fff; padding: 8px 10px; border-radius: calc(var(--cfgs-vc-radius) - 4px); }

.cfgs-vc-capsule { border-radius: 999px; padding-inline: 22px; }
.cfgs-vc-capsule .cfgs-vc-number { color: var(--cfgs-vc-primary); }

.cfgs-vc-ticker {
    background: #111827;
    color: #fff;
    border: 0;
    overflow: hidden;
    position: relative;
}
.cfgs-vc-ticker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: inline-block; }

.cfgs-vc-terminal {
    background: #020617;
    color: #22c55e;
    border-color: #14532d;
    font-family: Consolas, Monaco, monospace;
}
.cfgs-vc-terminal .cfgs-vc-label::before { content: '> '; }

.cfgs-vc-animated { animation: cfgsVcPop var(--cfgs-vc-speed, 650ms) ease both; }

@keyframes cfgsVcPop {
    from { transform: scale(0.96); opacity: 0.72; }
    to { transform: scale(1); opacity: 1; }
}
@keyframes cfgsVcScroll {
    from { transform: translateY(-12px); opacity: 0.25; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes cfgsVcCountdown {
    from { transform: translateY(12px); opacity: 0.25; }
    to { transform: translateY(0); opacity: 1; }
}

.cfgs-color-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 14px;
}

.cfgs-color-grid label {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.cfgs-preview-table td:nth-child(2) {
    min-width: 260px;
}

@media (max-width: 782px) {
    .cfgs-color-grid {
        grid-template-columns: 1fr;
    }

    .cfgs-preview-table thead {
        display: none;
    }

    .cfgs-preview-table,
    .cfgs-preview-table tbody,
    .cfgs-preview-table tr,
    .cfgs-preview-table th,
    .cfgs-preview-table td {
        display: block;
        width: 100%;
    }

    .cfgs-preview-table tr {
        margin-bottom: 14px;
        border: 1px solid #dcdcde;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
    }

    .cfgs-preview-table td {
        border: 0;
        border-bottom: 1px solid #dcdcde;
    }

    .cfgs-preview-table td:last-child {
        border-bottom: 0;
    }

    .cfgs-preview-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 7px;
        font-weight: 700;
    }

    .cfgs-visitor-count {
        width: 100%;
    }
}

/* Course table manager */
.cfgs-card-grid {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}
.cfgs-card-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cfgs-columns-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    padding: 14px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
    max-height: 240px;
    overflow: auto;
}
.cfgs-columns-box label {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
}
.cfgs-column-status {
    display: inline-block;
    margin-left: 10px;
    font-weight: 600;
}
.cfgs-action-row {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-wrap: wrap;
}
.cfgs-inline-form {
    display: inline;
    margin: 0;
}
.cfgs-status-active,
.cfgs-status-inactive {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.cfgs-status-active {
    background: #dcfce7;
    color: #166534;
}
.cfgs-status-inactive {
    background: #fee2e2;
    color: #991b1b;
}
.cfgs-generic-table-wrap {
    overflow-x: auto;
}
.cfgs-course-table-module .cfgs-table {
    width: 100%;
}

@media (max-width: 782px) {
    .cfgs-card-grid-two {
        grid-template-columns: 1fr;
    }
    .cfgs-saved-tables,
    .cfgs-saved-tables tbody,
    .cfgs-saved-tables tr,
    .cfgs-saved-tables th,
    .cfgs-saved-tables td {
        display: block;
        width: 100%;
    }
    .cfgs-saved-tables thead {
        display: none;
    }
    .cfgs-saved-tables tr {
        margin-bottom: 12px;
        border: 1px solid #dcdcde;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
    }
    .cfgs-saved-tables td {
        border-bottom: 1px solid #dcdcde;
    }
    .cfgs-saved-tables td:last-child {
        border-bottom: 0;
    }
    .cfgs-saved-tables td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        font-weight: 700;
    }
    .cfgs-column-status {
        display: block;
        margin: 10px 0 0;
    }
}

/* Institute ERP dashboard and Course List full-width styling */
.cfgs-admin-wrap {
    max-width: none;
    width: calc(100% - 20px);
}
.cfgs-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    width: 100%;
}
.cfgs-dashboard-card {
    min-height: 155px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.cfgs-card-grid-two {
    grid-template-columns: 1fr 1fr;
    width: 100%;
}
.cfgs-admin-card,
.cfgs-responsive-table,
.cfgs-admin-table,
.cfgs-saved-tables {
    width: 100%;
}
.cfgs-admin-table {
    min-width: 100%;
}
.cfgs-course-style-card,
.cfgs-admin-wrap .cfgs-admin-card {
    background: var(--cfgs-course-card-bg, #fff);
    border-color: var(--cfgs-course-border, #dcdcde);
    border-radius: var(--cfgs-course-radius, 12px);
    color: var(--cfgs-course-text, #1d2327);
    font-family: var(--cfgs-course-font, -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);
    font-size: var(--cfgs-course-size, 15px);
    font-weight: var(--cfgs-course-weight, 400);
}
.cfgs-admin-wrap .cfgs-admin-table th,
.cfgs-admin-wrap .cfgs-admin-table thead th {
    background: var(--cfgs-course-header-bg, #2271b1);
    color: var(--cfgs-course-header-text, #fff);
    border-color: var(--cfgs-course-border, #dcdcde);
}
.cfgs-admin-wrap .cfgs-admin-table td {
    background: var(--cfgs-course-row-bg, #fff);
    color: var(--cfgs-course-text, #1d2327);
    border-color: var(--cfgs-course-border, #dcdcde);
}
.cfgs-admin-wrap .cfgs-admin-table tbody tr:nth-child(even) td {
    background: var(--cfgs-course-row-alt, #f6f7f7);
}
.cfgs-shortcode-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.cfgs-shortcode-copy code {
    padding: 7px 10px;
    border-radius: 6px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
}
.cfgs-copy-shortcode.cfgs-copied,
.cfgs-copy-shortcode.cfgs-copied:hover {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: #fff !important;
}
.cfgs-course-table-module,
.cfgs-course-list-table {
    width: 100%;
    color: var(--cfgs-course-text, #1d2327);
    font-family: var(--cfgs-course-font, -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);
    font-size: var(--cfgs-course-size, 15px);
    font-weight: var(--cfgs-course-weight, 400);
}
.cfgs-course-table-module .cfgs-table,
.cfgs-course-list-table .cfgs-table {
    width: 100%;
    border-color: var(--cfgs-course-border, #dcdcde);
    border-radius: var(--cfgs-course-radius, 12px);
}
.cfgs-course-table-module .cfgs-table th,
.cfgs-course-list-table .cfgs-table th {
    background: var(--cfgs-course-header-bg, #2271b1);
    color: var(--cfgs-course-header-text, #fff);
    border-color: var(--cfgs-course-border, #dcdcde);
}
.cfgs-course-table-module .cfgs-table td,
.cfgs-course-list-table .cfgs-table td {
    background: var(--cfgs-course-row-bg, #fff);
    color: var(--cfgs-course-text, #1d2327);
    border-color: var(--cfgs-course-border, #dcdcde);
}
.cfgs-course-table-module .cfgs-table tbody tr:nth-child(even) td,
.cfgs-course-list-table .cfgs-table tbody tr:nth-child(even) td {
    background: var(--cfgs-course-row-alt, #f6f7f7);
}
.cfgs-course-list-table .button,
.cfgs-course-list-table .cfgs-apply {
    background: var(--cfgs-course-button-bg, #2271b1);
    color: var(--cfgs-course-button-text, #fff) !important;
}
.cfgs-course-combo-classic-blue .cfgs-table { box-shadow: 0 12px 30px rgba(34,113,177,0.08); }
.cfgs-course-combo-emerald-clean .cfgs-table { border-width: 2px; }
.cfgs-course-combo-purple-soft .cfgs-table th { letter-spacing: .02em; }
.cfgs-course-combo-orange-warm .cfgs-table tbody tr:hover td { filter: brightness(0.98); }
.cfgs-course-combo-dark-premium .cfgs-table { box-shadow: 0 14px 35px rgba(0,0,0,0.16); }
.cfgs-course-combo-grey-minimal .cfgs-table th { text-transform: uppercase; font-size: 12px; }
.cfgs-course-combo-red-modern .cfgs-table { border-left-width: 5px; }
.cfgs-course-combo-teal-corporate .cfgs-table { border-collapse: separate; border-spacing: 0; }

@media (max-width: 1100px) {
    .cfgs-card-grid-two {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 782px) {
    .cfgs-admin-wrap {
        width: calc(100% - 12px);
    }
    .cfgs-shortcode-copy {
        width: 100%;
    }
    .cfgs-shortcode-copy code,
    .cfgs-shortcode-copy .button {
        width: 100%;
        text-align: center;
    }
}

/* v1.6 dashboard spacing, five-card sections, institute filter */
.cfgs-admin-card {
    margin-bottom: 28px;
}
.cfgs-card-grid {
    gap: 28px;
    margin-bottom: 28px;
}
.cfgs-dashboard-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    margin-top: 18px;
}
.cfgs-dashboard-card {
    margin-bottom: 0;
}
.cfgs-card-grid-two {
    gap: 28px;
}
.cfgs-admin-wrap .cfgs-admin-card + .cfgs-admin-card {
    margin-top: 28px;
}
.cfgs-course-style-card select#course_table_style {
    min-width: 260px;
}
.cfgs-institute-filter-module .cfgs-institute-form {
    margin-bottom: 18px;
}
.cfgs-institute-filter-module .cfgs-table-wrap {
    width: 100%;
}
.cfgs-institute-filter-module .cfgs-table {
    width: 100%;
}
.cfgs-admin-wrap .cfgs-columns-box {
    margin-top: 10px;
}

@media (max-width: 1500px) {
    .cfgs-dashboard-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 1200px) {
    .cfgs-dashboard-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .cfgs-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    .cfgs-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .cfgs-admin-card {
        margin-bottom: 20px;
    }
    .cfgs-card-grid {
        gap: 20px;
    }
}

/* v1.7 dashboard/card spacing, equal cards, separate course sections, student verification */
.cfgs-admin-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
    margin: 24px 0 30px;
    align-items: stretch;
}
.cfgs-course-table-sections,
.cfgs-student-sections {
    grid-template-columns: 1fr;
}
.cfgs-admin-section .cfgs-admin-card,
.cfgs-equal-card {
    min-height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.cfgs-equal-card .cfgs-admin-form {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.cfgs-equal-card .submit {
    margin-top: auto;
}
.cfgs-dashboard-grid {
    gap: 30px !important;
    grid-auto-rows: 1fr;
}
.cfgs-dashboard-card {
    height: 100%;
    min-height: 185px;
    padding: 22px;
    gap: 14px;
}
.cfgs-dashboard-card h2 {
    min-height: 2.2em;
}
.cfgs-dashboard-card p {
    flex: 1 1 auto;
}
.cfgs-admin-card {
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.cfgs-student-search-form input[type="text"],
.cfgs-form input[type="text"] {
    min-height: 44px;
    padding: 9px 13px;
    font-size: 15px;
    border-radius: var(--cfgs-radius);
    border: 1px solid var(--cfgs-border);
    flex: 1 1 260px;
    min-width: 240px;
    max-width: 100%;
}
.cfgs-student-result-print {
    width: 100%;
    border: 1px solid var(--cfgs-border);
    border-radius: var(--cfgs-radius);
    background: #fff;
    overflow: hidden;
}
.cfgs-print-section {
    padding: 18px;
    border-bottom: 1px solid var(--cfgs-border);
}
.cfgs-print-section:last-child {
    border-bottom: 0;
}
.cfgs-print-logo {
    text-align: center;
}
.cfgs-print-logo img,
.cfgs-print-logo .custom-logo {
    max-width: 180px;
    height: auto;
}
.cfgs-print-header {
    text-align: center;
    font-weight: 700;
    font-size: 20px;
}
.cfgs-student-result-table th {
    width: 35%;
    background: var(--cfgs-header-bg);
    color: var(--cfgs-header-text);
}
.cfgs-student-photo {
    width: 110px;
    height: 130px;
    object-fit: cover;
    border: 1px solid var(--cfgs-border);
    border-radius: 8px;
    background: #f6f7f7;
}
.cfgs-empty-photo {
    display: inline-flex;
    padding: 10px 12px;
    background: #f6f7f7;
    border-radius: 8px;
    color: #646970;
}
.cfgs-print-button {
    background: #111827 !important;
    color: #fff !important;
}
@media (min-width: 1200px) {
    .cfgs-student-sections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 700px) {
    .cfgs-student-search-form input[type="text"] {
        width: 100%;
        min-width: 100%;
    }
    .cfgs-student-result-table th,
    .cfgs-student-result-table td {
        display: flex;
        width: 100%;
    }
    .cfgs-print-header {
        font-size: 17px;
    }
}
@media print {
    body * {
        visibility: hidden !important;
    }
    .cfgs-student-result-print,
    .cfgs-student-result-print * {
        visibility: visible !important;
    }
    .cfgs-student-result-print {
        position: absolute !important;
        left: 0;
        top: 0;
        width: 100% !important;
        border: 0 !important;
        box-shadow: none !important;
    }
    .cfgs-student-result-print .cfgs-table,
    .cfgs-student-result-print .cfgs-table th,
    .cfgs-student-result-print .cfgs-table td {
        border-color: #222 !important;
    }
    .cfgs-student-result-print a::after {
        content: '' !important;
    }
}

/* v1.8 refinements: exact dashboard/card spacing, student result controls and styling */
.cfgs-dashboard-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 28px !important;
    align-items: stretch !important;
}
.cfgs-dashboard-card {
    min-height: 210px !important;
    height: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
}
.cfgs-course-table-sections {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    align-items: stretch !important;
}
.cfgs-course-table-sections .cfgs-admin-card,
.cfgs-student-sections .cfgs-admin-card {
    width: 100% !important;
    box-sizing: border-box !important;
}
.cfgs-student-result-print {
    font-family: var(--cfgs-student-font-family, inherit);
    font-weight: var(--cfgs-student-font-weight, 400);
    font-size: var(--cfgs-student-font-size, 15px);
    color: var(--cfgs-student-text, #1d2327);
    border-color: var(--cfgs-student-border, var(--cfgs-border));
    border-radius: var(--cfgs-student-radius, var(--cfgs-radius));
}
.cfgs-student-result-table {
    color: var(--cfgs-student-text, #1d2327);
    font-family: var(--cfgs-student-font-family, inherit);
    font-weight: var(--cfgs-student-font-weight, 400);
    font-size: var(--cfgs-student-font-size, 15px);
}
.cfgs-student-result-table th,
.cfgs-student-result-table td {
    border-color: var(--cfgs-student-border, var(--cfgs-border)) !important;
}
.cfgs-student-result-table th {
    background: var(--cfgs-student-header-bg, var(--cfgs-header-bg));
    color: var(--cfgs-student-header-text, var(--cfgs-header-text));
}
.cfgs-student-result-table td {
    background: var(--cfgs-student-row-bg, #fff);
    color: var(--cfgs-student-text, #1d2327);
}
.cfgs-student-style-striped .cfgs-student-result-table tr:nth-child(even) td {
    background: var(--cfgs-student-row-alt-bg, #f6f7f7);
}
.cfgs-student-style-boxed .cfgs-student-result-print {
    box-shadow: 0 14px 34px rgba(0,0,0,0.08);
    padding: 10px;
}
.cfgs-student-style-minimal .cfgs-student-result-print {
    border: 0;
    border-radius: 0;
}
.cfgs-student-style-minimal .cfgs-student-result-table th,
.cfgs-student-style-minimal .cfgs-student-result-table td {
    border-left: 0 !important;
    border-right: 0 !important;
}
.cfgs-student-style-dark-header .cfgs-student-result-table th {
    background: #111827;
    color: #ffffff;
}
.cfgs-student-style-soft .cfgs-student-result-print {
    background: #f8fafc;
    padding: 12px;
}
.cfgs-student-style-soft .cfgs-student-result-table th {
    background: #eef2ff;
    color: #1e1b4b;
}
.cfgs-print-only {
    display: none;
}
.cfgs-student-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 18px;
    border-top: 1px solid var(--cfgs-student-border, var(--cfgs-border));
    background: #fff;
}
.cfgs-student-result-actions[hidden] {
    display: none !important;
}
@media (max-width: 1400px) {
    .cfgs-dashboard-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 1100px) {
    .cfgs-dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 782px) {
    .cfgs-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .cfgs-student-result-actions { justify-content: stretch; }
    .cfgs-student-result-actions button { flex: 1 1 140px; }
}
@media (max-width: 520px) {
    .cfgs-dashboard-grid { grid-template-columns: 1fr !important; }
}
@media print {
    .cfgs-print-only {
        display: block !important;
    }
    .cfgs-student-result-actions,
    .cfgs-student-search-form,
    .cfgs-no-results,
    .cfgs-warning {
        display: none !important;
    }
    .cfgs-student-result-print {
        font-family: var(--cfgs-student-font-family, inherit) !important;
        font-size: var(--cfgs-student-font-size, 15px) !important;
        color: #000 !important;
    }
}

/* v1.9 dashboard icon boxes, student section layout, print A4 refinements */
.cfgs-icon-dashboard-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 30px !important;
    align-items: stretch !important;
    margin-top: 24px !important;
}
.cfgs-dashboard-icon-box {
    min-height: 150px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    text-decoration: none;
    background: #ffffff;
    color: #1d2327;
    border: 1px solid #dcdcde;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    padding: 22px 14px;
}
.cfgs-dashboard-icon-box:hover,
.cfgs-dashboard-icon-box:focus {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(0,0,0,0.10);
    border-color: var(--cfgs-primary, #2271b1);
    color: var(--cfgs-primary, #2271b1);
    outline: none;
}
.cfgs-dashboard-icon-box .dashicons {
    width: 46px;
    height: 46px;
    font-size: 46px;
    line-height: 46px;
    color: var(--cfgs-primary, #2271b1);
}
.cfgs-dashboard-icon-box strong {
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
}
.cfgs-student-admin-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin: 24px 0 32px;
    width: 100%;
}
.cfgs-student-section-card {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 32px !important;
}
.cfgs-student-admin-stack .cfgs-student-section-card {
    margin-bottom: 0 !important;
}
.cfgs-admin-wrap .button.button-primary,
.cfgs-admin-wrap .button-primary,
.cfgs-admin-wrap button.button-primary,
.cfgs-admin-wrap .cfgs-copy-shortcode,
.cfgs-action-row .button:not(.button-link-delete) {
    background: var(--cfgs-primary, #2271b1) !important;
    border-color: var(--cfgs-primary, #2271b1) !important;
    color: #ffffff !important;
}
.cfgs-admin-wrap .button.button-primary:hover,
.cfgs-admin-wrap .button-primary:hover,
.cfgs-admin-wrap button.button-primary:hover,
.cfgs-admin-wrap .cfgs-copy-shortcode:hover,
.cfgs-action-row .button:not(.button-link-delete):hover {
    filter: brightness(0.92);
}
.cfgs-student-result-actions button,
.cfgs-student-search-form button {
    background: var(--cfgs-button-bg, var(--cfgs-primary, #2271b1)) !important;
    border-color: var(--cfgs-button-bg, var(--cfgs-primary, #2271b1)) !important;
    color: var(--cfgs-button-text, #ffffff) !important;
}
.cfgs-student-style-royal .cfgs-student-result-print { box-shadow: 0 12px 30px rgba(79,70,229,0.12); }
.cfgs-student-style-gold .cfgs-student-result-print { box-shadow: 0 12px 30px rgba(180,83,9,0.12); }
.cfgs-student-style-gold .cfgs-student-result-table th { background: #b45309; color: #fff; }
.cfgs-student-style-royal .cfgs-student-result-table th { background: #4f46e5; color: #fff; }
.cfgs-student-result-print .cfgs-print-only:empty { display: none !important; }
@media (max-width: 1400px) { .cfgs-icon-dashboard-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
@media (max-width: 1100px) { .cfgs-icon-dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 782px) { .cfgs-icon-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 20px !important; } }
@media (max-width: 520px) { .cfgs-icon-dashboard-grid { grid-template-columns: 1fr !important; } }

@media print {
    @page { size: A4 portrait; margin: 10mm; }
    html, body {
        width: 210mm !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }
    body * { visibility: hidden !important; }
    .cfgs-student-result-print,
    .cfgs-student-result-print * { visibility: visible !important; }
    .cfgs-student-result-print {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        right: 0 !important;
        width: 190mm !important;
        max-width: 190mm !important;
        min-height: 0 !important;
        margin: 0 auto !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        font-size: min(var(--cfgs-student-font-size, 15px), 14px) !important;
        line-height: 1.25 !important;
    }
    .cfgs-print-only { display: block !important; }
    .cfgs-print-section {
        padding: 5mm 3mm !important;
        border-bottom: 1px solid #d1d5db !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    .cfgs-print-logo { padding-top: 0 !important; padding-bottom: 3mm !important; }
    .cfgs-print-logo img { max-width: 35mm !important; max-height: 22mm !important; object-fit: contain !important; }
    .cfgs-print-header { font-size: 16px !important; padding: 3mm !important; }
    .cfgs-print-header p,
    .cfgs-print-above-footer p,
    .cfgs-print-footer p { margin: 0 0 2mm !important; }
    .cfgs-print-header p:last-child,
    .cfgs-print-above-footer p:last-child,
    .cfgs-print-footer p:last-child { margin-bottom: 0 !important; }
    .cfgs-print-result { padding: 3mm 0 !important; }
    .cfgs-student-photo { width: 28mm !important; height: 34mm !important; }
    .cfgs-student-result-table { width: 100% !important; border-collapse: collapse !important; font-size: 12.5px !important; }
    .cfgs-student-result-table th,
    .cfgs-student-result-table td { padding: 6px 8px !important; border: 1px solid #333 !important; }
    .cfgs-student-result-table th { width: 38% !important; }
    .cfgs-student-result-actions,
    .cfgs-student-search-form,
    .cfgs-no-results,
    .cfgs-warning { display: none !important; }
}

/* v2.0 Institute ERP Marquee module */
.cfgs-marquee-form-card,
.cfgs-full-width-card {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    margin: 0 0 32px !important;
}
.cfgs-marquee-admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 20px 24px;
    width: 100%;
    align-items: end;
}
.cfgs-marquee-admin-grid label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-weight: 600;
}
.cfgs-marquee-admin-grid input,
.cfgs-marquee-admin-grid select,
.cfgs-marquee-admin-grid textarea {
    max-width: 100%;
    width: 100%;
}
.cfgs-marquee-admin-grid .cfgs-wide-field {
    grid-column: 1 / -1;
}
.cfgs-marquee-shortcode-wrap {
    display: grid;
    gap: 16px;
    width: 100%;
}
.cfgs-marquee {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    min-height: var(--cfgs-marquee-height, 52px);
    border-radius: var(--cfgs-marquee-radius, 10px);
    border: 1px solid var(--cfgs-marquee-border, #2271b1);
    background: var(--cfgs-marquee-bg, #2271b1);
    color: var(--cfgs-marquee-text, #ffffff);
    font-family: var(--cfgs-marquee-family, inherit);
    font-size: var(--cfgs-marquee-font-size, 16px);
    font-weight: var(--cfgs-marquee-weight, 600);
    line-height: 1.4;
    padding: var(--cfgs-marquee-padding, 12px);
    display: flex;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
}
.cfgs-marquee-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    min-width: max-content;
    animation-duration: var(--cfgs-marquee-speed, 18s);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}
.cfgs-marquee-pause-hover:hover .cfgs-marquee-track,
.cfgs-marquee-effect-pause.cfgs-marquee-pause-hover:hover .cfgs-marquee-track { animation-play-state: paused; }
.cfgs-marquee-dir-left .cfgs-marquee-track { animation-name: cfgs-marquee-left; }
.cfgs-marquee-dir-right .cfgs-marquee-track { animation-name: cfgs-marquee-right; }
.cfgs-marquee-dir-up .cfgs-marquee-track,
.cfgs-marquee-dir-down .cfgs-marquee-track { display: flex; flex-direction: column; align-items: flex-start; white-space: normal; width: 100%; }
.cfgs-marquee-dir-up .cfgs-marquee-track { animation-name: cfgs-marquee-up; }
.cfgs-marquee-dir-down .cfgs-marquee-track { animation-name: cfgs-marquee-down; }
.cfgs-marquee-effect-bounce .cfgs-marquee-track { animation-timing-function: ease-in-out; animation-direction: alternate; }
.cfgs-marquee-effect-pulse { animation: cfgs-marquee-pulse 1.6s ease-in-out infinite; }
.cfgs-marquee-effect-blink .cfgs-marquee-item { animation: cfgs-marquee-blink 1.1s steps(2, start) infinite; }
.cfgs-marquee-effect-wave .cfgs-marquee-track { animation-timing-function: cubic-bezier(.45,0,.55,1); }
.cfgs-marquee-effect-meter .cfgs-marquee-track { font-family: Consolas, 'Courier New', monospace; letter-spacing: 2px; }
.cfgs-marquee-style-gradient { background: linear-gradient(90deg, var(--cfgs-marquee-bg), var(--cfgs-marquee-border)); }
.cfgs-marquee-style-glass { background: rgba(255,255,255,.36); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 12px 30px rgba(15,23,42,.12); }
.cfgs-marquee-style-outline { background: transparent !important; border-width: 2px; }
.cfgs-marquee-style-neon { box-shadow: 0 0 16px var(--cfgs-marquee-border), inset 0 0 10px rgba(255,255,255,.08); text-shadow: 0 0 7px currentColor; }
.cfgs-marquee-style-ribbon { border-radius: 0; box-shadow: 8px 8px 0 rgba(0,0,0,.08); }
.cfgs-marquee-style-badge { border-style: dashed; }
.cfgs-marquee-style-shadow { box-shadow: 0 14px 35px rgba(37,99,235,.16); }
.cfgs-marquee-style-rounded { border-radius: 999px; }
.cfgs-marquee-style-dark { box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.cfgs-marquee-style-meter { font-family: Consolas, 'Courier New', monospace; letter-spacing: 1px; }
.cfgs-marquee-style-split:before,
.cfgs-marquee-style-news:before {
    content: 'NEWS';
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    padding: 0 14px;
    margin: calc(var(--cfgs-marquee-padding, 12px) * -1) 14px calc(var(--cfgs-marquee-padding, 12px) * -1) calc(var(--cfgs-marquee-padding, 12px) * -1);
    background: var(--cfgs-marquee-border, #2271b1);
    color: #fff;
    font-size: 12px;
    letter-spacing: .08em;
}
.cfgs-marquee-style-split:before { content: 'INFO'; }
.cfgs-marquee-admin-preview { min-width: 280px; }
@keyframes cfgs-marquee-left { from { transform: translateX(70%); } to { transform: translateX(-100%); } }
@keyframes cfgs-marquee-right { from { transform: translateX(-100%); } to { transform: translateX(70%); } }
@keyframes cfgs-marquee-up { from { transform: translateY(65%); } to { transform: translateY(-100%); } }
@keyframes cfgs-marquee-down { from { transform: translateY(-100%); } to { transform: translateY(65%); } }
@keyframes cfgs-marquee-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.01); } }
@keyframes cfgs-marquee-blink { 50% { opacity: .45; } }
@media (max-width: 1100px) {
    .cfgs-marquee-admin-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
}
@media (max-width: 700px) {
    .cfgs-marquee-admin-grid { grid-template-columns: 1fr; }
    .cfgs-marquee { font-size: min(var(--cfgs-marquee-font-size, 16px), 16px); }
}

/* v2.1 student print styling and institute verification */
.cfgs-print-logo img,
.cfgs-print-logo .custom-logo {
    width: var(--cfgs-logo-width, 140px) !important;
    height: var(--cfgs-logo-height, 80px) !important;
    max-width: 100% !important;
    object-fit: contain !important;
}
.cfgs-print-header {
    font-family: var(--cfgs-print-header-family, inherit) !important;
    font-size: var(--cfgs-print-header-size, 20px) !important;
    font-weight: var(--cfgs-print-header-weight, 700) !important;
}
.cfgs-print-above-footer {
    font-family: var(--cfgs-print-above-family, inherit) !important;
    font-size: var(--cfgs-print-above-size, 14px) !important;
    font-weight: var(--cfgs-print-above-weight, 400) !important;
}
.cfgs-print-footer {
    font-family: var(--cfgs-print-footer-family, inherit) !important;
    font-size: var(--cfgs-print-footer-size, 13px) !important;
    font-weight: var(--cfgs-print-footer-weight, 400) !important;
}
.cfgs-preview-box {
    margin-top: 18px;
}
.cfgs-institute-verification {
    width: 100%;
    margin: 0;
}
.cfgs-institute-verification-form {
    display: flex;
    width: 100%;
    gap: 10px;
    margin: 0 0 18px 0;
    padding: 0;
    align-items: stretch;
}
.cfgs-institute-verification-form input[type="text"] {
    flex: 1 1 auto;
    width: 100%;
    min-height: 48px;
    margin: 0 !important;
    padding: 10px 14px;
    border: 1px solid var(--cfgs-border, #dcdcde);
    border-radius: var(--cfgs-radius, 8px);
    box-sizing: border-box;
}
.cfgs-institute-verification-form button {
    flex: 0 0 180px;
    min-height: 48px;
    margin: 0 !important;
    border-radius: var(--cfgs-radius, 8px);
    background: var(--cfgs-button-bg, var(--cfgs-primary, #2271b1));
    color: var(--cfgs-button-text, #fff);
    border: 1px solid var(--cfgs-button-bg, var(--cfgs-primary, #2271b1));
    cursor: pointer;
    font-weight: 700;
}
.cfgs-institute-verification-result {
    width: 100%;
    margin-top: 14px;
}
.cfgs-institute-verification-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}
.cfgs-institute-verification-table th {
    width: 30% !important;
    background: var(--cfgs-header-bg, #f6f7f7);
    color: var(--cfgs-header-text, #1d2327);
    text-align: left;
    font-weight: 700;
}
.cfgs-institute-verification-table td {
    width: 70% !important;
    background: #fff;
}
.cfgs-status-value {
    font-weight: 800;
    letter-spacing: .04em;
}
.cfgs-status-active { color: #047857 !important; }
.cfgs-status-inactive { color: #92400e !important; }
.cfgs-status-suspend { color: #b91c1c !important; }
.cfgs-institute-verification-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 14px;
}
.cfgs-institute-verification-actions button {
    background: var(--cfgs-button-bg, var(--cfgs-primary, #2271b1));
    color: var(--cfgs-button-text, #fff);
    border: 1px solid var(--cfgs-button-bg, var(--cfgs-primary, #2271b1));
    border-radius: var(--cfgs-radius, 8px);
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 700;
}
@media (max-width: 640px) {
    .cfgs-institute-verification-form {
        flex-direction: column;
    }
    .cfgs-institute-verification-form button {
        flex-basis: auto;
        width: 100%;
    }
    .cfgs-institute-verification-table th,
    .cfgs-institute-verification-table td {
        display: table-cell !important;
        width: auto !important;
        font-size: 13px;
        word-break: break-word;
    }
}
@media print {
    .cfgs-student-result-print {
        border: 1px solid var(--cfgs-student-border, #d1d5db) !important;
        border-radius: var(--cfgs-student-radius, 12px) !important;
        box-shadow: 0 6px 18px rgba(0,0,0,0.08) !important;
        overflow: hidden !important;
        background: #fff !important;
        padding: 0 !important;
    }
    .cfgs-print-logo img { width: var(--cfgs-logo-width, 140px) !important; height: var(--cfgs-logo-height, 80px) !important; max-width: 60mm !important; max-height: 30mm !important; }
    .cfgs-print-header { font-family: var(--cfgs-print-header-family, inherit) !important; font-size: min(var(--cfgs-print-header-size, 20px), 18px) !important; font-weight: var(--cfgs-print-header-weight, 700) !important; }
    .cfgs-print-above-footer { font-family: var(--cfgs-print-above-family, inherit) !important; font-size: min(var(--cfgs-print-above-size, 14px), 13px) !important; font-weight: var(--cfgs-print-above-weight, 400) !important; }
    .cfgs-print-footer { font-family: var(--cfgs-print-footer-family, inherit) !important; font-size: min(var(--cfgs-print-footer-size, 13px), 12px) !important; font-weight: var(--cfgs-print-footer-weight, 400) !important; }
    .cfgs-print-result .cfgs-table-wrap { border-radius: var(--cfgs-student-radius, 12px) !important; overflow: hidden !important; }
    .cfgs-student-result-table th { background: var(--cfgs-student-header-bg, #2271b1) !important; color: var(--cfgs-student-header-text, #fff) !important; }
    .cfgs-student-result-table td { background: var(--cfgs-student-row-bg, #fff) !important; color: var(--cfgs-student-text, #1d2327) !important; }
}

/* v2.2 Institute verification mapping + continuous marquee updates */
.cfgs-mapping-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px;
    width: 100%;
}
.cfgs-mapping-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 700;
}
.cfgs-mapping-grid select { width: 100%; max-width: 100%; }
.cfgs-marquee-track { gap: 0; }
.cfgs-marquee-group {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: max-content;
}
.cfgs-marquee-dir-up .cfgs-marquee-group,
.cfgs-marquee-dir-down .cfgs-marquee-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.cfgs-marquee-dir-up .cfgs-marquee-track,
.cfgs-marquee-dir-down .cfgs-marquee-track { min-height: max-content; }
@keyframes cfgs-marquee-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes cfgs-marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes cfgs-marquee-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes cfgs-marquee-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.cfgs-institute-verification-suggestions {
    width: 100%;
    margin: 0 0 14px 0;
    border: 1px solid var(--cfgs-border, #dcdcde);
    border-radius: var(--cfgs-radius, 8px);
    overflow: hidden;
    background: #fff;
}
.cfgs-suggestions-title {
    padding: 10px 12px;
    font-weight: 800;
    background: var(--cfgs-header-bg, #f6f7f7);
    color: var(--cfgs-header-text, #1d2327);
}
.cfgs-institute-verification-suggestions button {
    width: 100%;
    border: 0;
    border-top: 1px solid var(--cfgs-border, #dcdcde);
    background: #fff;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    text-align: left;
    cursor: pointer;
}
.cfgs-institute-verification-suggestions button:hover { background: #f8fafc; }
.cfgs-institute-verification-suggestions strong { font-weight: 800; }
.cfgs-institute-verification-suggestions span { color: #475569; font-family: monospace; }
.cfgs-institute-verification-suggestions em { font-style: normal; font-size: 12px; font-weight: 800; }
.cfgs-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff !important;
    font-weight: 900;
    letter-spacing: .05em;
    line-height: 1;
}
.cfgs-status-active { background: #16a34a !important; color: #fff !important; }
.cfgs-status-inactive { background: #f59e0b !important; color: #fff !important; }
.cfgs-status-suspend,
.cfgs-status-suspended { background: #dc2626 !important; color: #fff !important; }
.cfgs-institute-verification-table th { width: 30% !important; }
.cfgs-institute-verification-table td { width: 70% !important; }
@media (max-width: 700px) {
    .cfgs-mapping-grid { grid-template-columns: 1fr; }
    .cfgs-institute-verification-suggestions button { grid-template-columns: 1fr; }
}

/* v2.3 marquee line breaks, institute print, gallery */
.cfgs-marquee-item { white-space: pre-line; line-height: 1.45; }
.cfgs-marquee-track { width: max-content; }
.cfgs-marquee-group { flex: 0 0 auto; }
.cfgs-map-table select { width: 100%; max-width: 420px; }
.cfgs-institute-verification-suggestions button { grid-template-columns: 1fr !important; color: var(--cfgs-theme-primary, #2271b1); border-color: var(--cfgs-student-border, #dcdcde); }
.cfgs-institute-verification-suggestions button:hover { background: var(--cfgs-student-header-bg, #2271b1) !important; color: var(--cfgs-student-header-text, #fff) !important; border-color: var(--cfgs-student-header-bg, #2271b1) !important; }
.cfgs-institute-verification-suggestions button:hover strong { color: inherit !important; }
.cfgs-institute-verification-table { font-family: var(--cfgs-student-font-family, inherit); font-size: var(--cfgs-student-font-size, 14px); font-weight: var(--cfgs-student-font-weight, 400); color: var(--cfgs-student-text, #1d2327); border: 1px solid var(--cfgs-student-border, #dcdcde); border-radius: var(--cfgs-student-radius, 12px); overflow: hidden; }
.cfgs-institute-verification-table th { width: 30% !important; background: var(--cfgs-student-header-bg, #2271b1) !important; color: var(--cfgs-student-header-text, #fff) !important; }
.cfgs-institute-verification-table td { width: 70% !important; background: var(--cfgs-student-row-bg, #fff); color: var(--cfgs-student-text, #1d2327); }
.cfgs-institute-verification-table tr:nth-child(even) td { background: var(--cfgs-student-row-alt-bg, #f6f7f7); }
.cfgs-status-active { background: #16a34a !important; color: #fff !important; }
.cfgs-status-inactive { background: #f59e0b !important; color: #fff !important; }
.cfgs-status-suspended, .cfgs-status-suspend { background: #dc2626 !important; color: #fff !important; }
.cfgs-print-only { display: none; }
.cfgs-institute-verification-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.cfgs-institute-verification-actions button { background: var(--cfgs-student-header-bg, #2271b1); color: var(--cfgs-student-header-text, #fff); }

.cfgs-gallery-wrap { display: grid; gap: 24px; }
.cfgs-gallery { width: 100%; overflow: hidden; --cfgs-gallery-w:300px; --cfgs-gallery-h:220px; --cfgs-gallery-gap:16px; border-radius: 14px; }
.cfgs-gallery-track { display: flex; gap: var(--cfgs-gallery-gap); align-items: stretch; }
.cfgs-gallery-item { margin: 0; flex: 0 0 var(--cfgs-gallery-w); height: var(--cfgs-gallery-h); overflow: hidden; border-radius: 14px; box-shadow: 0 8px 24px rgba(15,23,42,.12); background: #f8fafc; }
.cfgs-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease, opacity .35s ease; }
.cfgs-gallery-grid .cfgs-gallery-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--cfgs-gallery-w)), 1fr)); }
.cfgs-gallery-grid .cfgs-gallery-item, .cfgs-gallery-masonry .cfgs-gallery-item, .cfgs-gallery-cards .cfgs-gallery-item, .cfgs-gallery-polaroid .cfgs-gallery-item { flex: initial; }
.cfgs-gallery-scroll, .cfgs-gallery-slider, .cfgs-gallery-carousel, .cfgs-gallery-coverflow { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.cfgs-gallery-scroll .cfgs-gallery-item, .cfgs-gallery-slider .cfgs-gallery-item, .cfgs-gallery-carousel .cfgs-gallery-item, .cfgs-gallery-coverflow .cfgs-gallery-item { scroll-snap-align: start; }
.cfgs-gallery-masonry .cfgs-gallery-track { column-count: 3; column-gap: var(--cfgs-gallery-gap); display: block; }
.cfgs-gallery-masonry .cfgs-gallery-item { break-inside: avoid; margin-bottom: var(--cfgs-gallery-gap); height: auto; }
.cfgs-gallery-masonry .cfgs-gallery-item img { height: auto; }
.cfgs-gallery-polaroid .cfgs-gallery-item { padding: 10px 10px 36px; background: #fff; transform: rotate(-1deg); }
.cfgs-gallery-coverflow .cfgs-gallery-item { transform: perspective(900px) rotateY(-8deg); }
.cfgs-gallery-anim-zoom .cfgs-gallery-item:hover img { transform: scale(1.08); }
.cfgs-gallery-anim-fade .cfgs-gallery-item:hover img { opacity: .82; }
.cfgs-gallery-anim-slide .cfgs-gallery-item:hover img { transform: translateX(6px); }
.cfgs-gallery-anim-float .cfgs-gallery-item:hover { transform: translateY(-6px); }
.cfgs-gallery-anim-flip .cfgs-gallery-item:hover { transform: rotateY(8deg); }
.cfgs-gallery-anim-rotate .cfgs-gallery-item:hover { transform: rotate(1.5deg); }
.cfgs-gallery-anim-pulse .cfgs-gallery-item:hover { animation: cfgs-gallery-pulse .8s ease-in-out; }
.cfgs-gallery-auto .cfgs-gallery-track { width: max-content; animation: cfgs-gallery-scroll var(--cfgs-gallery-speed, 18s) linear infinite; }
.cfgs-gallery-auto:hover .cfgs-gallery-track { animation-play-state: paused; }
@keyframes cfgs-gallery-scroll { from { transform: translateX(0); } to { transform: translateX(-40%); } }
@keyframes cfgs-gallery-pulse { 50% { transform: scale(1.025); } }

@media (max-width: 782px) {
  .cfgs-map-table select { max-width: 100%; }
  .cfgs-institute-verification-table th, .cfgs-institute-verification-table td { width: 100% !important; display: block; }
  .cfgs-gallery-masonry .cfgs-gallery-track { column-count: 1; }
}
@media print {
  body * { visibility: hidden !important; }
  .cfgs-institute-verification-result, .cfgs-institute-verification-result *, .cfgs-institute-print-only, .cfgs-institute-print-only * { visibility: visible !important; }
  .cfgs-institute-verification-form, .cfgs-institute-verification-suggestions, .cfgs-institute-verification-actions, .cfgs-institute-verification-result > .cfgs-table-wrap { display: none !important; }
  .cfgs-institute-print-only { display: block !important; position: fixed; inset: 0; padding: 8mm; background: #fff; page-break-inside: avoid; }
  .cfgs-print-logo, .cfgs-print-header, .cfgs-print-above-footer, .cfgs-print-footer { text-align: center; margin-bottom: 4mm; }
  .cfgs-print-result-card { border-radius: var(--cfgs-student-radius, 12px) !important; overflow: hidden !important; margin: 4mm 0; }
  .cfgs-print-result-card table { width: 100% !important; font-size: min(var(--cfgs-student-font-size, 14px), 12px) !important; }
  @page { size: A4; margin: 8mm; }
}


/* v2.4 marquee, institute print graphics and gallery fixes */
.cfgs-section-heading { align-self: end; }
.cfgs-section-heading h3 { margin: 0; padding: 10px 0 0; font-size: 15px; color: var(--cfgs-primary, #2271b1); }
.cfgs-marquee-item { display: inline-block; white-space: normal; }
.cfgs-marquee-pause-hover:hover .cfgs-marquee-track { animation-play-state: paused !important; }
.cfgs-institute-print-only {
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
}
.cfgs-print-header,
.cfgs-print-above-footer,
.cfgs-print-footer { line-height: 1.35; }
.cfgs-print-header h1, .cfgs-print-header h2, .cfgs-print-header h3,
.cfgs-print-above-footer h1, .cfgs-print-above-footer h2, .cfgs-print-above-footer h3,
.cfgs-print-footer h1, .cfgs-print-footer h2, .cfgs-print-footer h3 { margin: 0 0 6px !important; }
[data-cfgs-gallery-custom-size] { display: none; margin-left: 12px; gap: 12px; flex-wrap: wrap; align-items: center; }
[data-cfgs-gallery-custom-size].is-visible { display: inline-flex; }
.cfgs-gallery-size-full .cfgs-gallery-track { width: 100%; }
.cfgs-gallery-size-full.cfgs-gallery-grid .cfgs-gallery-track,
.cfgs-gallery-size-full.cfgs-gallery-cards .cfgs-gallery-track,
.cfgs-gallery-size-full.cfgs-gallery-polaroid .cfgs-gallery-track { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.cfgs-gallery-size-full .cfgs-gallery-item { flex: 1 1 100%; height: auto; }
.cfgs-gallery-size-full .cfgs-gallery-item img { width: 100%; height: auto; object-fit: contain; }
.cfgs-gallery-size-full.cfgs-gallery-scroll .cfgs-gallery-item,
.cfgs-gallery-size-full.cfgs-gallery-slider .cfgs-gallery-item,
.cfgs-gallery-size-full.cfgs-gallery-carousel .cfgs-gallery-item,
.cfgs-gallery-size-full.cfgs-gallery-coverflow .cfgs-gallery-item { flex-basis: 100%; }
@media print {
  .cfgs-institute-print-only { background-repeat: no-repeat !important; background-position: center !important; background-size: cover !important; }
}

/* v2.5 marquee admin table and true loop gap fixes */
.cfgs-marquee-admin-table-wrap {
    width: 100%;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}
.cfgs-marquee-admin-table {
    width: 100%;
    table-layout: fixed;
}
.cfgs-marquee-admin-table th {
    width: 30%;
    vertical-align: middle !important;
    text-align: left;
    font-weight: 700;
}
.cfgs-marquee-admin-table td {
    width: 70%;
    vertical-align: middle !important;
}
.cfgs-marquee-admin-table input[type="text"],
.cfgs-marquee-admin-table input[type="number"],
.cfgs-marquee-admin-table select,
.cfgs-marquee-admin-table textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.cfgs-marquee-admin-table .wp-picker-container input[type="text"] { width: 90px; }
.cfgs-table-section-row th {
    background: var(--cfgs-primary, #2271b1) !important;
    color: #fff !important;
    text-align: center !important;
    font-size: 15px;
    letter-spacing: .02em;
}
.cfgs-marquee-track {
    gap: 0 !important;
}
.cfgs-marquee-group {
    padding-right: var(--cfgs-marquee-gap, 60px) !important;
    box-sizing: content-box;
}
.cfgs-marquee-dir-up .cfgs-marquee-group,
.cfgs-marquee-dir-down .cfgs-marquee-group {
    padding-right: 0 !important;
    padding-bottom: var(--cfgs-marquee-gap, 60px) !important;
}
.cfgs-marquee-item {
    margin: 0 !important;
}
@media (max-width: 700px) {
    .cfgs-marquee-admin-table th,
    .cfgs-marquee-admin-table td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }
    .cfgs-marquee-admin-table th { border-bottom: 0; }
}

/* v2.5 gallery reliability / EduGridz-like responsive display */
.cfgs-gallery-wrap { width: 100%; }
.cfgs-gallery {
    max-width: 100%;
    margin: 0 auto;
}
.cfgs-gallery-grid .cfgs-gallery-track,
.cfgs-gallery-cards .cfgs-gallery-track,
.cfgs-gallery-polaroid .cfgs-gallery-track {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--cfgs-gallery-w, 300px)), 1fr));
    gap: var(--cfgs-gallery-gap, 16px);
}
.cfgs-gallery-slider .cfgs-gallery-track,
.cfgs-gallery-scroll .cfgs-gallery-track,
.cfgs-gallery-carousel .cfgs-gallery-track,
.cfgs-gallery-coverflow .cfgs-gallery-track {
    display: flex !important;
    gap: var(--cfgs-gallery-gap, 16px);
}
.cfgs-gallery-item img[src=""],
.cfgs-gallery-item img:not([src]) { display: none; }
.cfgs-gallery-item img { background: #f8fafc; }

/* v2.6 gallery: no frontend scrollbar, responsive slider/carousel, saved list fits admin width */
.cfgs-gallery { position: relative; overflow: hidden !important; scrollbar-width: none; }
.cfgs-gallery::-webkit-scrollbar { display: none; }
.cfgs-gallery-track { max-width: 100%; }
.cfgs-gallery-slider .cfgs-gallery-track,
.cfgs-gallery-carousel .cfgs-gallery-track,
.cfgs-gallery-scroll .cfgs-gallery-track,
.cfgs-gallery-coverflow .cfgs-gallery-track { display: flex !important; overflow: visible; }
.cfgs-gallery-slider .cfgs-gallery-item,
.cfgs-gallery-carousel .cfgs-gallery-item { flex: 0 0 calc((100% - (var(--cfgs-gallery-gap,16px) * (var(--cfgs-gallery-d,4) - 1))) / var(--cfgs-gallery-d,4)); }
@media (max-width: 1199px) { .cfgs-gallery-slider .cfgs-gallery-item, .cfgs-gallery-carousel .cfgs-gallery-item { flex-basis: calc((100% - (var(--cfgs-gallery-gap,16px) * (var(--cfgs-gallery-l,3) - 1))) / var(--cfgs-gallery-l,3)); } }
@media (max-width: 782px) { .cfgs-gallery-slider .cfgs-gallery-item, .cfgs-gallery-carousel .cfgs-gallery-item { flex-basis: calc((100% - (var(--cfgs-gallery-gap,16px) * (var(--cfgs-gallery-t,2) - 1))) / var(--cfgs-gallery-t,2)); } }
@media (max-width: 520px) { .cfgs-gallery-slider .cfgs-gallery-item, .cfgs-gallery-carousel .cfgs-gallery-item { flex-basis: calc((100% - (var(--cfgs-gallery-gap,16px) * (var(--cfgs-gallery-m,1) - 1))) / var(--cfgs-gallery-m,1)); } }
.cfgs-gallery-pause-hover:hover .cfgs-gallery-track { animation-play-state: paused; }
.cfgs-gallery:not(.cfgs-gallery-pause-hover):hover .cfgs-gallery-track { animation-play-state: running; }
.cfgs-gallery-dots { display:flex; justify-content:center; gap:8px; margin-top:10px; }
.cfgs-gallery-dots span { width:8px; height:8px; border-radius:50%; background: currentColor; opacity:.35; }
.cfgs-gallery-arrow { position:absolute; top:50%; transform:translateY(-50%); z-index:2; border:0; width:34px; height:34px; border-radius:999px; background:rgba(0,0,0,.5); color:#fff; font-size:24px; line-height:1; cursor:pointer; }
.cfgs-gallery-prev { left:10px; }
.cfgs-gallery-next { right:10px; }
.wp-admin .cfgs-gallery { max-width: 280px; max-height: 170px; overflow: hidden !important; }
.wp-admin .cfgs-gallery .cfgs-gallery-track { animation: none !important; transform: none !important; }
.wp-admin .cfgs-gallery .cfgs-gallery-item { max-width: 86px; max-height: 70px; flex-basis: 86px !important; }
.wp-admin .cfgs-gallery .cfgs-gallery-dots,
.wp-admin .cfgs-gallery .cfgs-gallery-arrow { display:none !important; }
.wp-admin .cfgs-responsive-table td .cfgs-gallery-wrap { max-width: 300px; overflow: hidden; }
.cfgs-gallery-justified .cfgs-gallery-track { display:flex !important; flex-wrap:wrap; gap:var(--cfgs-gallery-gap,16px); }
.cfgs-gallery-justified .cfgs-gallery-item { flex:1 1 var(--cfgs-gallery-w,300px); }
.cfgs-gallery-single .cfgs-gallery-track { display:block !important; }
.cfgs-gallery-single .cfgs-gallery-item { width:100%; max-width:var(--cfgs-gallery-w,520px); margin:0 auto; }
.cfgs-gallery-slides .cfgs-gallery-track { display:flex !important; }
.cfgs-gallery-slides .cfgs-gallery-item { flex:0 0 100%; }

/* v3.0 dashboard logo and Google Sheets style options */
.cfgs-dashboard-header {
    align-items: center;
}
.cfgs-dashboard-header-text {
    min-width: 0;
    flex: 1 1 auto;
}
.cfgs-dashboard-site-logo {
    flex: 0 0 24vw;
    max-width: 24vw;
    width: 24vw;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.cfgs-dashboard-site-logo img,
.cfgs-dashboard-logo-img {
    display: block;
    max-width: 100% !important;
    max-height: 110px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}
.cfgs-subsection-title {
    margin: 0;
    padding: 6px 0;
    font-size: 16px;
    line-height: 1.35;
}
.cfgs-google-sheet-style {
    --cfgs-gs-header-bg: #2271b1;
    --cfgs-gs-header-text: #ffffff;
    --cfgs-gs-row-bg: #ffffff;
    --cfgs-gs-row-alt: #f6f7f7;
    --cfgs-gs-border: #dcdcde;
    --cfgs-gs-text: #1d2327;
    --cfgs-gs-shadow: 0 8px 24px rgba(0,0,0,.06);
    width: 100%;
    font-family: var(--cfgs-gs-font, inherit);
    font-weight: var(--cfgs-gs-weight, 400);
    font-size: var(--cfgs-gs-size, 15px);
    color: var(--cfgs-gs-text);
}
.cfgs-google-sheet-style .cfgs-table-wrap {
    border-radius: var(--cfgs-gs-radius, 10px);
    box-shadow: var(--cfgs-gs-shadow);
}
.cfgs-google-sheet-style .cfgs-table {
    border-color: var(--cfgs-gs-border);
    border-radius: var(--cfgs-gs-radius, 10px);
    overflow: hidden;
}
.cfgs-google-sheet-style .cfgs-table th {
    background: var(--cfgs-gs-header-bg) !important;
    color: var(--cfgs-gs-header-text) !important;
    border-color: var(--cfgs-gs-border) !important;
}
.cfgs-google-sheet-style .cfgs-table td {
    background: var(--cfgs-gs-row-bg);
    color: var(--cfgs-gs-text);
    border-color: var(--cfgs-gs-border) !important;
}
.cfgs-google-sheet-style .cfgs-table tbody tr:nth-child(even) td {
    background: var(--cfgs-gs-row-alt);
}
.cfgs-google-sheet-style-emerald {
    --cfgs-gs-header-bg: #047857;
    --cfgs-gs-header-text: #ffffff;
    --cfgs-gs-row-alt: #ecfdf5;
    --cfgs-gs-border: #a7f3d0;
    --cfgs-gs-text: #064e3b;
}
.cfgs-google-sheet-style-purple {
    --cfgs-gs-header-bg: #6d28d9;
    --cfgs-gs-header-text: #ffffff;
    --cfgs-gs-row-alt: #f5f3ff;
    --cfgs-gs-border: #ddd6fe;
    --cfgs-gs-text: #2e1065;
}
.cfgs-google-sheet-style-orange {
    --cfgs-gs-header-bg: #c2410c;
    --cfgs-gs-header-text: #ffffff;
    --cfgs-gs-row-alt: #fff7ed;
    --cfgs-gs-border: #fed7aa;
    --cfgs-gs-text: #431407;
}
.cfgs-google-sheet-style-dark {
    --cfgs-gs-header-bg: #111827;
    --cfgs-gs-header-text: #ffffff;
    --cfgs-gs-row-bg: #1f2937;
    --cfgs-gs-row-alt: #111827;
    --cfgs-gs-border: #374151;
    --cfgs-gs-text: #f9fafb;
}
.cfgs-google-sheet-style-minimal {
    --cfgs-gs-header-bg: #f6f7f7;
    --cfgs-gs-header-text: #1d2327;
    --cfgs-gs-row-alt: #ffffff;
    --cfgs-gs-border: #e5e7eb;
    --cfgs-gs-text: #111827;
    --cfgs-gs-shadow: none;
}
@media (max-width: 782px) {
    .cfgs-dashboard-site-logo {
        flex: 0 1 auto;
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
    .cfgs-dashboard-site-logo img,
    .cfgs-dashboard-logo-img {
        max-width: 60vw !important;
        max-height: 90px !important;
    }
}

/* v3.0.3 Course import, student mapping, print, scroll controls */
.cfgs-scroll-tools {
    position: fixed;
    right: 18px;
    bottom: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cfgs-scroll-button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: var(--cfgs-primary, #2271b1);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0,0,0,.22);
}
.cfgs-scroll-button:hover { transform: translateY(-1px); opacity: .92; }
.cfgs-import-card .cfgs-import-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 18px;
}
.cfgs-import-card .cfgs-import-steps > div {
    border: 1px solid #dcdcde;
    border-radius: 12px;
    background: #f8fafc;
    padding: 12px;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 4px 10px;
    align-items: center;
}
.cfgs-import-card .cfgs-import-steps span {
    grid-row: span 2;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #2271b1;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.cfgs-import-card .cfgs-import-steps small { color: #646970; line-height: 1.35; }
.cfgs-sample-sheet-preview {
    margin-top: 12px;
    overflow-x: auto;
    border: 1px solid #dcdcde;
    border-radius: 10px;
}
.cfgs-sample-sheet-preview table { margin: 0; }
.cfgs-logo-field-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.cfgs-logo-field-row input { flex: 1 1 360px; }
[data-cfgs-logo-custom-size] { display: none; margin-left: 8px; }
[data-cfgs-logo-custom-size].is-visible { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cfgs-student-mapping-grid select { min-height: 36px; }
.cfgs-student-verification .cfgs-student-result-table {
    border-collapse: collapse !important;
    border: 1px solid var(--cfgs-student-border, #dcdcde) !important;
    border-radius: var(--cfgs-student-radius, 12px) !important;
    overflow: hidden;
}
.cfgs-student-verification .cfgs-student-result-table th,
.cfgs-student-verification .cfgs-student-result-table td {
    border: 1px solid var(--cfgs-student-border, #dcdcde) !important;
    padding: 12px 14px !important;
}
.cfgs-student-verification .cfgs-student-result-table th {
    background: var(--cfgs-student-header-bg, #2271b1) !important;
    color: var(--cfgs-student-header-text, #fff) !important;
    width: 34%;
    font-weight: 700;
}
.cfgs-student-verification .cfgs-student-result-table td {
    background: var(--cfgs-student-row-bg, #fff) !important;
    color: var(--cfgs-student-text, #1d2327) !important;
}
.cfgs-student-verification .cfgs-student-result-table tr:nth-child(even) td {
    background: var(--cfgs-student-row-alt-bg, #f6f7f7) !important;
}
.cfgs-student-style-sky .cfgs-student-result-print,
.cfgs-student-style-emerald .cfgs-student-result-print,
.cfgs-student-style-rose .cfgs-student-result-print,
.cfgs-student-style-slate .cfgs-student-result-print { box-shadow: 0 12px 30px rgba(15,23,42,.10); }
.cfgs-student-style-sky .cfgs-student-result-table th { background: #0284c7 !important; color: #fff !important; }
.cfgs-student-style-emerald .cfgs-student-result-table th { background: #047857 !important; color: #fff !important; }
.cfgs-student-style-rose .cfgs-student-result-table th { background: #e11d48 !important; color: #fff !important; }
.cfgs-student-style-slate .cfgs-student-result-table th { background: #334155 !important; color: #fff !important; }
.cfgs-print-logo { text-align: center; }
.cfgs-print-logo img { width: var(--cfgs-logo-width, 140px) !important; height: var(--cfgs-logo-height, 80px) !important; object-fit: contain !important; max-width: 100% !important; }
.cfgs-logo-size-full .cfgs-print-logo img { width: 100% !important; height: auto !important; max-height: 140px !important; }

@media (max-width: 782px) {
    .cfgs-import-card .cfgs-import-steps { grid-template-columns: 1fr; }
    .cfgs-scroll-tools { right: 12px; bottom: 16px; }
    .cfgs-scroll-button { width: 38px; height: 38px; font-size: 20px; }
}

@media print {
    body:has(.cfgs-student-result-print:not([hidden])) * { visibility: hidden !important; }
    .cfgs-student-result-print:not([hidden]),
    .cfgs-student-result-print:not([hidden]) * { visibility: visible !important; }
    .cfgs-student-result-print:not([hidden]) {
        display: block !important;
        position: fixed !important;
        inset: 0 !important;
        width: auto !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 10mm !important;
        background: #fff !important;
        box-shadow: none !important;
        border: 0 !important;
        overflow: visible !important;
    }
    .cfgs-student-result-print:not([hidden]) .cfgs-print-only,
    .cfgs-student-result-print:not([hidden]) .cfgs-print-logo,
    .cfgs-student-result-print:not([hidden]) .cfgs-print-header,
    .cfgs-student-result-print:not([hidden]) .cfgs-print-above-footer,
    .cfgs-student-result-print:not([hidden]) .cfgs-print-footer {
        display: block !important;
        visibility: visible !important;
    }
    .cfgs-student-result-actions,
    .cfgs-student-search-form,
    .cfgs-scroll-tools { display: none !important; }
    .cfgs-student-result-table { width: 100% !important; border-collapse: collapse !important; page-break-inside: avoid !important; }
    .cfgs-student-result-table th,
    .cfgs-student-result-table td { border: 1px solid var(--cfgs-student-border, #333) !important; padding: 7px 9px !important; }
    .cfgs-print-logo img { width: var(--cfgs-logo-width, 140px) !important; height: var(--cfgs-logo-height, 80px) !important; max-width: 100% !important; object-fit: contain !important; }
    .cfgs-logo-size-full .cfgs-print-logo img { width: 100% !important; height: auto !important; max-height: 35mm !important; }
}


/* v3.0.4 Student Verification print + result table global styles */
.cfgs-student-verification .cfgs-student-result-print:not([hidden]) {
    display: block !important;
}
.cfgs-student-verification .cfgs-print-result {
    padding: 18px;
}
.cfgs-status-button,
.cfgs-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: 7px 13px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
    line-height: 1.1;
    letter-spacing: .025em;
    text-transform: uppercase;
    color: #fff !important;
    box-shadow: 0 5px 12px rgba(0,0,0,.12);
}
.cfgs-status-completed { background: #16a34a !important; }
.cfgs-status-ongoing { background: #f97316 !important; }
.cfgs-status-suspended { background: #dc2626 !important; }
.cfgs-status-value { vertical-align: middle !important; }

.cfgs-student-style-modern .cfgs-student-result-print {
    border: 1px solid #bae6fd !important;
    box-shadow: 0 18px 40px rgba(14,165,233,.12) !important;
    border-radius: var(--cfgs-student-radius, 18px) !important;
}
.cfgs-student-style-modern .cfgs-student-result-table th {
    background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
    color: #ffffff !important;
}
.cfgs-student-style-modern .cfgs-student-result-table td {
    background: #ffffff !important;
}
.cfgs-student-style-modern .cfgs-student-result-table tr:nth-child(even) td {
    background: #f0f9ff !important;
}

.cfgs-student-style-stripped .cfgs-student-result-print {
    border: 1px solid #d1d5db !important;
    border-radius: var(--cfgs-student-radius, 12px) !important;
}
.cfgs-student-style-stripped .cfgs-student-result-table th {
    background: #111827 !important;
    color: #ffffff !important;
}
.cfgs-student-style-stripped .cfgs-student-result-table tr:nth-child(odd) td {
    background: #ffffff !important;
}
.cfgs-student-style-stripped .cfgs-student-result-table tr:nth-child(even) td {
    background: #f3f4f6 !important;
}

.cfgs-student-style-premium-card .cfgs-student-result-print {
    padding: 12px !important;
    border: 0 !important;
    border-radius: 22px !important;
    background: linear-gradient(135deg, #faf5ff, #ffffff) !important;
    box-shadow: 0 20px 45px rgba(124,58,237,.16) !important;
}
.cfgs-student-style-premium-card .cfgs-student-result-table {
    border-radius: 16px !important;
    overflow: hidden !important;
}
.cfgs-student-style-premium-card .cfgs-student-result-table th {
    background: #7c3aed !important;
    color: #ffffff !important;
}
.cfgs-student-style-premium-card .cfgs-student-result-table tr:nth-child(even) td {
    background: #f5f3ff !important;
}

@media print {
    .cfgs-student-result-print:not([hidden]) .cfgs-print-result {
        padding: 5mm 0 !important;
    }
    .cfgs-status-button,
    .cfgs-status-badge {
        color: #fff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* v3.0.5 Hard print fix for Student Verification headers, footers and table padding */
@media print {
    body:has(.cfgs-student-result-print:not([hidden])) * {
        visibility: hidden !important;
    }
    .cfgs-student-result-print:not([hidden]),
    .cfgs-student-result-print:not([hidden]) * {
        visibility: visible !important;
    }
    .cfgs-student-result-print:not([hidden]) {
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        right: 0 !important;
        width: auto !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 12mm !important;
        background: #fff !important;
        box-shadow: none !important;
        border: 0 !important;
        overflow: visible !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .cfgs-student-result-print:not([hidden]) .cfgs-print-only,
    .cfgs-student-result-print:not([hidden]) .cfgs-print-logo,
    .cfgs-student-result-print:not([hidden]) .cfgs-print-header,
    .cfgs-student-result-print:not([hidden]) .cfgs-print-above-footer,
    .cfgs-student-result-print:not([hidden]) .cfgs-print-footer {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        height: auto !important;
        overflow: visible !important;
        text-align: center !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    .cfgs-student-result-print:not([hidden]) .cfgs-print-section {
        padding: 7mm 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid #d1d5db !important;
    }
    .cfgs-student-result-print:not([hidden]) .cfgs-print-section:last-child {
        border-bottom: 0 !important;
    }
    .cfgs-student-result-print:not([hidden]) .cfgs-print-result {
        display: block !important;
        padding: 8mm 0 !important;
        margin: 0 !important;
    }
    .cfgs-student-result-print:not([hidden]) .cfgs-table-wrap {
        width: 100% !important;
        padding: 4mm !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        border-radius: var(--cfgs-student-radius, 12px) !important;
        background: #ffffff !important;
    }
    .cfgs-student-result-print:not([hidden]) .cfgs-student-result-table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin: 0 !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    .cfgs-student-result-print:not([hidden]) .cfgs-student-result-table th,
    .cfgs-student-result-print:not([hidden]) .cfgs-student-result-table td {
        border: 1px solid var(--cfgs-student-border, #333) !important;
        padding: 11px 14px !important;
        line-height: 1.45 !important;
        vertical-align: middle !important;
        word-break: break-word !important;
    }
    .cfgs-student-result-print:not([hidden]) .cfgs-print-logo img {
        display: inline-block !important;
        width: var(--cfgs-logo-width, 140px) !important;
        height: var(--cfgs-logo-height, 80px) !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }
    .cfgs-logo-size-full .cfgs-student-result-print:not([hidden]) .cfgs-print-logo img {
        width: 100% !important;
        height: auto !important;
        max-height: 35mm !important;
    }
    .cfgs-student-result-actions,
    .cfgs-student-search-form,
    .cfgs-scroll-tools {
        display: none !important;
    }
}


/* v3.0.6 Print background, logo spacing, link headers/footers and Institute Verification print parity */
.cfgs-student-result-print,
.cfgs-institute-print-only {
    background-repeat: no-repeat !important;
    background-position: center top !important;
    background-size: cover !important;
}
.cfgs-print-logo {
    padding-top: 24px !important;
}
.cfgs-print-header a,
.cfgs-print-above-footer a,
.cfgs-print-footer a {
    color: inherit !important;
    text-decoration: underline !important;
}
@media print {
    .cfgs-print-logo { padding-top: 10mm !important; padding-bottom: 5mm !important; }
    .cfgs-student-result-print:not([hidden]) .cfgs-print-logo { padding-top: 10mm !important; }
    .cfgs-student-result-print:not([hidden]) .cfgs-print-result,
    .cfgs-institute-print-only .cfgs-print-result { padding: 8mm 0 !important; }
    .cfgs-student-result-print:not([hidden]) .cfgs-table-wrap,
    .cfgs-institute-print-only .cfgs-table-wrap { padding: 6mm !important; background: rgba(255,255,255,.96) !important; }
    .cfgs-student-result-print:not([hidden]) .cfgs-table th,
    .cfgs-student-result-print:not([hidden]) .cfgs-table td,
    .cfgs-institute-print-only .cfgs-table th,
    .cfgs-institute-print-only .cfgs-table td { padding: 12px 15px !important; }
    .cfgs-print-header a[href]::after,
    .cfgs-print-above-footer a[href]::after,
    .cfgs-print-footer a[href]::after { content: " (" attr(href) ")" !important; font-size: .85em !important; color: #4b5563 !important; font-weight: 400 !important; }
}


/* v3.0.7 hard print templates, visitor ajax, marquee autofit and expanded fonts */
.cfgs-marquee-saved-wrap,
.cfgs-marquee-saved-table {
    width: 100% !important;
    max-width: 100% !important;
}
.cfgs-marquee-saved-wrap {
    overflow: hidden !important;
}
.cfgs-marquee-saved-table {
    table-layout: fixed !important;
}
.cfgs-marquee-saved-table th,
.cfgs-marquee-saved-table td {
    max-width: 1px;
    overflow: hidden !important;
    text-overflow: ellipsis;
    vertical-align: middle !important;
}
.cfgs-marquee-saved-table td:nth-child(1) { width: 18%; }
.cfgs-marquee-saved-table td:nth-child(2) { width: 36%; }
.cfgs-marquee-saved-table td:nth-child(3) { width: 24%; }
.cfgs-marquee-saved-table td:nth-child(4) { width: 10%; }
.cfgs-marquee-saved-table td:nth-child(5) { width: 12%; }
.cfgs-marquee-saved-table .cfgs-marquee,
.cfgs-marquee-saved-table .cfgs-marquee-admin-preview {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}
.cfgs-marquee-saved-table .cfgs-shortcode-copy,
.cfgs-marquee-saved-table code {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}
@media print {
    .cfgs-print-document { padding-top: 0 !important; }
    .cfgs-print-logo { padding-top: 14mm !important; }
    .cfgs-print-section { display: block !important; visibility: visible !important; opacity: 1 !important; }
    .cfgs-print-header, .cfgs-print-above-footer, .cfgs-print-footer { min-height: 10mm !important; color: #111827 !important; }
    .cfgs-print-result { padding: 9mm 0 !important; }
    .cfgs-print-result .cfgs-table-wrap { padding: 8mm !important; }
    .cfgs-print-result .cfgs-table th, .cfgs-print-result .cfgs-table td { padding: 14px 16px !important; }
}
@media (max-width: 900px) {
    .cfgs-marquee-saved-table,
    .cfgs-marquee-saved-table thead,
    .cfgs-marquee-saved-table tbody,
    .cfgs-marquee-saved-table tr,
    .cfgs-marquee-saved-table th,
    .cfgs-marquee-saved-table td {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .cfgs-marquee-saved-table td { max-width: 100% !important; }
}


/* v3.0.8 institute suggestion cleanup, visitor meter speed, responsive saved marquees */
.cfgs-institute-verification-suggestions .cfgs-suggestions-title { display: none !important; }
.cfgs-vc-meter .cfgs-vc-digit,
.cfgs-vc-odometer .cfgs-vc-digit,
.cfgs-vc-scroll .cfgs-vc-digit,
.cfgs-vc-countdown .cfgs-vc-digit { animation-duration: var(--cfgs-vc-speed, 650ms) !important; }

.cfgs-admin-status-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 74px !important;
    padding: 5px 10px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: .02em !important;
}
.cfgs-admin-status-active { background:#dcfce7 !important; color:#166534 !important; border:1px solid #86efac !important; }
.cfgs-admin-status-inactive { background:#ffedd5 !important; color:#9a3412 !important; border:1px solid #fdba74 !important; }

.cfgs-marquee-saved-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
}
.folded .cfgs-marquee-saved-wrap { max-width: 100% !important; }
.cfgs-marquee-saved-table {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
}
.cfgs-marquee-saved-table th,
.cfgs-marquee-saved-table td {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    vertical-align: middle !important;
    padding: 12px 10px !important;
}
.cfgs-marquee-saved-table th:nth-child(1), .cfgs-marquee-saved-table td:nth-child(1) { width: 15% !important; }
.cfgs-marquee-saved-table th:nth-child(2), .cfgs-marquee-saved-table td:nth-child(2) { width: 34% !important; }
.cfgs-marquee-saved-table th:nth-child(3), .cfgs-marquee-saved-table td:nth-child(3) { width: 25% !important; }
.cfgs-marquee-saved-table th:nth-child(4), .cfgs-marquee-saved-table td:nth-child(4) { width: 10% !important; text-align:center !important; }
.cfgs-marquee-saved-table th:nth-child(5), .cfgs-marquee-saved-table td:nth-child(5) { width: 16% !important; }
.cfgs-marquee-saved-table .cfgs-marquee {
    max-width: 320px !important;
    min-width: 0 !important;
    margin: 0 !important;
}
.cfgs-marquee-saved-table .cfgs-shortcode-copy {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    align-items: center !important;
}
.cfgs-marquee-saved-table .cfgs-shortcode-copy code {
    display: inline-block !important;
    max-width: 100% !important;
    padding: 8px 10px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}
.cfgs-marquee-action-row,
.cfgs-marquee-inline-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
}
.cfgs-marquee-inline-actions { margin: 0 !important; }
.cfgs-marquee-action-row .button {
    min-width: 68px !important;
    text-align: center !important;
    justify-content: center !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 30px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}
.cfgs-marquee-action-row .cfgs-action-edit { border-color:#2271b1 !important; color:#2271b1 !important; }
.cfgs-marquee-action-row .cfgs-action-toggle { border-color:#f59e0b !important; color:#92400e !important; background:#fff7ed !important; }
.cfgs-marquee-action-row .cfgs-action-delete { color:#b91c1c !important; border-color:#fecaca !important; background:#fff1f2 !important; text-decoration:none !important; }

@media (max-width: 1200px) {
    .cfgs-marquee-saved-table th:nth-child(1), .cfgs-marquee-saved-table td:nth-child(1) { width: 14% !important; }
    .cfgs-marquee-saved-table th:nth-child(2), .cfgs-marquee-saved-table td:nth-child(2) { width: 30% !important; }
    .cfgs-marquee-saved-table th:nth-child(3), .cfgs-marquee-saved-table td:nth-child(3) { width: 25% !important; }
    .cfgs-marquee-saved-table th:nth-child(4), .cfgs-marquee-saved-table td:nth-child(4) { width: 11% !important; }
    .cfgs-marquee-saved-table th:nth-child(5), .cfgs-marquee-saved-table td:nth-child(5) { width: 20% !important; }
}
@media (max-width: 960px) {
    .cfgs-marquee-saved-wrap { max-width: 100% !important; overflow-x: visible !important; }
    .cfgs-marquee-saved-table,
    .cfgs-marquee-saved-table thead,
    .cfgs-marquee-saved-table tbody,
    .cfgs-marquee-saved-table tr,
    .cfgs-marquee-saved-table th,
    .cfgs-marquee-saved-table td { display: block !important; width: 100% !important; max-width: 100% !important; }
    .cfgs-marquee-saved-table thead { display: none !important; }
    .cfgs-marquee-saved-table tr { margin-bottom: 14px !important; border:1px solid #dcdcde !important; border-radius: 10px !important; background:#fff !important; overflow:hidden !important; }
    .cfgs-marquee-saved-table td { display: grid !important; grid-template-columns: 140px minmax(0,1fr) !important; gap: 12px !important; border-bottom:1px solid #eef2f7 !important; }
    .cfgs-marquee-saved-table td::before { content: attr(data-label); font-weight: 800; color:#334155; }
    .cfgs-marquee-saved-table td:last-child { border-bottom: 0 !important; }
    .cfgs-marquee-saved-table .cfgs-marquee { max-width: 100% !important; }
}
@media (max-width: 520px) {
    .cfgs-marquee-saved-table td { grid-template-columns: 1fr !important; }
}

/* v3.0.9 print website link/timing header-footer and exact institute logo sizing */
.cfgs-browser-print-meta {
    display: none;
}
@media print {
    .cfgs-browser-print-meta {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        width: 100% !important;
        color: #374151 !important;
        font-size: 10px !important;
        line-height: 1.35 !important;
        font-family: Arial, Helvetica, sans-serif !important;
        padding: 3mm 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .cfgs-browser-print-meta a {
        color: #111827 !important;
        text-decoration: none !important;
        word-break: break-all !important;
    }
    .cfgs-browser-print-header {
        border-bottom: 1px solid #d1d5db !important;
        margin-bottom: 4mm !important;
    }
    .cfgs-browser-print-footer {
        border-top: 1px solid #d1d5db !important;
        margin-top: 5mm !important;
    }
    .cfgs-institute-verification .cfgs-print-logo img.cfgs-print-logo-img,
    .cfgs-student-verification .cfgs-print-logo img.cfgs-print-logo-img {
        object-fit: contain !important;
        max-width: 100% !important;
        display: inline-block !important;
    }
}
