@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";

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

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

body {
    margin: 0;
    padding: 0;
    font-weight: 400;
    /* font-size: var(--font-size); */
    line-height: 1.6;
    /* font-family: var(--primary-font); */
    /* color: var(--font-color); */
}

body {
    font-family: Arial;
}

.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: "Arial";
}

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

.message-error.error.message {
    color: #e02b27;
    background-color: #fae5e5;
    margin: 10px;
    padding: 10px 20px;
    border-radius: 3px;
    font-family: "Arial";
}

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

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

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: "Arial";
}

.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#order-service-report-form .actions-toolbar,
    form#meal-report-form .actions-toolbar,
    form#laundry-report-form .actions-toolbar,
    form#omtospv-invoice-form .actions-toolbar {
        padding: 16px 0;
        margin-bottom: 24px;
    }

    .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;
    }
}