/**
 * SMS Map CSS v5.4 - Fixed Design
 */

:root {
    --primary-color: #60a5fa;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --border-color: #475569;
    --shadow-lg: rgba(0, 0, 0, 0.5);
    --service-color: #3b82f6;
    --install-color: #f59e0b;
    --green-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --purple-gradient: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    --header-height: 56px;
}

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

body.sms-map-page {
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.sms-map-container { width: 100%; height: 100vh; }

/* HEADER */
.sms-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--bg-secondary);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-lg);
    height: var(--header-height);
}

.sms-filter-buttons, .sms-menu-buttons { display: flex; gap: 8px; }

.sms-inventory-btn, .sms-menu-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    color: var(--primary-color);
    min-width: 40px; min-height: 40px;
    display: flex; align-items: center; justify-content: center;
}

.sms-refresh-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex; align-items: center; gap: 6px;
    cursor: pointer;
    font-weight: 600; font-size: 12px;
    color: var(--primary-color);
}

.refresh-text { display: none; }
@media (min-width: 480px) { .refresh-text { display: inline; } }

/* SIDE MENUS - FULL SCREEN */
.sms-side-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100dvh;
    background: var(--bg-primary);
    transition: right 0.3s ease;
    z-index: 2000;
    display: flex; flex-direction: column;
    overflow: hidden;
}

.sms-side-menu.open { right: 0; }

.sms-menu-header {
    background: var(--green-gradient);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.sms-menu-header h3 { margin: 0; font-size: 17px; font-weight: 700; color: white; }

.sms-close-menu {
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.2);
    border: none; color: white;
    font-size: 22px; cursor: pointer;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}

.sms-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    padding-bottom: 100px;
    -webkit-overflow-scrolling: touch;
}

/* TEMPLATES */
.sms-templates-list { display: flex; flex-direction: column; gap: 8px; }

.template-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
}

.template-name { font-weight: 600; font-size: 14px; color: var(--text-primary); }

/* CALL LIST */
.sms-call-list-filters { margin-bottom: 12px; }

.sms-list-filter {
    width: 100%; padding: 12px;
    border: none;
    background: var(--green-gradient);
    color: white;
    border-radius: 10px;
    font-size: 14px; font-weight: 700;
    cursor: pointer;
}

.sms-call-list { display: flex; flex-direction: column; gap: 10px; }

.call-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    border-left: 4px solid var(--service-color);
}

.call-item.install { border-left-color: var(--install-color); }

.call-item-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.call-order-number { font-weight: 700; font-size: 15px; }

.call-type-badge {
    padding: 3px 8px; border-radius: 6px;
    font-size: 10px; font-weight: 700; text-transform: uppercase;
}

.call-type-badge.service { background: var(--service-color); color: white; }
.call-type-badge.install { background: var(--install-color); color: white; }

