* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: #1f2937;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}


/* =========================================
   LOGIN PAGE
========================================= */

.login-page {
    min-height: 100vh;

    background:
        linear-gradient(
            135deg,
            #fff8ee 0%,
            #fffdf9 55%,
            #f7efe4 100%
        );

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 430px;
}

.login-card {
    background: #ffffff;

    border-radius: 24px;

    padding: 42px 34px;

    box-shadow:
        0 20px 60px rgba(60, 40, 20, 0.10);

    border: 1px solid #f0e7dc;
}

.login-logo {
    width: 72px;
    height: 72px;

    margin: 0 auto 20px;

    border-radius: 20px;

    background: #f28c28;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 25px;
    font-weight: 800;

    box-shadow:
        0 10px 25px rgba(242, 140, 40, 0.25);
}

.login-heading {
    text-align: center;
    margin-bottom: 32px;
}

.login-heading h1 {
    font-size: 30px;
    color: #252525;
    margin-bottom: 7px;
}

.login-heading p {
    color: #858585;
    font-size: 15px;
}

.login-error {
    background: #fff1f1;

    border: 1px solid #ffd3d3;

    color: #c62828;

    padding: 12px 14px;

    border-radius: 10px;

    font-size: 14px;

    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    font-size: 14px;
    font-weight: 600;

    color: #444;

    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    height: 52px;

    border: 1px solid #dedede;
    border-radius: 12px;

    padding: 0 15px;

    font-size: 16px;

    outline: none;

    background: #ffffff;
}

.form-group input:focus {
    border-color: #f28c28;

    box-shadow:
        0 0 0 3px rgba(242, 140, 40, 0.12);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 70px;
}

.password-toggle {
    position: absolute;

    right: 14px;
    top: 50%;

    transform: translateY(-50%);

    border: none;
    background: transparent;

    color: #f28c28;

    font-weight: 600;

    cursor: pointer;
}

.login-button {
    width: 100%;
    height: 54px;

    border: none;
    border-radius: 12px;

    background: #f28c28;
    color: #ffffff;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    margin-top: 5px;

    transition: 0.2s ease;
}

.login-button:hover {
    background: #df7b1c;
    transform: translateY(-1px);
}

.login-footer {
    text-align: center;

    color: #aaaaaa;

    font-size: 12px;

    margin-top: 28px;
}


/* =========================================
   DASHBOARD PAGE
========================================= */

.dashboard-page {
    min-height: 100vh;

    background: #f6f7f9;

    color: #1f2937;

    padding-bottom: 90px;
}


/* =========================================
   TOPBAR
========================================= */

.topbar {
    height: 78px;

    background: rgba(255, 255, 255, 0.95);

    border-bottom: 1px solid #ececec;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 28px;

    position: sticky;
    top: 0;

    z-index: 50;

    backdrop-filter: blur(10px);
}

.topbar-brand {
    display: flex;
    align-items: center;

    gap: 12px;
}

.brand-icon {
    width: 44px;
    height: 44px;

    border-radius: 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f28c28;

    color: #ffffff;

    font-weight: 800;

    font-size: 14px;

    box-shadow:
        0 8px 20px rgba(242, 140, 40, 0.20);
}

.topbar h1 {
    font-size: 20px;

    color: #202020;

    line-height: 1.1;
}

.topbar p {
    font-size: 11px;

    color: #999999;

    margin-top: 3px;
}

.menu-button {
    width: 46px;
    height: 46px;

    border: none;
    border-radius: 13px;

    background: #fff2e5;

    color: #e57c17;

    font-size: 23px;

    cursor: pointer;

    transition: 0.2s ease;
}

.menu-button:hover {
    background: #ffe5cc;
}


/* =========================================
   MAIN DASHBOARD
========================================= */

.dashboard-container {
    max-width: 1180px;

    margin: 0 auto;

    padding: 34px 26px 60px;
}


/* =========================================
   WELCOME
========================================= */

.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 28px;
}

.welcome-label {
    font-size: 13px;

    color: #9a9a9a;

    margin-bottom: 4px;
}

.welcome-section h2 {
    font-size: 27px;

    color: #232323;

    margin-bottom: 5px;
}

.dashboard-date {
    font-size: 13px;

    color: #929292;
}

.new-order-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    background: #f28c28;

    color: #ffffff;

    text-decoration: none;

    padding: 14px 20px;

    border-radius: 13px;

    font-weight: 700;

    font-size: 14px;

    box-shadow:
        0 8px 20px rgba(242, 140, 40, 0.22);

    transition: 0.2s ease;
}

