/* Student Management Module Stylesheet */
/* Light SaaS Theme (Consistent with Academic Setup and Staff Management) */

:root {
    --student-bg: #F4F6FA;
    --student-card: #FFFFFF;
    --student-card-hover: #F8FAFC;
    --student-border: #E5E7EB;
    --student-border-subtle: #F1F5F9;
    --student-input-bg: #F8FAFC;
    --student-input-border: #CBD5E1;
    --student-navy: #1E3A8A;
    --student-navy-hover: #2563EB;
    --student-amber: #F59E0B;
    --student-amber-hover: #D97706;
    --student-text-main: #0F172A;
    --student-text-muted: #64748B;
    --student-text-dim: #94A3B8;
}

/* Container */
.student-module-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    margin-bottom: 28px;
    color: var(--student-text-main);
}

/* Page Header */
.student-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}

.student-title-row h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--student-text-main);
    margin: 0;
    letter-spacing: -0.02em;
}

.student-title-row p {
    font-size: 14px;
    color: var(--student-text-muted);
    margin: 4px 0 0 0;
    line-height: 1.5;
}

/* Action Buttons */
.btn-amber-primary,
.btn-amber-add {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: var(--student-amber) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 10px 18px !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.28) !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
}

.btn-amber-primary:hover,
.btn-amber-add:hover {
    background: var(--student-amber-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35) !important;
}

.btn-navy-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: var(--student-navy) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 10px 18px !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.22) !important;
    transition: all 0.15s ease !important;
}

.btn-navy-primary:hover {
    background: var(--student-navy-hover) !important;
    transform: translateY(-1px);
}

/* Sub-Navigation Strip */
.student-subnav-strip-wrap {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-bottom: 2px solid var(--student-border);
    padding-bottom: 4px;
}
.student-subnav-strip-wrap::-webkit-scrollbar { display: none; }

.student-subnav-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: max-content;
}

.student-subnav-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--student-text-muted);
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.student-subnav-pill:hover {
    color: var(--student-navy);
    background: #EEF2F6;
}

.student-subnav-pill.active {
    color: var(--student-navy);
    background: #E0E7FF;
    border-color: #C7D2FE;
    font-weight: 700;
}

/* Filter Card */
.student-filter-card {
    background: var(--student-card);
    border: 1px solid var(--student-border);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.student-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    align-items: flex-end;
}

.student-filter-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.student-filter-item label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.student-filter-item select,
.student-filter-item input {
    background: var(--student-input-bg);
    border: 1px solid var(--student-input-border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13.5px;
    color: var(--student-text-main);
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
}

.student-filter-item select:focus,
.student-filter-item input:focus {
    border-color: var(--student-navy);
    background: #FFFFFF;
}

.student-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-filter-search {
    background: var(--student-amber);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-filter-search:hover { background: var(--student-amber-hover); }

.btn-filter-clear {
    color: var(--student-text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 10px;
}
.btn-filter-clear:hover { color: #DC2626; }

/* Table Card & Toolbar */
.student-table-card {
    background: var(--student-card);
    border: 1px solid var(--student-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.student-table-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: #FAFBFD;
    border-bottom: 1px solid var(--student-border);
}

.toolbar-search-box {
    position: relative;
    min-width: 260px;
}

.toolbar-search-box input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    border: 1px solid var(--student-input-border);
    border-radius: 8px;
    font-size: 13.5px;
    background: #FFFFFF;
    outline: none;
}
.toolbar-search-box input:focus { border-color: var(--student-navy); }

.toolbar-search-box i {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--student-text-dim);
    font-size: 13px;
}

/* Data Table */
.student-table {
    width: 100% !important;
    min-width: 960px !important;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}

.student-table th {
    background: #F8FAFC;
    color: #475569;
    font-weight: 700;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 14px;
    border-bottom: 1px solid var(--student-border);
    white-space: nowrap;
}

.student-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--student-border-subtle);
    vertical-align: middle;
}

.student-table tr:hover td {
    background: var(--student-card-hover);
}

/* Avatar Thumbnail */
.student-photo-thumb {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    background: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid #CBD5E1;
    overflow: hidden;
}

.student-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badges & Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}

