/* Diex / FERE shell — aligned with legacy diex.feretech.cloud management UI */
*, *::before, *::after { box-sizing: border-box; }

.diex-guest-body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1a472a 0%, #2d6a4f 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
}

.diex-guest-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.diex-login-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 36px 40px 32px;
}

.diex-brand {
    text-align: center;
    margin-bottom: 28px;
}

.diex-brand img {
    height: 48px;
    width: 48px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 10px;
}

.diex-brand h1 {
    color: #1a472a;
    font-size: 22px;
    margin: 0 0 4px;
    font-weight: 700;
}

.diex-brand p {
    color: #94a3b8;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.diex-form-group { margin-bottom: 18px; }

.diex-form-group label,
.diex-form-group .diex-label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-weight: 500;
    font-size: 14px;
}

.diex-login-card input[type="text"],
.diex-login-card input[type="email"],
.diex-login-card input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.diex-login-card input:focus {
    outline: none;
    border-color: #2d6a4f;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

.diex-login-card .border-red-500,
.diex-login-card input.border-red-500 {
    border-color: #f87171;
}

.diex-btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1a472a 0%, #2d6a4f 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    margin-top: 8px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.diex-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(26, 71, 42, 0.28);
}

.diex-btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
}

.diex-link-muted {
    color: #64748b;
    font-size: 13px;
    text-decoration: none;
}

.diex-link-muted:hover { color: #1a472a; text-decoration: underline; }

.diex-guest-footer {
    text-align: center;
    margin-top: 18px;
    color: #94a3b8;
    font-size: 12px;
}

.diex-alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.diex-alert-error {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}

.diex-alert-success {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.diex-error-text {
    color: #b42318;
    font-size: 13px;
    margin-top: 6px;
}

.diex-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    color: #475569;
}

.diex-checkbox input { width: auto; }

/* ——— App shell ——— */
.diex-app-body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f4f6f8;
    color: #1f2937;
    min-height: 100vh;
}

.l-topbar {
    background: #165f49;
    color: #fff;
    padding: 0 16px;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
}