.call-set-eta { margin-left: auto; color: var(--text-tertiary); font-size: 11px; cursor: pointer; }
.call-client { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.call-address { font-size: 11px; color: var(--text-tertiary); margin-bottom: 10px; }

.call-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.call-action-btn {
    flex: 1; min-width: 70px;
    padding: 8px 6px; border: none; border-radius: 6px;
    font-size: 10px; font-weight: 700;
    cursor: pointer; text-transform: uppercase;
}

.call-action-btn.route { background: var(--bg-tertiary); color: var(--text-secondary); }
.call-action-btn.route.in-route { background: #22c55e; color: white; }
.call-action-btn.navigate { background: var(--service-color); color: white; }
.call-action-btn.invoice { background: #22c55e; color: white; }
.call-action-btn.close { background: transparent; border: 1px solid #ef4444; color: #ef4444; }

/* INVENTORY - FULL SCREEN */
.inventory-widget {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100dvh;
    background: var(--bg-primary);
    transition: right 0.3s ease;
    z-index: 2000;
    display: flex; flex-direction: column;
    overflow: hidden;
}

.inventory-widget.active { right: 0; }

.inventory-header {
    background: var(--green-gradient);
    padding: 12px 16px;
    display: flex; align-items: center; justify-content: space-between;
    flex-shrink: 0;
}

.inventory-header h3 { font-size: 16px; font-weight: 700; color: white; margin: 0; }
.inventory-header-buttons { display: flex; gap: 8px; }

.inventory-edit-btn {
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.1);
    color: white; border-radius: 6px;
    font-size: 12px; font-weight: 600; cursor: pointer;
}

.inventory-edit-btn.active { background: white; color: #059669; }

.inventory-close-btn {
    width: 32px; height: 32px;
    border: none; background: rgba(255,255,255,0.2);
    color: white; border-radius: 8px;
    font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

.inventory-tabs {
    display: flex; gap: 6px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto; flex-shrink: 0;
}

/* Inventory category tabs use icons instead of text.  */
.inventory-tab {
    width: 44px;
    height: 44px;
    padding: 4px;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inventory-tab img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Active inventory tab highlighted with a gradient */
.inventory-tab.active {
    background: var(--green-gradient);
    color: white;
}

.inventory-search-container { padding: 10px 12px; flex-shrink: 0; }

.inventory-search-input {
    /* Search bar matches dark theme like the sample design */
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.inventory-search-input::placeholder {
    color: var(--text-tertiary);
}

.inventory-content {
    flex: 1; overflow-y: auto;
    padding: 10px 12px;
    padding-bottom: 100px;
    -webkit-overflow-scrolling: touch;
}

.inventory-add-form {
    display: none;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 10px;
    margin-bottom: 10px;
}

.inventory-add-form.show { display: block; }

.inventory-add-form input,
.inventory-add-form select,
.inventory-add-form textarea {
    width: 100%; padding: 10px; margin-bottom: 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary); font-size: 13px;
}

.inventory-form-buttons { display: flex; gap: 6px; }
.inventory-form-buttons button {
    flex: 1; padding: 10px; border: none; border-radius: 6px;
    font-size: 13px; font-weight: 600; cursor: pointer;
}
.inventory-form-buttons button:first-child { background: #22c55e; color: white; }
.inventory-form-buttons button:last-child { background: var(--bg-tertiary); color: var(--text-secondary); }

.inventory-list { display: flex; flex-direction: column; gap: 2px; }

.inventory-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.inventory-info-btn {
    /* Blue circle info icon like in the sample */
    width: 32px;
    height: 32px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    font-style: italic;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inventory-model { flex: 1; font-size: 15px; font-weight: 600; }

/* HORIZONTAL EDIT CONTROLS */
.inventory-controls { display: flex; align-items: center; gap: 4px; }

.inventory-qty-btn {
    display: none;
    width: 26px; height: 26px;
    border: none; background: var(--bg-tertiary);
    color: var(--text-primary); border-radius: 6px;
    font-size: 16px; cursor: pointer;
    align-items: center; justify-content: center;
}

.inventory-qty-value {
    font-size: 18px; font-weight: 700;
    color: var(--install-color);
    min-width: 26px; text-align: center;
}

.inventory-delete-btn {
    display: none;
    width: 26px; height: 26px;
    border: none; background: #ef4444;
    color: white; border-radius: 6px;
    font-size: 14px; cursor: pointer;
    align-items: center; justify-content: center;
    margin-left: 4px;
}

.inventory-widget.edit-mode .inventory-qty-btn,
.inventory-widget.edit-mode .inventory-delete-btn { display: flex; }

/* INVOICE MODAL - FULL SCREEN */
.invoice-closure-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 3000;
    background: var(--bg-primary);
    flex-direction: column;
}

/*
 * Custom styles for the map info window popups.
 * These classes are referenced from sms-map.js when building the info window content.
 */
.sms-info-window {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 14px;
    color: var(--text-primary);
    min-width: 260px;
    font-family: sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.sms-info-window .info-order {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}
.sms-info-window .info-client {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.sms-info-window .info-address {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}
.sms-info-window .info-eta {
    font-size: 12px;
    color: var(--install-color);
    margin-bottom: 8px;
}
.sms-info-window .info-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.sms-info-window .info-buttons button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    text-transform: uppercase;
}
.sms-info-window .btn-route {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}
.sms-info-window .btn-route.in-route {
    background: #22c55e;
    color: white;
}
.sms-info-window .btn-nav {
    background: var(--service-color);
}
.sms-info-window .btn-invoice {
    background: #22c55e;
}
.sms-info-window .btn-close {
    background: #ef4444;
}

.invoice-closure-modal.active { display: flex; }

.invoice-modal-overlay { display: none; }

.invoice-modal-content {
    display: flex; flex-direction: column;
    height: 100dvh;
}

.invoice-modal-header {
    background: var(--bg-secondary);
    padding: 14px 16px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.invoice-modal-header h3 { color: var(--text-primary); font-size: 16px; font-weight: 700; margin: 0; }

.invoice-modal-close {
    width: 32px; height: 32px;
    border: none; background: var(--bg-tertiary);
    color: var(--text-primary); border-radius: 8px;
    font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

.invoice-modal-body {
    /* Fill remaining height and allow vertical scrolling only. Prevent horizontal scroll or inadvertent dragging of the form. */
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: 12px 16px;
    padding-bottom: 100px;
    /* Remove default iOS momentum scrolling to keep the form fixed in place */
    -webkit-overflow-scrolling: auto;
}

/* Replacement items row for REPL work descriptions */
.repl-items-container {
    margin-bottom: 12px;
}
.repl-items-container label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.repl-item-row {
    display: flex;
    gap: 12px;
    align-items: center;
}
.repl-item-row select,
.repl-item-row input {
    flex: 1;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}
.repl-item-row input {
    max-width: 80px;
}
.repl-remove-btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    font-size: 16px;
    cursor: pointer;
}

/* Prevent body scrolling when invoice modal is open */
body.invoice-open {
    overflow: hidden;
}

/* Compact Order Info */
.invoice-order-info {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.invoice-order-info-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 6px;
}

.invoice-order-info-header h4 {
    font-size: 12px; color: var(--text-tertiary);
    font-weight: 600; margin: 0;
}

.invoice-type-badge {
    padding: 3px 10px; border-radius: 6px;
    font-size: 10px; font-weight: 700;
}

.invoice-type-badge.service { background: var(--service-color); color: white; }
.invoice-type-badge.install { background: var(--install-color); color: white; }

.invoice-order-row {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 4px;
}

.invoice-order-row label {
    font-size: 10px; color: var(--text-tertiary);
    text-transform: uppercase; min-width: 50px;
}

.invoice-order-row span {
    font-size: 13px; font-weight: 600; color: var(--text-primary);
    flex: 1;
}

.invoice-copy-btn {
    width: 28px; height: 28px;
    border: none; background: var(--bg-tertiary);
    color: var(--text-secondary); border-radius: 6px;
    font-size: 12px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

/* Invoice Fields */
.invoice-field { margin-bottom: 12px; }

.invoice-field label {
    display: block;
    font-size: 11px; font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.invoice-field input,
.invoice-field select {
    width: 100%; padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary); font-size: 14px;
}

/* Two columns */
.invoice-row {
    display: flex; gap: 12px;
}

.invoice-row .invoice-field { flex: 1; }

/* Checkbox */
.invoice-checkbox {
    display: flex; align-items: center; gap: 10px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 13px; color: var(--text-secondary);
}

.invoice-checkbox input { width: 20px; height: 20px; }

/* Project Mode Options */
.project-rate-options {
    display: none;
    margin-bottom: 12px;
}

.project-rate-options.show { display: block; }

.project-rate-options label {
    display: block;
    font-size: 11px; font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.rate-buttons { display: flex; gap: 8px; }

.rate-btn {
    flex: 1; padding: 12px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 8px;
    font-size: 14px; font-weight: 700;
    cursor: pointer;
}

.rate-btn.active {
    border-color: var(--primary-color);
    background: rgba(96, 165, 250, 0.2);
    color: var(--primary-color);
}

/* Calculator */
.invoice-calculator {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    text-align: center;
}

.calc-label {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.calc-value { font-size: 28px; font-weight: 800; color: white; }
.calc-details { font-size: 11px; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* Footer */
.invoice-modal-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    display: flex; gap: 10px;
    flex-shrink: 0;
    background: var(--bg-primary);
}

.invoice-modal-footer button {
    flex: 1; padding: 14px;
    border: none; border-radius: 10px;
    font-size: 14px; font-weight: 700; cursor: pointer;
}

.invoice-cancel-btn { background: var(--bg-tertiary); color: var(--text-secondary); }
.invoice-submit-btn { background: var(--purple-gradient); color: white; }

/* WIDGET CONTROL PANEL - BIGGER ICONS */
.widget-control-panel {
    position: fixed;
    left: 8px; top: 50%;
    transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 8px;
    z-index: 500;
    background: var(--bg-secondary);
    padding: 8px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
}

.widget-control-btn {
    width: 50px; height: 50px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: 12px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

.widget-control-btn.active {
    background: var(--primary-color);
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.5);
}

.widget-icon { font-size: 26px; }

.widget-icon-coin {
    font-size: 24px;
    background: radial-gradient(circle at 30% 30%, #facc15, #a3e635 60%, #166534 100%);
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.7);
}

/* Daily Results widget - NeoGlass card */
.daily-results-widget {
    backdrop-filter: blur(18px);
    /* Dark frosted glass background similar to example */
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(69, 90, 125, 0.5);
    border-radius: 20px;
    overflow: hidden;
}

.daily-widget-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* New daily section layout */
.daily-section {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}
.daily-left,
.daily-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Sparkline container */
.daily-sparkline {
    height: 30px;
    margin: 2px 0 4px;
    color: rgba(96, 165, 250, 0.8);
}
.daily-sparkline svg {
    width: 100%;
    height: 100%;
}

.daily-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(203,213,225,0.85);
    margin-bottom: 2px;
}

/* Big value text */
.daily-money-value,
.daily-stat-value,
.daily-km-main {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

/* subline and stat sub text */
.daily-subline,
.daily-stat-sub {
    font-size: 10px;
    color: rgba(148,163,184,0.9);
}

/* Align right text in right column */
.daily-right {
    text-align: right;
}

/* Divider between sections */
.daily-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96,115,148,0.6), transparent);
    margin: 8px 0;
}

/* Pulse on update */
.daily-results-widget.dr-pulse {
    animation: drPulse 0.6s ease-out;
}

@keyframes drPulse {
    0% { transform: translateX(0) scale(1); box-shadow: 0 0 0 rgba(234, 179, 8, 0.0); }
    40% { transform: translateX(0) scale(1.01); box-shadow: 0 0 18px rgba(234, 179, 8, 0.5); }
    100% { transform: translateX(0) scale(1); box-shadow: 0 0 0 rgba(234, 179, 8, 0.0); }
}
/* WIDGETS - LIGHTER TEXT */
.success-scale-widget,
.route-widget,
.eta-widget,
.daily-results-widget {
    position: fixed;
    left: -320px;
    top: calc(var(--header-height) + 12px);
    bottom: 80px;
    width: 300px;
    background: var(--bg-secondary);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 30px var(--shadow-lg);
    transition: left 0.3s ease;
    z-index: 600;
    display: flex; flex-direction: column;
    opacity: 0;
    pointer-events: none;
}

.success-scale-widget.open,
.route-widget.open,
.eta-widget.open,
.daily-results-widget.open {
    left: 76px;
    opacity: 1;
    pointer-events: auto;
}

.widget-header {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    background: var(--bg-tertiary);
    border-radius: 14px 14px 0 0;
}

.widget-header-icon {
    width: 36px; height: 36px;
    background: rgba(96, 165, 250, 0.3);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}

.widget-header-title {
    flex: 1;
    font-size: 15px; font-weight: 700;
    color: white;
    margin: 0;
}

.widget-close-btn {
    width: 28px; height: 28px;
    border: none; background: rgba(255,255,255,0.15);
    color: white; border-radius: 6px;
    cursor: pointer; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
}

.widget-content {
    flex: 1; overflow-y: auto;
    padding: 12px;
    display: flex; flex-direction: column; gap: 10px;
}

/* Success Scale - LIGHTER */
.scale-levels { display: flex; flex-direction: column; gap: 6px; }

.scale-level-row { display: flex; align-items: center; gap: 8px; }
.level-icon { font-size: 18px; width: 26px; text-align: center; }
.level-bar { flex: 1; height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; }
.level-fill { height: 100%; background: var(--primary-color); border-radius: 4px; }
.level-num { font-size: 12px; color: var(--text-secondary); width: 24px; text-align: right; font-weight: 600; }

.scale-counter-box {
    background: var(--green-gradient);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.counter-value { font-size: 44px; font-weight: 800; color: white; line-height: 1; }
.counter-text { font-size: 10px; color: rgba(255,255,255,0.8); text-transform: uppercase; }

.scale-status-box {
    display: flex; align-items: center; gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
}

.status-emoji { font-size: 34px; }
.status-name { display: block; font-size: 16px; font-weight: 700; color: white; }
.status-desc { font-size: 12px; color: var(--text-secondary); }

.scale-next-box {
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 10px 12px;
}

.next-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.next-text { font-size: 11px; color: var(--text-secondary); }
.next-name { font-size: 13px; font-weight: 600; color: white; }
.next-count { margin-left: auto; font-size: 11px; color: var(--text-secondary); }
.next-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; }
.next-bar-fill { height: 100%; background: var(--primary-color); border-radius: 3px; }

/* Route & ETA - LIGHTER */
.route-orders-list, .eta-orders-list { display: flex; flex-direction: column; gap: 8px; flex: 1; }

.route-order-item, .eta-order-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
}

.route-order-number, .eta-order-number { font-size: 13px; font-weight: 600; color: white; }
.route-order-address, .eta-order-address { font-size: 11px; color: var(--text-secondary); }
.eta-order-time { font-size: 15px; font-weight: 700; color: var(--primary-color); margin-top: 2px; }

.route-order-remove {
    width: 26px; height: 26px;
    border: none; background: #ef4444;
    color: white; border-radius: 50%;
    cursor: pointer; font-size: 16px;
}

.route-buttons { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.btn-primary { flex: 1; padding: 12px; background: var(--service-color); border: none; border-radius: 10px; color: white; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-danger-outline { flex: 1; padding: 12px; background: transparent; border: 1px solid #ef4444; border-radius: 10px; color: #ef4444; font-size: 13px; font-weight: 600; cursor: pointer; }

.empty-message { text-align: center; padding: 30px; color: var(--text-secondary); font-size: 13px; }

/* SCANNER MODAL */
.sms-scanner-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-primary);
    z-index: 3000;
    flex-direction: column;
}

.sms-scanner-modal.open { display: flex; }

.sms-scanner-header {
    background: var(--purple-gradient);
    padding: 14px 16px;
    display: flex; align-items: center; justify-content: space-between;
    flex-shrink: 0;
}

.sms-scanner-header h3 { font-size: 16px; font-weight: 700; color: white; margin: 0; }

.sms-scanner-close {
    width: 32px; height: 32px;
    border: none; background: rgba(255,255,255,0.2);
    color: white; border-radius: 8px;
    font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

.sms-scanner-content { flex: 1; overflow-y: auto; padding: 16px; }

.sms-action-menu h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.sms-action-menu-subtitle { font-size: 13px; color: var(--text-tertiary); margin-bottom: 16px; }

.sms-action-btn {
    display: flex; align-items: center; gap: 12px;
    width: 100%; padding: 16px;
    margin-bottom: 10px;
    background: #e2e8f0;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    color: #1e293b;
    font-size: 14px; font-weight: 600;
    cursor: pointer;
}

.sms-action-btn-icon { font-size: 22px; }

.sms-action-btn-finish {
    background: var(--purple-gradient);
    border-color: #8b5cf6;
    color: white;
}

.sms-scanner-view { display: none; }
.sms-scanner-view.active { display: block; }

#scanner-reader {
    width: 100%; max-width: 400px;
    margin: 0 auto 16px;
    background: var(--bg-secondary);
    border-radius: 12px; overflow: hidden;
}

.sms-scanner-loading { padding: 60px 20px; text-align: center; }

.sms-scanner-spinner {
    width: 50px; height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.sms-toggle-camera-btn {
    width: 100%; padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 13px; font-weight: 600;
    cursor: pointer; margin-bottom: 12px;
}

.sms-scanned-items {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 12px; margin-bottom: 12px;
}

.sms-scanned-items h4 { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
#scannedItemsList { display: flex; flex-direction: column; gap: 6px; }

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

.sms-scanner-btn {
    flex: 1; padding: 12px;
    border: none; border-radius: 10px;
    font-size: 13px; font-weight: 600; cursor: pointer;
}

.sms-scanner-btn-back { background: var(--bg-tertiary); color: var(--text-secondary); }
.sms-scanner-btn-add { background: var(--primary-color); color: white; }

.sms-preview-modal { display: none; }
.sms-preview-modal.active { display: block; }

.sms-preview-modal h3 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }

.sms-preview-content {
    background: white;
    border-radius: 12px;
    padding: 16px;
    font-size: 13px; line-height: 1.6;
    color: #1e293b;
    white-space: pre-wrap;
    font-family: monospace;
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 16px;
}

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

.sms-preview-btn {
    flex: 1; padding: 14px;
    border: none; border-radius: 10px;
    font-size: 14px; font-weight: 700; cursor: pointer;
}

.sms-preview-btn-cancel { background: var(--bg-tertiary); color: var(--text-secondary); }
.sms-preview-btn-copy { background: var(--purple-gradient); color: white; }

/* INFO POPUP */
.inventory-info-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 3100;
    display: none;
}

.inventory-info-overlay.open { display: block; }

.inventory-info-popup {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%; max-width: 360px;
    background: var(--bg-secondary);
    border-radius: 14px;
    z-index: 3101;
    display: none; opacity: 0;
}

.inventory-info-popup.open { display: block; opacity: 1; transform: translate(-50%, -50%) scale(1); }

.inventory-info-popup-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center;
}

.inventory-info-popup-header h4 { font-size: 15px; font-weight: 700; margin: 0; }

.inventory-info-popup-close {
    width: 28px; height: 28px;
    border: none; background: var(--bg-tertiary);
    color: var(--text-primary); border-radius: 50%;
    font-size: 16px; cursor: pointer;
}

.inventory-info-popup-content { padding: 16px; }

.inventory-info-popup-content textarea {
    width: 100%; min-height: 100px;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    resize: vertical; margin-bottom: 12px;
}

.inventory-info-popup-save {
    width: 100%; padding: 12px;
    background: #22c55e; border: none; border-radius: 8px;
    color: white; font-size: 14px; font-weight: 600; cursor: pointer;
}

/* ETA MODAL */
.eta-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2500;
    display: none;
    align-items: center; justify-content: center;
}

.eta-modal-overlay.show { display: flex; }

.eta-modal-content {
    background: var(--bg-secondary);
    border-radius: 14px;
    padding: 20px;
    width: 90%; max-width: 340px;
}

.eta-modal-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; text-align: center; }
.eta-modal-inputs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

.eta-modal-inputs input {
    width: 100%; padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary); font-size: 15px;
}

.eta-modal-buttons { display: flex; gap: 10px; }

.eta-modal-btn {
    flex: 1; padding: 14px;
    border: none; border-radius: 10px;
    font-size: 14px; font-weight: 600; cursor: pointer;
}

.eta-modal-btn-cancel { background: var(--bg-tertiary); color: var(--text-secondary); }
.eta-modal-btn-save { background: #22c55e; color: white; }

/* TOAST */
.sms-toast {
    position: fixed;
    bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 13px; font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
}

.sms-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.sms-toast.success { border-color: #22c55e; background: rgba(34, 197, 94, 0.2); }
.sms-toast.error { border-color: #ef4444; background: rgba(239, 68, 68, 0.2); }

/* MOBILE */
@media (max-width: 768px) {
    .widget-control-panel { left: 6px; }
    .widget-control-btn { width: 44px; height: 44px; }
    .widget-icon { font-size: 22px; }

    .success-scale-widget.open,
    .route-widget.open,
    .eta-widget.open {
        left: 62px;
        width: 280px;
    }
}

/* Hide WP */
body.sms-map-page #wpadminbar,
body.sms-map-page header,
body.sms-map-page footer { display: none !important; }

/* ---------------------------------- */
/* Call List Card Styles */
/* ---------------------------------- */

/* Wrapper for each call */
.call-card {
    background: var(--bg-secondary);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Header with type pill and store name */
.call-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.type-pill {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

/* Color the pill by type */
.type-pill.service { background: #2563eb; }
.type-pill.install { background: #f59e0b; }

.call-store {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Order number and address lines */
.call-order {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.call-address {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Action buttons row */
.call-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.call-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

/* Specific button colors */
.call-btn.route {
    background: #1e40af;
    color: #bfdbfe;
}

.call-btn.route.in-route {
    background: transparent;
    color: #1e40af;
    border: 1px solid #1e40af;
}

.call-btn.navigate {
    background: #059669;
    color: #d1fae5;
}

.call-btn.invoice {
    background: #ca8a04;
    color: #fef3c7;
}

.call-btn.close {
    background: transparent;
    color: #dc2626;
    border: 1px solid #dc2626;
}

/* Hover states */
.call-btn.route:hover { background: #1d4ed8; color: #dbeafe; }
.call-btn.navigate:hover { background: #047857; color: #bbf7d0; }
.call-btn.invoice:hover { background: #b45309; color: #fde68a; }
.call-btn.close:hover { background: rgba(220,38,38,0.1); }

/* ---------------------------------- */
/* Inventory List Enhancements */
/* ---------------------------------- */

.inventory-item {
    display: flex;
    align-items: center;
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-color);
}

.inventory-info-btn {
    background: #2563eb;
    color: #fff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: none;
    margin-right: 10px;
    cursor: pointer;
}

.inventory-model {
    flex-grow: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.inventory-qty-value {
    font-size: 14px;
    font-weight: 600;
    color: #f97316;
}

/* Quantity display used only in edit mode */
.inventory-qty-edit {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Hide edit quantity when not in edit mode */
#inventoryWidget:not(.edit-mode) .inventory-qty-edit { display: none; }
/* Hide normal quantity when in edit mode */
#inventoryWidget.edit-mode .inventory-qty-value { display: none; }

.inventory-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.inventory-qty-btn,
.inventory-delete-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 6px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
}

.inventory-delete-btn { color: #dc2626; }

/* Show/hide quantity and controls depending on edit mode */
#inventoryWidget.edit-mode .inventory-qty-value { display: none; }
#inventoryWidget:not(.edit-mode) .inventory-controls { display: none; }

html { margin-top: 0 !important; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }

/*
 * Premium Daily Results Styles
 * These styles overhaul the default Daily Results widget to match a dark glassmorphism aesthetic
 * inspired by the provided design reference. Sections are separated and coloured with gradients
 * for improved readability. The money bag icon is highlighted with its own radial gradient.
 */

/* Main container adjustments */
.daily-results-widget {
    width: 340px;
    max-width: calc(100vw - 32px);
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.95));
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(22px);
    overflow: hidden;
}

/* Header styling with highlighted money bag icon */
.daily-results-widget .widget-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 14px 16px;
    border-radius: 20px 20px 0 0;
}
.daily-results-widget .widget-header-icon-money {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: radial-gradient(circle at 35% 35%, rgba(234, 179, 8, 0.4), rgba(234, 179, 8, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #facc15;
}

/* Control panel icon adjustment */
.widget-control-btn .widget-icon-money {
    font-size: 20px;
}

/* Content padding and spacing */
.daily-results-widget .daily-widget-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Top section (Total money & KM) */
.daily-section-top {
    display: flex;
    gap: 20px;
    padding: 16px 14px;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.30), rgba(14, 165, 233, 0.05));
    border-radius: 16px;
}
.daily-section-top .daily-left,
.daily-section-top .daily-right {
    flex: 1;
}

/* Middle section (Open & Closed calls) */
.daily-section-middle {
    display: flex;
    gap: 14px;
}
.daily-section-middle .daily-left,
.daily-section-middle .daily-right {
    flex: 1;
    padding: 14px 12px;
    border-radius: 16px;
    color: white;
}
.daily-section-middle .daily-left {
    background: var(--purple-gradient);
}
.daily-section-middle .daily-right {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
}
.daily-section-middle .daily-label,
.daily-section-middle .daily-stat-value,
.daily-section-middle .daily-stat-sub {
    color: white;
}
.daily-section-middle .daily-right {
    text-align: right;
}

/* Bottom section (Average times) */
.daily-section-bottom {
    display: flex;
    gap: 14px;
}
.daily-section-bottom .daily-left,
.daily-section-bottom .daily-right {
    flex: 1;
    padding: 14px 12px;
    border-radius: 16px;
    background: var(--bg-secondary);
}
.daily-section-bottom .daily-right {
    text-align: right;
}

/* Redesigned My Inventory & My Calls styles */
/* Inventory header with modern look */
.inventory-header {
    background: rgba(255,255,255,0.03);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px 16px 0 0;
}
.inventory-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0;
}

/* Category tabs */
.inventory-tab {
    width: 48px;
    height: 48px;
    padding: 6px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}
.inventory-tab.active {
    background: var(--purple-gradient);
    color: white;
}
.inventory-tab img {
    width: 24px;
    height: 24px;
}

/* Search bar */
.inventory-search-input {
    width: 100%;
    padding: 14px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
}
.inventory-search-input::placeholder {
    color: var(--text-tertiary);
}

/* Inventory items */
.inventory-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 8px;
}
.inventory-info-btn {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.inventory-model {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}
.inventory-qty-value {
    font-size: 18px;
    font-weight: 700;
    color: #f59e0b;
    min-width: 26px;
    text-align: center;
}

/* Call list premium styling */
.call-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 18px 16px;
    margin-bottom: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.call-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.call-card-header .type-pill {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}
.call-card-header .call-store {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}
.call-card-header .call-eta {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    text-transform: uppercase;
}
.call-card-header .call-eta.has-eta {
    color: #fbbf24;
}
.call-card-header .call-eta:hover {
    text-decoration: underline;
}
.call-order {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.call-address {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.call-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.call-btn {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.call-btn.route {
    background: #1d4ed8;
    color: #dbeafe;
}
.call-btn.route.in-route {
    background: transparent;
    color: #1d4ed8;
    border: 1px solid #1d4ed8;
}
.call-btn.navigate {
    background: #047857;
    color: #bbf7d0;
}
.call-btn.invoice {
    background: #b45309;
    color: #fde68a;
}
.call-btn.close {
    background: transparent;
    color: #dc2626;
    border: 1px solid #dc2626;
}
.call-btn.route:hover {
    background: #1e40af;
    color: #dbeafe;
}
.call-btn.navigate:hover {
    background: #065f46;
    color: #a7f3d0;
}
.call-btn.invoice:hover {
    background: #92400e;
    color: #fcd34d;
}
.call-btn.close:hover {
    background: rgba(220,38,38,0.1);
}

/* Redesigned call list filter buttons */
.sms-call-list-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.sms-list-filter {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    text-align: center;
}
.sms-list-filter.active {
    background: var(--green-gradient);
    color: white;
    border: none;
}

/* Editable ESTIMATED TOTAL pencil button */
.calc-edit-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    opacity: 0.8;
}
.calc-edit-btn.active {
    opacity: 1;
}

.calc-value.manual-edit {
    outline: 1px dashed rgba(255,255,255,0.7);
    outline-offset: 2px;
}

/* Call List Styles */
.call-card{background:rgba(255,255,255,.08);backdrop-filter:blur(14px);padding:16px;border-radius:16px;margin-bottom:14px;border:1px solid rgba(255,255,255,0.15);color:#fff;}
.call-card-header{font-size:1.1rem;font-weight:600;margin-bottom:8px;}
.call-card-info{display:flex;gap:16px;margin-bottom:14px;opacity:.85;}
.call-card-actions{display:flex;gap:10px;flex-wrap:wrap;}
.call-btn{padding:8px 14px;background:rgba(0,90,255,.3);border:1px solid rgba(0,140,255,.35);border-radius:8px;color:#fff;cursor:pointer;transition:.2s;}
.call-btn:hover{background:rgba(0,140,255,.5);}
.close-btn{background:rgba(255,60,60,.25);border-color:rgba(255,80,80,.4);}
.close-btn:hover{background:rgba(255,60,60,.4);}

/* Success Scale */
.success-scale-panel{
 position:fixed; top:20px; right:20px; z-index:9999;
 background:rgba(255,255,255,0.08); backdrop-filter:blur(14px);
 border:1px solid rgba(255,255,255,0.15); border-radius:16px;
 padding:14px 16px; color:#fff; min-width:220px;
}
.ss-title{font-weight:600;margin-bottom:8px}
.ss-row{display:flex;justify-content:space-between;margin:4px 0}
.ss-bar{height:8px;background:rgba(255,255,255,0.15);border-radius:6px;margin-top:10px}
#ssBar{height:100%;width:0;background:linear-gradient(90deg,#5b9dff,#8b5bff);border-radius:6px}

/* === Call List: remove green header and unify style === */
#callsMenu .sms-menu-header{
  background: rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#fff !important;
}
#callsMenu .sms-menu-header h3{margin:0; font-size:1.15rem; font-weight:600; color:#fff !important;}
#callsMenu .sms-header-left{display:flex; align-items:center; gap:10px;}
#callsMenu .sms-header-icon{font-size:1.2rem; line-height:1;}

#callsMenu .sms-close-menu{
  background: rgba(255,255,255,0.10) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  color:#fff !important;
  width:38px; height:38px;
  border-radius: 10px;
}
#callsMenu .sms-close-menu:hover{background: rgba(255,255,255,0.18) !important;}

/* Filters */
#callsMenu .sms-call-list-filters .sms-list-filter{
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color:#fff !important;
  border-radius: 12px;
}
#callsMenu .sms-call-list-filters .sms-list-filter.active{
  background: rgba(0,140,255,0.35) !important;
  border-color: rgba(0,140,255,0.45) !important;
}

/* Prevent any accidental green */
#callsMenu, #callsMenu *{
  --green: transparent;
}

/* Open Calls badge */
.open-calls-badge{
  margin-left:10px;
  padding:4px 10px;
  background: rgba(0,140,255,0.25);
  border:1px solid rgba(0,140,255,0.35);
  border-radius: 999px;
  font-size: 0.8rem;
  color:#fff;
}

/* Open Calls inline text */
.open-calls-inline{
  font-size:0.78rem;
  color:rgba(190,210,235,0.9);
  margin-left:6px;
  vertical-align:middle;
  white-space:nowrap;
}
.open-calls-inline b{
  font-weight:600;
  color:#ffffff;
}

/* Toolbar Open Calls */
.toolbar-open-calls{
  font-size:0.75rem;
  color: rgba(200,215,235,0.85);
  margin-left:6px;
  white-space:nowrap;
}
.toolbar-open-calls b{
  color:#ffffff;
  font-weight:600;
}

/* Custom Work Description textarea */
#customWorkDescriptionWrap textarea{resize:vertical;}

/* Custom Work Description field */
#customWorkWrap textarea{ resize:vertical; }
