* { box-sizing: border-box; }

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f3f5f7;
    color: #1f2937;
}

header {
    background: #12372a;
    color: white;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h2 { margin: 0; }
header a { color: white; margin-left: 14px; text-decoration: none; }

.center-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.login-card, .card, .edit-card {
    background: white;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 22px;
}

.login-card { width: 360px; }

input, select, button, textarea {
    width: 100%;
    padding: 12px;
    margin: 7px 0 14px;
    border-radius: 9px;
    border: 1px solid #cfd6dd;
    font-size: 15px;
    font-family: Arial, sans-serif;
}

textarea {
    min-height: 100px;
}

button {
    background: #1f7a4d;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

button:hover { opacity: .92; }

.toolbar {
    background: white;
    padding: 14px 20px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.toolbar form {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 10px;
}

.layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    padding: 20px;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 15px;
}

.product-card {
    background: white;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}

.product-card h3 {
    font-size: 15px;
    min-height: 40px;
}

.product-img, .image-box {
    width: 100%;
    height: 125px;
    object-fit: cover;
    border-radius: 11px;
    background: #e5e7eb;
}

.image-box {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.price { font-weight: bold; color: #0f5132; }
.stock { color: #166534; font-size: 13px; }
.muted { color: #6b7280; font-size: 13px; }

.cart {
    background: white;
    border-radius: 14px;
    padding: 16px;
    height: fit-content;
    position: sticky;
    top: 12px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}

.cart-row {
    padding: 9px 0;
    border-bottom: 1px solid #e5e7eb;
}

.cart-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-controls button {
    width: auto;
    padding: 5px 11px;
    margin: 5px 0;
}

.card { margin: 20px; overflow-x: auto; }
.edit-card { max-width: 650px; margin: 20px auto; }

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

.thumb {
    height: 45px;
    width: 55px;
    object-fit: cover;
    border-radius: 6px;
}

.preview {
    width: 180px;
    max-height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    margin: 10px 0;
}

.dashboard {
    display: flex;
    gap: 15px;
    padding: 20px;
    flex-wrap: wrap;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 14px;
    min-width: 180px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}

.stat-card h3 { font-size: 32px; margin: 0; color: #1f7a4d; }

.error { color: #b91c1c; margin: 10px 0; background: #fee2e2; padding: 10px; border-radius: 8px; }
.success { color: #166534; background: #dcfce7; padding: 10px; border-radius: 8px; margin-bottom: 12px; }

.btn-link {
    background: #1f7a4d;
    color: white;
    padding: 7px 10px;
    border-radius: 7px;
    text-decoration: none;
    display: inline-block;
    margin: 2px;
}

.danger-link {
    background: #b91c1c !important;
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.check input {
    width: auto;
    margin: 0;
}

.mrp {
    color: #6b7280;
    text-decoration: line-through;
    margin: 4px 0;
}

.discount {
    color: #b45309;
    font-weight: bold;
    margin: 4px 0;
}

.save {
    color: #15803d;
    font-weight: bold;
}

.cart-summary {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 10px;
    margin: 12px 0;
    line-height: 1.7;
}

.contact-box {
    margin-top: 18px;
    padding: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    color: #14532d;
    font-size: 14px;
    line-height: 1.6;
}

.register-box {
    text-align: center;
    margin-top: 18px;
    margin-bottom: 18px;
    clear: both;
}

.register-box .muted {
    display: block;
    margin-bottom: 8px;
}

.register-btn {
    display: inline-block;
}

.order-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.order-layout .card {
    margin-bottom: 0;
}

.pay-btn {
    display: block;
    text-align: center;
    background: #2563eb;
    color: white;
    padding: 13px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    margin: 12px 0;
}

.pay-btn:hover {
    opacity: .9;
}

hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 18px 0;
}

.inline-status-form {
    display: flex;
    gap: 6px;
    align-items: center;
    min-width: 260px;
}

.inline-status-form select {
    margin: 0;
    min-width: 160px;
}

.inline-status-form button {
    width: auto;
    margin: 0;
    padding: 9px 12px;
}

.status-pill {
    display: inline-block;
    padding: 6px 9px;
    background: #e0f2fe;
    color: #075985;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}

.progress-wrap {
    display: flex;
    gap: 8px;
    margin: 15px 0 22px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.progress-step {
    min-width: 110px;
    text-align: center;
    color: #6b7280;
}

.progress-step span {
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #d1d5db;
    color: #111827;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.progress-step.current span {
    background: #1f7a4d;
    color: white;
}

.progress-step.current small {
    color: #1f7a4d;
    font-weight: bold;
}

.progress-step small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

/* Update 009 - Clickable order progress */

.orders-table th,
.orders-table td {
    vertical-align: top;
}

.order-progress-row {
    display: flex;
    gap: 7px;
    align-items: stretch;
    overflow-x: auto;
    padding-bottom: 4px;
    min-width: 650px;
}

.progress-action-form {
    margin: 0;
    min-width: 92px;
}

.progress-action-btn {
    width: 100%;
    min-height: 64px;
    margin: 0;
    padding: 6px;
    border-radius: 10px;
    background: #e5e7eb;
    color: #111827;
    border: 1px solid #d1d5db;
    cursor: pointer;
    font-size: 12px;
}

.progress-action-btn span {
    display: inline-flex;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: white;
    color: #111827;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 4px;
}

.progress-action-btn small {
    display: block;
    line-height: 1.15;
}

.progress-action-btn.completed {
    background: #bbf7d0;
    color: #14532d;
    border-color: #86efac;
}

.progress-action-btn.current {
    background: #1f7a4d;
    color: white;
    border-color: #166534;
}

.progress-action-btn.current span {
    background: white;
    color: #166534;
}

.progress-action-btn.cancel-btn {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.progress-action-btn.cancel-btn.current {
    background: #b91c1c;
    color: white;
}

.progress-action-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 850px) {
    body {
        font-size: 15px;
    }

    header {
        display: block;
        padding: 12px 14px;
    }

    header h2 {
        margin-bottom: 8px;
    }

    header a {
        display: inline-block;
        margin: 4px 8px 4px 0;
    }

    .center-page {
        align-items: flex-start;
        padding-top: 20px;
    }

    .login-card {
        width: 100%;
        max-width: 390px;
        margin: 0 auto;
    }

    .edit-card {
        width: calc(100% - 24px);
        margin: 12px;
        padding: 16px;
    }

    .card {
        margin: 12px;
        padding: 14px;
    }

    .toolbar {
        padding: 12px;
    }

    .toolbar form {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    input, select, button, textarea {
        font-size: 16px;
    }

    .layout {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .cart {
        position: static;
        margin-top: 6px;
    }

    .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-card {
        padding: 10px;
    }

    .product-card h3 {
        font-size: 14px;
        min-height: auto;
    }

    .product-img, .image-box {
        height: 105px;
    }

    .dashboard {
        display: block;
        padding: 12px;
    }

    .stat-card {
        width: 100%;
        margin-bottom: 12px;
    }

    .order-layout {
        grid-template-columns: 1fr;
    }

    table {
        min-width: 720px;
    }

    .inline-status-form {
        min-width: 240px;
    }

    .progress-step {
        min-width: 95px;
    }

    .order-progress-row {
        min-width: 620px;
    }

    .progress-action-form {
        min-width: 86px;
    }

    .progress-action-btn {
        min-height: 60px;
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    .products {
        grid-template-columns: 1fr;
    }

    .product-img, .image-box {
        height: 150px;
    }

    .login-card h1 {
        font-size: 30px;
    }
}


.role-checks {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 14px;
}

.payment-qr {
    width: 220px;
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 8px;
    background: white;
}

.qr-box {
    text-align: center;
    background: #f9fafb;
    padding: 12px;
    border-radius: 12px;
    margin: 12px 0;
}


.payment-inline-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    min-width: 220px;
}

.payment-inline-form select,
.payment-inline-form input,
.payment-inline-form button {
    margin: 0;
    padding: 8px;
    font-size: 13px;
}

.payment-inline-form button {
    background: #2563eb;
}

.small-toggle-btn {
    width: auto;
    padding: 8px 12px;
    margin: 0;
}

.order-detail-row td {
    background: #f9fafb;
}

.expanded-order-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 18px;
    padding: 12px;
}

.inner-table {
    min-width: 500px;
}

@media (max-width: 850px) {
    .expanded-order-grid {
        grid-template-columns: 1fr;
    }
}


.payment-button-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 260px;
}

.payment-button-form {
    margin: 0;
}

.payment-action-btn {
    width: auto;
    margin: 0;
    padding: 8px 10px;
    background: #e5e7eb;
    color: #111827;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    font-size: 12px;
}

.payment-action-btn.current {
    background: #2563eb;
    color: white;
    border-color: #1d4ed8;
}

.utr-inline-form {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    min-width: 260px;
}

.utr-inline-form input {
    margin: 0;
    padding: 8px;
    font-size: 13px;
}

.utr-inline-form button {
    width: auto;
    margin: 0;
    padding: 8px 10px;
    background: #2563eb;
}

.order-progress-row {
    min-width: 760px;
}

.progress-action-form {
    min-width: 84px;
}

@media (max-width: 850px) {
    .utr-inline-form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .utr-inline-form button {
        width: 100%;
    }
}

/* Tripti v2.0 Order Control Centre */
.notice {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
}
.payment-button-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 280px;
}
.payment-button-form { margin: 0; }
.payment-action-btn {
    width: auto;
    margin: 0;
    padding: 8px 10px;
    background: #e5e7eb;
    color: #111827;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    font-size: 12px;
}
.payment-action-btn.current {
    background: #2563eb;
    color: white;
    border-color: #1d4ed8;
}
.payment-action-btn.disabled,
.progress-action-btn.disabled {
    opacity: .45;
    cursor: not-allowed;
}
.utr-inline-form {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    min-width: 280px;
}
.utr-inline-form input { margin: 0; padding: 8px; font-size: 13px; }
.utr-inline-form button { width: auto; margin: 0; padding: 8px 10px; background: #2563eb; }
.small-toggle-btn { width: auto; padding: 8px 12px; margin: 0; }
.order-detail-row td { background: #f9fafb; }
.expanded-order-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 18px;
    padding: 12px;
}
.inner-table { min-width: 520px; }
.amend-form, .add-item-form {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 6px;
    margin: 4px 0;
}
.amend-form input,
.add-item-form input,
.add-item-form select,
.amend-form button,
.add-item-form button { margin: 0; padding: 8px; font-size: 13px; }
.danger-button { background: #b91c1c !important; }
.audit-list { max-height: 280px; overflow-y: auto; }
.audit-entry {
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 0;
    font-size: 13px;
}
.audit-entry small { color: #6b7280; }
.order-progress-row { min-width: 760px; }
.progress-action-form { min-width: 84px; }
@media (max-width: 850px) {
    .expanded-order-grid { grid-template-columns: 1fr; }
    .amend-form, .add-item-form, .utr-inline-form { grid-template-columns: 1fr; display: grid; }
    .amend-form button, .add-item-form button, .utr-inline-form button { width: 100%; }
}

.out-of-stock-label {
    margin: 10px 0;
    font-weight: 800;
    color: #b91c1c;
    text-transform: uppercase;
}
.out-of-stock-btn,
.out-of-stock-btn:disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
    opacity: 1;
}


.registration-verification-alert {
    margin: 18px;
    padding: 18px;
    border: 1px solid #f59e0b;
    border-left: 6px solid #d97706;
    background: #fffbeb;
    border-radius: 12px;
}

.registration-verification-alert h3 {
    margin-top: 0;
    color: #92400e;
}

.dashboard-cards,
.customer-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    padding: 18px;
}

.dashboard-card,
.summary-box {
    display: block;
    background: #ffffff;
    color: #111827;
    text-decoration: none;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
}

.dashboard-card:hover,
.summary-box:hover {
    transform: translateY(-1px);
}

.dashboard-number,
.summary-box span {
    display: block;
    font-size: 30px;
    font-weight: 800;
    margin-top: 8px;
    color: #166534;
}

.summary-box span {
    font-size: 26px;
}

@media (max-width: 700px) {
    .registration-verification-alert {
        margin: 10px;
        padding: 14px;
    }

    .dashboard-cards,
    .customer-summary-grid {
        padding: 10px;
        grid-template-columns: 1fr 1fr;
    }
}


/* Tripti Final Release - New Order Alerts */
.tripti-alert-controls {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 9998;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.tripti-alert-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .18);
}
.tripti-alert-secondary { opacity: .92; }
.tripti-order-toast {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    width: min(380px, calc(100vw - 32px));
    padding: 16px 18px;
    border-radius: 14px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .25);
    border: 1px solid rgba(0, 0, 0, .08);
    transform: translateY(-140%);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
    cursor: pointer;
}
.tripti-order-toast.show { transform: translateY(0); opacity: 1; }
.tripti-toast-title { font-weight: 800; font-size: 1rem; margin-bottom: 5px; }
.tripti-toast-message { line-height: 1.4; }
.tripti-toast-hint { margin-top: 8px; font-size: .82rem; opacity: .7; }

@media (max-width: 640px) {
    .tripti-alert-controls { right: 10px; bottom: 10px; left: 10px; }
    .tripti-alert-button { flex: 1; min-width: 140px; }
    .tripti-order-toast {
        top: 10px;
        right: 10px;
        width: calc(100vw - 20px);
        box-sizing: border-box;
    }
}

/* Final v1.0.1 - Admin Product Table */
.product-table-wrap { overflow-x:auto; }
.admin-product-table { min-width:900px; }
.admin-product-table th,
.admin-product-table td { vertical-align:middle; }
.admin-product-thumb {
    width:64px;
    height:64px;
    object-fit:contain;
    display:block;
    border-radius:8px;
    background:#f3f4f6;
}


/* Tripti Final v1.0.2 - Independent Product and Cart Scrolling */
@media (min-width: 801px) {
    .layout {
        height: calc(100vh - 178px);
        min-height: 520px;
        overflow: hidden;
        align-items: stretch;
    }

    .products {
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        padding-bottom: 24px;
        overscroll-behavior: contain;
    }

    .shop-cart-panel {
        height: 100%;
        max-height: 100%;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        overflow: hidden;
        position: relative;
    }

    .shop-cart-title {
        flex: 0 0 auto;
        margin-top: 0;
    }

    .shop-cart-items {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 4px;
        overscroll-behavior: contain;
    }

    .shop-cart-footer {
        flex: 0 0 auto;
        background: #ffffff;
        padding-top: 10px;
        border-top: 1px solid #e5e7eb;
    }

    .place-order-btn {
        width: 100%;
        margin-top: 10px;
    }

    .shop-cart-items::-webkit-scrollbar,
    .products::-webkit-scrollbar {
        width: 8px;
    }

    .shop-cart-items::-webkit-scrollbar-thumb,
    .products::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 999px;
    }
}

/* Keep alert controls away from cart actions. */
.tripti-alert-controls {
    bottom: 18px;
    right: 18px;
}

@media (min-width: 801px) {
    .tripti-alert-controls {
        left: 18px;
        right: auto;
        bottom: 18px;
        justify-content: flex-start;
    }
}

/* Mobile stays as a normal single-page flow. */
@media (max-width: 800px) {
    .layout {
        height: auto;
        overflow: visible;
    }

    .products,
    .shop-cart-panel,
    .shop-cart-items {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .shop-cart-footer {
        position: static;
    }

    .tripti-alert-controls {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}


/* Tripti v1.0.5 - Compact operational alert bell */
.tripti-alert-controls {
    position: fixed;
    left: 14px !important;
    right: auto !important;
    bottom: 14px !important;
    z-index: 9998;
    display: block;
}

.tripti-alert-bell {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    background: #218653;
    color: #fff;
    box-shadow: 0 5px 16px rgba(0,0,0,.22);
}

.tripti-alert-menu {
    display: none;
    position: absolute;
    left: 0;
    bottom: 56px;
    width: 190px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    box-shadow: 0 10px 28px rgba(0,0,0,.24);
    border: 1px solid #e5e7eb;
}

.tripti-alert-menu.show { display: block; }
.tripti-alert-menu-title { font-weight: 800; margin-bottom: 9px; }

.tripti-alert-menu-action,
.tripti-alert-menu-close {
    width: 100%;
    margin: 4px 0;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.tripti-alert-menu-action {
    background: #218653;
    color: #fff;
}

.tripti-alert-menu-close {
    background: #e5e7eb;
    color: #111827;
}

@media (max-width: 800px) {
    .tripti-alert-controls {
        left: 10px !important;
        right: auto !important;
        bottom: 10px !important;
    }
}


/* Tripti v1.0.6 - Pre-approval order amendment */
.order-amend-table {
    min-width: 820px;
}

.order-amend-form {
    display: grid;
    grid-template-columns: minmax(90px, 110px) minmax(220px, 1fr);
    gap: 7px;
    min-width: 360px;
}

.order-amend-form button {
    margin: 0;
}

.danger-amend-btn {
    background: #b91c1c !important;
    color: #ffffff !important;
}

.danger-amend-btn:hover {
    background: #991b1b !important;
}

@media (max-width: 800px) {
    .order-amend-table {
        min-width: 760px;
    }

    .order-amend-form {
        grid-template-columns: 1fr;
        min-width: 210px;
    }
}


/* Tripti v1.0.7 - Visible order amendment entry points */
.order-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 110px;
}

.amend-order-link {
    display: inline-block;
    padding: 8px 11px;
    border-radius: 7px;
    background: #b45309;
    color: #ffffff !important;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.amend-order-link:hover {
    background: #92400e;
}

.expanded-amend-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid #f59e0b;
    border-radius: 10px;
    background: #fffbeb;
    color: #78350f;
}

@media (max-width: 800px) {
    .expanded-amend-banner {
        align-items: stretch;
        flex-direction: column;
    }
}


/* Tripti v1.0.8 - Final review, approve and return */
.final-review-actions {
    margin-top: 22px;
    padding: 18px;
    border: 2px solid #15803d;
    border-radius: 12px;
    background: #f0fdf4;
}

.final-review-actions h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #166534;
}

.final-review-button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.final-review-button-row form {
    margin: 0;
}

.approve-and-return-btn {
    min-width: 220px;
    padding: 12px 18px !important;
    border: 0;
    border-radius: 8px;
    background: #15803d !important;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.approve-and-return-btn:hover {
    background: #166534 !important;
}

.secondary-return-btn {
    display: inline-block;
    min-width: 190px;
    padding: 11px 16px;
    border: 1px solid #64748b;
    border-radius: 8px;
    background: #ffffff;
    color: #334155 !important;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
}

.secondary-return-btn:hover {
    background: #f8fafc;
}

@media (max-width: 650px) {
    .final-review-button-row {
        align-items: stretch;
        flex-direction: column;
    }

    .approve-and-return-btn,
    .secondary-return-btn {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
    }
}


/* Tripti v1.0.9.3 - Mobile cart drawer and quantity selection */
.shop-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mobile-cart-close,
.mobile-cart-bar,
.mobile-cart-overlay {
    display: none;
}

.quantity-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.58);
}

.quantity-dialog-backdrop.open {
    display: flex;
}

.quantity-dialog {
    position: relative;
    box-sizing: border-box;
    width: min(390px, 100%);
    padding: 22px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.28);
}

.quantity-dialog h3 {
    margin: 0 35px 6px 0;
}

.quantity-dialog-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eef2f7;
    color: #111827;
    font-size: 25px;
    line-height: 1;
}

.quantity-stepper {
    display: grid;
    grid-template-columns: 52px minmax(90px, 1fr) 52px;
    gap: 8px;
    margin: 18px 0 8px;
}

.quantity-stepper button,
.quantity-stepper input {
    box-sizing: border-box;
    height: 48px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 20px;
    text-align: center;
}

.quantity-stepper button {
    padding: 0;
    background: #eef2f7;
    color: #111827;
    font-weight: 800;
}

.quantity-stepper input {
    width: 100%;
    background: #ffffff;
    font-weight: 800;
}

.quantity-stock-note {
    margin: 6px 0 0;
    text-align: center;
}

.quantity-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
    margin-top: 20px;
}

.quantity-dialog-actions button {
    min-height: 44px;
    border: 0;
    border-radius: 9px;
    font-weight: 800;
}

.quantity-cancel-btn {
    background: #e5e7eb;
    color: #111827;
}

.quantity-confirm-btn {
    background: #15803d;
    color: #ffffff;
}

body.quantity-dialog-open,
body.mobile-cart-is-open {
    overflow: hidden;
}

@media (max-width: 800px) {
    body {
        padding-bottom: 84px;
    }

    .layout {
        display: block;
    }

    .shop-cart-panel {
        position: fixed !important;
        z-index: 2100;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto !important;
        box-sizing: border-box;
        width: 100% !important;
        max-width: none !important;
        max-height: min(82vh, 720px);
        margin: 0 !important;
        padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
        overflow: hidden;
        border-radius: 18px 18px 0 0;
        background: #ffffff;
        box-shadow: 0 -12px 35px rgba(15, 23, 42, 0.28);
        transform: translateY(110%);
        transition: transform 0.24s ease;
    }

    .shop-cart-panel.mobile-cart-open {
        transform: translateY(0);
    }

    .shop-cart-header {
        flex: 0 0 auto;
        margin-bottom: 8px;
    }

    .mobile-cart-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #eef2f7;
        color: #111827;
        font-size: 26px;
        line-height: 1;
    }

    .shop-cart-items {
        max-height: calc(82vh - 230px) !important;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .shop-cart-footer {
        flex: 0 0 auto;
        padding-top: 10px;
        background: #ffffff;
    }

    .mobile-cart-overlay {
        position: fixed;
        z-index: 2050;
        inset: 0;
        display: block;
        visibility: hidden;
        background: rgba(15, 23, 42, 0.5);
        opacity: 0;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .mobile-cart-overlay.open {
        visibility: visible;
        opacity: 1;
    }

    .mobile-cart-bar {
        position: fixed;
        z-index: 2000;
        left: 12px;
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        box-sizing: border-box;
        display: none;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 10px;
        width: calc(100% - 24px);
        min-height: 60px;
        padding: 9px 14px;
        border: 0;
        border-radius: 14px;
        background: #15803d;
        color: #ffffff;
        box-shadow: 0 9px 28px rgba(15, 23, 42, 0.3);
        text-align: left;
    }

    .mobile-cart-bar.visible {
        display: grid;
    }

    .mobile-cart-icon {
        font-size: 25px;
    }

    .mobile-cart-bar strong,
    .mobile-cart-bar small {
        display: block;
    }

    .mobile-cart-bar small {
        margin-top: 1px;
        opacity: 0.88;
    }

    .mobile-cart-amount {
        font-size: 18px;
        font-weight: 800;
        white-space: nowrap;
    }

    .place-order-btn {
        width: 100%;
        min-height: 48px;
    }
}

/* Tripti v1.0.9.4 - cart performance, restored mobile drawer, Kg decimals */
.empty-cart-message {
    margin: 14px 0;
    text-align: center;
}

.mobile-cart-bar[hidden] {
    display: none !important;
}

@media (max-width: 800px) {
    .shop-cart-panel {
        display: flex !important;
        flex-direction: column;
        visibility: visible !important;
        will-change: transform;
    }

    .mobile-cart-bar:not([hidden]) {
        display: grid !important;
        visibility: visible !important;
    }

    .shop-cart-items {
        flex: 1 1 auto;
        min-height: 0;
    }
}


/* Tripti v1.0.9.5 - authoritative mobile and tablet cart display */
@media (max-width: 1024px) {
    body {
        padding-bottom: calc(88px + env(safe-area-inset-bottom)) !important;
    }

    .layout {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .products {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .shop-cart-panel {
        position: fixed !important;
        z-index: 10002 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        visibility: visible !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        max-height: min(88vh, 760px) !important;
        margin: 0 !important;
        padding: 16px 16px calc(16px + env(safe-area-inset-bottom)) !important;
        overflow: hidden !important;
        border-radius: 20px 20px 0 0 !important;
        background: #ffffff !important;
        box-shadow: 0 -12px 35px rgba(15, 23, 42, 0.30) !important;
        transform: translate3d(0, 110%, 0) !important;
        transition: transform 0.24s ease !important;
        will-change: transform;
    }

    .shop-cart-panel.mobile-cart-open {
        transform: translate3d(0, 0, 0) !important;
    }

    .shop-cart-items {
        flex: 1 1 auto !important;
        min-height: 100px !important;
        max-height: calc(88vh - 240px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .shop-cart-footer {
        flex: 0 0 auto !important;
        position: static !important;
        background: #ffffff !important;
    }

    .mobile-cart-overlay {
        position: fixed !important;
        z-index: 10001 !important;
        inset: 0 !important;
        display: block !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        background: rgba(15, 23, 42, 0.52) !important;
        transition: opacity 0.2s ease, visibility 0.2s ease !important;
    }

    .mobile-cart-overlay.open {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .mobile-cart-bar,
    .mobile-cart-bar[hidden],
    .mobile-cart-bar:not([hidden]) {
        position: fixed !important;
        z-index: 10000 !important;
        left: 12px !important;
        right: 12px !important;
        bottom: calc(10px + env(safe-area-inset-bottom)) !important;
        display: grid !important;
        visibility: visible !important;
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 10px !important;
        box-sizing: border-box !important;
        width: auto !important;
        min-height: 62px !important;
        margin: 0 !important;
        padding: 9px 14px !important;
        border: 0 !important;
        border-radius: 14px !important;
        background: #166534 !important;
        color: #ffffff !important;
        box-shadow: 0 9px 28px rgba(15, 23, 42, 0.34) !important;
        text-align: left !important;
        cursor: pointer !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .mobile-cart-bar:not(.has-items) {
        background: #475569 !important;
    }

    .mobile-cart-close {
        display: inline-flex !important;
    }
}

@media (min-width: 1025px) {
    .mobile-cart-bar,
    .mobile-cart-overlay,
    .mobile-cart-close {
        display: none !important;
    }
}

/* ========================================================================== */
/* Tripti v2.1 — clean, unified customer shop                                 */
/* All shop rules are namespaced to prevent conflicts with legacy pages.      */
/* ========================================================================== */

.tshop,
.tshop * { box-sizing: border-box; }

.tshop {
    min-height: 100vh;
    padding-bottom: 96px;
    background: #f4f6f5;
    color: #17211c;
}

.tshop button,
.tshop input,
.tshop select { font-family: Arial, sans-serif; }

.tshop__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 70px;
    padding: 12px clamp(14px, 3vw, 32px);
    background: #12372a;
    color: #fff;
}

.tshop__brand h1 { margin: 0; font-size: clamp(24px, 4vw, 32px); line-height: 1; }
.tshop__brand p { margin: 6px 0 0; font-size: 13px; opacity: .84; }
.tshop__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
.tshop__nav a { margin: 0; color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; }
.tshop__notice { margin: 12px clamp(12px, 3vw, 28px) 0; }

.tshop__filters {
    position: sticky;
    z-index: 30;
    top: 0;
    padding: 10px clamp(10px, 2.5vw, 24px);
    border-bottom: 1px solid #dfe6e2;
    background: rgba(255,255,255,.96);
    box-shadow: 0 4px 14px rgba(18,55,42,.06);
    backdrop-filter: blur(8px);
}

.tshop__filter-form {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(150px, .7fr) auto;
    gap: 8px;
    max-width: 1500px;
    margin: 0 auto;
}

.tshop__search { position: relative; display: block; }
.tshop__search > span { position: absolute; top: 50%; left: 13px; z-index: 1; transform: translateY(-50%); color: #64748b; font-size: 22px; }
.tshop__filter-form input,
.tshop__filter-form select,
.tshop__filter-form button {
    width: 100%;
    min-height: 44px;
    margin: 0;
    border-radius: 11px;
    font-size: 15px;
}
.tshop__filter-form input { padding-left: 39px; background: #f8faf9; }
.tshop__filter-form button { width: auto; min-width: 94px; padding: 10px 18px; background: #1d7d4e; }

.tshop__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 12px;
}

.tproduct {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e4e9e6;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(18,55,42,.07);
    transition: transform .15s ease, box-shadow .15s ease;
}

.tproduct:hover { transform: translateY(-2px); box-shadow: 0 9px 24px rgba(18,55,42,.11); }
.tproduct__media { position: relative; aspect-ratio: 1 / .82; overflow: hidden; background: #f0f3f1; }
.tproduct__media img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.tproduct__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #829087; font-size: 12px; }
.tproduct__soldout,
.tproduct__low { position: absolute; top: 8px; left: 8px; padding: 5px 8px; border-radius: 999px; color: #fff; font-size: 10px; font-weight: 800; }
.tproduct__soldout { background: rgba(75,85,99,.92); }
.tproduct__low { background: rgba(180,83,9,.92); }

.tproduct__body { display: flex; flex-direction: column; min-height: 178px; padding: 10px; }
.tproduct__body h2 { display: -webkit-box; min-height: 36px; margin: 0; overflow: hidden; color: #17211c; font-size: 14px; line-height: 1.28; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.tproduct__code { margin: 4px 0 7px; overflow: hidden; color: #839087; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.tproduct__pricing { display: flex; align-items: baseline; gap: 3px; }
.tproduct__price { color: #145d3a; font-size: 17px; font-weight: 800; }
.tproduct__unit { color: #68766e; font-size: 11px; }
.tproduct__mrp,
.tproduct__availability { min-height: 16px; margin: 3px 0 8px; color: #7b8780; font-size: 10px; }
.tproduct__mrp { text-decoration: line-through; }
.tproduct__cart { margin-top: auto; }

.tproduct__add,
.tproduct__disabled,
.tproduct__stepper {
    width: 100%;
    height: 40px;
    margin: 0;
    border-radius: 10px;
}
.tproduct__add { padding: 0; background: #1d7d4e; color: #fff; font-size: 14px; font-weight: 800; }
.tproduct__disabled { padding: 0; background: #d8dde0 !important; color: #687384 !important; cursor: not-allowed; opacity: 1 !important; }
.tproduct__stepper { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; overflow: hidden; border: 1px solid #1d7d4e; background: #edf8f2; }
.tproduct__stepper[hidden] { display: none !important; }
.tproduct__stepper button { width: 42px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 0; background: #1d7d4e; color: #fff; font-size: 20px; }
.tproduct__qty { display: grid; place-items: center; min-width: 0; color: #145d3a; font-size: 13px; font-weight: 800; white-space: nowrap; }
.tshop__empty { margin: 50px 18px; text-align: center; color: #68766e; }
.tshop__empty strong { color: #27372e; font-size: 18px; }

.tcart-fab {
    position: fixed;
    z-index: 1800;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 9px;
    width: auto;
    min-width: 118px;
    height: 58px;
    margin: 0;
    padding: 8px 14px 8px 11px;
    border: 0;
    border-radius: 999px;
    background: #33453b;
    color: #fff;
    box-shadow: 0 12px 30px rgba(15,23,42,.28);
}
.tcart-fab--active { background: #166b43; }
.tcart-fab__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.14); font-size: 20px; }
.tcart-fab__text { display: block; text-align: left; line-height: 1.1; }
.tcart-fab__text strong,
.tcart-fab__text small { display: block; }
.tcart-fab__text strong { font-size: 12px; }
.tcart-fab__text small { margin-top: 4px; color: #d8f3e5; font-size: 14px; font-weight: 800; }

.tcart-overlay { position: fixed; z-index: 1900; inset: 0; visibility: hidden; background: rgba(11,24,17,.62); opacity: 0; pointer-events: none; transition: .18s ease; }
.tcart-overlay--open { visibility: visible; opacity: 1; pointer-events: auto; }
.tcart-modal {
    position: fixed;
    z-index: 1910;
    top: 50%;
    left: 50%;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    width: min(540px, calc(100vw - 24px));
    max-height: min(86vh, 760px);
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 25px 80px rgba(0,0,0,.34);
    opacity: 0;
    transform: translate(-50%, -47%) scale(.98);
    pointer-events: none;
    transition: .18s ease;
}
.tcart-modal--open { visibility: visible; opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.tcart-modal__header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 18px; border-bottom: 1px solid #e5ebe7; background: #f8fbf9; }
.tcart-modal__header h2 { margin: 0; color: #183629; font-size: 21px; }
.tcart-modal__header p { margin: 4px 0 0; color: #718078; font-size: 11px; }
.tcart-modal__close { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; margin: 0; padding: 0; border-radius: 50%; background: #e8eeea; color: #26372e; font-size: 25px; }
.tcart-modal__items { flex: 1 1 auto; min-height: 120px; overflow-y: auto; padding: 4px 18px; overscroll-behavior: contain; }
.tcart-item { padding: 13px 0; border-bottom: 1px solid #e7ece9; }
.tcart-item__info { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tcart-item__info strong { color: #24352c; font-size: 14px; }
.tcart-item__info small { flex: 0 0 auto; color: #728077; font-size: 11px; }
.tcart-item__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.tcart-stepper { display: grid; grid-template-columns: 34px minmax(74px, auto) 34px; align-items: center; overflow: hidden; border: 1px solid #1d7d4e; border-radius: 9px; }
.tcart-stepper button { width: 34px; height: 32px; margin: 0; padding: 0; border-radius: 0; background: #1d7d4e; font-size: 18px; }
.tcart-stepper span { padding: 0 7px; color: #145d3a; font-size: 12px; font-weight: 800; text-align: center; white-space: nowrap; }
.tcart-modal__footer { flex: 0 0 auto; padding: 13px 18px 16px; border-top: 1px solid #e4ebe7; background: #fff; }
.tcart-summary { margin: 0 0 11px; padding: 11px 13px; border: 1px solid #dce9e1; border-radius: 12px; background: #f3faf6; }
.tcart-summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 13px; }
.tcart-summary__save { color: #157348; }
.tcart-place { width: 100%; min-height: 48px; margin: 0; border-radius: 11px; background: #1d7d4e; font-size: 15px; }
.tcart-place:disabled { cursor: wait; opacity: .7; }
.tcart-message { min-height: 18px; margin-top: 8px; color: #53635a; font-size: 12px; text-align: center; }
.tcart-message--error { color: #b42318; }
.tcart-message--success { color: #137044; }
.tcart-empty { display: grid; place-items: center; min-height: 210px; padding: 30px; color: #718078; text-align: center; }
.tcart-empty span { font-size: 35px; }
.tcart-empty strong { margin-top: 9px; color: #304138; }
.tcart-empty p { margin: 5px 0 0; font-size: 12px; }
body.tcart-open { overflow: hidden; }

@media (min-width: 520px) {
    .tshop__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}

@media (min-width: 860px) {
    .tshop__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; padding: 18px 22px; }
    .tproduct__body { min-height: 190px; padding: 12px; }
    .tproduct__body h2 { font-size: 15px; }
}

@media (min-width: 1180px) {
    .tshop__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 1450px) {
    .tshop__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .tshop__header { align-items: flex-start; min-height: 64px; padding: 10px 12px; }
    .tshop__brand h1 { font-size: 24px; }
    .tshop__brand p { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .tshop__nav { max-width: 170px; gap: 6px 10px; }
    .tshop__nav a { font-size: 11px; }
    .tshop__filters { padding: 8px; }
    .tshop__filter-form { grid-template-columns: minmax(0, 1.35fr) minmax(120px, .8fr); gap: 6px; }
    .tshop__filter-form button { grid-column: 1 / -1; width: 100%; min-height: 38px; padding: 7px; }
    .tshop__filter-form input,
    .tshop__filter-form select { min-height: 41px; font-size: 13px; }
    .tshop__grid { gap: 8px; padding: 8px; }
    .tproduct { border-radius: 13px; }
    .tproduct__body { min-height: 170px; padding: 8px; }
    .tproduct__body h2 { min-height: 34px; font-size: 12px; }
    .tproduct__price { font-size: 15px; }
    .tproduct__unit { font-size: 9px; }
    .tproduct__add,
    .tproduct__disabled,
    .tproduct__stepper { height: 37px; }
    .tproduct__stepper button { height: 37px; }
    .tproduct__qty { font-size: 11px; }
    .tcart-fab { right: 12px; bottom: 12px; min-width: 108px; height: 54px; padding: 7px 12px 7px 9px; }
    .tcart-fab__icon { width: 35px; height: 35px; }
    .tcart-modal { top: auto; bottom: 0; left: 0; width: 100%; max-height: 91vh; border-radius: 20px 20px 0 0; transform: translateY(104%); }
    .tcart-modal--open { transform: translateY(0); }
    .tcart-modal__items { padding: 4px 14px; }
    .tcart-modal__header,
    .tcart-modal__footer { padding-left: 14px; padding-right: 14px; }
}

@media (max-width: 360px) {
    .tshop__grid { gap: 6px; padding: 6px; }
    .tproduct__body { min-height: 163px; padding: 7px; }
    .tproduct__stepper { grid-template-columns: 35px minmax(0,1fr) 35px; }
    .tproduct__stepper button { width: 35px; }
}

/* v2.4.0 lightweight customer lifecycle */
.customer-badge{display:inline-block;padding:5px 9px;border-radius:999px;font-weight:bold;font-size:12px;background:#e5e7eb}
.customer-badge.active{background:#dcfce7;color:#166534}.customer-badge.inactive{background:#fef3c7;color:#92400e}.customer-badge.pending{background:#dbeafe;color:#1d4ed8}.customer-badge.rejected{background:#fee2e2;color:#991b1b}
.customer-actions form{margin:4px 0}.customer-actions input{max-width:115px;padding:7px;margin:3px 0}.small-action{width:auto;padding:7px 10px;margin:0}

/* Tripti application credit */
.footer-credit {
    width: 100%;
    margin: 30px auto 12px;
    text-align: center;

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

    color: #9ca3af;
    opacity: .55;

    letter-spacing: .2px;
    line-height: 1.4;

    user-select: none;
}

/* Tripti v2.5 registration, building and notification settings */
.settings-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.8fr);gap:20px;padding:20px;align-items:start}.settings-grid .edit-card{margin:0;max-width:none}.building-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:start;padding:10px 0;border-bottom:1px solid #e5e7eb}.building-row form{margin:0}.building-edit-form{display:grid;grid-template-columns:1fr auto;gap:8px}.building-row input,.building-row button{margin:0}.notification-preview{display:block;width:100%;margin:8px 0 14px}.tripti-toast-message{white-space:normal}.registration-verification-alert{margin:20px;background:#fff7ed;border:1px solid #fdba74;color:#9a3412;padding:16px;border-radius:12px}.registration-verification-alert h3{margin-top:0}
@media(max-width:850px){.settings-grid{grid-template-columns:1fr;padding:12px}.building-row{grid-template-columns:1fr}.building-edit-form{grid-template-columns:1fr}.building-row button{width:100%}}

/* ==========================================================
   TRIPTI v2.8.8 - ADMIN ORDERS RESPONSIVE HOTFIX
   True mobile cards + scrollable controls + desktop actions
   ========================================================== */
.orders-page-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 20px;background:#0c3f2f;color:#fff}.orders-page-header h2{margin:0}.orders-page-header nav{display:flex;gap:20px}.orders-page-header a{color:#fff;text-decoration:none}.orders-wa-banner,.orders-page-message{margin:14px 20px}.orders-filter-toolbar{padding:14px 20px}.orders-filter-toolbar form{display:grid;grid-template-columns:minmax(260px,1.5fr) 180px 180px 200px 200px 120px;gap:10px;align-items:center}.orders-filter-toolbar input,.orders-filter-toolbar select,.orders-filter-toolbar button{height:44px;margin:0;min-width:0}.admin-orders-mobile{display:none}.admin-orders-desktop{margin:18px 20px;overflow:hidden}.admin-orders-table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}.admin-orders-table{width:100%;min-width:1180px;border-collapse:collapse;table-layout:fixed}.admin-orders-table th,.admin-orders-table td{padding:11px 10px;vertical-align:top;border-bottom:1px solid #e3e8e4}.admin-orders-table th:nth-child(1){width:125px}.admin-orders-table th:nth-child(2){width:140px}.admin-orders-table th:nth-child(3){width:130px}.admin-orders-table th:nth-child(4){width:300px}.admin-orders-table th:nth-child(5){width:360px}.admin-orders-table th:nth-child(6){width:145px}.admin-orders-table td small{display:block;color:#67736c;margin-top:3px}.desktop-order-amount{display:block;font-size:17px;color:#075f37}.desktop-control-scroll{display:flex;gap:7px;overflow-x:auto;padding-bottom:6px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}.desktop-control-scroll>*{flex:0 0 auto}.desktop-utr-form{display:grid;grid-template-columns:minmax(120px,1fr) auto;gap:6px}.desktop-utr-form input,.desktop-utr-form button{height:38px;margin:0}.desktop-order-actions{display:grid;gap:7px;min-width:118px}.desktop-order-actions .small-toggle-btn,.desktop-order-actions .amend-order-link{display:flex;align-items:center;justify-content:center;min-height:38px;margin:0;border-radius:7px;text-align:center;text-decoration:none;font-weight:700}.desktop-order-actions .amend-order-link{background:#c45d00;color:#fff}.admin-order-detail-row td{background:#f7f9f7;padding:16px}.improved-expanded-grid{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(430px,1.6fr) minmax(220px,.7fr);gap:14px}.improved-expanded-grid>section{background:#fff;border:1px solid #e2e8e3;border-radius:11px;padding:14px}.detail-table-scroll{overflow-x:auto}.order-warning-chip,.order-cancel-chip{display:block;width:max-content;max-width:100%;margin-top:6px;padding:4px 7px;border-radius:999px;font-size:11px}.order-warning-chip{background:#fff3d6;color:#8a5800}.order-cancel-chip{background:#ffe7e7;color:#a11c1c}.cancel-summary-banner,.cancel-request-banner{display:grid;gap:3px;margin:0 0 12px;padding:10px 12px;border-radius:9px;font-size:12px}.cancel-summary-banner{background:#fff0f0;border:1px solid #efbcbc;color:#951e1e}.cancel-request-banner{background:#fff7df;border:1px solid #efcf78;color:#7c5500}.admin-order-row.is-cancelled{background:#fffafa}.admin-order-row.has-cancel-request{background:#fffdf5}.last-updated-line{display:block;margin-top:4px;color:#68736c}

@media(max-width:767px){
  html,body{max-width:100%;overflow-x:hidden}.admin-orders-desktop{display:none!important}.admin-orders-mobile{display:block;padding:10px 12px 20px}.orders-page-header{display:block;padding:16px 20px}.orders-page-header nav{margin-top:12px}.orders-wa-banner,.orders-page-message{margin:12px 16px}.orders-filter-toolbar{padding:12px 16px}.orders-filter-toolbar form{grid-template-columns:1fr 1fr;gap:9px}.orders-filter-toolbar input[name="q"]{grid-column:1/-1}.orders-filter-toolbar button{grid-column:1/-1}.orders-filter-toolbar input,.orders-filter-toolbar select,.orders-filter-toolbar button{height:48px;font-size:14px}.admin-mobile-order-card{background:#fff;border:1px solid #dfe6e1;border-radius:14px;margin-bottom:13px;overflow:hidden;box-shadow:0 3px 12px rgba(20,54,36,.06)}.admin-mobile-order-card.is-cancelled{border-left:5px solid #c93737}.admin-mobile-order-card.has-cancel-request{border-left:5px solid #d78a00}.mobile-order-topline{display:flex;justify-content:space-between;gap:12px;padding:14px 14px 10px}.mobile-order-topline>div:first-child{min-width:0}.mobile-order-topline b{font-size:17px}.mobile-order-topline small{display:block;margin-top:3px;color:#68736c;font-size:11px}.mobile-amount{text-align:right;flex:0 0 auto}.mobile-amount>span{display:block;font-size:10px;text-transform:uppercase;color:#68736c;font-weight:800}.mobile-amount strong{display:block;font-size:20px;color:#075f37;margin-top:2px}.mobile-customer-row{display:flex;justify-content:space-between;gap:10px;padding:0 14px 12px;border-bottom:1px solid #ebefec}.mobile-customer-row b{min-width:0;overflow-wrap:anywhere}.mobile-customer-row span{font-size:12px;color:#5f6c64;white-space:nowrap}.admin-mobile-order-card>.cancel-summary-banner,.admin-mobile-order-card>.cancel-request-banner{margin:10px 14px 0}.mobile-control-section{padding:12px 14px;border-bottom:1px solid #edf0ee;min-width:0}.mobile-section-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:9px}.mobile-section-heading span{font-size:12px;font-weight:800;text-transform:uppercase;color:#2d3831}.mobile-section-heading small{font-size:10px;color:#7a857e;white-space:nowrap}.mobile-horizontal-scroll{display:flex!important;gap:8px;overflow-x:auto!important;overflow-y:hidden;max-width:100%;padding:1px 1px 8px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;touch-action:pan-x}.mobile-horizontal-scroll::-webkit-scrollbar{height:5px}.mobile-horizontal-scroll::-webkit-scrollbar-thumb{background:#afb8b2;border-radius:999px}.mobile-horizontal-scroll form{flex:0 0 auto!important;margin:0}.mobile-horizontal-scroll .payment-action-btn{flex:0 0 auto;min-width:max-content;height:42px;margin:0;padding:0 13px;white-space:nowrap;font-size:11px}.mobile-horizontal-scroll .progress-action-btn{flex:0 0 102px;width:102px;min-height:82px;margin:0;padding:8px 5px;scroll-snap-align:start}.mobile-horizontal-scroll .progress-action-btn span{width:30px;height:30px;font-size:13px}.mobile-horizontal-scroll .progress-action-btn small{font-size:10px;line-height:1.1}.mobile-utr-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:6px}.mobile-utr-form input,.mobile-utr-form button{height:43px;margin:0;min-width:0}.mobile-utr-form button{padding:0 13px;white-space:nowrap}.mobile-order-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 14px}.mobile-order-actions button,.mobile-order-actions .amend-order-link{display:flex;align-items:center;justify-content:center;min-height:44px;margin:0;border-radius:8px;text-align:center;text-decoration:none;font-weight:800}.mobile-order-actions .amend-order-link{background:#c45d00;color:#fff}.mobile-expanded-details[hidden]{display:none!important}.mobile-expanded-details{padding:12px 14px 15px;background:#f7f9f7;border-top:1px solid #e1e7e2}.mobile-expanded-details>section{background:#fff;border:1px solid #e1e7e2;border-radius:10px;padding:11px;margin-top:10px}.mobile-expanded-details>section:first-child{margin-top:0}.mobile-expanded-details h3{margin:0 0 9px;font-size:14px}.mobile-expanded-details p{font-size:12px;margin:6px 0}.mobile-item-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:9px 0;border-bottom:1px solid #edf0ee}.mobile-item-line>div{min-width:0}.mobile-item-line b{display:block;font-size:12px;line-height:1.3;overflow-wrap:anywhere}.mobile-item-line small{display:block;color:#68736c;margin-top:3px;font-size:11px}.mobile-item-line>strong{font-size:12px}.mobile-bill-summary{margin-top:10px;border:1px solid #dfe6e1;border-radius:9px;overflow:hidden}.mobile-bill-summary>div{display:flex;justify-content:space-between;padding:8px 10px;border-bottom:1px solid #edf0ee;font-size:12px}.mobile-bill-summary>div:last-child{border-bottom:0}.mobile-bill-summary .final{background:#e9f7ef;color:#075f37;font-size:14px}.payment-button-form,.progress-action-form{min-width:0!important}
}

@media(max-width:380px){.orders-filter-toolbar form{grid-template-columns:1fr}.orders-filter-toolbar input[name="q"],.orders-filter-toolbar button{grid-column:auto}.mobile-order-topline{padding-left:11px;padding-right:11px}.mobile-amount strong{font-size:18px}.mobile-customer-row{display:block}.mobile-customer-row span{display:block;margin-top:4px}.mobile-order-actions{grid-template-columns:1fr}.mobile-horizontal-scroll .progress-action-btn{flex-basis:94px;width:94px}.mobile-section-heading{align-items:flex-start}.mobile-section-heading small{white-space:normal;text-align:right}}
