:root {
    /* Theme: Light Mode (Red, Black, Grey, White) */
    --primary: #dc2626;
    /* Red-600 */
    --primary-dark: #b91c1c;
    /* Red-700 */
    --secondary: #4b5563;
    /* Grey-600 */
    --bg-dark: #f8fafc;
    /* Very Light Grey/White */
    --text-main: #111827;
    /* Very Dark Grey/Black */
    --text-muted: #6b7280;
    /* Grey-500 */
    --glass-bg: rgba(255, 255, 255, 0.85);
    /* Light glass */
    --glass-border: rgba(0, 0, 0, 0.1);
    --input-bg: rgba(255, 255, 255, 0.9);
    --card-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-dark);
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--text-main);
    -webkit-tap-highlight-color: transparent;
}

/* Animated Background */
.background-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, rgba(220, 38, 38, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(75, 85, 99, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, #f8fafc 0%, transparent 100%);
    animation: pulseBg 10s ease-in-out infinite alternate;
}

@keyframes pulseBg {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Glassmorphism Card */
.container {
    padding: 20px;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.8s ease-out;
    box-sizing: border-box;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Wide variant for dashboard/orders view */
.login-card.wide {
    max-width: 1300px;
    width: 95%;
    overflow: visible;
    text-align: left;
    margin: 20px auto;
}

/* Typography */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.logo img {
    height: 40px;
    width: auto;
}

.logo h2 {
    font-size: 1.6rem;
    /* Reduced from 2rem to fit one line */
    font-weight: 600;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

/* Input Fields */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group input {
    width: 100%;
    padding: 14px 45px 14px 16px;
    /* Right padding for icon */
    background: var(--input-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus,
.input-group input:not(:placeholder-shown) {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.input-group label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    background: transparent;
    padding: 0 4px;
}

/* Floating Label Logic:
   When input is focused OR has content (placeholder shown check is a trick), move label up */
.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    background: var(--bg-dark);
    /* Mask line behind it if needed, or transparent if opaque enough */
    color: var(--primary);
    left: 12px;
}

.input-group select {
    width: 100%;
    padding: 14px 45px 14px 16px;
    background: var(--input-bg);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    /* Hide default arrow to style if needed, but standard is okay for now */
    cursor: pointer;
}

.input-group select option {
    background: var(--bg-dark);
    /* Ensure options are readable */
}

.input-group select:focus,
.input-group select:valid {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

/* Floating Label for Select */
.input-group select:focus~label,
.input-group select:valid~label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    background: var(--bg-dark);
    color: var(--primary);
    left: 12px;
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.input-group input:focus~.input-icon {
    color: var(--primary);
}

.toggle-password {
    cursor: pointer;
    right: 50px;
    /* Adjust based on icon size/padding */
    pointer-events: auto;
}

/* Adjust toggle position since we have two icons in password field? 
   No, let's put the lock on the left for variety or just keep structure simple.
   Let's keep the structure: input, label, icon(right).
   Wait, if we have an eye AND a lock, we need safe spacing. 
*/
.input-group .toggle-password {
    right: 16px;
    z-index: 10;
}

.input-group .input-icon {
    /* If we strictly want an icon on the right, we might conflict. 
       Let's put the semantic icon (user/lock) on the LEFT for a change?
       No, standard is right for cleanup/eye.
       Let's effectively make the 'input-icon' be the semantic one on the FAR right,
       and if it's password, the eye replaces it or sits next to it.
       Let's simplify: User ID has user icon on right. Password has Eye on right.
       Lock icon can be removed or placed on left.
       Let's update CSS to place specific icons correctly.
    */
    pointer-events: none;
}

/* Specific Override for password: eye is clickable */
.input-group input[type="password"] {
    padding-right: 45px;
}

/* Options Row */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-muted);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checkbox-container input:checked~.checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: white;
    display: none;
}

.checkbox-container input:checked~.checkmark::after {
    display: block;
}

.forgot-pass {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-pass:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Button */
.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, #000000 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

/* Ripple Effect or Shimmer could go here */

.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.footer-text {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-text a {
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-text a:hover {
    color: var(--primary);
}

/* Loading State on Button */
.login-btn.loading .btn-text {
    display: none;
}

.login-btn.loading .loader {
    display: block;
}

/* Success State Override (Optional) */
.login-btn.success {
    background: #ef4444;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.status-admin {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.status-manager {
    background: #ede9fe;
    color: #6d28d9;
    border: 1px solid #c4b5fd;
}

.status-salesman {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #7dd3fc;
}

.status-in_progress {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-weight: 700;
}

.status-partial_ready {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
    font-weight: 700;
}

.status-ready {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    font-weight: 700;
}

.status-delivered {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    font-weight: 700;
}

.status-unpaid_delivered {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    font-weight: 700;
}

/* Error State */
/* Dashboard Layout */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-box {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: var(--input-bg);
    color: var(--text-main);
    width: 300px;
}

.add-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #000000 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.add-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 550px;
    max-height: 95vh;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid var(--glass-border);
    position: relative;
    animation: fadeUp 0.3s ease-out;
}

/* Fix Date Picker Icon visibility in dark mode */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    z-index: 10;
}

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

.modal h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Table */
.table-container {
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-main);
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    white-space: nowrap;
}

/* Specific column widths for order tables */
.data-table th:nth-child(1),
.data-table td:nth-child(1) {
    min-width: 80px;
    /* Slip No */
}

.data-table th:nth-child(2),
.data-table td:nth-child(2) {
    min-width: 120px;
    /* Customer/Dates */
}

.data-table th:nth-child(3),
.data-table td:nth-child(3) {
    min-width: 100px;
    /* Mobile/Details */
}

.data-table th:nth-child(4),
.data-table td:nth-child(4) {
    min-width: 150px;
    /* Details/Dates */
}

.data-table th:nth-child(5),
.data-table td:nth-child(5) {
    min-width: 180px;
    /* Details/Status */
}

.data-table th {
    background: rgba(99, 102, 241, 0.2);
    font-weight: 600;
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.clickable-row {
    cursor: pointer;
    transition: background 0.2s;
}

.clickable-row:hover {
    background: rgba(99, 102, 241, 0.1) !important;
}

/* Order Details View */
.back-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.back-btn:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.order-actions {
    display: flex;
    gap: 10px;
}

/* Remove Arrows/Spinners from Number Inputs */
/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -webkit-appearance: none;
    appearance: none;
    -moz-appearance: textfield;
}

/* Measurement Modal & Tabs */
.tab-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--glass-border);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

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

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.measurement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.measurement-grid .input-group {
    margin-bottom: 0;
}

.measurement-grid input {
    padding: 10px;
    font-size: 0.9rem;
    text-align: center;
}

.measurement-grid label {
    font-size: 0.75rem;
    background: var(--bg-dark);
    padding: 0 4px;
}

/* Small Gradient Button for Tables */
.btn-gradient-sm {
    background: linear-gradient(135deg, var(--primary) 0%, #000000 100%);
    color: white !important;
    /* Override inline/default colors */
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-gradient-sm:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}/* Dashboard Grid - Full Page Config */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    /* Larger base size for squares */
    gap: 30px;
    margin-top: 3rem;
    padding: 20px;
}

/* Red/Black Gradient Square Buttons */
.menu-btn {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Square */
    padding: 20px;

    /* Red to Black Gradient */
    background: linear-gradient(135deg, #b91c1c 0%, #000000 100%);

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;

    color: white;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;

    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Glass shine effect */
.menu-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
    opacity: 0.5;
}

.menu-btn i {
    font-size: 4rem;
    /* Specific request for larger icons */
    color: #ffffff;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    /* Remove previous background clip if it exists in cascade */
    background: none;
    -webkit-text-fill-color: initial;
}

.menu-btn span {
    font-size: 1.4rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    z-index: 1;
}

.menu-btn:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(220, 38, 38, 0.4);
    /* Red glow on hover */
    border-color: rgba(220, 38, 38, 0.5);
}

.menu-btn:active {
    transform: scale(0.98);
}

/* ==========================================================================
   Responsive Mobile Optimization (Phone & Tablet)
   ========================================================================== */

/* Filters and Search Toolbar Responsiveness */
.filter-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.filter-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

@media screen and (max-width: 768px) {
    body {
        align-items: flex-start !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .container {
        padding: 10px 8px !important;
        padding-top: max(calc(env(safe-area-inset-top, 0px) + 24px), 38px) !important;
        min-height: 100vh !important;
        align-items: flex-start !important;
        box-sizing: border-box !important;
    }

    .login-card {
        padding: 1.5rem 1.1rem !important;
        border-radius: 18px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 15px auto !important;
    }

    .login-card.wide {
        padding: 1rem 0.65rem !important;
        margin: 10px auto 25px auto !important;
        border-radius: 16px !important;
        background: rgba(255, 255, 255, 0.95);
        border: none !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
        width: 100% !important;
    }

    .logo {
        margin-top: 10px !important;
        margin-bottom: 0.75rem !important;
    }

    .logo h2 {
        font-size: 1.35rem !important;
    }

    body.mobile-app .container {
        padding-top: max(calc(env(safe-area-inset-top, 0px) + 32px), 48px) !important;
    }

    body.mobile-app .logo {
        margin-top: 14px !important;
    }

    /* Customer Admin Action Buttons */
    .cust-action-btn {
        background: none;
        border: none;
        cursor: pointer;
        padding: 6px 8px;
        font-size: 1.1rem;
        transition: transform 0.2s, opacity 0.2s;
    }
    .cust-action-btn:hover {
        transform: scale(1.15);
    }
    .cust-edit-btn {
        color: #4CAF50;
    }
    .cust-delete-btn {
        color: #F44336;
    }

    .customer-detail-admin-actions {
        display: inline-flex;
        gap: 8px;
        align-items: center;
        margin-left: 10px;
    }

    .customer-detail-admin-actions button {
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 0.85rem;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-weight: 500;
    }

    /* Dashboard Header & Filters on Mobile */
    .dashboard-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        margin-bottom: 15px !important;
    }

    .dashboard-header .order-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .dashboard-header .order-actions h3 {
        font-size: 1.15rem;
        margin: 0;
        word-break: break-word;
    }

    .search-box {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 0.9rem !important;
        padding: 10px 12px !important;
    }

    .filter-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .filter-controls {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .filter-controls select {
        grid-column: span 2 !important;
        width: 100% !important;
    }

    .filter-controls input[type="date"] {
        width: 100% !important;
        font-size: 0.85rem !important;
        padding: 8px 6px !important;
    }

    .filter-controls .to-divider {
        display: none !important;
    }

    .filter-controls button {
        grid-column: span 2 !important;
        width: 100% !important;
        padding: 9px !important;
        font-size: 0.9rem !important;
    }

    .add-btn {
        width: 100% !important;
        padding: 11px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        font-size: 0.95rem !important;
    }

    /* ======================================================================
       Mobile Table-to-Card Transformation (No Horizontal Scrolling)
       ====================================================================== */
    .table-container {
        overflow-x: hidden !important;
        overflow-y: visible !important;
        max-height: none !important;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .data-table {
        display: block !important;
        width: 100% !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
    }

    .data-table thead {
        display: none !important;
    }

    .data-table tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        width: 100% !important;
    }

    .data-table tr {
        display: flex !important;
        flex-direction: column !important;
        background: #ffffff !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-radius: 14px !important;
        padding: 14px 16px !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .data-table tr.hidden,
    .data-table tr[style*="display: none"] {
        display: none !important;
    }

    .data-table tr.clickable-row:active {
        background: #f1f5f9 !important;
        transform: scale(0.99);
    }

    .data-table th,
    .data-table td {
        padding: 8px 0 !important;
        white-space: normal !important;
        min-width: 0 !important;
        text-align: right !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        font-size: 0.9rem !important;
        box-sizing: border-box !important;
    }

    .data-table td:first-child {
        padding-top: 0 !important;
    }

    .data-table td:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    .data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        text-align: left;
        margin-right: 12px;
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        flex-shrink: 0;
    }

    .data-table td:not([data-label])::before,
    .data-table td[data-label=""]::before {
        display: none !important;
    }

    /* Custom Field Tweaks on Mobile Cards */
    .data-table td[data-label="Slip No"] {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        color: var(--primary) !important;
        border-bottom: 2px solid rgba(220, 38, 38, 0.12) !important;
        padding-bottom: 8px !important;
        margin-bottom: 4px !important;
    }

    .data-table td[data-label="Dates"] {
        align-items: flex-start !important;
    }

    .data-table td[data-label="Dates"] > div {
        display: flex !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
        justify-content: flex-end !important;
    }

    .data-table td[data-label="Dates"] > div > div {
        background: rgba(0, 0, 0, 0.04);
        padding: 3px 7px;
        border-radius: 6px;
        font-size: 0.78rem;
    }

    .data-table td[data-label="Items"] {
        align-items: flex-start !important;
    }

    .data-table td[data-label="Items"] > div {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: flex-end;
    }

    .data-table td[data-label="Comments"] {
        align-items: flex-start !important;
    }

    .data-table td[data-label="Comments"] div {
        text-align: right;
        max-height: none !important;
        -webkit-line-clamp: unset !important;
        font-size: 0.85rem;
        color: var(--secondary);
    }

    .data-table td[data-label="Slips"] {
        align-items: flex-start !important;
    }

    .data-table td[data-label="Slips"] > div {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
        justify-content: flex-end !important;
    }

    .data-table td[data-label="Reminder"] .reminder-checkboxes {
        justify-content: flex-end !important;
    }

    .data-table td[data-label="Updated by"] {
        text-align: right !important;
        align-items: flex-end !important;
    }

    .data-table td[data-label="Actions"] {
        justify-content: flex-end !important;
        gap: 14px !important;
        padding-top: 10px !important;
        margin-top: 6px !important;
        border-top: 1px dashed rgba(0, 0, 0, 0.1) !important;
    }

    .data-table td[data-label="Actions"] button {
        font-size: 1.25rem !important;
        padding: 6px !important;
    }

    /* Dashboard Menu Buttons - Flexible Zero-Scroll Mobile Grid */
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-rows: 1fr !important;
        gap: 8px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 2px 0 !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        height: 100% !important;
        align-content: stretch !important;
        width: 100% !important;
    }

    .menu-btn {
        aspect-ratio: auto !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        padding: 6px 8px !important;
        border-radius: 14px !important;
        gap: 4px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
        box-sizing: border-box !important;
    }

    .menu-btn i {
        font-size: clamp(1.2rem, 3.2vh, 1.8rem) !important;
        margin: 0 !important;
        line-height: 1 !important;
        transition: transform 0.2s ease !important;
    }

    .menu-btn span {
        font-size: clamp(0.72rem, 1.6vh, 0.88rem) !important;
        font-weight: 600 !important;
        line-height: 1.15 !important;
        letter-spacing: 0.2px !important;
        text-align: center !important;
        word-break: break-word !important;
        max-width: 100% !important;
    }

    .dashboard-grid .menu-btn:last-child:nth-child(odd) {
        grid-column: span 2 !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 6px 14px !important;
    }

    .dashboard-grid .menu-btn:last-child:nth-child(odd) i {
        font-size: clamp(1.15rem, 2.8vh, 1.6rem) !important;
    }

    .dashboard-grid .menu-btn:last-child:nth-child(odd) span {
        font-size: clamp(0.8rem, 1.8vh, 0.95rem) !important;
    }

    /* Modals on Mobile */
    .modal-content {
        width: 95% !important;
        padding: 1.2rem 1rem !important;
        max-height: 90vh !important;
        margin: 10px auto !important;
        border-radius: 16px !important;
    }

    .order-date-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .pricing-table-container {
        padding: 8px !important;
        overflow-x: auto !important;
    }

    .pricing-table-container input.qty-input {
        width: 55px !important;
        padding: 6px 4px !important;
    }

    .pricing-table-container input.rate-input {
        width: 65px !important;
        padding: 6px 4px !important;
    }

    .measurement-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important;
        gap: 8px !important;
    }

    .measurement-grid input {
        padding: 8px 4px !important;
        font-size: 0.85rem !important;
    }

    .tab-container {
        flex-wrap: wrap !important;
        gap: 5px !important;
    }

    .tab-btn {
        padding: 8px 10px !important;
        font-size: 0.9rem !important;
    }
}


/* All Orders Summary Card (Admin Only) */
.all-orders-summary-card {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    margin: 10px 0 14px 0;
    padding: 14px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    flex-wrap: wrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.all-orders-summary-card .summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.all-orders-summary-card .summary-label {
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 500;
}

.all-orders-summary-card .summary-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.all-orders-summary-card .summary-value.amount-val {
    color: var(--primary, #6366f1);
}

.all-orders-summary-card .summary-value.paid-val {
    color: #10b981;
}

.all-orders-summary-card .summary-value.balance-val {
    color: #f59e0b;
}

@media screen and (max-width: 768px) {
    .all-orders-summary-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 10px;
        padding: 10px 12px;
        margin: 6px 0 12px 0;
    }
    .all-orders-summary-card .summary-item {
        font-size: 0.8rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(255, 255, 255, 0.7);
        padding: 6px 10px;
        border-radius: 8px;
        border: 1px solid rgba(0, 0, 0, 0.04);
    }
    .all-orders-summary-card .summary-value {
        font-size: 0.95rem;
    }
}

/* Tailoring Management Summary Styles */
.tailoring-summary-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 10px 0 14px 0;
}

.tailoring-financial-card {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    padding: 14px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    flex-wrap: wrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

@media screen and (max-width: 768px) {
    .tailoring-financial-card {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px 10px !important;
        padding: 10px 12px !important;
    }
    .tailoring-financial-card .summary-item {
        font-size: 0.8rem !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: rgba(255, 255, 255, 0.7) !important;
        padding: 6px 10px !important;
        border-radius: 8px !important;
        border: 1px solid rgba(0, 0, 0, 0.04) !important;
    }
    .tailoring-financial-card .summary-value {
        font-size: 0.95rem !important;
    }
}
}

.tailoring-financial-card .summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tailoring-financial-card .summary-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.tailoring-financial-card .summary-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.tailoring-financial-card .summary-value.amount-val {
    color: var(--primary, #6366f1);
}

.tailoring-financial-card .summary-value.paid-val {
    color: #10b981;
}

.tailoring-financial-card .summary-value.balance-val {
    color: #f59e0b;
}

.tailoring-items-card {
    padding: 16px 22px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.tailoring-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--glass-border);
}

.tailoring-items-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tailoring-items-title i {
    color: var(--primary, #6366f1);
}

.tailoring-items-badge {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.tailoring-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.tailoring-item-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    background: var(--input-bg, rgba(255, 255, 255, 0.5));
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tailoring-item-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tailoring-item-chip .chip-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.tailoring-item-chip .chip-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

@media screen and (max-width: 768px) {
    .tailoring-financial-card {
        justify-content: space-between;
        gap: 12px;
        padding: 12px 14px;
    }
    .tailoring-financial-card .summary-item {
        font-size: 0.85rem;
    }
    .tailoring-financial-card .summary-value {
        font-size: 1rem;
    }
    .tailoring-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    .tailoring-item-chip {
        padding: 8px 6px;
    }
    .tailoring-item-chip .chip-val {
        font-size: 1.1rem;
    }
}

/* Tailoring Tabs Navigation */
.tailoring-tabs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 16px 0;
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 8px;
}

.tailoring-tab-nav-btn {
    padding: 8px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.tailoring-tab-nav-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
}

.tailoring-tab-nav-btn.active {
    background: var(--primary, #6366f1);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

/* 2-Row Layout on Mobile & Android: Row 1 = Orders + Workshop Status, Row 2 = Staff + Payments */
@media (max-width: 640px) {
    .tailoring-tabs-bar {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin: 8px 0 12px 0 !important;
        padding-bottom: 10px !important;
        width: 100% !important;
    }

    .tailoring-tab-nav-btn {
        width: 100% !important;
        padding: 9px 8px !important;
        font-size: 0.84rem !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: nowrap !important;
    }
}

body.android-app .tailoring-tabs-bar {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin: 8px 0 12px 0 !important;
    padding-bottom: 10px !important;
    width: 100% !important;
}

body.android-app .tailoring-tab-nav-btn {
    width: 100% !important;
    padding: 9px 8px !important;
    font-size: 0.84rem !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
}

/* Payment Badges */
.badge-pay-type {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-pay-advance {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-pay-commission {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-pay-payment {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-pay-deduction {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Tailoring Staff Tab & Badges */
.staff-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    margin: 2px 3px 2px 0;
    letter-spacing: 0.2px;
}
.staff-role-master {
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.35);
}
.staff-role-assistant {
    background: rgba(139, 92, 246, 0.15);
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.35);
}
.staff-role-karigar {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.35);
}
.staff-role-cutter {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.35);
}
.staff-role-finisher {
    background: rgba(236, 72, 153, 0.15);
    color: #db2777;
    border: 1px solid rgba(236, 72, 153, 0.35);
}
.staff-role-default {
    background: rgba(100, 116, 139, 0.15);
    color: #475569;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.staff-specialty-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.76rem;
    font-weight: 600;
    margin: 2px;
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.22);
}

.badge-status-active {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-status-suspended {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Multi-select Tag Pill Checkbox */
.tag-pill-checkbox {
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1.5px solid var(--glass-border, #cbd5e1);
    background: var(--input-bg, #ffffff);
    color: var(--text-main, #1e293b);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.18s ease;
}
.tag-pill-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 15px;
    height: 15px;
    accent-color: #8b5cf6;
}
.tag-pill-checkbox:hover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.05);
}
.tag-pill-checkbox.checked {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.12);
    color: #7c3aed;
}

/* Customer Slips Tag Styling */
.slip-tag {
    display: inline-block;
    padding: 2px 7px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary, #6366f1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    white-space: nowrap;
    transition: transform 0.15s ease, background 0.15s ease;
}

.slip-tag:hover {
    background: rgba(99, 102, 241, 0.22);
    transform: scale(1.05);
}

.all-order-item-checkbox {
    accent-color: var(--primary, #6366f1);
}

/* Birthday Points Styles */
.cake-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--card-bg, #ffffff);
    color: var(--text-main, #1e293b);
    border: 1.5px solid var(--glass-border, #cbd5e1);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.2s ease;
    user-select: none;
}

.cake-filter-btn:hover {
    border-color: #f43f5e;
    background: rgba(244, 63, 94, 0.08);
    transform: translateY(-1px);
}

.cake-filter-btn .cake-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.cake-filter-btn .cake-check-icon {
    display: none;
    font-size: 0.8rem;
    margin-left: 2px;
}

.cake-filter-btn.active,
.cake-filter-btn.ticked {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
    color: #ffffff !important;
    border-color: #be123c !important;
    box-shadow: 0 3px 10px rgba(244, 63, 94, 0.35);
}

.cake-filter-btn.active .cake-check-icon,
.cake-filter-btn.ticked .cake-check-icon {
    display: inline-block;
}

.cake-filter-btn .cake-badge {
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 0.76rem;
    font-weight: 700;
    background: #f43f5e;
    color: #ffffff;
    line-height: 1.2;
}

.cake-filter-btn.active .cake-badge,
.cake-filter-btn.ticked .cake-badge {
    background: #ffffff;
    color: #e11d48;
}

.dob-today-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    font-size: 0.95rem;
    vertical-align: middle;
}

.bday-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff !important;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.35);
    padding: 0;
    flex-shrink: 0;
    text-decoration: none;
    vertical-align: middle;
}

.bday-whatsapp-btn:hover {
    background: #1eb954;
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.5);
}

.bday-whatsapp-btn:active {
    transform: scale(0.95);
}

.bday-whatsapp-btn i {
    color: #ffffff !important;
    font-size: 1rem;
    pointer-events: none;
}

.data-table tr.row-redeemed {
    opacity: 0.62;
    background: rgba(0, 0, 0, 0.05) !important;
}

.data-table tr.row-redeemed td[data-label="Customer Name"] strong {
    text-decoration: line-through;
    color: var(--text-muted);
}

.data-table tr.row-redeemed input.birthday-comment-input {
    opacity: 0.7;
    pointer-events: none;
}

.data-table tr.row-redeemed .reminder-radios {
    opacity: 0.7;
    pointer-events: none;
}

.reminder-checkboxes {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: center;
}

.reminder-checkboxes input[type="checkbox"] {
    cursor: pointer;
    accent-color: var(--primary, #dc2626);
    margin: 0;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    transition: transform 0.15s ease;
}

.reminder-checkboxes input[type="checkbox"]:hover:not(:disabled) {
    transform: scale(1.15);
}

.reminder-checkboxes input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.reminder-checkboxes input[type="checkbox"]:disabled:checked,
.reminder-checkboxes input[type="checkbox"].reminder-locked {
    cursor: not-allowed !important;
    opacity: 0.9 !important;
    accent-color: #10b981 !important;
    filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.4));
}

.birthday-comment-input {
    width: 100%;
    min-width: 150px;
    padding: 6px 10px;
    font-size: 0.88rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: var(--input-bg);
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s;
}

.birthday-comment-input:focus {
    border-color: var(--primary);
}

/* Birthday Points Option 1 Styles - Elevated Dashboard & Mobile Touch Cards */
.bday-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.bday-kpi-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 18px;
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.bday-kpi-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}
.bday-kpi-card.blue::before { background: #3b82f6; }
.bday-kpi-card.green::before { background: #10b981; }
.bday-kpi-card.amber::before { background: #f59e0b; }
.bday-kpi-card.purple::before { background: #8b5cf6; }

.bday-kpi-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.bday-kpi-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main, #111827);
    margin-top: 2px;
    line-height: 1.2;
}
.bday-kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}
.bday-kpi-card.blue .bday-kpi-icon { background: #eff6ff; color: #2563eb; }
.bday-kpi-card.green .bday-kpi-icon { background: #f0fdf4; color: #16a34a; }
.bday-kpi-card.amber .bday-kpi-icon { background: #fffbeb; color: #d97706; }
.bday-kpi-card.purple .bday-kpi-icon { background: #faf5ff; color: #7c3aed; }

/* Filter Bar */
.bday-filter-bar {
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.bday-filter-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.bday-month-filter-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid var(--border-color, #cbd5e1);
    border-radius: 8px;
    padding: 6px 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.bday-month-filter-wrap i.bday-cal-icon {
    color: var(--primary, #dc2626);
    font-size: 0.95rem;
}
.bday-month-select {
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-main, #111827);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    font-family: inherit;
}
.bday-admin-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.bday-btn-capture-all {
    background: linear-gradient(135deg, var(--primary, #dc2626) 0%, #000000 100%);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(220, 38, 38, 0.25);
    transition: all 0.2s;
}
.bday-btn-capture-all:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35);
}
.bday-btn-excel {
    background: #10b981;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.bday-btn-excel:hover {
    background: #059669;
    transform: translateY(-1px);
}
.bday-filter-bottom-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow: visible !important;
    position: relative;
    padding-bottom: 3px;
}
.bday-search-input-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 130px;
}
.bday-search-input-wrap i.fa-magnifying-glass {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #94a3b8);
    font-size: 0.82rem;
}
.bday-search-input {
    width: 100%;
    padding: 7px 28px 7px 28px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #cbd5e1);
    font-size: 0.82rem;
    background: #ffffff;
    color: var(--text-main, #111827);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bday-search-input:focus {
    border-color: var(--primary, #dc2626);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.bday-search-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    font-size: 0.82rem;
}

/* Reminders Tracker Dropdown Button */
.bday-reminders-filter-container {
    position: relative;
    flex: 0 0 auto;
}
.bday-reminders-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 11px;
    border-radius: 8px;
    background: #ffffff;
    border: 1.5px solid #2563eb;
    color: #1e40af;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(37,99,235,0.1);
}
.bday-reminders-dropdown-btn:hover {
    background: #eff6ff;
}
.bday-active-period-badge {
    background: #dbeafe;
    color: #1e40af;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.bday-stat-calls {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #1d4ed8;
}
.bday-stat-sep {
    color: #cbd5e1;
}
.bday-stat-wa {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #15803d;
}
.bday-caret-icon {
    font-size: 0.65rem;
    color: #64748b;
    margin-left: 2px;
    transition: transform 0.2s;
}
.bday-reminders-dropdown-btn.open .bday-caret-icon {
    transform: rotate(180deg);
}

/* Floating Dropdown Menu */
.bday-reminders-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    width: 290px;
    max-width: 90vw;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color, #cbd5e1);
    box-shadow: 0 16px 36px rgba(0,0,0,0.22), 0 2px 6px rgba(0,0,0,0.08);
    padding: 10px;
    z-index: 99999 !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: bdayFadeIn 0.15s ease-out;
}
@keyframes bdayFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.bday-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.76rem;
    font-weight: 700;
    color: #0f172a;
}
.bday-dropdown-hint {
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 500;
}
.bday-dropdown-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.bday-dropdown-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 9px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.15s;
}
.bday-dropdown-option:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}
.bday-dropdown-option.selected {
    border-color: #2563eb;
    background: #eff6ff;
}
.bday-opt-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.bday-opt-checkbox-custom {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: transparent;
    background: #ffffff;
    transition: all 0.15s;
}
.bday-dropdown-option.selected .bday-opt-checkbox-custom {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}
.bday-opt-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1e293b;
}
.bday-dropdown-option.selected .bday-opt-title {
    color: #1e40af;
}
.bday-opt-sub {
    font-size: 0.65rem;
    color: #64748b;
}
.bday-opt-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 5px;
    background: #f1f5f9;
}
.bday-dropdown-option.selected .bday-opt-badge {
    background: #dbeafe;
}
.bday-opt-calls { color: #1d4ed8; }
.bday-opt-wa { color: #15803d; }
.bday-dropdown-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid #f1f5f9;
}
.bday-clear-filter-link {
    font-size: 0.72rem;
    color: #dc2626;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}
.bday-active-filter-tag {
    font-size: 0.68rem;
    background: #dcfce7;
    color: #15803d;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.bday-filter-pills {
    display: flex;
    gap: 5px;
    align-items: center;
    flex: 0 0 auto;
}
.bday-filter-pill {
    padding: 6px 11px;
    border-radius: 20px;
    font-size: 0.80rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    background: #f1f5f9;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.bday-filter-pill:hover {
    background: #e2e8f0;
}
.bday-filter-pill.active {
    background: var(--primary, #dc2626);
    color: #ffffff;
    border-color: var(--primary, #dc2626);
}
    color: #ffffff;
    border-color: var(--primary, #dc2626);
}

/* Elevated Table View */
.bday-table-container {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    margin-top: 0.8rem;
}
.bday-elevated-table th {
    background: #f8fafc;
    color: var(--text-muted, #64748b);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}
.bday-elevated-table td {
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.bday-elevated-table tr.row-today-bday {
    background: #fffafa;
}
.bday-elevated-table tr.row-today-bday:hover {
    background: #fff0f0;
}
.bday-cust-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bday-table-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fee2e2;
    color: var(--primary, #dc2626);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.78rem;
    flex-shrink: 0;
}
.bday-table-avatar.today {
    background: linear-gradient(135deg, var(--primary, #dc2626) 0%, #b91c1c 100%);
    color: #ffffff;
}
.bday-cust-name-text {
    font-size: 0.9rem;
    color: var(--text-main, #111827);
}
.bday-today-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fee2e2;
    color: var(--primary, #dc2626);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 6px;
}
.bday-dob-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: var(--text-main, #111827);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}
.bday-dob-pill.today {
    background: #fee2e2;
    color: var(--primary, #dc2626);
    border: 1px solid #fecaca;
    font-weight: 700;
}

/* Mobile & Android Cards */
.bday-mobile-cards-grid {
    display: none;
}
.bday-fab-btn {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary, #dc2626) 0%, #000000 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.45);
    cursor: pointer;
    font-size: 1.3rem;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bday-fab-btn:active {
    transform: scale(0.92);
}

@media (max-width: 768px), body.android-app {
    .bday-kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .bday-kpi-card {
        padding: 10px 12px !important;
    }
    .bday-kpi-label {
        font-size: 0.72rem !important;
    }
    .bday-kpi-val {
        font-size: 1.25rem !important;
    }
    .bday-kpi-icon {
        width: 34px !important;
        height: 34px !important;
        font-size: 1rem !important;
    }
    .bday-table-container {
        display: none !important;
    }
    .bday-mobile-cards-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 0.8rem !important;
        padding-bottom: 70px !important;
    }
    .bday-fab-btn {
        display: flex !important;
    }
    .bday-filter-bar {
        padding: 8px 10px !important;
        overflow: visible !important;
    }
    .bday-filter-bottom-row {
        gap: 6px !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
    }
    .bday-search-input-wrap {
        flex: 1 1 auto !important;
        min-width: 110px !important;
    }
    .bday-search-input {
        padding: 7px 20px 7px 24px !important;
        font-size: 0.78rem !important;
    }
    .bday-reminders-filter-container {
        flex: 0 0 auto !important;
        position: relative !important;
    }
    .bday-reminders-dropdown-btn {
        padding: 6px 9px !important;
        font-size: 0.74rem !important;
        gap: 4px !important;
    }
    .bday-active-period-badge {
        font-size: 0.65rem !important;
        padding: 1px 4px !important;
    }
    
    .bday-mobile-card {
        background: #ffffff;
        border-radius: 12px;
        border: 1px solid var(--border-color, #e2e8f0);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
        padding: 14px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .bday-mobile-card.today-highlight {
        border-left: 4px solid var(--primary, #dc2626);
        background: #fffafa;
    }
    .bday-mcard-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .bday-mcard-cust-info {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .bday-avatar-circle {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: #fee2e2;
        color: var(--primary, #dc2626);
        font-weight: 800;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .bday-avatar-circle.today {
        background: linear-gradient(135deg, var(--primary, #dc2626) 0%, #b91c1c 100%);
        color: #ffffff;
    }
    .bday-mcard-name {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--text-main, #111827);
    }
    .bday-mcard-phone a {
        font-size: 0.8rem;
        color: var(--text-muted, #64748b);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
    .bday-status-pill {
        font-size: 0.72rem;
        font-weight: 700;
        padding: 3px 8px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
    .bday-status-pill.pending { background: #fef3c7; color: #b45309; }
    .bday-status-pill.redeemed { background: #dcfce7; color: #15803d; }

    .bday-mcard-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 0;
        border-top: 1px dashed #f1f5f9;
        border-bottom: 1px dashed #f1f5f9;
        font-size: 0.82rem;
        flex-wrap: wrap;
        gap: 6px;
    }
    .bday-dob-tag {
        font-weight: 600;
        color: var(--text-main, #111827);
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }
    .bday-dob-tag.today {
        color: #e11d48;
        font-weight: 700;
    }
    .bday-pts-badge {
        background: #ecfdf5;
        color: #059669;
        font-weight: 800;
        padding: 2px 8px;
        border-radius: 6px;
        display: inline-flex;
        align-items: center;
        gap: 3px;
    }
    .bday-pts-rupees {
        font-size: 0.76rem;
        font-weight: 700;
        color: #15803d;
        margin-left: 2px;
    }
    .bday-points-rupee-tag {
        font-size: 0.74rem;
        font-weight: 700;
        color: #15803d;
        background: #ecfdf5;
        padding: 1px 7px;
        border-radius: 4px;
        border: 1px solid #bbf7d0;
        display: inline-block;
        white-space: nowrap;
    }
    .bday-tier-pill {
        font-weight: 700;
        font-size: 0.75rem;
        padding: 2px 8px;
        border-radius: 6px;
    }

    /* Mobile Reminders Bar */
    .bday-mcard-reminders-row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        background: #f8fafc;
        border: 1px solid var(--border-color, #e2e8f0);
        border-radius: 10px;
        padding: 8px 10px;
        gap: 8px;
    }
    .bday-mcard-rem-group {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .bday-mcard-reminders-label {
        font-size: 0.72rem;
        font-weight: 700;
        color: var(--text-main, #111827);
        display: flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
    }
    .bday-mcard-reminders-label i {
        color: var(--primary, #dc2626);
        font-size: 0.74rem;
    }
    .bday-mcard-reminders-label.bday-wa-label {
        color: #047857;
    }
    .bday-mcard-reminders-label.bday-wa-label i {
        color: #25d366;
    }
    .bday-mcard-reminders-boxes,
    .bday-mcard-wa-boxes {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .bday-mcard-reminder-pill {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 7px;
        background: #ffffff;
        border: 1.5px solid var(--border-color, #cbd5e1);
        cursor: pointer;
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--text-muted, #64748b);
        transition: all 0.2s ease;
        user-select: none;
    }
    .bday-mcard-reminder-pill input[type="checkbox"],
    .bday-mcard-wa-pill input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
        pointer-events: none;
    }
    .bday-mcard-reminder-pill.checked {
        background: #10b981;
        border-color: #059669;
        color: #ffffff;
        box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
    }
    .bday-mcard-reminder-pill.reminder-locked,
    .bday-mcard-wa-pill.wa-locked {
        cursor: not-allowed;
        opacity: 0.85;
    }
    .bday-mcard-reminder-pill.pill-sequential-disabled,
    .bday-mcard-wa-pill.wa-sequential-disabled {
        cursor: not-allowed;
        opacity: 0.45;
        background: #f1f5f9;
        border-color: #e2e8f0;
        color: #94a3b8;
    }
    .bday-mcard-reminder-pill:active:not(.reminder-locked):not(.pill-sequential-disabled),
    .bday-mcard-wa-pill:active:not(.wa-locked):not(.wa-sequential-disabled) {
        transform: scale(0.92);
    }

    /* Mobile WhatsApp Reminder Pill */
    .bday-mcard-wa-pill {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 7px;
        background: #ffffff;
        border: 1.5px solid #a7f3d0;
        cursor: pointer;
        font-size: 0.8rem;
        font-weight: 700;
        color: #047857;
        transition: all 0.2s ease;
        user-select: none;
    }
    .bday-mcard-wa-pill.checked {
        background: #25d366;
        border-color: #128c7e;
        color: #ffffff;
        box-shadow: 0 2px 6px rgba(37, 211, 102, 0.35);
    }

    /* Desktop WA Checkbox Box */
    .bday-wa-desktop-box {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }
    .bday-wa-desktop-box .bday-wa-chk {
        accent-color: #25d366;
        width: 17px;
        height: 17px;
        cursor: pointer;
    }
    .chk-sequential-disabled {
        cursor: not-allowed !important;
        opacity: 0.45;
    }

    .bday-mcard-actions {
        display: flex;
        gap: 6px;
        align-items: center;
    }
    .bday-mcard-btn-wa {
        flex: 1;
        background: #25d366;
        color: #ffffff;
        border: none;
        padding: 8px 6px;
        border-radius: 8px;
        font-size: 0.82rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        white-space: nowrap;
    }
    .bday-mcard-btn-voucher {
        flex: 1;
        background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
        color: #ffffff;
        border: none;
        padding: 8px 6px;
        border-radius: 8px;
        font-size: 0.8rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(180, 83, 9, 0.2);
        white-space: nowrap;
    }
    .bday-mcard-btn-voucher:hover {
        opacity: 0.92;
        transform: translateY(-1px);
    }
    .bday-mcard-btn-status {
        flex: 1.35;
        background: #ffffff;
        border: 1px solid var(--border-color, #cbd5e1);
        color: var(--text-main, #111827);
        padding: 8px 6px;
        border-radius: 8px;
        font-size: 0.8rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        cursor: pointer;
        white-space: nowrap;
    }
    .bday-mcard-btn-status.redeemed {
        background: #f0fdf4;
        color: #15803d;
        border-color: #86efac;
    }

    .bday-mcard-comment-wrap {
        width: 100%;
    }
    .bday-mcard-comment {
        width: 100% !important;
        font-size: 0.82rem !important;
        padding: 6px 10px !important;
    }
}

/* Custom Birthday Gift Voucher Desktop Button & Modal */
.bday-voucher-icon-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    box-shadow: 0 2px 5px rgba(180, 83, 9, 0.25);
    transition: transform 0.15s;
    vertical-align: middle;
}
.bday-voucher-icon-btn:hover {
    transform: scale(1.06);
}

.bday-voucher-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: bdayFadeIn 0.25s ease-out;
}
.bday-voucher-modal-card {
    background: #ffffff;
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(226, 232, 240, 0.8);
}
.bday-voucher-modal-header {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}
.bday-voucher-modal-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bday-voucher-modal-close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.bday-voucher-modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
}
.bday-voucher-modal-body {
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafc;
}
.bday-voucher-img-preview {
    max-width: 100%;
    width: 280px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.bday-voucher-modal-actions {
    padding: 12px 16px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 8px;
}
.bday-voucher-btn-share-wa {
    flex: 1.2;
    background: #25d366;
    color: #ffffff;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(37, 211, 102, 0.25);
    transition: transform 0.15s;
}
.bday-voucher-btn-share-wa:hover {
    transform: translateY(-1px);
}
.bday-voucher-btn-dl {
    flex: 1;
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.15s;
}
.bday-voucher-btn-dl:hover {
    background: #e2e8f0;
}

/* Redeemed Confirmation Modal - Red/Black Gradient & White/Black Theme */
.birthday-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 16px;
    animation: fadeIn 0.2s ease;
}

.birthday-confirm-card {
    background: #ffffff;
    color: #111827;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 20px;
    padding: 28px 24px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: fadeUp 0.3s ease-out;
}

.birthday-confirm-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b91c1c 0%, #000000 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 14px;
    box-shadow: 0 6px 16px rgba(185, 28, 28, 0.35);
}

.birthday-confirm-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}

.birthday-confirm-card p {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 22px;
    line-height: 1.5;
}

.birthday-confirm-card p strong {
    color: #111827;
}

.birthday-confirm-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
}

.birthday-confirm-btn {
    flex: 1;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.birthday-confirm-btn.btn-yes {
    background: linear-gradient(135deg, #b91c1c 0%, #000000 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.3);
}

.birthday-confirm-btn.btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(185, 28, 28, 0.45);
    opacity: 0.95;
}

.birthday-confirm-btn.btn-no {
    background: #ffffff;
    color: #111827;
    border: 1.5px solid #d1d5db;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.birthday-confirm-btn.btn-no:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    transform: translateY(-2px);
}

/* Dashboard Bottom Logout Button - Removed per user request */
.dashboard-bottom-bar {
    display: none !important;
}

/* Item Ready Checkboxes in All Orders */
.all-order-item-checkbox {
    accent-color: var(--primary, #dc2626);
    transition: transform 0.15s ease;
    width: 16px;
    height: 16px;
    margin: 0;
}

.all-order-item-checkbox:hover:not(:disabled) {
    transform: scale(1.2);
}

.item-tick-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 3px;
    vertical-align: middle;
    cursor: pointer;
    padding: 3px;
    border-radius: 6px;
    transition: background 0.15s ease, transform 0.15s ease;
}

.item-tick-wrap:hover {
    background: rgba(220, 38, 38, 0.12);
}

/* Global Floating Item Tooltip (Never clipped, instant on hover/tap) */
#globalItemTooltip {
    position: fixed;
    transform: translate(-50%, -100%);
    background: #0f172a;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 7px;
    font-size: 0.8rem;
    font-family: inherit;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 99999999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease;
}

#globalItemTooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #0f172a;
}

#globalItemTooltip.flipped {
    transform: translate(-50%, 0);
}

#globalItemTooltip.flipped::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: #0f172a;
}

#globalItemTooltip.show {
    opacity: 1;
    visibility: visible;
}

/* ========================================== */
/* --- Salary Management & Modal Styles --- */
/* ========================================== */

.advance-badge {
    display: inline-block;
    padding: 3px 9px;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.88rem;
}

.salary-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 38, 38, 0.1);
    color: var(--primary);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.salary-action-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.salary-modal-content {
    max-width: 680px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.salary-modal-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.35rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    font-weight: 700;
}

.salesman-info-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #475569;
}

.salesman-info-tag .name {
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
}

.salesman-info-tag .role-badge {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.salesman-info-tag .mobile {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #475569;
    font-weight: 500;
}

/* Month Selector Card */
.salary-month-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.salary-month-card .label-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.salary-month-card .label-text i {
    color: var(--primary);
    font-size: 1.1rem;
}

.salary-inputs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

@media (max-width: 520px) {
    .salary-inputs-grid {
        grid-template-columns: 1fr;
    }
}

.salary-input-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.salary-input-group label i {
    color: var(--primary);
    margin-right: 5px;
    font-size: 0.85rem;
}

.salary-input-group input {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    padding: 9px 12px;
    width: 100%;
}

.salary-input-group input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
    outline: none;
}

/* Calculation Summary Box */
.salary-calc-box {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    padding: 16px 18px;
    margin-top: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.calc-box-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-box-title i {
    color: var(--primary);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    font-size: 0.95rem;
    color: #334155;
}

.calc-row .label {
    color: #334155;
    font-weight: 600;
}

.calc-row .label small {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: normal;
}

.calc-row .value {
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
}

.calc-row.advance-deduct-row .value {
    color: #dc2626;
    font-weight: 700;
}

.calc-divider {
    height: 1.5px;
    background: #e2e8f0;
    margin: 10px 0;
}

.calc-row.payable-row {
    padding-top: 8px;
}

.calc-row.payable-row .label {
    font-weight: 800;
    font-size: 1.1rem;
    color: #0f172a;
}

.calc-row.payable-row .value.highlight {
    font-size: 1.45rem;
    font-weight: 800;
    color: #059669;
}

/* Salary Paid Container */
.salary-paid-card {
    margin-top: 16px;
    padding: 14px 16px;
    background: #f0f9ff;
    border: 2px solid #38bdf8;
    border-radius: 12px;
}

.salary-paid-card label {
    font-weight: 800;
    color: #0369a1;
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.salary-paid-card label i {
    color: #0284c7;
    font-size: 1.05rem;
}

.salary-paid-input {
    width: 100%;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #0369a1 !important;
    background: #ffffff !important;
    border: 2px solid #0284c7 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    margin-top: 6px;
    box-shadow: 0 1px 3px rgba(2, 132, 199, 0.1);
}

.salary-paid-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
    font-size: 0.95rem;
}

.btn-quick-fill {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    background: #0284c7;
    color: #ffffff !important;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
    transition: all 0.2s ease;
}

.btn-quick-fill:hover {
    background: #0369a1 !important;
    transform: translateY(-1px);
}

/* Next Month Advance Preview Card */
.next-adv-preview-card {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.next-adv-preview-card .title {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1e293b;
    font-weight: 800;
}

.next-adv-preview-card .rule {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 2px;
    font-weight: 500;
}

/* Badges for Next Month Advance */
.badge-next-adv {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.92rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.badge-next-adv.badge-settled {
    background: #dcfce7;
    color: #15803d;
    border: 1.5px solid #86efac;
}

.badge-next-adv.badge-due {
    background: #fee2e2;
    color: #991b1b;
    border: 1.5px solid #fca5a5;
}

.badge-next-adv.badge-extra {
    background: #fef3c7;
    color: #92400e;
    border: 1.5px solid #fcd34d;
}

/* Advance Button and Modal */
.salary-advance-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.salary-advance-btn:hover {
    background: #f59e0b;
    color: #ffffff;
    border-color: #f59e0b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.advance-modal-content {
    max-width: 640px;
    padding: 1.75rem;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.advance-modal-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.35rem;
    color: #b45309;
    display: flex;
    align-items: center;
    font-weight: 700;
}

.advance-add-card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.adv-month-total-pill {
    background: #fef3c7;
    border: 1.5px solid #fcd34d;
    color: #92400e;
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 700;
}

.adv-month-total-pill strong {
    font-size: 1.05rem;
    font-weight: 800;
}

/* Salary History Table */
.salary-history-table {
    width: 100%;
    border-collapse: collapse;
}

.salary-history-table th {
    background: #f1f5f9;
    color: #1e293b;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    white-space: nowrap;
    border-bottom: 2px solid #cbd5e1;
}

.salary-history-table td {
    padding: 10px 12px;
    font-size: 0.86rem;
    color: #0f172a;
    white-space: nowrap;
    border-bottom: 1px solid #e2e8f0;
}

.salary-history-table tr.active-month {
    background: #e0f2fe !important;
    border-left: 4px solid #0284c7;
}

.salary-history-table tr:hover {
    background: #f8fafc;
}

/* Date and Month Input High Contrast */
input[type="month"],
input[type="date"] {
    color-scheme: light !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    font-weight: 700 !important;
    border: 1.5px solid #94a3b8 !important;
}

input[type="month"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.85;
    filter: invert(0.15);
}

/* --- Salary History Action Button & Modals --- */
.salary-history-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 132, 199, 0.12);
    color: #0284c7;
    border: 1px solid rgba(2, 132, 199, 0.3);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.salary-history-btn:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.salary-history-modal-content {
    max-width: 960px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.75rem;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hist-action-btn-group {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.hist-action-view {
    background: #0284c7;
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    padding: 5px 11px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.hist-action-view:hover {
    background: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

.hist-action-edit {
    background: #10b981;
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    padding: 5px 11px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.hist-action-edit:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}

.salary-detail-modal-content {
    max-width: 580px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.75rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.salary-detail-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
}

.salary-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #cbd5e1;
    font-size: 0.92rem;
}

.salary-detail-row:last-child {
    border-bottom: none;
}

.salary-detail-row .label {
    color: #475569;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.salary-detail-row .value {
    color: #0f172a;
    font-weight: 700;
    font-size: 0.96rem;
}

.salary-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #065f46;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toastFadeIn 0.3s ease;
}

@keyframes toastFadeIn {
    from { opacity: 0; transform: translate(-50%, 15px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* --- Payment History Tabs & Advance History Styles --- */
.pay-history-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 16px;
}

.pay-history-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pay-history-tab:hover {
    color: #0284c7;
}

.pay-history-tab.active {
    color: #0284c7;
    border-bottom-color: #0284c7;
}

.hist-action-delete {
    background: #ef4444;
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    padding: 5px 11px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.hist-action-delete:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.edit-adv-modal-content {
    max-width: 480px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.75rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Daily Ledger Styles
   ========================================================================== */

.ledger-modal-content {
    max-width: 920px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.75rem;
    border-radius: 18px;
    background: var(--card-bg, #ffffff);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.ledger-two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media screen and (max-width: 768px) {
    .ledger-two-col-grid {
        grid-template-columns: 1fr;
    }
}

.ledger-panel {
    background: var(--input-bg, rgba(255, 255, 255, 0.5));
    border: 1px solid var(--glass-border, #e2e8f0);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ledger-panel-title {
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid var(--glass-border, #e2e8f0);
}

.ledger-panel-title.inflows {
    color: #10b981;
}

.ledger-panel-title.outflows {
    color: #ef4444;
}

.ledger-total-strip {
    margin-top: auto;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ledger-total-strip.inflows {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.ledger-total-strip.outflows {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Center Balance Box */
.ledger-center-balance {
    margin: 16px 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.15));
    border: 2px solid var(--primary, #6366f1);
    border-radius: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12);
}

.ledger-center-balance .balance-label {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary, #6366f1);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ledger-center-balance .balance-amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
}

/* Reconciliation Panel */
.ledger-reconcile-panel {
    background: var(--input-bg, rgba(255, 255, 255, 0.5));
    border: 1px solid var(--glass-border, #e2e8f0);
    border-radius: 14px;
    padding: 16px;
}

.denom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.denom-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--glass-border, #e2e8f0);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.denom-badge {
    font-weight: 800;
    min-width: 52px;
    color: var(--text-main, #0f172a);
    font-size: 0.95rem;
}

.denom-input {
    width: 80px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1.5px solid var(--glass-border, #cbd5e1);
    text-align: right;
    font-weight: 700;
    font-size: 1rem;
    background: var(--input-bg, #ffffff);
    color: var(--text-main, #0f172a);
}

.denom-subtotal {
    margin-left: auto;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    font-size: 0.95rem;
}

.ledger-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
}

/* Difference Badges */
.diff-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
}

.diff-badge-balanced {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1.5px solid #10b981;
}

.diff-badge-excess {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
    border: 1.5px solid #3b82f6;
}

.diff-badge-shortage {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1.5px solid #ef4444;
}

/* Daily Ledger Table Summary Section */
.daily-ledger-summary-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 1.5rem;
}

.daily-ledger-financial-card {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    padding: 16px 22px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    flex-wrap: wrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.daily-ledger-breakdown-card {
    padding: 16px 22px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.ledger-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.ledger-breakdown-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    background: var(--input-bg, rgba(255, 255, 255, 0.5));
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ledger-breakdown-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ledger-breakdown-chip .chip-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.ledger-breakdown-chip .chip-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
}

@media screen and (max-width: 768px) {
    .daily-ledger-financial-card {
        justify-content: space-between;
        gap: 12px;
        padding: 12px 14px;
    }
    .ledger-breakdown-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 8px;
    }
    .ledger-breakdown-chip {
        padding: 8px 6px;
    }
    .ledger-breakdown-chip .chip-val {
        font-size: 1rem;
    }
}

/* ==========================================================================
   Top-Right Profile Dropdown & Dedicated Modals
   ========================================================================== */

.profile-header-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 100;
}

.profile-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 30px;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.profile-header-btn:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-avatar-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 0.85rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.profile-header-name {
    display: inline-block !important;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700 !important;
    font-size: 0.92rem;
    color: #0f172a !important;
    text-shadow: none !important;
}

.profile-header-chevron {
    font-size: 0.75rem;
    color: #475569 !important;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.profile-header-btn:hover .profile-header-chevron {
    opacity: 1;
    color: #0f172a !important;
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    z-index: 2500;
    display: none;
    flex-direction: column;
    animation: fadeUp 0.2s ease-out;
}

.profile-dropdown-menu.show {
    display: flex;
}

.profile-dropdown-user-info {
    padding: 10px 12px;
}

.profile-dropdown-name {
    font-weight: 700;
    color: #0f172a !important;
    font-size: 0.95rem;
}

.profile-dropdown-sub {
    font-size: 0.78rem;
    color: #64748b !important;
    margin-top: 3px;
    font-weight: 500;
}

.profile-dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 6px 0;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #1e293b !important;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: all 0.2s ease;
}

.profile-dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--primary) !important;
    font-size: 1rem;
}

.profile-dropdown-item:hover {
    background: #fef2f2 !important;
    color: var(--primary) !important;
    transform: translateX(3px);
}

.profile-dropdown-logout {
    color: #dc2626 !important;
    font-weight: 600;
}

.profile-dropdown-logout i {
    color: #dc2626 !important;
}

.profile-dropdown-logout:hover {
    background: #fee2e2 !important;
    color: #b91c1c !important;
}

/* Dedicated Popup Modals Styling (Consistent Light Theme) */
.profile-modal-content {
    max-width: 720px !important;
    width: 95% !important;
    max-height: 90vh !important;
    padding: 24px !important;
    overflow-y: auto;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
    font-family: 'Poppins', sans-serif;
}

.profile-modal-content h3 {
    color: #0f172a !important;
    font-weight: 700;
}

.profile-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    padding-right: 48px;
    border-bottom: 1.5px solid #e2e8f0;
}

.profile-modal-content .close-btn {
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-size: 1.3rem;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    z-index: 20;
}

.profile-modal-content .close-btn:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg);
}

.profile-modal-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 1.3rem;
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.3);
    flex-shrink: 0;
}

/* User Details Cards */
.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.profile-detail-card {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px;
    padding: 14px 16px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.profile-detail-card:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

.profile-detail-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b !important;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.profile-detail-label i {
    color: #dc2626 !important;
}

.profile-detail-value {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    word-break: break-all;
}

/* Leave Status Badges */
.leave-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.leave-badge-pending {
    background: #fef3c7 !important;
    color: #92400e !important;
    border: 1.5px solid #fcd34d !important;
}

.leave-badge-approved {
    background: #dcfce7 !important;
    color: #15803d !important;
    border: 1.5px solid #86efac !important;
}

.leave-badge-rejected {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1.5px solid #fca5a5 !important;
}

.leave-calc-box {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px;
    padding: 11px 15px;
    font-size: 0.92rem;
    color: #334155 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.leave-calc-box strong {
    color: #15803d !important;
    font-weight: 700;
}

@media screen and (max-width: 768px) {
    .profile-header-name {
        display: inline-block !important;
        max-width: 90px;
        font-size: 0.82rem;
    }
    .profile-header-btn {
        padding: 5px 10px;
    }
    .profile-dropdown-menu {
        right: 0;
        min-width: 220px;
    }
    .profile-modal-content {
        padding: 16px !important;
    }
}

/* Leave History Reason Ellipsis & Table Styles */
.leave-history-table {
    min-width: 700px;
    width: 100%;
}

.leave-history-table th,
.leave-history-table td {
    vertical-align: middle;
}

.leave-reason-cell {
    display: inline-block;
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #334155 !important;
    font-weight: 500;
    cursor: pointer;
    vertical-align: middle;
    transition: color 0.15s ease;
}

.leave-reason-cell:hover {
    color: #0284c7 !important;
    text-decoration: underline dotted;
}

/* =========================================================
   ZERO-SCROLL FLEXIBLE DASHBOARD LAYOUT (MOBILE & ANDROID)
   ========================================================= */

/* Main Header on Dashboard: Single line, Logo on Left, Profile on Right */
.dashboard-main-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
    width: 100% !important;
    flex-shrink: 0 !important;
}

.dashboard-main-header .logo {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.dashboard-main-header .logo img {
    height: 28px !important;
    width: auto !important;
}

.dashboard-main-header .logo h2 {
    font-size: 1.18rem !important;
    margin: 0 !important;
    white-space: nowrap !important;
    font-weight: 700 !important;
}

.dashboard-main-header .profile-header-wrap {
    margin: 0 !important;
    flex-shrink: 0 !important;
}

/* Mobile & Android Dashboard Viewport Fitting */
@media screen and (max-width: 768px), (pointer: coarse) {
    body.dashboard-active {
        overflow-y: hidden !important;
    }

    body.dashboard-active .container {
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 0 !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: stretch !important;
        align-items: stretch !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    body.android-app.dashboard-active .container,
    body.mobile-app.dashboard-active .container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .login-card.dashboard-card,
    .login-card:has(.dashboard-grid) {
        flex: 1 1 auto !important;
        height: 100% !important;
        max-height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: stretch !important;
        border-radius: 0 !important;
        border-top: none !important;
        border-left: 3.5px solid #16171a !important;
        border-right: 3.5px solid #16171a !important;
        border-bottom: 3.5px solid #16171a !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #f8fafc !important;
    }
}

/* Also apply directly when running in Android app wrapper */
body.android-app .dashboard-main-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
    width: 100% !important;
}

body.android-app.dashboard-active {
    overflow-y: hidden !important;
}

body.android-app.dashboard-active .container {
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: stretch !important;
    align-items: stretch !important;
    overflow: hidden !important;
}

body.android-app .login-card.dashboard-card,
body.android-app .login-card:has(.dashboard-grid),
body.mobile-app .login-card.dashboard-card,
body.mobile-app .login-card:has(.dashboard-grid) {
    flex: 1 1 auto !important;
    height: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: stretch !important;
    border-radius: 0 !important;
    border-top: none !important;
    border-left: 3.5px solid #16171a !important;
    border-right: 3.5px solid #16171a !important;
    border-bottom: 3.5px solid #16171a !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #f8fafc !important;
    box-sizing: border-box !important;
}

/* Graceful scrolling fallback in ultra-short landscape orientation (< 420px height) */
@media screen and (max-height: 420px) {
    body.dashboard-active,
    body.android-app.dashboard-active {
        overflow-y: auto !important;
    }
    body.dashboard-active .container,
    body.android-app.dashboard-active .container {
        height: auto !important;
        min-height: 100vh !important;
        overflow-y: auto !important;
    }
    .login-card.dashboard-card,
    .login-card:has(.dashboard-grid),
    body.android-app .login-card.dashboard-card,
    body.android-app .login-card:has(.dashboard-grid) {
        height: auto !important;
        min-height: 380px !important;
    }
    .dashboard-grid .menu-btn,
    body.android-app .dashboard-grid .menu-btn {
        min-height: 52px !important;
    }
}

/* =========================================================
   REDUCED FULL-WIDTH TOP BAR & FIXED BOTTOM ACTION BAR
   ========================================================= */

.dashboard-top-bar {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 12px !important;
    margin-bottom: 6px !important;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.dashboard-top-bar .top-bar-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
}

.dashboard-top-bar .top-bar-logo img {
    height: 24px !important;
    width: auto !important;
}

.dashboard-top-bar .top-bar-logo h2 {
    font-size: 1.12rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Dashboard Bottom Bar Navigation */
.dashboard-bottom-bar-nav {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 7px 12px !important;
    margin-top: 6px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07) !important;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 100 !important;
    box-sizing: border-box !important;
}

.bottom-bar-left-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.bottom-bar-attendance-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    background: linear-gradient(135deg, #b91c1c 0%, #000000 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    box-shadow: 0 3px 10px rgba(185, 28, 28, 0.28) !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}

.bottom-bar-attendance-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 14px rgba(185, 28, 28, 0.4) !important;
}

.bottom-bar-attendance-btn i {
    font-size: 1.05rem !important;
    color: #fca5a5 !important;
}

.attendance-status-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #94a3b8 !important;
    display: inline-block !important;
    transition: background 0.3s ease !important;
}

.attendance-status-dot.marked {
    background: #22c55e !important;
    box-shadow: 0 0 8px #22c55e !important;
}

.attendance-status-dot.unmarked {
    background: #f59e0b !important;
}

/* User Icon ONLY in bottom right corner (no name text) */
.bottom-bar-right-profile {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.bottom-bar-user-icon-btn {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

.bottom-bar-user-icon-btn:hover {
    border-color: var(--primary) !important;
    background: #fee2e2 !important;
    transform: scale(1.05) !important;
}

.bottom-bar-user-icon-btn .profile-avatar-circle {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #1e293b !important;
    font-size: 1.1rem !important;
}

/* Profile menu popping UPWARDS from bottom bar */
.bottom-dropdown-menu {
    position: absolute !important;
    bottom: calc(100% + 12px) !important;
    top: auto !important;
    right: 0 !important;
    min-width: 240px !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 14px !important;
    padding: 8px !important;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.16) !important;
    z-index: 2500 !important;
    display: none !important;
    flex-direction: column !important;
    animation: fadeUpFromBottom 0.2s ease-out !important;
}

.bottom-dropdown-menu.show {
    display: flex !important;
}

@keyframes fadeUpFromBottom {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   ATTENDANCE MODULE STYLES (CALENDAR & TABULAR VIEWS)
   ========================================================= */

/* Dedicated Employee Picker Bar for Admin Only */
.att-admin-employee-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    background: #f0fdf4 !important;
    border: 1.5px solid #86efac !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 1px 4px rgba(22, 163, 74, 0.08) !important;
}

.att-admin-employee-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #166534 !important;
    margin: 0 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.att-admin-employee-select-wrap {
    flex: 1 !important;
    min-width: 220px !important;
}

.att-employee-select {
    width: 100% !important;
    padding: 8px 12px !important;
    background: #ffffff !important;
    border: 1.5px solid #16a34a !important;
    border-radius: 8px !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    outline: none !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease !important;
}

.att-employee-select:focus {
    border-color: #15803d !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2) !important;
}

/* Action / Status Banners */
.att-today-action-card {
    margin-bottom: 12px !important;
}

.att-today-marked-banner {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    background: #ecfdf5 !important;
    border: 1.5px solid #a7f3d0 !important;
    border-radius: 12px !important;
    color: #065f46 !important;
}

.att-today-marked-banner i {
    font-size: 1.6rem !important;
    color: #10b981 !important;
}

.att-today-unmarked-banner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    background: #fffbeb !important;
    border: 1.5px solid #fde68a !important;
    border-radius: 12px !important;
    color: #92400e !important;
}

.btn-punch-now {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 3px 10px rgba(22, 163, 74, 0.3) !important;
    transition: all 0.2s ease !important;
}

.btn-punch-now:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 14px rgba(22, 163, 74, 0.45) !important;
}

.btn-admin-apply-backdate {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 14px !important;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25) !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
}

.btn-admin-apply-backdate:hover {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4) !important;
}

.btn-admin-apply-direct {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 14px !important;
    background: #ecfdf5 !important;
    color: #166534 !important;
    border: 1.5px solid #86efac !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-admin-apply-direct:hover {
    background: #16a34a !important;
    color: #ffffff !important;
    border-color: #16a34a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(22, 163, 74, 0.25) !important;
}

.pill-admin-backdate {
    background: #0284c7 !important;
    color: #ffffff !important;
}

/* Monthly Calendar Card */
.att-calendar-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 14px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

.att-calendar-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.att-nav-btn {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #334155 !important;
    font-size: 0.9rem !important;
    transition: all 0.15s ease !important;
}

.att-nav-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* 7-Column Calendar Grid */
.att-calendar-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 6px !important;
    text-align: center !important;
}

.att-weekday-header {
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    color: #64748b !important;
    padding: 4px 0 8px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.att-day-cell {
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

.att-day-cell.empty {
    visibility: hidden !important;
    cursor: default !important;
}

.att-day-inner {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    transition: all 0.2s ease !important;
}

.att-day-cell:active .att-day-inner {
    transform: scale(0.92) !important;
}

/* Selected Day Ring Indicator */
.att-day-cell.selected-day .att-day-inner {
    box-shadow: 0 0 0 3px #0f172a, 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    transform: scale(1.06) !important;
}

/* GREEN CIRCLE for Recorded Attendance */
.att-day-cell.att-present .att-day-inner {
    border: 2.5px solid #16a34a !important;
    background: rgba(22, 163, 74, 0.16) !important;
    color: #15803d !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25) !important;
}

/* RED CIRCLE for Approved Leave (Full Day) */
.att-day-cell.att-leave .att-day-inner {
    border: 2.5px solid #dc2626 !important;
    background: rgba(220, 38, 38, 0.16) !important;
    color: #b91c1c !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25) !important;
}

/* HALF RED (LEFT) & HALF GREEN (RIGHT): First Half Leave + Attended Second Half */
.att-day-cell.att-half-first-leave-attended .att-day-inner {
    background: linear-gradient(90deg, #ef4444 0%, #ef4444 50%, #16a34a 50%, #16a34a 100%) !important;
    border: 2px solid #b91c1c !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

/* HALF GREEN (LEFT) & HALF RED (RIGHT): Attended First Half + Second Half Leave */
.att-day-cell.att-half-second-leave-attended .att-day-inner {
    background: linear-gradient(90deg, #16a34a 0%, #16a34a 50%, #ef4444 50%, #ef4444 100%) !important;
    border: 2px solid #15803d !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

/* First Half Leave only (no attendance) - Left Red, Right Gray */
.att-day-cell.att-half-first-leave-only .att-day-inner {
    background: linear-gradient(90deg, #fee2e2 0%, #fee2e2 50%, #f1f5f9 50%, #f1f5f9 100%) !important;
    border: 2px dashed #ef4444 !important;
    color: #b91c1c !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 5px rgba(220, 38, 38, 0.15) !important;
}

/* Second Half Leave only (no attendance) - Left Gray, Right Red */
.att-day-cell.att-half-second-leave-only .att-day-inner {
    background: linear-gradient(90deg, #f1f5f9 0%, #f1f5f9 50%, #fee2e2 50%, #fee2e2 100%) !important;
    border: 2px dashed #ef4444 !important;
    color: #b91c1c !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 5px rgba(220, 38, 38, 0.15) !important;
}

/* AMBER / STRIKE for Attendance Deleted by Admin */
.att-day-cell.att-deleted .att-day-inner {
    border: 2.5px dashed #d97706 !important;
    background: rgba(217, 119, 6, 0.15) !important;
    color: #b45309 !important;
    font-weight: 800 !important;
    text-decoration: line-through !important;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.2) !important;
}

/* Today Outline if neither present nor leave */
.att-day-cell.is-today:not(.att-present):not(.att-leave):not(.att-deleted):not(.att-half-first-leave-attended):not(.att-half-second-leave-attended) .att-day-inner {
    outline: 2px dashed #3b82f6 !important;
    outline-offset: 2px !important;
    color: #1d4ed8 !important;
    font-weight: 700 !important;
}

/* Calendar Legend & Summary Stats */
.att-calendar-legend {
    display: flex !important;
    gap: 12px !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 14px !important;
    padding-top: 12px !important;
    border-top: 1px solid #f1f5f9 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    flex-wrap: wrap !important;
}

.legend-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #334155 !important;
}

.legend-circle-green {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    border: 2.5px solid #16a34a !important;
    background: rgba(22, 163, 74, 0.2) !important;
    display: inline-block !important;
}

.legend-circle-red {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    border: 2.5px solid #dc2626 !important;
    background: rgba(220, 38, 38, 0.2) !important;
    display: inline-block !important;
}

.legend-circle-split-first {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    background: linear-gradient(90deg, #ef4444 0%, #ef4444 50%, #16a34a 50%, #16a34a 100%) !important;
    border: 1.5px solid #b91c1c !important;
    display: inline-block !important;
}

.legend-circle-split-second {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    background: linear-gradient(90deg, #16a34a 0%, #16a34a 50%, #ef4444 50%, #ef4444 100%) !important;
    border: 1.5px solid #15803d !important;
    display: inline-block !important;
}

.legend-circle-deleted {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    border: 2px dashed #d97706 !important;
    background: rgba(217, 119, 6, 0.2) !important;
    display: inline-block !important;
}

/* Interactive Day Details Card */
#attSelectedDayInfo {
    margin-top: 14px;
    animation: fadeInDayCard 0.25s ease;
}

@keyframes fadeInDayCard {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.day-details-card {
    border-radius: 14px;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.day-details-card.present-card {
    border-color: #86efac !important;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
}

.day-details-card.deleted-card {
    border-color: #fca5a5 !important;
    background: linear-gradient(135deg, #fff1f2 0%, #fee2e2 100%) !important;
}

.day-details-card.leave-card {
    border-color: #fed7aa !important;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%) !important;
}

.day-details-card.unmarked-card {
    border-color: #e2e8f0 !important;
    background: #f8fafc !important;
}

.day-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.day-details-title {
    font-weight: 700;
    font-size: 0.94rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.day-today-tag {
    background: #3b82f6;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.day-status-pill {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pill-present {
    background: #16a34a;
    color: white;
}

.pill-deleted {
    background: #dc2626;
    color: white;
}

.pill-leave {
    background: #ea580c;
    color: white;
}

.pill-unmarked {
    background: #94a3b8;
    color: white;
}

.day-details-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.86rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.detail-label {
    color: #475569;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.detail-value {
    color: #0f172a;
    font-weight: 600;
}

.text-green-bold {
    color: #15803d !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
}

.text-red-bold {
    color: #b91c1c !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
}

/* Dashboard Icon & Button Scaling */

:root {
    --dash-icon-scale: 1;
    --dash-font-scale: 1;
}

.dashboard-grid .menu-btn {
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-touch-callout: none !important;
    touch-action: manipulation !important;
}

.dashboard-grid .menu-btn i {
    font-size: calc(clamp(1.2rem, 3.2vh, 1.8rem) * var(--dash-icon-scale, 1)) !important;
    transition: font-size 0.15s ease, transform 0.15s ease !important;
}

.dashboard-grid .menu-btn span {
    font-size: calc(clamp(0.72rem, 1.6vh, 0.88rem) * var(--dash-font-scale, 1)) !important;
    transition: font-size 0.15s ease !important;
}

.dashboard-grid .menu-btn:last-child:nth-child(odd) i {
    font-size: calc(clamp(1.15rem, 2.8vh, 1.6rem) * var(--dash-icon-scale, 1)) !important;
}

.dashboard-grid .menu-btn:last-child:nth-child(odd) span {
    font-size: calc(clamp(0.8rem, 1.8vh, 0.95rem) * var(--dash-font-scale, 1)) !important;
}

/* Desktop sizing with scale variable */
@media (min-width: 769px) {
    .menu-btn i {
        font-size: calc(4rem * var(--dash-icon-scale, 1)) !important;
    }
    .menu-btn span {
        font-size: calc(1.4rem * var(--dash-font-scale, 1)) !important;
    }
}

/* =========================================================
   WEB APPLICATION DASHBOARD: STRICT 4x2 ZERO-SCROLL LAYOUT
   ========================================================= */

body:not(.android-app).dashboard-active {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
}

body:not(.android-app).dashboard-active .container {
    height: 100vh !important;
    max-height: 100vh !important;
    padding: 14px 28px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: stretch !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

body:not(.android-app) .login-card.dashboard-card {
    flex: 1 1 auto !important;
    height: 100% !important;
    max-height: 100% !important;
    max-width: 1400px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 14px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

body:not(.android-app) .dashboard-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    grid-template-rows: repeat(2, 1fr) !important;
    grid-auto-rows: 1fr !important;
    gap: 16px !important;
    margin: auto 0 !important;
    padding: 0 !important;
    flex: 0 1 75% !important;
    height: 75% !important;
    max-height: 75% !important;
    min-height: 0 !important;
    align-content: center !important;
    width: 100% !important;
}

body:not(.android-app) .dashboard-grid .menu-btn {
    aspect-ratio: auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 10px 16px !important;
    border-radius: 18px !important;
    gap: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 20px -3px rgba(0, 0, 0, 0.4) !important;
    box-sizing: border-box !important;
    grid-column: auto !important;
    grid-row: auto !important;
}

body:not(.android-app) .dashboard-grid .menu-btn i {
    font-size: calc(clamp(1.6rem, 3.2vh, 2.5rem) * var(--dash-icon-scale, 1)) !important;
    margin: 0 !important;
    line-height: 1 !important;
}

body:not(.android-app) .dashboard-grid .menu-btn span {
    font-size: calc(clamp(0.88rem, 1.6vh, 1.15rem) * var(--dash-font-scale, 1)) !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

/* =========================================================
   ANDROID MOBILE APP: AUTO-LAYOUT CUSTOMIZER & REORDER
   ========================================================= */

/* 1-Column Auto-Layout Format (for <= 4 buttons: 1x1, 1x2, 1x3, 1x4) */
body.android-app .dashboard-grid.grid-1-col {
    grid-template-columns: 1fr !important;
    grid-auto-rows: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
}

body.android-app .dashboard-grid.grid-1-col .menu-btn,
body.android-app .dashboard-grid.grid-1-col .menu-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    padding: 12px 20px !important;
    min-height: 64px !important;
}

body.android-app .dashboard-grid.grid-1-col .menu-btn i {
    font-size: clamp(1.35rem, 3.2vh, 1.95rem) !important;
    margin: 0 !important;
}

body.android-app .dashboard-grid.grid-1-col .menu-btn span {
    font-size: clamp(0.92rem, 2vh, 1.12rem) !important;
    font-weight: 600 !important;
    text-align: left !important;
}

/* 2-Column Auto-Layout Format (for >= 5 buttons: 2x3, 2x4, etc.) */
body.android-app .dashboard-grid.grid-2-col {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: 1fr !important;
    gap: 8px !important;
}

/* Horizontally stretched button (last button when odd count, e.g. 5 or 7 buttons) */
body.android-app .dashboard-grid.grid-2-col .menu-btn.span-full,
body.android-app .dashboard-grid .menu-btn.span-full {
    grid-column: span 2 !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 6px 16px !important;
}

body.android-app .dashboard-grid.grid-2-col .menu-btn.span-full i,
body.android-app .dashboard-grid .menu-btn.span-full i {
    font-size: clamp(1.2rem, 3vh, 1.65rem) !important;
    margin: 0 !important;
}

body.android-app .dashboard-grid.grid-2-col .menu-btn.span-full span,
body.android-app .dashboard-grid .menu-btn.span-full span {
    font-size: clamp(0.82rem, 1.8vh, 0.96rem) !important;
    text-align: left !important;
}

/* Android Home-Screen Drag & Drop Reordering */
body.android-app .dashboard-grid .menu-btn {
    position: relative;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    transition: transform 0.22s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.2s ease, opacity 0.2s ease !important;
}

body.android-app .dashboard-grid .menu-btn.is-dragging {
    opacity: 0.18 !important;
    pointer-events: none !important;
}

/* Floating clone during drag (Android launcher icon lift effect) */
.dash-drag-ghost {
    position: fixed !important;
    z-index: 99999 !important;
    pointer-events: none !important;
    transform: translate(-50%, -50%) scale(1.06) !important;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.65), 0 0 0 2px rgba(239, 68, 68, 0.8) !important;
    opacity: 0.94 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border-radius: 16px !important;
    will-change: left, top, transform;
}

/* Placeholder indicating target drop location */
body.android-app .dash-btn-placeholder {
    border: 2px dashed rgba(239, 68, 68, 0.75) !important;
    background: rgba(239, 68, 68, 0.08) !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    min-height: 55px;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1) !important;
}

body.android-app .dashboard-grid.grid-2-col .dash-btn-placeholder.span-full {
    grid-column: span 2 !important;
}


/* Order Comments / Instructions Visibility Fix */
#ordComments {
    width: 100% !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    font-family: inherit !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    resize: vertical !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

#ordComments:focus {
    border-color: #b91c1c !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15) !important;
    background: #ffffff !important;
    color: #0f172a !important;
}

#ordComments::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
    font-weight: 400 !important;
}

/* User Management Photo & ID Styles */
.user-photo-upload-container {
    transition: border-color 0.2s, background 0.2s;
}

.user-photo-upload-container:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.user-id-upload-container {
    transition: border-color 0.2s, background 0.2s;
}

.user-id-upload-container:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

#genericImagePreviewModal {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ========================================================
   Billing & 2D Barcode Scanner Styles
   ======================================================== */
.billing-barcode-chip {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary, #2563eb);
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
    word-break: break-all;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#barcodeScannerArea {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    margin-top: 14px;
}

#scannerVideoRegion {
    width: 100% !important;
    min-height: 260px;
    background: #000;
    overflow: hidden;
}

#scannerVideoRegion video {
    width: 100% !important;
    height: auto !important;
    max-height: 360px;
    object-fit: cover !important;
    border-radius: 8px;
}

.scanner-guide-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border: 2px dashed rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 10;
}

.scanner-laser-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444, 0 0 12px #ef4444;
    top: 0;
    animation: scannerScanAnim 2s ease-in-out infinite alternate;
}

@keyframes scannerScanAnim {
    0% { top: 4px; }
    100% { top: calc(100% - 6px); }
}

.scanner-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.95);
    color: #fff;
    z-index: 20;
    position: relative;
    flex-wrap: wrap;
    gap: 8px;
}

/* Garment Brand Badges */
.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 9999px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.brand-badge-colorplus {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.brand-badge-raymond {
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.brand-badge-parkavenue {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
}

.brand-badge-parx {
    background: #ccfbf1;
    color: #115e59;
    border: 1px solid #99f6e4;
}

.brand-badge-default {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.article-code-chip {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-main, #1e293b);
    background: rgba(0, 0, 0, 0.04);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mrp-badge {
    font-weight: 700;
    font-size: 0.95rem;
    color: #059669;
}

.ocr-highlight-pulse {
    animation: ocrFieldHighlight 2s ease-out;
}

@keyframes ocrFieldHighlight {
    0% { background-color: rgba(16, 185, 129, 0.35); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.4); }
    50% { background-color: rgba(16, 185, 129, 0.2); }
    100% { background-color: var(--input-bg); box-shadow: none; }
}

.tag-ocr-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    color: #065f46;
    font-size: 0.88rem;
    margin-bottom: 14px;
}

/* Customer Pick Cards for Billing */
.cust-pick-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cust-pick-card:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.scanned-article-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    padding: 10px 12px;
    border-radius: 8px;
    gap: 10px;
}

.article-discount-input {
    width: 90px !important;
    padding: 6px 8px !important;
    font-weight: 600;
    text-align: right;
    border-radius: 6px;
    border: 1.5px solid var(--glass-border);
    background: var(--input-bg);
    color: var(--text-main);
}

.article-discount-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}


/* Compact, High-Contrast Clear Button */
.compact-clear-btn {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.15s ease !important;
}

.compact-clear-btn:hover {
    background: #b91c1c !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Filter Toolbar Responsive Organization */
.orders-filter-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}

.filter-pill-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--input-bg);
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.filter-pill-box input,
.filter-pill-box select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 0.82rem;
}

.filter-pill-box input:focus,
.filter-pill-box select:focus {
    border-color: var(--primary);
    outline: none;
}

/* Custom Date Input Pill & compact date input - Strictly for Android mobile app only */
body.android-app .filter-pill-box input[type="date"] {
    width: 100px;
    max-width: 102px;
    padding: 3px 4px;
    font-size: 0.78rem;
}

body.android-app .filter-pill-box input[type="date"]::-webkit-calendar-picker-indicator {
    margin: 0;
    padding: 0;
    cursor: pointer;
}

body.android-app .custom-date-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid #94a3b8;
    border-radius: 6px;
    padding: 3px 8px;
    min-width: 58px;
    height: 28px;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
    vertical-align: middle;
}

body.android-app .custom-date-pill input[type="date"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 2 !important;
    -webkit-appearance: none !important;
    background: transparent !important;
}

body.android-app .custom-date-pill .custom-date-text {
    font-size: 0.78rem;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 480px) {
    body.android-app .orders-filter-container {
        padding: 8px;
    }
    body.android-app .filter-pill-box {
        padding: 4px 6px;
        gap: 4px;
    }
    body.android-app .filter-pill-box input[type="date"] {
        width: 95px;
        max-width: 98px;
        padding: 2px 2px;
        font-size: 0.75rem;
    }
    body.android-app .filter-pill-box select {
        padding: 3px 4px;
        font-size: 0.78rem;
    }
    body.android-app .custom-date-pill {
        padding: 2px 6px;
        min-width: 52px;
        height: 26px;
    }
    body.android-app .custom-date-pill .custom-date-text {
        font-size: 0.75rem;
    }
}

/* Daily Ledger Breakdown Box */
.ledger-sub-breakdown {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 10px;
    margin-top: 6px;
    margin-bottom: 12px;
}

.ledger-sub-item-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Measurement View Editable Active State */
.measurement-editable-active input {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 2px solid #2563eb !important;
    cursor: text !important;
}

/* Tracking Tab Filter Controls */
#trackingUserFilter,
#trackingDateFilter {
    background: #ffffff !important;
    color: var(--text-main) !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-family: inherit !important;
    font-weight: 500 !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#trackingUserFilter:focus,
#trackingDateFilter:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

#trackingUserFilter option {
    background: #ffffff !important;
    color: #111827 !important;
}

/* All Orders Alert Button & Badges */
.all-orders-alert-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #b91c1c;
    background: #fef2f2;
    border: 1.5px solid #f87171;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.12);
}

.all-orders-alert-btn:hover {
    background: #fee2e2;
    border-color: #ef4444;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(220, 38, 38, 0.22);
}

.all-orders-alert-btn.active {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #b91c1c !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3), 0 4px 12px rgba(220, 38, 38, 0.35) !important;
}

.all-orders-alert-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1;
}

.all-orders-alert-badge.alert-badge-red {
    background: #ef4444;
    color: #ffffff;
}

.all-orders-alert-badge.alert-badge-yellow {
    background: #f59e0b;
    color: #ffffff;
}

.all-orders-alert-btn.active .all-orders-alert-badge.alert-badge-red {
    background: #ffffff !important;
    color: #dc2626 !important;
}

.all-orders-alert-btn.active .all-orders-alert-badge.alert-badge-yellow {
    background: #fef3c7 !important;
    color: #b45309 !important;
}

/* Alert Rows (Red: Till Today | Yellow: Next Days) */
.data-table tr.alert-row-red {
    background: #fff5f5 !important;
    border-left: 5px solid #dc2626 !important;
}

.data-table tr.alert-row-red:hover {
    background: #fee2e2 !important;
}

.data-table tr.alert-row-yellow {
    background: #fffdf0 !important;
    border-left: 5px solid #f59e0b !important;
}

.data-table tr.alert-row-yellow:hover {
    background: #fef3c7 !important;
}

/* Small Indicator Pill in Table */
.alert-pill-indicator {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.alert-pill-indicator.red {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.alert-pill-indicator.yellow {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

@media (max-width: 768px) {
    .data-table tr.alert-row-red {
        background: #fef2f2 !important;
        border: 1.5px solid #fca5a5 !important;
        border-left: 6px solid #dc2626 !important;
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1) !important;
    }

    .data-table tr.alert-row-yellow {
        background: #fffbeb !important;
        border: 1.5px solid #fde68a !important;
        border-left: 6px solid #d97706 !important;
        box-shadow: 0 4px 12px rgba(217, 119, 6, 0.1) !important;
    }
}

/* Daily Ledger Two-Tab Navigation */
.ledger-tabs-bar {
    display: flex;
    gap: 10px;
    margin: 12px 0 16px 0;
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 8px;
}

.ledger-tab-btn {
    padding: 8px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.ledger-tab-btn:hover {
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.05);
}

.ledger-tab-btn.active {
    background: var(--primary, #dc2626);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

/* Customer Search in Credits Tab */
.customer-match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.customer-match-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.customer-match-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08);
}

.customer-match-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.customer-match-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
}

.customer-match-mobile {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.customer-match-address {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.customer-match-slips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.customer-slip-tag {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.credit-badge-due {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.credit-badge-paid {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.credit-badge-zero {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* Items Checked In Card (Admin Only) */
.checked-in-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 16px;
    margin-top: 10px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.checked-in-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    user-select: none;
}

.checked-in-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    user-select: none;
}

.checked-in-toggle-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2563eb;
}

.checked-in-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checked-in-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 1px solid #bfdbfe;
}

.checked-in-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.checked-in-subtitle {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 500;
}

.checked-in-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.checked-in-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
    gap: 10px;
}

.checked-in-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    background: var(--input-bg, #f8fafc);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.checked-in-chip:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.checked-in-chip.total-chip {
    background: #eff6ff;
    border-color: #93c5fd;
}

.checked-in-chip.total-chip .chip-label {
    color: #1d4ed8;
    font-weight: 700;
}

.checked-in-chip.total-chip .chip-val {
    color: #1e40af;
}

.checked-in-chip .chip-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 2px;
}

.checked-in-chip .chip-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.checked-in-filter-btn.active {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #1d4ed8 !important;
}

@media (max-width: 768px) {
    .checked-in-card {
        padding: 12px 14px;
    }
    .checked-in-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 8px;
    }
    .checked-in-chip {
        padding: 6px 8px;
    }
    .checked-in-chip .chip-val {
        font-size: 1rem;
    }
}

/* ==========================================================================
   CUSTOMER WALKIN TRACKING & DYNAMIC DASHBOARD LAYOUT MATRIX
   ========================================================================== */

/* UI LAYOUT MATRIX RULE 1: Mobile App - Dynamic Full-Screen Grid (Adjustable height according to button count) */
body.android-app .dashboard-grid,
body.mobile-app .dashboard-grid,
.dashboard-grid.grid-mobile-dynamic {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(var(--mobile-grid-rows, 5), 1fr) !important;
    grid-auto-rows: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    height: 100% !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 8px 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    align-content: stretch !important;
}

body.android-app .dashboard-grid .menu-btn,
body.mobile-app .dashboard-grid .menu-btn,
.dashboard-grid.grid-mobile-dynamic .menu-btn {
    aspect-ratio: auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 16px !important;
    padding: 10px 12px !important;
    gap: 8px !important;
    box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.45) !important;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.2s ease !important;
}

/* Tall cards (e.g. Salesman with 4 buttons / 2 rows): larger icons and spacing */
body.android-app .dashboard-grid.grid-tall-cards .menu-btn i,
body.mobile-app .dashboard-grid.grid-tall-cards .menu-btn i,
.dashboard-grid.grid-mobile-dynamic.grid-tall-cards .menu-btn i {
    font-size: calc(clamp(2rem, 4.5vh, 3rem) * var(--dash-icon-scale, 1)) !important;
    margin: 0 !important;
    line-height: 1 !important;
}

body.android-app .dashboard-grid.grid-tall-cards .menu-btn span:not(.takeup-active-badge),
body.mobile-app .dashboard-grid.grid-tall-cards .menu-btn span:not(.takeup-active-badge),
.dashboard-grid.grid-mobile-dynamic.grid-tall-cards .menu-btn span:not(.takeup-active-badge) {
    font-size: calc(clamp(0.95rem, 2vh, 1.25rem) * var(--dash-font-scale, 1)) !important;
    font-weight: 600 !important;
    text-align: center !important;
    line-height: 1.2 !important;
}

/* Compact cards (e.g. Admin with 10 buttons / 5 rows): optimized icon/text sizing */
body.android-app .dashboard-grid.grid-compact-cards .menu-btn i,
body.mobile-app .dashboard-grid.grid-compact-cards .menu-btn i,
.dashboard-grid.grid-mobile-dynamic.grid-compact-cards .menu-btn i {
    font-size: calc(clamp(1.4rem, 2.8vh, 1.85rem) * var(--dash-icon-scale, 1)) !important;
    margin: 0 !important;
    line-height: 1 !important;
}

body.android-app .dashboard-grid.grid-compact-cards .menu-btn span:not(.takeup-active-badge),
body.mobile-app .dashboard-grid.grid-compact-cards .menu-btn span:not(.takeup-active-badge),
.dashboard-grid.grid-mobile-dynamic.grid-compact-cards .menu-btn span:not(.takeup-active-badge) {
    font-size: calc(clamp(0.78rem, 1.6vh, 0.92rem) * var(--dash-font-scale, 1)) !important;
    font-weight: 600 !important;
    text-align: center !important;
    line-height: 1.15 !important;
}

/* Horizontally stretched button (last button when odd count) */
body.android-app .dashboard-grid .menu-btn.span-full,
body.mobile-app .dashboard-grid .menu-btn.span-full,
.dashboard-grid.grid-mobile-dynamic .menu-btn.span-full {
    grid-column: span 2 !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 8px 16px !important;
}

/* UI LAYOUT MATRIX RULE 2: Web Application - Non-Admin Users (2x4 Grid format) */
body:not(.android-app):not(.mobile-app) .dashboard-grid.grid-user-2x4 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(2, 1fr) !important;
    grid-auto-rows: 1fr !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 820px !important;
    height: 72% !important;
    max-height: 560px !important;
    margin: auto !important;
    padding: 14px !important;
    box-sizing: border-box !important;
    align-content: center !important;
}

body:not(.android-app):not(.mobile-app) .dashboard-grid.grid-user-2x4 .menu-btn {
    aspect-ratio: auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 120px !important;
    padding: 24px 20px !important;
    border-radius: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.45) !important;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.2s ease !important;
}

body:not(.android-app):not(.mobile-app) .dashboard-grid.grid-user-2x4 .menu-btn:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 16px 32px -4px rgba(0, 0, 0, 0.6) !important;
}

body:not(.android-app):not(.mobile-app) .dashboard-grid.grid-user-2x4 .menu-btn i {
    font-size: calc(clamp(2.4rem, 4.5vh, 3.4rem) * var(--dash-icon-scale, 1)) !important;
    margin: 0 !important;
    line-height: 1 !important;
}

body:not(.android-app):not(.mobile-app) .dashboard-grid.grid-user-2x4 .menu-btn span:not(.takeup-active-badge) {
    font-size: calc(clamp(1.05rem, 2vh, 1.3rem) * var(--dash-font-scale, 1)) !important;
    font-weight: 600 !important;
    text-align: center !important;
    line-height: 1.2 !important;
}

/* UI LAYOUT MATRIX RULE 3: Web Application - Admin (4x3 Grid format - user confirmed ok) */
body:not(.android-app):not(.mobile-app) .dashboard-grid.grid-user-4x3 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    grid-template-rows: repeat(3, minmax(110px, 1fr)) !important;
    grid-auto-rows: minmax(110px, 1fr) !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 1180px !important;
    margin: 12px auto !important;
    padding: 10px !important;
    box-sizing: border-box !important;
}

body:not(.android-app):not(.mobile-app) .dashboard-grid.grid-user-4x3 .menu-btn {
    aspect-ratio: auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 110px !important;
    padding: 16px !important;
    border-radius: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.4) !important;
}

body:not(.android-app):not(.mobile-app) .dashboard-grid.grid-user-4x3 .menu-btn i {
    font-size: 2.2rem !important;
    margin: 0 !important;
    line-height: 1 !important;
}

body:not(.android-app):not(.mobile-app) .dashboard-grid.grid-user-4x3 .menu-btn span:not(.takeup-active-badge) {
    font-size: 0.96rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    line-height: 1.2 !important;
}

/* Take Up Action Button Accents */
.menu-btn.menu-btn-takeup {
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #0f172a 100%) !important;
    border-color: rgba(52, 211, 153, 0.3) !important;
}
.menu-btn.menu-btn-takeup:hover {
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.45) !important;
    border-color: rgba(52, 211, 153, 0.6) !important;
}

/* Take Up Active Badge on Dashboard Button */
.takeup-active-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid #10b981;
    color: #a7f3d0;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    animation: pulseBadge 1.8s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Floating Docked Walk-in Bar */
.floating-walkin-bar {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1.5px solid #b91c1c;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 10px rgba(185, 28, 28, 0.15);
    border-radius: 30px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    color: #0f172a;
    font-size: 0.85rem;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}
.floating-walkin-bar:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2), 0 0 15px rgba(185, 28, 28, 0.25);
}

/* Digital Monospace Timer */
.walkin-digital-timer {
    font-family: 'Courier New', Courier, monospace, sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Multi-session Cards in Modal */
.walkin-session-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}
.walkin-session-card.active-session-1 {
    border-left: 4px solid #b91c1c;
}
.walkin-session-card.active-session-2 {
    border-left: 4px solid #4b5563;
}

/* Toggle Buttons for Outcome & Segments */
.segment-toggle-btn {
    flex: 1;
    padding: 6px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #475569;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.segment-toggle-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.segment-toggle-btn.active {
    background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%) !important;
    border-color: #991b1b !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(185, 28, 28, 0.25);
}

.outcome-btn-sold {
    flex: 1;
    padding: 7px 14px;
    border-radius: 8px;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    color: #166534;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.outcome-btn-sold:hover {
    background: #dcfce7;
    border-color: #4ade80;
}
.outcome-btn-sold.active {
    background: #16a34a !important;
    border-color: #15803d !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.outcome-btn-unsold {
    flex: 1;
    padding: 7px 14px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    color: #991b1b;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.outcome-btn-unsold:hover {
    background: #fee2e2;
    border-color: #f87171;
}
.outcome-btn-unsold.active {
    background: #dc2626 !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* Radio / Card Selectors for Logic Trees */
.logic-tree-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}
.logic-tree-card h4 {
    margin: 0 0 8px 0;
    font-size: 0.88rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.select-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.select-pill-btn {
    padding: 5px 12px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.select-pill-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.select-pill-btn.active {
    background: #b91c1c !important;
    border-color: #991b1b !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(185, 28, 28, 0.25);
}

/* Yes / No Toggle Pills */
.yes-no-btn {
    flex: 1;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.yes-no-btn.active-yes {
    background: #16a34a !important;
    border-color: #15803d !important;
    color: #ffffff !important;
}
.yes-no-btn.active-no {
    background: #dc2626 !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
}

/* Unsold Reason Multi-Select Checkboxes */
.unsold-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 6px;
    margin-bottom: 8px;
}
.unsold-checkbox-card {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    font-size: 0.82rem;
    color: #334155;
    font-weight: 500;
}
.unsold-checkbox-card:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.unsold-checkbox-card.checked {
    background: #fef2f2;
    border-color: #f87171;
    color: #b91c1c;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.15);
}
.unsold-checkbox-card input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #b91c1c;
    cursor: pointer;
}
.unsold-detail-box {
    background: #fef2f2;
    border: 1px dashed #fca5a5;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
    animation: fadeInUnsold 0.2s ease;
}

/* Compact input and select elements for Walk-in Outcomes */
#modalWalkinOutcome .input-group,
#modalTakeUpSession .input-group {
    margin-bottom: 8px;
    position: relative;
}
#modalWalkinOutcome .input-group input,
#modalTakeUpSession .input-group input {
    height: 36px;
    padding: 6px 10px;
    font-size: 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    width: 100%;
}
#modalWalkinOutcome .input-group input:focus,
#modalTakeUpSession .input-group input:focus {
    border-color: #b91c1c;
    box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.15);
}
#modalWalkinOutcome .input-group label,
#modalTakeUpSession .input-group label {
    font-size: 0.76rem;
    color: #64748b;
    top: -8px;
    left: 8px;
    background: #ffffff;
    padding: 0 4px;
}
#modalWalkinOutcome .input-group .input-icon,
#modalTakeUpSession .input-group .input-icon {
    font-size: 0.8rem;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}
.walkin-compact-input,
.walkin-compact-select,
.walkin-compact-textarea {
    width: 100%;
    padding: 6px 10px;
    font-size: 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.walkin-compact-input:focus,
.walkin-compact-select:focus,
.walkin-compact-textarea:focus {
    border-color: #b91c1c;
    box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.15);
}
@keyframes fadeInUnsold {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   --- WORKSHOP STATUS & TASK TRACKING STYLES ---
   ============================================================ */
.workshop-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 1.2rem;
}

.workshop-metric-card {
    background: var(--card-bg, rgba(30, 41, 59, 0.7));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.workshop-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.workshop-metric-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.workshop-metric-info {
    display: flex;
    flex-direction: column;
}

.workshop-metric-val {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main, #f8fafc);
}

.workshop-metric-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Garment & Specialty Badges - Vibrant, High-Contrast & Gradient */
.badge-garment {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 7px;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
    white-space: nowrap;
}

.badge-garment i {
    font-size: 0.85rem;
    color: #ffffff !important;
}

.badge-garment span {
    color: #ffffff !important;
}

.badge-garment-shirt {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
}

.badge-garment-trouser {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
}

.badge-garment-blazer {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
}

.badge-garment-nehru {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%) !important;
}

.badge-garment-kurta {
    background: linear-gradient(135deg, #db2777 0%, #be185d 100%) !important;
}

.badge-garment-patani {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%) !important;
}

.badge-garment-vest {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

.badge-garment-pjama {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
}

.badge-garment-safari {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
}

.badge-garment-other {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
}

/* Specialty Match Indicator */
.badge-spec-match {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
    letter-spacing: 0.2px;
}

.badge-spec-mismatch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
}

/* Workshop Task Status Badges */
.badge-task-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.status-assigned {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.status-inprogress {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.status-trialready {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

.status-completed {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.status-alteration {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.35);
}

/* Priority Badges */
.badge-priority {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.priority-normal {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
}

.priority-high {
    background: rgba(249, 115, 22, 0.18);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.35);
}

.priority-urgent {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.45);
    animation: pulseUrgent 2s infinite;
}

@keyframes pulseUrgent {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 8px 2px rgba(239, 68, 68, 0.4); }
}

/* Order Item Selector Chips in Modal */
.order-item-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 12px 0;
}

.order-item-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1.5px solid rgba(99, 102, 241, 0.3);
    color: var(--text-main, #f8fafc);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.order-item-chip:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: #6366f1;
    transform: translateY(-1px);
}

.order-item-chip.selected {
    background: #6366f1;
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* ============================================================
   --- CUTTING & STITCHING TABS & KARIGAR PORTAL ---
   ============================================================ */
.workshop-subtabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 0.8rem;
    border-bottom: 2px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    padding-bottom: 8px;
    flex-wrap: nowrap !important;
    width: 100%;
    box-sizing: border-box;
}

.ws-subtab-btn {
    background: var(--input-bg, rgba(255, 255, 255, 0.05));
    border: 1.5px solid var(--glass-border, rgba(255, 255, 255, 0.15));
    color: var(--text-muted, #94a3b8);
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    flex: 1 1 50%;
    min-width: 0;
    white-space: nowrap;
}

.ws-subtab-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    color: var(--text-main, #f8fafc);
    border-color: rgba(99, 102, 241, 0.4);
}

.ws-subtab-btn.active {
    background: #6366f1;
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.ws-subtab-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 0.76rem;
    font-weight: 700;
}

.ws-subtab-btn.active .ws-subtab-badge {
    background: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.btn-mark-cut {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.18s ease;
}

.btn-mark-cut:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

.btn-assign-karigar {
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.18s ease;
}

.btn-assign-karigar:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.karigar-dropdown {
    padding: 5px 8px;
    border-radius: 6px;
    border: 1.5px solid var(--glass-border, rgba(255, 255, 255, 0.18));
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--input-bg, #1e293b);
    color: var(--text-main, #f8fafc);
    max-width: 220px;
    cursor: pointer;
}

.karigar-portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--glass-border, rgba(255, 255, 255, 0.1));
}

.btn-mark-ready {
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.18s ease;
}

.btn-mark-ready:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.badge-ready-done {
    background: rgba(16, 185, 129, 0.18);
    color: #10b981;
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Karigar Mobile-Optimized Task Cards & Urgency Badges */
.karigar-task-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 72vh;
    overflow-y: auto;
    padding-right: 4px;
}

.karigar-task-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.karigar-task-card.pending {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-left: 4px solid var(--primary, #dc2626);
}

.karigar-task-card.pending.alert-red {
    border: 1.5px solid rgba(239, 68, 68, 0.45);
    border-left: 5px solid #ef4444;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.06) 0%, #ffffff 100%);
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.1);
}

.karigar-task-card.pending.alert-yellow {
    border: 1.5px solid rgba(245, 158, 11, 0.45);
    border-left: 5px solid #f59e0b;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.06) 0%, #ffffff 100%);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.1);
}

.karigar-task-card.completed-collapsed {
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-left: 4px solid #10b981;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.karigar-task-card.completed-collapsed:hover {
    background: rgba(16, 185, 129, 0.04);
}

.task-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.task-card-row.row-dates {
    background: rgba(0, 0, 0, 0.025);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 0.84rem;
}

.alert-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.alert-filter-chip.red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1.5px solid rgba(239, 68, 68, 0.35);
}

.alert-filter-chip.red.active, .alert-filter-chip.red:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.35);
}

.alert-filter-chip.yellow {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1.5px solid rgba(245, 158, 11, 0.35);
}

.alert-filter-chip.yellow.active, .alert-filter-chip.yellow:hover {
    background: rgba(245, 158, 11, 0.25);
    border-color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.badge-alert-red {
    background: rgba(239, 68, 68, 0.18);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.5);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.74rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.badge-alert-yellow {
    background: rgba(245, 158, 11, 0.18);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.5);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.74rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

/* Merged Red & Yellow Alert Pill (Just signs and counts) */
.merged-alert-pill {
    display: inline-flex;
    align-items: center;
    background: var(--input-bg, rgba(255, 255, 255, 0.05));
    border: 1.5px solid var(--glass-border, rgba(255, 255, 255, 0.15));
    border-radius: 8px;
    padding: 2px 4px;
    gap: 2px;
    user-select: none;
    box-sizing: border-box;
}

.alert-subchip {
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    user-select: none;
    color: var(--text-main);
}

.alert-subchip.red {
    color: #ef4444;
}

.alert-subchip.red.active, .alert-subchip.red:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.alert-subchip.yellow {
    color: #f59e0b;
}

.alert-subchip.yellow.active, .alert-subchip.yellow:hover {
    background: rgba(245, 158, 11, 0.22);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.alert-pill-sep {
    width: 1px;
    height: 18px;
    background: var(--glass-border, rgba(255, 255, 255, 0.2));
    margin: 0 2px;
}

/* Mark Cut Modal Styles */
.mark-cut-garment-box {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.mark-cut-garment-box .grid-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    font-size: 0.84rem;
}

/* Karigar Portal Mobile Responsiveness & Polish */
.karigar-controls-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 640px) {
    .karigar-portal-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
    .karigar-portal-header > div:last-child {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
    .karigar-controls-bar {
        gap: 6px;
    }
    .task-card-row.row-dates {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 6px !important;
        padding: 8px 10px !important;
    }
    .task-card-row.row-actions {
        flex-direction: column;
        align-items: stretch !important;
        gap: 8px !important;
    }
    .task-card-row.row-actions .btn-mark-ready {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 9px 12px;
        font-size: 0.9rem;
    }
    #karigarHistoryDateFilterBox {
        width: auto;
        justify-content: flex-start;
        padding: 3px 6px;
        gap: 4px;
    }
}

/* Compact History Date Filter & Date Picker Pills */
.compact-history-date-box {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.08);
    border: 1.5px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 3px 7px;
    white-space: nowrap;
}

.compact-date-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #059669;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.compact-date-picker-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.compact-date-pill {
    padding: 3px 7px;
    border-radius: 6px;
    border: 1px solid var(--glass-border, rgba(0, 0, 0, 0.15));
    font-size: 0.78rem;
    font-weight: 600;
    background: #ffffff;
    color: var(--text-main, #1e293b);
    cursor: pointer;
    min-width: 44px;
    text-align: center;
    line-height: 1.2;
    transition: all 0.15s ease;
    white-space: nowrap;
    user-select: none;
}

.compact-date-pill.has-value {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
    font-weight: 700;
}

.compact-hidden-date-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.compact-date-sep {
    color: var(--text-muted, #64748b);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Mobile Workshop Cutting Cards */
.ws-cutting-mobile-cards {
    display: none;
    flex-direction: column;
    gap: 8px;
}

.cutting-task-card {
    background: #ffffff;
    border: 1.5px solid var(--glass-border, rgba(0, 0, 0, 0.12));
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 7px;
    transition: all 0.2s ease;
}

.cutting-task-card.alert-red {
    border-color: rgba(239, 68, 68, 0.5) !important;
    background: rgba(254, 242, 242, 0.4) !important;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.12) !important;
}

.cutting-task-card.alert-yellow {
    border-color: rgba(245, 158, 11, 0.5) !important;
    background: rgba(254, 252, 232, 0.4) !important;
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.12) !important;
}

/* Mobile Workshop Stitching Cards */
.ws-stitching-mobile-cards {
    display: none;
    flex-direction: column;
    gap: 8px;
}

.stitching-task-card {
    background: #ffffff;
    border: 1.5px solid var(--glass-border, rgba(0, 0, 0, 0.12));
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s ease;
}

/* Mobile Tailoring Payments Cards */
.tailoring-payments-mobile-cards {
    display: none;
    flex-direction: column;
    gap: 8px;
}

.tailoring-payment-card {
    background: #ffffff;
    border: 1.5px solid var(--glass-border, rgba(0, 0, 0, 0.12));
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.2s ease;
}

@media (max-width: 640px) {
    .ws-cutting-desktop-table,
    .ws-stitching-desktop-table,
    .tailoring-payments-desktop-table {
        display: none !important;
    }
    .ws-cutting-mobile-cards,
    .ws-stitching-mobile-cards,
    .tailoring-payments-mobile-cards {
        display: flex !important;
    }
}

@media (min-width: 641px) {
    .ws-cutting-desktop-table,
    .ws-stitching-desktop-table,
    .tailoring-payments-desktop-table {
        display: block !important;
    }
    .ws-cutting-mobile-cards,
    .ws-stitching-mobile-cards,
    .tailoring-payments-mobile-cards {
        display: none !important;
    }
}

body.android-app .ws-cutting-desktop-table,
body.android-app .ws-stitching-desktop-table,
body.android-app .tailoring-payments-desktop-table {
    display: none !important;
}

body.android-app .ws-cutting-mobile-cards,
body.android-app .ws-stitching-mobile-cards,
body.android-app .tailoring-payments-mobile-cards {
    display: flex !important;
}

/* Multi-Store Selector & Badges */
.store-selector-dropdown {
    background: #ffffff;
    border: 1.5px solid var(--glass-border, rgba(0, 0, 0, 0.15));
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main, #111827);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    outline: none;
    transition: all 0.2s ease;
}

.store-selector-dropdown:focus {
    border-color: var(--primary, #dc2626);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

.store-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.store-badge-sgnr {
    background: rgba(5, 150, 105, 0.12);
    border: 1px solid rgba(5, 150, 105, 0.35);
    color: #059669;
}

.store-badge-hmh {
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.35);
    color: #7c3aed;
}

.cross-store-notice-card {
    background: #f8fafc;
    border: 1.5px dashed #0284c7;
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    animation: fadeIn 0.25s ease-in-out;
}

.btn-import-customer {
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.btn-import-customer:hover {
    background: #0369a1;
}

/* --- Tailoring Item Rates Modal & Grid --- */
.tailoring-rates-modal-content {
    background: #ffffff !important;
    border-radius: 16px;
    padding: 1.5rem;
    width: 95%;
    max-width: 820px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--glass-border);
}

.tailoring-rates-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
}

.tailoring-rate-cat-pill {
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: #f8fafc;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tailoring-rate-cat-pill:hover {
    background: #f1f5f9;
    color: var(--text-main);
    transform: translateY(-1px);
}

.tailoring-rate-cat-pill.active {
    background: #0d9488;
    color: #ffffff;
    border-color: #0d9488;
    box-shadow: 0 2px 4px rgba(13, 148, 136, 0.25);
}

.tailoring-rates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    overflow-y: auto;
    padding-right: 4px;
    max-height: 58vh;
}