.new-order-button:hover {
    background: #df7b1c;

    transform: translateY(-1px);
}

.plus-symbol {
    font-size: 18px;

    line-height: 1;
}


/* =========================================
   STATS CARDS
========================================= */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 26px;
}

.stat-card {
    background: #ffffff;

    border: 1px solid #ededed;

    border-radius: 20px;

    padding: 22px;

    box-shadow:
        0 8px 26px rgba(0, 0, 0, 0.045);

    transition: 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 34px rgba(0, 0, 0, 0.065);
}

.stat-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 18px;
}

.stat-label {
    font-size: 13px;

    color: #858585;

    font-weight: 600;
}

.stat-icon {
    width: 36px;
    height: 36px;

    border-radius: 11px;

    display: flex !important;
    align-items: center;
    justify-content: center;

    background: #fff3e7;

    color: #e67e1a;

    font-weight: 800;

    margin: 0 !important;
}

.stat-value {
    display: block;

    font-size: 29px;

    color: #222222;

    margin-bottom: 7px;

    letter-spacing: -0.5px;
}

.stat-card small {
    font-size: 12px;

    color: #a0a0a0;
}

.unpaid-stat {
    background: #fffafa;

    border-color: #ffe1e1;
}

.unpaid-stat .stat-value {
    color: #d64040;
}

.unpaid-icon {
    background: #ffeded;

    color: #d64040;
}


/* =========================================
   QUICK ACTIONS
========================================= */

.quick-actions {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;

    margin-bottom: 26px;
}

.quick-actions a {
    display: flex;
    align-items: center;

    gap: 13px;

    background: #ffffff;

    border: 1px solid #ededed;

    border-radius: 16px;

    padding: 16px;

    text-decoration: none;

    transition: 0.2s ease;
}

.quick-actions a:hover {
    border-color: #f2c69d;

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.04);
}

.quick-icon {
    min-width: 42px;
    width: 42px;
    height: 42px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff3e7;

    color: #e67e1a;

    font-weight: 800;

    font-size: 18px;
}

.quick-actions strong {
    display: block;

    font-size: 14px;

    color: #2b2b2b;

    margin-bottom: 3px;
}

.quick-actions small {
    display: block;

    font-size: 11px;

    color: #999999;
}


/* =========================================
   RECENT ORDERS
========================================= */

.recent-section {
    background: #ffffff;

    border: 1px solid #ededed;

    border-radius: 20px;

    padding: 22px;

    box-shadow:
        0 8px 26px rgba(0, 0, 0, 0.045);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 10px;
}

.section-heading h3 {
    font-size: 19px;

    color: #232323;

    margin-bottom: 3px;
}

.section-heading p {
    font-size: 12px;

    color: #9a9a9a;
}

.section-heading a {
    text-decoration: none;

    color: #e67e1a;

    font-size: 13px;

    font-weight: 700;
}

.orders-list {
    display: flex;

    flex-direction: column;
}

.order-item {
    display: grid;

    grid-template-columns:
        46px 1fr auto;

    align-items: center;

    gap: 13px;

    padding: 16px 2px;

    border-bottom: 1px solid #f1f1f1;
}

.order-item:last-child {
    border-bottom: none;
}

.customer-avatar {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff0df;

    color: #d97513;

    font-weight: 800;

    font-size: 15px;
}

.order-customer strong {
    display: block;

    color: #2b2b2b;

    font-size: 14px;

    margin-bottom: 4px;
}

.order-customer span {
    font-size: 12px;

    color: #989898;
}

.order-payment {
    text-align: right;
}

.order-payment strong {
    display: block;

    font-size: 14px;

    color: #262626;

    margin-bottom: 5px;
}

.payment-status {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 4px 8px;

    border-radius: 999px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.3px;
}

.payment-status.paid {
    background: #eaf8ef;

    color: #168443;
}

.payment-status.unpaid {
    background: #fff0f0;

    color: #d23c3c;
}

.payment-status.partial {
    background: #fff7e6;

    color: #c97a09;
}


/* =========================================
   EMPTY ORDERS
========================================= */

.empty-state {
    text-align: center;

    padding: 45px 15px 35px;

    color: #999999;
}

.empty-icon {
    width: 64px;
    height: 64px;

    margin: 0 auto 14px;

    border-radius: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff4e8;

    font-size: 28px;
}