.status-pill.active { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.status-pill.inactive { background: #F1F5F9; color: #475569; border: 1px solid #CBD5E1; }
.status-pill.suspended { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.status-pill.transferred { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }
.status-pill.archived { background: #F8FAFC; color: #64748B; border: 1px solid #E2E8F0; }

.roll-badge {
    display: inline-block;
    padding: 2px 7px;
    background: #EEF2F6;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #1E3A8A;
}

.id-badge {
    font-family: monospace;
    font-size: 12.5px;
    color: #64748B;
}

/* Action Icons */
.student-actions-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--student-border);
    background: #FFFFFF;
    color: var(--student-text-muted);
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}

.btn-action-icon:hover {
    background: #F1F5F9;
    color: var(--student-navy);
    border-color: #CBD5E1;
}

.btn-action-icon.view:hover { color: #0284C7; border-color: #38BDF8; background: #F0F9FF; }
.btn-action-icon.edit:hover { color: #D97706; border-color: #FCD34D; background: #FEF3C7; }
.btn-action-icon.ledger:hover { color: #059669; border-color: #6EE7B7; background: #ECFDF5; }
.btn-action-icon.idcard:hover { color: #7C3AED; border-color: #C4B5FD; background: #F5F3FF; }
.btn-action-icon.status:hover { color: #DC2626; border-color: #FCA5A5; background: #FEF2F2; }

/* Popover Menu */
.student-action-menu-wrap {
    position: relative;
}

.student-action-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: #FFFFFF;
    border: 1px solid var(--student-border);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 170px;
    z-index: 50;
    padding: 6px 0;
    display: none;
}

.student-action-dropdown.is-open {
    display: block;
}

.student-action-dropdown a,
.student-action-dropdown button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--student-text-main);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.12s;
}

.student-action-dropdown a:hover,
.student-action-dropdown button:hover {
    background: #F1F5F9;
    color: var(--student-navy);
}

/* Responsive Cards (< 768px) */
.student-mobile-cards {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
}

@media (max-width: 768px) {
    .student-table-scroll { display: none; }
    .student-mobile-cards { display: flex; }
    .student-filter-card {
        padding: 12px 14px !important;
        border-radius: 12px !important;
    }
    .student-filter-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px 10px !important;
        align-items: flex-end !important;
        width: 100% !important;
    }
    .student-filter-item {
        width: 100% !important;
        min-width: 0 !important;
    }
    .student-filter-item label {
        font-size: 11px !important;
        font-weight: 700 !important;
        margin-bottom: 3px !important;
        color: #64748B !important;
    }
    .student-filter-item select,
    .student-filter-item input {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 6px 10px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
        text-overflow: ellipsis !important;
    }
    .student-filter-actions {
        grid-column: 1 / -1 !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .student-filter-actions .btn-filter-search,
    .student-filter-actions .btn-filter-clear {
        width: 100% !important;
        height: 38px !important;
        min-height: 38px !important;
        justify-content: center !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
    .student-table-toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
    .toolbar-search-box { width: 100%; }
}

.student-mobile-card {
    background: #FFFFFF;
    border: 1px solid var(--student-border);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mobile-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mobile-card-body {
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #334155;
}

.mobile-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--student-border-subtle);
}

/* Modals */
.student-modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(4px) !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1000 !important;
    padding: 20px 16px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.student-modal-backdrop.is-open {
    display: flex !important;
}

.student-modal-dialog {
    background: #FFFFFF !important;
    border: 1px solid var(--student-border) !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 820px !important;
    max-height: calc(100vh - 40px) !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2) !important;
    animation: modalSlideIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin: auto !important;
    position: relative !important;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.student-modal-dialog > form,
.student-modal-dialog form {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    margin: 0 !important;
}

.student-modal-header {
    flex-shrink: 0 !important;
    padding: 18px 24px !important;
    border-bottom: 1px solid var(--student-border) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #FFFFFF !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
}

.student-modal-header h2 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--student-text-main) !important;
}

.btn-modal-close {
    background: none !important;
    border: none !important;
    color: var(--student-text-dim) !important;
    font-size: 18px !important;
    cursor: pointer !important;
    padding: 6px !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.btn-modal-close:hover {
    color: #0F172A !important;
    background: #F1F5F9 !important;
}

.student-modal-body {
    padding: 24px !important;
    overflow-y: auto !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    background: #FFFFFF !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 #F8FAFC;
}

.student-modal-body::-webkit-scrollbar {
    width: 8px;
}
.student-modal-body::-webkit-scrollbar-track {
    background: #F8FAFC;
    border-radius: 4px;
}
.student-modal-body::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}
.student-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

.student-modal-footer {
    flex-shrink: 0 !important;
    padding: 16px 24px !important;
    border-top: 1px solid var(--student-border) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    background: #FAFBFD !important;
    position: sticky !important;
    bottom: 0 !important;
    z-index: 10 !important;
}

.btn-modal-cancel {
    background: #F1F5F9;
    border: 1px solid var(--student-border);
    color: #475569;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
}
.btn-modal-cancel:hover { background: #E2E8F0; }

/* Form Sections in Modal */
.form-section-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--student-navy);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid #E2E8F0;
    margin-bottom: 12px;
}

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

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 640px) {
    .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
}

