/* ==========================================================
   SECOND CUP CENTRAL STORE
   AUTHENTICATION UI
========================================================== */

:root {
    --sc-red: #c5162e;
    --sc-red-dark: #a90f26;
    --sc-red-soft: rgba(197, 22, 46, 0.08);

    --black: #0c0c0d;
    --black-soft: #141416;

    --white: #ffffff;

    --text-primary: #171719;
    --text-secondary: #68686e;
    --text-muted: #95959b;

    --border: #e6e6e9;
    --field-bg: #fafafa;

    --shadow:
        0 24px 65px rgba(0, 0, 0, 0.06);
}


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

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    font-family:
        "Segoe UI",
        Inter,
        Arial,
        sans-serif;

    color: var(--text-primary);
    background: var(--white);

    -webkit-font-smoothing: antialiased;
}


/* ==========================================================
   AUTH PAGE
========================================================== */

.auth-body {
    min-height: 100vh;
    overflow-x: hidden;
}

.auth-wrapper {
    display: grid;

    grid-template-columns:
        minmax(440px, 44%)
        minmax(500px, 56%);

    width: 100%;
    min-height: 100vh;
}


/* ==========================================================
   LEFT BRAND SECTION
========================================================== */

.auth-brand {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;

    padding:
        58px
        clamp(50px, 6vw, 90px);

    overflow: hidden;

    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(197, 22, 46, 0.15),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #080809 0%,
            #111113 58%,
            #09090a 100%
        );

    color: var(--white);
}


/* subtle vertical accent */

.auth-brand::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 4px;
    height: 100%;

    background:
        linear-gradient(
            to bottom,
            transparent,
            var(--sc-red),
            transparent
        );
}


/* subtle pattern */

.auth-brand::after {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    opacity: 0.18;

    background-image:
        linear-gradient(
            rgba(255,255,255,.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.018) 1px,
            transparent 1px
        );

    background-size: 42px 42px;
}


.auth-brand-decoration {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}

.decoration-one {
    width: 430px;
    height: 430px;

    right: -250px;
    bottom: -220px;

    border:
        1px solid
        rgba(197, 22, 46, 0.22);
}

.decoration-two {
    width: 260px;
    height: 260px;

    right: -135px;
    bottom: -125px;

    border:
        1px solid
        rgba(255, 255, 255, 0.05);
}


/* ==========================================================
   BRAND INNER
========================================================== */

.brand-inner {
    position: relative;
    z-index: 3;

    width: 100%;
    max-width: 540px;
}


/* LOGO */

.brand-logo-box {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 54px;
}

.brand-logo-box img {
    display: block;

    width: 205px;
    max-width: 100%;

    height: auto;

    object-fit: contain;
}


/* text */

.brand-label {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 18px;

    color: #df3249;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 2.2px;
}

.brand-label::before {
    content: "";

    width: 28px;
    height: 2px;

    background: var(--sc-red);
}


.brand-content h1 {
    margin: 0;

    max-width: 520px;

    color: var(--white);

    font-size:
        clamp(41px, 4.2vw, 59px);

    font-weight: 720;

    line-height: 1.03;

    letter-spacing: -2.7px;
}

.brand-content h1 span {
    color: #ffffff;
}

.brand-description {
    max-width: 460px;

    margin:
        27px
        0
        0;

    color: #a8a8ad;

    font-size: 14px;

    line-height: 1.75;
}


/* FEATURE LIST */

.brand-features {
    margin-top: 38px;

    display: grid;

    gap: 14px;
}

.brand-feature {
    display: flex;

    align-items: center;

    gap: 12px;

    color: #d4d4d7;

    font-size: 12px;
    font-weight: 500;
}

.feature-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--sc-red);

    box-shadow:
        0 0 0 5px
        rgba(197, 22, 46, 0.08);
}


.brand-footer {
    display: flex;

    align-items: center;

    gap: 11px;

    margin-top: 60px;

    color: #66666c;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.7px;
}

.brand-footer > span {
    width: 18px;
    height: 1px;

    background: #515155;
}


/* ==========================================================
   RIGHT LOGIN AREA
========================================================== */

.auth-content {
    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding:
        55px
        clamp(45px, 8vw, 120px);

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #ffffff 65%,
            #fbfbfb 100%
        );
}


.login-container {
    width: 100%;
    max-width: 465px;
}


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

