@charset "utf-8";
/* CSS Document */
/* =========================================================
   GARMENT PRODUCTION MANAGEMENT
   ADMIN SYSTEM
   STEP 6A - LOGIN
========================================================= */


/* =========================================================
   ROOT
========================================================= */

:root {

    --admin-primary: #1f2937;
    --admin-primary-dark: #111827;

    --admin-accent: #2563eb;
    --admin-accent-dark: #1d4ed8;

    --admin-bg: #f3f4f6;
    --admin-border: #e5e7eb;

    --admin-text: #111827;
    --admin-muted: #6b7280;

    --admin-white: #ffffff;

}


/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}


html,
body {

    width: 100%;
    min-height: 100%;

}


body {

    margin: 0;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--admin-text);

}


/* =========================================================
   LOGIN PAGE
========================================================= */

.login-page {

    min-height: 100vh;

    background:
        radial-gradient(
            circle at top left,
            rgba(37, 99, 235, 0.08),
            transparent 35%
        ),
        var(--admin-bg);

}


/* =========================================================
   LOGIN WRAPPER
========================================================= */

.login-wrapper {

    min-height: 100vh;

    display: flex;
    align-items: center;

    padding: 40px 20px;

}


/* =========================================================
   LOGIN CARD
========================================================= */

.login-card {

    width: 100%;

    max-width: 1180px;

    min-height: 680px;

    margin: auto;

    display: grid;

    grid-template-columns:
        minmax(360px, 0.9fr)
        minmax(430px, 1.1fr);

    background: var(--admin-white);

    border-radius: 24px;

    overflow: hidden;

    box-shadow:
        0 25px 60px rgba(15, 23, 42, 0.12),
        0 8px 20px rgba(15, 23, 42, 0.05);

}


/* =========================================================
   LEFT BRAND
========================================================= */

.login-brand {

    position: relative;

    display: flex;
    flex-direction: column;

    justify-content: space-between;

    padding: 56px;

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            #111827 0%,
            #1f2937 55%,
            #263548 100%
        );

    overflow: hidden;

}


/* Decorative circle */

.login-brand::before {

    content: "";

    position: absolute;

    width: 340px;
    height: 340px;

    right: -150px;
    top: -120px;

    border-radius: 50%;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

}


.login-brand::after {

    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    left: -180px;
    bottom: -150px;

    border-radius: 50%;

    background:
        rgba(37, 99, 235, 0.12);

}


/* =========================================================
   BRAND CONTENT
========================================================= */

.brand-content {

    position: relative;

    z-index: 2;

}


.brand-logo {

    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 28px;

    border-radius: 16px;

    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.10);

    border:
        1px solid
        rgba(255, 255, 255, 0.15);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

}


.brand-logo i {

    font-size: 29px;

}


.brand-label {

    margin-bottom: 12px;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;

    color:
        rgba(255, 255, 255, 0.55);

}


.login-brand h1 {

    margin: 0 0 20px;

    font-size: clamp(38px, 4vw, 54px);

    line-height: 1.04;

    font-weight: 700;

    letter-spacing: -1.5px;

}


.login-brand p {

    max-width: 430px;

    margin: 0;

    font-size: 15px;

    line-height: 1.8;

    color:
        rgba(255, 255, 255, 0.66);

}


/* =========================================================
   BRAND FEATURES
========================================================= */

.brand-features {

    display: flex;

    flex-direction: column;

    gap: 16px;

    margin-top: 48px;

}


.brand-feature {

    display: flex;

    align-items: center;

    gap: 14px;

}


.feature-icon {

    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.08);

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

}


.feature-icon i {

    font-size: 18px;

}


.brand-feature strong {

    display: block;

    margin-bottom: 2px;

    font-size: 14px;

    font-weight: 600;

}


.brand-feature small {

    display: block;

    font-size: 12px;

    color:
        rgba(255, 255, 255, 0.48);

}


/* =========================================================
   BRAND FOOTER
========================================================= */

