/* Portal shell: top bar, icon rail that opens into a full menu, and shared page styling. */
:root {
    --sh-primary: #0d9488;
    --sh-primary-dark: #0f766e;
    --sh-soft: #f0fdfa;
    --sh-line: #d5eae2;
    --sh-ink: #0f172a;
    --sh-muted: #64748b;
    --sh-bar: 70px;
    --sh-rail: 76px;
    --sh-rail-open: 288px;
    --sh-body: 'Plus Jakarta Sans', sans-serif;
    --sh-display: 'Outfit', sans-serif;
}

html, body { margin: 0; padding: 0; width: 100%; }
body { font-family: var(--sh-body); background: #f8fafc; color: var(--sh-ink); }

/* Top bar */
.shell-header {
    position: fixed; top: var(--sh-banner, 0px); left: 0; right: 0; z-index: 1200;
    display: flex; align-items: center; gap: 16px;
    height: var(--sh-bar); padding: 0 20px;
    background: rgba(255, 255, 255, .86);
    border-bottom: 1px solid rgba(153, 246, 228, .65);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
}
.shell-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.shell-brand img { display: block; width: auto; height: 44px; }
.shell-role {
    padding-left: 16px; border-left: 2px solid var(--sh-line);
    font: 700 20px/1.1 var(--sh-display); color: var(--sh-primary-dark); white-space: nowrap;
}
.shell-spacer { flex: 1 1 auto; }
.shell-logout, .shell-logout:visited {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-width: 124px; height: 48px; padding: 0 18px;
    border-radius: 12px; background: var(--sh-primary); color: #fff;
    font: 700 14px/1 var(--sh-body); text-decoration: none; white-space: nowrap;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
button.shell-logout { border: 0; cursor: pointer; }
.shell-logout:hover { background: var(--sh-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(13, 148, 136, .22); }
.shell-logout:active { transform: translateY(0); }
.shell-header-toggle {
    display: none; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px;
    background: var(--sh-soft); color: var(--sh-primary); font-size: 18px; cursor: pointer;
}

/* Rail: icons only until opened */
.shell-rail {
    position: fixed; top: calc(var(--sh-bar) + var(--sh-banner, 0px)); bottom: 0; left: 0; z-index: 1150;
    display: flex; flex-direction: column;
    width: var(--sh-rail); overflow: hidden;
    background: #fff; border-right: 1px solid var(--sh-line);
    box-shadow: 0 0 24px rgba(15, 23, 42, .06);
    transition: width .22s ease, transform .22s ease;
}
.shell-rail-toggle {
    display: flex; align-items: center; gap: 14px;
    flex: 0 0 auto; height: 56px; margin: 8px 12px 4px; padding: 0 14px;
    border: 0; border-radius: 12px; background: transparent;
    color: var(--sh-muted); font: 600 15px var(--sh-body); cursor: pointer; white-space: nowrap;
}
.shell-rail-toggle > i:first-child { flex: 0 0 24px; width: 24px; text-align: center; font-size: 18px; }
.shell-rail-toggle:hover { background: var(--sh-soft); color: var(--sh-primary); }
.shell-nav { flex: 1 1 auto; overflow-x: hidden; overflow-y: auto; padding: 4px 12px 20px; }
.shell-nav ul { margin: 0; padding: 0; list-style: none; }
.shell-nav li { margin: 2px 0; list-style: none; }
.shell-nav li::marker { content: none; }
.shell-link, .shell-link:visited {
    display: flex; align-items: center; gap: 14px; width: 100%;
    height: 52px; padding: 0 14px; border: 0; border-radius: 12px;
    background: transparent; color: var(--sh-ink);
    font: 600 15px var(--sh-body); text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.shell-link > i:first-child { flex: 0 0 24px; width: 24px; text-align: center; font-size: 18px; color: var(--sh-muted); }
.shell-link:hover, .shell-group.is-open > .shell-link { background: var(--sh-soft); color: var(--sh-primary-dark); }
.shell-link:hover > i:first-child, .shell-group.is-open > .shell-link > i:first-child { color: var(--sh-primary); }
.shell-link.is-active { background: var(--sh-primary); color: #fff; }
.shell-link.is-active > i:first-child { color: #fff; }
.shell-label { flex: 1 1 auto; text-align: left; opacity: 0; transition: opacity .15s ease; }
.shell-caret { flex: 0 0 auto; margin-left: auto; font-size: 12px; color: var(--sh-muted); opacity: 0; transition: transform .2s ease, opacity .15s ease; }
.shell-group.is-open > .shell-link .shell-caret { transform: rotate(90deg); }
.shell-sub { display: none; margin: 2px 0 6px 38px !important; padding-left: 10px !important; border-left: 2px solid var(--sh-line); }
.shell-sub .shell-link { height: 42px; font-weight: 500; font-size: 14px; }
.shell-sub .shell-link.is-active { background: var(--sh-soft); color: var(--sh-primary-dark); font-weight: 700; }

.shell-backdrop { display: none; position: fixed; inset: calc(var(--sh-bar) + var(--sh-banner, 0px)) 0 0 0; z-index: 1100; background: rgba(15, 23, 42, .28); }

body.shell-open .shell-rail { width: var(--sh-rail-open); }
body.shell-open .shell-label, body.shell-open .shell-caret { opacity: 1; }
body.shell-open .shell-group.is-open > .shell-sub { display: block; }
body.shell-open .shell-backdrop { display: block; }

/* Page area sits beside the rail */
.content-wrapper, .main-footer {
    margin-left: var(--sh-rail) !important; margin-top: 0; width: auto !important;
    background: transparent !important;
}
.content-wrapper { margin-top: calc(var(--sh-bar) + var(--sh-banner, 0px)) !important; min-height: calc(100vh - var(--sh-bar) - 60px); }
.content-wrapper .container-full { width: 100% !important; max-width: none !important; }
.content-wrapper .content { box-sizing: border-box; width: 100%; padding: 28px 32px; }
.main-footer { padding: 16px 32px; border-top: 1px solid var(--sh-line); background: #fff !important; color: var(--sh-muted); font-size: 14px; }

/* Dashboard blocks */
.sh-welcome { margin: 0 0 24px; }
.sh-welcome h1 { margin: 0 0 4px; font: 700 28px/1.2 var(--sh-display); }
.sh-welcome p { margin: 0; color: var(--sh-muted); }
.sh-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.sh-stat { display: flex; align-items: center; gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--sh-line); border-radius: 16px; box-shadow: 0 6px 18px rgba(15, 118, 110, .06); }
.sh-stat-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; background: var(--sh-soft); color: var(--sh-primary); font-size: 22px; }
.sh-stat strong { display: block; font: 700 30px/1.1 var(--sh-display); }
.sh-stat span { color: var(--sh-muted); font-size: 14px; font-weight: 600; }
.sh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.sh-card { padding: 20px 22px; background: #fff; border: 1px solid var(--sh-line); border-radius: 16px; box-shadow: 0 6px 18px rgba(15, 118, 110, .06); }
.sh-card.sh-wide { grid-column: 1 / -1; }
.sh-card h2 { margin: 0 0 12px; font: 600 18px var(--sh-display); }

/* Forms */
.content-wrapper .box { margin: 0 0 24px; border-radius: 16px; overflow: hidden; }
.content-wrapper .box-header.with-border { padding: 20px 28px; border-bottom: 1px solid var(--sh-line) !important; background: #fff; }
.content-wrapper .box-header .box-title { margin: 0; font: 600 20px/1.3 var(--sh-display) !important; }
.content-wrapper .box-body { padding: 24px 28px !important; }
.content-wrapper .box-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 28px !important; border-top: 1px solid var(--sh-line) !important; background: #f8fafc !important; }
.content-wrapper .box-footer .btn { float: none !important; margin: 0 !important; }

.content-wrapper .form-group.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0 !important; }
.content-wrapper .form-group.row > [class*="col-"] { width: auto; max-width: none; padding: 0; flex: none; }
.content-wrapper .form-group.row > .col-lg-12, .content-wrapper .form-group.row > .box-header, .content-wrapper .form-group.row > .box-footer { grid-column: 1 / -1; }
.content-wrapper .form-group.row > .box-header { margin: 8px 0 18px; padding: 0 0 0 12px !important; border: 0 !important; border-left: 4px solid var(--sh-primary) !important; background: transparent; }
.content-wrapper .form-group.row > .box-header .box-title { font: 600 17px/1.3 var(--sh-display) !important; color: var(--sh-primary-dark) !important; }
.content-wrapper .form-group { margin-bottom: 20px; }

.content-wrapper .form-label, .content-wrapper .form-group > label { display: block; margin: 0 0 7px; color: #334155; font: 600 13.5px/1.4 var(--sh-body); }
.content-wrapper .form-control, .content-wrapper select.form-control, .content-wrapper textarea.form-control, .content-wrapper input[type=text], .content-wrapper input[type=number], .content-wrapper input[type=email], .content-wrapper input[type=tel], .content-wrapper input[type=date], .content-wrapper input[type=password] {
    display: block; box-sizing: border-box; width: 100%; height: 46px; padding: 0 14px;
    border: 1px solid #cbd9d4; border-radius: 10px; background-color: #fff; color: var(--sh-ink);
    font: 500 15px var(--sh-body); box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.content-wrapper textarea.form-control { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.5; }
.content-wrapper .form-control::placeholder { color: #94a3b8; font-weight: 400; }
.content-wrapper .form-control:hover { border-color: #99cfc4; }
.content-wrapper .form-control:focus { border-color: var(--sh-primary); box-shadow: 0 0 0 4px rgba(13, 148, 136, .14); outline: 0; }
.content-wrapper .form-control[readonly], .content-wrapper .form-control:disabled { background-color: #f1f5f9; color: var(--sh-muted); cursor: not-allowed; }
.content-wrapper select.form-control {
    appearance: none; -webkit-appearance: none; padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.content-wrapper input[type=file].form-control, .content-wrapper input[type=file] { height: auto; padding: 8px 10px; font: 500 14px var(--sh-body); color: var(--sh-muted); }
.content-wrapper input[type=file]::file-selector-button { margin-right: 12px; padding: 8px 16px; border: 0; border-radius: 8px; background: var(--sh-soft); color: var(--sh-primary-dark); font: 700 13px var(--sh-body); cursor: pointer; }
.content-wrapper input[type=file]::file-selector-button:hover { background: #ccfbf1; }
.content-wrapper input[type=checkbox], .content-wrapper input[type=radio] { accent-color: var(--sh-primary); }

.content-wrapper .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px; border-radius: 10px; font: 700 14px/1 var(--sh-body) !important; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.content-wrapper .btn-primary, .content-wrapper .btn-info, .content-wrapper .btn-success, .content-wrapper button[type=submit].btn-danger { border: 1px solid var(--sh-primary) !important; background: var(--sh-primary) !important; color: #fff !important; }
.content-wrapper .btn-primary:hover, .content-wrapper .btn-info:hover, .content-wrapper .btn-success:hover, .content-wrapper button[type=submit].btn-danger:hover { border-color: var(--sh-primary-dark) !important; background: var(--sh-primary-dark) !important; color: #fff !important; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(13, 148, 136, .22); }
.content-wrapper .box-footer button[type=submit].btn-danger { border-color: #cbd9d4 !important; background: #fff !important; color: #334155 !important; }
.content-wrapper .box-footer button[type=submit].btn-danger:hover { border-color: var(--sh-primary) !important; background: var(--sh-soft) !important; color: var(--sh-primary-dark) !important; box-shadow: none; }
.content-wrapper .btn-danger:not([type=submit]) { border: 1px solid #dc2626 !important; background: #dc2626 !important; color: #fff !important; }
.content-wrapper .btn-danger:not([type=submit]):hover { border-color: #b91c1c !important; background: #b91c1c !important; color: #fff !important; }

.content-wrapper .select-form {
    display: block; box-sizing: border-box; width: 100%; height: 46px; padding: 0 40px 0 14px;
    border: 1px solid #cbd9d4; border-radius: 10px; color: var(--sh-ink); font: 500 15px var(--sh-body);
    appearance: none; -webkit-appearance: none; background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.content-wrapper .select-form:focus { border-color: var(--sh-primary); box-shadow: 0 0 0 4px rgba(13, 148, 136, .14); outline: 0; }
.content-wrapper form > .row:has(> [class*="col-"] > .select-form) { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 20px; margin: 0 0 8px; }
.content-wrapper form > .row:has(> [class*="col-"] > .select-form) > [class*="col-"] { width: auto; max-width: none; padding: 0; margin-bottom: 16px; }
.content-wrapper form > .row:has(> [class*="col-"] > .select-form) > [class*="col-"] > label { display: block; margin: 0 0 7px; color: #334155; font: 600 13.5px/1.4 var(--sh-body); }
.content-wrapper form > .row:has(> [class*="col-"] > .select-form) > :not([class*="col-"]) { grid-column: 1 / -1; min-width: 0; }
.content-wrapper input[type=submit].btn, .content-wrapper input[type=submit] { min-height: 46px; padding: 0 24px; border: 1px solid var(--sh-primary); border-radius: 10px; background: var(--sh-primary); color: #fff; font: 700 14px var(--sh-body); cursor: pointer; }
.content-wrapper input[type=submit]:hover { border-color: var(--sh-primary-dark); background: var(--sh-primary-dark); }
.content-wrapper .content-header { padding: 28px 32px 0; }
.content-wrapper .page-title { margin: 0; font: 600 26px/1.2 var(--sh-display) !important; color: var(--sh-ink) !important; }
.content-wrapper #dynamic_field { width: 100%; border-color: var(--sh-line) !important; }
.content-wrapper #dynamic_field td { padding: 6px 8px; border-color: var(--sh-line) !important; }
.content-wrapper span[style*="color:  red"] { color: var(--sh-primary-dark) !important; }
.content-wrapper #uploadForm { display: block; width: min(100%, 680px); margin: 24px auto; padding: 24px; background: var(--sh-soft); border: 1px solid #99f6e4; border-radius: 14px; }
.content-wrapper #uploadForm label { display: block; margin: 0 0 7px; color: #334155; font: 600 13.5px/1.4 var(--sh-body); }
.content-wrapper #uploadForm { text-align: left; }
.content-wrapper #uploadForm input[type=text], .content-wrapper #uploadForm input[type=file] { display: block; box-sizing: border-box; width: 100%; margin-bottom: 18px; border: 1px solid #cbd9d4; border-radius: 10px; background: #fff; }
.content-wrapper .progress { height: 10px; border-radius: 999px; background: #eaf4f0; overflow: hidden; }
.content-wrapper .progress-bar { height: 100%; background: var(--sh-primary); color: #fff; font: 600 11px var(--sh-body); }
.content-wrapper > .container-full > form { margin: 16px 32px 24px; padding: 24px; background: #fff; border: 1px solid var(--sh-line); border-radius: 16px; box-shadow: 0 6px 18px rgba(15, 118, 110, .06); }
/* Table pages: toolbar, status pills, icon buttons, pager */
.content-wrapper .content-header.sh-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.sh-tablewrap table.dataTable tbody td .sh-wrap { min-width: 240px; max-width: 420px; white-space: normal; line-height: 1.5; }
.content-wrapper .page-sub { margin: 4px 0 0; color: var(--sh-muted); font-size: 14px; }
.sh-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; padding: 22px 28px; border-bottom: 1px solid var(--sh-line); background: #fff; }
.sh-toolbar-field { flex: 1 1 220px; max-width: 340px; }
.sh-toolbar-field label { display: block; margin: 0 0 7px; color: #334155; font: 600 13.5px/1.4 var(--sh-body); }
.sh-toolbar .btn { flex: 0 0 auto; }
.content-wrapper .btn.sh-btn-ghost { border: 1px solid #cbd9d4; background: #fff; color: #334155; }
.content-wrapper .btn.sh-btn-ghost:hover { border-color: var(--sh-primary); background: var(--sh-soft); color: var(--sh-primary-dark); }
.sh-tablewrap { padding: 20px 28px 8px; }
.sh-scroll { width: 100%; overflow-x: auto; }
.sh-tablewrap table.dataTable { width: 100% !important; margin: 0 !important; }
.sh-tablewrap table.dataTable thead th { text-align: left; white-space: nowrap; padding: 14px 30px 14px 18px !important; }
.sh-tablewrap table.dataTable tbody td { white-space: nowrap; padding: 12px 18px !important; }
.sh-actions { display: flex; align-items: center; gap: 8px; }
.sh-status { min-width: 78px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; font: 700 12px var(--sh-body); cursor: pointer; }
.sh-status.is-on { background: #dcfce7; color: #166534; }
.sh-status.is-off { background: #fee2e2; color: #991b1b; }
.sh-status.is-pending { background: #fef3c7; color: #92400e; cursor: default; }
.sh-status:hover { filter: brightness(.96); }
.sh-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: var(--sh-soft); color: var(--sh-primary) !important; font-size: 15px; }
.sh-icon-btn:hover { background: #ccfbf1; color: var(--sh-primary-dark) !important; }
button.sh-icon-btn { padding: 0; border: 0; cursor: pointer; }
.sh-icon-btn.is-danger { background: #fee2e2; color: #b91c1c !important; }
.sh-icon-btn.is-danger:hover { background: #fecaca; color: #991b1b !important; }
.sh-icon-btn.is-warn { background: #fef3c7; color: #b45309 !important; }
.sh-icon-btn.is-warn:hover { background: #fde68a; color: #92400e !important; }
.sh-thumb { display: block; width: 72px; height: 72px; border-radius: 10px; object-fit: contain; background: #f8fafc; border: 1px solid var(--sh-line); }
.sh-tabs { display: inline-flex; gap: 4px; margin: 20px 28px 4px; padding: 4px; border-radius: 12px; background: #eaf4f0; }
.sh-tabs a { padding: 9px 18px; border-radius: 9px; color: #334155 !important; font: 600 14px var(--sh-body); }
.sh-tabs a.is-current { background: #fff; color: var(--sh-primary-dark) !important; box-shadow: 0 2px 8px rgba(15, 118, 110, .12); }
.sh-note { margin: 16px 28px 0; font: 600 14px var(--sh-body); color: var(--sh-primary-dark); }
.sh-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 14px 28px 24px; }
.sh-pagination-info { color: var(--sh-muted); font-size: 14px; }
.sh-perpage { display: flex; align-items: center; gap: 10px; margin: 0; }
.sh-perpage label { margin: 0; color: #334155; font: 600 13.5px var(--sh-body); white-space: nowrap; }
.sh-perpage .select-form { width: 84px; height: 40px; }
.sh-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sh-pager a, .sh-pager span { min-width: 38px; padding: 9px 13px; border: 1px solid var(--sh-line); border-radius: 8px; background: #fff; color: #334155; font: 600 13px var(--sh-body); text-align: center; }
.sh-pager a:hover { border-color: var(--sh-primary); color: var(--sh-primary-dark); }
.sh-pager a.is-current { border-color: var(--sh-primary); background: var(--sh-primary); color: #fff; }
.sh-pager span.is-disabled { color: #94a3b8; background: #f8fafc; }
.sh-pager span.is-gap { min-width: 0; padding: 9px 4px; border: 0; background: transparent; }
/* Styling for the existing admin pages */
.content-wrapper .box { background: #fff !important; border: 1px solid var(--sh-line) !important; box-shadow: 0 8px 24px rgba(15, 118, 110, .08) !important; font-family: var(--sh-body) !important; color: var(--sh-ink) !important; }
.content-wrapper .box-title, .content-wrapper h1, .content-wrapper h2, .content-wrapper h3, .content-wrapper h4, .content-wrapper h5, .content-wrapper h6 { font-family: var(--sh-display) !important; color: var(--sh-ink) !important; }
.content-wrapper label, .content-wrapper p, .content-wrapper td, .content-wrapper th, .content-wrapper li { font-family: var(--sh-body) !important; }
.content-wrapper .table { font-family: var(--sh-body) !important; color: var(--sh-ink) !important; border-color: var(--sh-line) !important; }
.content-wrapper .table thead th, .content-wrapper .table thead td { background: #eaf4f0 !important; color: var(--sh-ink) !important; border-color: var(--sh-line) !important; font-weight: 700 !important; }
.content-wrapper .table tbody td { border-color: var(--sh-line) !important; vertical-align: middle !important; }
.content-wrapper .table tbody tr:hover { background: var(--sh-soft) !important; }
.content-wrapper a { color: var(--sh-primary); text-decoration: none; }
.content-wrapper a:hover { color: var(--sh-primary-dark); }
.content-wrapper [style*="color: red"], .content-wrapper [style*="color:red"] { color: var(--sh-primary-dark) !important; }
.content-wrapper .table-responsive { width: 100% !important; max-width: 100% !important; overflow-x: auto !important; }
.content-wrapper .table-responsive table { width: 100% !important; min-width: 720px; }
.content-wrapper .table-responsive th, .content-wrapper .table-responsive td { vertical-align: middle !important; border-color: var(--sh-line) !important; }
.dataTables_wrapper { width: 100% !important; overflow: visible !important; font-family: var(--sh-body) !important; color: var(--sh-ink) !important; }
.dataTables_wrapper .dataTables_scroll { width: 100% !important; overflow-x: auto !important; overflow-y: visible !important; }
.dataTables_wrapper .dataTables_scrollHead, .dataTables_wrapper .dataTables_scrollBody { min-width: 0 !important; }
.dataTables_wrapper .dt-buttons, .dataTables_wrapper .dataTables_filter { display: flex !important; align-items: center !important; gap: 8px !important; flex-wrap: wrap !important; margin-bottom: 12px !important; }
.dataTables_wrapper .dataTables_filter { float: right !important; justify-content: flex-end !important; }
.dataTables_wrapper .dataTables_filter input { margin-left: 8px !important; border: 1px solid #99f6e4 !important; border-radius: 8px !important; padding: 8px 12px !important; color: var(--sh-ink) !important; font-family: var(--sh-body) !important; }
.dataTables_wrapper .dataTables_info { padding-top: 16px !important; color: var(--sh-muted) !important; }
.dataTables_wrapper .dataTables_paginate { padding-top: 12px !important; white-space: nowrap !important; }
.dataTables_wrapper .paginate_button { border-radius: 6px !important; color: var(--sh-primary) !important; font-family: var(--sh-body) !important; }
.dataTables_wrapper .paginate_button.current, .dataTables_wrapper .paginate_button.current:hover { background: var(--sh-primary) !important; border-color: var(--sh-primary) !important; color: #fff !important; }
.dataTables_wrapper .paginate_button:hover { background: var(--sh-soft) !important; border-color: #99f6e4 !important; color: var(--sh-primary-dark) !important; }

@media (max-width: 767px) {
    .shell-header { padding: 0 12px; gap: 10px; }
    .shell-header-toggle { display: inline-flex; }
    .shell-brand img { height: 36px; }
    .shell-role { padding-left: 10px; font-size: 16px; }
    .shell-logout { min-width: 0; height: 42px; padding: 0 14px; }
    .shell-rail { width: var(--sh-rail-open); max-width: 86vw; transform: translateX(-100%); }
    body.shell-open .shell-rail { width: var(--sh-rail-open); transform: translateX(0); }
    .shell-label, .shell-caret { opacity: 1; }
    .content-wrapper, .main-footer { margin-left: 0 !important; }
    .content-wrapper .content { padding: 20px 16px; }
    .sh-grid { grid-template-columns: 1fr; }
    .content-wrapper .box { margin-bottom: 18px !important; }
    .content-wrapper .box-body { padding: 16px !important; }
    .content-wrapper .table-responsive { overflow-x: auto !important; }
}

@media (max-width: 767px) {
    .content-wrapper .form-group.row { grid-template-columns: 1fr; }
    .content-wrapper .box-header.with-border, .content-wrapper .box-body, .content-wrapper .box-footer { padding-left: 18px !important; padding-right: 18px !important; }
}

/* Charts: the admin template paints every chart label pale grey; use readable ink instead */
.apexcharts-canvas text { fill: #334155 !important; }
.apexcharts-canvas .apexcharts-datalabels text, .apexcharts-canvas .apexcharts-pie-label { fill: #ffffff !important; }

/* Dashboard extras */
.sh-stat small { display: block; margin-top: 2px; color: #94a3b8; font-size: 12.5px; font-weight: 600; }
.sh-grid.sh-grid-side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.sh-attention { margin: 0; padding: 0; list-style: none; }
.sh-attention li { list-style: none; margin: 0 0 10px; }
.sh-attention a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--sh-line); border-radius: 12px; background: #fff; color: var(--sh-ink) !important; }
.sh-attention a:hover { border-color: var(--sh-primary); background: var(--sh-soft); }
.sh-attention-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; background: #f1f5f9; color: #64748b; }
.sh-attention-text { flex: 1 1 auto; font: 600 14px/1.35 var(--sh-body); }
.sh-attention strong { min-width: 34px; padding: 4px 10px; border-radius: 999px; background: #f1f5f9; color: #64748b; font: 700 14px var(--sh-body); text-align: center; }
.sh-attention li.is-open .sh-attention-icon { background: #fef3c7; color: #b45309; }
.sh-attention li.is-open strong { background: #f59e0b; color: #fff; }
.sh-clear { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: #dcfce7; color: #166534; font: 600 14px var(--sh-body); }
.sh-list { width: 100%; border-collapse: collapse; font-family: var(--sh-body); }
.sh-list th { padding: 8px 10px; border-bottom: 1px solid var(--sh-line); color: var(--sh-muted); font-size: 12.5px; font-weight: 700; text-align: left; text-transform: uppercase; letter-spacing: .03em; }
.sh-list td { padding: 11px 10px; border-bottom: 1px solid #eef3f1; font-size: 14px; }
.sh-more { display: inline-block; margin-top: 14px; font: 700 14px var(--sh-body); }
@media (max-width: 991px) { .sh-grid.sh-grid-side { grid-template-columns: 1fr; } }
@media (max-width: 991px) { .sh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .sh-stats { grid-template-columns: 1fr; } }

/* Name of the center or candidate in the top bar */
.shell-who { margin-left: 4px; color: var(--sh-ink); font: 600 15px var(--sh-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shell-who small { margin-left: 8px; color: var(--sh-muted); font: 500 13px 'JetBrains Mono', monospace; }
@media (max-width: 767px) { .shell-who { display: none; } }
@media (min-width: 1200px) { .sh-stats.sh-stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Student dashboard */
.sh-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.sh-next h2 { margin: 0 0 4px; font: 600 20px var(--sh-display); }
.sh-next p { margin: 0; color: var(--sh-muted); }
.sh-next.is-action { border-color: var(--sh-primary); background: linear-gradient(135deg, #f0fdfa, #ffffff); }
.sh-stat-text { font-size: 20px !important; line-height: 1.25 !important; }
.sh-stat.is-done .sh-stat-icon { background: #dcfce7; color: #166534; }
.sh-stat.is-now .sh-stat-icon { background: #fef3c7; color: #b45309; }
.sh-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 18px 0 6px; padding: 0; list-style: none; }
.sh-steps li { position: relative; padding-top: 44px; text-align: center; list-style: none; }
.sh-steps li::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 22px); width: calc(100% - 44px); height: 3px; border-radius: 2px; background: #e2e8f0; }
.sh-steps li:first-child::before { display: none; }
.sh-steps li.is-done::before, .sh-steps li.is-now::before { background: var(--sh-primary); }
.sh-step-dot { position: absolute; z-index: 1; top: 0; left: 50%; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-left: -16px; border-radius: 50%; background: #e2e8f0; color: transparent; font-size: 13px; }
.sh-steps li.is-done .sh-step-dot { background: var(--sh-primary); color: #fff; }
.sh-steps li.is-now .sh-step-dot { background: #fff; border: 3px solid #f59e0b; }
.sh-steps strong { display: block; font: 700 14px var(--sh-body); }
.sh-steps small { display: block; margin-top: 2px; color: var(--sh-muted); font: 500 13px var(--sh-body); }
.sh-facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; }
.sh-facts dt { color: var(--sh-muted); font: 600 13.5px var(--sh-body); }
.sh-facts dd { margin: 0; font: 600 14.5px var(--sh-body); word-break: break-word; }
.sh-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.sh-video { overflow: hidden; padding: 0; }
.sh-video h2 { margin: 0; padding: 16px 20px; font: 600 16px var(--sh-display); }
.sh-video iframe { display: block; width: 100%; height: 240px; border: 0; background: #0f172a; }
@media (max-width: 575px) { .sh-steps { grid-template-columns: 1fr; } .sh-steps li { padding: 0 0 0 46px; text-align: left; min-height: 40px; } .sh-steps li::before { display: none; } .sh-step-dot { left: 0; margin-left: 0; } }

/* Profile page */
.sh-profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; margin-bottom: 24px; }
.sh-avatar { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid #99f6e4; background: var(--sh-soft); }
.sh-avatar-text { display: flex; align-items: center; justify-content: center; color: var(--sh-primary-dark); font: 700 30px var(--sh-display); }
.sh-profile-who { flex: 1 1 260px; }
.sh-profile-who h1 { margin: 0; font: 700 26px/1.2 var(--sh-display); }
.sh-profile-who p { margin: 4px 0 10px; color: var(--sh-muted); }
.sh-chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--sh-soft); color: var(--sh-primary-dark); font: 700 13px 'JetBrains Mono', monospace; }
@media print {
    .shell-header, .shell-rail, .shell-backdrop, .main-footer, .sh-noprint { display: none !important; }
    .content-wrapper { margin: 0 !important; }
    body { background: #fff; }
    .sh-card { box-shadow: none; break-inside: avoid; }
}