.login-top {
    margin-bottom: 39px;
}

.login-eyebrow {
    display: block;

    margin-bottom: 13px;

    color: var(--sc-red);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 2.2px;
}

.login-top h2 {
    margin: 0 0 12px;

    color: var(--text-primary);

    font-size: 42px;
    font-weight: 720;

    line-height: 1.05;

    letter-spacing: -1.8px;
}

.login-top p {
    max-width: 410px;

    margin: 0;

    color: var(--text-secondary);

    font-size: 13.5px;

    line-height: 1.7;
}


/* ==========================================================
   ERROR
========================================================== */

.login-alert {
    display: flex;

    gap: 12px;

    align-items: flex-start;

    margin-bottom: 25px;

    padding: 14px 16px;

    border:
        1px solid
        #f1ccd2;

    border-radius: 9px;

    background: #fff7f8;
}

.login-alert-icon {
    flex: 0 0 auto;

    width: 27px;
    height: 27px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    color: var(--white);

    background: var(--sc-red);

    font-size: 12px;
    font-weight: 800;
}

.login-alert-content strong {
    display: block;

    margin-bottom: 3px;

    color: #971026;

    font-size: 12px;
}

.login-alert-content span {
    display: block;

    color: #77777d;

    font-size: 11px;

    line-height: 1.5;
}


/* ==========================================================
   FORM FIELDS
========================================================== */

.form-field {
    margin-bottom: 21px;
}

.form-field label {
    display: block;

    margin-bottom: 9px;

    color: #303034;

    font-size: 12px;
    font-weight: 650;
}


.input-wrapper {
    position: relative;

    display: flex;

    align-items: center;
}