.form-field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-field-group label {
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
}

.form-field-group input,
.form-field-group select,
.form-field-group textarea {
    padding: 8px 12px;
    background: var(--student-input-bg);
    border: 1px solid var(--student-input-border);
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--student-text-main);
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
}

.form-field-group input:focus,
.form-field-group select:focus,
.form-field-group textarea:focus {
    border-color: var(--student-navy);
    background: #FFFFFF;
}

/* Registration Card Specific Styling */
.reg-card-sheet {
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reg-card-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--student-navy);
    padding-bottom: 16px;
}

.reg-card-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
    font-size: 13.5px;
}

.spec-item {
    display: flex;
    align-items: baseline;
    border-bottom: 1px dashed #E2E8F0;
    padding-bottom: 4px;
}

.spec-label {
    width: 140px;
    flex-shrink: 0;
    font-size: 12.5px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
}

.spec-value {
    font-weight: 600;
    color: #0F172A;
}

.reg-card-signatures {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 12px;
}

.sig-box {
    text-align: center;
    width: 150px;
    border-top: 1px solid #0F172A;
    padding-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

/* CR80 Standard ID Card Preview Styling */
.id-card-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    padding: 20px;
    background: #F1F5F9;
    border-radius: 12px;
}

.cr80-card {
    width: 320px;
    height: 202px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: inherit;
    flex-shrink: 0;
}

.cr80-header {
    background: var(--student-navy);
    color: #FFFFFF;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cr80-header h4 {
    margin: 0;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.cr80-header span {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.cr80-body {
    padding: 10px 12px;
    display: flex;
    gap: 12px;
    flex: 1;
}

.cr80-photo {
    width: 68px;
    height: 84px;
    border-radius: 6px;
    border: 1px solid #CBD5E1;
    overflow: hidden;
    background: #F8FAFC;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
}

.cr80-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cr80-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
    line-height: 1.35;
    flex: 1;
}

.cr80-name {
    font-size: 13px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 2px;
}

.cr80-footer {
    padding: 6px 12px;
    border-top: 1px dashed #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #FAFBFD;
    overflow: hidden;
}

.cr80-footer #idc_barcode,
.cr80-footer [data-render-barcode] {
    height: 22px;
    max-width: 130px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.cr80-footer .valid-text,
.cr80-footer span,
.cr80-footer div:last-child {
    font-size: 8.5px;
    color: #64748B;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Card Back Side */
.cr80-back {
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    font-size: 10px;
    color: #475569;
}

.cr80-disclaimer {
    line-height: 1.45;
    white-space: pre-line;
}

.cr80-signatory {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.cr80-sig-line {
    border-top: 1px solid #475569;
    padding-top: 2px;
    font-size: 9.5px;
    font-weight: 700;
    text-align: center;
    width: 90px;
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .student-page-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .student-page-header .btn-amber-add,
    .student-page-header .btn-navy-primary,
    .student-page-header .button {
        width: 100% !important;
        justify-content: center !important;
    }

    .reg-card-specs-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .reg-card-signatures {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
    }

    .reg-card-sheet {
        padding: 16px !important;
    }

    .student-modal-dialog {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100dvh - 36px) !important;
    }

    .student-modal-body {
        padding: 16px 10px !important;
        max-height: calc(100dvh - 150px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .id-card-preview-container {
        flex-direction: column !important;
        align-items: center !important;
        gap: 16px !important;
        padding: 6px 0 !important;
        width: 100% !important;
    }

    .cr80-card {
        max-width: 100% !important;
        width: 320px !important;
    }
}

@media (max-width: 360px) {
    .cr80-card {
        width: 100% !important;
        min-height: 195px !important;
    }

    .cr80-header h4 {
        font-size: 11px !important;
    }

    .cr80-details {
        font-size: 10px !important;
    }
}

/* A4 Duplex Print Layout */

@media print {
    body {
        background: #FFFFFF !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .print-hide {
        display: none !important;
    }
    .a4-print-sheet {
        page-break-after: always;
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 auto !important;
        padding: 10mm !important;
        box-sizing: border-box !important;
        display: grid !important;
        grid-template-columns: repeat(2, 85.6mm) !important;
        grid-template-rows: repeat(5, 53.98mm) !important;
        gap: 6mm 10mm !important;
        justify-content: center !important;
    }
    .print-card-box {
        border: 0.5pt dashed #94A3B8 !important;
        position: relative !important;
    }
}

