/* assets/css/app.css */


/* =========================================================
   ROOT
========================================================= */

:root {

    --rk-primary: #0d6efd;

    --rk-primary-dark: #084298;

    --rk-primary-light: #eaf3ff;

    --rk-bg: #f6f8fc;

    --rk-card: #ffffff;

    --rk-text: #102a43;

    --rk-muted: #718096;

    --rk-border: #e5eaf1;

    --rk-success: #16a34a;

    --rk-warning: #f59e0b;

    --rk-danger: #dc2626;

    --rk-sidebar: #ffffff;

    --rk-radius: 16px;

    --rk-shadow:
        0 8px 30px rgba(15, 23, 42, 0.06);
}


/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}


body {

    margin: 0;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--rk-bg);

    color: var(--rk-text);

    font-size: 14px;
}


a {
    text-decoration: none;
}


button,
input,
select,
textarea {
    font-family: inherit;
}


/* =========================================================
   LOGIN
========================================================= */

.login-page {

    min-height: 100vh;

    background:
        radial-gradient(
            circle at top left,
            #eaf3ff 0,
            transparent 35%
        ),
        radial-gradient(
            circle at bottom right,
            #dbeafe 0,
            transparent 30%
        ),
        #f7faff;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 24px;
}


.login-wrapper {

    width: 100%;

    max-width: 440px;
}


.login-card {

    background: #ffffff;

    border: 1px solid var(--rk-border);

    border-radius: 24px;

    padding: 36px;

    box-shadow:
        0 20px 60px rgba(
            15,
            23,
            42,
            0.08
        );
}


.login-brand {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 38px;
}


.brand-logo {

    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #0d6efd,
            #2563eb
        );

    color: #ffffff;

    font-size: 23px;

    box-shadow:
        0 8px 20px rgba(
            13,
            110,
            253,
            0.25
        );
}


.brand-name {

    font-size: 21px;

    font-weight: 750;

    color: #09264d;
}


.brand-subtitle {

    font-size: 12px;

    color: var(--rk-muted);

    margin-top: 2px;
}


.login-heading h1 {

    margin: 0;

    font-size: 27px;

    font-weight: 750;

    color: #0b2545;
}


.login-heading p {

    margin-top: 8px;

    margin-bottom: 28px;

    color: var(--rk-muted);

    font-size: 14px;
}


.login-alert {

    border-radius: 12px;

    border: none;

    font-size: 13px;
}


.form-group-modern {

    margin-bottom: 20px;
}


.form-group-modern label {

    display: block;

    margin-bottom: 8px;

    font-weight: 600;

    color: #334e68;
}


.input-icon {

    position: relative;
}


.input-icon > i {

    position: absolute;

    left: 15px;

    top: 50%;

    transform:
        translateY(-50%);

    color: #829ab1;

    z-index: 2;
}


.input-icon .form-control {

    height: 50px;

    padding-left: 44px;

    border-radius: 12px;

    border: 1px solid #d9e2ec;

    font-size: 14px;

    box-shadow: none;
}


.input-icon .form-control:focus {

    border-color:
        var(--rk-primary);

    box-shadow:
        0 0 0 4px
        rgba(
            13,
            110,
            253,
            0.10
        );
}


.password-toggle {

    position: absolute;

    right: 12px;

    top: 50%;

    transform:
        translateY(-50%);

    border: none;

    background: transparent;

    color: #829ab1;

    z-index: 3;
}


.btn-primary-modern {

    height: 50px;

    border: none;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #0d6efd,
            #2563eb
        );

    color: #ffffff;

    font-weight: 650;

    box-shadow:
        0 8px 18px
        rgba(
            13,
            110,
            253,
            0.20
        );

    transition: 0.2s ease;
}


.btn-primary-modern:hover {

    transform: translateY(-1px);

    color: #ffffff;

    box-shadow:
        0 10px 24px
        rgba(
            13,
            110,
            253,
            0.25
        );
}


.login-footer {

    margin-top: 28px;

    padding-top: 20px;

    border-top:
        1px solid var(--rk-border);

    display: flex;

    justify-content: space-between;

    gap: 15px;

    color: #829ab1;

    font-size: 11px;
}


/* =========================================================
   APP LAYOUT
========================================================= */

.app-wrapper {

    min-height: 100vh;

    display: flex;
}


.sidebar {

    position: fixed;

    left: 0;

    top: 0;

    bottom: 0;

    width: 260px;

    background: var(--rk-sidebar);

    border-right:
        1px solid var(--rk-border);

    z-index: 1050;

    display: flex;

    flex-direction: column;
}


.sidebar-brand {

    min-height: 82px;

    padding: 20px 22px;

    display: flex;

    align-items: center;

    gap: 12px;

    border-bottom:
        1px solid #eef2f7;
}


.sidebar-brand-icon {

    width: 40px;

    height: 40px;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    background:
        linear-gradient(
            135deg,
            #0d6efd,
            #2563eb
        );

    font-size: 19px;
}


.sidebar-brand-name {

    font-weight: 750;

    font-size: 17px;

    color: #0b2545;
}


.sidebar-brand-subtitle {

    font-size: 10px;

    color: #829ab1;

    margin-top: 2px;
}


.sidebar-close {

    display: none;

    margin-left: auto;

    border: none;

    background: transparent;

    color: #829ab1;
}


.sidebar-menu {

    padding: 18px 14px;

    overflow-y: auto;

    flex: 1;
}


.menu-label {

    font-size: 10px;

    letter-spacing: 0.08em;

    font-weight: 750;

    color: #9aaabd;

    padding:
        16px 12px 8px;
}


.menu-item {

    display: flex;

    align-items: center;

    gap: 12px;

    min-height: 44px;

    padding:
        0 12px;

    border-radius: 10px;

    color: #486581;

    font-weight: 550;

    margin-bottom: 3px;

    transition: 0.18s ease;
}


.menu-item:hover {

    color: #0d6efd;

    background:
        #f0f6ff;
}


.menu-item.active {

    color: #0d6efd;

    background:
        #eaf3ff;

    font-weight: 650;
}


.menu-icon {

    width: 22px;

    text-align: center;

    font-size: 17px;
}


.menu-arrow {

    margin-left: auto;

    font-size: 11px;
}


.sidebar-bottom {

    padding: 16px;

    border-top:
        1px solid #eef2f7;
}


.sidebar-help {

    padding: 13px;

    display: flex;

    gap: 10px;

    border-radius: 12px;

    background:
        #f4f8ff;

    margin-bottom: 12px;
}


.sidebar-help-icon {

    width: 34px;

    height: 34px;

    flex: 0 0 34px;

    border-radius: 9px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #e2edff;

    color: #0d6efd;
}


.sidebar-help strong {

    display: block;

    font-size: 11px;

    color: #24415d;
}