.input-wrapper input {
    width: 100%;
    height: 55px;

    padding:
        0
        52px
        0
        49px;

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

    border-radius: 9px;

    outline: none;

    background: var(--field-bg);

    color: var(--text-primary);

    font-size: 13px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.input-wrapper input::placeholder {
    color: #adadb2;
}

.input-wrapper input:hover {
    border-color: #d0d0d4;
}

.input-wrapper input:focus {
    border-color:
        rgba(197, 22, 46, 0.65);

    background: #ffffff;

    box-shadow:
        0 0 0 4px
        rgba(197, 22, 46, 0.065);
}


/* input icons */

.input-icon {
    position: absolute;

    left: 17px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #96969c;

    pointer-events: none;
}

.input-icon svg {
    width: 18px;
    height: 18px;
}


/* password */

.password-toggle {
    position: absolute;

    right: 15px;

    width: 32px;
    height: 32px;

    display: grid;

    place-items: center;

    border: 0;

    border-radius: 6px;

    background: transparent;

    color: #97979d;

    cursor: pointer;

    transition:
        color .2s ease,
        background .2s ease;
}

.password-toggle:hover {
    color: var(--sc-red);

    background: var(--sc-red-soft);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}


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

.login-options {
    margin:
        4px
        0
        28px;
}

.remember-option {
    position: relative;

    display: inline-flex;

    align-items: center;

    gap: 9px;

    cursor: pointer;

    user-select: none;
}

.remember-option input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.custom-checkbox {
    width: 17px;
    height: 17px;

    display: block;

    position: relative;

    border:
        1px solid
        #cfcfd3;

    border-radius: 4px;

    background: #ffffff;

    transition: .2s ease;
}

.remember-option
input:checked
+
.custom-checkbox {
    border-color: var(--sc-red);

    background: var(--sc-red);
}

.remember-option
input:checked
+
.custom-checkbox::after {
    content: "";

    position: absolute;

    left: 5px;
    top: 2px;

    width: 4px;
    height: 8px;

    border:
        solid white;

    border-width:
        0 2px 2px 0;

    transform: rotate(45deg);
}

.remember-text {
    color: #69696f;

    font-size: 12px;
}


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

.login-button {
    width: 100%;
    height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    border: none;

    border-radius: 9px;

    color: var(--white);

    background:
        linear-gradient(
            135deg,
            #ca1932 0%,
            #b71029 100%
        );

    cursor: pointer;

    box-shadow:
        0 13px 30px
        rgba(197, 22, 46, 0.18);

    font-size: 12px;
    font-weight: 750;

    letter-spacing: .25px;

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

.login-button svg {
    width: 18px;
    height: 18px;

    transition:
        transform .2s ease;
}

.login-button:hover {
    transform: translateY(-1px);

    background:
        linear-gradient(
            135deg,
            #b81229 0%,
            #991020 100%
        );

    box-shadow:
        0 17px 35px
        rgba(197, 22, 46, 0.22);
}

.login-button:hover svg {
    transform: translateX(3px);
}


/* ==========================================================
   SECURITY NOTE
========================================================== */

.security-message {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 28px;

    color: var(--text-muted);

    font-size: 9.5px;
    font-weight: 600;

    letter-spacing: .45px;

    text-transform: uppercase;
}

.security-message svg {
    width: 15px;
    height: 15px;

    color: #98989d;
}


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

@media (max-width: 1050px) {

    .auth-wrapper {
        grid-template-columns:
            43%
            57%;
    }

    .auth-brand {
        padding:
            50px
            42px;
    }

    .auth-content {
        padding:
            45px
            55px;
    }

    .brand-content h1 {
        font-size: 42px;
    }
}


@media (max-width: 820px) {

    .auth-wrapper {
        display: block;
    }

    .auth-brand {
        min-height: auto;

        padding:
            28px
            28px
            34px;
    }

    .brand-logo-box {
        margin-bottom: 26px;
    }

    .brand-logo-box img {
        width: 165px;
    }

    .brand-content h1 {
        font-size: 32px;

        letter-spacing: -1.5px;
    }

    .brand-description,
    .brand-features,
    .brand-footer {
        display: none;
    }

    .auth-content {
        min-height: auto;

        padding:
            42px
            25px
            55px;
    }

    .login-container {
        max-width: 500px;
    }
}


@media (max-width: 480px) {

    .auth-brand {
        padding:
            24px
            20px
            28px;
    }

    .brand-content h1 {
        font-size: 28px;
    }

    .auth-content {
        padding:
            36px
            20px
            45px;
    }

    .login-top h2 {
        font-size: 34px;
    }

    .input-wrapper input {
        height: 52px;
    }

    .login-button {
        height: 53px;
    }
}






/* ==========================================================
   SECOND CUP DASHBOARD
========================================================== */

.dashboard-body {
    margin: 0;
    min-height: 100vh;
    background: #f6f6f7;
    color: #171719;
    overflow-x: hidden;
}


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

.dashboard-layout {
    min-height: 100vh;
    display: flex;
}


/* ==========================================================
   SIDEBAR
========================================================== */

.sidebar {
    width: 270px;
    min-width: 270px;

    height: 100vh;

    position: fixed;
    left: 0;
    top: 0;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            180deg,
            #0b0b0c 0%,
            #111113 100%
        );

    color: #ffffff;

    border-right:
        1px solid rgba(255, 255, 255, 0.05);

    z-index: 1000;
}


/* ==========================================================
   SIDEBAR BRAND
========================================================== */

.sidebar-brand {
    padding: 25px 24px 22px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-logo {
    width: 100%;

    margin-bottom: 17px;
}

.sidebar-logo img {
    width: 155px;
    max-width: 100%;

    display: block;

    object-fit: contain;
}

.sidebar-system-name {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-system-name strong {
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
}

.sidebar-system-name span {
    color: #77777d;

    font-size: 10px;

    letter-spacing: .3px;
}


/* ==========================================================
   SIDEBAR ROLE CARD
========================================================== */

.sidebar-role-card {
    margin: 17px 18px 7px;

    padding: 13px;

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.025);
}

.sidebar-role-label {
    display: block;

    margin-bottom: 11px;

    color: #69696f;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.sidebar-role-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-avatar {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    background:
        rgba(197, 22, 46, .15);

    color: #e82b44;

    font-size: 12px;
    font-weight: 800;
}

.sidebar-role-user > div:last-child {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.sidebar-role-user strong {
    color: #eeeeef;

    font-size: 10px;
    font-weight: 650;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-role-user span {
    margin-top: 2px;

    color: #74747a;

    font-size: 9px;
}


/* ==========================================================
   SIDEBAR MENU
========================================================== */

.sidebar-menu {
    flex: 1;

    overflow-y: auto;

    padding:
        8px
        13px
        25px;
}

.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: #29292c;

    border-radius: 20px;
}

.sidebar-section-title {
    margin:
        20px
        12px
        8px;

    color: #55555a;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.sidebar-link {
    width: 100%;

    min-height: 43px;

    display: flex;
    align-items: center;

    gap: 12px;

    position: relative;

    padding:
        0
        12px;

    margin-bottom: 3px;

    border-radius: 8px;

    color: #a7a7ac;

    text-decoration: none;

    font-size: 11px;
    font-weight: 550;

    transition:
        background .2s ease,
        color .2s ease;
}

.sidebar-link:hover {
    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.04);
}

.sidebar-link.active {
    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            rgba(197, 22, 46, .18),
            rgba(197, 22, 46, .05)
        );
}

.sidebar-link.active::before {
    content: "";

    position: absolute;

    left: 0;
    top: 9px;

    width: 3px;
    height: 25px;

    border-radius:
        0 3px 3px 0;

    background: #c5162e;
}

.sidebar-icon {
    width: 18px;
    height: 18px;

    display: grid;
    place-items: center;

    color: #76767c;
}

.sidebar-link.active .sidebar-icon,
.sidebar-link:hover .sidebar-icon {
    color: #e42a42;
}

.sidebar-icon svg {
    width: 17px;
    height: 17px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.6;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==========================================================
   SIDEBAR FOOTER
========================================================== */

.sidebar-footer {
    padding: 16px 18px;

    border-top:
        1px solid rgba(255,255,255,.06);
}

.sidebar-security {
    display: flex;
    align-items: center;
    gap: 10px;
}

.security-status {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #27a66d;

    box-shadow:
        0 0 0 4px
        rgba(39, 166, 109, .08);
}

.sidebar-security div {
    display: flex;
    flex-direction: column;
}

.sidebar-security strong {
    color: #a4a4a9;

    font-size: 9px;
}

.sidebar-security span:last-child {
    margin-top: 2px;

    color: #56565b;

    font-size: 8px;
}


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

.dashboard-main {
    width:
        calc(100% - 270px);

    min-height: 100vh;

    margin-left: 270px;

    background: #f6f6f7;
}


/* ==========================================================
   TOPBAR
========================================================== */

.dashboard-topbar {
    height: 76px;

    position: sticky;
    top: 0;

    z-index: 800;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding:
        0
        32px;

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

    backdrop-filter:
        blur(14px);

    border-bottom:
        1px solid #e8e8eb;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.page-eyebrow {
    display: block;

    margin-bottom: 4px;

    color: #b3172c;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.dashboard-topbar h2 {
    margin: 0;

    color: #18181a;

    font-size: 19px;
    font-weight: 700;

    letter-spacing: -.35px;
}

.topbar-actions {
    display: flex;
    align-items: center;

    gap: 15px;
}


/* notification */

.notification-button {
    width: 38px;
    height: 38px;

    position: relative;

    display: grid;
    place-items: center;

    border:
        1px solid #e6e6e8;

    border-radius: 9px;

    background: #ffffff;

    color: #626267;

    cursor: pointer;
}

.notification-button svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.6;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.notification-indicator {
    width: 6px;
    height: 6px;

    position: absolute;

    top: 7px;
    right: 7px;

    border:
        2px solid #ffffff;

    border-radius: 50%;

    background: #c5162e;
}


/* user */

.topbar-user {
    display: flex;
    align-items: center;

    gap: 10px;

    padding-left: 14px;

    border-left:
        1px solid #e8e8eb;
}

.topbar-avatar {
    width: 37px;
    height: 37px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: #111113;

    color: #ffffff;

    font-size: 12px;
    font-weight: 750;
}

.topbar-user-info {
    display: flex;
    flex-direction: column;

    min-width: 100px;
}

.topbar-user-info strong {
    color: #28282b;

    font-size: 10px;
    font-weight: 700;
}

.topbar-user-info span {
    margin-top: 2px;

    color: #8b8b91;

    font-size: 9px;
}


/* logout */

.logout-button {
    height: 38px;

    display: flex;
    align-items: center;

    gap: 7px;

    padding:
        0
        13px;

    border:
        1px solid #e5e5e7;

    border-radius: 8px;

    background: #ffffff;

    color: #6f6f74;

    cursor: pointer;

    font-size: 10px;
    font-weight: 650;

    transition: .2s ease;
}

.logout-button:hover {
    border-color:
        rgba(197,22,46,.25);

    color: #b3172c;

    background: #fff7f8;
}

.logout-button svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.6;

    stroke-linecap: round;
    stroke-linejoin: round;
}


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

.dashboard-content {
    padding:
        30px
        32px
        45px;
}


/* ==========================================================
   OWNER HEADER
========================================================== */

.owner-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 30px;

    margin-bottom: 28px;
}