.l-topbar-inner {
    max-width: 1340px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.l-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.l-topbar-heading {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.l-topbar-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-items: center;
}

.l-topbar-actions a,
.l-topbar-actions button {
    border: none;
    background: rgba(255,255,255,.16);
    color: #fff;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
}

.l-topbar-actions a:hover,
.l-topbar-actions button:hover { background: rgba(255,255,255,.28); }

.l-topbar-actions .btn-danger { background: #b42318; }
.l-topbar-actions .btn-danger:hover { background: #9a1d13; }

.l-menu-toggle {
    display: none;
    background: rgba(255,255,255,.16);
    border: none;
    color: #fff;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

.l-shell {
    max-width: 1340px;
    margin: 16px auto 48px;
    padding: 0 12px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.l-sidebar {
    width: 240px;
    flex: 0 0 240px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(15,23,42,.05);
    padding: 12px;
    position: sticky;
    top: 72px;
    max-height: calc(100vh - 86px);
    overflow-y: auto;
    z-index: 90;
}

.l-sidebar-head {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #64748b;
    padding: 4px 8px 10px;
}

.l-side-nav { display: grid; gap: 2px; }

.l-side-link {
    text-decoration: none;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 13px;
    font-weight: 500;
    transition: background .12s;
}

.l-side-link:hover { background: #f1f5f9; }

.l-side-link.active {
    background: #ecfdf5;
    color: #165f49;
    font-weight: 700;
}

.l-side-link.l-side-link--soon {
    opacity: 0.55;
    cursor: not-allowed;
}

.l-side-icon { width: 22px; text-align: center; font-size: 16px; line-height: 1; }

.l-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.45);
    border: none;
    z-index: 85;
}

body.sidebar-open .l-sidebar-overlay { display: block; }

.l-content { min-width: 0; width: 100%; }

.l-page-strip {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 14px;
    box-shadow: 0 1px 6px rgba(15,23,42,.04);
}

.l-page-strip h1,
.l-page-strip h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.diex-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(15,23,42,.05);
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid #e2e8f0;
}

.diex-card-muted { color: #64748b; font-size: 14px; line-height: 1.55; }

.diex-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.diex-stat {
    background: linear-gradient(135deg, #ecfdf5 0%, #fff 100%);
    border: 1px solid #d1fae5;
    border-radius: 10px;
    padding: 14px;
}

.diex-stat strong { display: block; font-size: 22px; color: #165f49; }
.diex-stat span { font-size: 12px; color: #64748b; }

/* Form inputs inside app cards (profil, dll.) */
.diex-card input[type="text"],
.diex-card input[type="email"],
.diex-card input[type="password"],
.diex-card select,
.diex-card textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.diex-card input:focus,
.diex-card select:focus,
.diex-card textarea:focus {
    outline: none;
    border-color: #2d6a4f;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

.diex-section-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.diex-section-desc {
    margin: 0 0 18px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.diex-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.diex-btn-inline {
    width: auto;
    margin-top: 0;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.diex-btn-secondary {
    background: #fff;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.diex-btn-secondary:hover {
    background: #f8fafc;
}

.diex-btn-danger {
    background: #b42318;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.diex-btn-danger:hover {
    background: #9a1d13;
}

.diex-saved-hint {
    font-size: 13px;
    color: #027a48;
    font-weight: 500;
}

.diex-verify-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 8px;
}

.diex-dialog {
    border: none;
    border-radius: 14px;
    padding: 0;
    max-width: min(92vw, 440px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.diex-dialog::backdrop {
    background: rgba(15, 23, 42, 0.45);
}

.diex-dialog-inner {
    padding: 22px 24px 20px;
}

.diex-dialog-inner h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.diex-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Landing / welcome */
.diex-welcome-page {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a472a 0%, #2d6a4f 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1f2937;
}

.diex-welcome-topnav {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.diex-welcome-topnav a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: background 0.15s;
}

.diex-welcome-topnav a:hover {
    background: rgba(255, 255, 255, 0.24);
}

.diex-welcome-topnav a.diex-welcome-topnav--solid {
    background: #fff;
    color: #165f49;
    border-color: #fff;
}

.diex-welcome-topnav a.diex-welcome-topnav--solid:hover {
    background: #ecfdf5;
}

.diex-welcome-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 12px 20px 56px;
}

.diex-welcome-card-lg {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
    padding: 40px 36px 36px;
    text-align: center;
}

.diex-welcome-card-lg img {
    height: 56px;
    width: 56px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 16px;
}

.diex-welcome-card-lg h1 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
    color: #1a472a;
}

.diex-welcome-tagline {
    margin: 0 0 20px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #94a3b8;
}

.diex-welcome-lead {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.55;
    color: #475569;
    text-align: left;
}

.diex-welcome-list {
    text-align: left;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.diex-welcome-list li {
    position: relative;
    padding: 10px 0 10px 28px;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.diex-welcome-list li:last-child {
    border-bottom: none;
}

.diex-welcome-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #165f49;
    font-weight: 800;
}

.diex-welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.diex-welcome-actions .diex-btn-primary {
    width: auto;
    min-width: 140px;
    margin: 0;
    padding: 12px 22px;
}

.diex-welcome-footer-note {
    margin-top: 28px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
}

/* Dashboard */
.diex-dashboard-datebar {
    padding: 12px 16px;
}

.diex-dashboard-datebar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.diex-dashboard-date-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #ecfdf5;
    color: #165f49;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    border: 1px solid #d1fae5;
    transition: background 0.12s;
}

.diex-dashboard-date-nav:hover {
    background: #d1fae5;
}

.diex-dashboard-date-nav--disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.diex-dashboard-date-text {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.diex-dashboard-date-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.diex-dashboard-today-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    color: #165f49;
    font-weight: 600;
}

.diex-dashboard-card-label {
    margin: 0 0 10px;
    font-size: 13px;
    color: #64748b;
}

.diex-dashboard-switcher-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.diex-dashboard-select {
    min-width: 220px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
}

.diex-dashboard-alert strong {
    color: #b45309;
}

.diex-stat-grid--dashboard {
    margin-bottom: 4px;
}

.diex-stat-nik {
    font-size: 14px !important;
    word-break: break-all;
    line-height: 1.25;
}

.diex-dashboard-greeting {
    margin: 0 0 10px;
    font-size: 17px;
    color: #0f172a;
}

.diex-dashboard-role-pill {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #ecfdf5;
    color: #165f49;
    vertical-align: middle;
}

.diex-dashboard-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px 20px;
    margin: 0;
}

.diex-dashboard-meta dt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin: 0 0 4px;
}

.diex-dashboard-meta dd {
    margin: 0;
    font-size: 14px;
    color: #334155;
}

.diex-dashboard-meta code {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 13px;
}

.diex-dashboard-quick {
    margin-top: 4px;
}

.diex-dashboard-quick-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.diex-dashboard-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.diex-dashboard-quick-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 14px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    text-decoration: none;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.12s, box-shadow 0.12s;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.diex-dashboard-quick-item:hover {
    border-color: #a7f3d0;
    box-shadow: 0 2px 10px rgba(22, 95, 73, 0.08);
}

.diex-dashboard-quick-item--soon {
    cursor: default;
    opacity: 0.72;
    pointer-events: none;
}

.diex-dashboard-quick-item--soon small {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.diex-dashboard-quick-icon {
    font-size: 20px;
    line-height: 1;
}

.diex-dashboard-footnote {
    margin: 20px 0 0;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}

.diex-dashboard-footnote code {
    font-size: 11px;
    background: #f8fafc;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ——— Dashboard mirip management/dashboard.php (PHP) ——— */
.diex-dash-header-slot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.diex-dash-header-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.diex-dash-header-co {
    font-weight: 500;
    color: #64748b;
}

.diex-dash-header-link {
    font-size: 13px;
    color: #165f49;
    font-weight: 600;
    text-decoration: none;
}

.diex-dash-header-link:hover {
    text-decoration: underline;
}

.diex-dash-switcher-label {
    margin: 0 0 10px;
    font-size: 13px;
    color: #64748b;
}

.diex-dash-switcher-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.diex-dash-switcher-select {
    min-width: 220px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
}

.diex-dash-alert strong {
    color: #b45309;
}

.diex-dash-muted {
    margin: 8px 0 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.diex-dash-mt {
    margin-top: 12px;
}

.diex-dash-link {
    font-weight: 600;
    color: #165f49;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.05);
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid #e2e8f0;
}

.diex-php-header-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.diex-php-header-card-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.diex-php-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(22, 95, 73, 0.1);
    color: #165f49;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.diex-php-halo {
    font-weight: 700;
    color: #0f172a;
}

.diex-php-subtitle {
    font-size: 12px;
    color: #64748b;
    margin-top: 3px;
}

.diex-php-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.diex-php-btn-outline {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #165f49;
    color: #165f49;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
}

.diex-php-btn-outline:hover {
    background: #ecfdf5;
}

.diex-php-header-meta {
    text-align: right;
    font-size: 12px;
    color: #64748b;
}

.diex-php-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
}

.diex-php-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.diex-dash-pending-projects .diex-php-section-head {
    margin-bottom: 12px;
}

.diex-dash-pending-ul {
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
    color: #334155;
    line-height: 1.55;
}

.diex-dash-pending-title {
    color: #165f49;
}

.diex-php-ringkasan {
    margin-bottom: 14px;
}

.diex-php-date-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 12px;
    gap: 10px;
    flex-wrap: wrap;
}

.diex-php-date-nav-left {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.diex-php-date-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.diex-php-date-get {
    display: inline-flex;
    margin: 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 6px 9px;
    border-radius: 8px;
    border: 1px solid #165f49;
    color: #165f49;
    font-size: 12px;
    font-weight: 700;
    background: #fff;
    text-decoration: none;
}

.chip:hover:not(.chip--disabled) {
    background: #ecfdf5;
}

.chip--disabled {
    opacity: 0.4;
    cursor: default;
}

.date-input {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 9px;
    font-size: 12px;
    font-family: inherit;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.stat-link {
    color: inherit;
    text-decoration: none;
    display: block;
    border-left: 4px solid #2f9e87;
    padding: 12px 14px;
}

.diex-php-stat-card.stat-link {
    margin-bottom: 0;
}

.stat-title {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
}

.icon-btn {
    border: none;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
}

.icon-btn:hover {
    background: #dbeafe;
}

.diex-php-empty-team {
    padding: 12px;
    font-size: 13px;
    color: #64748b;
}

.team-list {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.team-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.team-item:last-child {
    border-bottom: none;
}

.team-main {
    flex: 1;
    min-width: 0;
}

.team-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.team-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
}

.team-pct {
    font-size: 12px;
    font-weight: 700;
    color: #165f49;
    white-space: nowrap;
}

.team-pct.complete {
    color: #16a34a;
}

.progress {
    width: 100%;
    height: 7px;
    border-radius: 30px;
    background: #e2e8f0;
    overflow: hidden;
}

.progress > span {
    display: block;
    height: 100%;
    border-radius: 30px;
    background: #2f9e87;
    transition: width 0.3s;
}

.team-meta {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    text-align: right;
    min-width: 100px;
    white-space: nowrap;
}

.team-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.small-btn {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    padding: 5px 8px;
    font-size: 11px;
    text-decoration: none;
    color: #334155;
    cursor: pointer;
    font-family: inherit;
}

.small-btn.warn {
    border-color: #f59e0b;
    color: #b45309;
}

.small-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.badge-pending {
    background: #fffaeb;
    color: #b45309;
}

.badge-none {
    background: #f1f5f9;
    color: #64748b;
}

.diex-dash-employee-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
}

.diex-dash-inline-hint {
    margin-left: 12px;
    font-size: 13px;
}

.diex-dash-footer-meta .diex-dashboard-meta {
    margin-bottom: 12px;
}

@media (max-width: 760px) {
    .team-list {
        border: none;
        display: grid;
        gap: 8px;
    }

    .team-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 12px;
        border-bottom: none;
    }

    .team-meta {
        display: none;
    }

    .team-actions {
        justify-content: flex-end;
    }

    .small-btn {
        padding: 7px 12px;
        font-size: 12px;
    }

    .diex-php-header-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .diex-php-date-nav {
        align-items: flex-start;
    }
}

@media (max-width: 980px) {
    .l-menu-toggle { display: inline-flex; }
    .l-shell { display: block; margin-top: 12px; padding: 0 10px; }
    .l-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(82vw, 280px);
        max-height: none;
        border-radius: 0;
        border-left: none;
        transform: translateX(-105%);
        transition: transform .22s ease;
        z-index: 95;
        padding-top: 18px;
    }
    body.sidebar-open .l-sidebar { transform: translateX(0); }
}

@media (max-width: 640px) {
    .l-topbar { padding: 0 10px; height: 50px; }
    .l-topbar-heading { font-size: 14px; max-width: 140px; }
    .diex-login-card { padding: 28px 22px; }
}

/* ——— Profil (parity management/profile.php) ——— */
.diex-profile-intro {
    margin-bottom: 14px;
}

.diex-profile-page-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.diex-profile-page-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.diex-profile-flash {
    margin-bottom: 14px;
    font-size: 14px;
}

.diex-profile-flash--success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #14532d;
}

.diex-profile-flash--error {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.diex-profile-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 16px;
}

.diex-profile-side {
    display: grid;
    gap: 12px;
    align-content: start;
}

.diex-profile-photo-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.diex-profile-photo-box {
    padding: 12px;
}

.diex-profile-preview {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
}

.diex-profile-preview--ktp {
    aspect-ratio: 4 / 3;
    max-width: 260px;
}

.diex-profile-empty-preview {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 13px;
    background: #fff;
}

.diex-profile-empty-preview--ktp {
    aspect-ratio: 4 / 3;
    max-width: 260px;
}

.diex-profile-file-wrap {
    margin-top: 10px;
}

.diex-profile-grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.diex-profile-span-full {
    grid-column: 1 / -1;
}

.diex-profile-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 12px;
}

.card.diex-profile-main input[type="text"],
.card.diex-profile-main input[type="email"],
.card.diex-profile-main input[type="password"],
.card.diex-profile-main input[type="date"],
.card.diex-profile-main textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.card.diex-profile-main input[readonly] {
    background: #f8fafc;
    color: #64748b;
}

.card.diex-profile-main textarea {
    min-height: 88px;
    resize: vertical;
}

.card.diex-profile-main input:focus,
.card.diex-profile-main textarea:focus {
    outline: none;
    border-color: #2d6a4f;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

.diex-profile-verify-note {
    margin-top: 10px;
}

.diex-profile-verify-p {
    margin: 0;
    font-size: 13px;
}

.diex-profile-verify-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
}

.diex-profile-verify-sent {
    margin-top: 8px;
}

.diex-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 12px;
}

.diex-modal-overlay--open {
    display: flex;
}

.diex-modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    width: min(720px, 94vw);
    max-height: 90vh;
    overflow: auto;
}

.diex-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.diex-modal-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.diex-modal-close {
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
}

.diex-modal-preview {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 10px;
}

@media (max-width: 860px) {
    .diex-profile-grid {
        grid-template-columns: 1fr;
    }
}

/* ——— Manajemen Karyawan ——— */
.diex-karyawan-intro {
    margin-bottom: 14px;
}

.diex-karyawan-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    align-items: end;
}

.diex-karyawan-filter-submit .diex-karyawan-filter-spacer {
    display: block;
    min-height: 1.2em;
}

.card.diex-karyawan-filter-grid input[type="text"],
.card.diex-karyawan-filter-grid select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.diex-karyawan-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}

