@import "typography.css";
@import "input.css";
@import "buttons.css";
@import "login.css";
@import "forgotpassword.css";
@import "table.css";
@import "popup.css";
@import "order-planning.css";
@import "user.css";
@import "companyusers.css";
@import "menu.css";
@import "orders.css";
@import "billings.css";
@import "notifications.css";
@import "main-dashboard.css";
@import "report-filter.css";

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --container-padding: 60px;

    /* Font Families */
    --font-family-display: "RM Neue", Arial, Helvetica, sans-serif;
    --font-family-body: "RM Neue", Arial, Helvetica, sans-serif;

    /* Display Styles */
    --display-large-font-size: 72px;
    --display-large-line-height: 118%;
    --display-large-font-weight: 700;
    --display-large-letter-spacing: -0.04em;

    --display-medium-font-size: 64px;
    --display-medium-line-height: 118%;
    --display-medium-font-weight: 700;
    --display-medium-letter-spacing: -0.04em;

    --display-small-font-size: 59px;
    --display-small-line-height: 124%;
    --display-small-font-weight: 700;
    --display-small-letter-spacing: -0.04em;

    /* Headline Styles */
    --headline-large-font-size: 48px;
    --headline-large-line-height: 122%;
    --headline-large-font-weight: 700;
    --headline-large-letter-spacing: -0.03em;

    --headline-medium-font-size: 36px;
    --headline-medium-line-height: 133%;
    --headline-medium-font-weight: 700;
    --headline-medium-letter-spacing: -0.02em;

    --headline-small-font-size: 28px;
    --headline-small-line-height: 143%;
    --headline-small-font-weight: 700;
    --headline-small-letter-spacing: -0.01em;

    /* Title Styles */
    --title-large-font-size: 22px;
    --title-large-line-height: 148%;
    --title-large-font-weight: 700;
    --title-large-letter-spacing: 0;

    --title-medium-font-size: 20px;
    --title-medium-line-height: 140%;
    --title-medium-font-weight: 700;
    --title-medium-letter-spacing: 0;

    --title-small-font-size: 18px;
    --title-small-line-height: 158%;
    --title-small-font-weight: 700;
    --title-small-letter-spacing: 0;

    /* Label Styles */
    --label-large-font-size: 16px;
    --label-large-line-height: 150%;
    --label-large-font-weight: 700;
    --label-large-letter-spacing: 0;

    --label-medium-font-size: 14px;
    --label-medium-line-height: 143%;
    --label-medium-font-weight: 700;
    --label-medium-letter-spacing: 0;

    --label-small-font-size: 12px;
    --label-small-line-height: 133%;
    --label-small-font-weight: 400;
    --label-small-letter-spacing: 0;

    /* Body Styles */
    --body-large-font-size: 18px;
    --body-large-line-height: 155%;
    --body-large-font-weight: 400;
    --body-large-letter-spacing: 0;

    --body-medium-font-size: 14px;
    --body-medium-line-height: 150%;
    --body-medium-font-weight: 400;
    --body-medium-letter-spacing: 0;

    --body-small-font-size: 12px;
    --body-small-line-height: 133%;
    --body-small-font-weight: 400;
    --body-small-letter-spacing: 0;

    /* Text Colors */
    --text-high: #1d1d1f;
    --text-mid: #424245;
    --text-low: #6e6e73;

    /* Dark Text Colors */
    --dark-high: #f5f5f7;
    --dark-mid: #cccdd7;
    --dark-low: #86868b;

    /* Container Colors */
    --container-white: #ffffff;
    --container-secondary: #f5f5f7;
    --container-black: #000000;

    /* Dark Container Colors */
    --dark-sec: #1d1d1f;
    --dark-blue: #00263a;

    /* Border Colors */
    --border-light: #d2d2d7;
    --border-dark: #424245;

    /* Brand Colors — CATRION primary Sky Blue, secondary blues */
    --brand-sky-blue: #5e93db;
    --brand-light-blue: #a7c6ed;
    --brand-pale-blue: #c8d8eb;
    --brand-frost: #dbe2e9;
    --brand-sea-blue: #00426a;
    --brand-powder-blue: #9bb8d3;
    --brand-blissful-blue: #becae9;
    --brand-accent: #5e93db;
    --brand-accent-light: #a7c6ed;
    --brand-accent-low: #dbe2e9;

    /* Status Colors */
    --status-green: #03a10e;
    --status-orange: #ad5918;
    --status-red: #cc3340;
    --status-blue: #3b8ef0;
    --status-grey: #64636d;
    --status-aqua: #15c3ce;
}

body {
    margin: 0;
    padding: 0;
    font-weight: 400;
    line-height: 1.6;
    font-family: var(--font-family-body);
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    color: var(--font-color);
    font-weight: 700;
    border-color: var(--primary-color);
    min-width: 130px;
    line-height: 1.5;
    font-size: var(--font-size);
}

.btn-primary {
    background-color: var(--primary-color);
}