.section-eyebrow {
    display: block;

    margin-bottom: 8px;

    color: #b3172c;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.owner-page-header h1 {
    margin: 0;

    color: #151517;

    font-size: 28px;
    font-weight: 720;

    letter-spacing: -1px;
}

.owner-page-header p {
    max-width: 560px;

    margin:
        8px
        0
        0;

    color: #77777d;

    font-size: 11px;

    line-height: 1.6;
}

.dashboard-date {
    min-width: 120px;

    padding:
        10px
        13px;

    border:
        1px solid #e5e5e7;

    border-radius: 9px;

    background: #ffffff;
}

.dashboard-date span,
.dashboard-date strong {
    display: block;
}

.dashboard-date span {
    margin-bottom: 3px;

    color: #97979d;

    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.dashboard-date strong {
    color: #333337;

    font-size: 10px;
}


/* ==========================================================
   STAT CARDS
========================================================== */

.stats-grid {
    display: grid;

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

    gap: 15px;

    margin-bottom: 18px;
}

.stat-card {
    min-height: 160px;

    padding: 18px;

    position: relative;

    overflow: hidden;

    border:
        1px solid #e8e8ea;

    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 5px 22px
        rgba(0, 0, 0, .025);

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

.stat-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 28px
        rgba(0,0,0,.045);
}

.stat-card::after {
    content: "";

    position: absolute;

    width: 70px;
    height: 70px;

    right: -28px;
    top: -30px;

    border-radius: 50%;

    background:
        rgba(197, 22, 46, .035);
}

.stat-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 19px;
}

