@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --dptw-brand-950: #0b1d42;
    --dptw-brand-900: #102c63;
    --dptw-brand-700: #0f62fe;
    --dptw-brand-500: #4f8cff;
    --dptw-brand-100: #eaf2ff;
    --dptw-surface: #f4f7fb;
    --dptw-surface-alt: #eef3f9;
    --dptw-card: #ffffff;
    --dptw-border: rgba(16, 44, 99, 0.12);
    --dptw-header-border: rgba(16, 44, 99, 0.08);
    --dptw-ink: #15233b;
    --dptw-muted: #66758c;
    --dptw-muted-strong: #5a6983;
    --dptw-success: #169c73;
    --dptw-danger: #d64545;
    --dptw-warning: #f59e0b;
    --dptw-shadow-lg: 0 24px 60px rgba(15, 35, 74, 0.12);
    --dptw-shadow-md: 0 16px 40px rgba(15, 35, 74, 0.08);
    --cui-primary: var(--dptw-brand-700);
    --cui-primary-rgb: 15, 98, 254;
    --cui-link-color: var(--dptw-brand-700);
    --cui-link-color-rgb: 15, 98, 254;
    --cui-link-hover-color: var(--dptw-brand-900);
    --cui-link-hover-color-rgb: 16, 44, 99;
    --cui-focus-ring-color: rgba(15, 98, 254, 0.18);
}

body {
    background: var(--dptw-surface);
    color: var(--dptw-ink);
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    font-feature-settings: "cv11", "ss01";
}

a {
    color: var(--dptw-brand-700);
}

h1,
h2,
h3,
h4,
h5,
h6,
.btn,
.table thead th {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

.swal2-container {
    z-index: 9999 !important;
}

.no-scroll-popup {
    overflow: hidden !important;
    max-height: none !important;
}

.dptw-toast.swal2-toast,
.swal2-popup.swal2-toast {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    grid-template-columns: min-content 1fr min-content !important;
    grid-auto-rows: auto !important;
    align-self: start !important;
    margin: 0 !important;
    padding: 0.85rem 1rem !important;
    border: 1px solid rgba(16, 44, 99, 0.08) !important;
    border-radius: 1rem !important;
    background: #fff !important;
    box-shadow: 0 18px 40px rgba(15, 35, 74, 0.18) !important;
}

.swal2-container.swal2-top,
.swal2-container.swal2-top-start,
.swal2-container.swal2-top-left,
.swal2-container.swal2-top-end,
.swal2-container.swal2-top-right {
    padding: 0.75rem !important;
}

body.swal2-toast-shown .swal2-container {
    height: auto !important;
    width: min(92vw, 420px) !important;
    max-width: calc(100vw - 1.5rem) !important;
}

.swal2-toast {
    z-index: 9999 !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
}

.swal2-toast .swal2-title {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    grid-row: 1 !important;
    line-height: 1.35;
    margin: 0 !important;
    text-align: left;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
}

.swal2-toast .swal2-icon {
    flex: 0 0 auto;
    grid-row: 1 !important;
    margin: 0.1rem 0 0 !important;
    align-self: center !important;
}

.swal2-toast .swal2-html-container {
    grid-row: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.swal2-toast .swal2-close {
    width: 1.4rem !important;
    height: 1.4rem !important;
    grid-row: 1 !important;
    margin: 0 !important;
    font-size: 1.4rem !important;
    align-self: center !important;
}

.swal2-toast .swal2-timer-progress-bar {
    background: rgba(15, 98, 254, 0.2) !important;
}

.dptw-app-body {
    min-height: 100vh;
    background: var(--dptw-surface);
    display: flex;
    flex-direction: column;
}

.dptw-app-content {
    background: linear-gradient(180deg, #f9fbff 0%, var(--dptw-surface-alt) 100%);
    min-height: 0;
    flex: 1 0 auto;
    padding: 1.5rem;
    padding-bottom: 2rem;
}

.dptw-header-shell {
    border-bottom: 1px solid var(--dptw-header-border);
    box-shadow: 0 12px 30px rgba(15, 35, 74, 0.04);
}

.dptw-topbar {
    min-height: 4.65rem;
    border-bottom: 1px solid var(--dptw-header-border);
}

.dptw-header-toggle {
    margin-inline-start: -0.25rem;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dptw-brand-900);
    background: rgba(15, 98, 254, 0.08);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dptw-header-toggle:hover {
    background: rgba(15, 98, 254, 0.14);
    color: var(--dptw-brand-700);
    transform: translateY(-1px);
}

.dptw-brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.dptw-brand-title {
    margin: 0;
    font-size: clamp(1.2rem, 1.3vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--dptw-ink);
}

.dptw-brand-subtitle {
    color: var(--dptw-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dptw-pagebar {
    min-height: 4rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.dptw-page-heading {
    display: flex;
    align-items: center;
    min-width: 0;
}

.dptw-page-title {
    margin: 0;
   /* font-size: clamp(1.7rem, 1.85vw, 2.35rem);*/
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #1c2742;
}

.dptw-breadcrumb-nav {
    display: flex;
    align-items: center;
}

.dptw-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 98, 254, 0.06);
    border: 1px solid rgba(15, 98, 254, 0.09);
}

.dptw-breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    color: var(--dptw-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.dptw-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(102, 117, 140, 0.65);
}

.dptw-breadcrumb .breadcrumb-item a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--dptw-brand-700);
}

.dptw-breadcrumb .breadcrumb-item.active {
    color: var(--dptw-muted-strong);
}

.dptw-header-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.dptw-icon-button {
    position: relative;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(16, 44, 99, 0.09);
    box-shadow: 0 10px 24px rgba(15, 35, 74, 0.08);
    color: var(--dptw-brand-900);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.dptw-icon-button:hover {
    color: var(--dptw-brand-700);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 35, 74, 0.12);
}

.dptw-icon-button .bi {
    font-size: 1.1rem;
}

.dptw-notification-badge {
    position: absolute;
    top: -0.2rem;
    right: -0.2rem;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.67rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.22);
}

.dptw-user-chip {
    min-height: 3rem;
    padding: 0.35rem 0.5rem 0.35rem 0.35rem;
    border-radius: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid rgba(16, 44, 99, 0.09);
    box-shadow: 0 10px 24px rgba(15, 35, 74, 0.08);
    color: var(--dptw-ink);
}

.dptw-user-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dptw-brand-700), var(--dptw-brand-900));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: 0 10px 18px rgba(15, 98, 254, 0.22);
}

