:root {
    --bellboy-blue: #182C5A;
    --bellboy-blue-dark: #101f42;

    --black: #111216;
    --white: #ffffff;

    --background: #f5f6f8;
    --border: #dfe2e8;

    --text-muted: #747985;
}

* {
    box-sizing: border-box;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;

    color: var(--black);
}

/* LOGIN LAYOUT */

.login-layout {
    display: grid;

    grid-template-columns:
        minmax(420px, 42%)
        1fr;

    min-height: 100vh;
}

/* LEFT BRAND PANEL */

.login-brand-panel {
    position: relative;

    display: flex;
    flex-direction: column;

    padding: 64px;

    background: var(--bellboy-blue);
    color: var(--white);

    overflow: hidden;
}

.login-brand-panel::after {
    content: "";

    position: absolute;

    right: -70px;
    bottom: -70px;

    width: 430px;
    height: 430px;

    background-image: url("../images/bellboy-b.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    opacity: 0.15;

    pointer-events: none;

    z-index: 0;
}

.bellboy-logo {
    position: relative;
    z-index: 1;

    display: block;

    width: 240px;
    height: auto;
}

.brand-message {
    position: relative;
    z-index: 1;

    margin-top: auto;
    margin-bottom: auto;
}

.brand-message span {
    display: block;

    margin-bottom: 26px;

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

    letter-spacing: 6px;

    opacity: 0.7;
}

.brand-message h1 {
    margin: 0;

    font-size: clamp(48px, 5vw, 82px);

    line-height: 0.95;

    letter-spacing: -3px;

    font-weight: 800;
}

.brand-message p {
    margin: 30px 0 0;

    font-size: 15px;

    letter-spacing: 2px;

    opacity: 0.6;
}

.brand-footer {
    position: relative;
    z-index: 1;

    font-size: 11px;

    letter-spacing: 4px;

    opacity: 0.55;
}

/* RIGHT LOGIN PANEL */

.login-form-panel {
    display: flex;
    flex-direction: column;

    min-height: 100vh;

    padding: 64px 8% 42px;

    background: var(--white);
}

.login-form-wrapper {
    width: 100%;
    max-width: 500px;

    margin: auto;
}

.mobile-logo {
    display: none;
}

.login-heading {
    margin-bottom: 42px;
}

.eyebrow {
    display: block;

    margin-bottom: 18px;

    color: var(--bellboy-blue);

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

    letter-spacing: 4px;
}

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

    font-size: 46px;

    letter-spacing: -1.5px;
}

.login-heading p {
    margin: 0;

    color: var(--text-muted);

    font-size: 16px;
}

/* FORM */

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;

    margin-bottom: 9px;

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

.form-group input {
    width: 100%;
    height: 56px;

    padding: 0 17px;

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

    background: var(--white);

    color: var(--black);

    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.form-group input::placeholder {
    color: #a3a7b0;
}

.form-group input:focus {
    border-color: var(--bellboy-blue);

    box-shadow:
        0 0 0 3px rgba(24, 44, 90, 0.09);
}

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

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

    margin-top: 10px;

    padding: 0 20px;

    border: 0;

    background: var(--bellboy-blue);
    color: var(--white);

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

    cursor: pointer;

    transition:
        background 0.2s,
        transform 0.1s;
}

.login-form button:hover {
    background: var(--bellboy-blue-dark);
}

.login-form button:active {
    transform: translateY(1px);
}

/* ERROR */

.alert-error {
    margin-bottom: 24px;

    padding: 14px 16px;

    border-left: 3px solid #b42318;

    background: #fff2f0;

    color: #8d1a12;

    font-size: 14px;
}

/* FOOTER */

.login-footer {
    display: flex;
    justify-content: space-between;

    width: 100%;

    margin-top: 40px;

    color: #9297a1;

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

    letter-spacing: 2px;

    text-transform: uppercase;
}

/* TABLET / MOBILE */