.stat-icon {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    color: #c5162e;

    background:
        rgba(197,22,46,.08);
}

.stat-icon.neutral {
    color: #3b3b3f;

    background: #f3f3f4;
}

.stat-icon svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.6;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat-label {
    color: #a0a0a5;

    font-size: 7.5px;
    font-weight: 800;

    letter-spacing: 1px;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-content > span {
    color: #76767c;

    font-size: 10px;
}

.stat-content strong {
    margin:
        6px
        0
        5px;

    color: #18181a;

    font-size: 21px;
    font-weight: 730;

    letter-spacing: -.7px;
}

.stat-content small {
    color: #a0a0a5;

    font-size: 8.5px;

    line-height: 1.45;
}


/* ==========================================================
   PANELS
========================================================== */

.dashboard-section-grid,
.dashboard-bottom-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(300px, .85fr);

    gap: 18px;

    margin-bottom: 18px;
}

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

.dashboard-panel {
    border:
        1px solid #e8e8ea;

    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 5px 22px
        rgba(0,0,0,.02);
}

.panel-header {
    min-height: 66px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding:
        15px
        18px;

    border-bottom:
        1px solid #ededee;
}

.panel-header h3 {
    margin:
        3px
        0
        0;

    color: #222225;

    font-size: 13px;
    font-weight: 700;
}

.panel-eyebrow {
    color: #a3a3a8;

    font-size: 7.5px;
    font-weight: 800;

    letter-spacing: 1.2px;
}

.panel-header a {
    color: #b3172c;

    text-decoration: none;

    font-size: 9px;
    font-weight: 700;
}

.panel-header a:hover {
    text-decoration: underline;
}


/* ==========================================================
   DEPARTMENT LIST
========================================================== */

.department-list {
    padding:
        3px
        18px;
}

.department-row {
    min-height: 62px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    border-bottom:
        1px solid #f0f0f1;
}

.department-row:last-child {
    border-bottom: none;
}

.department-name {
    display: flex;
    align-items: center;

    gap: 11px;
}

.department-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #c5162e;

    box-shadow:
        0 0 0 5px
        rgba(197,22,46,.06);
}

.department-name div,
.department-value {
    display: flex;
    flex-direction: column;
}

.department-name strong {
    color: #303034;

    font-size: 10px;
}

.department-name small {
    margin-top: 3px;

    color: #a1a1a6;

    font-size: 8px;
}

.department-value {
    align-items: flex-end;
}