.sidebar-help span {

    display: block;

    font-size: 10px;

    color: #829ab1;

    margin-top: 3px;
}


.logout-button {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-height: 42px;

    border-radius: 10px;

    color: #64748b;

    font-weight: 600;

    background: #f8fafc;
}


.logout-button:hover {

    background: #fff1f2;

    color: #dc2626;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.main-area {

    width: calc(100% - 260px);

    margin-left: 260px;

    min-height: 100vh;
}


.top-navbar {

    height: 82px;

    padding:
        0 30px;

    background: #ffffff;

    border-bottom:
        1px solid var(--rk-border);

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.top-navbar-left {

    display: flex;

    align-items: center;

    gap: 15px;
}


.mobile-menu-button {

    display: none;

    width: 40px;

    height: 40px;

    border: none;

    border-radius: 10px;

    background: #f1f5f9;

    color: #334e68;

    font-size: 20px;
}


.mobile-page-title {

    font-weight: 700;

    color: #102a43;
}


.top-navbar-right {

    display: flex;

    align-items: center;

    gap: 18px;
}


.notification-button {

    position: relative;

    width: 40px;

    height: 40px;

    border: none;

    border-radius: 10px;

    background: transparent;

    color: #627d98;

    font-size: 18px;
}


.notification-button:hover {

    background: #f1f5f9;
}


.notification-dot {

    position: absolute;

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: #ef4444;

    top: 8px;

    right: 8px;

    border: 2px solid #ffffff;
}


.user-menu {

    display: flex;

    align-items: center;

    gap: 10px;
}


.user-avatar {

    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 11px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #0d6efd,
            #2563eb
        );

    font-weight: 700;
}


.user-info strong {

    display: block;

    font-size: 12px;

    color: #243b53;
}


.user-info small {

    display: block;

    font-size: 10px;

    color: #829ab1;

    margin-top: 2px;
}


.user-chevron {

    color: #9fb3c8;

    font-size: 10px;

    margin-left: 4px;
}


/* =========================================================
   PAGE CONTENT
========================================================= */

.page-content {

    padding: 30px;
}


.page-heading {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 28px;
}


.page-heading h1 {

    font-size: 25px;

    font-weight: 750;

    margin: 0;

    color: #102a43;
}


.page-heading p {

    margin:
        6px 0 0;

    color: #829ab1;

    font-size: 13px;
}


/* =========================================================
   DASHBOARD CARDS
========================================================= */

.stat-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 22px;
}


.stat-card {

    background: #ffffff;

    border:
        1px solid var(--rk-border);

    border-radius:
        var(--rk-radius);

    padding: 20px;

    box-shadow:
        var(--rk-shadow);
}


.stat-card-top {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;
}


.stat-icon {

    width: 44px;

    height: 44px;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 19px;
}


.stat-icon.blue {

    background: #eaf3ff;

    color: #0d6efd;
}


.stat-icon.green {

    background: #eafaf0;

    color: #16a34a;
}


.stat-icon.orange {

    background: #fff7e8;

    color: #d97706;
}


.stat-icon.red {

    background: #fff1f2;

    color: #dc2626;
}


.stat-title {

    color: #829ab1;

    font-size: 12px;

    margin-top: 17px;
}


.stat-value {

    font-size: 25px;

    font-weight: 750;

    color: #102a43;

    margin-top: 4px;
}


.stat-footer {

    display: flex;

    align-items: center;

    gap: 5px;

    margin-top: 9px;

    font-size: 11px;

    color: #829ab1;
}


.stat-up {

    color: #16a34a;

    font-weight: 650;
}


/* =========================================================
   CONTENT CARDS
========================================================= */

.content-grid {

    display: grid;

    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(320px, 1fr);

    gap: 20px;
}


.content-card {

    background: #ffffff;

    border:
        1px solid var(--rk-border);

    border-radius:
        var(--rk-radius);

    box-shadow:
        var(--rk-shadow);

    overflow: hidden;
}


.content-card-header {

    padding:
        19px 20px;

    border-bottom:
        1px solid #eef2f7;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;
}


.content-card-header h3 {

    margin: 0;

    font-size: 15px;

    font-weight: 700;

    color: #102a43;
}


.content-card-header a {

    font-size: 11px;

    color: #0d6efd;

    font-weight: 650;
}


.content-card-body {

    padding: 20px;
}


/* =========================================================
   TABLE
========================================================= */

.modern-table {

    width: 100%;

    border-collapse: collapse;
}


.modern-table th {

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 0.04em;

    color: #829ab1;

    font-weight: 700;

    padding:
        12px 10px;

    border-bottom:
        1px solid #edf2f7;

    text-align: left;
}


.modern-table td {

    padding:
        13px 10px;

    border-bottom:
        1px solid #f1f5f9;

    color: #334e68;

    font-size: 12px;
}


.modern-table tr:last-child td {

    border-bottom: none;
}


/* =========================================================
   BADGE
========================================================= */

.badge-modern {

    display: inline-flex;

    align-items: center;

    padding:
        5px 9px;

    border-radius: 999px;

    font-size: 10px;

    font-weight: 650;
}


.badge-blue {

    color: #0d6efd;

    background: #eaf3ff;
}


.badge-green {

    color: #15803d;

    background: #eafaf0;
}


.badge-orange {

    color: #b45309;

    background: #fff7e8;
}


.badge-red {

    color: #b91c1c;

    background: #fff1f2;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

    .stat-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 991px) {

    .sidebar {

        transform:
            translateX(-100%);

        transition:
            transform 0.25s ease;
    }


    .sidebar.show {

        transform:
            translateX(0);
    }


    .sidebar-close {

        display: block;
    }


    .sidebar-overlay {

        display: none;

        position: fixed;

        inset: 0;

        background:
            rgba(
                15,
                23,
                42,
                0.35
            );

        z-index: 1040;
    }


    .sidebar-overlay.show {

        display: block;
    }


    .main-area {

        width: 100%;

        margin-left: 0;
    }


    .mobile-menu-button {

        display: flex;

        align-items: center;

        justify-content: center;
    }


    .top-navbar {

        height: 70px;

        padding:
            0 20px;
    }


    .page-content {

        padding: 22px 20px;
    }


    .content-grid {

        grid-template-columns: 1fr;
    }

}


@media (max-width: 767px) {

    .login-card {

        padding: 26px 22px;

        border-radius: 18px;
    }


    .login-heading h1 {

        font-size: 23px;
    }


    .login-footer {

        flex-direction: column;

        gap: 5px;
    }


    .user-info,
    .user-chevron {

        display: none;
    }


    .top-navbar-right {

        gap: 5px;
    }


    .page-heading {

        align-items: flex-start;

        flex-direction: column;

        margin-bottom: 20px;
    }


    .page-heading h1 {

        font-size: 22px;
    }


    .stat-grid {

        grid-template-columns: 1fr;

        gap: 12px;
    }


    .stat-card {

        padding: 17px;
    }


    .content-card-body {

        padding: 12px;
    }


    .modern-table {

        min-width: 600px;
    }


    .content-card-body.table-scroll {

        overflow-x: auto;
    }

}


