* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; background: #f4f7fb; color: #223047; }
a { color: inherit; }
.top-header {
    min-height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 10px 30px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-left, .logo-section, .header-right { display: flex; align-items: center; }
.header-left { gap: 14px; min-width: 0; }
.header-right { position: relative; gap: 10px; flex-shrink: 0; }
.logo-section {
    gap: 12px;
    min-width: 0;
    padding: 7px 14px 7px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid #e5edf7;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
}
.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #f0fdf4;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.14);
}
.logo-mark img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    background: transparent;
}
.menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    border: 1px solid #dbeafe;
    background: #f1f6ff;
    color: #0f4c81;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.menu-toggle:hover {
    background: #e7f0ff;
    border-color: #bfdbfe;
    color: #0d6efd;
    transform: translateY(-1px);
}
.menu-toggle i {
    transform: translateX(1px);
}
.logo-text {
    font-size: 18px;
    font-weight: 900;
    color: #0f4c81;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.header-user-info {
    min-height: 44px;
    padding: 7px 14px 7px 16px;
    border-left: 1px solid #e2e8f0;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.header-user-name { font-size: 14px; font-weight: 900; color: #172033; line-height: 1.15; }
.header-user-role { margin-top: 2px; font-size: 12px; color: #0f766e; font-weight: 800; line-height: 1.15; }
.logout-btn {
    min-height: 42px;
    color: #dc2626;
    background: #fff5f5;
    border: 1px solid #fee2e2;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.logout-btn:hover {
    background: #fee2e2;
    border-color: #fecaca;
    transform: translateY(-1px);
}
.notification-wrap { position: relative; }
.notification-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 14px;
    background: #f1f6ff;
    color: #0f4c81;
    cursor: pointer;
    font-size: 17px;
    box-shadow: inset 0 0 0 1px #e1ecff;
    transition: background 0.2s ease, transform 0.2s ease;
}
.notification-btn:hover { background: #e7f0ff; transform: translateY(-1px); }
.theme-wrap { position: relative; }
.theme-btn {
    height: 44px;
    border: none;
    border-radius: 14px;
    background: #f1f6ff;
    color: #0f4c81;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    box-shadow: inset 0 0 0 1px #e1ecff;
    transition: background 0.2s ease, transform 0.2s ease;
}
.theme-btn:hover { background: #e7f0ff; transform: translateY(-1px); }
.theme-btn i { font-size: 16px; }
.theme-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 190px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    display: none;
    z-index: 150;
    padding: 8px;
}
.theme-panel.show { display: block; }
.theme-panel-head {
    padding: 8px 10px 10px;
    color: #0d6efd;
    font-size: 13px;
    font-weight: 800;
}
.theme-option-btn {
    width: 100%;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #334155;
    padding: 10px 11px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}
.theme-option-btn:hover,
.theme-option-btn.active {
    background: #eef5ff;
    color: #0d6efd;
}
.notification-badge {
    position: absolute;
    top: -6px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}
.notification-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 420px;
    background: #fff;
    border: 1px solid #dbe7f5;
    border-radius: 18px;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    display: none;
    z-index: 150;
}
.notification-panel.show { display: block; }
.notification-panel-head,
.notification-panel-foot {
    padding: 16px 18px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef7ff 100%);
    border-bottom: 1px solid #e8eef5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.notification-panel-foot {
    border-top: 1px solid #e8eef5;
    border-bottom: none;
}
.notification-panel-head span {
    font-size: 15px;
    font-weight: 900;
    color: #0f4c81;
}
.notification-read-all,
.notification-view-all {
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}
.notification-panel-body {
    max-height: 420px;
    overflow-y: auto;
}
.notification-item {
    position: relative;
    display: block;
    padding: 15px 18px 15px 42px;
    border-bottom: 1px solid #edf2f7;
    text-decoration: none;
    color: #223047;
}
.notification-item::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 20px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #cbd5e1;
}
.notification-item.unread {
    background: #f8fbff;
}
.notification-item.unread::before {
    background: #0f766e;
    box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.11);
}
.notification-item.read {
    background: #fff;
}
.notification-item:hover {
    background: #eef7ff;
}
.notification-title {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
}
.notification-message {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
    color: #4b5563;
}
.notification-time {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: #64748b;
    font-weight: 800;
}
.notification-empty {
    padding: 20px 16px;
    font-size: 13px;
    color: #64748b;
    text-align: center;
}
.sidebar {
    width: 260px;
    height: 100vh;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fbff 52%, #f4f8fd 100%);
    position: fixed;
    top: 0;
    left: -260px;
    transition: left 0.3s ease;
    z-index: 99;
    box-shadow: 12px 0 32px rgba(15, 23, 42, 0.08);
    overflow-y: auto;
    border-right: 1px solid #e5edf7;
}
.sidebar.open { left: 0; }
.sidebar-header {
    padding: 18px 18px 12px;
    background: transparent;
    border-bottom: none;
    margin-top: 72px;
}
.sidebar-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.sidebar-title::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #0d6efd;
    box-shadow: 0 0 0 5px rgba(13, 110, 253, 0.1);
}
.sidebar-profile-section {
    margin: 0 14px 14px;
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(22, 163, 74, 0.07)),
        #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}