.brand-footer {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-top: 30px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);

    font-size: 11px;

    color:
        rgba(255, 255, 255, 0.40);

}


/* =========================================================
   LOGIN FORM PANEL
========================================================= */

.login-form-panel {

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 50px 70px;

    background: #ffffff;

}


.login-form-container {

    width: 100%;

    max-width: 430px;

}


/* =========================================================
   MOBILE LOGO
========================================================= */

.mobile-brand-logo {

    display: none;

}


/* =========================================================
   LOGIN HEADING
========================================================= */

.login-heading {

    margin-bottom: 34px;

}


.login-eyebrow {

    display: inline-block;

    margin-bottom: 10px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.6px;

    color: var(--admin-accent);

}


.login-heading h2 {

    margin: 0 0 10px;

    font-size: 30px;

    line-height: 1.25;

    font-weight: 700;

    letter-spacing: -0.7px;

}


.login-heading p {

    margin: 0;

    font-size: 14px;

    line-height: 1.7;

    color: var(--admin-muted);

}


/* =========================================================
   ALERT
========================================================= */

.login-alert {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 14px;

    margin-bottom: 22px;

    border: 0;

    border-radius: 10px;

    font-size: 13px;

}


/* =========================================================
   FORM LABEL
========================================================= */

.form-label {

    margin-bottom: 8px;

    font-size: 13px;

    font-weight: 600;

    color: #374151;

}


/* =========================================================
   INPUT
========================================================= */

.login-input-group {

    height: 52px;

}


.login-input-group .input-group-text {

    width: 50px;

    justify-content: center;

    border:
        1px solid
        var(--admin-border);

    border-right: 0;

    border-radius:
        11px 0 0 11px;

    color: #9ca3af;

    background: #ffffff;

}


.login-input-group .form-control {

    height: 52px;

    border:
        1px solid
        var(--admin-border);

    border-left: 0;

    font-size: 14px;

    color: var(--admin-text);

    box-shadow: none;

}


.login-input-group .form-control::placeholder {

    color: #a1a1aa;

}


.login-input-group:focus-within
.input-group-text {

    border-color:
        var(--admin-accent);

    color:
        var(--admin-accent);

}


.login-input-group:focus-within
.form-control {

    border-color:
        var(--admin-accent);

}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.password-toggle {

    height: 52px;

    width: 48px;

    border:
        1px solid
        var(--admin-border);

    border-left: 0;

    border-radius:
        0 11px 11px 0;

    color: #9ca3af;

    background: #ffffff;

}


.password-toggle:hover {

    color:
        var(--admin-accent);

    background: #ffffff;

}


.password-toggle:focus {

    box-shadow: none;

}


/* =========================================================
   LOGIN OPTIONS
========================================================= */