.empty-state strong {
    display: block;

    color: #444444;

    font-size: 15px;

    margin-bottom: 6px;
}

.empty-state p {
    font-size: 12px;

    margin-bottom: 16px;
}

.empty-state a {
    display: inline-flex;

    text-decoration: none;

    padding: 10px 14px;

    border-radius: 10px;

    background: #f28c28;

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;
}


/* =========================================
   SIDE MENU
========================================= */

.side-menu {
    position: fixed;

    top: 0;
    right: -340px;

    width: 300px;

    max-width: calc(100vw - 35px);

    height: 100vh;

    background: #ffffff;

    z-index: 110;

    padding: 20px;

    box-shadow:
        -14px 0 45px rgba(0, 0, 0, 0.13);

    transition:
        right 0.25s ease;

    overflow-y: auto;
}

.side-menu.open {
    right: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 9px 4px 19px;

    border-bottom: 1px solid #eeeeee;

    margin-bottom: 11px;
}

.menu-header strong {
    display: block;

    font-size: 16px;

    color: #282828;
}

.menu-header small {
    display: block;

    margin-top: 3px;

    font-size: 11px;

    color: #9b9b9b;
}

.menu-header button {
    width: 38px;
    height: 38px;

    border: none;

    border-radius: 10px;

    background: #f7f7f7;

    cursor: pointer;

    font-size: 17px;
}

.menu-links {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.side-menu a {
    display: block;

    text-decoration: none;

    color: #333333;

    padding: 14px 13px;

    border-radius: 11px;

    font-weight: 600;

    font-size: 14px;

    transition: 0.15s ease;
}

.side-menu a:hover,
.side-menu a.active {
    background: #fff2e5;

    color: #e67e1a;
}

.menu-divider {
    height: 1px;

    background: #eeeeee;

    margin: 8px 0;
}

.side-menu .logout-link {
    color: #d23c3c;
}

.side-menu .logout-link:hover {
    background: #fff0f0;

    color: #c52e2e;
}

.menu-overlay {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.28);

    z-index: 100;

    display: none;

    backdrop-filter: blur(2px);
}

.menu-overlay.show {
    display: block;
}


/* =========================================
   MOBILE BOTTOM NAV
========================================= */