@media (max-width: 420px) {

    .login-page {

        padding: 12px;
    }


    .login-card {

        padding: 22px 18px;
    }


    .brand-name {

        font-size: 19px;
    }


    .page-content {

        padding:
            18px 14px;
    }


    .top-navbar {

        padding:
            0 14px;
    }

}

/* =========================================================
   ACTIVITY
========================================================= */

.activity-item {

    display: flex;

    align-items: flex-start;

    gap: 12px;
}


.activity-item strong {

    display: block;

    color: #243b53;

    font-size: 12px;
}


.activity-item div div {

    color: #627d98;

    font-size: 11px;

    margin-top: 3px;
}


.activity-item small {

    display: block;

    color: #9fb3c8;

    font-size: 10px;

    margin-top: 4px;
}

/* =========================================================
   INVENTORY
========================================================= */

.inventory-menu-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}


.inventory-menu-card {

    background: #ffffff;

    border:
        1px solid var(--rk-border);

    border-radius:
        var(--rk-radius);

    padding: 20px;

    display: flex;

    align-items: center;

    gap: 14px;

    color: var(--rk-text);

    box-shadow:
        var(--rk-shadow);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}


.inventory-menu-card:hover {

    color: var(--rk-text);

    transform:
        translateY(-2px);

    border-color:
        #cbdcf7;

    box-shadow:
        0 12px 30px
        rgba(
            15,
            23,
            42,
            0.08
        );
}


.inventory-menu-card > i {

    margin-left: auto;

    color: #9fb3c8;

    font-size: 15px;
}


.inventory-menu-icon {

    width: 48px;

    height: 48px;

    flex: 0 0 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 13px;

    font-size: 20px;
}


.inventory-menu-icon.blue {

    color: #0d6efd;

    background: #eaf3ff;
}


.inventory-menu-icon.green {

    color: #16a34a;

    background: #eafaf0;
}


.inventory-menu-icon.orange {

    color: #d97706;

    background: #fff7e8;
}


.inventory-menu-card h3 {

    margin: 0;

    font-size: 14px;

    font-weight: 700;
}


.inventory-menu-card p {

    margin: 5px 0 0;

    font-size: 11px;

    color: #829ab1;

}


@media (max-width: 991px) {

    .inventory-menu-grid {

        grid-template-columns:
            1fr;

    }

}

/* =========================================================
   CATEGORY
========================================================= */

.category-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}


.category-card {

    border:
        1px solid #e8edf3;

    border-radius: 15px;

    padding: 18px;

    background: #ffffff;

    transition: 0.18s ease;
}


.category-card:hover {

    border-color:
        #cbdcf7;

    box-shadow:
        0 10px 25px
        rgba(
            15,
            23,
            42,
            0.06
        );

    transform:
        translateY(-2px);
}


.category-card-top {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    margin-bottom: 15px;
}


.category-icon {

    width: 50px;

    height: 50px;

    border-radius: 13px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #eaf3ff;

    color: #0d6efd;

    font-size: 21px;

    overflow: hidden;
}


.category-icon img {

    width: 100%;

    height: 100%;

    object-fit: cover;
}


.category-card h3 {

    font-size: 15px;

    font-weight: 700;

    margin: 0;

    color: #102a43;
}


.category-card p {

    font-size: 11px;

    color: #829ab1;

    line-height: 1.6;

    min-height: 36px;

    margin:
        7px 0 15px;
}


.category-card-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-top: 13px;

    border-top:
        1px solid #eef2f7;

    color: #829ab1;

    font-size: 10px;
}