.sidebar-profile-section::after {
    content: "";
    position: absolute;
    right: -28px;
    top: -34px;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.08);
}
.sidebar-profile-section > div {
    position: relative;
    z-index: 1;
}
.sidebar-profile-name {
    display: block;
    font-weight: 900;
    font-size: 15px;
    line-height: 1.25;
    color: #172033;
}
.sidebar-profile-role {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 11px;
    color: #0d6efd;
    font-weight: 900;
    background: #e7f1ff;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #dbeafe;
}
.sidebar-profile-role::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #16a34a;
}
.sidebar-menu { padding: 4px 12px 20px; }
.sidebar-item {
    position: relative;
    padding: 13px 14px;
    margin: 7px 0;
    border-radius: 14px;
    color: #334155;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 14px;
    font-weight: 800;
    border: 1px solid transparent;
}
.sidebar-item i:first-child,
.sidebar-toggle-left i {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    flex-shrink: 0;
}
.sidebar-item:hover {
    background: #eef5ff;
    border-color: #dbeafe;
    color: #0d6efd;
    transform: translateX(2px);
}
.sidebar-item:hover i:first-child,
.sidebar-item:hover .sidebar-toggle-left i {
    color: #0d6efd;
}
.sidebar-item.active {
    background: linear-gradient(135deg, #0d6efd 0%, #2563eb 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 24px rgba(13, 110, 253, 0.25);
}
.sidebar-item.active::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 13px;
    bottom: 13px;
    width: 4px;
    border-radius: 999px;
    background: #0d6efd;
}
.sidebar-item.active i:first-child,
.sidebar-item.active .sidebar-toggle-left i,
.sidebar-item.active .toggle-icon {
    color: #ffffff;
}
.sidebar-toggle { justify-content: space-between; cursor: pointer; }
.sidebar-toggle-left { display: flex; align-items: center; gap: 12px; }
.submenu {
    display: none;
    margin: 4px 0 10px 22px;
    padding-left: 12px;
    border-left: 1px dashed #cbd5e1;
}
.submenu.show { display: block; }
.submenu .sidebar-item {
    font-size: 13px;
    padding: 11px 12px;
    margin: 5px 0;
    border-radius: 12px;
    font-weight: 800;
}
.submenu .sidebar-item.active::before {
    left: -13px;
}
.toggle-icon { font-size: 12px; transition: transform 0.2s ease; }
.toggle-icon.rotate { transform: rotate(180deg); }
.main-content { margin-left: 0; padding: 8px 22px 22px; transition: margin-left 0.3s ease; min-height: 100vh; }
.main-content.shifted { margin-left: 260px; }
.page-card, .table-container, .content-card {
    background: #fff;
    border: 1px solid #e5edf7;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}
.page-card, .content-card { padding: 24px; margin-bottom: 22px; }
.page-card h3, .content-card h3 {
    color: #0f4c81;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 900;
}
.page-card h3 i, .content-card h3 i {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #eef5ff;
    color: #0f4c81;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.page-card h3 + form,
.content-card h3 + form {
    margin-top: 18px;
}
.page-card p, .content-card p { color: #4b5563; line-height: 1.6; }
.access-denied-card {
    text-align: center;
    max-width: 640px;
    margin: 42px auto;
    padding: 34px 28px;
}
.access-denied-card h3 {
    justify-content: center;
    font-size: 24px;
    line-height: 1.25;
    margin-bottom: 12px;
}
.access-denied-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 18px;
    background: #eef5ff;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}
.access-denied-card .button-row {
    justify-content: center;
    margin-top: 20px;
}
.table-container { padding: 18px; overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th {
    background: #f8fbff;
    padding: 15px 14px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
td { padding: 15px 14px; border-bottom: 1px solid #edf2f7; vertical-align: top; }
tr:nth-child(even) { background: #fcfdff; }
tbody tr:hover { background: #f8fbff; }
.footer { text-align: center; padding: 20px; font-size: 12px; color: #7b8794; }
.status-message {
    padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; font-weight: 800;
    border: 1px solid transparent;
}
.status-success { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.status-danger { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.status-warning { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.search-form { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; align-items: end; }
.search-input-wrap { flex: 1; min-width: 260px; position: relative; }
.search-input-wrap i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #64748b; }
.search-input {
    width: 100%; padding: 12px 14px 12px 40px; border: 1px solid #d9e2ec; border-radius: 12px; font-size: 14px;
}
.search-btn, .reset-btn, .primary-btn, .secondary-btn, .danger-btn, .success-btn {
    border: 1px solid transparent; border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 800; cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.search-btn, .primary-btn { background: #0f4c81; color: #fff; box-shadow: 0 10px 20px rgba(15, 76, 129, 0.18); }
.reset-btn, .secondary-btn { background: #eef2f7; color: #334155; border-color: #e2e8f0; }
.danger-btn { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.success-btn { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.search-btn:hover, .primary-btn:hover, .secondary-btn:hover, .reset-btn:hover, .danger-btn:hover, .success-btn:hover {
    transform: translateY(-1px);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.full-width { grid-column: 1 / -1; }
label { display: block; font-weight: 800; margin-bottom: 8px; font-size: 13px; color: #334155; }
input, select, textarea {
    width: 100%; padding: 12px; border: 1px solid #d9e2ec; border-radius: 12px; font-size: 14px; background: #fbfdff;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}
.attachment-preview-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    z-index: 9999;
}
.attachment-preview-backdrop.show {
    display: flex;
}
.attachment-preview-modal {
    width: min(1100px, 96vw);
    height: min(760px, 90vh);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.attachment-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid #e8eef5;
    background: #f8fbff;
}
.attachment-preview-title {
    font-weight: 800;
    color: #1f3556;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.attachment-preview-close {
    border: none;
    background: #e8eef5;
    color: #334155;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 800;
}
.attachment-preview-body {
    flex: 1;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}
.attachment-preview-body iframe,
.attachment-preview-body video {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}
.attachment-preview-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.attachment-preview-fallback {
    max-width: 520px;
    padding: 28px;
    border-radius: 12px;
    background: #fff;
    color: #334155;
    text-align: center;
}
.attachment-preview-fallback a {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #0d6efd;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
input[readonly] { background: #eee; cursor: not-allowed; }
.role-badge, .status-badge, .unit-badge {
    display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 7px 11px; font-size: 12px; font-weight: 900;
    border: 1px solid transparent;
}
.role-badge, .unit-badge { background: #eef5ff; color: #0f4c81; border-color: #dbeafe; }
.approval-approved, .account-active { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.approval-pending { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.approval-rejected, .account-inactive { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.empty-state { text-align: center; color: #64748b; padding: 24px 0; }
.password-container { position: relative; display: flex; align-items: center; }
.password-container input { padding-right: 45px; }
.toggle-password { position: absolute; right: 15px; cursor: pointer; color: #666; z-index: 10; }
.field-note { margin-top: 6px; font-size: 12px; color: #666; }
.button-row { margin-top: 25px; display: flex; gap: 12px; flex-wrap: wrap; }
.view-link {
    display: inline-flex; align-items: center; gap: 8px; color: #0f4c81; text-decoration: none; font-weight: 800; white-space: nowrap;
}
.view-link:hover { text-decoration: underline; }
.action-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.action-btn:hover {
    transform: translateY(-1px);
}
.action-btn.view-btn {
    background: #eef2f7 !important;
    color: #334155 !important;
}
.action-btn.edit-btn {
    background: #eef5ff !important;
    color: #0f4c81 !important;
}
.action-btn.delete-btn {
    background: #fee2e2 !important;
    color: #991b1b !important;
}
.field-note {
    color: #64748b;
    font-weight: 700;
}
.session-modal-backdrop {
    position: fixed;
    inset: 0;
    background: transparent;
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 9999;
    padding: 18px 20px 20px;
    pointer-events: none;
}
.session-modal-backdrop.show {
    display: flex;
}
.session-modal {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    pointer-events: auto;
    border: 1px solid #dbe7f5;
}
.session-modal-head {
    padding: 18px 22px;
    background: #f8fbff;
    border-bottom: 1px solid #e8eef5;
    color: #0d6efd;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}
.session-modal-body {
    padding: 22px;
    color: #334155;
    line-height: 1.7;
    font-weight: 500;
}
.session-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 22px 22px;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .top-header { padding: 10px 14px; gap: 10px; }
    .logo-section { padding: 6px 9px 6px 7px; }
    .logo-mark { width: 38px; height: 38px; }
    .logo-text { max-width: 42vw; font-size: 15px; }
    .header-right { gap: 7px; }
    .main-content.shifted { margin-left: 0; }
    .header-user-info { display: none; }
    .form-grid { grid-template-columns: 1fr; }
    .notification-panel {
        width: min(360px, calc(100vw - 28px));
        right: -20px;
    }
    .theme-btn span { display: none; }
    .theme-btn { width: 44px; justify-content: center; padding: 0; }
    .theme-panel {
        right: -64px;
    }
    .logout-btn {
        width: 44px;
        justify-content: center;
        padding: 0;
        font-size: 0;
    }
    .logout-btn i { font-size: 14px; }
}

html[data-theme="dark"] body {
    background: #0f172a;
    color: #dbeafe;
}
html[data-theme="dark"] .top-header,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .page-card,
html[data-theme="dark"] .table-container,
html[data-theme="dark"] .content-card,
html[data-theme="dark"] .notification-panel,
html[data-theme="dark"] .theme-panel,
html[data-theme="dark"] .session-modal,
html[data-theme="dark"] .attachment-preview-modal {
    background: #111827;
    color: #e5e7eb;
}
html[data-theme="dark"] .top-header {
    background: rgba(17, 24, 39, 0.94);
    border-color: #263244;
    box-shadow: 0 10px 30px rgba(0,0,0,0.28);
}
html[data-theme="dark"] .sidebar {
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    border-color: #263244;
    box-shadow: 12px 0 30px rgba(0,0,0,0.32);
}
html[data-theme="dark"] .sidebar-header,
html[data-theme="dark"] .sidebar-profile-section,
html[data-theme="dark"] .notification-panel-head,
html[data-theme="dark"] .notification-panel-foot,
html[data-theme="dark"] .session-modal-head,
html[data-theme="dark"] .attachment-preview-header {
    background: #0f172a;
    border-color: #263244;
}
html[data-theme="dark"] .logo-text,
html[data-theme="dark"] .menu-toggle,
html[data-theme="dark"] .sidebar-title,
html[data-theme="dark"] .notification-panel-head span,
html[data-theme="dark"] .notification-read-all,
html[data-theme="dark"] .notification-view-all,
html[data-theme="dark"] .page-card h3,
html[data-theme="dark"] .content-card h3,
html[data-theme="dark"] .view-link,
html[data-theme="dark"] .theme-panel-head {
    color: #60a5fa;
}
html[data-theme="dark"] .header-user-role {
    color: #5eead4;
}
html[data-theme="dark"] .access-denied-icon {
    background: #172554;
    color: #93c5fd;
}
html[data-theme="dark"] .header-user-name,
html[data-theme="dark"] .sidebar-profile-name,
html[data-theme="dark"] .attachment-preview-title {
    color: #f8fafc;
}
html[data-theme="dark"] .sidebar-profile-role,
html[data-theme="dark"] .role-badge,
html[data-theme="dark"] .unit-badge {
    background: #1e3a5f;
    color: #93c5fd;
}
html[data-theme="dark"] .sidebar-title {
    color: #94a3b8;
}
html[data-theme="dark"] .sidebar-profile-section {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(22, 163, 74, 0.08)),
        #111827;
    border-color: #263244;
    box-shadow: none;
}
html[data-theme="dark"] .sidebar-profile-role {
    border-color: #263244;
}
html[data-theme="dark"] .submenu {
    border-color: #334155;
}
html[data-theme="dark"] .sidebar-item {
    color: #cbd5e1;
}
html[data-theme="dark"] .sidebar-item i:first-child,
html[data-theme="dark"] .sidebar-toggle-left i {
    color: #94a3b8;
}
html[data-theme="dark"] .sidebar-item:hover,
html[data-theme="dark"] .notification-item:hover,
html[data-theme="dark"] .theme-option-btn:hover,
html[data-theme="dark"] .theme-option-btn.active {
    background: #1e293b;
}
html[data-theme="dark"] .sidebar-item:hover {
    border-color: #334155;
    color: #60a5fa;
}
html[data-theme="dark"] .sidebar-item:hover i:first-child,
html[data-theme="dark"] .sidebar-item:hover .sidebar-toggle-left i {
    color: #60a5fa;
}
html[data-theme="dark"] .sidebar-item.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}
html[data-theme="dark"] .notification-btn,
html[data-theme="dark"] .theme-btn {
    background: #1e293b;
    color: #60a5fa;
    box-shadow: inset 0 0 0 1px #334155;
}
html[data-theme="dark"] .notification-badge {
    border-color: #111827;
}
html[data-theme="dark"] .notification-btn:hover,
html[data-theme="dark"] .theme-btn:hover,
html[data-theme="dark"] .menu-toggle:hover {
    background: #172033;
    border-color: #334155;
}
html[data-theme="dark"] .logo-section {
    background: #0f172a;
    border-color: #263244;
    box-shadow: none;
}
html[data-theme="dark"] .logo-mark {
    background: #10231b;
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.18);
}
html[data-theme="dark"] .header-user-info {
    border-color: #263244;
}
html[data-theme="dark"] .logout-btn {
    background: #3f1d24;
    border-color: #5f2932;
    color: #fecaca;
}
html[data-theme="dark"] .logout-btn:hover {
    background: #5f2932;
}
html[data-theme="dark"] .notification-item,
html[data-theme="dark"] .notification-item.read,
html[data-theme="dark"] .notification-item.unread {
    background: #111827;
    border-color: #263244;
    color: #e5e7eb;
}
html[data-theme="dark"] .notification-panel-head,
html[data-theme="dark"] .notification-panel-foot {
    background: #0f172a;
}
html[data-theme="dark"] .notification-title {
    color: #bfdbfe;
}
html[data-theme="dark"] .notification-message,
html[data-theme="dark"] .page-card p,
html[data-theme="dark"] .content-card p,
html[data-theme="dark"] .audit-note-text,
html[data-theme="dark"] .session-modal-body {
    color: #cbd5e1;
}
html[data-theme="dark"] .notification-time,
html[data-theme="dark"] .notification-empty,
html[data-theme="dark"] .footer,
html[data-theme="dark"] .field-note,
html[data-theme="dark"] .empty-state {
    color: #94a3b8;
}
html[data-theme="dark"] table,
html[data-theme="dark"] .theme-option-btn {
    color: #e5e7eb;
}
html[data-theme="dark"] th {
    background: #172033;
    border-color: #263244;
    color: #bfdbfe;
}
html[data-theme="dark"] td {
    border-color: #263244;
}
html[data-theme="dark"] tr:nth-child(even) {
    background: #0f172a;
}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    background: #0f172a;
    border-color: #334155;
    color: #e5e7eb;
}
html[data-theme="dark"] input[readonly] {
    background: #1e293b;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: #64748b;
}
html[data-theme="dark"] label,
html[data-theme="dark"] .stat-number,
html[data-theme="dark"] .sidebar-profile-name,
html[data-theme="dark"] .assign-legend-item {
    color: #e5e7eb;
}
html[data-theme="dark"] .search-input,
html[data-theme="dark"] .secondary-btn,
html[data-theme="dark"] .reset-btn {
    background: #1e293b;
    color: #e5e7eb;
    border-color: #334155;
}
html[data-theme="dark"] .page-card h3 i,
html[data-theme="dark"] .content-card h3 i {
    background: #1e293b;
    color: #60a5fa;
}
html[data-theme="dark"] tbody tr:hover {
    background: #111827;
}
html[data-theme="dark"] .primary-btn,
html[data-theme="dark"] .search-btn {
    background: #2563eb;
}
html[data-theme="dark"] .danger-btn {
    background: #3f1d24;
    color: #fecaca;
}
html[data-theme="dark"] .success-btn {
    background: #143826;
    color: #bbf7d0;
}
html[data-theme="dark"] .status-success {
    background: #143826;
    color: #bbf7d0;
}
html[data-theme="dark"] .status-danger {
    background: #3f1d24;
    color: #fecaca;
}
html[data-theme="dark"] .status-warning {
    background: #3f3215;
    color: #fde68a;
}
html[data-theme="dark"] .assign-pill,
html[data-theme="dark"] .feedback-item,
html[data-theme="dark"] .audit-note-item {
    background: #172033;
    border-color: #263244;
}
html[data-theme="dark"] .stat-card {
    background: #111827 !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28) !important;
}
html[data-theme="dark"] .stat-icon {
    background: #1e293b !important;
    color: #60a5fa !important;
}
html[data-theme="dark"] .stat-label {
    color: #94a3b8 !important;
}
html[data-theme="dark"] .dropdown-menu {
    background: #111827 !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .dropdown-option-btn {
    color: #e5e7eb !important;
}
html[data-theme="dark"] .dropdown-option-btn:hover {
    background: #1e293b !important;
}