.dptw-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.dptw-user-meta strong {
    font-size: 0.92rem;
    line-height: 1.1;
    color: var(--dptw-ink);
}

.dptw-user-meta span {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--dptw-muted);
}

.dptw-user-caret {
    color: var(--dptw-muted);
    font-size: 0.82rem;
}

.dptw-account-menu {
    min-width: 16rem;
    border: 1px solid rgba(16, 44, 99, 0.1);
    border-radius: 1rem;
    padding: 0.45rem;
    box-shadow: 0 18px 36px rgba(15, 35, 74, 0.14);
}

.dptw-account-menu__header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.8rem 0.9rem;
    margin: -0.45rem -0.45rem 0.35rem;
    border-radius: 0.95rem 0.95rem 0.7rem 0.7rem;
    background: linear-gradient(180deg, rgba(15, 98, 254, 0.08), rgba(15, 98, 254, 0.02));
    color: var(--dptw-ink);
}

.dptw-account-menu__header span {
    font-size: 0.77rem;
    font-weight: 500;
    color: var(--dptw-muted);
}

.dptw-account-menu .dropdown-item {
    border-radius: 0.8rem;
    padding: 0.7rem 0.85rem;
    font-weight: 600;
    color: var(--dptw-ink);
}

.dptw-account-menu .dropdown-item i {
    margin-right: 0.55rem;
    color: var(--dptw-brand-700);
}

.dptw-footer {
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid var(--dptw-border);
    color: var(--dptw-muted);
    position: static !important;
    margin-top: auto;
    z-index: 1;
}

.dptw-footer .footer-content {
    padding: 0.95rem 1.5rem;
    font-size: 0.92rem;
}

.dptw-footer-brand {
    font-weight: 700;
    color: var(--dptw-ink);
}

.dptw-admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.dptw-admin-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.dptw-section-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #1d2d5a;
}

.dptw-section-subtitle {
    color: var(--dptw-muted);
}

.dptw-search-shell {
    position: relative;
    min-width: min(100%, 22rem);
}

.dptw-search-shell i {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dptw-muted);
}

.dptw-search-shell .form-control {
    padding-left: 2.65rem;
    min-height: 3rem;
    border-radius: 0.95rem;
}