@media (max-width: 1100px) {

    .category-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


@media (max-width: 650px) {

    .category-grid {

        grid-template-columns:
            1fr;

    }

}
/* =========================================================
   FORM
========================================================= */

.form-control-modern {

    min-height: 46px;

    border-radius: 10px;

    border:
        1px solid #d9e2ec;

    box-shadow: none;

    font-size: 13px;
}


.form-control-modern:focus {

    border-color:
        #0d6efd;

    box-shadow:
        0 0 0 4px
        rgba(
            13,
            110,
            253,
            0.08
        );
}


.upload-box {

    border:
        1px dashed #cbd5e1;

    border-radius: 15px;

    padding: 25px;

    text-align: center;

    background:
        #f8fafc;
}


.upload-box-icon {

    width: 56px;

    height: 56px;

    margin:
        0 auto 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 15px;

    color: #0d6efd;

    background: #eaf3ff;

    font-size: 23px;
}


.upload-box h4 {

    font-size: 14px;

    font-weight: 700;

    margin-bottom: 5px;
}


.upload-box p {

    color: #829ab1;

    font-size: 11px;

    margin-bottom: 15px;
}
/* =========================================================
   UNIT FISIK
========================================================= */

.unit-code-modern {

    display: flex;

    align-items: center;

    gap: 9px;

    min-width: 135px;
}


.unit-code-modern > i {

    width: 36px;

    height: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 9px;

    background: #eff6ff;

    color: #0d6efd;

    font-size: 16px;
}


.unit-code-modern strong {

    display: block;

    color: #102a43;

    font-size: 12px;
}


.unit-code-modern small {

    display: block;

    margin-top: 3px;

    color: #829ab1;

    font-size: 9px;
}


/* BADGE TAMBAHAN */

.badge-modern.badge-blue {

    color: #1d4ed8;

    background: #eff6ff;

    border-color: #bfdbfe;
}


.badge-modern.badge-orange {

    color: #c2410c;

    background: #fff7ed;

    border-color: #fed7aa;
}


.badge-modern.badge-red {

    color: #b91c1c;

    background: #fef2f2;

    border-color: #fecaca;
}


.badge-modern.badge-gray {

    color: #475569;

    background: #f1f5f9;

    border-color: #e2e8f0;
}
/* =========================================================
   DETAIL UNIT
========================================================= */

.detail-item-modern {

    display: flex;

    flex-direction: column;

    gap: 5px;

    padding: 15px;

    border-radius: 12px;

    background: #f8fafc;

    border: 1px solid #edf2f7;
}


.detail-item-modern > span {

    font-size: 12px;

    color: #829ab1;
}


.detail-item-modern > strong {

    color: #102a43;

    font-size: 14px;

    line-height: 1.5;
}


.detail-item-modern > small {

    color: #829ab1;

    font-size: 11px;
}


/* QR */

.qr-unit-card {

    overflow: hidden;
}


.qr-display-wrapper {

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;
}


.unit-qrcode {

    width: 240px;

    height: 240px;

    padding: 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 16px;

    margin-bottom: 15px;
}


.unit-qrcode img {

    max-width: 100%;

    height: auto;
}


.qr-unit-code {

    font-size: 18px;

    color: #102a43;

    margin-bottom: 3px;
}


.qr-empty-state {

    text-align: center;

    padding: 15px 5px;
}


.qr-empty-icon {

    width: 75px;

    height: 75px;

    margin: 0 auto 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 20px;

    background: #eff6ff;

    color: #0d6efd;

    font-size: 34px;
}


.qr-empty-state h4 {

    color: #102a43;

    margin-bottom: 5px;
}


.qr-empty-state p {

    color: #829ab1;

    font-size: 13px;

    margin-bottom: 20px;
}


/* TIMELINE */

.timeline-modern {

    position: relative;

    padding-left: 25px;
}


.timeline-modern::before {

    content: '';

    position: absolute;

    top: 8px;

    bottom: 8px;

    left: 9px;

    width: 2px;

    background: #e5edf5;
}


.timeline-item {

    position: relative;

    display: flex;

    gap: 16px;

    padding-bottom: 25px;
}


.timeline-item:last-child {

    padding-bottom: 0;
}


.timeline-dot {

    position: absolute;

    left: -25px;

    top: 0;

    width: 20px;

    height: 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #eff6ff;

    color: #0d6efd;

    border: 3px solid #ffffff;

    box-shadow:
        0 0 0 1px #dbeafe;

    font-size: 9px;

    z-index: 2;
}


.timeline-content {

    width: 100%;

    padding: 14px;

    background: #f8fafc;

    border: 1px solid #edf2f7;

    border-radius: 12px;
}


.timeline-head {

    display: flex;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 10px;
}


.timeline-head strong {

    font-size: 12px;

    color: #102a43;
}


.timeline-head span {

    font-size: 11px;

    color: #829ab1;
}


.timeline-status {

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 12px;

    color: #627d98;
}


.timeline-status i {

    color: #9fb3c8;
}


.timeline-status strong {

    color: #102a43;
}


.timeline-note {

    margin-top: 10px;

    padding: 10px 12px;

    border-left: 3px solid #0d6efd;

    background: #ffffff;

    border-radius: 0 8px 8px 0;

    color: #627d98;

    font-size: 12px;

    line-height: 1.6;
}


.detail-photo-empty {

    min-height: 260px;
}


/* PRINT */

@media print {

    body {

        background: #ffffff !important;

    }


    .sidebar,
    .navbar,
    .page-heading .btn,
    .content-card:not(.qr-unit-card) {

        display: none !important;

    }


    .main-area {

        margin: 0 !important;

    }


    .page-content {

        padding: 0 !important;

    }


    .qr-unit-card {

        box-shadow: none !important;

        border: none !important;

    }

}
/* =========================================================
   CUSTOMER RENTAL
========================================================= */

.customer-page {

    min-height: 100vh;

    background:
        linear-gradient(
            180deg,
            #f8fbff 0%,
            #ffffff 45%
        );
}


.customer-container {

    width: min(
        1180px,
        calc(100% - 32px)
    );

    margin: 0 auto;
}


.customer-navbar {

    position: sticky;

    top: 0;

    z-index: 1000;

    background: rgba(
        255,
        255,
        255,
        .94
    );

    backdrop-filter: blur(15px);

    border-bottom:
        1px solid #eaf0f6;
}


.customer-brand {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: #102a43;

    font-size: 20px;

    font-weight: 800;

    text-decoration: none;
}


.customer-brand:hover {

    color: #102a43;
}


.customer-brand > span:last-child span {

    color: #0d6efd;
}


.customer-brand-icon {

    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 11px;

    background: #0d6efd;

    color: white;

    font-size: 18px;
}


.customer-eyebrow {

    color: #0d6efd;

    font-size: 13px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .08em;
}


.customer-title {

    color: #102a43;

    font-size: clamp(
        28px,
        4vw,
        42px
    );

    font-weight: 800;

    line-height: 1.15;

    margin-bottom: 10px;
}


.customer-subtitle {

    color: #627d98;

    max-width: 650px;

    line-height: 1.7;
}


/* PRODUCT CARD */

.rental-product-card {

    height: 100%;

    background: #ffffff;

    border: 1px solid #e7eef5;

    border-radius: 18px;

    overflow: hidden;

    transition:
        transform .2s ease,
        box-shadow .2s ease;

    box-shadow:
        0 5px 20px rgba(
            16,
            42,
            67,
            .04
        );
}


.rental-product-card:hover {

    transform:
        translateY(-4px);

    box-shadow:
        0 14px 35px rgba(
            16,
            42,
            67,
            .10
        );
}


.rental-product-image {

    height: 220px;

    position: relative;

    background: #f1f5f9;

    overflow: hidden;
}


.rental-product-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;
}


.rental-product-placeholder {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #9fb3c8;

    font-size: 55px;
}


.rental-category-badge {

    position: absolute;

    left: 14px;

    top: 14px;

    padding: 6px 10px;

    border-radius: 999px;

    background: rgba(
        255,
        255,
        255,
        .94
    );

    color: #334e68;

    font-size: 11px;

    font-weight: 700;
}


.rental-product-body {

    padding: 20px;
}


.rental-product-body h3 {

    color: #102a43;

    font-size: 17px;

    font-weight: 700;

    margin-bottom: 4px;
}


.rental-product-code {

    color: #829ab1;

    font-size: 11px;

    margin-bottom: 18px;
}


.rental-product-price {

    display: flex;

    align-items: baseline;

    gap: 4px;
}


.rental-product-price strong {

    color: #0d6efd;

    font-size: 20px;
}


.rental-product-price span {

    color: #829ab1;

    font-size: 12px;
}


.rental-stock-info {

    margin-top: 10px;

    color: #627d98;

    font-size: 12px;
}


.rental-stock-info i {

    color: #20a464;

    margin-right: 4px;
}


/* DETAIL */

.rental-detail-image {

    min-height: 450px;

    border-radius: 24px;

    overflow: hidden;

    background: #f1f5f9;

    display: flex;

    align-items: center;

    justify-content: center;
}


.rental-detail-image img {

    width: 100%;

    height: 100%;

    max-height: 600px;

    object-fit: cover;
}


.rental-detail-placeholder {

    color: #9fb3c8;

    font-size: 80px;
}


.rental-detail-price {

    display: flex;

    align-items: baseline;

    gap: 5px;
}


.rental-detail-price strong {

    color: #0d6efd;

    font-size: 30px;
}


.rental-detail-price span {

    color: #829ab1;
}


.rental-availability-box {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px;

    border-radius: 14px;

    background: #f0fdf4;

    border: 1px solid #dcfce7;

    color: #15803d;
}


.rental-availability-box > i {

    font-size: 22px;
}


.rental-availability-box div {

    display: flex;

    flex-direction: column;
}


.rental-availability-box strong {

    font-size: 13px;
}