.rate-item-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.rate-item-card:hover {
    border-color: #0d9488;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.08);
}

.rate-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.rate-item-icon-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rate-item-icon-box {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(13, 148, 136, 0.1);
    color: #0d9488;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.rate-item-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-main);
    line-height: 1.25;
}

.rate-category-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #64748b;
    white-space: nowrap;
}

.rate-input-wrap {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid var(--glass-border);
    border-radius: 8px;
    padding: 2px 8px;
    transition: all 0.2s ease;
}

.rate-input-wrap:focus-within {
    border-color: #0d9488;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.rate-currency-symbol {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0d9488;
    margin-right: 6px;
    user-select: none;
}

.rate-num-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 6px 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    outline: none;
    text-align: right;
}

.rate-num-input::-webkit-outer-spin-button,
.rate-num-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.rate-num-input[type=number] {
    -moz-appearance: textfield;
}

@media (max-width: 640px) {
    .tailoring-rates-grid {
        grid-template-columns: 1fr;
        max-height: 52vh;
    }
    .tailoring-rates-modal-content {
        padding: 1rem;
        width: 96%;
    }
    .tailoring-rate-cat-pill {
        padding: 4px 9px;
        font-size: 0.75rem;
    }
}

/* ============================================================
   --- DELIVERED ORDERS COMPACT ROW & EXPANDABLE CARD STYLES ---
   ============================================================ */