.mobile-bottom-nav {
    display: none;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .quick-actions {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .dashboard-page {
        padding-bottom: 92px;
    }

    .topbar {
        height: 70px;

        padding: 0 15px;
    }

    .brand-icon {
        width: 40px;
        height: 40px;

        font-size: 13px;
    }

    .topbar h1 {
        font-size: 17px;
    }

    .topbar p {
        font-size: 10px;
    }

    .menu-button {
        width: 42px;
        height: 42px;

        font-size: 21px;
    }

    .dashboard-container {
        padding: 22px 14px 35px;
    }

    .welcome-section {
        align-items: flex-start;

        margin-bottom: 20px;
    }

    .welcome-section h2 {
        font-size: 21px;
    }

    .welcome-label {
        font-size: 11px;
    }

    .dashboard-date {
        font-size: 11px;
    }

    .new-order-button {
        padding: 11px 13px;

        font-size: 12px;

        white-space: nowrap;
    }

    .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 11px;

        margin-bottom: 18px;
    }

    .stat-card {
        padding: 16px;

        border-radius: 16px;
    }

    .stat-top {
        margin-bottom: 12px;
    }

    .stat-icon {
        width: 31px;
        height: 31px;

        font-size: 12px;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-value {
        font-size: 22px;

        margin-bottom: 4px;
    }

    .stat-card small {
        font-size: 10px;
    }

    .quick-actions {
        grid-template-columns:
            1fr 1fr;

        gap: 10px;

        margin-bottom: 18px;
    }

    .quick-actions a {
        padding: 13px;

        border-radius: 14px;
    }

    .quick-actions a:last-child {
        grid-column: 1 / -1;
    }

    .quick-icon {
        min-width: 38px;
        width: 38px;
        height: 38px;

        font-size: 16px;
    }

    .recent-section {
        padding: 16px;

        border-radius: 17px;
    }

    .section-heading h3 {
        font-size: 16px;
    }

    .section-heading p {
        font-size: 10px;
    }

    .section-heading a {
        font-size: 11px;
    }

    .order-item {
        grid-template-columns:
            40px 1fr auto;

        gap: 10px;

        padding: 14px 0;
    }

    .customer-avatar {
        width: 38px;
        height: 38px;

        font-size: 13px;
    }

    .order-customer strong {
        font-size: 13px;
    }

    .order-customer span {
        font-size: 10px;
    }

    .order-payment strong {
        font-size: 13px;
    }

    .payment-status {
        font-size: 9px;

        padding: 4px 7px;
    }

    .mobile-bottom-nav {
        position: fixed;

        left: 0;
        right: 0;
        bottom: 0;

        height: 68px;

        background: #ffffff;

        border-top: 1px solid #e9e9e9;

        display: grid;

        grid-template-columns:
            repeat(4, 1fr);

        align-items: center;

        z-index: 70;

        padding:
            4px
            max(
                6px,
                env(safe-area-inset-right)
            )
            max(
                4px,
                env(safe-area-inset-bottom)
            )
            max(
                6px,
                env(safe-area-inset-left)
            );

        box-shadow:
            0 -6px 20px rgba(0, 0, 0, 0.05);
    }

    .mobile-bottom-nav a {
        text-decoration: none;

        color: #888888;

        text-align: center;

        font-size: 9px;

        font-weight: 600;
    }

    .mobile-bottom-nav a > span {
        display: block;

        margin: 0 auto 3px;

        font-size: 21px;

        line-height: 1;
    }

    .mobile-bottom-nav a.active {
        color: #e67e1a;
    }

    .mobile-bottom-nav .mobile-add-order {
        color: #e67e1a;
    }

    .mobile-bottom-nav .mobile-add-order > span {
        width: 38px;
        height: 38px;

        margin-top: -16px;
        margin-bottom: 2px;

        border-radius: 50%;

        display: flex;

        align-items: center;
        justify-content: center;

        background: #f28c28;

        color: #ffffff;

        box-shadow:
            0 6px 16px rgba(242, 140, 40, 0.28);

        font-size: 24px;
    }
}


/* =========================================
   VERY SMALL PHONES
========================================= */

@media (max-width: 380px) {

    .dashboard-container {
        padding-left: 11px;
        padding-right: 11px;
    }

    .welcome-section {
        gap: 10px;
    }

    .welcome-section h2 {
        font-size: 19px;
    }

    .new-order-button {
        padding: 10px 11px;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-value {
        font-size: 20px;
    }
}


/* =========================================
   LOGIN MOBILE
========================================= */

@media (max-width: 480px) {

    .login-page {
        padding: 16px;
    }

    .login-card {
        padding: 35px 22px;

        border-radius: 20px;
    }

    .login-heading h1 {
        font-size: 27px;
    }
}

/* =========================================
   CUSTOMER PAGE
========================================= */

.page-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 20px;
}

.page-heading-row h2 {
    font-size: 27px;

    color: #232323;

    margin-bottom: 5px;
}

.customer-search-card {
    background: #ffffff;

    border: 1px solid #ededed;

    border-radius: 18px;

    padding: 15px;

    margin-bottom: 18px;

    box-shadow:
        0 7px 22px rgba(0, 0, 0, 0.035);
}

.customer-search-form {
    display: grid;

    grid-template-columns:
        1fr auto;

    gap: 10px;
}

.customer-search-form input {
    width: 100%;

    height: 48px;

    border: 1px solid #dddddd;

    border-radius: 12px;

    padding: 0 14px;

    outline: none;

    font-size: 14px;
}

.customer-search-form input:focus {
    border-color: #f28c28;

    box-shadow:
        0 0 0 3px rgba(242, 140, 40, 0.10);
}

.customer-search-form button {
    border: none;

    background: #f28c28;

    color: #ffffff;

    border-radius: 12px;

    padding: 0 20px;

    font-weight: 700;

    cursor: pointer;
}

.customers-list-card {
    background: #ffffff;

    border: 1px solid #ededed;

    border-radius: 18px;

    padding: 10px 18px;

    box-shadow:
        0 7px 22px rgba(0, 0, 0, 0.035);
}

.customer-list {
    display: flex;

    flex-direction: column;
}

.customer-row {
    display: grid;

    grid-template-columns:
        48px 1fr auto;

    gap: 13px;

    align-items: center;

    padding: 16px 0;

    text-decoration: none;

    border-bottom:
        1px solid #f0f0f0;
}

.customer-row:last-child {
    border-bottom: none;
}

.customer-main-info strong {
    display: block;

    font-size: 14px;

    color: #292929;

    margin-bottom: 5px;
}

.customer-main-info span {
    font-size: 11px;

    color: #999999;
}

.customer-due {
    text-align: right;
}

.customer-due strong {
    display: block;

    font-size: 14px;

    margin-bottom: 4px;
}

.due-amount,
.due-label {
    color: #d63d3d;
}

.paid-amount,
.paid-label {
    color: #19874a;
}

.customer-due span {
    font-size: 10px;

    font-weight: 700;
}

@media (max-width: 600px) {

    .page-heading-row {
        align-items: flex-start;
    }

    .page-heading-row h2 {
        font-size: 21px;
    }

    .customer-search-card {
        padding: 12px;
    }

    .customer-search-form {
        grid-template-columns:
            1fr;
    }

    .customer-search-form button {
        height: 44px;
    }

    .customers-list-card {
        padding: 8px 14px;
    }

    .customer-row {
        grid-template-columns:
            42px 1fr auto;

        gap: 10px;

        padding: 14px 0;
    }
}

/* =========================================
   APP FORMS
========================================= */

.form-page-header {
    margin-bottom: 20px;
}

.back-link {
    display: inline-block;

    text-decoration: none;

    color: #e67e1a;

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 12px;
}

.form-page-header h2 {
    font-size: 27px;

    color: #232323;

    margin-bottom: 6px;
}

.form-page-header p {
    max-width: 520px;

    color: #909090;

    font-size: 13px;

    line-height: 1.6;
}

.form-card {
    max-width: 650px;

    background: #ffffff;

    border: 1px solid #ededed;

    border-radius: 20px;

    padding: 26px;

    box-shadow:
        0 8px 26px rgba(0, 0, 0, 0.045);
}

.app-form-group {
    margin-bottom: 21px;
}

.app-form-group label {
    display: block;

    margin-bottom: 8px;

    color: #444444;

    font-size: 13px;

    font-weight: 700;
}

.optional-text {
    margin-left: 5px;

    color: #aaaaaa;

    font-size: 10px;

    font-weight: 500;
}

.app-form-group input,
.app-form-group select,
.app-form-group textarea {
    width: 100%;

    min-height: 50px;

    border: 1px solid #dddddd;

    border-radius: 12px;

    padding: 0 14px;

    background: #ffffff;

    color: #222222;

    font-size: 15px;

    outline: none;

    transition: 0.15s ease;
}

.app-form-group textarea {
    min-height: 100px;

    padding-top: 13px;

    resize: vertical;
}

.app-form-group input:focus,
.app-form-group select:focus,
.app-form-group textarea:focus {
    border-color: #f28c28;

    box-shadow:
        0 0 0 3px rgba(242, 140, 40, 0.10);
}

.form-information {
    background: #fff8f0;

    border: 1px solid #ffe5c9;

    border-radius: 13px;

    padding: 14px;

    margin-bottom: 24px;
}

.form-information strong {
    display: block;

    color: #7a4b1d;

    font-size: 12px;

    margin-bottom: 4px;
}

.form-information p {
    color: #9a7149;

    font-size: 11px;

    line-height: 1.5;
}

.form-actions {
    display: flex;

    justify-content: flex-end;

    gap: 10px;
}

.primary-button,
.secondary-button {
    min-height: 47px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 18px;

    border-radius: 11px;

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;

    cursor: pointer;
}

.primary-button {
    border: none;

    background: #f28c28;

    color: #ffffff;
}

.primary-button:hover {
    background: #df7b1c;
}

.secondary-button {
    border: 1px solid #dddddd;

    background: #ffffff;

    color: #555555;
}

.form-message {
    padding: 12px 14px;

    border-radius: 11px;

    margin-bottom: 20px;

    font-size: 12px;

    font-weight: 600;
}

.error-message {
    background: #fff0f0;

    border: 1px solid #ffd4d4;

    color: #c83a3a;
}

.success-message {
    background: #edf9f1;

    border: 1px solid #ccebd6;

    color: #197a40;
}

@media (max-width: 600px) {

    .form-page-header h2 {
        font-size: 22px;
    }

    .form-card {
        padding: 18px;

        border-radius: 17px;
    }

    .form-actions {
        display: grid;

        grid-template-columns:
            1fr 1fr;
    }
}

/* =========================================
   CUSTOMER DETAILS
========================================= */

.customer-profile-header {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    align-items: center;
    gap: 18px;

    background: #ffffff;

    border: 1px solid #ededed;
    border-radius: 20px;

    padding: 22px;

    margin: 14px 0 18px;

    box-shadow:
        0 8px 26px rgba(0, 0, 0, 0.045);
}

.customer-profile-avatar {
    width: 64px;
    height: 64px;

    border-radius: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff0df;

    color: #dc7714;

    font-size: 22px;
    font-weight: 800;
}

.customer-profile-info h2 {
    font-size: 23px;

    color: #262626;

    margin-bottom: 5px;
}

.customer-profile-info p {
    font-size: 12px;

    color: #999999;
}

.customer-stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;

    margin-bottom: 18px;
}