.diex-karyawan-form-grid input[type="text"],
.diex-karyawan-form-grid input[type="email"],
.diex-karyawan-form-grid input[type="password"],
.diex-karyawan-form-grid input[type="date"],
.diex-karyawan-form-grid select,
.diex-karyawan-form-grid textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.diex-karyawan-form-grid textarea {
    min-height: 74px;
    resize: vertical;
}

.diex-karyawan-span2 {
    grid-column: 1 / -1;
}

.diex-karyawan-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 6px;
}

.diex-modal-box--wide {
    width: min(760px, 94vw);
}

.diex-karyawan-label-lock {
    display: flex;
    align-items: center;
    gap: 6px;
}

.diex-karyawan-lock-btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}

.diex-karyawan-lock-btn--active {
    background: #334155;
    color: #fff;
    border-color: #334155;
}

.diex-karyawan-form-photo-preview {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.diex-karyawan-mini-btn {
    padding: 4px 8px;
    font-size: 11px;
    margin-left: 8px;
}

.diex-karyawan-grade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    align-items: end;
}

.card.diex-karyawan-grade-grid input[type="text"],
.card.diex-karyawan-grade-grid input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
}

.diex-karyawan-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.diex-karyawan-list-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.diex-karyawan-table-wrap {
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.diex-karyawan-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.diex-karyawan-table th,
.diex-karyawan-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 8px;
    text-align: left;
    vertical-align: top;
}