.delivered-summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    box-sizing: border-box;
}

.delivered-summary-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}

.delivered-slip-badge {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary, #dc2626);
    white-space: nowrap;
}

.delivered-cust-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main, #1e293b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.delivered-summary-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-toggle-delivered-order {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-toggle-delivered-order:hover,
.btn-toggle-delivered-order:active {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

/* Android app view for delivered rows */
body.android-app .order-row-delivered.collapsed {
    padding: 9px 12px !important;
    margin-bottom: 8px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    cursor: pointer;
    border-radius: 10px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

body.android-app .order-row-delivered.collapsed:active {
    background: #eef2f6 !important;
}

body.android-app .order-row-delivered.collapsed td:not(.delivered-primary-cell) {
    display: none !important;
}

body.android-app .order-row-delivered.collapsed td.delivered-primary-cell {
    padding: 0 !important;
    border-bottom: none !important;
    width: 100% !important;
}

body.android-app .order-row-delivered.collapsed td.delivered-primary-cell::before {
    display: none !important;
}

body.android-app .order-row-delivered.expanded {
    border-left: 3.5px solid #10b981 !important;
    background: #ffffff !important;
}

/* ==========================================================================
   SALESMAN & MANAGER MOBILE FLOOR DASHBOARD (100VH FIXED NON-SCROLLING LIGHT THEME)
   ========================================================================== */

/* Full-viewport container with white status bar clearance when floor card is active */
body.dashboard-active .container,
body.android-app.dashboard-active .container,
body.mobile-app.dashboard-active .container,
.container:has(.salesman-floor-card),
.container:has(.dashboard-card) {
    padding: 0 !important;
    padding-top: max(env(safe-area-inset-top, 0px), 0px) !important;
    margin: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

.login-card.salesman-floor-card,
.login-card.dashboard-card,
body.android-app .login-card.dashboard-card,
body.mobile-app .login-card.dashboard-card {
    padding: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    background: #f8fafc !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    border-top: none !important;
    border-left: 3.5px solid #16171a !important;
    border-right: 3.5px solid #16171a !important;
    border-bottom: 3.5px solid #16171a !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

@media screen and (min-width: 769px) {
    .login-card.salesman-floor-card {
        max-width: 480px !important;
        height: 98vh !important;
        max-height: 900px !important;
        border-radius: 18px !important;
        border: 3.5px solid #16171a !important;
        box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22) !important;
    }
}

@media screen and (max-width: 768px), (pointer: coarse) {
    .login-card.salesman-floor-card,
    .login-card.dashboard-card,
    body.android-app .login-card.salesman-floor-card,
    body.android-app .login-card.dashboard-card,
    body.mobile-app .login-card.salesman-floor-card,
    body.mobile-app .login-card.dashboard-card {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border-top: none !important;
        border-left: 3.5px solid #16171a !important;
        border-right: 3.5px solid #16171a !important;
        border-bottom: 3.5px solid #16171a !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
    }
}

/* Full-Width Darkest Grey Signage Top Header (English & Hindi 3D Red Logos + Center-Bottom SGNR/HMH) */
.sm-top-header {
    position: relative;
    padding: 0;
    border-bottom: 2px solid #0f172a;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #16171a;
    z-index: 60;
    flex-shrink: 0;
    width: 100%;
    margin: 0 !important;
    border-radius: 0 !important;
}

.dashboard-top-bar.trs-signage-top-bar,
.sm-top-header.trs-signage-top-bar {
    padding: 0 !important;
    background: #16171a !important;
    border: none !important;
    border-bottom: 2px solid #0f172a !important;
    box-shadow: none !important;
    width: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.login-card.dashboard-card > .dashboard-top-bar.trs-signage-top-bar,
.login-card.salesman-floor-card > .sm-top-header.trs-signage-top-bar {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.dashboard-top-bar.trs-signage-top-bar .trs-signage-header,
.sm-top-header.trs-signage-top-bar .trs-signage-header {
    border-radius: 0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    width: 100% !important;
    margin: 0 !important;
}

.trs-signage-header {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, #16171a 0%, #202227 50%, #141518 100%);
    border-bottom: 2.5px solid #2e3038;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: 10px 16px 8px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    box-sizing: border-box;
}

.trs-signage-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.07) 0%, transparent 68%);
    pointer-events: none;
}

.signage-brands-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Left: English Lockup ("THE Raymond SHOP") */
.eng-lockup {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    user-select: none;
}

.eng-top-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: -4px;
    padding-right: 12px;
}

.eng-the {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 900;
    color: #ef233c;
    letter-spacing: 0.06em;
    line-height: 1;
    text-shadow: 1px 1.5px 0px #3b040c, 1px 2px 4px rgba(0, 0, 0, 0.8);
}

.signage-red-bar {
    height: 3.2px;
    background: linear-gradient(180deg, #ff4d6d 0%, #ef233c 55%, #b91c1c 100%);
    border-radius: 1px;
    box-shadow: 1px 1.5px 0px #3b040c, 1px 2px 4px rgba(0, 0, 0, 0.8);
    flex: 1;
}

.eng-main-word {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 800;
    font-size: 28px;
    line-height: 0.92;
    color: #ef233c;
    letter-spacing: -0.015em;
    text-shadow:
        1px 1px 0px #7f1d1d,
        2px 2.5px 0px #2a0408,
        2px 4px 6px rgba(0, 0, 0, 0.85);
    padding: 1px 2px 1px 0;
}

.eng-bottom-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: -2px;
}

.eng-bar-left {
    width: 24px;
    flex: none;
}

.eng-bar-mid {
    width: 22px;
    flex: none;
    margin-left: 9px;
}

.eng-shop {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 900;
    color: #ef233c;
    letter-spacing: 0.08em;
    line-height: 1;
    text-shadow: 1px 1.5px 0px #3b040c, 1px 2px 4px rgba(0, 0, 0, 0.8);
    margin-left: auto;
}

/* Right: Hindi Lockup ("द रेमण्ड शॉप") */
.hin-lockup {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    user-select: none;
}

.hin-top-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 1px;
}