.customer-stat-card {
    background: #ffffff;

    border: 1px solid #ededed;

    border-radius: 16px;

    padding: 18px;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.035);
}

.customer-stat-card span {
    display: block;

    color: #929292;

    font-size: 11px;

    margin-bottom: 8px;
}

.customer-stat-card strong {
    display: block;

    color: #292929;

    font-size: 23px;
}

.green-value {
    color: #19874a !important;
}

.red-value {
    color: #d63d3d !important;
}

.payment-action-card {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    background: #fff7f7;

    border: 1px solid #ffdede;

    border-radius: 16px;

    padding: 17px 19px;

    margin-bottom: 18px;
}

.payment-action-card span {
    display: block;

    color: #a15d5d;

    font-size: 11px;

    margin-bottom: 4px;
}

.payment-action-card strong {
    display: block;

    color: #d63d3d;

    font-size: 21px;
}

.mark-paid-button {
    min-height: 44px;

    border: none;

    border-radius: 11px;

    padding: 0 16px;

    background: #1d9a56;

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;
}

.mark-paid-button:hover {
    background: #168249;
}

.customer-orders-section {
    margin-top: 0;
}

.customer-order-history {
    display: flex;

    flex-direction: column;
}

.customer-history-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding: 16px 2px;

    border-bottom:
        1px solid #f0f0f0;
}