.rental-availability-box span {

    font-size: 11px;

    color: #4d7c5a;
}


.rental-description h4 {

    color: #102a43;

    font-size: 16px;

    margin-bottom: 10px;
}


.rental-description div {

    color: #627d98;

    font-size: 14px;

    line-height: 1.8;
}


/* CART */

.rental-period-card {

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 16px;

    background: #eff6ff;

    border: 1px solid #dbeafe;

    border-radius: 16px;

    color: #1e40af;
}


.rental-period-icon {

    width: 44px;

    height: 44px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background: #ffffff;

    font-size: 20px;
}


.rental-period-card > div:nth-child(2) {

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.rental-period-card span {

    font-size: 11px;

    color: #60a5fa;
}


.rental-period-card strong {

    font-size: 14px;

    color: #1e3a8a;
}


.rental-cart-item {

    display: flex;

    align-items: center;

    gap: 16px;
}


.rental-cart-thumb {

    width: 90px;

    height: 90px;

    flex: 0 0 90px;

    border-radius: 14px;

    overflow: hidden;

    background: #f1f5f9;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #9fb3c8;

    font-size: 30px;
}


.rental-cart-thumb img {

    width: 100%;

    height: 100%;

    object-fit: cover;
}


.rental-cart-info {

    flex: 1;
}


.rental-cart-info h4 {

    color: #102a43;

    font-size: 15px;

    margin-bottom: 3px;
}


.rental-cart-price {

    text-align: right;

    min-width: 130px;
}


.rental-cart-price strong {

    display: block;

    color: #102a43;

    margin-bottom: 8px;
}


.rental-summary-card {

    position: sticky;

    top: 90px;
}


.rental-summary-row {

    display: flex;

    justify-content: space-between;

    gap: 10px;

    color: #627d98;

    font-size: 13px;

    margin-bottom: 14px;
}


.rental-summary-row strong {

    color: #102a43;
}


.rental-summary-total {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;
}


.rental-summary-total span {

    color: #334e68;

    font-weight: 600;
}


.rental-summary-total strong {

    color: #0d6efd;

    font-size: 20px;
}


.rental-summary-note {

    padding: 10px;

    background: #f8fafc;

    border-radius: 10px;

    color: #829ab1;

    font-size: 11px;

    line-height: 1.6;
}


/* MOBILE */

@media (
    max-width: 767.98px
) {

    .customer-container {

        width:
            calc(100% - 24px);
    }


    .rental-product-image {

        height: 200px;
    }


    .rental-detail-image {

        min-height: 300px;

        border-radius: 18px;
    }


    .rental-cart-item {

        align-items: flex-start;

        flex-wrap: wrap;
    }


    .rental-cart-thumb {

        width: 70px;

        height: 70px;

        flex-basis: 70px;
    }


    .rental-cart-price {

        width: 100%;

        text-align: left;

        padding-left: 86px;
    }


    .rental-summary-card {

        position: static;
    }


    .rental-period-card {

        align-items: flex-start;
    }

}
/* =========================================================
   CHECKOUT
========================================================= */

.rental-checkout-period {

    display: flex;

    align-items: center;

    gap: 20px;

    flex-wrap: wrap;
}


.rental-checkout-period > div:not(
    .rental-days-badge
) {

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.rental-checkout-period span {

    color: #829ab1;

    font-size: 11px;
}


.rental-checkout-period strong {

    color: #102a43;

    font-size: 15px;
}


.rental-checkout-period > i {

    color: #9fb3c8;
}


.rental-days-badge {

    padding: 7px 12px;

    border-radius: 999px;

    background: #eff6ff;

    color: #1d4ed8;

    font-size: 12px;

    font-weight: 700;

    margin-left: auto;
}


.rental-checkout-item {

    display: flex;

    align-items: center;

    gap: 15px;
}


.checkout-agreement {

    padding: 12px;

    background: #f8fafc;

    border-radius: 12px;
}


.checkout-agreement label {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    color: #627d98;

    font-size: 12px;

    line-height: 1.6;

    cursor: pointer;
}


.checkout-agreement input {

    margin-top: 3px;

    accent-color: #0d6efd;
}


/* =========================================================
   BOOKING
========================================================= */

.booking-created-banner {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 20px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #f0fdf4
        );

    border: 1px solid #dbeafe;
}


.booking-created-icon {

    width: 48px;

    height: 48px;

    flex: 0 0 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background: #16a34a;

    color: #ffffff;

    font-size: 22px;
}


.booking-created-banner > div:last-child {

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.booking-created-banner span {

    color: #627d98;

    font-size: 12px;
}


.booking-created-banner strong {

    color: #102a43;

    font-size: 18px;

    letter-spacing: .04em;
}


.booking-info-grid {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 20px;
}


.booking-info-grid > div {

    display: flex;

    flex-direction: column;

    gap: 5px;
}


.booking-info-grid span {

    color: #829ab1;

    font-size: 11px;
}


.booking-info-grid strong {

    color: #102a43;

    font-size: 14px;
}


.booking-status {

    display: inline-flex;

    width: fit-content;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 11px !important;
}


.status-pending {

    background: #fff7ed;

    color: #c2410c !important;
}


.payment-waiting-box {

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    gap: 8px;

    padding: 25px 15px;

    background: #f8fafc;

    border-radius: 15px;
}


.payment-waiting-box > i {

    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background: #eff6ff;

    color: #0d6efd;

    font-size: 22px;
}


.payment-waiting-box strong {

    color: #102a43;

    font-size: 14px;
}


.payment-waiting-box span {

    color: #829ab1;

    font-size: 11px;

    line-height: 1.6;
}


@media (
    max-width: 767.98px
) {

    .booking-info-grid {

        grid-template-columns: 1fr;
    }


    .rental-checkout-period {

        gap: 12px;
    }


    .rental-days-badge {

        margin-left: 0;

        width: 100%;

        text-align: center;
    }


    .rental-checkout-item {

        align-items: flex-start;
    }

}
/* =========================================================
   QRIS PAYMENT
========================================================= */

.qris-payment-image {

    display: flex;

    justify-content: center;

    padding: 15px;

    background: #ffffff;

    border: 1px solid #e6edf5;

    border-radius: 16px;
}


.qris-payment-image img {

    display: block;

    width: 100%;

    max-width: 280px;

    height: auto;

    object-fit: contain;
}


.qris-payment-total {

    text-align: center;

    color: #102a43;

    font-size: 22px;

    font-weight: 800;
}
/* =========================================================
   PHASE 1 — RESPONSIVE QUALITY & TUTORIAL PAGES
   Overrides are intentionally appended to preserve the existing theme.
========================================================= */
.main-area,
.page-content,
.content-card,
.content-card-body,
.customer-page,
.customer-container {
    min-width: 0;
}

.main-area {
    flex: 1 1 auto;
}

.navbar-page-context {
    min-width: 0;
}

.navbar-page-subtitle {
    margin-top: 3px;
    color: #829ab1;
    font-size: 11px;
    line-height: 1.3;
}

.top-navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    gap: 14px;
}

.top-navbar-left,
.top-navbar-right,
.user-menu {
    min-width: 0;
}

.top-navbar-right {
    flex-shrink: 0;
}

.navbar-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #e5eaf1;
    border-radius: 10px;
    background: #fff;
    color: #52677d;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

.navbar-logout:hover,
.navbar-logout:focus-visible {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fff7f7;
}

.sidebar-menu {
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.page-content {
    width: 100%;
    max-width: 1920px;
    margin-inline: auto;
}

.page-heading > *,
.content-card-header > *,
.row > * {
    min-width: 0;
}

.content-card,
.stat-card,
.rental-product-card {
    overflow-wrap: anywhere;
}

.content-card-body {
    max-width: 100%;
}

input,
select,
textarea,
.form-control,
.form-select,
.form-control-modern {
    min-width: 0;
    max-width: 100%;
}

img,
video,
iframe {
    max-width: 100%;
}

button,
a,
input,
select,
textarea {
    touch-action: manipulation;
}

.customer-page {
    flex: 1 1 100%;
    width: 100%;
}

.customer-navbar .customer-container {
    min-height: 70px;
    gap: 14px;
}

.customer-navbar .btn {
    white-space: nowrap;
}

.tutorial-page {
    max-width: 1440px;
}

.tutorial-intro {
    background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
}

.tutorial-intro-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 14px;
    background: #eaf3ff;
    color: #0d6efd;
    font-size: 23px;
}

.tutorial-flow {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #486581;
    font-size: 12px;
    font-weight: 650;
}

.tutorial-flow span {
    padding: 7px 10px;
    border: 1px solid #dce8f7;
    border-radius: 999px;
    background: #fff;
}

.tutorial-flow > i {
    color: #9fb3c8;
}

.tutorial-accordion {
    display: grid;
    gap: 10px;
}

.tutorial-accordion .accordion-item {
    overflow: hidden;
    border: 1px solid #e5eaf1;
    border-radius: 14px !important;
    background: #fff;
    box-shadow: 0 5px 20px rgba(15, 23, 42, .035);
}

.tutorial-accordion .accordion-button {
    gap: 12px;
    padding: 17px 20px;
    color: #102a43;
    font-size: 14px;
    font-weight: 650;
    box-shadow: none;
}

.tutorial-accordion .accordion-button:not(.collapsed) {
    background: #f6f9ff;
    color: #0d4fae;
}

.tutorial-accordion .accordion-button > span:last-child {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.tutorial-accordion .accordion-button small {
    color: #718096;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
}

.tutorial-step-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    background: #eaf3ff;
    color: #0d6efd;
    font-size: 18px;
}

.tutorial-accordion .accordion-body {
    padding: 18px 24px 22px 72px;
    color: #486581;
    font-size: 13px;
    line-height: 1.8;
}

.tutorial-accordion .accordion-body ol,
.tutorial-accordion .accordion-body ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.tutorial-accordion .accordion-body li + li {
    margin-top: 7px;
}

.tutorial-checklist,
.tutorial-status-list {
    display: grid;
    gap: 8px;
}

.tutorial-checklist li::marker {
    color: #16a34a;
}

.tutorial-feedback,
.tutorial-note,
.tutorial-customer-footer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 17px 19px;
    border: 1px solid #dce8f7;
    border-radius: 14px;
    background: #f5f9ff;
    color: #486581;
    font-size: 13px;
    line-height: 1.7;
}