.hin-da {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 10.5px;
    font-weight: 900;
    color: #ef233c;
    line-height: 1;
    text-shadow: 1px 1.5px 0px #3b040c, 1px 2px 4px rgba(0, 0, 0, 0.8);
}

.hin-main-word {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-weight: 900;
    font-size: 26px;
    line-height: 1.02;
    color: #ef233c;
    letter-spacing: 0.02em;
    text-align: center;
    text-shadow:
        1px 1px 0px #7f1d1d,
        2px 2.5px 0px #2a0408,
        2px 4px 6px rgba(0, 0, 0, 0.85);
    padding: 1px 2px;
}

.hin-bottom-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: -2px;
}

.hin-shop {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 11.5px;
    font-weight: 900;
    color: #ef233c;
    line-height: 1;
    text-shadow: 1px 1.5px 0px #3b040c, 1px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Center Bottom: Store Switcher / Badge (SGNR / HMH) */
.signage-center-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2px;
    position: relative;
    z-index: 3;
}

.store-switcher-pill {
    display: inline-flex;
    align-items: center;
    background: #0b0c0e;
    border: 1.5px solid #3f3f46;
    border-radius: 999px;
    padding: 2.5px;
    gap: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.65), inset 0 1px 2px rgba(0, 0, 0, 0.8);
}

