/* ============================================================
   assets/css/app.css — JobsApp shared styles
   ============================================================ */

/* ── Body & Layout ── */
body {
    background-color: #f8f9fa;
    font-size: 0.9rem;
}

#pageContent {
    min-height: calc(100vh - 52px);
}

/* ── Navbar clock ── */
.fw-mono {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* ── Lock overlay ── */
#lockOverlay {
    display: none !important;
}
#lockOverlay.locked {
    display: flex !important;
}

/* ── Status badges ── */
.badge-status {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25em 0.55em;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-quoted             { background: #dee2e6; color: #495057; }
.status-confirmed          { background: #cfe2ff; color: #084298; }
.status-materials_on_order { background: #fff3cd; color: #664d03; }
.status-booked             { background: #d1ecf1; color: #0c5460; }
.status-en_route           { background: #d0f0e8; color: #0a5038; }
.status-on_site            { background: #d4edda; color: #155724; }
.status-completed          { background: #c3e6cb; color: #155724; }
.status-need_return        { background: #f8d7da; color: #721c24; }
.status-cancelled          { background: #e2e3e5; color: #6c757d; }

.billing-invoiced {
    background: #6f42c1;
    color: #fff;
}
.billing-none {
    background: #e9ecef;
    color: #6c757d;
}

/* ── Ready to invoice badge ── */
.badge-ready-invoice {
    background: #198754;
    color: #fff;
    font-size: 0.72rem;
    padding: 0.25em 0.55em;
    border-radius: 4px;
}

/* ── Reported back marker ── */
.reported-back-marker {
    font-weight: 900;
    color: #0d6efd;
}

/* ── Invoiced stripe overlay (planner) ── */
.invoiced-stripe {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        rgba(111, 66, 193, 0.15) 5px,
        rgba(111, 66, 193, 0.15) 10px
    );
}

/* ── Page headings ── */
.page-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0;
}

/* ── Card tweaks ── */
.card {
    border-radius: 8px;
}
.card-header {
    border-radius: 8px 8px 0 0 !important;
}

/* ── Table helpers ── */
.table-sm td, .table-sm th {
    padding: 0.35rem 0.5rem;
}

/* ── Enabled/disabled toggle ── */
.user-disabled td {
    opacity: 0.55;
    text-decoration: line-through;
}

/* ── Form label ── */
.form-label {
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

/* ── Alert toast container ── */
#toastContainer {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9000;
    min-width: 280px;
}

/* ── Tabulator overrides ── */
.tabulator {
    border-radius: 6px;
    overflow: hidden;
}
.tabulator .tabulator-header {
    font-size: 0.8rem;
    font-weight: 600;
    background: #f1f3f5;
}
.tabulator .tabulator-row:hover {
    background: #f8f9fa !important;
}
.tabulator .tabulator-row.tabulator-selected {
    background: #e7f1ff !important;
}
.tabulator-row .tabulator-cell {
    font-size: 0.85rem;
}

/* ── Login page ── */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
}
.login-card {
    width: 100%;
    max-width: 400px;
}
