@import url('/_content/SCTBlazorBusiness/css/app.css');

#app {
    height: 90%;
}

div.page {
    height: 100%;
}

li.draggable {
    padding: 10px;
    cursor: pointer;
    user-select: none;
    list-style-type: none;
}

/*Google PlaceAutocompleteElement Styling BEGIN*/

gmp-place-autocomplete {
    max-width: 400px;
    height: 30px !important;
    /* Adjust the input field height */
}

.row {
    margin-left: 0px !important;
    margin-right: 0px !important;
}

[class^="col"] {
    padding-left: 5px !important;
    padding-right: 5px !important;
}

.rz-radiobutton-label {
    margin-left: 5px;
    margin-right: 5px;
}

.place-autocomplete-container {
    max-height: 100px !important;
    /* Adjust the value as needed */
}

.widget-container {
    height: 30px !important;
    /* Adjust the input field height */
}

.cancelled-order-details {
    text-decoration: line-through;
    opacity: 0.6;
}

/*Google PlaceAutocompleteElement Styling END*/

@media print {
    .noprint,
    .no-print,
    .rz-menu,
    .rz-dialog,
    .rz-notification,
    #watermark,
    main > div.text-center {
        display: none !important;
    }

    .pagebreak {
        page-break-before: always !important;
        break-before: page !important;
    }
}

@-webkit-keyframes blinker {
    from {
        opacity: 1.0;
    }

    to {
        opacity: 0.0;
    }
}

#watermark {
    position: fixed;
    top: 25px;
    right: 10px;
    opacity: 0.7;
    z-index: 99;
    color: crimson;
    font-weight: bold;
    font-size: 20px;
    text-decoration: blink;
    -webkit-animation-name: blinker;
    -webkit-animation-duration: 0.6s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: ease-in-out;
    -webkit-animation-direction: alternate;
}

.blink {
    text-decoration: blink;
    -webkit-animation-name: blinker;
    -webkit-animation-duration: 0.6s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: ease-in-out;
    -webkit-animation-direction: alternate;
}

span.warning {}

span.message {}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.rz-datatable-data td .rz-cell-data,
.rz-grid-table td .rz-cell-data {
    white-space: normal;
    word-break: break-word;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

.badge-tiffin {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    display: inline-block;
}

/* ================================================
   GLOBAL CUSTOMER INFO CELL COMPACT STYLING
   ================================================ */
.customer-info-line,
.customer-info-detailed {
    font-size: 0.825rem !important;
    /* Scaled down base font size for the control */
}

/* Make inner elements inside CustomerInfoCell proportional */
.customer-info-line .address,
.customer-info-detailed .address {
    font-size: 0.825rem !important;
}

.customer-info-line .mobile,
.customer-info-detailed .mobile {
    font-size: 0.825rem !important;
}

.customer-info-line .delivery-days,
.customer-info-detailed .delivery-days {
    font-size: 0.8rem !important;
}

.customer-info-line .delivery-days-chips,
.customer-info-detailed .delivery-days-chips {
    font-size: 0.8rem !important;
}

.customer-info-line .day-chip,
.customer-info-detailed .day-chip {
    font-size: 0.75rem !important;
    min-width: 18px !important;
    min-height: 18px !important;
}

.customer-info-line .balance-value,
.customer-info-detailed .balance-value {
    font-size: 0.825rem !important;
}

.customer-info-line .rz-splitbutton,
.customer-info-detailed .rz-splitbutton {
    font-size: 0.825rem !important;
}

.customer-info-line .rz-splitbutton .rz-button-text,
.customer-info-detailed .rz-splitbutton .rz-button-text {
    font-size: 0.825rem !important;
    font-weight: 600 !important;
}

.customer-info-line .rz-splitbutton .rz-button,
.customer-info-detailed .rz-splitbutton .rz-button {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    height: auto !important;
    min-height: 24px !important;
    line-height: normal !important;
}

.customer-info-line .rz-splitbutton .rz-button-icon-left,
.customer-info-line .rz-splitbutton .rz-button-icon-right,
.customer-info-detailed .rz-splitbutton .rz-button-icon-left,
.customer-info-detailed .rz-splitbutton .rz-button-icon-right {
    font-size: 0.9rem !important;
}

/* ================================================
   GLOBAL CATERING INFO & SCHEDULE CARD COMPACT STYLING
   ================================================ */
.catering-info-button-container,
.catering-schedule-card {
    font-size: 0.825rem !important;
    /* Scaled down base font size for the entire card/control */
}

/* Force inner text, labels, and spans to inherit the small font size */
.catering-schedule-card b,
.catering-schedule-card span,
.catering-schedule-card i,
.catering-schedule-card .col-md,
.catering-schedule-card .col-md-auto,
.catering-schedule-card .col-md-6 {
    font-size: 0.825rem !important;
}

/* Ensure labels inside the card look compact */
.catering-schedule-card .rz-label {
    font-size: 0.825rem !important;
}

/* Radzen split button inside CateringInfoButton */
.catering-info-button-container .rz-splitbutton {
    font-size: 0.825rem !important;
}

.catering-info-button-container .rz-splitbutton .rz-button-text {
    font-size: 0.825rem !important;
    font-weight: 600 !important;
}

.catering-info-button-container .rz-splitbutton .rz-button {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    height: auto !important;
    min-height: 24px !important;
    line-height: normal !important;
}

.catering-info-button-container .rz-splitbutton .rz-button-icon-left,
.catering-info-button-container .rz-splitbutton .rz-button-icon-right {
    font-size: 0.9rem !important;
}

/* Radzen action buttons at the bottom of the card (e.g. Received Full Payment, Refund Deposit) */
.catering-schedule-card .rz-button {
    font-size: 0.8rem !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    height: auto !important;
    min-height: 28px !important;
    line-height: normal !important;
}

.catering-schedule-card .rz-button .rz-button-text {
    font-size: 0.8rem !important;
}

.catering-schedule-card .rz-button .rz-button-icon-left {
    font-size: 0.9rem !important;
}

/* ================================================
   CATERING CARD ENHANCEMENTS STYLING
   ================================================ */
.catering-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.catering-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.775rem !important;
}