.diex-karyawan-table th {
    background: #f8fafc;
    white-space: nowrap;
}

.diex-karyawan-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.diex-karyawan-thumb-cursor {
    cursor: pointer;
}

.diex-karyawan-avatar-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #64748b;
}

.diex-karyawan-ktp-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.diex-karyawan-ktp-thumb:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.diex-karyawan-cell-muted {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
}

.diex-karyawan-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.diex-karyawan-inline-form {
    display: inline;
}

@media (max-width: 640px) {
    .diex-karyawan-list-btns {
        width: 100%;
    }

    .diex-karyawan-list-btns .diex-btn-primary,
    .diex-karyawan-list-btns .diex-php-btn-outline {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
}

/* Jadwal Karyawan */
.diex-jadwal-filter-card {
    margin-bottom: 18px;
}

.diex-jadwal-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: flex-end;
}

.diex-jadwal-fb-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
}

.diex-jadwal-fb-group label {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
}

.card.diex-jadwal-filter-bar input[type="text"],
.card.diex-jadwal-filter-bar input[type="date"],
.card.diex-jadwal-filter-bar select {
    padding: 9px 11px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    min-width: 160px;
}

.diex-jadwal-list-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.diex-jadwal-sched-group {
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.diex-jadwal-sched-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e8f5e9 100%);
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
}