.store-opt {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 3px 11px;
    border-radius: 999px;
    color: #a1a1aa;
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.18s ease;
}

.store-opt:hover {
    color: #f4f4f5;
}

.store-opt.active {
    background: linear-gradient(135deg, #ef233c 0%, #b91c1c 100%);
    color: #ffffff;
    box-shadow: 0 1px 6px rgba(239, 35, 60, 0.55);
}

.store-opt .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffffff;
    display: inline-block;
}

.store-static-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0b0c0e;
    border: 1.5px solid rgba(239, 35, 60, 0.65);
    padding: 2.5px 13px;
    border-radius: 999px;
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #ff4d6d;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

.store-static-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef233c;
    box-shadow: 0 0 6px #ef233c;
    display: inline-block;
}

@media (max-width: 640px) {
    .trs-signage-header {
        padding: 9px 13px 7px 13px;
    }
    .eng-main-word {
        font-size: 26px;
    }
    .hin-main-word {
        font-size: 24px;
    }
    .eng-bar-left {
        width: 22px;
    }
    .eng-bar-mid {
        width: 20px;
        margin-left: 8px;
    }
}

.sm-avatar-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.72rem;
    flex-shrink: 0;
    overflow: hidden;
}

.sm-profile-text {
    text-align: left;
    min-width: 0;
}