.department-value strong {
    color: #343438;

    font-size: 10px;
}

.department-value span {
    margin-top: 3px;

    color: #a1a1a6;

    font-size: 8px;
}


/* ==========================================================
   ALERT PANEL
========================================================== */

.alert-count {
    padding:
        5px
        8px;

    border-radius: 20px;

    color: #a51629;

    background:
        rgba(197,22,46,.07);

    font-size: 8px;
    font-weight: 700;
}

.empty-state {
    min-height: 245px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 30px;

    text-align: center;
}

.empty-icon {
    width: 47px;
    height: 47px;

    display: grid;
    place-items: center;

    margin-bottom: 13px;

    border-radius: 12px;

    color: #7b7b80;

    background: #f5f5f6;
}

.empty-icon svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.5;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.empty-state strong {
    color: #38383c;

    font-size: 10px;
}

.empty-state p {
    max-width: 240px;

    margin:
        6px
        0
        0;

    color: #9a9aa0;

    font-size: 8.5px;

    line-height: 1.6;
}


/* ==========================================================
   SUMMARY
========================================================== */

.summary-list {
    padding:
        3px
        18px;
}

.summary-item {
    min-height: 69px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    border-bottom:
        1px solid #f0f0f1;
}

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

.summary-item > div {
    display: flex;
    flex-direction: column;
}

.summary-item span {
    color: #3e3e42;

    font-size: 10px;
    font-weight: 650;
}

.summary-item small {
    margin-top: 3px;

    color: #a0a0a5;

    font-size: 8px;
}

.summary-item strong {
    color: #2e2e32;

    font-size: 11px;
}

.summary-item strong.danger-value {
    color: #b3172c;
}


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

.empty-table-state {
    min-height: 207px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 25px;
}

.empty-table-state span {
    color: #626267;

    font-size: 10px;
    font-weight: 650;
}

.empty-table-state small {
    margin-top: 5px;

    color: #a0a0a5;

    font-size: 8.5px;
}


/* ==========================================================
   MOBILE
========================================================== */

.mobile-sidebar-toggle {
    display: none;

    width: 36px;
    height: 36px;

    border:
        1px solid #e4e4e6;

    border-radius: 8px;

    background: #ffffff;

    cursor: pointer;
}


