
.text-trim-25 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 25vw;
}

.text-trim-50 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 50vw;
}

.text-trim-60 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 50vw;
}

.text-trim-70 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70vw;
}

/* POS/Online payment stat cards - dashboard */
.pos-stat-cards-row {
    row-gap: 12px;
}

.pos-stat-card {
    border-radius: 10px;
    border: 1px solid rgba(16, 121, 128, 0.12);
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.05);
}

.pos-stat-card .card-body {
    padding: 18px 20px;
}

.pos-stat-card__title {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin: 0;
    line-height: 1.35;
}

.pos-stat-card__title i {
    margin-right: 4px;
    font-size: 14px;
    vertical-align: -1px;
}

.pos-stat-card__count {
    font-size: 28px;
    font-weight: 700;
    color: #334257;
    margin: 8px 0 10px;
    line-height: 1;
}

.pos-stat-card__trend {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.pos-stat-card__trend i {
    font-size: 13px;
}

.pos-stat-card__trend--up {
    color: #1a9c5c;
    background: rgba(26, 156, 92, 0.1);
}

.pos-stat-card__trend--down {
    color: #e6483f;
    background: rgba(230, 72, 63, 0.1);
}

.pos-stat-card__trend--flat {
    color: #8896a6;
    background: rgba(136, 150, 166, 0.1);
}

.pos-stat-card__sale {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    gap: 8px;
}

.pos-stat-card__sale-label {
    font-size: 12px;
    color: #8896a6;
    white-space: nowrap;
}

.pos-stat-card__sale-amount {
    font-size: 15px;
    font-weight: 700;
    color: #107980;
    text-align: right;
    word-break: break-word;
}

@media (max-width: 575px) {
    .pos-stat-card .card-body {
        padding: 16px;
    }

    .pos-stat-card__count {
        font-size: 24px;
    }
}

/* Statistics period filters (Sales Overview, Order statistics, Earning
   statistics). At the default 12px/15px the three periods need ~277px but only
   get ~261px on a 360px phone, so the last one dropped onto a second row. Give
   the group the full width of its row and let the three share it. */
@media (max-width: 575.98px) {
    .statistics-btn-grp {
        width: 100%;
        flex-wrap: nowrap !important;
        justify-content: space-between;
    }

    .statistics-btn-grp label {
        flex: 1 1 auto;
        min-width: 0;
    }

    .statistics-btn-grp label span {
        padding: 5px 6px;
        font-size: 11px;
        text-align: center;
        white-space: nowrap;
    }
}

/* Sales Overview custom date range. The two date columns carry a label above
   the input, so the action buttons need bottom-aligning to sit level with
   them; below 768px they wrap onto their own full-width row instead. */
.pos-stats-date-range .input-label {
    font-size: 12px;
    margin-bottom: 4px;
}

.pos-stats-date-range__actions {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.pos-stats-date-range__actions .btn {
    min-height: 40px;
    padding-top: 0;
    padding-bottom: 0;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .pos-stats-date-range__actions .btn {
        flex: 1 1 0;
    }
}

/* Login pages (Admin + Branch): a single centered sign-in card with the
   logo acting as a page header above it, instead of the two-column layout
   with a hero background image + "Your All Fresh Food..." copy. Scoped to
   .auth-wrapper--centered so the original .auth-wrapper-left/right rules in
   style.css are left untouched for anything else that reuses those classes. */
.auth-wrapper.auth-wrapper--centered {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.auth-wrapper--centered .auth-wrapper-right-logo {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 0 0 32px;
}

.auth-wrapper--centered .auth-wrapper-right-logo img {
    width: 100%;
    max-height: 70px;
    object-fit: contain;
    object-position: center center;
}

.auth-wrapper--centered .auth-wrapper-right {
    width: 100%;
    max-width: 452px;
    min-height: auto;
    background: transparent;
    padding: 0;
}

.auth-wrapper--centered .auth-wrapper-form {
    transform: none;
}

.auth-wrapper--centered .auth-header {
    text-align: center;
}

@media (max-width: 575.98px) {
    .auth-wrapper.auth-wrapper--centered {
        padding: 24px 16px;
    }
}