.pill-delivery {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
}

.pill-pickup {
    background-color: #f3e8ff !important;
    color: #6b21a8 !important;
}

.pill-persons {
    background-color: #cfcfcf !important;
    color: #475569 !important;
}

.pill-spice-mild {
    background-color: #f0fdf4 !important;
    color: #15803d !important;
}

.pill-spice-medium {
    background-color: #fffbeb !important;
    color: #b45309 !important;
}

.pill-spice-spicy {
    background-color: #fef2f2 !important;
    color: #b91c1c !important;
}

.pill-oil {
    background-color: #fff7ed !important;
    color: #c2410c !important;
}

.catering-address-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 12px;
    color: #4b5563;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.catering-address-box i {
    color: var(--brand-primary, #fc7523);
    margin-top: 2px;
}

/* Billing Receipt Section */
.billing-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    font-size: 0.8rem !important;
}

.billing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #4b5563;
}

.billing-row.charge-item b {
    color: #1f2937;
}

.billing-row.advance-item {
    color: #16a34a;
    font-weight: 500;
}

.billing-row.advance-item b {
    color: #16a34a;
}

/* Highlighted Balance Callout */
.balance-callout {
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-weight: 700;
    font-size: 0.85rem !important;
}

.balance-zero {
    background-color: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #15803d !important;
}

.balance-due {
    background-color: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #b91c1c !important;
}

/* Card Metadata Footer */
.catering-card-footer {
    border-top: 1px solid #f3f4f6;
    padding-top: 12px;
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.775rem !important;
    color: #6b7280;
}

.meta-section {
    display: flex;
    flex-direction: column;
}

.meta-label {
    text-transform: uppercase;
    font-size: 0.675rem !important;
    font-weight: 700;
    color: #9ca3af;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.meta-value {
    color: #4b5563;
}

/* ================================================
   CATERING STATUS & PAYMENT PILLS STYLING
   ================================================ */
/* Catering Status Pills */
.pill-catering-notapproved {
    background-color: #e0f2fe !important;
    /* light blue */
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
}

.pill-catering-cancelled {
    background-color: #f3f4f6 !important;
    /* light grey */
    color: #9ca3af !important;
    text-decoration: line-through !important;
    border: 1px solid #e5e7eb !important;
}

.pill-catering-nofood {
    background-color: #fef2f2 !important;
    /* light red */
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
}

.pill-catering-approved {
    background-color: #f0fdf4 !important;
    /* light green */
    color: #15803d !important;
    border: 1px solid #bbf7d0 !important;
}

/* Payment Status Pills */
.pill-payment-none {
    background-color: #fef2f2 !important;
    /* light red */
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
}

.pill-payment-full {
    background-color: #f0fdf4 !important;
    /* light green */
    color: #15803d !important;
    border: 1px solid #bbf7d0 !important;
}

.pill-payment-partial {
    background-color: #fffbeb !important;
    /* light amber/yellow */
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
}

.pill-bulk {
    background-color: var(--brand-blue-light, #eef2fc) !important;
    color: var(--brand-blue, #1151ca) !important;
    border: 1px solid #c7d2fe !important;
}

/* Customer Contact Info Box inside Catering Schedule Card */
.customer-info-box {
    margin-bottom: 14px;
}

.customer-info-box .customer-name {
    font-weight: 700;
    font-size: 0.925rem !important;
    color: #1f2937;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.customer-info-box .customer-name i {
    color: var(--brand-primary, #fc7523);
}

.customer-info-box .customer-details-row {
    color: #4b5563;
    font-size: 0.8rem !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.customer-info-box .customer-address,
.customer-info-box .customer-phone {
    display: flex;
    align-items: center;
    gap: 6px;
}

.customer-info-box .customer-address i,
.customer-info-box .customer-phone i {
    color: #9ca3af;
    font-size: 0.75rem;
}

.customer-info-box .customer-phone a {
    color: #0f52ba;
    text-decoration: none;
    font-weight: 600;
}

.customer-info-box .customer-phone a:hover {
    text-decoration: underline;
}

/* ================================================
   GLOBAL RADZENDATAGRID COMPACT STYLING
   ================================================ */
.rz-datagrid {
    border: 1px solid var(--border-color, #e9ecef) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.rz-datagrid-header {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid var(--border-color, #e9ecef) !important;
}

.rz-column-title {
    font-weight: 600 !important;
    font-size: 0.825rem !important;
    color: var(--text-secondary, #6b7280) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rz-cell-data {
    font-size: 0.825rem !important;
    line-height: 1.4 !important;
}

/* Ensure inner text, spans, bold tags, and links inside grid cells inherit the cell font-size */
.rz-cell-data,
.rz-cell-data span:not(.day-chip),
.rz-cell-data b,
.rz-cell-data a {
    font-size: 0.825rem !important;
}