/* ======================================================
   Technician Call Page - Dark Glass Theme
   Scoped with .tech-call-wrap to avoid CSS conflicts with other Odoo pages
   ====================================================== */

.tech-call-wrap {
    font-family: 'Outfit', sans-serif;
    background-color: #f1f5f9;
    color: #0f172a;
    min-height: 100vh;
    height: 100vh;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}

/* ---- Page Title ---- */
.tech-call-wrap .tech-call-title {
    font-weight: 800;
    font-size: 2rem;
    background: linear-gradient(to right, #0284c7, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.tech-call-wrap .tech-call-subtitle {
    font-size: 0.95rem;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.tech-call-wrap .tech-call-label {
    font-weight: 700;
    font-size: 0.8rem;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

/* ---- Glass Card ---- */
.tech-call-wrap .tech-call-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 0;
}

.tech-call-wrap .tech-call-card-scan {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
}

.tech-call-wrap .tech-call-card-progress {
    border: 1px solid rgba(59, 130, 246, 0.35);
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.12);
}

/* ---- Card Header row ---- */
.tech-call-wrap .tech-call-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

/* ---- Close / Chevron Button ---- */
.tech-call-wrap .tech-call-btn-close {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    color: #334155;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.3s ease;
    padding: 0;
}

.tech-call-wrap .tech-call-btn-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

.tech-call-wrap .tech-call-btn-close.is-collapsed i {
    transform: rotate(180deg);
}

/* ---- Logout / Reset Button ---- */
.tech-call-wrap .tech-call-btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #b45309;
    background: #fef3c7;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #fde68a;
    transition: all 0.2s ease;
}

.tech-call-wrap .tech-call-btn-logout:hover {
    color: #92400e;
    background: #fde68a;
    border-color: #fcd34d;
    text-decoration: none;
}

/* ---- Queue Number Big Display ---- */
.tech-call-wrap .tech-call-queue-number-big {
    font-size: 3.5rem;
    font-weight: 800;
    color: #0284c7;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
    line-height: 1;
    margin-bottom: 4px;
}

/* ---- Scan Input ---- */
.tech-call-wrap .tech-call-scan-input {
    font-family: 'Outfit', sans-serif;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 14px 20px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    display: block;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 14px;
    color: #0f172a;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.tech-call-wrap .tech-call-scan-input::placeholder {
    color: #1e293b;
    font-weight: 400;
}

.tech-call-wrap .tech-call-scan-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
    background-color: #ffffff;
}

/* ---- Info Table ---- */
.tech-call-wrap .tech-call-info-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

.tech-call-wrap .tech-call-info-table th {
    padding: 10px 14px;
    width: 110px;
    color: #334155;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    vertical-align: top;
}

.tech-call-wrap .tech-call-info-table td {
    padding: 10px 14px;
    color: #0f172a;
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    vertical-align: top;
}