.sm-profile-name {
    font-size: 0.74rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    max-width: 105px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sm-profile-sub {
    font-size: 0.6rem;
    color: #64748b;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
}

.profile-dropdown-menu.salesman-bottom-dropdown-menu {
    bottom: calc(100% + 10px) !important;
    top: auto !important;
    right: 0 !important;
    left: auto !important;
    width: 230px !important;
    border-radius: 16px !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 -10px 35px rgba(15, 23, 42, 0.18) !important;
    background: #ffffff !important;
    z-index: 250 !important;
}

/* Main Scrollable Floor Content */
.sm-floor-body {
    padding: 12px 14px 18px;
    background: #f8fafc;
    flex: 1 1 auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

/* 1. Top Take Up • Walk-in Customer Card */
.sm-takeup-card {
    border-radius: 14px;
    padding: 11px 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
    border: 1.5px solid #fda4af;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.06);
    transition: all 0.2s ease;
}

.sm-takeup-card-active {
    background: linear-gradient(135deg, #ffffff, #fff1f2);
    border: 1.5px solid #dc2626;
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.12);
}

.sm-takeup-left {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    min-width: 0;
    flex: 1;
}

.sm-takeup-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fecdd3;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.sm-takeup-icon-active {
    background: #dc2626;
    color: #ffffff;
}

.sm-takeup-text {
    min-width: 0;
}

.sm-takeup-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
}

.sm-takeup-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 2px #bbf7d0;
    flex-shrink: 0;
}

.sm-takeup-sub {
    font-size: 0.66rem;
    color: #475569;
    font-weight: 600;
    margin-top: 2px;
    line-height: 1.25;
}

.sm-takeup-timers-line {
    color: #b91c1c;
    font-weight: 700;
}

.sm-takeup-actions-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.sm-takeup-action-btn {
    background: #dc2626;
    color: #ffffff;
    border: none;
    border-radius: 9px;
    padding: 7px 13px;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.15s ease;
}

.sm-takeup-action-btn:active {
    transform: scale(0.96);
}

.sm-takeup-secondary-btn {
    background: #ffffff;
    color: #dc2626;
    border: 1.5px solid #fca5a5;
    border-radius: 9px;
    padding: 6px 9px;
    font-size: 0.68rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

/* Status Dots & Colors for Bottom Shift Box */
.sm-title-amber {
    color: #92400e !important;
}

.sm-title-slate {
    color: #334155 !important;
}

.sm-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 2px #bbf7d0;
    flex-shrink: 0;
}

.sm-dot-amber {
    background: #f59e0b;
    box-shadow: 0 0 0 2px #fde68a;
}

.sm-dot-slate {
    background: #64748b;
    box-shadow: 0 0 0 2px #e2e8f0;
}

.sm-sub-amber {
    color: #b45309 !important;
}

.sm-sub-slate {
    color: #64748b !important;
}

.sm-btn-punch-out {
    background: #ffffff;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
}

.sm-btn-punch-out:hover,
.sm-btn-punch-out:active {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
}

.sm-btn-punch-in {
    background: #16a34a;
    color: #ffffff;
    border: 1.5px solid #15803d;
}

.sm-resume-shift-btn {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #f59e0b;
}

/* 2. Universal Search Bar */
.sm-search-wrap {
    position: relative;
}

.sm-search-icon-left {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.85rem;
    pointer-events: none;
}

.sm-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 40px 10px 36px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #1e293b;
    outline: none;
    transition: border-color 0.15s ease;
}

.sm-search-input:focus {
    border-color: #dc2626;
}

.sm-search-qr-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #dc2626;
    font-size: 0.95rem;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-quick-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.15);
    z-index: 120;
    max-height: 260px;
    overflow-y: auto;
    padding: 8px;
}

.sm-qs-section-title {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 4px 8px;
    letter-spacing: 0.5px;
}

.sm-qs-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.15s;
}

.sm-qs-item:hover,
.sm-qs-item:active {
    background: #f8fafc;
}

.sm-qs-item-title {
    font-size: 0.76rem;
    font-weight: 800;
    color: #0f172a;
}

.sm-qs-item-sub {
    font-size: 0.65rem;
    color: #64748b;
    margin-top: 1px;
}

.sm-qs-item-arrow {
    font-size: 0.68rem;
    font-weight: 800;
    color: #dc2626;
    white-space: nowrap;
}

.sm-qs-empty {
    padding: 10px 12px;
    font-size: 0.72rem;
    color: #64748b;
    text-align: center;
}

/* 3. Top 2 Showroom Cards: Customers & AI Try-On */
.sm-top-two-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sm-module-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 13px 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sm-module-card:active {
    transform: scale(0.985);
}

.sm-card-studio {
    background: linear-gradient(135deg, #ffffff, #faf5ff);
    border-color: #e9d5ff;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.04);
}

.sm-card-payments {
    background: linear-gradient(135deg, #ffffff, #f0fdf4);
    border-color: #bbf7d0;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.04);
}

.sm-card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sm-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.sm-icon-blue {
    background: #eff6ff;
    color: #2563eb;
}

.sm-icon-purple {
    background: #f3e8ff;
    color: #7c3aed;
}

.sm-icon-green {
    background: #dcfce7;
    color: #16a34a;
}

.sm-card-badge {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
}

.sm-badge-blue {
    color: #2563eb;
    background: #eff6ff;
}

.sm-badge-purple {
    color: #7c3aed;
    background: #f3e8ff;
}

.sm-badge-green {
    color: #16a34a;
    background: #dcfce7;
}

.sm-card-title {
    font-weight: 800;
    font-size: 0.9rem;
    color: #0f172a;
}

.sm-card-meta {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 1px;
}

.sm-meta-purple {
    color: #7c3aed;
    font-weight: 700;
}

.sm-meta-green {
    color: #16a34a;
    font-weight: 700;
}

.sm-card-link {
    font-size: 0.66rem;
    font-weight: 700;
    margin-top: 6px;
}

.sm-link-blue {
    color: #2563eb;
}

.sm-link-purple {
    color: #7c3aed;
}

.sm-link-green {
    color: #15803d;
}

/* 4. Expanded Cards (All Orders & Birthday Points) */
.sm-expanded-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 13px 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.sm-expanded-card:active {
    transform: scale(0.99);
}

.sm-card-birthday {
    border-color: #fecaca;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.03);
}

.sm-exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 8px;
}

.sm-exp-title-group {
    display: flex;
    align-items: center;
    gap: 9px;
}

.sm-exp-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.sm-icon-amber {
    background: #fef3c7;
    color: #d97706;
}

.sm-icon-red {
    background: #fee2e2;
    color: #dc2626;
}

.sm-exp-title {
    font-size: 0.84rem;
    font-weight: 800;
    color: #0f172a;
}

.sm-exp-subtitle {
    font-size: 0.66rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 1px;
}

.sm-bday-sub {
    color: #dc2626;
    font-weight: 700;
}

.sm-exp-view-all {
    font-size: 0.66rem;
    font-weight: 800;
    color: #dc2626;
    white-space: nowrap;
}

.sm-stage-chips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.sm-stage-chip {
    border-radius: 10px;
    padding: 7px 6px;
    text-align: center;
}

.sm-chip-cutting {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.sm-chip-cutting .sm-chip-count {
    color: #0f172a;
}

.sm-chip-cutting .sm-chip-label {
    color: #64748b;
}

.sm-chip-stitching {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
}

.sm-chip-stitching .sm-chip-count,
.sm-chip-stitching .sm-chip-label {
    color: #dc2626;
}

.sm-chip-ready {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
}

.sm-chip-ready .sm-chip-count,
.sm-chip-ready .sm-chip-label {
    color: #16a34a;
}

.sm-chip-count {
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1.15;
}

.sm-chip-label {
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 2px;
}

.sm-urgent-delivery-bar {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 10px;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.66rem;
    gap: 8px;
}

.sm-urgent-left {
    font-weight: 800;
    color: #b45309;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.sm-urgent-right {
    color: #92400e;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 5. Birthday Points Redemption Row */
.sm-bday-pts-pill {
    font-size: 0.63rem;
    font-weight: 800;
    color: #be123c;
    background: #ffe4e6;
    padding: 3px 8px;
    border-radius: 9999px;
    white-space: nowrap;
}

.sm-bday-redemption-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fef2f2;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    padding: 9px 13px;
}

.sm-bday-redemption-label {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sm-red-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #dc2626;
    display: inline-block;
}

.sm-bday-redemption-values {
    font-size: 0.75rem;
    font-weight: 800;
    color: #16a34a;
}

/* 6. 3-Zone Bordered Bottom Dock (Left: Shift Punch In/Out, Center: Home Button, Right: User Info) */
.sm-bottom-nav {
    border-top: 2px solid #cbd5e1;
    background: #f8fafc;
    padding: 8px 10px 10px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    position: relative;
    flex-shrink: 0;
}

.sm-bottom-shift-zone {
    min-width: 0;
}

.sm-bottom-shift-box {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 7px 9px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04);
}

.sm-bottom-shift-active {
    border-color: #94a3b8;
}

.sm-bottom-shift-unmarked {
    border-color: #fcd34d;
    background: #fffbeb;
}

.sm-bottom-shift-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.sm-bottom-shift-status-grp {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.sm-bottom-shift-state {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0f172a;
}

.sm-bottom-punch-btn {
    padding: 3px 9px;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.sm-bottom-shift-sub {
    font-size: 0.62rem;
    color: #334155;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.sm-bottom-center-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
}

.sm-nav-fab {
    margin-top: -22px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #dc2626;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
    border: 3px solid #ffffff;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.sm-nav-fab:active {
    transform: scale(0.94);
}

.sm-nav-fab-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 3px;
    line-height: 1;
}

.sm-bottom-user-zone {
    position: relative;
    min-width: 0;
}

.sm-bottom-profile-btn {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 7px 9px;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04);
    transition: all 0.15s ease;
}

.sm-bottom-profile-btn:hover,
.sm-bottom-profile-btn:active {
    background: #fef2f2;
    border-color: #fca5a5;
}

@media (max-width: 640px) {
    .sm-bottom-nav {
        padding: 7px 8px 9px;
        gap: 6px;
    }
    .sm-bottom-shift-box,
    .sm-bottom-profile-btn {
        padding: 6px 7px;
    }
    .sm-profile-name {
        max-width: 88px;
        font-size: 0.7rem;
    }
    .sm-bottom-shift-sub {
        font-size: 0.58rem;
    }
}

/* 7. Accidental Punch-Out Protection Modal */
.sm-punchout-modal-box {
    max-width: 340px !important;
    width: 92% !important;
    border-radius: 20px !important;
    padding: 22px 20px !important;
    text-align: center !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25) !important;
}

.sm-po-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fef3c7;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 12px;
}

.sm-po-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}

.sm-po-desc {
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.45;
    margin: 0 0 12px;
}

.sm-po-note {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.sm-po-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sm-po-btn-cancel {
    width: 100%;
    padding: 11px 14px;
    border-radius: 11px;
    background: #16a34a;
    color: #ffffff;
    border: none;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
}

.sm-po-btn-confirm {
    width: 100%;
    padding: 9px 14px;
    border-radius: 11px;
    background: #ffffff;
    color: #dc2626;
    border: 1.5px solid #fecaca;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

/* Staff Break & Store Wi-Fi Protection Styles */
.sm-bottom-shift-onbreak {
    border-color: #f59e0b !important;
    background: #fffbeb !important;
}

.sm-dot-amber-pulse {
    background: #f59e0b !important;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    animation: pulseAmber 1.8s infinite;
}

@keyframes pulseAmber {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.sm-btn-break-in {
    background: #16a34a !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 800 !important;
}
.sm-btn-break-in:hover {
    background: #15803d !important;
}

.sm-btn-break-out {
    background: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
    font-weight: 800 !important;
}
.sm-btn-break-out:hover {
    background: #fde68a !important;
}

.sm-break-chips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 12px 0 10px;
}

.sm-break-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}
.sm-break-chip:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}
.sm-break-chip.active {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #b45309;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15);
}

.sm-wifi-modal-box {
    max-width: 380px !important;
    width: 92% !important;
    border-radius: 20px !important;
    padding: 24px 22px !important;
    text-align: center !important;
    background: #ffffff !important;
    border: 1.5px solid #fecaca !important;
    box-shadow: 0 20px 50px rgba(220, 38, 38, 0.2) !important;
}

.sm-wifi-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 14px;
}

.sm-break-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
}

.sm-break-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    text-align: left;
}

.sm-break-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    padding: 10px 12px;
    border-bottom: 1.5px solid #e2e8f0;
    white-space: nowrap;
}

.sm-break-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}

.sm-break-table tr:hover td {
    background: #f8fafc;
}

/* ==========================================================================
   MANAGER DASHBOARD (PIXEL-PERFECT FIXED ZERO-SCROLL MOBILE FLOOR)
   ========================================================================== */

.mgr-floor-body {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    overflow-y: hidden !important;
    overflow-x: hidden !important;
    padding: 6px 9px !important;
    gap: 7px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    background: #f8fafc !important;
}

/* 1. Take-Up Walk-In Bar (Matching Mockup) */
.mgr-floor-body #salesmanTakeUpBarContainer {
    flex-shrink: 0 !important;
    margin-top: 3px !important;
}

.mgr-floor-body .sm-takeup-card {
    border-radius: 14px !important;
    padding: 7px 11px !important;
    gap: 10px !important;
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%) !important;
    border: 1.5px solid #fda4af !important;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.08) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.mgr-floor-body .sm-takeup-left {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    min-width: 0 !important;
    flex: 1 !important;
    cursor: pointer !important;
}

.mgr-floor-body .sm-takeup-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 9px !important;
    font-size: 0.92rem !important;
    background: #fecdd3 !important;
    color: #dc2626 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.mgr-floor-body .sm-takeup-title {
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
}

.mgr-floor-body .sm-takeup-sub {
    font-size: 0.64rem !important;
    color: #475569 !important;
    font-weight: 600 !important;
    margin-top: 1px !important;
    line-height: 1.2 !important;
}

.mgr-floor-body .sm-takeup-action-btn {
    padding: 6px 12px !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    border-radius: 9px !important;
    background: #dc2626 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
}

.mgr-floor-body .sm-takeup-secondary-btn {
    padding: 5px 8px !important;
    font-size: 0.66rem !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #dc2626 !important;
    border: 1.5px solid #fca5a5 !important;
}

/* 2. Universal Quick Search Bar (Matching Mockup) */
.mgr-floor-body .sm-search-wrap {
    height: 36px !important;
    min-height: 36px !important;
    border-radius: 12px !important;
    padding: 0 8px 0 32px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}

.mgr-floor-body .sm-search-icon-left {
    left: 10px !important;
    font-size: 0.8rem !important;
    color: #94a3b8 !important;
}

.mgr-floor-body .sm-search-input {
    padding: 0 !important;
    font-size: 0.76rem !important;
    height: 100% !important;
    line-height: 36px !important;
    border: none !important;
    background: transparent !important;
    color: #0f172a !important;
    font-weight: 500 !important;
}

.mgr-floor-body .sm-search-qr-btn {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.82rem !important;
    right: 5px !important;
    border-radius: 6px !important;
    color: #dc2626 !important;
    background: transparent !important;
    border: none !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 3. Card: All Orders & Deliveries (Matching Mockup) */
.mgr-floor-body #mgrCardAllOrders.mgr-exp-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 15px !important;
    padding: 8px 11px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    cursor: pointer !important;
}

.mgr-floor-body #mgrCardAllOrders .sm-exp-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 5px !important;
}

.mgr-floor-body #mgrCardAllOrders .sm-exp-title-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.mgr-floor-body #mgrCardAllOrders .sm-exp-icon {
    width: 26px !important;
    height: 26px !important;
    border-radius: 7px !important;
    font-size: 0.8rem !important;
    background: #fef3c7 !important;
    color: #d97706 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.mgr-floor-body #mgrCardAllOrders .sm-exp-title {
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
}

.mgr-floor-body #mgrCardAllOrders .sm-exp-subtitle {
    font-size: 0.65rem !important;
    color: #64748b !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}

.mgr-floor-body #mgrCardAllOrders .sm-exp-view-all {
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    color: #dc2626 !important;
}

/* 3 Stage Count Chips */
.mgr-floor-body #mgrCardAllOrders .sm-stage-chips-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 5px !important;
}