.login-options {

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.form-check {

    margin: 0;

}


.form-check-input {

    width: 16px;
    height: 16px;

    margin-top: 2px;

    border-color: #d1d5db;

}


.form-check-input:checked {

    background-color:
        var(--admin-accent);

    border-color:
        var(--admin-accent);

}


.form-check-label {

    margin-left: 4px;

    font-size: 12px;

    color: #6b7280;

}


.login-security {

    display: flex;

    align-items: center;

    gap: 5px;

    font-size: 11px;

    color: #9ca3af;

}


.login-security i {

    color: #22c55e;

    font-size: 14px;

}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.btn-login {

    min-height: 52px;

    border: 0;

    border-radius: 11px;

    font-size: 14px;

    font-weight: 600;

    color: #ffffff;

    background:
        var(--admin-accent);

    box-shadow:
        0 8px 18px
        rgba(37, 99, 235, 0.18);

    transition:
        all 0.2s ease;

}


.btn-login:hover {

    color: #ffffff;

    background:
        var(--admin-accent-dark);

    transform:
        translateY(-1px);

    box-shadow:
        0 10px 22px
        rgba(37, 99, 235, 0.24);

}


.btn-login:active {

    transform:
        translateY(0);

}


.btn-login:disabled {

    opacity: 0.75;

    transform: none;

}


.login-button-content {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

}


/* =========================================================
   LOGIN BOTTOM
========================================================= */

.login-bottom {

    margin-top: 42px;

    text-align: center;

}


.login-divider {

    position: relative;

    display: flex;

    align-items: center;

    margin-bottom: 14px;

}


.login-divider::before,
.login-divider::after {

    content: "";

    flex: 1;

    height: 1px;

    background:
        #f0f0f0;

}


.login-divider span {

    padding: 0 12px;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 1px;

    color: #c4c4c4;

}


.login-bottom p {

    margin: 0;

    font-size: 10px;

    color: #b1b1b1;

}


/* =========================================================
   RESPONSIVE
========================================================= */


/* ---------------------------------------------------------
   TABLET
--------------------------------------------------------- */

@media (max-width: 991.98px) {

    .login-wrapper {

        padding: 25px 15px;

    }


    .login-card {

        min-height: auto;

        grid-template-columns: 1fr;

        max-width: 600px;

    }


    .login-brand {

        display: none;

    }


    .login-form-panel {

        padding:
            55px 50px;

    }


    .mobile-brand-logo {

        display: flex;

        justify-content: center;

        margin-bottom: 25px;

    }


    .mobile-brand-logo .brand-logo {

        margin-bottom: 0;

        color: #ffffff;

        background:
            var(--admin-primary);

    }

}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 575.98px) {

    .login-page {

        background: #ffffff;

    }


    .login-wrapper {

        padding: 0;

        align-items: stretch;

    }


    .login-card {

        min-height: 100vh;

        border-radius: 0;

        box-shadow: none;

    }


    .login-form-panel {

        align-items: flex-start;

        padding:
            42px 24px 30px;

    }


    .login-form-container {

        max-width: none;

    }


    .mobile-brand-logo {

        margin-bottom: 28px;

    }


    .mobile-brand-logo .brand-logo {

        width: 58px;
        height: 58px;

        border-radius: 15px;

    }


    .login-heading {

        margin-bottom: 30px;

    }


    .login-heading h2 {

        font-size: 26px;

    }


    .login-heading p {

        font-size: 13px;

    }


    .login-options {

        align-items: flex-start;

        gap: 10px;

    }


    .login-security {

        font-size: 10px;

    }


    .login-bottom {

        margin-top: 38px;

    }

}


/* ---------------------------------------------------------
   SMALL MOBILE
--------------------------------------------------------- */

@media (max-width: 360px) {

    .login-form-panel {

        padding:
            32px 18px 25px;

    }


    .login-heading h2 {

        font-size: 24px;

    }


    .login-security {

        display: none;

    }

}



/* =========================================================
   ADMIN SIDEBAR
========================================================= */

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;

    width: var(--admin-sidebar-width, 260px);

    background: var(--admin-primary, #1f2937);
    color: #ffffff;

    display: flex;
    flex-direction: column;

    z-index: 1040;

    overflow-y: auto;
    overflow-x: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* =========================================================
   SIDEBAR SCROLLBAR
========================================================= */

.admin-sidebar::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}


/* =========================================================
   BRAND
========================================================= */

.admin-sidebar-brand {
    height: var(--admin-navbar-height, 72px);

    display: flex;
    align-items: center;

    padding: 0 20px;

    flex-shrink: 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand-link {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 12px;

    color: #ffffff;
    text-decoration: none;
}

.admin-brand-link:hover {
    color: #ffffff;
}

.admin-brand-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.10);

    font-size: 20px;
}

.admin-brand-text {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.admin-brand-title {
    font-size: 15px;
    font-weight: 700;

    line-height: 1.2;

    white-space: nowrap;
}

.admin-brand-subtitle {
    margin-top: 3px;

    font-size: 11px;

    color: rgba(255, 255, 255, 0.55);

    white-space: nowrap;
}


/* =========================================================
   SIDEBAR USER
========================================================= */

.admin-sidebar-user {
    display: flex;
    align-items: center;

    gap: 11px;

    margin: 16px 14px 10px;
    padding: 11px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.055);
}