@media (max-width: 1180px) {

    .stats-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 950px) {

    .sidebar {
        transform: translateX(-100%);

        transition:
            transform .25s ease;
    }

    .sidebar.sidebar-open {
        transform: translateX(0);
    }

    .dashboard-main {
        width: 100%;

        margin-left: 0;
    }

    .mobile-sidebar-toggle {
        display: block;
    }

    .dashboard-section-grid,
    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 700px) {

    .dashboard-topbar {
        height: auto;

        min-height: 70px;

        padding:
            13px
            17px;
    }

    .dashboard-content {
        padding:
            22px
            17px
            35px;
    }

    .topbar-user-info,
    .logout-button span {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .owner-page-header {
        flex-direction: column;
    }

    .dashboard-date {
        width: 100%;
    }

}























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

.dashboard-body {
    margin: 0;
    min-height: 100vh;
    background: #f6f6f7;
    color: #18181b;
}

.dashboard-layout {
    min-height: 100vh;
    display: flex;
}


/* SIDEBAR */

.sidebar {
    width: 260px;
    min-width: 260px;
    height: 100vh;

    position: fixed;
    top: 0;
    left: 0;

    display: flex;
    flex-direction: column;

    background: #0d0d0f;
    color: #fff;

    border-right: 1px solid #202024;

    z-index: 1000;
}

.sidebar-brand {
    padding: 24px 22px 20px;
    border-bottom: 1px solid #242427;
}

.sidebar-brand img {
    width: 145px;
    display: block;
    margin-bottom: 15px;
}

.sidebar-brand > div {
    display: flex;
    flex-direction: column;
}

.sidebar-brand strong {
    font-size: 12px;
}

.sidebar-brand span {
    margin-top: 3px;
    color: #77777d;
    font-size: 9px;
}


.sidebar-user {
    margin: 17px 16px 5px;
    padding: 12px;

    display: flex;
    align-items: center;
    gap: 10px;

    border: 1px solid #29292d;
    border-radius: 9px;

    background: #151517;
}

.sidebar-avatar {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    background: rgba(197, 22, 46, .16);
    color: #e72b45;

    font-size: 12px;
    font-weight: 800;
}

.sidebar-user > div:last-child {
    display: flex;
    flex-direction: column;
}

.sidebar-user strong {
    color: #eee;
    font-size: 10px;
}

.sidebar-user span {
    margin-top: 2px;
    color: #77777d;
    font-size: 8px;
}


.sidebar-menu {
    flex: 1;
    overflow-y: auto;

    padding: 10px 13px 25px;
}

.sidebar-menu-title {
    display: block;

    margin: 20px 10px 8px;

    color: #55555b;

    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.sidebar-link {
    min-height: 42px;

    display: flex;
    align-items: center;

    position: relative;

    padding: 0 12px;
    margin-bottom: 3px;

    border-radius: 7px;

    color: #9d9da3;

    text-decoration: none;

    font-size: 10.5px;

    transition: .2s;
}

.sidebar-link:hover {
    color: #fff;
    background: #19191c;
}

.sidebar-link.active {
    color: #fff;

    background:
        linear-gradient(
            90deg,
            rgba(197, 22, 46, .18),
            rgba(197, 22, 46, .04)
        );
}

.sidebar-link.active::before {
    content: "";

    position: absolute;

    left: 0;

    width: 3px;
    height: 23px;

    border-radius: 0 3px 3px 0;

    background: #c5162e;
}


.sidebar-footer {
    padding: 15px 18px;

    display: flex;
    align-items: center;
    gap: 9px;

    border-top: 1px solid #242427;
}

.secure-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #2aab70;
}

.sidebar-footer div {
    display: flex;
    flex-direction: column;
}

.sidebar-footer strong {
    color: #aaa;
    font-size: 8.5px;
}

.sidebar-footer small {
    margin-top: 2px;
    color: #555;
    font-size: 7.5px;
}


/* MAIN */

.dashboard-main {
    width: calc(100% - 260px);
    min-height: 100vh;

    margin-left: 260px;
}


/* TOPBAR */

.dashboard-topbar {
    min-height: 74px;

    position: sticky;
    top: 0;

    z-index: 500;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 30px;

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

    border-bottom: 1px solid #e7e7e9;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-eyebrow {
    display: block;

    margin-bottom: 4px;

    color: #b3172c;

    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.dashboard-topbar h2 {
    margin: 0;

    font-size: 18px;
    letter-spacing: -.4px;
}


.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-profile {
    display: flex;
    align-items: center;
    gap: 9px;
}

.topbar-avatar {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    background: #111113;
    color: #fff;

    font-size: 11px;
    font-weight: 800;
}

.topbar-profile > div:last-child {
    display: flex;
    flex-direction: column;
}

.topbar-profile strong {
    font-size: 9.5px;
}

.topbar-profile span {
    margin-top: 2px;

    color: #88888e;

    font-size: 8px;
}

.logout-button {
    height: 36px;

    padding: 0 12px;

    border: 1px solid #dedee1;
    border-radius: 7px;

    background: #fff;

    color: #66666c;

    cursor: pointer;

    font-size: 9px;
}

.logout-button:hover {
    color: #b3172c;
    border-color: #ebc3ca;
}


/* CONTENT */

.dashboard-content {
    padding: 28px 30px 45px;
}


/* PAGE HEADER */

.dashboard-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 25px;

    margin-bottom: 25px;
}

.dashboard-kicker {
    display: block;

    margin-bottom: 7px;

    color: #b3172c;

    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.dashboard-page-header h1 {
    margin: 0;

    font-size: 27px;
    letter-spacing: -1px;
}

.dashboard-page-header p {
    max-width: 580px;

    margin: 8px 0 0;

    color: #7f7f85;

    font-size: 10.5px;
    line-height: 1.6;
}

.date-card {
    min-width: 115px;

    padding: 10px 12px;

    border: 1px solid #e3e3e6;
    border-radius: 8px;

    background: #fff;
}

.date-card span,
.date-card strong {
    display: block;
}

.date-card span {
    margin-bottom: 3px;

    color: #99999e;

    font-size: 7px;
    text-transform: uppercase;
}

.date-card strong {
    font-size: 9px;
}


/* LARGE STATS */

.dashboard-stats {
    display: grid;

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

    gap: 15px;

    margin-bottom: 16px;
}

.dashboard-stat {
    min-height: 145px;

    display: flex;
    flex-direction: column;

    padding: 18px;

    border: 1px solid #e7e7e9;
    border-radius: 11px;

    background: #fff;

    box-shadow:
        0 5px 20px rgba(0,0,0,.02);
}

.dashboard-stat.featured {
    border-top: 3px solid #c5162e;
}

.dashboard-stat > span {
    color: #77777d;
    font-size: 9px;
}

.dashboard-stat strong {
    margin: 16px 0 6px;

    font-size: 22px;
    letter-spacing: -.8px;
}

.dashboard-stat.danger strong {
    color: #c5162e;
}

.dashboard-stat small {
    margin-top: auto;

    color: #a2a2a7;

    font-size: 8px;
}


/* MINI STATS */

.dashboard-mini-stats {
    display: grid;

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

    gap: 12px;

    margin-bottom: 18px;
}

.dashboard-mini-stats > div {
    min-height: 70px;

    padding: 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 1px solid #e7e7e9;
    border-radius: 9px;

    background: #fff;
}

.dashboard-mini-stats span {
    color: #77777d;
    font-size: 8.5px;
}

.dashboard-mini-stats strong {
    font-size: 14px;
}


/* PANELS */

.dashboard-grid-two {
    display: grid;

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

    gap: 17px;
}

.dashboard-panel {
    border: 1px solid #e7e7e9;
    border-radius: 11px;

    background: #fff;
}

.dashboard-panel-header {
    min-height: 64px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 14px 17px;

    border-bottom: 1px solid #ededee;
}

.dashboard-panel-header span {
    color: #99999f;

    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.dashboard-panel-header h3 {
    margin: 4px 0 0;

    font-size: 12px;
}

.dashboard-panel-header a {
    color: #b3172c;

    text-decoration: none;

    font-size: 8.5px;
    font-weight: 700;
}

.alert-pill {
    min-width: 27px;
    height: 27px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: rgba(197,22,46,.08);

    color: #b3172c;

    font-size: 9px;
}


/* EMPTY */

.dashboard-empty {
    min-height: 210px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 25px;

    text-align: center;
}

.dashboard-empty strong {
    font-size: 10px;
}

.dashboard-empty p {
    max-width: 290px;

    margin: 6px 0 0;

    color: #99999f;

    font-size: 8.5px;
    line-height: 1.6;
}

.danger-text {
    color: #c5162e;
}


/* QUICK GRID */

.quick-grid {
    display: grid;

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

    gap: 10px;

    padding: 16px;
}

.quick-grid a {
    min-height: 80px;

    padding: 13px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border: 1px solid #ebebed;
    border-radius: 8px;

    background: #fafafa;

    text-decoration: none;

    transition: .2s;
}

.quick-grid a:hover {
    border-color: rgba(197,22,46,.25);

    background: #fffafb;

    transform: translateY(-1px);
}

.quick-grid strong {
    color: #343438;

    font-size: 9.5px;
}

.quick-grid span {
    margin-top: 4px;

    color: #99999f;

    font-size: 7.5px;
}


/* STATUS */

.status-list {
    padding: 4px 17px;
}

.status-list > div {
    min-height: 60px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #f0f0f1;
}

.status-list > div:last-child {
    border-bottom: 0;
}

.status-list span {
    color: #68686e;

    font-size: 9px;
}

.status-list strong {
    font-size: 13px;
}


/* MOBILE */

.mobile-sidebar-toggle {
    display: none;
}

@media (max-width: 1150px) {

    .dashboard-stats {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .dashboard-mini-stats {
        grid-template-columns:
            repeat(2, 1fr);
    }

}

@media (max-width: 900px) {

    .sidebar {
        transform: translateX(-100%);
        transition: .25s ease;
    }

    .sidebar.sidebar-open {
        transform: translateX(0);
    }

    .dashboard-main {
        width: 100%;
        margin-left: 0;
    }

    .mobile-sidebar-toggle {
        display: block;
    }

    .dashboard-grid-two {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 650px) {

    .dashboard-content {
        padding: 22px 16px 35px;
    }

    .dashboard-stats,
    .dashboard-mini-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-page-header {
        flex-direction: column;
    }

    .date-card {
        width: 100%;
    }

    .topbar-profile > div:last-child {
        display: none;
    }

}