.tutorial-feedback > i,
.tutorial-note > i {
    color: #0d6efd;
    font-size: 20px;
    margin-top: 2px;
}

.tutorial-feedback strong,
.tutorial-note strong,
.tutorial-customer-footer strong {
    display: block;
    margin-bottom: 3px;
    color: #102a43;
}

.tutorial-customer-content {
    padding-top: 42px;
    padding-bottom: 56px;
}

.tutorial-customer-hero {
    margin-bottom: 24px;
}

.tutorial-customer-nav,
.tutorial-customer-nav-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.tutorial-customer-nav-actions {
    justify-content: flex-end;
    gap: 8px;
}

.tutorial-customer-footer {
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #fff;
}

@media (max-width: 991.98px) {
    .top-navbar {
        height: 70px;
        padding-inline: 18px;
    }

    .tutorial-page .page-heading {
        align-items: flex-start;
    }

    .tutorial-accordion .accordion-body {
        padding-left: 24px;
    }
}

@media (max-width: 767.98px) {
    .top-navbar {
        padding-inline: 13px;
    }

    .navbar-page-subtitle {
        display: none;
    }

    .top-navbar-right {
        gap: 8px;
    }

    .navbar-logout {
        width: 40px;
        min-width: 40px;
        padding: 0;
        font-size: 16px;
    }

    .navbar-logout span {
        display: none;
    }

    .tutorial-page .page-heading > a {
        align-self: stretch;
        text-align: center;
    }

    .tutorial-intro .content-card-body {
        align-items: flex-start !important;
        padding: 16px;
    }

    .tutorial-flow {
        align-items: stretch;
        flex-direction: column;
    }

    .tutorial-flow > i {
        display: none;
    }

    .tutorial-flow span {
        border-radius: 10px;
    }

    .tutorial-accordion .accordion-button {
        padding: 14px 13px;
        gap: 10px;
    }

    .tutorial-accordion .accordion-button small {
        font-size: 11px;
    }

    .tutorial-step-icon {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
        border-radius: 10px;
        font-size: 16px;
    }

    .tutorial-accordion .accordion-body {
        padding: 14px 17px 18px;
        font-size: 12px;
        line-height: 1.75;
    }

    .tutorial-feedback,
    .tutorial-note,
    .tutorial-customer-footer {
        padding: 14px;
    }

    .tutorial-customer-content {
        padding-top: 28px;
        padding-bottom: 36px;
    }

    .tutorial-customer-nav {
        padding-block: 12px;
        align-items: flex-start;
        flex-direction: column;
    }

    .tutorial-customer-nav-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .tutorial-customer-nav-actions .btn {
        flex: 1 1 auto;
        padding-inline: 9px;
        font-size: 12px;
    }

    .tutorial-customer-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .tutorial-customer-footer .btn {
        width: 100%;
    }

    .customer-container {
        width: calc(100% - 24px);
    }

    .customer-navbar .customer-container {
        min-height: 62px;
        flex-wrap: wrap;
        padding-block: 10px;
    }

    .customer-navbar .customer-brand {
        font-size: 18px;
    }

    .customer-navbar .btn {
        padding: 8px 10px;
        font-size: 12px;
    }

    .modern-table {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .table-responsive {
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    .content-card-body.table-scroll,
    .content-card-body:has(> .modern-table) {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 420px) {
    .user-avatar {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .top-navbar-left {
        gap: 8px;
    }

    .mobile-page-title {
        max-width: 42vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 13px;
    }

    .tutorial-accordion .accordion-button {
        font-size: 12px;
    }

    .tutorial-accordion .accordion-button small {
        max-width: 58vw;
    }
}


@media (max-width: 991.98px) {
    body.sidebar-open {
        overflow: hidden;
    }
}

@media (max-width: 767.98px) {
    .customer-navbar .customer-container > .d-flex {
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .checkout-header .container {
        flex-wrap: wrap;
        row-gap: 8px;
    }
}

/* =========================================================
   PHASE 2 — UI/UX CONSISTENCY ACROSS ALL MODULES
   Keeps the existing RentalKu blue/white visual identity while
   normalizing legacy admin pages, forms, tables and mobile spacing.
========================================================= */

:root {
    --rk-text-strong: #102a43;
    --rk-text-secondary: #627d98;
    --rk-soft-bg: #f8fafc;
    --rk-focus: rgba(13, 110, 253, .18);
    --rk-card-shadow: 0 8px 24px rgba(15, 23, 42, .045);
}

html {
    scroll-padding-top: 94px;
    -webkit-text-size-adjust: 100%;
}

body {
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.app-wrapper,
.main-area,
.page-content,
.admin-page,
.customer-page,
.customer-container,
.container-fluid,
.row > *,
.card,
.card-body,
.content-card,
.content-card-body {
    min-width: 0;
}

.main-area {
    overflow-wrap: break-word;
}

.sidebar {
    box-shadow: 8px 0 28px rgba(15, 23, 42, .025);
}

.sidebar-brand {
    flex-shrink: 0;
}

.sidebar-menu {
    padding-bottom: 22px;
}

.menu-label {
    line-height: 1.4;
}

.menu-item {
    min-height: 46px;
    line-height: 1.35;
}

.menu-item:focus-visible,
.sidebar-close:focus-visible,
.mobile-menu-button:focus-visible,
.navbar-logout:focus-visible,
.logout-button:focus-visible {
    outline: 3px solid var(--rk-focus);
    outline-offset: 2px;
}

.top-navbar {
    min-width: 0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .018);
}

.navbar-page-context {
    min-width: 0;
}

.mobile-page-title {
    line-height: 1.3;
}

.page-content {
    padding: 28px 30px 36px;
}

.page-heading {
    align-items: center;
    margin-bottom: 24px;
}

.page-heading h1,
.admin-page h1,
.admin-page h2 {
    color: var(--rk-text-strong);
    letter-spacing: -.025em;
    line-height: 1.25;
}

.page-heading p {
    max-width: 760px;
    line-height: 1.65;
}

.page-heading > div:last-child,
.page-heading > .d-flex {
    min-width: 0;
    max-width: 100%;
}

/* Outlier legacy admin screens now live inside the common shell. */
.admin-page {
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
    color: var(--rk-text-strong);
}

.page-content > .admin-page > .container-fluid,
.page-content > .container-fluid {
    padding-right: 0;
    padding-left: 0;
}

.admin-page .card,
.page-content > .container-fluid .card,
.content-card,
.stat-card {
    border-color: var(--rk-border);
    border-radius: var(--rk-radius);
}

.admin-page .card,
.page-content > .container-fluid .card {
    box-shadow: var(--rk-card-shadow) !important;
}

.admin-page .card-header,
.page-content > .container-fluid .card-header {
    padding: 15px 20px;
    background: #fff;
    border-bottom-color: #edf2f7;
    color: var(--rk-text-strong);
    font-weight: 700;
}

.admin-page .card-body,
.page-content > .container-fluid .card-body {
    min-width: 0;
}

.content-card {
    box-shadow: var(--rk-card-shadow);
}

.content-card-header {
    min-height: 62px;
    flex-wrap: wrap;
    padding: 17px 20px;
}

.content-card-header h3 {
    line-height: 1.4;
}

.content-card-body {
    padding: 20px;
}

.stat-card {
    box-shadow: var(--rk-card-shadow);
    transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}

.stat-card:hover {
    border-color: #d6e4f5;
    box-shadow: 0 11px 28px rgba(15, 23, 42, .075);
}

.stat-title {
    line-height: 1.5;
}

.stat-value {
    line-height: 1.25;
    overflow-wrap: anywhere;
}

/* Shared button sizing, consistent alignment and clearer keyboard focus. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    max-width: 100%;
    min-height: 40px;
    border-radius: 10px;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.btn-sm {
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.btn-primary-modern {
    min-height: 46px;
    height: auto;
    padding: 11px 18px;
}

.btn:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid var(--rk-focus);
    outline-offset: 2px;
    box-shadow: none;
}

.btn:disabled,
.btn.disabled {
    cursor: not-allowed;
    transform: none;
}

/* Forms: consistent control height, labels and validation readability. */
.form-label,
.form-label-modern,
.form-group-modern label {
    display: block;
    color: #334e68;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

.form-label {
    margin-bottom: 7px;
}

.form-control,
.form-select,
.form-control-modern {
    min-height: 43px;
    width: 100%;
    border-color: #dbe4ee;
    border-radius: 10px;
    color: var(--rk-text-strong);
    font-size: 14px;
    line-height: 1.45;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus,
.form-control-modern:focus,
textarea:focus {
    border-color: #78aefb;
    box-shadow: 0 0 0 4px var(--rk-focus);
}

textarea.form-control,
textarea.form-control-modern {
    min-height: 110px;
    resize: vertical;
}

.form-control[type="file"] {
    height: auto;
    min-height: 43px;
    padding: 7px 9px;
}

.form-control[type="file"]::file-selector-button {
    margin: -2px 10px -2px -2px;
    padding: 7px 11px;
    border: 0;
    border-radius: 7px;
    background: #edf4ff;
    color: #1453a6;
    font-weight: 600;
}

.form-control-sm,
.form-select-sm {
    min-height: 34px;
    font-size: 12px;
}

.form-text,
.form-help {
    display: block;
    margin-top: 6px;
    color: #718096;
    font-size: 12px;
    line-height: 1.6;
}

.form-check-input {
    width: 1.05em;
    height: 1.05em;
    margin-top: .23em;
}

.form-check-input:focus {
    border-color: #78aefb;
    box-shadow: 0 0 0 4px var(--rk-focus);
}

/* Tables: clearer hierarchy and predictable horizontal scrolling. */
.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
}

.table {
    --bs-table-color: #334e68;
    --bs-table-border-color: #e9eef5;
    margin-bottom: 0;
    vertical-align: middle;
}

.table > :not(caption) > * > * {
    padding: 12px 13px;
    vertical-align: middle;
}

.table > thead > tr > th,
.table thead.table-light th {
    background: #f7f9fc;
    color: #627d98;
    border-bottom-width: 1px;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .035em;
    line-height: 1.45;
    white-space: nowrap;
}

.table tbody td {
    font-size: 13px;
    line-height: 1.5;
}

.table tbody tr:last-child > * {
    border-bottom-width: 0;
}

.table-hover > tbody > tr:hover > * {
    --bs-table-bg-state: #f8fbff;
}

.table .btn,
.modern-table .btn {
    white-space: nowrap;
}

.modern-table th {
    font-size: 10px;
    padding: 13px 12px;
}

.modern-table td {
    padding: 14px 12px;
    line-height: 1.55;
}

/* Filters and pagination should wrap instead of forcing page overflow. */
.pagination {
    flex-wrap: wrap;
    gap: 4px;
}

.page-link {
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
    border-color: #e2eaf3;
    color: #36536f;
}

.page-item.active .page-link {
    border-color: #0d6efd;
    background: #0d6efd;
}

.badge,
.badge-modern {
    font-weight: 650;
    line-height: 1.4;
}

.badge {
    padding: .45em .7em;
}

.alert {
    border-radius: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.breadcrumb {
    flex-wrap: wrap;
    row-gap: 4px;
}

/* Catalog and customer transaction pages. */
.customer-navbar {
    box-shadow: 0 3px 14px rgba(15, 23, 42, .025);
}

.customer-page .card:not(.rental-product-card),
.customer-page .content-card {
    border: 1px solid var(--rk-border);
    border-radius: 16px;
    box-shadow: var(--rk-card-shadow);
}

.customer-page .card-header {
    background: #fff;
    border-bottom-color: #edf2f7;
}

.customer-page .card-body,
.customer-page .content-card-body {
    min-width: 0;
}

.rental-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rental-product-image img {
    display: block;
}

.rental-product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rental-product-body h3 {
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.rental-product-body .btn,
.rental-product-body .btn-primary-modern {
    margin-top: auto;
}

.rental-cart-info,
.rental-cart-price,
.rental-summary-card,
.rental-checkout-period > div,
.booking-info-grid > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

.rental-summary-card {
    z-index: 1;
}

/* QRIS and legacy settings page aligned to the shared admin content area. */
.main-area > .page-wrapper {
    width: 100%;
    max-width: 1500px;
    padding: 28px 30px 42px;
}

/* Petugas screens retain their dedicated task flow, but share control polish. */
.scan-card,
.detail-sewa-card,
.pickup-card,
.return-card,
.petugas-stat,
.petugas-table-card {
    min-width: 0;
    overflow-wrap: anywhere;
}

.scan-camera-box video,
.scan-camera-box canvas,
.scan-camera-box img {
    max-width: 100%;
}

/* Responsive refinements for tablets and phones. */
@media (max-width: 1199.98px) {
    .page-content {
        padding-inline: 22px;
    }

    .content-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .main-area > .page-wrapper {
        padding-inline: 22px;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        width: min(290px, calc(100vw - 48px));
        max-width: 88vw;
        box-shadow: 16px 0 36px rgba(15, 23, 42, .16);
    }

    .page-content {
        padding: 22px 20px 30px;
    }

    .page-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .page-heading > div:last-child {
        width: 100%;
    }

    .page-heading > div:last-child .btn,
    .page-heading > div:last-child > a:only-child {
        max-width: 100%;
    }

    .admin-page .card-header,
    .page-content > .container-fluid .card-header {
        padding: 14px 16px;
    }

    .main-area > .page-wrapper {
        padding: 22px 20px 32px;
    }
}

@media (max-width: 767.98px) {
    .page-content {
        padding: 18px 14px 26px;
    }

    .page-heading {
        margin-bottom: 18px;
        gap: 10px;
    }

    .page-heading h1,
    .admin-page h1 {
        font-size: 21px;
    }

    .page-heading p {
        font-size: 12px;
        margin-top: 5px;
    }

    .page-heading .btn,
    .page-heading > div:last-child .btn {
        min-height: 42px;
    }

    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .stat-card {
        padding: 14px;
        border-radius: 13px;
    }

    .stat-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 17px;
    }

    .stat-title {
        margin-top: 11px;
        font-size: 11px;
    }

    .stat-value {
        font-size: clamp(19px, 5vw, 24px);
    }

    .stat-footer {
        align-items: flex-start;
        line-height: 1.45;
        font-size: 10px;
    }

    .content-card-header {
        min-height: auto;
        padding: 14px 15px;
    }

    .content-card-header h3 {
        font-size: 14px;
    }

    .content-card-body {
        padding: 14px;
    }

    .admin-page .card-body,
    .page-content > .container-fluid .card-body {
        padding: 16px !important;
    }

    .admin-page .card-body.p-0,
    .page-content > .container-fluid .card-body.p-0 {
        padding: 0 !important;
    }

    .table > :not(caption) > * > * {
        padding: 10px 11px;
    }

    .table-responsive > .table {
        min-width: 620px;
    }

    .table-responsive > .table.table-sm {
        min-width: 540px;
    }

    .modern-table {
        min-width: 580px;
    }

    .btn {
        min-height: 39px;
    }

    .btn-sm {
        min-height: 33px;
    }

    .admin-page .d-flex.justify-content-between,
    .page-content > .container-fluid .d-flex.justify-content-between {
        row-gap: 10px;
    }

    .main-area > .page-wrapper {
        padding: 18px 14px 30px;
    }

    .main-area > .page-wrapper .qris-preview {
        padding: 15px;
    }

    .main-area > .page-wrapper .empty-qris {
        min-height: 220px;
    }

    .rental-product-image {
        height: 190px;
    }

    .rental-product-body {
        padding: 15px;
    }

    .rental-product-price strong {
        font-size: 18px;
    }

    .rental-checkout-period {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 12px;
    }

    .booking-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 420px) {
    .top-navbar {
        padding-inline: 10px;
        gap: 8px;
    }

    .top-navbar-right {
        gap: 4px;
    }

    .navbar-logout {
        width: 38px;
        min-width: 38px;
        min-height: 38px;
    }

    .page-content {
        padding-inline: 11px;
    }

    .page-heading h1,
    .admin-page h1 {
        font-size: 19px;
    }

    .stat-grid {
        gap: 8px;
    }

    .stat-card {
        padding: 12px;
    }

    .content-card-header,
    .content-card-body {
        padding-inline: 12px;
    }

    .customer-container {
        width: calc(100% - 20px);
    }

    .customer-title {
        font-size: clamp(25px, 8vw, 32px);
    }

    .main-area > .page-wrapper {
        padding-inline: 11px;
    }

    .booking-info-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* RentalKu Phase 4: public partner entry link on the login screen. */
.login-partner-link{color:#3975f6;font-weight:700;text-decoration:none}.login-partner-link:hover{color:#2456d9;text-decoration:underline}
