/* ==========================================================================
   SOLAIMANLIPI BANGLA FONT CONFIGURATION (ALL BENGALI TEXT)
   ========================================================================== */
@import url('https://fonts.maateen.me/solaiman-lipi/font.css');

@font-face {
    font-family: 'SolaimanLipi';
    src: local('SolaimanLipi'),
         local('SolaimanLipi Normal'),
         url('https://cdn.jsdelivr.net/gh/atikul-islam-sajib/SolaimanLipi-Web-Font@master/SolaimanLipi.woff') format('woff'),
         url('https://fonts.maateen.me/solaiman-lipi/font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   DREAM CAREER IT - Enterprise Admin Control Panel Stylesheet (v3.0)
   ========================================================================== */
:root {
    --dcp-sidebar: #151442;
    --dcp-primary: #0f766e;
    --dcp-accent: #ea580c;
    --dcp-bg: #f1f5f9;
    --dcp-card: #ffffff;
    --dcp-text: #0f172a;
    --dcp-muted: #64748b;
    --dcp-border: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', 'Hind Siliguri', system-ui, sans-serif;
    background: var(--dcp-bg);
    color: var(--dcp-text);
    display: flex;
    min-height: 100vh;
}

/* Animated 2-Step Login & Time-Lock Screen */
.login-stage-wrap {
    width: 100%;
    min-height: 100vh;
    background: radial-gradient(circle at top right, #0f766e 0%, #151442 60%, #09091f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@keyframes floatCard {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

.login-anim-card {
    background: rgba(255, 255, 255, 0.97);
    width: 100%;
    max-width: 440px;
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 30px rgba(56, 189, 248, 0.25);
    border-top: 5px solid #f59e0b;
    text-align: center;
    animation: floatCard 4s ease-in-out infinite;
}

.login-anim-card img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 3px solid #0f766e;
    margin: 0 auto 12px;
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.3);
}

.timelock-clock-badge {
    background: linear-gradient(135deg, #151442, #0f766e);
    color: #fde68a;
    padding: 12px 20px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin: 14px 0;
    display: inline-block;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.4);
}

/* Sidebar & Layout */
.dcp-sidebar {
    width: 265px;
    background: var(--dcp-sidebar);
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.dcp-brand {
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dcp-brand img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 2px solid #5eead4;
}

.dcp-brand h2 { font-size: 1.1rem; font-weight: 800; color: #fff; }
.dcp-brand span { font-size: 0.75rem; color: #5eead4; display: block; }

.dcp-nav { list-style: none; padding: 12px 10px; flex: 1; }
.dcp-nav li { margin-bottom: 4px; }
.dcp-nav a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; color: #cbd5e1; text-decoration: none;
    border-radius: 8px; font-size: 0.9rem; font-weight: 600; transition: all 0.2s;
}
.dcp-nav a span { display: inline-flex; align-items: center; gap: 10px; }
.dcp-nav a:hover, .dcp-nav a.active { background: var(--dcp-primary); color: #fff; }

.dcp-badge {
    background: var(--dcp-accent); color: #fff; font-size: 0.72rem;
    padding: 2px 8px; border-radius: 12px; font-weight: 800;
}

.dcp-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dcp-topbar {
    background: #fff; padding: 14px 24px; border-bottom: 1px solid var(--dcp-border);
    display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap;
}
.dcp-topbar h1 { font-size: 1.25rem; color: var(--dcp-sidebar); font-weight: 800; }
.dcp-user-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dcp-content { padding: 24px; flex: 1; }

/* Digital Counter Filter Bar */
.counter-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--dcp-border);
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.counter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.counter-pill {
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.counter-pill.active, .counter-pill:hover {
    background: var(--dcp-sidebar);
    color: #fff;
    border-color: var(--dcp-sidebar);
}

.counter-pill b {
    background: rgba(255,255,255,0.2);
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 0.78rem;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    background: #fff; padding: 18px; border-radius: 12px;
    border: 1px solid var(--dcp-border); box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    display: flex; align-items: center; justify-content: space-between;
}
.kpi-info h4 { font-size: 0.84rem; color: var(--dcp-muted); margin-bottom: 4px; }
.kpi-info h2 { font-size: 1.6rem; font-weight: 800; color: var(--dcp-text); }
.kpi-icon {
    width: 46px; height: 46px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
}

.panel-card {
    background: #fff; border-radius: 12px; border: 1px solid var(--dcp-border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04); margin-bottom: 22px; overflow: hidden;
}
.panel-header {
    padding: 14px 20px; border-bottom: 1px solid var(--dcp-border);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 10px; background: #f8fafc;
}
.panel-header h3 { font-size: 1.05rem; color: var(--dcp-sidebar); font-weight: 800; }
.panel-body { padding: 20px; }

.dcp-table-wrap { width: 100%; overflow-x: auto; }
.dcp-table { width: 100%; border-collapse: collapse; min-width: 650px; }
.dcp-table th, .dcp-table td {
    padding: 10px 13px; border-bottom: 1px solid var(--dcp-border);
    text-align: left; font-size: 0.86rem;
}
.dcp-table th { background: #151442; color: #fff; font-weight: 700; white-space: nowrap; }
.dcp-table tr:hover td { background: #f8fafc; }

.btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
    border-radius: 7px; font-size: 0.84rem; font-weight: 700;
    text-decoration: none; border: none; cursor: pointer; transition: all 0.15s;
}
.btn-primary { background: var(--dcp-primary); color: #fff; }
.btn-accent  { background: var(--dcp-accent); color: #fff; }
.btn-danger  { background: #dc2626; color: #fff; }
.btn-success { background: #16a34a; color: #fff; }
.btn-outline { background: #fff; border: 1px solid #cbd5e1; color: #334155; }
.btn-xs { padding: 5px 9px; font-size: 0.76rem; }

.form-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px;
}
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 0.83rem; font-weight: 700; margin-bottom: 5px; color: #334155; }
.form-control {
    width: 100%; padding: 8px 11px; border: 1px solid #cbd5e1;
    border-radius: 6px; font-size: 0.88rem; font-family: inherit;
}

.badge {
    display: inline-block; padding: 3px 9px; border-radius: 12px; font-size: 0.74rem; font-weight: 700;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-info    { background: #e0f2fe; color: #075985; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-weight: 700; font-size: 0.88rem; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* Admin Quick View & SMS Modal */
.dcp-modal-backdrop {
    position: fixed; inset: 0; background: rgba(21, 20, 66, 0.75);
    z-index: 9999; display: none; align-items: center; justify-content: center; padding: 18px;
}
.dcp-modal-backdrop.open { display: flex; }
.dcp-modal-box {
    background: #fff; width: 100%; max-width: 720px; border-radius: 14px;
    border-top: 5px solid var(--dcp-primary); overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4); max-height: 90vh; display: flex; flex-direction: column;
}
.dcp-modal-head {
    padding: 14px 20px; background: #f8fafc; border-bottom: 1px solid var(--dcp-border);
    display: flex; justify-content: space-between; align-items: center;
}
.dcp-modal-body { padding: 20px; overflow-y: auto; }

@media print {
    .dcp-sidebar, .dcp-topbar, .counter-filter-bar, .no-print { display: none !important; }
    .dcp-content { padding: 0 !important; }
}

@media (max-width: 860px) {
    body { flex-direction: column; }
    .dcp-sidebar { width: 100%; height: auto; position: static; }
    .dcp-nav { display: flex; flex-wrap: wrap; gap: 6px; }
}


/* ==========================================================================
   V5.0 ADMIN PANEL UPGRADES: RICH QUICKVIEW, WORD EDITOR, GRAPH,
   BULK ACTION BAR, PAGINATION & BRANDED PRINT HEADER
   ========================================================================== */
.qv-hero-banner {
    background: linear-gradient(135deg, #151442 0%, #0f766e 100%);
    color: #fff;
    padding: 22px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    box-shadow: 0 10px 25px rgba(21, 20, 66, 0.2);
}

.qv-hero-banner img {
    width: 88px;
    height: 88px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid #fde68a;
    background: #fff;
}

.qv-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.qv-info-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0f766e;
    border-radius: 10px;
    padding: 11px 14px;
}

.qv-info-card small {
    display: block;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.qv-info-card strong {
    color: #0f172a;
    font-size: 0.92rem;
}

/* Word-like Rich Text Editor Toolbar */
.word-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: #f1f5f9;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.word-toolbar button, .word-toolbar select {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 4px 9px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    color: #1e293b;
}

.word-toolbar button:hover {
    background: #151442;
    color: #fff;
}

.word-editor-area {
    min-height: 130px;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 0 0 8px 8px;
    padding: 12px 14px;
    font-size: 0.94rem;
    line-height: 1.65;
    outline: none;
}

/* Bulk Action Bar & Pagination Bar */
.bulk-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 10px 16px;
    border-radius: 10px;
    margin-bottom: 14px;
}

.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid var(--dcp-border);
    margin-top: 16px;
}

.page-numbers { display: flex; gap: 5px; flex-wrap: wrap; }
.page-btn {
    min-width: 34px; height: 34px; padding: 0 9px; border-radius: 7px;
    border: 1px solid #cbd5e1; background: #f8fafc; color: #151442;
    font-weight: 700; font-size: 0.82rem; cursor: pointer;
}
.page-btn.active, .page-btn:hover:not(:disabled) {
    background: #151442; color: #fff; border-color: #151442;
}
.page-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Awesome Admin Toast */
.awesome-toast {
    position: fixed;
    top: 22px;
    right: 22px;
    min-width: 300px;
    max-width: 440px;
    background: rgba(21, 20, 66, 0.96);
    color: #fff;
    padding: 15px 18px;
    border-radius: 14px;
    border-left: 6px solid #10b981;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
}
.awesome-toast.error { border-left-color: #ef4444; }
.awesome-toast.warning { border-left-color: #f59e0b; }

/* Upload Preview Box */
.upload-preview-box {
    margin-top: 6px;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #f0fdfa;
    border: 1px dashed #0f766e;
    border-radius: 8px;
}
.upload-preview-box.active { display: flex; }
.upload-preview-box img { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; }

/* Seen / Unseen Badge */
.seen-tag { font-size: 0.72rem; padding: 2px 8px; border-radius: 10px; font-weight: 700; }
.seen-tag.seen { background: #dcfce7; color: #166534; }
.seen-tag.unseen { background: #fef3c7; color: #b45309; }

/* Branded Report Print Header */
.report-branded-header {
    background: linear-gradient(135deg, #151442, #0f766e);
    color: #fff;
    padding: 20px 24px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.report-branded-header img {
    width: 68px; height: 68px; border-radius: 50%; border: 3px solid #fde68a; background: #fff;
}


/* ==========================================================================
   SOLAIMANLIPI FONT ENFORCEMENT & CARD LAYOUT STABILITY (/ponytail-audit)
   ========================================================================== */
body, h1, h2, h3, h4, h5, h6, p, a, span:not(.fa):not([class*="fa-"]), li, td, th, label, button, input, select, textarea,
.about-wrapper, .legitimacy-wrapper, .objectives-wrapper, .terms-wrapper {
    font-family: 'SolaimanLipi', 'Hind Siliguri', 'Segoe UI', system-ui, sans-serif !important;
}

/* Preserve Font Awesome 4 & 6 Icons */
.fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands, i[class*="fa-"] {
    font-family: FontAwesome, "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

/* Prevent Grid & Card Horizontal/Vertical Breaking on All Screen Sizes */
.grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
.grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.card {
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    height: 100%;
}

.card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-body > p,
.card-excerpt-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    line-height: 1.65;
    margin-bottom: 16px;
}

.card-title-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.45;
    min-height: 2.85em;
}

.card-footer {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.card-body > .btn {
    margin-top: auto;
    justify-content: center;
}


/* ==========================================================================
   PAYMENT VOUCHER / MONEY RECEIPT PRINT STYLES
   ========================================================================== */
#dcpVoucherPrintContainer {
    display: none;
}

@media print {
    body.printing-payment-voucher > *:not(#dcpVoucherPrintContainer) {
        display: none !important;
    }
    body.printing-payment-voucher {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }
    body.printing-payment-voucher #dcpVoucherPrintContainer {
        display: block !important;
        width: 100% !important;
    }
}


/* ==========================================================================
   COMPREHENSIVE MOBILE & TABLET DASHBOARD RESPONSIVENESS (v6.0)
   Preserves 100% of existing Admin Panel design & internal systems
   ========================================================================== */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.dcp-syllabus-row {
    display: grid;
    grid-template-columns: 1fr 2.5fr 1.2fr auto;
    gap: 8px;
    margin-bottom: 8px;
}

@media (max-width: 860px) {
    .dcp-sidebar {
        width: 100%;
        height: auto;
        position: static;
    }
    .dcp-brand {
        padding: 12px 14px;
    }
    .dcp-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding: 8px 10px 10px;
    }
    .dcp-nav li {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .dcp-nav a {
        padding: 8px 12px;
        font-size: 0.82rem;
        white-space: nowrap;
        gap: 8px;
    }
    .dcp-topbar {
        padding: 12px 14px;
        gap: 10px;
    }
    .dcp-topbar h1 {
        font-size: 1.06rem;
    }
    .dcp-content {
        padding: 14px;
    }
}

@media (max-width: 640px) {
    .dcp-content {
        padding: 10px;
    }
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 16px;
    }
    .kpi-card {
        padding: 12px;
        gap: 8px;
    }
    .kpi-info h4 {
        font-size: 0.74rem;
    }
    .kpi-info h2 {
        font-size: 1.22rem;
    }
    .kpi-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: 10px;
        flex-shrink: 0;
    }
    .counter-filter-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 10px;
    }
    .counter-filter-bar input[type="text"],
    .counter-filter-bar input[type="search"],
    .counter-filter-bar select {
        width: 100% !important;
        max-width: 100% !important;
    }
    .counter-pills {
        gap: 6px;
    }
    .counter-pill {
        padding: 6px 10px;
        font-size: 0.78rem;
    }
    .panel-header {
        padding: 12px 14px;
    }
    .panel-header h3 {
        font-size: 0.95rem;
    }
    .panel-body {
        padding: 12px;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .dcp-syllabus-row {
        grid-template-columns: 1fr;
        background: #f8fafc;
        padding: 10px;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
    }
    .dcp-table-wrap {
        -webkit-overflow-scrolling: touch;
    }
    .dcp-table th, .dcp-table td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    .dcp-modal-backdrop {
        padding: 10px;
    }
    .dcp-modal-box {
        max-height: 92vh;
        border-radius: 12px;
    }
    .dcp-modal-head {
        padding: 12px 14px;
    }
    .dcp-modal-body {
        padding: 14px;
    }
    .qv-hero-banner {
        padding: 14px;
        flex-direction: column;
        text-align: center;
    }
    .qv-info-grid {
        grid-template-columns: 1fr;
    }
    .report-branded-header {
        padding: 14px;
        flex-direction: column;
        text-align: center;
    }
    .awesome-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: 0;
        max-width: none;
    }
    .login-anim-card {
        padding: 24px 18px;
        border-radius: 16px;
    }
    .timelock-clock-badge {
        font-size: 1.22rem;
        padding: 10px 14px;
    }
}

@media (max-width: 380px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   MOBILE ADMIN PANEL FIXES (v6.1 - Fixes #adminAppRoot flex-direction & drawer)
   ========================================================================== */
.dcp-mobile-menu-btn {
    display: none;
    align-items: center;
    gap: 6px;
    background: var(--dcp-primary);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

@media (max-width: 860px) {
    #adminAppRoot {
        flex-direction: column !important;
        width: 100% !important;
    }
    .dcp-sidebar {
        width: 100% !important;
        height: auto !important;
        position: sticky !important;
        top: 0;
        z-index: 1000;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
    }
    .dcp-brand {
        justify-content: space-between;
        padding: 10px 14px;
    }
    .dcp-brand h2 {
        font-size: 1rem;
    }
    .dcp-mobile-menu-btn {
        display: inline-flex;
    }
    .dcp-nav {
        display: none !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        overflow-x: visible !important;
        max-height: 70vh;
        overflow-y: auto;
        padding: 10px 12px 14px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        gap: 4px !important;
    }
    .dcp-nav.open {
        display: flex !important;
    }
    .dcp-nav li {
        width: 100%;
    }
    .dcp-nav a {
        width: 100%;
        padding: 10px 12px;
        font-size: 0.88rem;
        white-space: normal;
    }
    .dcp-main {
        width: 100% !important;
        min-width: 0 !important;
    }
    .dcp-topbar {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 14px;
        gap: 10px;
    }
    .dcp-topbar h1 {
        font-size: 1.05rem;
        line-height: 1.35;
    }
    .dcp-user-bar {
        width: 100%;
        justify-content: flex-start;
    }
    .dcp-user-bar input[type="search"] {
        flex: 1 1 100%;
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 640px) {
    .dcp-content input:not([type="checkbox"]):not([type="radio"]),
    .dcp-content select,
    .dcp-content textarea,
    .dcp-modal-body input:not([type="checkbox"]):not([type="radio"]),
    .dcp-modal-body select,
    .dcp-modal-body textarea {
        max-width: 100% !important;
    }
    .panel-header > div,
    .pagination-bar,
    .bulk-action-bar {
        width: 100%;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .panel-header input,
    .panel-header select {
        flex: 1 1 100%;
        width: 100% !important;
    }
    .dcp-modal-body [style*="display:flex"],
    .dcp-content [style*="display:flex"] {
        flex-wrap: wrap;
    }
}


/* ==========================================================================
   ADMIN CERTIFICATE VIEW, SINGLE PRINT & BULK PRINT STYLES (v6.3)
   ========================================================================== */
.admin-cert-preview-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-cert-sheet-card {
    border: 8px solid #151442;
    padding: 10px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.admin-cert-inner-border {
    border: 3px double #d97706;
    padding: 24px 26px;
    background: linear-gradient(135deg, #fffdf7 0%, #ffffff 60%, #f0fdfa 100%);
    font-family: Georgia, 'Times New Roman', serif;
}

.admin-cert-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    border-bottom: 2px solid #151442;
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.admin-cert-top img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid #151442;
    object-fit: cover;
}

.admin-cert-top h2 {
    margin: 0;
    color: #151442;
    font-size: 1.55rem;
    letter-spacing: 1px;
}

.admin-cert-top p {
    margin: 3px 0 8px;
    font-family: sans-serif;
    font-size: 0.78rem;
    color: #475569;
}

.admin-cert-pill {
    display: inline-block;
    background: #0f766e;
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-family: sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.admin-cert-meta {
    font-family: sans-serif;
    font-size: 0.8rem;
    text-align: right;
    color: #1e293b;
    line-height: 1.55;
}

.admin-cert-body p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #0f172a;
    text-align: justify;
    margin: 0 0 24px;
}

.cert-hl {
    color: #0f766e;
    font-size: 1.12rem;
}

.cert-grade {
    color: #b45309;
    font-size: 1.1rem;
}

.admin-cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 12px;
}

.cert-sign-box {
    text-align: center;
    min-width: 150px;
    font-family: sans-serif;
}

.cert-sign-line {
    border-top: 2px solid #151442;
    margin-bottom: 6px;
}

.cert-sign-box strong {
    display: block;
    font-size: 0.84rem;
    color: #151442;
}

.cert-sign-box small {
    font-size: 0.74rem;
    color: #64748b;
}

.cert-seal-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 3px double #d97706;
    background: #fef3c7;
    color: #92400e;
    font-family: sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    text-align: center;
}

.cert-seal-box i {
    font-size: 1.5rem;
    color: #d97706;
    margin-bottom: 2px;
}

#adminBulkCertPrintSheet {
    display: none;
}

@media (max-width: 640px) {
    .admin-cert-inner-border {
        padding: 14px 12px;
    }
    .admin-cert-top {
        flex-direction: column;
        text-align: center;
    }
    .admin-cert-meta {
        text-align: center;
    }
    .admin-cert-body p {
        font-size: 0.92rem;
        line-height: 1.7;
        text-align: left;
    }
    .admin-cert-footer {
        justify-content: center;
        text-align: center;
    }
}

@media print {
    body.printing-admin-certs > *:not(#adminBulkCertPrintSheet) {
        display: none !important;
    }
    body.printing-admin-certs {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }
    body.printing-admin-certs #adminBulkCertPrintSheet {
        display: block !important;
        width: 100% !important;
    }
    body.printing-admin-certs .admin-print-cert-page {
        page: dcitCertLandscape;
        page-break-after: always;
        page-break-inside: avoid;
        padding: 20px;
    }
    body.printing-admin-certs .admin-print-cert-page:last-child {
        page-break-after: auto;
    }
}

/* Wide Modal for Exact Customer-View Landscape Certificate & Landscape Print */
.dcp-modal-box.dcp-modal-cert-wide {
    max-width: 1060px !important;
}

@page dcitCertLandscape {
    size: letter landscape;
    margin: 0;
}

@media print {
    body.printing-admin-certs #adminBulkCertPrintSheet {
        display: block !important;
        width: 11in !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    body.printing-admin-certs .admin-print-cert-page {
        page: dcitCertLandscape;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 auto !important;
        padding: 0.28in 0 !important;
        background: #ffffff !important;
        page-break-after: always !important;
        break-after: page !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    body.printing-admin-certs .admin-print-cert-page:last-child {
        page-break-after: auto !important;
        break-after: auto !important;
    }
    body.printing-admin-certs .admin-print-cert-page .dcit-cert-responsive-stage {
        height: auto !important;
        padding: 0 !important;
    }
    body.printing-admin-certs .admin-print-cert-page .dcit-cert-scale-holder {
        transform: none !important;
    }
}