.dptw-surface-card,
.group-editor-surface {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(16, 44, 99, 0.08);
    border-radius: 1.4rem;
    box-shadow: 0 18px 38px rgba(15, 35, 74, 0.08);
}

.dptw-btn {
    min-height: 3rem;
    padding: 0.75rem 1.15rem;
    border-radius: 0.95rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.dptw-btn-primary {
    border: 1px solid transparent;
    color: #fff;
    background: linear-gradient(135deg, #2160ff 0%, #1142cc 100%);
    box-shadow: 0 16px 30px rgba(33, 96, 255, 0.22);
}

.dptw-btn-secondary {
    background: #fff;
    color: #21315b;
    border: 1px solid rgba(16, 44, 99, 0.12);
}

.dptw-btn-outline-primary {
    background: #fff;
    color: #2154db;
    border: 1px solid rgba(33, 84, 219, 0.18);
}

.dptw-btn-outline-secondary {
    background: #fff;
    color: #41506e;
    border: 1px solid rgba(102, 117, 140, 0.22);
}

.dptw-btn-outline-danger {
    background: #fff;
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.24);
}

.dptw-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.83rem;
    font-weight: 700;
}

.dptw-status-pill--success {
    background: rgba(22, 156, 115, 0.12);
    color: #159468;
}

.dptw-status-pill--muted {
    background: rgba(102, 117, 140, 0.12);
    color: #55637e;
}

.group-editor-page {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.group-editor-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.group-editor-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.8rem, 2vw, 2.35rem);
    font-weight: 800;
    color: #17275a;
}

.group-editor-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--dptw-muted);
    font-weight: 600;
    flex-wrap: wrap;
}

.group-editor-breadcrumb a {
    color: #325eea;
    text-decoration: none;
}

.group-editor-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.group-editor-meta,
.group-editor-copybar,
.group-editor-users {
    padding: 1.5rem;
}

.group-editor-grid {
    display: grid;
    grid-template-columns: 2fr 3fr 1.4fr;
    gap: 1.25rem;
}

.group-editor-copybar__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.group-editor-copybar__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.group-editor-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) 1fr;
    gap: 1.3rem;
}

.group-editor-menu-panel {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.group-editor-menu-panel__header h3,
.group-editor-permissions__header h3,
.group-editor-users__header h3 {
    margin: 0 0 0.8rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #17275a;
}

.group-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.group-menu-item {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(16, 44, 99, 0.08);
    border-radius: 1rem;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.group-menu-item:hover,
.group-menu-item.is-active {
    border-color: rgba(33, 96, 255, 0.28);
    box-shadow: 0 14px 28px rgba(33, 96, 255, 0.12);
    transform: translateY(-1px);
}

.group-menu-item__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(33, 96, 255, 0.1);
    color: #2154db;
}

.group-menu-item__content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.group-menu-item__content strong {
    color: #17275a;
}

.group-menu-item__content small {
    color: var(--dptw-muted);
}

.group-menu-item__badge {
    min-width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(33, 96, 255, 0.1);
    color: #2154db;
    font-size: 0.8rem;
    font-weight: 800;
}

.group-legend {
    margin-top: auto;
    padding: 1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(233, 240, 255, 0.8), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(16, 44, 99, 0.08);
}

.group-legend div {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
    color: #3d4a66;
}

.group-legend div + div {
    margin-top: 0.6rem;
}

.legend-dot {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 0.3rem;
    display: inline-block;
}

.legend-dot.is-full {
    background: #16a34a;
}

.legend-dot.is-partial {
    background: #f59e0b;
}

.legend-dot.is-none {
    background: #ef4444;
}

.legend-dot.is-na {
    background: #c9cfdd;
}

.group-editor-permissions {
    padding: 1.3rem;
}

.group-editor-permissions__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.group-editor-permissions__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.group-submenu-tabs {
    margin-top: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(16, 44, 99, 0.08);
}

.group-submenu-tab {
    padding: 0.8rem 1rem;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #223152;
    font-weight: 700;
}

.group-submenu-tab.is-active {
    color: #2154db;
    border-bottom-color: #2154db;
}

.group-permission-cards {
    margin-top: 1.2rem;
    min-height: 24rem;
}

.group-permission-card {
    display: none;
}

.group-permission-card.is-visible {
    display: block;
}

.group-permission-card h4 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #17316c;
    margin-bottom: 1.2rem;
}