.admin-sidebar-user-avatar {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);

    font-size: 13px;
    font-weight: 700;
}

.admin-sidebar-user-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.admin-sidebar-user-name {
    overflow: hidden;

    font-size: 12px;
    font-weight: 600;

    line-height: 1.3;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-sidebar-user-role {
    margin-top: 3px;

    overflow: hidden;

    font-size: 10px;

    color: rgba(255, 255, 255, 0.55);

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   NAVIGATION
========================================================= */

.admin-sidebar-nav {
    padding: 8px 12px 20px;
}

.admin-nav-section-title {
    margin: 20px 8px 7px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.08em;

    color: rgba(255, 255, 255, 0.38);
}


/* =========================================================
   NORMAL MENU
========================================================= */

.admin-nav-link {
    width: 100%;

    min-height: 42px;

    display: flex;
    align-items: center;

    gap: 11px;

    margin: 2px 0;
    padding: 10px 12px;

    border: 0;
    border-radius: 8px;

    background: transparent;

    color: rgba(255, 255, 255, 0.72);

    font-size: 13px;
    font-weight: 500;

    text-decoration: none;

    text-align: left;

    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}

.admin-nav-link i:first-child {
    width: 18px;

    flex-shrink: 0;

    font-size: 16px;

    text-align: center;
}

.admin-nav-link span {
    min-width: 0;

    flex: 1;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.07);

    color: #ffffff;
}


/* =========================================================
   ACTIVE MAIN MENU
========================================================= */

.admin-nav-link.active {
    background: rgba(255, 255, 255, 0.12);

    color: #ffffff;

    font-weight: 600;
}


/* =========================================================
   PARENT MENU
========================================================= */

.admin-nav-parent {
    cursor: pointer;
}

.admin-nav-parent .admin-nav-arrow {
    width: auto !important;

    margin-left: auto;

    font-size: 11px;

    opacity: 0.55;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.admin-nav-parent[aria-expanded="true"] .admin-nav-arrow {
    transform: rotate(180deg);

    opacity: 0.9;
}


/* =========================================================
   SUBMENU
========================================================= */

.admin-nav-dropdown .collapse {
    padding-left: 10px;
}

.admin-nav-sublink {
    min-height: 38px;

    display: flex;
    align-items: center;

    gap: 10px;

    margin: 2px 0;
    padding: 8px 10px 8px 36px;

    border-radius: 7px;

    color: rgba(255, 255, 255, 0.58);

    font-size: 12px;

    text-decoration: none;

    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        padding-left 0.18s ease;
}

.admin-nav-sublink i {
    width: 16px;

    flex-shrink: 0;

    font-size: 13px;

    text-align: center;
}

.admin-nav-sublink span {
    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.admin-nav-sublink:hover {
    background: rgba(255, 255, 255, 0.055);

    color: #ffffff;

    padding-left: 39px;
}


/* =========================================================
   ACTIVE SUBMENU
========================================================= */

.admin-nav-sublink.active {
    background: rgba(37, 99, 235, 0.28);

    color: #ffffff;

    font-weight: 600;
}

.admin-nav-sublink.active:hover {
    background: rgba(37, 99, 235, 0.32);

    padding-left: 36px;
}


/* =========================================================
   COLLAPSE TRANSITION
========================================================= */

.admin-nav-dropdown .collapse {
    transition:
        height 0.25s ease;
}


/* =========================================================
   SIDEBAR FOOTER
========================================================= */

.admin-sidebar-footer {
    margin-top: auto;

    padding: 10px 12px 16px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-nav-logout {
    color: rgba(255, 255, 255, 0.60);
}

.admin-nav-logout:hover {
    background: rgba(220, 38, 38, 0.12);

    color: #ffffff;
}


/* =========================================================
   MOBILE OVERLAY
========================================================= */

.admin-sidebar-overlay {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    z-index: 1030;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.admin-sidebar-overlay.show {
    opacity: 1;

    visibility: visible;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.admin-main {
    margin-left: var(--admin-sidebar-width, 260px);

    min-height: 100vh;

    transition:
        margin-left 0.25s ease;
}

.admin-content {
    min-height: calc(100vh - var(--admin-navbar-height, 72px));

    padding: 24px;
}


/* =========================================================
   NAVBAR
========================================================= */

.admin-navbar {
    position: sticky;
    top: 0;

    height: var(--admin-navbar-height, 72px);

    display: flex;
    align-items: center;

    padding: 0 24px;

    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;

    z-index: 1020;
}


/* =========================================================
   SIDEBAR TOGGLE
========================================================= */

#sidebarToggle {
    display: none;

    width: 40px;
    height: 40px;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 8px;

    background: transparent;

    color: #374151;

    font-size: 20px;
}

#sidebarToggle:hover {
    background: #f3f4f6;
}


/* =========================================================
   RESPONSIVE <= 991.98px
========================================================= */

@media (max-width: 991.98px) {

    .admin-sidebar {
        transform: translateX(-100%);

        box-shadow: none;
    }

    .admin-sidebar.show {
        transform: translateX(0);

        box-shadow: 8px 0 30px rgba(0, 0, 0, 0.18);
    }

    .admin-main {
        margin-left: 0;
    }

    #sidebarToggle {
        display: inline-flex;
    }

    .admin-sidebar-overlay {
        display: block;
    }

}


/* =========================================================
   RESPONSIVE <= 575.98px
========================================================= */

@media (max-width: 575.98px) {

    .admin-navbar {
        height: 64px;

        padding: 0 14px;
    }

    .admin-content {
        padding: 16px;
    }

    .admin-sidebar {
        width: min(280px, 86vw);
    }

    .admin-sidebar-brand {
        height: 64px;

        padding: 0 16px;
    }

    .admin-sidebar-nav {
        padding-left: 10px;
        padding-right: 10px;
    }

}

/* =========================================================
   ADMIN NAVBAR CONTENT
========================================================= */

.navbar-left {

    min-width: 0;

    display: flex;
    align-items: center;

    gap: 12px;
}


.navbar-page-title {

    min-width: 0;

    display: flex;
    align-items: baseline;

    gap: 7px;

    line-height: 1;
}


.navbar-title {

    font-size: 15px;

    font-weight: 600;

    color: var(--admin-text);

    white-space: nowrap;
}


.navbar-subtitle {

    font-size: 12px;

    color: var(--admin-muted);

    white-space: nowrap;
}


.navbar-right {

    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 8px;

    flex-shrink: 0;
}


/* =========================================================
   NAVBAR USER
========================================================= */

.navbar-user {

    display: flex;
    align-items: center;

    gap: 10px;

    min-width: 0;
}


.navbar-user-avatar {

    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #ffffff;

    background: var(--admin-primary);

    font-size: 13px;
    font-weight: 700;
}


.navbar-user-info {

    min-width: 0;

    display: flex;
    flex-direction: column;

    line-height: 1.25;
}


.navbar-user-info strong {

    max-width: 150px;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 12px;

    font-weight: 600;

    color: var(--admin-text);
}


.navbar-user-info span {

    max-width: 150px;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;

    margin-top: 3px;

    font-size: 10px;

    color: var(--admin-muted);
}


/* =========================================================
   NAVBAR USER MENU
========================================================= */

.navbar-user-menu {

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    border-radius: 8px;

    color: #6b7280;

    background: transparent;
}


.navbar-user-menu:hover {

    color: var(--admin-text);

    background: #f3f4f6;
}


.navbar-user-menu:focus {

    box-shadow: none;
}


.navbar-user-menu i {

    font-size: 12px;
}


.navbar-right .dropdown-menu {

    min-width: 180px;

    margin-top: 8px;

    padding: 6px;

    border: 1px solid var(--admin-border);

    border-radius: 10px;

    box-shadow:
        0 12px 30px
        rgba(15, 23, 42, 0.10);
}


.navbar-right .dropdown-item {

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 9px 10px;

    border-radius: 7px;

    font-size: 12px;
}


.navbar-right .dropdown-item i {

    width: 16px;

    font-size: 14px;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.page-header {

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 22px;
}


.page-header h1 {

    margin: 0;

    font-size: 28px;

    line-height: 1.2;

    font-weight: 700;

    letter-spacing: -0.5px;

    color: var(--admin-text);
}


.page-header p {

    margin: 7px 0 0;

    font-size: 13px;

    color: var(--admin-muted);
}


/* =========================================================
   DASHBOARD CARD
========================================================= */

.dashboard-card {

    height: 100%;

    padding: 20px;

    background: var(--admin-white);

    border: 1px solid var(--admin-border);

    border-radius: 14px;

    box-shadow:
        0 2px 8px
        rgba(15, 23, 42, 0.035);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


.dashboard-card:hover {

    transform: translateY(-1px);

    border-color: #dbe1e8;

    box-shadow:
        0 8px 22px
        rgba(15, 23, 42, 0.07);
}


/* =========================================================
   DASHBOARD CARD HEADER
========================================================= */

.dashboard-card-header {

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;
}


/* =========================================================
   DASHBOARD CARD LABEL
========================================================= */

.dashboard-card-label {

    margin-top: 4px;

    font-size: 12px;

    line-height: 1.5;

    color: var(--admin-muted);
}


/* =========================================================
   DASHBOARD CARD VALUE
========================================================= */

.dashboard-card-value {

    margin-top: 8px;

    font-size: 28px;

    line-height: 1;

    font-weight: 700;

    letter-spacing: -0.5px;

    color: var(--admin-text);
}


/* =========================================================
   DASHBOARD CARD ICON
========================================================= */

.dashboard-card-icon {

    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    color: var(--admin-accent);

    background: rgba(37, 99, 235, 0.08);

    font-size: 19px;
}


/* =========================================================
   DASHBOARD CARD BODY
========================================================= */

.dashboard-card > .text-center {

    min-height: 250px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.dashboard-card > .text-center > i {

    color: #9ca3af;
}


.dashboard-card > .text-center p {

    max-width: 420px;

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   DASHBOARD SYSTEM STATUS
========================================================= */

.dashboard-card .d-flex {

    border-bottom: 1px solid #f1f3f5;
}


.dashboard-card .d-flex:last-child {

    border-bottom: 0;
}


.dashboard-card .text-success {

    font-size: 13px;

    font-weight: 500;
}

/* =========================================================
   ADMIN RESPONSIVE
========================================================= */

@media (max-width: 767.98px) {

    .navbar-page-title {

        gap: 0;
    }


    .navbar-title {

        font-size: 14px;
    }


    .navbar-subtitle {

        display: none;
    }


    .navbar-user-info {

        display: none;
    }


    .page-header h1 {

        font-size: 24px;
    }


    .dashboard-card {

        padding: 18px;
    }

}


@media (max-width: 575.98px) {

    .admin-content {

        padding: 16px;
    }


    .admin-navbar {

        padding: 0 14px;
    }


    .navbar-title {

        font-size: 13px;
    }


    .navbar-user-avatar {

        width: 34px;
        height: 34px;

        flex-basis: 34px;
    }


    .page-header {

        margin-bottom: 18px;
    }


    .page-header h1 {

        font-size: 22px;
    }


    .page-header p {

        font-size: 12px;
    }


    .dashboard-card {

        padding: 16px;

        border-radius: 12px;
    }


    .dashboard-card-value {

        font-size: 25px;
    }


    .dashboard-card-icon {

        width: 38px;
        height: 38px;

        flex-basis: 38px;

        font-size: 17px;
    }

}
/* =========================================================
   PRINT REVIEW
========================================================= */

@media print {

    @page {
        size: A4 portrait;
        margin: 12mm;
    }

    html,
    body {
        background: #fff !important;
        color: #000 !important;
    }

    /* Hilangkan elemen navigasi/admin */
    .sidebar,
    .admin-sidebar,
    .navbar,
    .admin-navbar,
    .page-header .d-flex.gap-2,
    .btn-print-review,
    button,
    .btn {
        display: none !important;
    }

    /* Area utama */
    .main-content,
    .content,
    .container,
    .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Page header tetap tampil,
       tetapi tombolnya tidak */
    .page-header {
        display: block !important;
        margin-bottom: 20px !important;
    }

    /* Hilangkan shadow agar hasil print bersih */
    .review-card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 8px !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .article-header,
    .batch-header,
    .cost-box,
    .cost-grand {
        box-shadow: none !important;
    }

    /* Jangan memotong kartu operation */
    .operation-detail {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    /* Jangan memotong tabel */
    table {
        page-break-inside: auto;
    }

    tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    thead {
        display: table-header-group;
    }

    tfoot {
        display: table-footer-group;
    }

    /* Timeline */
    .process-review {
        overflow: visible !important;
        display: flex !important;
        width: 100% !important;
    }

    .process-review::before {
        display: block !important;
    }

    .process-item {
        min-width: 0 !important;
        flex: 1 1 0 !important;
    }

    .process-icon {
        box-shadow: none !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .process-item.completed .process-icon {
        background: #198754 !important;
        color: #fff !important;
    }

    .process-item.progress .process-icon {
        background: #0d6efd !important;
        color: #fff !important;
    }

    .process-item.cancelled .process-icon {
        background: #dc3545 !important;
        color: #fff !important;
    }

    /* Badge warna tetap saat print */
    .badge,
    .bg-success,
    .bg-primary,
    .bg-secondary,
    .bg-danger,
    .bg-warning,
    .bg-info {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Cost grand tetap gelap saat print */
    .cost-grand {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Warna hasil */
    .result-good,
    .result-reject {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Hindari halaman kosong karena margin */
    .mb-4 {
        margin-bottom: 1rem !important;
    }

    /* Footer admin jangan ikut print */
    footer,
    .admin-footer {
        display: none !important;
    }
}



/* =========================================
   FINANCE - REPORT BUTTON
   Samakan tampilan dengan submenu sidebar
========================================= */

.admin-sidebar .admin-nav-sublink.admin-nav-parent {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 38px;
    box-sizing: border-box;

    margin: 2px 0;
    padding: 8px 10px 8px 36px;

    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.58);

    border: 0;
    border-radius: 7px;
    outline: none;
    box-shadow: none !important;

    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    text-align: left;

    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* Hover */
.admin-sidebar .admin-nav-sublink.admin-nav-parent:hover {
    background-color: rgba(255, 255, 255, 0.055) !important;
    color: #ffffff;
}

/* Klik mouse: hilangkan bingkai putih */
.admin-sidebar .admin-nav-sublink.admin-nav-parent:focus:not(:focus-visible) {
    background-color: transparent !important;
    outline: none;
    box-shadow: none !important;
}

/* Fokus keyboard tetap terlihat */
.admin-sidebar .admin-nav-sublink.admin-nav-parent:focus-visible {
    background-color: transparent !important;
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: -2px;
    box-shadow: none !important;
}

/* Saat Report aktif */
.admin-sidebar .admin-nav-sublink.admin-nav-parent.active {
    background-color: rgba(255, 255, 255, 0.07) !important;
    color: #ffffff;
    font-weight: 600;
}

/* Ikon panah tetap berada di kanan */
.admin-sidebar .admin-nav-sublink.admin-nav-parent .admin-nav-arrow {
    width: auto;
    margin-left: auto;
    opacity: 0.55;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.admin-sidebar .admin-nav-sublink.admin-nav-parent[aria-expanded="true"] .admin-nav-arrow {
    transform: rotate(180deg);
    opacity: 0.9;
}