.customer-history-row:last-child {
    border-bottom: none;
}

.customer-history-row > div:first-child strong {
    display: block;

    color: #292929;

    font-size: 14px;

    margin-bottom: 4px;
}

.customer-history-row > div:first-child span {
    display: block;

    color: #999999;

    font-size: 11px;
}

.history-amount {
    text-align: right;
}

.history-amount > strong {
    display: block;

    color: #292929;

    font-size: 14px;

    margin-bottom: 5px;
}

.customer-bill-actions {
    display: flex;

    justify-content: flex-end;

    margin-top: 16px;
}

@media (max-width: 700px) {

    .customer-profile-header {
        grid-template-columns: 54px 1fr;
        padding: 17px;
    }

    .customer-profile-header .new-order-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .customer-profile-avatar {
        width: 52px;
        height: 52px;
        border-radius: 15px;
        font-size: 18px;
    }

    .customer-profile-info h2 {
        font-size: 19px;
    }

    .customer-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .customer-stat-card {
        padding: 15px;
    }

    .customer-stat-card strong {
        font-size: 20px;
    }

    .payment-action-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .payment-action-card form,
    .mark-paid-button {
        width: 100%;
    }

    .customer-bill-actions {
        display: block;
    }

    .customer-bill-actions .secondary-button {
        width: 100%;
    }
}

/* =========================================
   ORDER FORM
========================================= */

.choice-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 10px;
}

.choice-card {
    position: relative;

    cursor: pointer;
}

.choice-card input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.choice-card span {
    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #dddddd;

    border-radius: 12px;

    background: #ffffff;

    color: #555555;

    font-size: 13px;

    font-weight: 700;

    transition: 0.15s ease;
}

.choice-card input:checked + span {
    border-color: #f28c28;

    background: #fff3e7;

    color: #d97413;

    box-shadow:
        0 0 0 2px rgba(242, 140, 40, 0.08);
}

.paid-choice input:checked + span {
    border-color: #38a967;

    background: #edf9f1;

    color: #168347;
}

.unpaid-choice input:checked + span {
    border-color: #dc5a5a;

    background: #fff0f0;

    color: #c93b3b;
}

.amount-input {
    position: relative;
}

.amount-input > span {
    position: absolute;

    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: #555555;

    font-weight: 700;

    z-index: 2;
}

.amount-input input {
    padding-left: 36px;
}

@media (max-width: 500px) {

    .choice-grid {
        gap: 8px;
    }

    .choice-card span {
        min-height: 48px;
    }
}