.diex-jadwal-sched-count {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

.diex-jadwal-sched-row {
    display: grid;
    grid-template-columns: minmax(120px, 1.2fr) minmax(72px, 0.6fr) minmax(100px, 0.8fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 14px;
}

.diex-jadwal-sched-name {
    font-weight: 500;
    color: #0f172a;
}

.diex-jadwal-sched-nik {
    font-size: 12px;
    color: #64748b;
}

.diex-jadwal-sched-shift {
    font-variant-numeric: tabular-nums;
    color: #334155;
}

.diex-jadwal-sched-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.diex-jadwal-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.diex-jadwal-employee-grid {
    max-height: 280px;
    overflow: auto;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fafafa;
}

.diex-jadwal-group {
    margin-bottom: 14px;
}

.diex-jadwal-group:last-child {
    margin-bottom: 0;
}

.diex-jadwal-group-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 8px;
}

.diex-jadwal-group-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.diex-jadwal-emp-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.diex-jadwal-emp-label input {
    margin: 0;
}

.diex-jadwal-emp-scheduled {
    opacity: 0.85;
    border-style: dashed;
}

.diex-jadwal-emp-badge {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    background: #fef3c7;
    color: #92400e;
}

.diex-jadwal-toggle-head {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.diex-jadwal-arrow {
    font-size: 12px;
    color: #64748b;
    transition: transform 0.2s;
}

.diex-jadwal-collapse-body {
    display: none;
}

.diex-jadwal-collapse-body.diex-jadwal-collapse-open {
    display: block;
}

.diex-jadwal-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.diex-jadwal-quick-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #334155;
}

.diex-jadwal-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.diex-jadwal-inline input[type="text"] {
    flex: 1;
    min-width: 140px;
    padding: 9px 11px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
}

@media (max-width: 720px) {
    .diex-jadwal-sched-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .diex-jadwal-sched-actions {
        justify-content: flex-start;
    }
}