.group-permission-card__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.permission-option {
    min-height: 7.6rem;
    padding: 1.1rem;
    border: 1px solid rgba(16, 44, 99, 0.1);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 251, 0.96));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.permission-option__header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.permission-option__header input {
    margin-top: 0.2rem;
}

.permission-option__header strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #1d2d5a;
}

.permission-option__badge {
    align-self: flex-start;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.79rem;
    font-weight: 800;
}

.permission-option__badge--menu {
    background: rgba(22, 163, 74, 0.12);
    color: #159468;
}

.permission-option__badge--create {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.permission-option__badge--edit {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.permission-option__badge--delete {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.permission-option__badge--detail {
    background: rgba(168, 85, 247, 0.12);
    color: #9333ea;
}

.group-permission-footer {
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(16, 44, 99, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-weight: 700;
    color: #2d3d63;
}

.group-editor-users__header {
    margin-bottom: 1rem;
}

.select2-container--default .select2-selection--multiple,
.select2-container--default .select2-selection--single {
    min-height: 3rem;
    border: 1px solid rgba(16, 44, 99, 0.12);
    border-radius: 0.95rem;
    padding: 0.3rem 0.5rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 2.15rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 2.8rem;
}

@media (max-width: 1200px) {
    .group-permission-card__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .group-editor-grid,
    .group-editor-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .group-permission-card__grid {
        grid-template-columns: 1fr;
    }

    .group-editor-actions,
    .group-editor-permissions__actions,
    .group-editor-copybar__actions,
    .dptw-admin-toolbar__actions {
        width: 100%;
    }

    .dptw-btn,
    .group-editor-copybar__actions .form-select {
        width: 100%;
    }
}

.header.header-sticky {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}

.sidebar.sidebar-light {
    background: linear-gradient(180deg, var(--dptw-brand-950) 0%, var(--dptw-brand-900) 100%);
    color: rgba(255, 255, 255, 0.86);
}

.sidebar.sidebar-light .sidebar-header {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.sidebar.sidebar-light .sidebar-brand {
    padding: 1rem 0.85rem 1.1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.sidebar.sidebar-light .sidebar-brand-full {
    width: 100%;
    height: auto;
    max-height: 2.8rem;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.16));
}

.sidebar.sidebar-light .sidebar-brand-narrow {
    width: 2.25rem;
    height: 2.25rem;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}

.sidebar.sidebar-light .nav-group-toggle,
.sidebar.sidebar-light .nav-link {
    color: rgba(255, 255, 255, 0.86);
    border-radius: 0.9rem;
    margin: 0.15rem 0.6rem;
}

.sidebar.sidebar-light .nav-group-toggle:hover,
.sidebar.sidebar-light .nav-link:hover,
.sidebar.sidebar-light .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar.sidebar-light .nav-icon,
.sidebar.sidebar-light .nav-group-items .nav-icon {
    color: rgba(255, 255, 255, 0.8);
}

.sidebar.sidebar-light .nav-group.show {
    margin: 0.25rem 0.6rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar.sidebar-light .nav-group.show > .nav-group-toggle {
    margin: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sidebar.sidebar-light .nav-group.show > .nav-group-toggle .nav-icon {
    color: #fff;
}

.sidebar.sidebar-light .nav-group.show > .nav-group-toggle::after {
    background-color: rgba(255, 255, 255, 0.92);
}

.sidebar.sidebar-light .nav-group .nav-group-items {
    padding: 0.25rem 0 0.4rem;
}

.sidebar.sidebar-light .nav-group .nav-group-items .nav-link {
    margin: 0.1rem 0.45rem 0.1rem 1rem;
    border-radius: 0.8rem;
    color: rgba(255, 255, 255, 0.78);
}

.sidebar.sidebar-light .nav-group .nav-group-items .nav-link:hover,
.sidebar.sidebar-light .nav-group .nav-group-items .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar.sidebar-light .nav-group .nav-group-items .nav-link .nav-icon-bullet {
    border-color: rgba(255, 255, 255, 0.3);
}

.sidebar.sidebar-light .nav-group .nav-group-items .nav-link:hover .nav-icon-bullet,
.sidebar.sidebar-light .nav-group .nav-group-items .nav-link.active .nav-icon-bullet {
    border-color: rgba(255, 255, 255, 0.92);
}

.sidebar.sidebar-light .badge.bg-info {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #fff;
}

.card:not(.wizard-main-card) {
    border: 1px solid rgba(16, 44, 99, 0.08);
    border-radius: 1.1rem;
    box-shadow: 0 18px 34px rgba(15, 35, 74, 0.08);
}

.card-body {
    padding: 1.2rem 1.25rem;
}

.container-lg > .shadow,
.container-fluid > .shadow,
.dptw-app-content .shadow {
    border-radius: 1.15rem;
    box-shadow: 0 18px 38px rgba(15, 35, 74, 0.08) !important;
    overflow: hidden;
}

.btn {
    border-radius: 0.9rem;
    font-weight: 700;
}

.btn-create,
.dt-buttons .btn-primary {
    background: linear-gradient(135deg, var(--dptw-brand-700), #265ed7);
    border: 0;
    color: #fff;
    box-shadow: 0 12px 24px rgba(15, 98, 254, 0.2);
}

.btn-create:hover,
.dt-buttons .btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
}

.btn-info {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border: 0;
    color: #fff;
    box-shadow: 0 12px 24px rgba(2, 132, 199, 0.18);
}

.btn-info:hover {
    color: #fff;
}

.options {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-inline: 0.1rem;
    box-shadow: 0 10px 20px rgba(15, 35, 74, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.options:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 35, 74, 0.16);
    filter: brightness(1.02);
}

.options.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.options.btn-success {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.options.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.options i {
    font-size: 0.9rem;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(16, 44, 99, 0.1);
    margin-bottom: 0;
    color: var(--dptw-ink);
}

.table thead th {
    padding: 0.95rem 0.85rem;
    border-bottom-width: 1px;
    background: #f7faff;
    color: var(--dptw-muted-strong);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    vertical-align: middle;
}

.table tbody td {
    padding: 0.95rem 0.85rem;
    vertical-align: middle;
    border-color: rgba(16, 44, 99, 0.08);
    background: rgba(255, 255, 255, 0.96);
}

.table-hover > tbody > tr:hover > * {
    background-color: #f8fbff;
}

.table tbody tr.dptw-daily-approval-row > td {
    background: #f4fbff;
}

.dptw-daily-approval-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0;
    border: 1px solid rgba(51, 153, 255, 0.28);
}

.dptw-daily-approval-note {
    margin-top: 0.25rem;
    color: var(--dptw-muted);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
}

.table-bordered > :not(caption) > * {
    border-width: 0 1px;
}

.dataTables_wrapper {
    padding: 1.2rem;
}

.dataTables_wrapper .row:first-child,
.dataTables_wrapper .row:last-child {
    margin-inline: 0;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid rgba(16, 44, 99, 0.14);
    border-radius: 0.9rem;
    min-height: 2.8rem;
    box-shadow: none;
}

.dataTables_wrapper .dataTables_filter input {
    min-width: 18rem;
    padding-inline: 0.9rem;
}

.dataTables_wrapper .dataTables_length select {
    padding-inline: 0.75rem 2rem;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    color: var(--dptw-muted);
    font-size: 0.9rem;
}

.dataTables_wrapper .dataTables_paginate .pagination {
    gap: 0.35rem;
}

.dataTables_wrapper .paginate_button .page-link,
.page-link {
    min-width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.8rem !important;
    border: 1px solid rgba(16, 44, 99, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dptw-muted-strong);
    font-weight: 700;
}

.dataTables_wrapper .paginate_button.active .page-link,
.page-item.active .page-link {
    background: linear-gradient(135deg, var(--dptw-brand-700), #265ed7);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 20px rgba(15, 98, 254, 0.18);
}

.dptw-auth-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(15, 98, 254, 0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(16, 44, 99, 0.12), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, var(--dptw-surface-alt) 100%);
}

.dptw-auth-shell {
    min-height: 100vh;
    padding: clamp(1rem, 2vw, 2rem);
    display: flex;
    align-items: center;
}

.dptw-auth-shell .row {
    overflow: hidden;
    border-radius: 1.8rem;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--dptw-shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
}

.dptw-auth-aside {
    min-height: 100%;
    padding: clamp(2rem, 4vw, 4rem);
    background: linear-gradient(160deg, var(--dptw-brand-950) 0%, var(--dptw-brand-700) 52%, #76a7ff 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
}

.dptw-auth-aside h1 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.05;
    font-weight: 800;
}

.dptw-auth-aside p {
    max-width: 34rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
}

.dptw-auth-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dptw-auth-visual {
    padding: 1.25rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.dptw-auth-visual img {
    width: 100%;
    max-width: 34rem;
    display: block;
    margin: 0 auto;
}

.dptw-auth-main {
    width: 100%;
    padding: clamp(1rem, 3vw, 3rem);
}

.dptw-auth-card {
    max-width: 34rem;
    margin: 0 auto;
    padding: clamp(1.5rem, 3vw, 2.35rem);
    border-radius: 1.5rem;
    background: var(--dptw-card);
    border: 1px solid var(--dptw-border);
    box-shadow: var(--dptw-shadow-md);
}

.dptw-auth-card__header {
    margin-bottom: 1.5rem;
}

.dptw-auth-kicker {
    display: inline-block;
    margin-bottom: 0.65rem;
    color: var(--dptw-brand-700);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dptw-auth-card h2 {
    margin-bottom: 0.5rem;
    color: var(--dptw-ink);
    font-size: clamp(1.8rem, 2vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.dptw-auth-card p {
    color: var(--dptw-muted);
}

.dptw-auth-form .form-label {
    font-weight: 700;
    color: var(--dptw-ink);
}

.dptw-auth-form .form-control,
.dptw-auth-form .input-group-text {
    min-height: 3.25rem;
    border-color: rgba(16, 44, 99, 0.12);
}

.dptw-auth-form .form-control {
    padding-inline: 1rem;
    border-radius: 1rem 0 0 1rem;
}

.dptw-auth-form .form-control.standalone {
    border-radius: 1rem;
}

.dptw-auth-form .input-group-text {
    border-radius: 0 1rem 1rem 0;
    background: var(--dptw-brand-100);
    color: var(--dptw-brand-900);
}

.dptw-auth-form .form-control:focus {
    border-color: rgba(15, 98, 254, 0.42);
    box-shadow: 0 0 0 0.2rem rgba(15, 98, 254, 0.12);
}

.dptw-auth-primary {
    min-height: 3.25rem;
    border-radius: 1rem;
    font-weight: 700;
}

.dptw-auth-secondary {
    min-height: 3.25rem;
    border-radius: 1rem;
    font-weight: 600;
}

.dptw-auth-footer {
    color: var(--dptw-muted);
    font-size: 0.95rem;
}

.dptw-auth-link {
    font-weight: 700;
    color: var(--dptw-brand-700);
}

.dptw-auth-link:hover {
    color: var(--dptw-brand-900);
}

.dptw-empty-state {
    text-align: center;
    padding: 1rem 0;
}

.dptw-empty-state__icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1rem;
    border-radius: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(214, 69, 69, 0.12);
    color: var(--dptw-danger);
    font-size: 2.5rem;
}

.dptw-dashboard-shell {
    display: grid;
    gap: 1.5rem;
}

.dptw-dashboard-panel {
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: var(--dptw-card);
    border: 1px solid var(--dptw-border);
    box-shadow: var(--dptw-shadow-md);
}

.dptw-dashboard-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.dptw-section-heading {
    margin: 0;
    color: var(--dptw-ink);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dptw-section-subtitle {
    margin: 0.2rem 0 0;
    color: var(--dptw-muted);
    font-size: 0.95rem;
}

.dptw-filter-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.dptw-filter-stack .form-control,
.dptw-filter-stack .select2-container {
    min-width: 12rem;
}

.dptw-stat-grid {
    row-gap: 1rem;
}

.dptw-stat-link {
    color: inherit;
}

.dptw-stat-card {
    height: 100%;
    min-height: 12rem;
    padding: 1.25rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(16, 44, 99, 0.08);
    box-shadow: 0 18px 30px rgba(15, 35, 74, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.68));
}

.dptw-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 36px rgba(15, 35, 74, 0.12);
}

.dptw-stat-card .bi {
    font-size: 2rem;
    color: var(--dptw-brand-900);
}

.dptw-stat-card__label {
    margin: 0.85rem 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dptw-ink);
    line-height: 1.35;
    min-height: 2.7rem;
}

.dptw-stat-card__value {
    margin: 0;
    font-size: 2.35rem;
    font-weight: 800;
    color: var(--dptw-ink);
}

.dptw-chart-shell {
    position: relative;
    min-height: 28rem;
}

.daterangepicker {
    z-index: 1000 !important;
}

.onboarding-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(15, 98, 254, 0.08), transparent 28%),
        linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
    color: #16213e;
}

.onboarding-stage {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem 3rem;
}

.company-setup-shell {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.company-setup-hero {
    background: linear-gradient(135deg, #0f62fe 0%, #1f3c88 100%);
    border-radius: 1.25rem;
    padding: 1.5rem;
    color: #fff;
    box-shadow: 0 18px 40px rgba(17, 38, 146, 0.18);
}

.company-setup-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.company-setup-hero p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.85);
}

.wizard-stepper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    border-radius: 1rem;
    background: #fff;
    padding: 1rem 1.1rem;
    border: 1px solid #dce3f3;
    box-shadow: 0 10px 25px rgba(15, 34, 68, 0.06);
}

.wizard-step.is-active {
    border-color: #0f62fe;
    box-shadow: 0 16px 32px rgba(15, 98, 254, 0.14);
}

.wizard-step.is-complete {
    border-color: #1aa37a;
}

.wizard-step__badge {
    width: 2.3rem;
    height: 2.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    font-weight: 700;
    background: #edf3ff;
    color: #0f62fe;
    flex-shrink: 0;
}

.wizard-step.is-active .wizard-step__badge {
    background: #0f62fe;
    color: #fff;
}

.wizard-step.is-complete .wizard-step__badge {
    background: #def7ef;
    color: #1aa37a;
}

.wizard-step__meta small {
    display: block;
    color: #7d889e;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
    font-weight: 700;
}

.wizard-step__meta strong {
    display: block;
    color: #16213e;
    font-size: 0.95rem;
}

.wizard-main-card {
    margin-top: 1.5rem;
    border: 0;
    border-radius: 1.25rem;
    box-shadow: 0 16px 40px rgba(31, 45, 61, 0.08);
    overflow: hidden;
}

.wizard-main-card .card-header {
    background: #fff;
    border-bottom: 1px solid #e9eef8;
    padding: 1.25rem 1.5rem;
}

.wizard-main-card .card-body {
    padding: 1.5rem;
    background: #fff;
}

.wizard-summary-card {
    background: #f8fbff;
    border: 1px solid #d9e7ff;
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    height: 100%;
}

.wizard-summary-card .summary-label {
    color: #6b7892;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}

.wizard-summary-card .summary-value {
    font-size: 1rem;
    font-weight: 700;
    color: #16213e;
    word-break: break-word;
}

.wizard-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #16213e;
    margin-bottom: 1rem;
}

.wizard-form-card {
    border: 1px solid #e9eef8;
    border-radius: 1rem;
    padding: 1.25rem;
    background: #fcfdff;
    margin-bottom: 1rem;
}

.wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #edf1f7;
}

.wizard-footer .btn {
    min-width: 130px;
}

.wizard-muted {
    color: #71809a;
}

.wizard-logo-preview {
    width: 100%;
    max-width: 180px;
    max-height: 120px;
    object-fit: contain;
    border-radius: 0.85rem;
    background: #fff;
    border: 1px solid #d9e3f3;
    padding: 0.5rem;
}

@media (max-width: 991.98px) {
    .wizard-stepper {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767.98px) {
    .dptw-app-content {
        padding: 1rem;
    }

    .dptw-topbar,
    .dptw-pagebar {
        padding-inline: 1rem !important;
    }

    .dptw-brand-lockup {
        align-items: flex-start;
        text-align: left;
    }

    .dptw-pagebar {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .dptw-breadcrumb {
        flex-wrap: wrap;
    }

    .dptw-user-meta {
        display: none !important;
    }

    .dptw-dashboard-panel {
        padding: 1.15rem;
    }
}

@media (max-width: 575.98px) {
    body.swal2-toast-shown .swal2-container {
        width: calc(100vw - 1rem) !important;
        max-width: calc(100vw - 1rem) !important;
    }

    .swal2-toast {
        width: 100% !important;
    }

    .dptw-topbar {
        min-height: auto;
        align-items: flex-start !important;
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }

    .dptw-header-actions {
        gap: 0.6rem;
    }

    .dptw-icon-button,
    .dptw-user-chip {
        box-shadow: none;
    }

    .dataTables_wrapper {
        padding: 0.85rem;
    }

    .dataTables_wrapper .dataTables_filter input {
        min-width: 100%;
    }

    .onboarding-stage {
        padding-inline: 0.75rem;
    }

    .wizard-stepper {
        grid-template-columns: 1fr;
    }

    .wizard-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .wizard-footer .btn {
        width: 100%;
    }
}