.mgr-floor-body #mgrCardAllOrders .sm-stage-chip {
    border-radius: 9px !important;
    padding: 4px 3px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.mgr-floor-body #mgrCardAllOrders .sm-chip-cutting {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
}

.mgr-floor-body #mgrCardAllOrders .sm-chip-cutting .sm-chip-count {
    color: #0f172a !important;
}

.mgr-floor-body #mgrCardAllOrders .sm-chip-cutting .sm-chip-label {
    color: #475569 !important;
}

.mgr-floor-body #mgrCardAllOrders .sm-chip-stitching {
    background: #fff1f2 !important;
    border: 1.5px solid #fda4af !important;
}

.mgr-floor-body #mgrCardAllOrders .sm-chip-stitching .sm-chip-count {
    color: #dc2626 !important;
}

.mgr-floor-body #mgrCardAllOrders .sm-chip-stitching .sm-chip-label {
    color: #dc2626 !important;
}

.mgr-floor-body #mgrCardAllOrders .sm-chip-ready {
    background: #f0fdf4 !important;
    border: 1.5px solid #86efac !important;
}

.mgr-floor-body #mgrCardAllOrders .sm-chip-ready .sm-chip-count {
    color: #16a34a !important;
}

.mgr-floor-body #mgrCardAllOrders .sm-chip-ready .sm-chip-label {
    color: #16a34a !important;
}

.mgr-floor-body #mgrCardAllOrders .sm-chip-count {
    font-size: 0.98rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
}

.mgr-floor-body #mgrCardAllOrders .sm-chip-label {
    font-size: 0.6rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    line-height: 1.15 !important;
}

.mgr-floor-body #mgrCardAllOrders .sm-urgent-delivery-bar {
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
    border-radius: 8px !important;
    padding: 3px 8px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    color: #92400e !important;
}

/* 4. Card: Tailoring Management (Matching Mockup) */
.mgr-floor-body #mgrCardTailoring.mgr-exp-card {
    background: #ffffff !important;
    border: 1.5px solid #fecaca !important;
    border-radius: 15px !important;
    padding: 8px 11px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.04) !important;
    cursor: pointer !important;
}

.mgr-floor-body #mgrCardTailoring .sm-exp-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 5px !important;
}

.mgr-floor-body #mgrCardTailoring .sm-exp-title-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.mgr-floor-body #mgrCardTailoring .sm-exp-icon {
    width: 26px !important;
    height: 26px !important;
    border-radius: 7px !important;
    font-size: 0.8rem !important;
    background: #fee2e2 !important;
    color: #dc2626 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.mgr-floor-body #mgrCardTailoring .sm-exp-title {
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
}

.mgr-floor-body #mgrCardTailoring .sm-exp-subtitle {
    font-size: 0.64rem !important;
    color: #dc2626 !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.mgr-floor-body #mgrCardTailoring .sm-bday-pts-pill {
    background: #ffe4e6 !important;
    color: #be123c !important;
    font-size: 0.64rem !important;
    font-weight: 800 !important;
    padding: 2px 7px !important;
    border-radius: 6px !important;
}

.mgr-floor-body .mgr-tm-pills-row {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 5px !important;
    margin-top: 4px !important;
}

.mgr-floor-body .mgr-tm-pill {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 3px;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 800;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.16s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mgr-floor-body .mgr-tm-pill:hover,
.mgr-floor-body .mgr-tm-pill:active,
.mgr-floor-body .mgr-tm-pill.mgr-tm-pill-active {
    background: #fff1f2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* 5. 2x2 Module Grid (Compact, Fixed-Height 74px Tiles matching reference) */
.mgr-floor-body .mgr-two-by-two-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
}

.mgr-floor-body .mgr-two-by-two-grid .sm-module-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 13px !important;
    padding: 7px 9px !important;
    height: 86px !important;
    min-height: 86px !important;
    max-height: 86px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: transform 0.15s ease !important;
}

.mgr-floor-body .mgr-two-by-two-grid .sm-card-top-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 1px !important;
}

.mgr-floor-body .mgr-two-by-two-grid .sm-card-icon {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.75rem !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mgr-floor-body .mgr-two-by-two-grid .sm-card-badge {
    font-size: 0.58rem !important;
    padding: 1px 5px !important;
    border-radius: 5px !important;
    font-weight: 800 !important;
}

.mgr-floor-body .mgr-two-by-two-grid .sm-card-title {
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    color: #0f172a !important;
}

.mgr-floor-body .mgr-two-by-two-grid .sm-card-meta {
    font-size: 0.6rem !important;
    color: #64748b !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    margin-top: 1px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.mgr-floor-body .mgr-two-by-two-grid .sm-card-link {
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    margin-top: 1px !important;
    line-height: 1.1 !important;
}

.mgr-floor-body .mgr-card-bday {
    border-color: #fecdd3 !important;
    background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%) !important;
}

.mgr-floor-body .mgr-badge-rose {
    background: #ffe4e6 !important;
    color: #be123c !important;
}

.mgr-floor-body .mgr-link-rose {
    color: #e11d48 !important;
}

/* Floor Top Header & 3-Zone Bottom Dock Sizing */
.login-card.salesman-floor-card .sm-top-header {
    flex-shrink: 0 !important;
    border-bottom: 1.5px solid #0f172a !important;
}

.login-card.salesman-floor-card .trs-signage-header {
    padding: 7px 11px 6px 11px !important;
}

.login-card.salesman-floor-card .sm-bottom-nav {
    flex-shrink: 0 !important;
    background: #ffffff !important;
    border-top: 1.5px solid #e2e8f0 !important;
    padding: 5px 10px max(calc(env(safe-area-inset-bottom, 0px) + 3px), 5px) !important;
    gap: 8px !important;
    margin-top: auto !important;
}

.login-card.salesman-floor-card .sm-bottom-shift-box {
    padding: 5px 8px !important;
    border-radius: 11px !important;
    background: #fffbeb !important;
    border: 1.5px solid #fde68a !important;
}

.login-card.salesman-floor-card .sm-bottom-shift-title {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
}

.login-card.salesman-floor-card .sm-bottom-shift-sub {
    font-size: 0.6rem !important;
    font-weight: 600 !important;
}

.login-card.salesman-floor-card .sm-bottom-profile-btn {
    padding: 5px 8px !important;
    border-radius: 11px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
}

.login-card.salesman-floor-card .sm-avatar-circle {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.7rem !important;
}

.login-card.salesman-floor-card .sm-profile-name {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
}

.login-card.salesman-floor-card .sm-profile-sub {
    font-size: 0.58rem !important;
    font-weight: 600 !important;
}

.login-card.salesman-floor-card .sm-home-circle-btn {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.05rem !important;
    background: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35) !important;
}

/* ==========================================================================
   SHOP ROLLING SHUTTER DOWN (LOGOUT) & UP (LOGIN) FEATURE
   ========================================================================== */

/* Left & Right Bottom Corner Long-Press Zones on Top Signage Facade */
.shutter-pull-corner {
    position: absolute;
    bottom: 0;
    width: 96px;
    height: 36px;
    z-index: 15;
    cursor: ns-resize;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.shutter-pull-left {
    left: 0;
    border-top-right-radius: 10px;
}

.shutter-pull-right {
    right: 0;
    border-top-left-radius: 10px;
}

.trs-signage-header.shutter-grab-active .shutter-pull-corner {
    background: radial-gradient(circle at 50% 100%, rgba(239, 35, 60, 0.38) 0%, transparent 75%);
}

.trs-signage-header.shutter-grab-active {
    border-bottom-color: #ef233c !important;
}

/* Corrugated Metallic Rolling Shutter Curtain */
.shop-shutter-curtain {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 0px;
    z-index: 260;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: #272930;
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0px, rgba(0, 0, 0, 0.22) 12px, transparent 26px, transparent calc(100% - 26px), rgba(0, 0, 0, 0.22) calc(100% - 12px), rgba(0, 0, 0, 0.68) 100%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.09) 35%, rgba(255, 255, 255, 0.02) 70%, rgba(0, 0, 0, 0.15) 100%),
        repeating-linear-gradient(
            180deg,
            #353842 0px,
            #454954 3px,
            #2b2d35 7px,
            #1f2026 11px,
            #121317 13px,
            #353842 14px
        );
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    will-change: height;
}

.shop-shutter-curtain.shutter-animating {
    transition: height 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Center Brand Emblem on Closed Shutter */
.shop-shutter-emblem {
    margin: auto;
    text-align: center;
    padding: 24px 26px;
    border: 2px solid rgba(239, 35, 60, 0.52);
    border-radius: 14px;
    background: rgba(15, 16, 20, 0.84);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    min-width: 284px;
    max-width: 90%;
    transition: padding 0.25s ease, transform 0.25s ease;
}

.shop-shutter-curtain.shutter-lifted-login .shop-shutter-emblem {
    padding: 13px 20px;
}

.shop-shutter-curtain.shutter-lifted-login .shop-shutter-emblem-stats {
    display: none;
}

.shop-shutter-emblem-script {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 800;
    font-size: 38px;
    color: #ef233c;
    letter-spacing: -0.015em;
    text-shadow: 1px 2px 0px #2a0408;
    line-height: 1;
}

.shop-shutter-curtain.shutter-lifted-login .shop-shutter-emblem-script {
    font-size: 30px;
}

.shop-shutter-emblem-location {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: 0.04em;
    margin-top: 8px;
}

.shop-shutter-curtain.shutter-lifted-login .shop-shutter-emblem-location {
    font-size: 11.5px;
    margin-top: 5px;
}

.shop-shutter-emblem-stats {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    justify-content: space-around;
    gap: 14px;
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 700;
}

.shop-shutter-stat-val {
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 2px;
}

/* Heavy Bottom Steel Beam & Locks */
.shop-shutter-bottom-beam {
    width: 100%;
    height: 40px;
    background: linear-gradient(180deg, #3f434e 0%, #262830 45%, #17181c 100%);
    border-top: 2px solid #525766;
    border-bottom: 3px solid #0b0c0e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    flex-shrink: 0;
    cursor: ns-resize;
    touch-action: none;
}

.shop-shutter-lock-plate {
    width: 36px;
    height: 20px;
    background: linear-gradient(135deg, #d4d4d8 0%, #71717a 100%);
    border: 1.5px solid #27272a;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 2px 4px rgba(0, 0, 0, 0.5);
}

.shop-shutter-keyhole {
    width: 5px;
    height: 10px;
    background: #18181b;
    border-radius: 2px;
}

.shop-shutter-handle-grip {
    width: 110px;
    height: 14px;
    background: linear-gradient(180deg, #18181b 0%, #27272a 100%);
    border: 1.5px solid #52525b;
    border-radius: 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(255, 255, 255, 0.15);
}

/* Closed Shop Shutter Screen Wrapper & Login Reveal Area */
.shop-shutter-closed-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    overflow: hidden;
}

.shop-shutter-login-reveal {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 18px 18px 22px 18px;
    background: #f8fafc;
    overflow-y: auto;
}

.shop-shutter-login-box {
    width: 100%;
    max-width: 360px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    text-align: center;
}

.shop-shutter-login-title {
    font-size: 1rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 3px;
}

.shop-shutter-login-sub {
    font-size: 0.74rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 14px;
}

.shutter-input-wrap {
    position: relative;
    margin-bottom: 10px;
}

.shutter-input-wrap input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 36px 11px 36px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.shutter-input-wrap input:focus {
    border-color: #dc2626;
    background: #ffffff;
}

.shutter-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.85rem;
    pointer-events: none;
}

.shutter-pass-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.85rem;
    cursor: pointer;
}

.shutter-open-submit-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transition: transform 0.15s ease;
}

.shutter-open-submit-btn:active {
    transform: scale(0.98);
}

.shutter-close-back-btn {
    margin-top: 8px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
}

/* ==========================================================================
   iOS / iPhone Standalone PWA & Install Guide Styles
   ========================================================================== */
.shutter-zone-indicator {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

@supports (padding-top: env(safe-area-inset-top)) {
    @media all and (display-mode: standalone) {
        body {
            padding-top: env(safe-area-inset-top);
            padding-bottom: env(safe-area-inset-bottom);
        }
        .shop-rolling-shutter {
            padding-top: env(safe-area-inset-top);
        }
    }
}

.ios-install-pill-btn {
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.2);
    color: #1e293b;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.ios-install-pill-btn:hover {
    background: rgba(15, 23, 42, 0.12);
}

.ios-install-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 100005;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ios-install-modal-backdrop.active {
    display: flex;
}

.ios-install-modal-card {
    background: #ffffff;
    border-radius: 20px;
    max-width: 370px;
    width: 100%;
    padding: 22px 20px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-align: left;
    animation: fadeIn 0.22s ease-out;
}

.ios-install-modal-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
}

.ios-install-app-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(66, 133, 244, 0.25);
    flex-shrink: 0;
}