@media (max-width: 850px) {

    .login-layout {
        display: block;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        padding: 40px 24px 28px;
    }

    .login-form-wrapper {
        max-width: 480px;
    }

    .mobile-logo {
        display: block;

        margin-bottom: 70px;
    }

    .mobile-logo img {
        width: 58px;
        height: auto;
    }

    .login-heading h2 {
        font-size: 38px;
    }

    .login-footer {
        max-width: 480px;

        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {

    .login-form-panel {
        padding: 30px 20px 24px;
    }

    .mobile-logo {
        margin-bottom: 55px;
    }

    .login-heading {
        margin-bottom: 34px;
    }

    .login-footer {
        gap: 20px;

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

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

.app-page {
    margin: 0;
    background: #f5f6f8;
}

.app-layout {
    display: grid;
    grid-template-columns: 270px 1fr;

    min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width: 270px;

    display: flex;
    flex-direction: column;

    padding: 36px 28px;

    background: var(--bellboy-blue);
    color: var(--white);
}

.sidebar-logo img {
    display: block;

    width: 155px;
    height: auto;
}

.sidebar-logo span {
    display: block;

    margin-top: 14px;

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

    letter-spacing: 5px;

    opacity: 0.55;
}

/* NAVIGATION */

.sidebar-nav {
    display: flex;
    flex-direction: column;

    gap: 5px;

    margin-top: 70px;
}

.sidebar-nav a {
    display: block;

    padding: 13px 14px;

    color: rgba(255, 255, 255, 0.6);

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

    text-decoration: none;

    transition:
        background 0.2s,
        color 0.2s;
}

.sidebar-nav a:hover {
    color: var(--white);

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

.sidebar-nav a.active {
    color: var(--white);

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

/* SIDEBAR BOTTOM */

.sidebar-bottom {
    margin-top: auto;
}

.sidebar-user {
    padding-bottom: 20px;

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

.sidebar-user span {
    display: block;

    margin-bottom: 5px;

    color: rgba(255, 255, 255, 0.45);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.sidebar-user strong {
    font-size: 13px;
}

.logout-link {
    display: block;

    margin-top: 20px;

    color: rgba(255, 255, 255, 0.65);

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

    text-decoration: none;
}

.logout-link:hover {
    color: var(--white);
}

/* CONTENT */

.app-content {
    grid-column: 2;

    min-width: 0;

    padding: 55px 60px 80px;
}

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

    margin-bottom: 45px;
}

.page-header h1 {
    margin: 8px 0 0;

    font-size: 42px;

    letter-spacing: -1.5px;
}

.header-action button {
    height: 46px;

    padding: 0 20px;

    border: 0;

    background: var(--bellboy-blue);
    color: var(--white);

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

    cursor: pointer;
}

/* DASHBOARD STATS */

.dashboard-grid {
    display: grid;

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

    gap: 16px;

    margin-bottom: 55px;
}

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

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 24px;

    background: var(--white);

    border: 1px solid #e1e3e8;
}

.stat-card > span {
    color: #777d88;

    font-size: 14px;
    font-weight: 600;
}

.stat-card strong {
    color: var(--bellboy-blue);

    font-size: 36px;
    line-height: 1;
}

.stat-card small {
    font-size: 12px;
}

/* SECTIONS */

.dashboard-section {
    background: var(--white);

    border: 1px solid #e1e3e8;
}

.section-heading {
    padding: 25px 28px;

    border-bottom: 1px solid #e1e3e8;
}

.section-heading h2 {
    margin: 6px 0 0;

    font-size: 22px;
}

.empty-state {
    padding: 70px 28px;

    text-align: center;
}

.empty-state span {
    display: block;

    margin-bottom: 8px;

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

.empty-state p {
    margin: 0;

    color: #858a94;

    font-size: 13px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {

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

@media (max-width: 800px) {

    .app-layout {
        display: block;
    }

    .sidebar {
        position: static;

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

    .app-content {
        padding: 35px 24px 60px;
    }

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

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

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 46px;

    padding: 0 20px;

    background: var(--bellboy-blue);
    color: var(--white);

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

    text-decoration: none;

    transition: background 0.2s;
}

.primary-button:hover {
    background: var(--bellboy-blue-dark);
}

.content-panel {
    background: var(--white);

    border: 1px solid #e1e3e8;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 25px 28px;

    border-bottom: 1px solid #e1e3e8;
}

.panel-header h2 {
    margin: 6px 0 0;

    font-size: 22px;
}

.result-count {
    color: #858a94;

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

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

.table-wrapper {
    width: 100%;

    overflow-x: auto;
}

.data-table {
    width: 100%;

    border-collapse: collapse;
}

.data-table th {
    padding: 14px 20px;

    background: #f8f9fa;

    border-bottom: 1px solid #e1e3e8;

    color: #777d88;

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

    letter-spacing: 1px;

    text-align: left;
    text-transform: uppercase;
}

.data-table td {
    padding: 18px 20px;

    border-bottom: 1px solid #eceef1;

    color: #555b65;

    font-size: 13px;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover {
    background: #fafbfc;
}

.data-table td strong {
    color: #17191d;

    font-weight: 700;
}

/* STATUS */

.status-badge {
    display: inline-block;

    padding: 5px 8px;

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

    text-transform: uppercase;

    letter-spacing: 0.5px;
}

.status-active {
    background: #eaf6ee;
    color: #287343;
}

.status-inactive {
    background: #f0f1f3;
    color: #777d88;
}

/* TABLE ACTION */

.table-action {
    text-align: right;
}

.table-action a {
    color: var(--bellboy-blue);

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

    text-decoration: none;
}

.table-action a:hover {
    text-decoration: underline;
}

/* =========================================
   APP FORMS
========================================= */

.form-panel {
    max-width: 900px;

    background: var(--white);

    border: 1px solid #e1e3e8;
}

.app-form {
    padding: 30px 28px;
}

.form-grid {
    display: grid;

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

    gap: 24px;
}

.form-field {
    min-width: 0;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;

    margin-bottom: 8px;

    color: #34383f;

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

.form-field input,
.form-field textarea {
    width: 100%;

    border: 1px solid #dfe2e8;

    background: var(--white);

    color: #17191d;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.form-field input {
    height: 48px;

    padding: 0 14px;
}

.form-field textarea {
    padding: 14px;

    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--bellboy-blue);

    box-shadow:
        0 0 0 3px rgba(24, 44, 90, 0.08);
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    margin-top: 32px;
    padding-top: 24px;

    border-top: 1px solid #eceef1;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 46px;

    padding: 0 18px;

    border: 1px solid #dfe2e8;

    background: var(--white);
    color: #555b65;

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

    text-decoration: none;
}

.secondary-button:hover {
    border-color: #bcc1ca;

    color: #17191d;
}

.form-message {
    margin: 28px 28px 0;

    padding: 14px 16px;

    border-left: 3px solid #b42318;

    background: #fff2f0;

    color: #8d1a12;

    font-size: 13px;
}

@media (max-width: 700px) {

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

    .form-field-full {
        grid-column: auto;
    }
}

/* =========================================
   CLIENT EDIT
========================================= */

.client-edit-form {
    display: grid;

    gap: 24px;
}

.client-type-panel {
    margin-bottom: 50px;
}

.client-type-options {
    display: grid;

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

    gap: 12px;
}

.client-type-option {
    position: relative;

    display: flex;
    align-items: flex-start;

    gap: 12px;

    min-height: 95px;

    padding: 18px;

    border: 1px solid #dfe2e8;

    cursor: pointer;

    transition:
        border-color 0.2s,
        background 0.2s;
}

.client-type-option:hover {
    border-color: #b9bec8;
}

.client-type-option input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.radio-mark {
    flex: 0 0 auto;

    width: 17px;
    height: 17px;

    margin-top: 1px;

    border: 1px solid #aeb4be;
    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        inset 0 0 0 4px #ffffff;
}

.client-type-option:has(input:checked) {
    border-color: var(--bellboy-blue);

    background: rgba(24, 44, 90, 0.035);
}

.client-type-option input:checked + .radio-mark {
    border-color: var(--bellboy-blue);

    background: var(--bellboy-blue);
}

.client-type-copy {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.client-type-copy strong {
    color: #17191d;

    font-size: 13px;
}

.client-type-copy small {
    color: #858a94;

    font-size: 11px;
    line-height: 1.45;
}

/* SPECIAL PRICES */

.special-prices {
    margin-top: 34px;
    padding-top: 30px;

    border-top: 1px solid #eceef1;
}

.subsection-heading {
    margin-bottom: 20px;
}

.subsection-heading h3 {
    margin: 6px 0;

    font-size: 18px;
}

.subsection-heading p {
    margin: 0;

    color: #858a94;

    font-size: 12px;
}

.price-list {
    border: 1px solid #e1e3e8;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 16px 18px;

    border-bottom: 1px solid #eceef1;
}

.price-row:last-child {
    border-bottom: 0;
}

.price-service {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.price-service strong {
    font-size: 13px;
}

.price-service span {
    color: #858a94;

    font-size: 11px;
}

.price-input {
    display: flex;
    align-items: center;

    gap: 8px;
}

.price-input input {
    width: 105px;
    height: 40px;

    padding: 0 12px;

    border: 1px solid #dfe2e8;

    font-family: inherit;
    font-size: 13px;

    text-align: right;

    outline: none;
}

.price-input input:focus {
    border-color: var(--bellboy-blue);

    box-shadow:
        0 0 0 3px rgba(24, 44, 90, 0.08);
}

.price-input span {
    color: #555b65;

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

/* CLIENT STATUS */

.client-status {
    margin-top: 30px;
    padding-top: 24px;

    border-top: 1px solid #eceef1;
}

.client-status label {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    color: #444a53;

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

    cursor: pointer;
}

@media (max-width: 850px) {

    .client-type-options {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   ORDERS
========================================= */

.orders-table td {
    vertical-align: middle;
}

.order-date {
    white-space: nowrap;

    color: #777d88;
}

/* CLIENT TIER */

.client-tier-badge {
    display: inline-block;

    margin-left: 7px;

    padding: 3px 6px;

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

    letter-spacing: 0.7px;

    vertical-align: middle;
}

.client-tier-premium {
    background: #edf0f7;
    color: var(--bellboy-blue);
}

.client-tier-exclusive {
    background: var(--bellboy-blue);
    color: var(--white);
}

/* ORDER STATUS */

.order-status {
    display: inline-block;

    padding: 5px 8px;

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

    letter-spacing: 0.5px;

    text-transform: uppercase;

    white-space: nowrap;
}

.order-status-new {
    background: #edf0f7;
    color: var(--bellboy-blue);
}

.order-status-in_progress {
    background: #fff4dd;
    color: #936515;
}

.order-status-completed {
    background: #eaf6ee;
    color: #287343;
}

.order-status-picked_up {
    background: #eceef1;
    color: #555b65;
}

.order-status-cancelled {
    background: #fff0ef;
    color: #a63a31;
}

/* INVOICE STATUS */

.invoice-status {
    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;
}

.invoice-status.pending {
    color: #c27817;
}

.invoice-status.invoiced {
    color: #287343;
}

.invoice-status.neutral {
    color: #9a9fa8;
}

/* TOTAL */

.order-total {
    color: #17191d !important;

    font-weight: 700;

    white-space: nowrap;
}

/* =========================================
   NEW ORDER
========================================= */

.order-panel {
    max-width: none;

    margin-bottom: 24px;
}

.form-field select,
.order-item-field select,
.order-item-field input {
    width: 100%;

    height: 48px;

    padding: 0 14px;

    border: 1px solid #dfe2e8;

    background: #ffffff;

    color: #17191d;

    font-family: inherit;
    font-size: 13px;

    outline: none;
}

.form-field select:focus,
.order-item-field select:focus,
.order-item-field input:focus {
    border-color: var(--bellboy-blue);

    box-shadow:
        0 0 0 3px rgba(24, 44, 90, 0.08);
}

/* ITEMS */

.order-items-header,
.order-item-row {
    display: grid;

    grid-template-columns:
        minmax(180px, 1.4fr)
        minmax(180px, 1.5fr)
        minmax(120px, 0.8fr)
        minmax(140px, 0.9fr)
        120px
        36px;

    gap: 12px;

    align-items: center;
}

.order-items-header {
    padding: 13px 20px;

    background: #f8f9fa;

    border-bottom: 1px solid #e1e3e8;

    color: #777d88;

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

    letter-spacing: 1px;

    text-transform: uppercase;
}

.order-item-row {
    padding: 14px 20px;

    border-bottom: 1px solid #eceef1;
}

.input-with-unit {
    position: relative;
}

.input-with-unit input {
    padding-right: 52px;
}

.input-with-unit span {
    position: absolute;

    top: 50%;
    right: 12px;

    transform: translateY(-50%);

    color: #858a94;

    font-size: 10px;

    pointer-events: none;
}

.item-total {
    color: var(--bellboy-blue);

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

    text-align: right;

    white-space: nowrap;
}

.remove-item {
    width: 32px;
    height: 32px;

    border: 0;

    background: transparent;

    color: #9a9fa8;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;
}

.remove-item:hover {
    color: #a63a31;
}

/* TOTAL */

.order-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 35px;

    padding: 25px 68px 25px 20px;

    background: #fafbfc;
}

.order-summary span {
    color: #777d88;

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

    letter-spacing: 1.5px;
}

.order-summary strong {
    min-width: 120px;

    color: var(--bellboy-blue);

    font-size: 24px;

    text-align: right;
}

.order-form-actions {
    display: flex;
    justify-content: flex-end;

    gap: 10px;

    margin-bottom: 70px;
}

.order-error {
    margin: 0 0 24px;
}

@media (max-width: 1150px) {

    .order-items-header {
        display: none;
    }

    .order-item-row {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .item-total {
        text-align: left;
    }
}

/* =========================================
   ORDER VIEW
========================================= */

.order-header-actions {
    display: flex;
    align-items: center;

    gap: 10px;
}

.order-overview {
    display: grid;

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

    gap: 16px;

    margin-bottom: 24px;
}

.order-info-card {
    min-height: 105px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #e1e3e8;
}

.order-info-card > span {
    color: #777d88;

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

    letter-spacing: 0.8px;

    text-transform: uppercase;
}

.order-info-card strong {
    color: #17191d;

    font-size: 15px;
}

.order-info-card small {
    display: block;

    margin-top: 5px;

    color: var(--bellboy-blue);

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

    letter-spacing: 1px;
}

.file-name {
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 11px !important;
}

.order-view-total {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 40px;

    padding: 25px 28px;

    border-top: 1px solid #e1e3e8;

    background: #fafbfc;
}

.order-view-total span {
    color: #777d88;

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

    letter-spacing: 1.5px;
}

.order-view-total strong {
    min-width: 140px;

    color: var(--bellboy-blue);

    font-size: 24px;

    text-align: right;
}

@media (max-width: 1000px) {

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

/* =========================================
   ORDER EDIT
========================================= */

.order-edit-items-header,
.order-edit-item-row {
    display: grid;

    grid-template-columns:
        minmax(170px, 1.3fr)
        minmax(170px, 1.4fr)
        minmax(115px, 0.7fr)
        minmax(135px, 0.8fr)
        110px
        95px
        36px;

    gap: 12px;

    align-items: center;
}

.order-edit-items-header {
    padding: 13px 20px;

    background: #f8f9fa;

    border-bottom: 1px solid #e1e3e8;

    color: #777d88;

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

    letter-spacing: 1px;

    text-transform: uppercase;
}

.invoice-checkbox {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: #555b65;

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

    cursor: pointer;
}

.invoice-checkbox input {
    width: 16px;
    height: 16px;

    accent-color: var(--bellboy-blue);
}

@media (max-width: 1250px) {

    .order-edit-items-header {
        display: none;
    }

    .order-edit-item-row {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

.invoice-status.partial {
    color: #b7791f;
}

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

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

.dashboard-grid-five .stat-card {
    min-width: 0;
}

.dashboard-grid-five .stat-card strong {
    font-size: 32px;
}

.panel-link {
    color: var(--bellboy-blue);

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

    text-decoration: none;
}

.panel-link:hover {
    text-decoration: underline;
}

@media (max-width: 1300px) {

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

@media (max-width: 900px) {

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

@media (max-width: 600px) {

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

/* =========================================
   BILLING - NEW
========================================= */

.billing-client-panel,
.billing-items-panel {
    max-width: none;
    margin-bottom: 24px;
}

/* CLIENT */

.billing-client-form {
    padding: 24px;
}

.billing-client-select {
    display: flex;
    align-items: flex-end;
    gap: 12px;

    max-width: 650px;
}

.billing-client-select .form-field {
    flex: 1;
    margin: 0;
}

.billing-client-select .primary-button {
    flex: 0 0 auto;
    height: 48px;
}

/* SELECTION ACTIONS */

.billing-selection-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.billing-selection-actions > span {
    width: 1px;
    height: 14px;

    background: #dfe2e8;
}

.billing-text-button {
    padding: 0;

    border: 0;
    background: transparent;

    color: var(--bellboy-blue);

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
}

.billing-text-button:hover {
    text-decoration: underline;
}

/* ORDERS */

.billing-orders {
    padding: 20px;
}

.billing-order {
    margin-bottom: 18px;

    border: 1px solid #e1e3e8;

    background: #ffffff;
}

.billing-order:last-child {
    margin-bottom: 0;
}

/* ORDER HEADER */

.billing-order-header {
    display: grid;

    grid-template-columns:
        30px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 12px;

    min-height: 70px;

    padding: 14px 18px;

    border-bottom: 1px solid #e1e3e8;

    background: #f8f9fa;
}

.billing-order-select {
    display: flex;
    align-items: center;
}

.billing-order-select input,
.billing-item-check input {
    width: 17px;
    height: 17px;

    margin: 0;

    accent-color: var(--bellboy-blue);

    cursor: pointer;
}

.billing-order-info {
    min-width: 0;
}

.billing-order-number {
    margin-bottom: 5px;

    color: #17191d;

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

.billing-order-meta {
    display: flex;
    align-items: center;
    gap: 7px;

    color: #777d88;

    font-size: 11px;
}

.billing-order-meta span {
    color: #b7bbc2;
}

.billing-order-count {
    color: #777d88;

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

    white-space: nowrap;
}

/* ITEM */

.billing-order-items {
    width: auto;

    margin-left: 48px;

}

.billing-item {
    display: grid;

    grid-template-columns:
        30px
        minmax(220px, 1fr)
        130px
        150px
        130px;

    align-items: center;

    gap: 14px;

    min-height: 76px;

    padding: 14px 18px 14px 16px;

    border-bottom: 1px solid #eceef1;

    cursor: pointer;

    transition:
        background-color 0.15s ease;
}

.billing-item:last-child {
    border-bottom: 0;
}

.billing-item:hover {
    background: #fafbfc;
}

.billing-item:has(
    .billing-item-checkbox:checked
) {
    background: rgba(24, 44, 90, 0.035);
}

.billing-item-main {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 5px;
}

.billing-item-main strong {
    color: #17191d;

    font-size: 13px;
}

.billing-item-main span {
    overflow: hidden;

    color: #777d88;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 10px;

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

.billing-item-quantity,
.billing-item-price,
.billing-item-total {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.billing-item-quantity span,
.billing-item-price span,
.billing-item-total span {
    color: #9297a0;

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

    letter-spacing: 0.8px;

    text-transform: uppercase;
}

.billing-item-quantity strong,
.billing-item-price strong {
    color: #4b5059;

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

    white-space: nowrap;
}

.billing-item-total {
    text-align: right;
}

.billing-item-total strong {
    color: var(--bellboy-blue);

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

    white-space: nowrap;
}

/* SUMMARY */

.billing-create-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 50px;

    padding: 22px 28px;

    border-top: 1px solid #e1e3e8;

    background: #fafbfc;
}

.billing-selected-count,
.billing-selected-total {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.billing-selected-count span,
.billing-selected-total span {
    color: #777d88;

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

    letter-spacing: 1px;
}

.billing-selected-count strong {
    color: #17191d;

    font-size: 13px;
}

.billing-selected-total {
    min-width: 150px;

    text-align: right;
}

.billing-selected-total strong {
    color: var(--bellboy-blue);

    font-size: 24px;
}

/* DISABLED CREATE */

#create-billing-button:disabled {
    opacity: 0.4;

    cursor: not-allowed;
}

/* RESPONSIVE */

@media (max-width: 1100px) {

    .billing-item {
        grid-template-columns:
            30px
            minmax(180px, 1fr)
            100px
            125px
            110px;
    }
}

@media (max-width: 850px) {

    .billing-client-select {
        align-items: stretch;
        flex-direction: column;
    }

    .billing-item {
        grid-template-columns:
            30px
            minmax(0, 1fr)
            auto;

        gap: 12px;
    }

    .billing-item-quantity,
    .billing-item-price {
        grid-column: 2;
    }

    .billing-item-total {
        grid-column: 3;
        grid-row: 1;

        align-self: center;
    }
}

/* =========================================
   BILLING VIEW
========================================= */

.billing-overview {
    display: grid;

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

    gap: 16px;

    margin-bottom: 24px;
}

/* STATUS */

.billing-status {
    display: inline-flex;
    align-items: center;

    min-height: 26px;

    padding: 0 10px;

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

    letter-spacing: 0.5px;

    text-transform: uppercase;
}

.billing-status-pending {
    color: #9a6700;
    background: #fff8dd;
}

.billing-status-invoiced {
    color: #237a46;
    background: #eaf7ef;
}

.billing-status-cancelled {
    color: #8a3b3b;
    background: #faeeee;
}

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

.billing-summary-panel {
    margin-bottom: 24px;
}

.billing-summary-table {
    width: 100%;
}

.billing-summary-header,
.billing-summary-row {
    display: grid;

    grid-template-columns:
        minmax(240px, 1fr)
        160px
        180px
        150px;

    gap: 20px;

    align-items: center;
}

.billing-summary-header {
    padding: 12px 24px;

    border-bottom: 1px solid #e1e3e8;

    background: #f8f9fa;

    color: #777d88;

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

    letter-spacing: 1px;

    text-transform: uppercase;
}

.billing-summary-header span:last-child {
    text-align: right;
}

.billing-summary-row {
    min-height: 64px;

    padding: 12px 24px;

    border-bottom: 1px solid #eceef1;

    color: #4b5059;

    font-size: 12px;
}

.billing-summary-service strong {
    color: #17191d;

    font-size: 13px;
}

.billing-summary-amount {
    color: var(--bellboy-blue);

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

    text-align: right;
}

.billing-mixed-price {
    color: #9a6700;

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

/* TOTAL */

.billing-grand-total {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 50px;

    padding: 22px 28px;

    background: #fafbfc;
}

.billing-grand-total span {
    color: #777d88;

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

    letter-spacing: 1px;
}

.billing-grand-total strong {
    min-width: 150px;

    color: var(--bellboy-blue);

    font-size: 24px;

    text-align: right;
}

/* =========================================
   BILLING DETAIL
========================================= */

.billing-detail-panel {
    margin-bottom: 24px;
}

.billing-detail-orders {
    padding: 20px;
}

.billing-detail-order {
    margin-bottom: 18px;

    border: 1px solid #e1e3e8;
}

.billing-detail-order:last-child {
    margin-bottom: 0;
}

.billing-detail-order-header {
    min-height: 60px;

    display: flex;
    align-items: center;

    padding: 12px 18px;

    border-bottom: 1px solid #e1e3e8;

    background: #f8f9fa;
}

.billing-detail-order-header > div {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.billing-detail-order-header strong {
    color: #17191d;

    font-size: 12px;
}

.billing-detail-order-header span {
    color: #777d88;

    font-size: 10px;
}

/*
 * Isti vizualni princip koji smo upravo
 * odabrali na billing-new:
 *
 * Narudžba
 *      Stavka
 *      Stavka
 */

.billing-detail-items {
    margin-left: 48px;

    border-left: 1px solid #e1e3e8;
}

.billing-detail-item {
    display: grid;

    grid-template-columns:
        minmax(220px, 1fr)
        130px
        150px
        130px;

    align-items: center;

    gap: 16px;

    min-height: 72px;

    padding: 13px 18px;

    border-bottom: 1px solid #eceef1;
}

.billing-detail-item:last-child {
    border-bottom: 0;
}

.billing-detail-main {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 5px;
}

.billing-detail-main strong {
    color: #17191d;

    font-size: 12px;
}

.billing-detail-main span {
    overflow: hidden;

    color: #777d88;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 10px;

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

.billing-detail-item > div:not(
    .billing-detail-main
) {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.billing-detail-label {
    color: #9297a0;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 0.8px;

    text-transform: uppercase;
}

.billing-detail-item strong {
    font-size: 11px;
}

.billing-detail-total {
    text-align: right;
}

.billing-detail-total strong {
    color: var(--bellboy-blue);

    font-size: 12px;
}

/* NOTES */

.billing-notes-panel {
    margin-bottom: 24px;
}

.billing-note {
    padding: 22px 24px;

    color: #4b5059;

    font-size: 12px;

    line-height: 1.7;
}

/* RESPONSIVE */

@media (max-width: 1100px) {

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

    .billing-summary-header,
    .billing-summary-row {
        grid-template-columns:
            minmax(180px, 1fr)
            120px
            150px
            120px;
    }

    .billing-detail-item {
        grid-template-columns:
            minmax(180px, 1fr)
            100px
            125px
            110px;
    }
}

/* =========================================
   BILLING FINALIZATION
========================================= */

.billing-finalize-panel {
    margin-bottom: 24px;
}

.billing-finalize-form {
    display: grid;

    grid-template-columns:
        minmax(220px, 1fr)
        220px
        auto;

    align-items: end;

    gap: 16px;

    padding: 22px 24px;
}

.billing-finalize-form .form-field {
    margin: 0;
}

.billing-finalize-action {
    display: flex;
    align-items: flex-end;
}

.billing-finalize-action .primary-button {
    min-height: 48px;

    white-space: nowrap;
}

/* SUCCESS MESSAGE */

.billing-success {
    margin-bottom: 24px;

    border-left: 4px solid #237a46;

    background: #eaf7ef;

    color: #237a46;
}

@media (max-width: 900px) {

    .billing-finalize-form {
        grid-template-columns: 1fr;
    }

    .billing-finalize-action {
        justify-content: flex-start;
    }
}

/* =========================================
   BILLING CANCEL
========================================= */

.billing-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.billing-header-actions form {
    margin: 0;
}

.danger-button {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 20px;

    border: 1px solid #b94747;

    background: transparent;

    color: #a43838;

    font: inherit;
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.danger-button:hover {
    background: #a43838;
    color: #ffffff;
}

/* =========================================
   BILLINGS LIST
========================================= */

.billing-filter-bar {
    display: grid;

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

    gap: 12px;

    margin-bottom: 24px;
}

.billing-filter {
    min-height: 72px;

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

    padding: 16px 18px;

    border: 1px solid #e1e3e8;

    background: #ffffff;

    color: #777d88;

    text-decoration: none;

    transition:
        border-color 0.15s ease,
        background-color 0.15s ease;
}

.billing-filter:hover {
    border-color: var(--bellboy-blue);
}

.billing-filter.active {
    border-color: var(--bellboy-blue);

    background: #f8f9fc;
}

.billing-filter span {
    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.7px;

    text-transform: uppercase;
}

.billing-filter strong {
    color: var(--bellboy-blue);

    font-size: 22px;
}

/* =========================================
   BILLING LIST
========================================= */

.billing-list-panel {
    margin-bottom: 24px;
}

.billing-list {
    width: 100%;
}

.billing-list-header,
.billing-list-row {
    display: grid;

    grid-template-columns:
        90px
        minmax(180px, 1fr)
        120px
        150px
        130px
        70px
        130px
        30px;

    gap: 16px;

    align-items: center;
}

.billing-list-header {
    padding: 12px 24px;

    border-bottom: 1px solid #e1e3e8;

    background: #f8f9fa;

    color: #777d88;

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

    letter-spacing: 1px;

    text-transform: uppercase;
}

.billing-list-row {
    min-height: 72px;

    padding: 12px 24px;

    border-bottom: 1px solid #eceef1;

    color: #4b5059;

    font-size: 11px;

    text-decoration: none;

    transition:
        background-color 0.15s ease;
}

.billing-list-row:last-child {
    border-bottom: 0;
}

.billing-list-row:hover {
    background: #fafbfc;
}

.billing-list-number strong {
    color: var(--bellboy-blue);

    font-size: 13px;
}

.billing-list-client strong {
    color: #17191d;

    font-size: 12px;
}

.billing-list-invoice {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.billing-list-invoice strong {
    color: #17191d;

    font-size: 11px;
}

.billing-list-invoice small {
    color: #9297a0;

    font-size: 9px;
}

.billing-list-total {
    color: var(--bellboy-blue);

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

    text-align: right;
}

.billing-list-arrow {
    color: #a0a5ad;

    font-size: 16px;

    text-align: right;
}

.billing-list-row:hover
.billing-list-arrow {
    color: var(--bellboy-blue);
}

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

@media (max-width: 1100px) {

    .billing-filter-bar {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .billing-list {
        overflow-x: auto;
    }

    .billing-list-header,
    .billing-list-row {
        min-width: 950px;
    }
}

/* =========================================
   SERVICES
========================================= */

.service-stats {
    display: grid;

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

    gap: 12px;

    margin-bottom: 24px;
}

.service-stat-card {
    min-height: 72px;

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

    padding: 16px 18px;

    border: 1px solid #e1e3e8;

    background: #ffffff;
}

.service-stat-card span {
    color: #777d88;

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

    letter-spacing: 0.7px;

    text-transform: uppercase;
}

.service-stat-card strong {
    color: var(--bellboy-blue);

    font-size: 22px;
}

/* =========================================
   SERVICE LIST
========================================= */

.service-list-panel {
    margin-bottom: 24px;
}

.service-list {
    width: 100%;
}

.service-list-header,
.service-list-row {
    display: grid;

    grid-template-columns:
        minmax(240px, 1fr)
        180px
        120px
        140px
        30px;

    gap: 16px;

    align-items: center;
}

.service-list-header {
    padding: 12px 24px;

    border-bottom: 1px solid #e1e3e8;

    background: #f8f9fa;

    color: #777d88;

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

    letter-spacing: 1px;

    text-transform: uppercase;
}

.service-list-row {
    min-height: 68px;

    padding: 12px 24px;

    border-bottom: 1px solid #eceef1;

    color: #4b5059;

    font-size: 11px;

    text-decoration: none;

    transition:
        background-color 0.15s ease;
}

.service-list-row:last-child {
    border-bottom: 0;
}

.service-list-row:hover {
    background: #fafbfc;
}

.service-list-name strong {
    color: #17191d;

    font-size: 12px;
}

.service-list-code {
    color: #777d88;

    font-family: monospace;

    font-size: 10px;
}

.service-list-unit {
    font-weight: 700;
}

.service-status {
    display: inline-flex;

    align-items: center;

    padding: 6px 9px;

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

    letter-spacing: 0.6px;

    text-transform: uppercase;
}

.service-status-active {
    background: #edf8f1;
    color: #27814b;
}

.service-status-inactive {
    background: #f1f2f4;
    color: #777d88;
}

.service-list-arrow {
    color: #a0a5ad;

    font-size: 16px;

    text-align: right;
}

.service-list-row:hover
.service-list-arrow {
    color: var(--bellboy-blue);
}

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

@media (max-width: 900px) {

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

    .service-list {
        overflow-x: auto;
    }

    .service-list-header,
    .service-list-row {
        min-width: 750px;
    }
}

/* =========================================
   SERVICE FORM
========================================= */

.service-form-panel {
    max-width: 1000px;
}

.service-form {
    padding: 28px;
}

.service-form-grid {
    display: grid;

    grid-template-columns:
        minmax(260px, 1.5fr)
        minmax(200px, 1fr)
        180px;

    gap: 20px;

    align-items: start;
}

.service-form .form-group {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.service-form .form-group label {
    color: #3d424b;

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

    letter-spacing: 0.5px;

    text-transform: uppercase;
}

.service-form input[type="text"],
.service-form select {
    width: 100%;
    min-height: 48px;

    padding: 0 14px;

    border: 1px solid #dfe2e7;

    border-radius: 0;

    background: #ffffff;

    color: #17191d;

    font: inherit;
    font-size: 12px;

    outline: none;
}

.service-form input[type="text"]:focus,
.service-form select:focus {
    border-color: var(--bellboy-blue);
}

.form-help {
    color: #9297a0;

    font-size: 9px;

    line-height: 1.5;
}

.service-active-row {
    margin-top: 28px;

    padding-top: 24px;

    border-top: 1px solid #eceef1;
}

.service-checkbox {
    display: inline-flex;

    align-items: flex-start;

    gap: 12px;

    cursor: pointer;
}

.service-checkbox input {
    width: 16px;
    height: 16px;

    margin-top: 2px;

    accent-color: var(--bellboy-blue);
}

.service-checkbox span {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.service-checkbox strong {
    color: #17191d;

    font-size: 11px;
}

.service-checkbox small {
    color: #9297a0;

    font-size: 9px;
}

.service-form-actions {
    display: flex;

    justify-content: flex-end;

    gap: 12px;

    margin-top: 32px;

    padding-top: 24px;

    border-top: 1px solid #eceef1;
}

@media (max-width: 900px) {

    .service-form-grid {
        grid-template-columns: 1fr;
    }

    .service-form-panel {
        max-width: none;
    }
}

.service-stat-card {
    color: inherit;
    text-decoration: none;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        background-color 0.15s ease;
}

.service-stat-card:hover {
    border-color: var(--bellboy-blue);
}

.service-stat-card.active {
    border-color: var(--bellboy-blue);

    background: #f8f9fc;
}

/* =========================================
   DASHBOARD - PRODUCTION METRICS
   DTF / HTV / POLI vrijednosti ostaju u jednom redu
========================================= */

.dashboard-grid-five .stat-card:nth-last-child(-n+3) strong {
    font-size: 28px;
    white-space: nowrap;
}

.dashboard-grid-five .stat-card:nth-last-child(-n+3) small {
    font-size: 12px;
    white-space: nowrap;
}


/* =========================================
   ANALYTICS
========================================= */

.analytics-filter-panel {
    margin-bottom: 24px;
    padding: 26px;
}

.analytics-filter-form {
    display: grid;
    grid-template-columns:
        minmax(150px, 1fr)
        minmax(150px, 1fr)
        minmax(180px, 1.3fr)
        minmax(180px, 1.3fr)
        auto;

    gap: 16px;

    align-items: end;
}

.analytics-filter-field {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.analytics-filter-field label {
    color: #777d88;

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

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.analytics-filter-field input,
.analytics-filter-field select {
    width: 100%;
    height: 48px;

    padding: 0 14px;

    background: #fff;

    border: 1px solid #dfe2e8;

    color: #111318;

    font: inherit;

    outline: none;
}

.analytics-filter-field input:focus,
.analytics-filter-field select:focus {
    border-color: var(--bellboy-blue);
}

.analytics-filter-action .primary-button {
    height: 48px;

    border: 0;

    cursor: pointer;
}

.analytics-quick-filters {
    display: flex;

    gap: 10px;

    margin-top: 18px;
}

.analytics-quick-filters a {
    padding: 9px 13px;

    color: var(--bellboy-blue);

    border: 1px solid #dfe2e8;

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

    text-decoration: none;
}

.analytics-quick-filters a:hover {
    border-color: var(--bellboy-blue);
}


/* KPI */

.analytics-kpi-grid {
    display: grid;

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

    gap: 16px;
}

.analytics-kpi-card {
    min-width: 0;
    min-height: 150px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 24px;

    background: #fff;

    border: 1px solid #e1e3e8;
}

.analytics-kpi-card span {
    color: #777d88;

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

.analytics-kpi-card strong {
    color: var(--bellboy-blue);

    font-size: 28px;
    line-height: 1;

    white-space: nowrap;
}


/* RESPONSIVE */

@media (max-width: 1200px) {

    .analytics-filter-form {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .analytics-filter-action {
        grid-column: span 2;
    }

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

@media (max-width: 700px) {

    .analytics-filter-form {
        grid-template-columns: 1fr;
    }

    .analytics-filter-action {
        grid-column: auto;
    }

    .analytics-quick-filters {
        flex-wrap: wrap;
    }

    .analytics-kpi-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   ANALYTICS - TREND
========================================= */

.analytics-trend-panel {
    margin-top: 24px;
    margin-bottom: 30px;
}


.analytics-trend-mode {
    color: #777d88;

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

    letter-spacing: 0.7px;

    text-transform: uppercase;
}


/* CHART */

.analytics-chart-scroll {
    width: 100%;

    overflow-x: auto;

    padding: 32px 28px 24px;
}


.analytics-bar-chart {
    min-height: 330px;

    display: flex;
    align-items: flex-end;

    gap: 12px;
}


/* MONTHLY */

.analytics-bar-chart-monthly
.analytics-bar-item {
    min-width: 72px;

    flex: 1;
}


/* DAILY */

.analytics-bar-chart-daily
.analytics-bar-item {
    min-width: 38px;

    flex: 1;
}


/* ITEM */

.analytics-bar-item {
    height: 300px;

    display: grid;

    grid-template-rows:
        40px
        220px
        40px;

    align-items: end;
}


.analytics-bar-value {
    min-height: 40px;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    padding-bottom: 8px;

    color: #777d88;

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

    white-space: nowrap;
}


/* TRACK */

.analytics-bar-track {
    position: relative;

    width: 100%;
    height: 220px;

    display: flex;
    align-items: flex-end;

    border-bottom: 1px solid #dfe2e8;

    background:
        linear-gradient(
            to bottom,
            transparent 24%,
            #f0f1f3 25%,
            transparent 26%,
            transparent 49%,
            #f0f1f3 50%,
            transparent 51%,
            transparent 74%,
            #f0f1f3 75%,
            transparent 76%
        );
}


/* BAR */

.analytics-bar-fill {
    width: 100%;

    min-height: 0;

    background: var(--bellboy-blue);

    transition: height 0.2s ease;
}


/* LABEL */

.analytics-bar-label {
    display: flex;
    align-items: flex-start;
    justify-content: center;

    padding-top: 10px;

    color: #777d88;

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

    white-space: nowrap;
}


/* DAILY BAR WIDTH */

.analytics-bar-chart-daily
.analytics-bar-fill {
    width: 70%;

    margin: 0 auto;
}


/* MONTHLY BAR WIDTH */

.analytics-bar-chart-monthly
.analytics-bar-fill {
    width: 60%;

    margin: 0 auto;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .analytics-chart-scroll {
        padding-left: 18px;
        padding-right: 18px;
    }


    .analytics-bar-chart-monthly
    .analytics-bar-item {
        min-width: 65px;
    }


    .analytics-bar-chart-daily
    .analytics-bar-item {
        min-width: 34px;
    }
}

/* =========================================
   ANALYTICS - CLIENTS
========================================= */

.analytics-clients-panel {
    margin-top: 24px;
    margin-bottom: 30px;
}


/* TOP CLIENTS */

.analytics-client-ranking {
    padding: 10px 28px 28px;
}


.analytics-client-row {
    min-height: 72px;

    display: grid;

    grid-template-columns:
        35px
        minmax(160px, 220px)
        minmax(200px, 1fr)
        130px;

    gap: 18px;

    align-items: center;

    border-bottom: 1px solid #eceef1;
}


.analytics-client-row:last-child {
    border-bottom: 0;
}


.analytics-client-position {
    color: #9a9fa9;

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


.analytics-client-name {
    color: #15171b;

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


.analytics-client-bar {
    height: 8px;

    background: #eceef2;
}


.analytics-client-bar-fill {
    height: 100%;

    background: var(--bellboy-blue);
}


.analytics-client-value {
    color: var(--bellboy-blue);

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

    text-align: right;

    white-space: nowrap;
}


/* SINGLE CLIENT */

.analytics-client-summary {
    display: grid;

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


.analytics-client-summary-item {
    min-height: 125px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 24px 28px;

    border-right: 1px solid #eceef1;
}


.analytics-client-summary-item:last-child {
    border-right: 0;
}


.analytics-client-summary-item span {
    color: #777d88;

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

    letter-spacing: 0.7px;

    text-transform: uppercase;
}


.analytics-client-summary-item strong {
    color: var(--bellboy-blue);

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


/* RESPONSIVE */

@media (max-width: 1000px) {

    .analytics-client-row {
        grid-template-columns:
            30px
            150px
            minmax(150px, 1fr)
            110px;
    }


    .analytics-client-summary {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .analytics-client-summary-item:nth-child(2) {
        border-right: 0;
    }


    .analytics-client-summary-item:nth-child(-n+2) {
        border-bottom: 1px solid #eceef1;
    }
}

/* =========================================
   ANALYTICS - SERVICES
========================================= */

.analytics-services-panel {
    margin-top: 24px;
    margin-bottom: 30px;
}


/* TABLE */

.analytics-service-table {
    width: 100%;
}


/* HEADER */

.analytics-service-table-header {
    display: grid;

    grid-template-columns:
        minmax(260px, 1.8fr)
        minmax(100px, 0.6fr)
        minmax(120px, 0.8fr)
        minmax(130px, 0.8fr);

    align-items: center;

    min-height: 46px;

    padding: 0 28px;

    background: #f8f9fb;

    border-bottom: 1px solid #e1e3e8;
}


.analytics-service-table-header span {
    color: #8a8f99;

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

    letter-spacing: 0.7px;

    text-transform: uppercase;
}


/* ROW */

.analytics-service-table-row {
    display: grid;

    grid-template-columns:
        minmax(260px, 1.8fr)
        minmax(100px, 0.6fr)
        minmax(120px, 0.8fr)
        minmax(130px, 0.8fr);

    align-items: center;

    min-height: 64px;

    padding: 0 28px;

    border-bottom: 1px solid #eceef1;

    transition:
        background 0.15s ease;
}


.analytics-service-table-row:last-child {
    border-bottom: 0;
}


.analytics-service-table-row:hover {
    background: #fafbfc;
}


/* SERVICE NAME */

.analytics-service-name strong {
    color: #15171b;

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


/* ORDERS */

.analytics-service-number {
    color: #555b66;

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


/* QUANTITY */

.analytics-service-quantity {
    color: #555b66;

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

    white-space: nowrap;
}


/* VALUE */

.analytics-service-value {
    color: var(--bellboy-blue);

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

    text-align: right;

    white-space: nowrap;
}


/* HEADER ALIGNMENT */

.analytics-service-table-header span:last-child {
    text-align: right;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .analytics-service-table {
        overflow-x: auto;
    }


    .analytics-service-table-header,
    .analytics-service-table-row {
        min-width: 700px;

        grid-template-columns:
            260px
            100px
            130px
            150px;
    }
}


/* =========================================
   PURCHASES
========================================= */


/* =========================================
   KPI
========================================= */

.purchase-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 24px;
}


.purchase-kpi-card {
    min-height: 145px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 24px;

    background: var(--white);

    border: 1px solid #e1e3e8;
}


.purchase-kpi-card > span {
    color: #777d88;

    font-size: 14px;
    font-weight: 600;
}


.purchase-kpi-card strong {
    color: var(--bellboy-blue);

    font-size: 30px;
    line-height: 1;

    white-space: nowrap;
}


.purchase-kpi-card small {
    color: #858a94;

    font-size: 12px;
}


/* =========================================
   FILTERI
========================================= */

.purchase-filter-panel {
    margin-bottom: 24px;

    padding: 24px 28px;
}


.purchase-filter-form {
    display: grid;

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

    gap: 16px;

    align-items: end;
}


.purchase-filter-field {
    display: flex;
    flex-direction: column;

    gap: 7px;
}


.purchase-filter-field label {
    color: #777d88;

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

    letter-spacing: 0.7px;

    text-transform: uppercase;
}


.purchase-filter-field select {
    width: 100%;
    height: 42px;

    padding: 0 12px;

    background: var(--white);

    border: 1px solid #dfe2e8;

    color: #20232a;

    font-family: inherit;
    font-size: 13px;

    outline: none;
}


.purchase-filter-field select:focus {
    border-color: var(--bellboy-blue);
}


.purchase-filter-action {
    display: flex;
    align-items: flex-end;
}


.purchase-filter-action .primary-button {
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.purchase-filter-reset {
    margin-top: 16px;

    padding-top: 16px;

    border-top: 1px solid #eceef1;
}


.purchase-filter-reset a {
    color: #777d88;

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

    text-decoration: none;
}


.purchase-filter-reset a:hover {
    color: var(--bellboy-blue);
}


/* =========================================
   LISTA NABAVE
========================================= */

.purchase-list-panel {
    margin-bottom: 30px;
}


.purchase-list {
    width: 100%;
}


.purchase-list-header,
.purchase-list-row {
    display: grid;

    grid-template-columns:
        82px
        minmax(105px, 0.8fr)
        minmax(150px, 1.35fr)
        minmax(110px, 0.95fr)
        62px
        105px
        105px
        92px
        18px;

    gap: 10px;

    align-items: center;

    padding-left: 22px;
    padding-right: 22px;

    min-width: 0;
}


/* HEADER */

.purchase-list-header {
    min-height: 46px;

    background: #f8f9fb;

    border-bottom: 1px solid #e1e3e8;
}


.purchase-list-header span {
    color: #8a8f99;

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

    letter-spacing: 0.5px;

    text-transform: uppercase;
}


.purchase-list-header span:nth-child(8) {
    text-align: right;
}


/* ROW */

.purchase-list-row {
    min-height: 68px;

    color: #555b66;

    font-size: 12px;

    text-decoration: none;

    border-bottom: 1px solid #eceef1;

    transition:
        background 0.15s ease;
}


.purchase-list-row:last-child {
    border-bottom: 0;
}


.purchase-list-row:hover {
    background: #fafbfc;
}


.purchase-list-supplier strong,
.purchase-list-item strong {
    color: #15171b;

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


.purchase-list-total {
    color: var(--bellboy-blue);

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

    text-align: right;

    white-space: nowrap;
}


.purchase-list-arrow {
    color: #a1a6af;

    font-size: 16px;

    text-align: right;
}


.purchase-list-row:hover .purchase-list-arrow {
    color: var(--bellboy-blue);
}


/* Purchase list containment */
.purchase-list-row > div,
.purchase-list-header > span {
    min-width: 0;
}

.purchase-list-supplier,
.purchase-list-item,
.purchase-list-client {
    min-width: 0;
    overflow: hidden;
}

.purchase-list-supplier strong,
.purchase-list-item strong,
.purchase-list-client {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.purchase-list-total,
.purchase-list-arrow {
    min-width: 0;
    white-space: nowrap;
}


/* =========================================
   STATUS NARUDŽBE
========================================= */

.purchase-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 26px;

    padding: 5px 9px;

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

    letter-spacing: 0.4px;

    text-transform: uppercase;

    white-space: nowrap;
}


/* NARUČENO */

.purchase-status-ordered {
    color: #9a6500;

    background: #fff4d6;

    border: 1px solid #f1d895;
}


/* ISPORUČENO */

.purchase-status-delivered {
    color: #267248;

    background: #eaf7ef;

    border: 1px solid #b9e0c8;
}


/* =========================================
   STATUS PLAĆANJA
========================================= */

.purchase-payment-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 26px;

    padding: 5px 9px;

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

    letter-spacing: 0.4px;

    text-transform: uppercase;

    white-space: nowrap;
}


/* NIJE PLAĆENO */

.purchase-payment-status-unpaid {
    color: #a33a32;

    background: #fff0ef;

    border: 1px solid #efc2be;
}


/* PLAĆENO */

.purchase-payment-status-paid {
    color: #267248;

    background: #eaf7ef;

    border: 1px solid #b9e0c8;
}


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

@media (max-width: 1200px) {

    .purchase-filter-form {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .purchase-filter-action {
        grid-column: span 2;
    }


    .purchase-filter-action .primary-button {
        width: 100%;
    }


    .purchase-list {
        overflow-x: auto;
    }


    .purchase-list-header,
    .purchase-list-row {
        display: grid;

        min-width: 900px;

        grid-template-columns:
            80px
            110px
            170px
            115px
            65px
            110px
            110px
            90px
            20px;

        gap: 10px;

        align-items: center;

        padding-left: 28px;
        padding-right: 28px;

        box-sizing: border-box;
}

.purchase-list-row > div,
.purchase-list-header > span {
    min-width: 0;
}

.purchase-list-item,
.purchase-list-supplier {
    overflow: hidden;
}

.purchase-list-item strong,
.purchase-list-supplier strong {
    display: block;

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

.purchase-list-total {
    text-align: right;
    white-space: nowrap;
}

.purchase-list-arrow {
    text-align: right;
    white-space: nowrap;
}

}


@media (max-width: 800px) {

    .purchase-kpi-grid {
        grid-template-columns: 1fr;
    }


    .purchase-filter-form {
        grid-template-columns: 1fr;
    }


    .purchase-filter-action {
        grid-column: auto;
    }
}

/* =========================================
   PURCHASE FORM
========================================= */

.purchase-form-panel {
    margin-bottom: 30px;
}


.purchase-form {
    padding: 28px;
}


.purchase-form-grid {
    display: grid;

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

    gap: 20px;

    margin-bottom: 22px;
}


.purchase-form-grid-three {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}


.purchase-form-field {
    display: flex;
    flex-direction: column;

    gap: 8px;
}


.purchase-form-field-full {
    margin-bottom: 22px;
}


.purchase-form-field-half {
    width: calc(50% - 10px);

    margin-bottom: 22px;
}


.purchase-form-field label {
    color: #777d88;

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

    letter-spacing: 0.7px;

    text-transform: uppercase;
}


.purchase-form-field input,
.purchase-form-field select,
.purchase-form-field textarea {
    width: 100%;

    padding: 0 12px;

    background: var(--white);

    border: 1px solid #dfe2e8;

    color: #20232a;

    font-family: inherit;
    font-size: 13px;

    outline: none;
}


.purchase-form-field input,
.purchase-form-field select {
    height: 44px;
}


.purchase-form-field textarea {
    min-height: 100px;

    padding-top: 12px;
    padding-bottom: 12px;

    resize: vertical;
}


.purchase-form-field input:focus,
.purchase-form-field select:focus,
.purchase-form-field textarea:focus {
    border-color: var(--bellboy-blue);
}


/* TOTAL PREVIEW */

.purchase-total-preview {
    height: 44px;

    display: flex;
    align-items: center;

    padding: 0 14px;

    background: #f8f9fb;

    border: 1px solid #dfe2e8;

    color: var(--bellboy-blue);

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


/* HELP */

.purchase-form-help {
    margin: -8px 0 22px;

    color: #8a8f99;

    font-size: 11px;
}


/* ACTIONS */

.purchase-form-actions {
    display: flex;
    justify-content: flex-end;

    gap: 10px;

    margin-top: 28px;

    padding-top: 24px;

    border-top: 1px solid #eceef1;
}


/* ERROR */

.form-error {
    margin-bottom: 24px;

    padding: 14px 18px;

    color: #a33a32;

    background: #fff0ef;

    border: 1px solid #efc2be;

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


/* RESPONSIVE */

@media (max-width: 800px) {

    .purchase-form-grid,
    .purchase-form-grid-three {
        grid-template-columns: 1fr;
    }


    .purchase-form-field-half {
        width: 100%;
    }


    .purchase-form-actions {
        flex-direction: column-reverse;
    }


    .purchase-form-actions .primary-button,
    .purchase-form-actions .secondary-button {
        width: 100%;

        justify-content: center;
    }
}

/* =========================================
   PURCHASE VIEW
========================================= */

.purchase-view-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.purchase-view-summary-card {
    min-height: 105px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 22px 24px;

    background: var(--white);
    border: 1px solid #e1e3e8;
}

.purchase-view-summary-card span {
    color: #777d88;

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

    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.purchase-view-summary-card strong {
    color: var(--bellboy-blue);

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

.form-success {
    margin-bottom: 24px;
    padding: 14px 18px;

    color: #267248;

    background: #eaf7ef;
    border: 1px solid #b9e0c8;

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

@media (max-width: 800px) {

    .purchase-view-summary {
        grid-template-columns: 1fr;
    }
}