a.btn {
    text-decoration: none;
    border: 1px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

a {
    text-decoration: none;
    color: var(--font-color);
}

p {
    margin-top: 0;
    margin-bottom: 10px;
}

img {
    max-width: 100%;
    height: auto;
}

.border-none {
    border: none;
}

.p-0 {
    padding: 0;
}

._hidden {
    display: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

.block.block-new-company {
    display: none;
}

.icon {
    font-family: "catrion";
}

.loading-mask {
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100%;
}

.loading-mask:before {
    background-color: rgba(255, 255, 255, 0.75);
    width: 100%;
    height: 100%;
    content: "";
    position: fixed;
}

.loading-mask .loader {
    width: auto;
    height: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-mask .loader p {
    display: none;
}

.w-full {
    width: 100%;
}

.mb-4 {
    margin-bottom: 16px;
}

.mr-4 {
    margin-right: 16px;
}

.dashboard-header {
    z-index: 1;
}

.message-success.success.message {
    color: #006400;
    background-color: #e5efe5;
    margin: 10px;
    padding: 10px 20px;
    border-radius: 3px;
    font-family: var(--font-family-body);
}

.success-message.active {
    color: #006400;
    background-color: #e5efe5;
    margin: 10px;
    padding: 10px 20px;
    border-radius: 3px;
    font-family: var(--font-family-body);
    display: inline-block;
    width: 100%;
}

.message-error.error.message {
    color: #e02b27;
    background-color: #fae5e5;
    margin: 10px;
    padding: 10px 20px;
    border-radius: 3px;
    font-family: var(--font-family-body);
}

.error-message.active {
    color: #e02b27;
    background-color: #fae5e5;
    margin: 10px;
    padding: 10px 20px;
    border-radius: 3px;
    font-family: var(--font-family-body);
    display: inline-block;
    width: 100%;
}

.message-notice {
    color: #6f4400;
    background-color: #fdf0d5;
    margin: 10px;
    padding: 10px 20px;
    border-radius: 3px;
    font-family: var(--font-family-body);
}

body .align-start {
    justify-content: start;
}

.relative {
    position: relative;
}

td.ui-datepicker-unselectable.ui-state-disabled {
    opacity: 0.5;
}

.tab-button-wrapper:last-of-type {
    border-radius: 0 24px 24px 0;
    margin-left: -1px;
}

div#total_guests-error {
    font-size: 14px;
    color: red;
    font-family: var(--font-family-body);
}

.page-main>.columns {
    min-height: calc(100vh - 125px);
}

/*Sales report*/
.sales_report-index-index,
.sales_report-index-orderservice,
.servicereport-index-index,
.sales_report-mealreport-index,
.laundry_report-index-index,
.omtospvlaundry_report-index-index,
.om_to_spv_invoice-index-index {

    form#sales-report-form .actions-toolbar,
    form#laundry-report-form .actions-toolbar,
    form#omtospv-invoice-form .actions-toolbar {
        padding: 16px 0;
        margin-bottom: 24px;
    }

    form#meal-report-form.report-filter-form .actions-toolbar,
    form#order-service-report-form.report-filter-form .actions-toolbar,
    form#sales-report-form.report-filter-form .actions-toolbar,
    form#laundry-report-form.report-filter-form .actions-toolbar,
    form#omtospv-invoice-form.report-filter-form .actions-toolbar {
        padding: 0;
        margin: 0;
    }

    .report-tables {
        .actions-toolbar {
            .primary {
                margin-top: 10px;
                text-align: right;
            }
        }
    }

    .sales-report-form .account-table-wrapper.actions-toolbar .primary,
    .omtospv-invoice-form .account-table-wrapper.actions-toolbar .primary,
    .service-report-form .account-table-wrapper.actions-toolbar .primary,
    .meal-report-form .account-table-wrapper.actions-toolbar .primary,
    .laundry-report-form .account-table-wrapper.actions-toolbar .primary {
        margin-top: 10px;
        text-align: right;
    }
}

/* End Sales report */

/* Sales Report Cell Coloring ONLY */
.sales-report-cell-delivered,
.omtospv-invoice-cell-delivered {
    background-color: #d4edda !important;
    color: #155724 !important;
    font-weight: 500 !important;
}

.sales-report-cell-billed,
.omtospv-invoice-cell-billed {
    background-color: #cce5ff !important;
    color: #004085 !important;
    font-weight: 500 !important;
}

.sales-report-cell-billed::after,
.omtospv-invoice-cell-billed::after {
    content: "✓";
    margin-left: 5px;
    color: #28a745;
    font-weight: bold;
}

.sales-report-cell-empty,
.omtospv-invoice-cell-empty {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    font-style: italic !important;
}

/* Legend styling ONLY */
.sales-report-legend,
.omtospv-invoice-legend {
    margin: 15px 0;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.sales-report-legend-item,
.omtospv-invoice-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sales-report-legend-color,
.omtospv-invoice-legend-color {
    width: 22px;
    height: 22px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.sales-report-legend-color.delivered,
.omtospv-invoice-legend-color.delivered {
    background-color: #d4edda;
}

.sales-report-legend-color.billed,
.omtospv-invoice-legend-color.billed {
    background-color: #cce5ff;
}

.sales-report-legend-color.empty,
.omtospv-invoice-legend-color.empty {
    background-color: transparent;
    border-style: dashed;
}

.sales-report-legend-item span,
.omtospv-invoice-legend-item span {
    font-size: 13px;
    color: #495057;
    font-weight: 500;
}

/* Day column headers ONLY */
.sales-report-day-column-header,
.omtospv-invoice-day-column-header {
    min-width: 90px !important;
    text-align: center !important;
    background-color: #e9ecef !important;
    font-weight: 600 !important;
}

/* Notification message ONLY */
.sales-report-notification-message,
.omtospv-invoice-notification-message {
    margin: 15px 0;
    padding: 15px;
    background: #f0f7ff;
    border: 1px solid #c5d9f1;
    border-radius: 4px;
    border-left: 4px solid #1979c3;
}

.sales-report-notification-message a,
.omtospv-invoice-notification-message a {
    color: #1979c3;
    text-decoration: underline;
    font-weight: 600;
}

.sales-report-notification-message a:hover,
.omtospv-invoice-notification-message a:hover {
    color: #0056b3;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .sales-report-legend,
    .omtospv-invoice-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}