.ios-install-modal-head h3 {
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.ios-install-modal-head p {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    margin: 2px 0 0 0;
}

.ios-install-close {
    position: absolute;
    top: -6px;
    right: -4px;
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}

.ios-install-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.ios-step-item {
    display: flex;
    align-items: center;
    gap: 11px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #1e293b;
    line-height: 1.38;
}

.ios-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4285F4;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ios-install-gotit-btn {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 11px;
    background: linear-gradient(135deg, #4285F4 0%, #1967d2 100%);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(66, 133, 244, 0.3);
}

/* ==========================================================================
   ALL ORDERS SUITE: W1 (WEB 7-COLUMN ENTERPRISE) & A1 (ANDROID EXECUTIVE CARDS)
   ========================================================================== */

/* --- 4-Card KPI Summary Strip --- */
.w1-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.w1-kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.w1-kpi-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
}

.w1-kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.w1-kpi-icon.kpi-red { background: #fef2f2; color: #dc2626; }
.w1-kpi-icon.kpi-blue { background: #eff6ff; color: #2563eb; }
.w1-kpi-icon.kpi-green { background: #ecfdf5; color: #10b981; }
.w1-kpi-icon.kpi-amber { background: #fffbeb; color: #f59e0b; }

.w1-kpi-info {
    min-width: 0;
    flex: 1;
}

.w1-kpi-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.w1-kpi-value {
    font-size: 1.18rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.w1-kpi-sub {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- W1 Filter Toolbar & Quick Status Tabs --- */
.w1-filter-toolbar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.w1-filter-row-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.w1-search-box-wrap {
    flex: 1;
    min-width: 220px;
    position: relative;
}

.w1-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.85rem;
    pointer-events: none;
}

.w1-search-input {
    width: 100% !important;
    padding: 8px 12px 8px 34px !important;
    font-size: 0.85rem !important;
    border-radius: 9px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #f8fafc !important;
}

.w1-search-input:focus {
    background: #ffffff !important;
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08) !important;
}

.w1-status-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.w1-status-tabs::-webkit-scrollbar {
    display: none;
}

.w1-status-tab {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s ease;
    flex-shrink: 0;
}

.w1-status-tab:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.w1-status-tab.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.18);
}

.w1-tab-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.w1-tab-dot.dot-progress { background: #3b82f6; }
.w1-tab-dot.dot-partial { background: #f59e0b; }
.w1-tab-dot.dot-ready { background: #10b981; }
.w1-tab-dot.dot-unpaid { background: #ef4444; }
.w1-tab-dot.dot-delivered { background: #8b5cf6; }

.w1-tab-count {
    background: rgba(15, 23, 42, 0.08);
    color: inherit;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
}

.w1-status-tab.active .w1-tab-count {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

/* --- W1 Consolidated 7-Column Enterprise Table --- */
.w1-orders-table-wrap {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    background: #ffffff;
}

.w1-orders-table th {
    background: #f8fafc !important;
    padding: 12px 14px !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569 !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
}

.w1-orders-table td {
    padding: 13px 14px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.w1-orders-table tbody tr.alert-row-red {
    background: linear-gradient(90deg, rgba(254, 242, 242, 0.78) 0%, #ffffff 35%) !important;
    box-shadow: inset 4px 0 0 #dc2626;
}

.w1-orders-table tbody tr.alert-row-yellow {
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.82) 0%, #ffffff 35%) !important;
    box-shadow: inset 4px 0 0 #f59e0b;
}

.w1-slip-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.w1-slip-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 3px 9px;
    border-radius: 7px;
}

.w1-urgent-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.w1-urgent-pill.red {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.w1-urgent-pill.amber {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fcd34d;
}

.w1-urgent-pill.green {
    background: #d1fae5;
    color: #047857;
    border: 1px solid #6ee7b7;
}

.w1-cust-name {
    font-weight: 800;
    color: #0f172a;
    font-size: 0.92rem;
    margin-bottom: 3px;
}

.w1-cust-phone-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.w1-cust-phone {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    background: #f8fafc;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
}

.w1-cust-phone i {
    color: #dc2626;
    font-size: 0.7rem;
}

.w1-cust-phone:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.w1-wa-mini-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #16a34a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.w1-wa-mini-btn:hover {
    background: #16a34a;
    color: #ffffff;
}

.w1-timeline-grid {
    display: grid;
    grid-template-columns: 32px auto;
    row-gap: 3px;
    column-gap: 6px;
    font-size: 0.78rem;
    align-items: center;
}

.w1-t-lbl {
    font-weight: 700;
    color: #94a3b8;
    font-size: 0.68rem;
    text-transform: uppercase;
}

.w1-t-val {
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

/* Garment Pills & Progress Bar */
.w1-garments-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 290px;
}

.w1-garment-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.76rem;
}

.w1-garment-pill.all-done {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.w1-garment-pill.partial {
    background: #fffbeb;
    border-color: #fde68a;
}

.w1-g-name {
    font-weight: 700;
    color: #1e293b;
}

.w1-g-ticks {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.w1-g-fraction {
    font-size: 0.66rem;
    font-weight: 800;
    color: #64748b;
    margin-left: 1px;
}

.w1-garment-progress {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.w1-prog-track {
    flex: 1;
    max-width: 130px;
    height: 5px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.w1-prog-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.25s ease;
}

.w1-prog-text {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
}

/* Order Status Select & Audit Stamp */
.w1-status-select,
.a1-status-select {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    transition: all 0.15s ease;
}

.status-select-in_progress {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: #bfdbfe !important;
}

.status-select-partial_ready {
    background: #fffbeb !important;
    color: #b45309 !important;
    border-color: #fde68a !important;
}

.status-select-ready {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border-color: #a7f3d0 !important;
}

.status-select-unpaid_delivered {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border-color: #fecaca !important;
}

.status-select-delivered {
    background: #f5f3ff !important;
    color: #6d28d9 !important;
    border-color: #ddd6fe !important;
}

.w1-audit-stamp {
    font-size: 0.68rem;
    color: #64748b;
    margin-top: 5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.w1-audit-stamp strong {
    color: #334155;
}

/* Billing & Balance Card */
.w1-billing-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 7px 10px;
    border-radius: 10px;
    min-width: 142px;
}

.w1-bill-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    gap: 6px;
}

.w1-bill-lbl {
    color: #64748b;
    font-weight: 600;
}

.w1-bill-val {
    font-weight: 800;
    color: #0f172a;
}

.w1-paid-input {
    width: 72px !important;
    padding: 3px 6px !important;
    border-radius: 6px !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #ffffff !important;
    text-align: right !important;
    font-weight: 800 !important;
    font-size: 0.76rem !important;
    color: #059669 !important;
}

.w1-bill-bal-line {
    border-top: 1px dashed #cbd5e1;
    padding-top: 3px;
    margin-top: 1px;
}

.w1-bill-bal {
    font-weight: 800;
    font-size: 0.76rem;
}

.w1-bill-bal.due { color: #dc2626; }
.w1-bill-bal.clear { color: #10b981; }

/* Notes & Actions Column */
.w1-notes-actions-wrap {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-width: 190px;
}

.w1-comment-chip {
    font-size: 0.74rem;
    color: #475569;
    background: #f8fafc;
    border-left: 3px solid #cbd5e1;
    padding: 4px 8px;
    border-radius: 0 6px 6px 0;
    line-height: 1.35;
    word-break: break-word;
}

.w1-comment-empty {
    font-size: 0.72rem;
    color: #94a3b8;
    font-style: italic;
}

.w1-action-bar {
    display: flex;
    align-items: center;
    gap: 5px;
}

.w1-act-btn {
    width: 31px;
    height: 31px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.82rem;
    transition: all 0.15s ease;
}

.w1-act-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(15, 23, 42, 0.08);
}

.w1-act-btn.act-measure { color: #db2777; background: #fdf2f8; border-color: #fbcfe8; }
.w1-act-btn.act-edit { color: #16a34a; background: #f0fdf4; border-color: #bbf7d0; }
.w1-act-btn.act-print { color: #2563eb; background: #eff6ff; border-color: #bfdbfe; }
.w1-act-btn.act-delete { color: #dc2626; background: #fef2f2; border-color: #fecaca; }

/* ==========================================================================
   OPTION A1: ANDROID & MOBILE EXECUTIVE CLEAN CARDS
   ========================================================================== */

.a1-mobile-cards-grid {
    display: none;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 6px;
}

.a1-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 36px 20px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px dashed #cbd5e1;
    color: #64748b;
}

.a1-empty-state i {
    font-size: 2rem;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.a1-order-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 13px 14px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.a1-order-card.a1-urgent-red {
    border-left: 4.5px solid #dc2626;
    background: linear-gradient(90deg, #fff5f5 0%, #ffffff 28%);
}

.a1-order-card.a1-urgent-amber {
    border-left: 4.5px solid #f59e0b;
    background: linear-gradient(90deg, #fffbeb 0%, #ffffff 28%);
}

.a1-order-card.a1-urgent-green {
    border-left: 4.5px solid #10b981;
}

.a1-order-card.a1-urgent-delivered {
    border-left: 4.5px solid #8b5cf6;
}

/* Delivered Order Collapse / Expand on A1 Cards */
.a1-delivered-compact-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.a1-order-card.a1-card-delivered.collapsed {
    padding: 10px 14px;
    cursor: pointer;
}

.a1-order-card.a1-card-delivered.collapsed .a1-delivered-compact-bar {
    display: flex;
}

.a1-order-card.a1-card-delivered.collapsed .a1-card-body-wrap {
    display: none;
}

.a1-order-card.a1-card-delivered.expanded .a1-delivered-compact-bar {
    display: none;
}

.a1-collapse-btn {
    padding: 5px 8px !important;
    font-size: 0.72rem !important;
}

/* Card Header */
.a1-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.a1-slip-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.a1-slip-badge {
    background: #0f172a;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 3px 8px;
    border-radius: 7px;
}

.a1-tag-red {
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.64rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid #fca5a5;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.a1-tag-amber {
    background: #fef3c7;
    color: #b45309;
    font-size: 0.64rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid #fcd34d;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.a1-tag-green {
    background: #d1fae5;
    color: #047857;
    font-size: 0.64rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid #6ee7b7;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.a1-cust-name {
    font-size: 0.96rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 4px;
    line-height: 1.25;
}

.a1-cust-phone {
    font-size: 0.76rem;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.a1-cust-phone i {
    color: #dc2626;
    font-size: 0.7rem;
}

.a1-card-top-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.a1-top-right-sub {
    display: flex;
    align-items: center;
    gap: 5px;
}

.a1-wa-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #16a34a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
}

/* Dates Strip */
.a1-dates-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px 8px;
    margin-bottom: 9px;
    text-align: center;
}

.a1-date-col {
    border-right: 1px solid #e2e8f0;
    padding: 0 4px;
}

.a1-date-col:last-child {
    border-right: none;
}

.a1-d-lbl {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
}

.a1-d-val {
    font-size: 0.74rem;
    font-weight: 800;
    color: #1e293b;
    margin-top: 1px;
}

/* Garment Chips */
.a1-garment-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.a1-g-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
}

.a1-g-chip.all-done {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.a1-g-chip.partial {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.a1-g-ticks {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 3-Column Micro Billing Grid */
.a1-bill-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 7px 9px;
    margin-bottom: 9px;
    align-items: center;
}

.a1-bill-col {
    display: flex;
    flex-direction: column;
}

.a1-bill-col:last-child {
    text-align: right;
}

.a1-bill-lbl {
    font-size: 0.6rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.a1-bill-val {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 1px;
}

.a1-bill-val.due { color: #dc2626; }
.a1-bill-val.clear { color: #10b981; }

.a1-paid-input {
    width: 100% !important;
    max-width: 86px;
    padding: 3px 6px !important;
    border-radius: 6px !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #ffffff !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    color: #059669 !important;
    margin-top: 1px;
}

/* Card Footer */
.a1-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-top: 7px;
    border-top: 1px dashed #e2e8f0;
}

.a1-comment {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    flex: 1;
}

.a1-comment span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.a1-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.a1-act-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.a1-act-btn.m { background: #fdf2f8; color: #db2777; border-color: #fbcfe8; }
.a1-act-btn.e { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.a1-act-btn.p { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.a1-act-btn.d { background: #fef2f2; color: #dc2626; border-color: #fecaca; }

/* --- Responsive Switching: W1 on Desktop Web, A1 on Android App & Mobile --- */
body.android-app .w1-orders-table-wrap {
    display: none !important;
}

body.android-app .a1-mobile-cards-grid {
    display: grid !important;
}

@media (min-width: 641px) {
    body.android-app .a1-mobile-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .w1-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .w1-orders-table-wrap {
        display: none !important;
    }
    .a1-mobile-cards-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .w1-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .w1-kpi-card {
        padding: 10px 11px;
        gap: 9px;
    }
    .w1-kpi-icon {
        width: 34px;
        height: 34px;
        font-size: 0.92rem;
    }
    .w1-kpi-value {
        font-size: 0.98rem;
    }
    .w1-kpi-sub {
        font-size: 0.62rem;
    }
    .a1-mobile-cards-grid,
    body.android-app .a1-mobile-cards-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   OPTION TW1 & TA1: TAILORING MANAGEMENT HUB (WEB & ANDROID/MOBILE)
   ========================================================================== */

/* 7-Category Garment Breakdown Strip */
.tw1-garment-strip {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    flex-wrap: wrap;
}

.tw1-g-strip-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.tw1-g-strip-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #475569;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tw1-g-strip-title i {
    color: #dc2626;
}

.tw1-g-strip-badge {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: 999px;
}

.tw1-g-strip-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.tw1-g-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 5px 11px;
    border-radius: 9px;
    min-width: 96px;
    justify-content: space-between;
    transition: all 0.15s ease;
}

.tw1-g-pill:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.tw1-g-lbl {
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.tw1-g-val {
    font-size: 0.84rem;
    font-weight: 800;
    color: #0f172a;
    background: #ffffff;
    padding: 1px 7px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* TW1 View Measure Button in Desktop Table */
.tw1-measure-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 9px;
    background: #fdf2f8;
    color: #db2777;
    border: 1px solid #fbcfe8;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.tw1-measure-btn:hover {
    background: #fce7f3;
    border-color: #f9a8d4;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(219, 39, 119, 0.12);
}

/* TA1 Mobile / Android Tailoring Cards Enhancements */
.ta1-comment-banner {
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 5px 9px;
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ta1-comment-banner i {
    color: #f59e0b;
    flex-shrink: 0;
}

.ta1-card-foot {
    margin-top: auto;
}

.ta1-fin-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.74rem;
    color: #475569;
    font-weight: 600;
}

.ta1-fin-inline b {
    font-weight: 800;
    color: #0f172a;
}

.ta1-fin-inline b.due {
    color: #dc2626;
}

.ta1-fin-inline b.clear {
    color: #10b981;
}

.ta1-measure-btn {
    background: #fdf2f8;
    color: #db2777;
    border: 1px solid #fbcfe8;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.ta1-measure-btn:active {
    transform: scale(0.97);
    background: #fce7f3;
}

/* Responsive Scrollable Garment Strip on Mobile & Android */
@media (max-width: 900px) {
    .tw1-garment-strip {
        padding: 9px 11px;
        gap: 8px;
    }
    .tw1-g-strip-head {
        width: 100%;
        justify-content: space-between;
    }
    .tw1-g-strip-pills {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 2px;
    }
    .tw1-g-strip-pills::-webkit-scrollbar {
        display: none;
    }
    .tw1-g-pill {
        flex-shrink: 0;
        min-width: auto;
        padding: 4px 9px;
    }
}

body.android-app .tw1-g-strip-head {
    width: 100%;
    justify-content: space-between;
}

body.android-app .tw1-g-strip-pills {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

body.android-app .tw1-g-strip-pills::-webkit-scrollbar {
    display: none;
}

body.android-app .tw1-g-pill {
    flex-shrink: 0;
    min-width: auto;
    padding: 4px 9px;
}

/* ==========================================================================
   OPTION WW1 & WA1: WORKSHOP STATUS HUB (WEB & ANDROID/MOBILE)
   ========================================================================== */

.w1-kpi-card {
    min-width: 0;
    overflow: hidden;
}

.w1-kpi-body,
.w1-kpi-info {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.w1-kpi-label {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.w1-kpi-card.kpi-pink .w1-kpi-icon,
.w1-kpi-icon.kpi-pink {
    background: #fdf2f8;
    color: #db2777;
    border: 1px solid #fbcfe8;
}

.w1-kpi-card.kpi-blue .w1-kpi-icon {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.w1-kpi-card.kpi-emerald .w1-kpi-icon {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.w1-kpi-card.kpi-red .w1-kpi-icon {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Interactive Garment Filter Pills in Workshop Strip */
.ww1-g-filter-pill {
    cursor: pointer;
    font-family: inherit;
    outline: none;
}

.ww1-g-filter-pill.active {
    background: #fef2f2 !important;
    border-color: #dc2626 !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.12);
}

.ww1-g-filter-pill.active .tw1-g-lbl {
    color: #dc2626 !important;
    font-weight: 800;
}

.ww1-g-filter-pill.active .tw1-g-val {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
}

/* Segmented Queue Switcher Bar */
.workshop-subtabs-nav.ww1-subtabs-bar,
.ww1-subtabs-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap !important;
    gap: 10px;
    margin-bottom: 12px;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.ww1-queue-seg {
    display: inline-flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.ww1-queue-seg .ws-subtab-btn {
    flex: initial !important;
    min-width: 0 !important;
    max-width: 100%;
    overflow: hidden;
    border: none !important;
    background: transparent !important;
    color: #475569 !important;
    padding: 7px 14px !important;
    border-radius: 9px !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
    box-shadow: none !important;
    box-sizing: border-box;
}

.ww1-queue-seg .ws-subtab-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ww1-queue-seg .ws-subtab-btn.active {
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08) !important;
}

.ww1-queue-seg .ws-subtab-badge {
    background: rgba(15, 23, 42, 0.09) !important;
    color: #334155 !important;
    padding: 1px 6px !important;
    border-radius: 999px !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    flex-shrink: 0;
}

.ww1-queue-seg .ws-subtab-btn.active .ws-subtab-badge {
    background: #dc2626 !important;
    color: #ffffff !important;
}

/* WW1 Table Badges & Controls */
.ww1-garment-chip {
    font-weight: 800 !important;
    font-size: 0.78rem !important;
    padding: 5px 10px !important;
    border-radius: 8px !important;
}

.ww1-stage-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
}

.ww1-stage-badge.stage-cutting {
    background: #fdf2f8;
    color: #be185d;
    border: 1px solid #fbcfe8;
}

.ww1-stage-badge.stage-pending {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fcd34d;
}

.ww1-stage-badge.stage-assigned {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.ww1-stage-badge.stage-ready {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.ww1-karigar-select {
    width: 100%;
    max-width: 230px;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    border: 1.5px solid #cbd5e1 !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    background: #ffffff !important;
}

.ww1-auto-match-hint {
    display: block;
    font-size: 0.66rem;
    font-weight: 800;
    color: #059669;
    margin-top: 3px;
}

.ww1-action-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.ww1-btn-cut {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 7px 12px !important;
    border-radius: 8px !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.ww1-btn-assign {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 7px 12px !important;
    border-radius: 8px !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.ww1-btn-assign.ready-btn {
    background: #059669 !important;
}

/* Option WA1 Mobile / Android Cards */
.wa1-workshop-card.wa1-urgent-pink {
    border-left: 4.5px solid #db2777;
}

.wa1-workshop-card.wa1-urgent-blue {
    border-left: 4.5px solid #2563eb;
}

.wa1-stage-tag {
    font-size: 0.64rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wa1-stage-tag.pink {
    background: #fdf2f8;
    color: #be185d;
    border: 1px solid #fbcfe8;
}

.wa1-stage-tag.blue {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.wa1-mini-stage {
    font-size: 0.66rem;
    font-weight: 800;
    color: #64748b;
}

.wa1-mid-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px 9px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.wa1-g-badge {
    padding: 3px 8px !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    border-radius: 7px !important;
}

.wa1-dates-inline {
    font-size: 0.72rem;
    font-weight: 700;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.wa1-card-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 7px;
    border-top: 1px dashed #e2e8f0;
    margin-top: auto;
}

.wa1-k-select {
    flex: 1;
    min-width: 0;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    font-size: 0.74rem;
    font-weight: 700;
    color: #0f172a;
    background: #ffffff;
}

.wa1-cut-btn {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: #ffffff;
    border: none;
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
}

.wa1-assign-btn {
    background: #dc2626;
    color: #ffffff;
    border: none;
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
}

.wa1-assign-btn.ready {
    background: #059669;
}

@media (max-width: 640px) {
    .ww1-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
    .ww1-kpi-grid .w1-kpi-card {
        padding: 9px 10px !important;
        gap: 8px !important;
        align-items: flex-start !important;
    }
    .ww1-kpi-grid .w1-kpi-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.84rem !important;
        border-radius: 8px !important;
        margin-top: 1px;
    }
    .ww1-kpi-grid .w1-kpi-label {
        font-size: 0.6rem !important;
        line-height: 1.2 !important;
    }
    .ww1-kpi-grid .w1-kpi-value {
        font-size: 0.9rem !important;
        line-height: 1.22 !important;
    }
    .ww1-kpi-grid .w1-kpi-sub {
        font-size: 0.58rem !important;
        line-height: 1.2 !important;
    }
    .workshop-subtabs-nav.ww1-subtabs-bar,
    .ww1-subtabs-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }
    .ww1-queue-seg {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 4px !important;
        padding: 4px !important;
    }
    .ww1-queue-seg .ws-subtab-btn {
        width: 100% !important;
        padding: 8px 8px !important;
        font-size: 0.74rem !important;
        justify-content: center !important;
        gap: 5px !important;
    }
    .ww1-combined-tab-btn {
        grid-column: 1 / -1 !important;
    }
    #wsCuttingAlertPillWrapper.merged-alert-pill {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        align-items: center !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 10px !important;
        padding: 4px 8px !important;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03) !important;
    }
    #wsCuttingAlertPillWrapper .alert-subchip {
        justify-content: center !important;
        white-space: nowrap !important;
        font-size: 0.74rem !important;
        padding: 4px 6px !important;
    }
}

/* ============================================================
   CUSTOMERS PAGE - OPTION 1 REDESIGN (ELEVATED TABLE + MOBILE CARDS)
   ============================================================ */
.customers-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    background: #ffffff;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.cust-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 260px;
    position: relative;
}

.cust-search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.cust-search-input {
    width: 100% !important;
    padding: 8px 32px 8px 36px !important;
    font-size: 0.88rem !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    color: var(--text-main) !important;
    outline: none !important;
    transition: all 0.15s ease !important;
}

.cust-search-input:focus {
    background: #ffffff !important;
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.cust-search-clear {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    padding: 0 4px;
}

.cust-filter-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.cust-filter-pill {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    outline: none;
    user-select: none;
}

.cust-filter-pill:hover {
    border-color: #cbd5e1;
    color: var(--text-main);
}

.cust-filter-pill.active {
    background: #fef2f2 !important;
    border-color: #dc2626 !important;
    color: #dc2626 !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 4px rgba(220, 38, 38, 0.15) !important;
}

/* Elevated Table */
.customers-elevated-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid var(--glass-border) !important;
}

.customers-elevated-table thead th {
    background: #f8fafc !important;
    color: var(--text-muted) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 12px 14px !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
}

.customers-elevated-table tbody tr {
    transition: background 0.12s ease !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.customers-elevated-table tbody tr:hover {
    background: #f8fafc !important;
}

.customers-elevated-table tbody td {
    padding: 12px 14px !important;
    vertical-align: middle !important;
}

/* Mobile Touch Cards */
.cust-mobile-cards-grid {
    display: none;
}

.cust-mobile-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    margin-bottom: 12px;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    cursor: pointer;
}

.cust-mobile-card:hover {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.cust-mobile-card:active {
    transform: scale(0.99);
}

.cust-mobile-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Floating Action Button (FAB) */
.cust-fab-btn {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.45);
    cursor: pointer;
    font-size: 1.35rem;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cust-fab-btn:active {
    transform: scale(0.92);
}

@media (max-width: 768px) {
    .customers-table-container {
        display: none !important;
    }
    .cust-mobile-cards-grid {
        display: block !important;
    }
    .cust-fab-btn {
        display: flex !important;
    }
    .customers-filter-bar {
        padding: 8px 10px;
    }
    .cust-filter-pills {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        flex-wrap: nowrap;
    }
    .cust-filter-pill {
        white-space: nowrap;
        font-size: 0.78rem;
        padding: 5px 10px;
    }
}

/* =========================================================
   USERS & STAFF REDESIGN (OPTION 1: UNIFIED OPERATIONS HUB)
   ========================================================= */

.users-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.users-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.users-title-group h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main, #111827);
    display: flex;
    align-items: center;
    gap: 8px;
}

.users-title-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
    display: block;
    margin-top: 2px;
}

/* 4 KPI Metrics Card Grid */
.users-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 1.2rem;
}

.users-kpi-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 18px;
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.users-kpi-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.users-kpi-card.blue::before { background: #3b82f6; }
.users-kpi-card.green::before { background: #10b981; }
.users-kpi-card.amber::before { background: #f59e0b; }
.users-kpi-card.purple::before { background: #8b5cf6; }

.users-kpi-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.users-kpi-val {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-main, #111827);
    margin-top: 2px;
    line-height: 1.2;
}

.users-kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.users-kpi-card.blue .users-kpi-icon { background: #eff6ff; color: #2563eb; }
.users-kpi-card.green .users-kpi-icon { background: #f0fdf4; color: #16a34a; }
.users-kpi-card.amber .users-kpi-icon { background: #fffbeb; color: #d97706; }
.users-kpi-card.purple .users-kpi-icon { background: #faf5ff; color: #7c3aed; }

/* Segmented Tabs Bar */
.users-tabs-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 1.2rem;
    overflow-x: auto;
    padding-bottom: 4px;
    flex-wrap: nowrap;
}

.users-tab-btn {
    padding: 9px 18px;
    border-radius: 10px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.users-tab-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
}

.users-tab-btn.active {
    background: var(--primary, #dc2626);
    color: #ffffff;
    border-color: var(--primary, #dc2626);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.users-tab-counter-badge {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.users-tab-btn.active .users-tab-counter-badge {
    background: #ffffff;
    color: var(--primary, #dc2626);
    border-color: #ffffff;
}

/* Status Pills */
.users-status-pill {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.users-status-pill.green {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.users-status-pill.amber {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.users-status-pill.gray {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* Today's Break Button Chip in Staff Directory */
.users-break-chip-btn {
    padding: 5px 11px;
    border-radius: 8px;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.users-break-chip-btn:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.users-break-chip-btn.active {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #b45309;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.15);
}

.users-break-chip-btn.empty {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
    font-weight: 600;
}

/* Toolbars */
.users-breaks-toolbar,
.users-tracking-toolbar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 1.2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.users-breaks-filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.users-filter-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.users-filter-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.users-filter-input,
.users-filter-select {
    padding: 7px 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: var(--text-main, #111827);
    font-size: 0.88rem;
    font-weight: 600;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.users-filter-actions {
    display: flex;
    gap: 8px;
}

.users-btn-filter {
    padding: 7px 14px;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.users-btn-reset {
    padding: 7px 14px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.users-btn-refresh {
    padding: 7px 14px;
    background: #fee2e2;
    border: 1.5px solid #fca5a5;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--primary, #dc2626);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Breaks Summary Row */
.users-breaks-summary-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 1.2rem;
}

.users-break-summary-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    text-align: center;
}

.users-break-summary-card.amber {
    background: #fffdf5;
    border-color: #fde68a;
}

.users-break-summary-card.green {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.users-bcard-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.users-bcard-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 2px;
}

.users-reason-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.82rem;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 9px;
    border-radius: 8px;
}

/* Mobile & Android Layouts (Initially Hidden on Desktop) */
.users-mobile-cards-grid,
.users-breaks-mobile-grid {
    display: none;
}

.users-fab-btn {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.45);
    cursor: pointer;
    font-size: 1.35rem;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.users-fab-btn:active {
    transform: scale(0.92);
}

/* User Mobile Touch Card */
.user-mobile-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.12s ease;
}

.user-mobile-card.on-break {
    border-left: 4px solid #f59e0b;
    background: #fffdf5;
}

.user-mobile-card.in-store {
    border-left: 4px solid #10b981;
}

.user-mcard-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-mcard-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.user-mcard-avatar-img,
.users-mcard-avatar-img,
.user-mobile-card img,
.user-mcard-profile img {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #e2e8f0 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
    flex-shrink: 0 !important;
    display: block !important;
}

.user-mcard-avatar-placeholder,
.users-mcard-avatar-placeholder {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    border-radius: 50% !important;
    background: #fee2e2 !important;
    color: #dc2626 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    border: 1px solid #fca5a5 !important;
    flex-shrink: 0 !important;
}

.user-mcard-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}

.user-mcard-role-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.user-mcard-role-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    text-transform: capitalize;
}

.user-mcard-role-badge.role-manager { background: #eff6ff; color: #1d4ed8; }
.user-mcard-role-badge.role-salesman { background: #fef3c7; color: #b45309; }
.user-mcard-role-badge.role-cashier { background: #f0fdf4; color: #15803d; }
.user-mcard-role-badge.role-admin { background: #fee2e2; color: #dc2626; }

.user-mcard-id {
    font-size: 0.74rem;
    color: #64748b;
}

.user-mcard-middle {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
    border-top: 1px dashed #f1f5f9;
}

.user-mcard-phone-btn {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 9px;
    border-radius: 7px;
}

.user-mcard-phone-btn i {
    color: var(--primary, #dc2626);
}

.user-mcard-ip {
    font-size: 0.74rem;
    color: #0284c7;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: 600;
}

.user-mcard-id-btn {
    font-size: 0.74rem;
    font-weight: 600;
    color: #4f46e5;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.user-mcard-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 4px;
    border-top: 1px solid #f1f5f9;
}

.user-mcard-actions {
    display: flex;
    gap: 6px;
}

.user-mcard-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
}

.user-mcard-action-btn.edit { color: #16a34a; }
.user-mcard-action-btn.delete { color: #dc2626; }

/* Break Mobile Touch Card */
.break-mobile-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.break-mobile-card.active-break {
    border-left: 4px solid #d97706;
    background: #fffdf5;
}

.break-mcard-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.break-mcard-staff {
    display: flex;
    align-items: center;
    gap: 10px;
}

.break-mcard-avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #334155;
    font-weight: 800;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
}

.break-mcard-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
}

.break-mcard-role {
    font-size: 0.7rem;
    color: #64748b;
}

.break-mcard-status-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.break-mcard-status-badge.active {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.break-mcard-status-badge.completed {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.break-mcard-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.break-mcard-reason {
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.break-mcard-duration {
    color: #166534;
}

.break-mobile-card.active-break .break-mcard-duration {
    color: #d97706;
}

.break-mcard-timing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #64748b;
    padding-top: 4px;
    border-top: 1px dashed #e2e8f0;
}

.break-mcard-del-btn {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    font-size: 0.88rem;
    padding: 2px 6px;
}

/* Responsive Mobile Viewports */
@media (max-width: 768px), body.android-app {
    .users-kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .users-kpi-card {
        padding: 10px 12px !important;
    }

    .users-kpi-label {
        font-size: 0.7rem !important;
    }

    .users-kpi-val {
        font-size: 1.3rem !important;
    }

    .users-kpi-icon {
        width: 34px !important;
        height: 34px !important;
        font-size: 1rem !important;
    }

    .users-tabs-bar {
        gap: 6px !important;
    }

    .users-tab-btn {
        padding: 7px 12px !important;
        font-size: 0.8rem !important;
    }

    .users-table-container {
        display: none !important;
    }

    .users-mobile-cards-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding-bottom: 70px !important;
    }

    .users-fab-btn {
        display: flex !important;
    }

    .users-breaks-desktop-table {
        display: none !important;
    }

    .users-breaks-mobile-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding-bottom: 70px !important;
    }

    .users-breaks-summary-row {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }

    .users-break-summary-card {
        padding: 6px 8px !important;
    }

    .users-bcard-label {
        font-size: 0.62rem !important;
    }

    .users-bcard-val {
        font-size: 1.1rem !important;
    }

    .users-breaks-toolbar,
    .users-tracking-toolbar {
        padding: 10px 12px !important;
    }

    .users-header-desktop-actions {
        display: none !important;
    }
}