/* ---- Badges ---- */
.tech-call-wrap .tech-call-badge-waiting {
    background: #f59e0b;
    color: #ffffff;
    border-radius: 6px;
    padding: 4px 12px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.tech-call-wrap .tech-call-badge-count {
    background: #4f46e5;
    color: #ffffff;
    border-radius: 6px;
    padding: 4px 10px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

/* ---- Action Buttons Row ---- */
.tech-call-wrap .tech-call-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---- Buttons ---- */
.tech-call-wrap .tech-call-btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    display: inline-block;
}

.tech-call-wrap .tech-call-btn:hover {
    transform: translateY(-2px);
}

.tech-call-wrap .tech-call-btn-call {
    background-color: #10b981;
    color: #ffffff;
    width: 100%;
    font-size: 1.05rem;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.tech-call-wrap .tech-call-btn-call:hover {
    background-color: #059669;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.tech-call-wrap .tech-call-btn-reannounce {
    background-color: #6366f1;
    color: #ffffff;
    flex: 1;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.tech-call-wrap .tech-call-btn-reannounce:hover {
    background-color: #4f46e5;
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.tech-call-wrap .tech-call-btn-done {
    background-color: #3b82f6;
    color: #ffffff;
    flex: 1;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.tech-call-wrap .tech-call-btn-done:hover {
    background-color: #2563eb;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.tech-call-wrap .tech-call-btn-cancel {
    background-color: #ef4444;
    color: #ffffff;
    flex: 1;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.tech-call-wrap .tech-call-btn-cancel:hover {
    background-color: #dc2626;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.tech-call-wrap .tech-call-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #334155;
    flex: 1;
}

.tech-call-wrap .tech-call-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

/* ---- Alerts ---- */
.tech-call-wrap .tech-call-alert {
    border-radius: 12px;
    font-weight: 600;
    padding: 14px 20px;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tech-call-wrap .tech-call-alert-error,
.tech-call-wrap .tech-call-alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #991b1b;
}

.tech-call-wrap .tech-call-alert-success {
    background-color: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #166534;
}

.tech-call-wrap .tech-call-alert-warning {
    background-color: #fffbeb;
    border: 1px solid #fef3c7;
    color: #92400e;
    margin-bottom: 20px;
}

.tech-call-wrap .tech-call-alert-info {
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    color: #075985;
}

/* ---- Called Announcement Text ---- */
.tech-call-wrap .tech-call-called-text {
    font-weight: 700;
    font-size: 1.1rem;
    padding: 14px 18px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 8px;
    color: #6ee7b7;
}

/* ---- Warning Text ---- */
.tech-call-wrap .tech-call-warning-text {
    color: #ef4444;
    font-weight: 800;
    font-size: 1.1rem;
    background: #fef2f2;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid #fca5a5;
    display: inline-block;
}

/* ---- Cancel / General Modals ---- */
body:has(.tech-call-modal-overlay.is-visible) {
    overflow: hidden !important;
}

.tech-call-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
    padding: 28px 16px 40px 16px;
    box-sizing: border-box;
}

.tech-call-modal-overlay.is-visible {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.tech-call-modal {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    padding: 32px;
    width: 100%;
    max-width: 480px;
    margin: auto !important;
    box-sizing: border-box;
    flex-shrink: 0 !important;
    max-height: none;
    overflow: visible;
    touch-action: pan-y;
}

.tech-call-modal-title {
    font-weight: 800;
    font-size: 1.3rem;
    color: #0f172a;
    margin-bottom: 6px;
}

.tech-call-modal-subtitle {
    color: #0284c7;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.tech-call-form-group {
    margin-bottom: 20px;
}

.tech-call-form-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.tech-call-select {
    font-family: 'Outfit', sans-serif;
    width: 100%;
    padding: 12px 16px;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    color: #0f172a;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.tech-call-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.tech-call-select option {
    background: #ffffff;
    color: #0f172a;
}

.tech-call-modal-actions {
    display: flex;
    gap: 10px;
}

/* ---- Active Work Order List Items ---- */
.tech-call-wrap .tech-call-wo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tech-call-wrap .tech-call-wo-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tech-call-wrap .tech-call-wo-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.tech-call-wrap .tech-call-wo-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #0284c7;
    letter-spacing: 0.3px;
}

.tech-call-wrap .tech-call-wo-meta {
    font-size: 0.82rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.tech-call-wrap .tech-call-wo-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.tech-call-wrap .tech-call-wo-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    display: inline-block;
    color: #ffffff;
}

.tech-call-wrap .tech-call-wo-badge-inprogress {
    background-color: #10b981;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.tech-call-wrap .tech-call-wo-badge-paused {
    background-color: #f59e0b;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.tech-call-wrap .tech-call-wo-badge-pending {
    background-color: #0ea5e9;
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.3);
}

.tech-call-wrap .tech-call-wo-badge-draft {
    background-color: #64748b;
    box-shadow: 0 2px 4px rgba(100, 116, 139, 0.3);
}

.tech-call-wrap .tech-call-wo-btn-detail {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 13px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
}

.tech-call-wrap .tech-call-wo-btn-detail:hover {
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

/* Uniform Technician Action Buttons */
.tech-call-wrap .tech-call-btn-logout {

    padding: 0 16px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    white-space: nowrap;
    line-height: 1;
    font-size: 0.92rem;

}

/* ---- Cooldown Timer ---- */
.tech-call-wrap .tech-call-cooldown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 8px 14px;
    animation: cooldownPulse 1.5s ease-in-out infinite;
}

.tech-call-wrap .tech-call-cooldown-timer .cooldown-display {
    font-size: 1.05rem;
    font-weight: 800;
    color: #d97706;
    letter-spacing: 1px;
}

@keyframes cooldownPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ---- Active Work Orders: Toolbar, Badges, Pagination ---- */
.tech-call-wrap .tech-wo-total-badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 10px;
    border-radius: 8px;
}

.tech-call-wrap .tech-wo-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-call-wrap .tech-wo-search-wrap {
    position: relative;
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
}

.tech-call-wrap .tech-wo-search-icon {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
}

.tech-call-wrap .tech-wo-search-input {
    width: 100%;
    height: 38px;
    padding: 6px 36px 6px 34px;
    font-size: 0.88rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.tech-call-wrap .tech-wo-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.tech-call-wrap .tech-wo-search-clear {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tech-call-wrap .tech-wo-search-clear:hover {
    color: #475569;
}

.tech-call-wrap .tech-wo-filter-wrap {
    flex-shrink: 0;
}

.tech-call-wrap .tech-wo-select {
    height: 38px;
    padding: 6px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #1e293b;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.tech-call-wrap .tech-wo-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.tech-call-wrap .tech-call-wo-badge-done {
    background-color: #059669;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.3);
}

.tech-call-wrap .tech-call-wo-badge-cancel {
    background-color: #ef4444;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.tech-call-wrap .tech-wo-pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.tech-call-wrap .tech-wo-page-btn {
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: inherit;
}

.tech-call-wrap .tech-wo-page-btn:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.tech-call-wrap .tech-wo-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tech-call-wrap .tech-wo-page-info {
    font-size: 0.85rem;
    color: #64748b;
}

.tech-call-wrap .tech-wo-empty {
    padding: 24px 12px;
    color: #64748b;
    font-size: 0.9rem;
}