/* ============================================================
   YCF Job Tracker — front-end styles v1.1
   ============================================================ */

.ycf-jt-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a1a;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 16px;
    box-sizing: border-box;
}
.ycf-jt-wrap *, .ycf-jt-modal * { box-sizing: border-box; }

.ycf-jt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #eee;
}
.ycf-jt-header h2 { margin: 0; font-size: 24px; font-weight: 700; }

/* Buttons */
.ycf-jt-btn, .ycf-jt-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #f5f5f5;
    color: #1a1a1a;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}
.ycf-jt-btn:hover, .ycf-jt-btn-sm:hover { background: #eaeaea; color: #1a1a1a; }
.ycf-jt-btn-primary { background: #0066ff; color: #fff; border-color: #0066ff; }
.ycf-jt-btn-primary:hover { background: #0052cc; border-color: #0052cc; color: #fff; }
.ycf-jt-btn-danger { background: #e63946; color: #fff; border-color: #e63946; }
.ycf-jt-btn-danger:hover { background: #c62f3b; color: #fff; }
.ycf-jt-btn-ghost { background: transparent; }
.ycf-jt-btn-sm { padding: 6px 10px; font-size: 12px; }

/* Filters */
.ycf-jt-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    align-items: center;
}
.ycf-jt-filters input, .ycf-jt-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}
.ycf-jt-filters label { display: flex; align-items: center; gap: 6px; font-size: 13px; }

/* Tables */
.ycf-jt-table-wrap { overflow-x: auto; background: #fff; border-radius: 8px; border: 1px solid #eee; }
.ycf-jt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ycf-jt-table th, .ycf-jt-table td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
.ycf-jt-table th { background: #fafafa; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: #555; }
.ycf-jt-table tbody tr:hover { background: #fafafa; }
.ycf-jt-table small { color: #777; }
.ycf-jt-actions { white-space: nowrap; display: flex; gap: 4px; flex-wrap: wrap; }
.ycf-jt-empty { text-align: center; padding: 40px; color: #888; }

/* Status badges */
.ycf-jt-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ycf-jt-status-queued      { background: #fff4e0; color: #b25c00; }
.ycf-jt-status-in_progress { background: #e0f0ff; color: #0052cc; }
.ycf-jt-status-on_hold     { background: #f5e0ff; color: #6b00b2; }
.ycf-jt-status-completed   { background: #e0f5e0; color: #1a7a1a; }
.ycf-jt-status-invoiced    { background: #e8e8e8; color: #444; }

.ycf-jt-pos { color: #1a7a1a; font-weight: 600; }
.ycf-jt-neg { color: #c62f3b; font-weight: 600; }
.ycf-jt-low { background: #fff4f4 !important; }
.ycf-jt-low-badge { background: #e63946; color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; margin-left: 6px; }

/* KPI cards */
.ycf-jt-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.ycf-jt-kpi { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 16px; text-align: center; }
.ycf-jt-kpi label { display: block; font-size: 11px; text-transform: uppercase; color: #888; margin-bottom: 6px; letter-spacing: 0.5px; }
.ycf-jt-kpi strong { display: block; font-size: 22px; font-weight: 700; }
.ycf-jt-kpi-accent { background: #0066ff; color: #fff; border-color: #0066ff; }
.ycf-jt-kpi-accent label { color: rgba(255,255,255,0.8); }

/* ============================================================
   STAFF VIEW — job cards
   ============================================================ */
.ycf-jt-staff .ycf-jt-header { flex-direction: column; align-items: flex-start; }

.ycf-jt-running-timer {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    background: linear-gradient(135deg, #1a7a1a, #2ea52e);
    color: #fff;
    border-radius: 10px;
    font-size: 15px;
    flex-wrap: wrap;
}
.ycf-jt-pulse { width: 12px; height: 12px; border-radius: 50%; background: #fff; animation: ycf-jt-pulse 1.2s ease-in-out infinite; flex-shrink: 0; }
@keyframes ycf-jt-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }
.ycf-jt-elapsed { font-family: "SF Mono", Monaco, monospace; font-size: 18px; font-weight: 700; margin-left: auto; }
.ycf-jt-running-timer .ycf-jt-btn-danger { background: rgba(0,0,0,0.2); border-color: transparent; }

.ycf-jt-job-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.ycf-jt-card {
    background: #fff; border: 1px solid #eee; border-radius: 12px;
    padding: 18px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); transition: box-shadow 0.2s;
}
.ycf-jt-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.ycf-jt-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.ycf-jt-card-head h3 { margin: 0 0 4px 0; font-size: 17px; font-weight: 700; }
.ycf-jt-card-head p { margin: 0; font-size: 14px; color: #666; }
.ycf-jt-desc { margin: 0 0 14px 0; padding: 10px 12px; background: #fafafa; border-radius: 6px; font-size: 13px; color: #555; }
.ycf-jt-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin-bottom: 14px; }
.ycf-jt-card-stats div { text-align: center; }
.ycf-jt-card-stats label { display: block; font-size: 10px; text-transform: uppercase; color: #999; margin-bottom: 4px; letter-spacing: 0.5px; }
.ycf-jt-card-stats strong { font-size: 15px; font-weight: 700; }

.ycf-jt-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ycf-jt-card-actions .ycf-jt-btn { flex: 1; justify-content: center; min-width: 120px; }
.ycf-jt-status-select { padding: 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 13px; background: #fff; flex: 1; min-width: 120px; }

.ycf-jt-empty-state { text-align: center; padding: 60px 20px; color: #888; background: #fafafa; border-radius: 12px; }

/* ============================================================
   WEEKLY SCHEDULER (drag-drop)
   ============================================================ */
.ycf-jt-week-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ycf-jt-scheduler-hint { color: #666; margin: 0 0 12px 0; }

.ycf-jt-schedule-wrap { overflow-x: auto; }
.ycf-jt-schedule {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}
.ycf-jt-schedule th, .ycf-jt-schedule td {
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    padding: 0;
}
.ycf-jt-schedule th:last-child, .ycf-jt-schedule td:last-child { border-right: none; }
.ycf-jt-schedule tbody tr:last-child td { border-bottom: none; }
.ycf-jt-schedule thead th {
    background: #fafafa;
    padding: 12px 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    text-align: center;
}
.ycf-jt-schedule .ycf-jt-staff-col {
    background: #fafafa;
    font-weight: 600;
    padding: 12px;
    min-width: 140px;
    font-size: 14px;
    text-align: left;
    vertical-align: middle;
}

.ycf-jt-schedule-cell {
    min-width: 140px;
    min-height: 100px;
    padding: 8px;
    background: #fff;
    position: relative;
    transition: background 0.15s;
}
.ycf-jt-schedule-cell.ycf-jt-drop-hover { background: #e0f0ff; }
.ycf-jt-unscheduled-cell {
    background: #fffbea;
    min-height: 80px;
}
.ycf-jt-cell-empty-hint {
    font-size: 11px;
    color: #aaa;
    text-align: center;
    padding: 20px 0;
    font-style: italic;
}
.ycf-jt-schedule-cell .ycf-jt-schedule-card + .ycf-jt-cell-empty-hint,
.ycf-jt-schedule-cell:has(.ycf-jt-schedule-card) .ycf-jt-cell-empty-hint { display: none; }

.ycf-jt-schedule-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 6px;
    cursor: grab;
    font-size: 13px;
    line-height: 1.3;
    transition: transform 0.1s, box-shadow 0.15s;
}
.ycf-jt-schedule-card:hover { box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.ycf-jt-schedule-card:active { cursor: grabbing; }
.ycf-jt-schedule-card.ycf-jt-dragging { opacity: 0.4; }
.ycf-jt-schedule-card strong { display: block; font-size: 13px; font-weight: 700; }
.ycf-jt-schedule-card small { display: block; color: #666; font-size: 11px; margin-top: 2px; }
.ycf-jt-schedule-meta { display: block; margin-top: 4px; font-size: 11px; color: #888; }

.ycf-jt-status-bg-estimate    { border-left: 3px solid #888; background: #fafafa; }
.ycf-jt-status-bg-queued      { border-left: 3px solid #b25c00; }
.ycf-jt-status-bg-in_progress { border-left: 3px solid #0052cc; }
.ycf-jt-status-bg-on_hold     { border-left: 3px solid #6b00b2; }
.ycf-jt-status-bg-completed   { border-left: 3px solid #1a7a1a; }
.ycf-jt-status-bg-invoiced    { border-left: 3px solid #888; }

/* ============================================================
   v1.7 — Schedule capacity totals + clickable cards
   ============================================================ */
.ycf-jt-schedule-card { position: relative; }
.ycf-jt-schedule-card::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #aaa;
    border-bottom: 1.5px solid #aaa;
    transform: rotate(-45deg);
    opacity: 0;
    transition: opacity 0.15s;
}
.ycf-jt-schedule-card:hover::after { opacity: 0.7; }

.ycf-jt-schedule .ycf-jt-week-total-col {
    background: #f5f6f8;
    min-width: 90px;
    text-align: center;
}
.ycf-jt-schedule .ycf-jt-row-total {
    background: #fafbfc;
    text-align: center;
    font-size: 13px;
    padding: 8px 10px;
    border-left: 2px solid #e6e7ea;
    white-space: nowrap;
}
.ycf-jt-schedule .ycf-jt-row-total strong { display: block; font-size: 15px; }
.ycf-jt-schedule .ycf-jt-row-total small { color: #888; font-size: 11px; }
.ycf-jt-schedule .ycf-jt-row-total.ycf-jt-cap-amber {
    background: #fff7e6;
    color: #8a5a00;
}
.ycf-jt-schedule .ycf-jt-row-total.ycf-jt-cap-over {
    background: #ffeaea;
    color: #a01818;
}
.ycf-jt-schedule .ycf-jt-row-total.ycf-jt-cap-over strong,
.ycf-jt-schedule .ycf-jt-row-total.ycf-jt-cap-over small { color: #a01818; }
.ycf-jt-cap-note { color: #888; font-style: italic; font-weight: 400; }

.ycf-jt-schedule tfoot .ycf-jt-day-totals {
    background: #f5f6f8;
    font-weight: 600;
}
.ycf-jt-schedule tfoot .ycf-jt-day-totals th,
.ycf-jt-schedule tfoot .ycf-jt-day-totals td {
    border-top: 2px solid #d8dadf;
    padding: 10px;
    text-align: center;
    font-size: 13px;
}

.ycf-jt-capacity-summary {
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 10px;
    background: #f5f6f8;
    border: 1px solid #e3e5ea;
    display: grid;
    grid-template-columns: repeat(3, 1fr) 2fr;
    gap: 18px;
    align-items: center;
}
.ycf-jt-capacity-summary.ycf-jt-cap-amber { background: #fff7e6; border-color: #f0d28a; }
.ycf-jt-capacity-summary.ycf-jt-cap-over  { background: #ffeaea; border-color: #e4a3a3; }
.ycf-jt-capacity-summary.ycf-jt-cap-green { background: #ecf6ee; border-color: #b8d9be; }
.ycf-jt-cap-box label { display: block; color: #555; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.ycf-jt-cap-box strong { font-size: 22px; font-weight: 700; }
.ycf-jt-capacity-summary.ycf-jt-cap-over .ycf-jt-cap-remaining strong { color: #a01818; }
.ycf-jt-capacity-summary.ycf-jt-cap-amber .ycf-jt-cap-remaining strong { color: #8a5a00; }
.ycf-jt-cap-bar-wrap { font-size: 12px; color: #555; }
.ycf-jt-cap-bar {
    height: 12px;
    background: #fff;
    border: 1px solid #d8dadf;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 4px;
}
.ycf-jt-cap-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #2e8b57);
    transition: width 0.3s;
}
.ycf-jt-capacity-summary.ycf-jt-cap-amber .ycf-jt-cap-bar-fill { background: linear-gradient(90deg, #f0b04a, #d68a1c); }
.ycf-jt-capacity-summary.ycf-jt-cap-over  .ycf-jt-cap-bar-fill { background: linear-gradient(90deg, #d05050, #a01818); }

@media (max-width: 720px) {
    .ycf-jt-capacity-summary { grid-template-columns: 1fr 1fr; }
    .ycf-jt-cap-bar-wrap { grid-column: 1 / -1; }
}

/* ============================================================
   v1.7 — Manager tabs (Jobs / Estimates)
   ============================================================ */
.ycf-jt-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e3e5ea;
    margin: 0 0 14px 0;
}
.ycf-jt-tab {
    padding: 10px 18px;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}
.ycf-jt-tab:hover { color: #000; }
.ycf-jt-tab.is-active {
    color: #000;
    border-bottom-color: #0052cc;
}
.ycf-jt-tab-badge {
    display: inline-block;
    background: #0052cc;
    color: #fff;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 11px;
    margin-left: 4px;
    font-weight: 700;
}

/* Tint estimate rows so they're visually distinct in the dashboard table */
.ycf-jt-status-estimate { background: #f0f0f0; color: #555; border: 1px solid #ccc; }

/* ============================================================
   QUOTE BUILDER
   ============================================================ */
.ycf-jt-quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.ycf-jt-quote-grid h3 { margin: 0 0 12px 0; padding-bottom: 6px; border-bottom: 1px solid #eee; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; color: #555; }
.ycf-jt-quote-grid h3:first-child { margin-top: 0; }

.ycf-jt-quote-lines { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.ycf-jt-quote-line {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 8px;
    align-items: end;
    padding: 10px;
    background: #fafafa;
    border-radius: 6px;
}
.ycf-jt-quote-line label { font-size: 11px; text-transform: uppercase; color: #666; margin: 0; font-weight: 600; }
.ycf-jt-quote-line input, .ycf-jt-quote-line select {
    padding: 6px 8px;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    margin-top: 2px;
    width: 100%;
}
.ycf-jt-quote-line button {
    background: transparent;
    border: none;
    color: #c62f3b;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 18px;
}

.ycf-jt-quote-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
    padding: 14px;
    background: #fafafa;
    border-radius: 8px;
}
.ycf-jt-quote-summary > div { padding: 8px; background: #fff; border-radius: 6px; }
.ycf-jt-quote-summary label { display: block; font-size: 11px; color: #777; text-transform: uppercase; margin-bottom: 2px; }
.ycf-jt-quote-summary strong { font-size: 16px; font-weight: 700; }
.ycf-jt-quote-price-box { grid-column: span 2; background: #0066ff !important; color: #fff; }
.ycf-jt-quote-price-box label { color: rgba(255,255,255,0.85) !important; }
.ycf-jt-quote-price-box strong { font-size: 22px; }

/* ============================================================
   INVOICE
   ============================================================ */
.ycf-jt-invoice-wrap { max-width: 820px; margin: 0 auto; padding: 20px; font-family: Georgia, "Times New Roman", serif; }
.ycf-jt-invoice-actions { display: flex; gap: 10px; margin-bottom: 20px; }

.ycf-jt-invoice {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 50px 55px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.ycf-jt-invoice-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; margin-bottom: 40px; padding-bottom: 24px; border-bottom: 2px solid #1a1a1a; }
.ycf-jt-invoice-head h1 { margin: 0 0 8px 0; font-size: 24px; font-weight: 700; color: #1a1a1a; }
.ycf-jt-invoice-head p { margin: 2px 0; font-size: 13px; color: #555; line-height: 1.4; }
.ycf-jt-invoice-meta { text-align: right; }
.ycf-jt-invoice-meta h2 { margin: 0 0 10px 0; font-size: 32px; letter-spacing: 2px; color: #1a1a1a; font-weight: 700; }
.ycf-jt-invoice-meta p { margin: 2px 0; font-size: 13px; }

.ycf-jt-invoice-bill-to { margin-bottom: 30px; }
.ycf-jt-invoice-bill-to h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #888; margin: 0 0 8px 0; font-weight: 600; }
.ycf-jt-invoice-bill-to p { margin: 2px 0; font-size: 14px; }

.ycf-jt-invoice-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.ycf-jt-invoice-table th, .ycf-jt-invoice-table td { padding: 12px 8px; text-align: left; border-bottom: 1px solid #eee; font-size: 14px; }
.ycf-jt-invoice-table th { background: #fafafa; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; font-size: 11px; color: #555; }
.ycf-jt-invoice-table .right { text-align: right; }
.ycf-jt-invoice-table tfoot td { border-bottom: none; padding: 8px; }
.ycf-jt-invoice-total td { border-top: 2px solid #1a1a1a; padding-top: 14px !important; font-size: 18px; }

.ycf-jt-invoice-terms { border-top: 1px solid #eee; padding-top: 20px; }
.ycf-jt-invoice-terms h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #888; margin: 0 0 6px 0; }
.ycf-jt-invoice-terms p { font-size: 13px; color: #555; line-height: 1.5; margin: 0; }

@media print {
    body { background: #fff !important; }
    .no-print, header, nav, footer, .site-header, .site-footer,
    .entry-header, .entry-footer, .wp-block-post-title,
    aside, .sidebar, #wpadminbar, .navigation, .ycf-jt-invoice-actions { display: none !important; }
    .ycf-jt-invoice-wrap { max-width: 100%; padding: 0; }
    .ycf-jt-invoice { box-shadow: none; border: none; padding: 0; }
    .entry-content, .post-content, main, .content, #main, #content { padding: 0 !important; margin: 0 !important; }
}

/* ============================================================
   MODALS
   ============================================================ */
.ycf-jt-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999999; align-items: center; justify-content: center; padding: 20px; }
.ycf-jt-modal.open { display: flex; }
.ycf-jt-modal-box { background: #fff; border-radius: 12px; padding: 28px; width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; position: relative; }
.ycf-jt-modal-small { max-width: 400px; }
.ycf-jt-modal-large { max-width: 900px; }
.ycf-jt-modal-box h3 { margin: 0 0 20px 0; font-size: 20px; font-weight: 700; }
.ycf-jt-modal-close { position: absolute; top: 14px; right: 14px; background: #f0f0f0; border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; cursor: pointer; line-height: 1; }
.ycf-jt-modal-close:hover { background: #e0e0e0; }

/* Forms */
.ycf-jt-form { display: flex; flex-direction: column; gap: 14px; }
.ycf-jt-form h3 { margin: 16px 0 0 0; padding-bottom: 6px; border-bottom: 1px solid #eee; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; color: #555; }
.ycf-jt-form h3:first-child { margin-top: 0; }
.ycf-jt-form label { display: block; font-size: 13px; font-weight: 600; color: #333; }
.ycf-jt-form input[type="text"],
.ycf-jt-form input[type="email"],
.ycf-jt-form input[type="number"],
.ycf-jt-form input[type="date"],
.ycf-jt-form select,
.ycf-jt-form textarea {
    display: block;
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}
.ycf-jt-form input:focus, .ycf-jt-form select:focus, .ycf-jt-form textarea:focus { outline: none; border-color: #0066ff; box-shadow: 0 0 0 2px rgba(0,102,255,0.15); }
.ycf-jt-form textarea { resize: vertical; font-family: inherit; }
.ycf-jt-form small { display: block; color: #888; margin-top: 4px; font-weight: 400; }

.ycf-jt-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ycf-jt-check { display: flex; align-items: center; gap: 8px; }
.ycf-jt-check input { margin: 0; width: auto; }

.ycf-jt-calc { padding: 10px 12px; background: #f5f5f5; border-radius: 6px; margin-top: 6px; }
.ycf-jt-calc label { font-size: 11px; color: #777; margin-bottom: 2px; }
.ycf-jt-calc strong { font-size: 18px; }

.ycf-jt-unit-label { color: #888; font-weight: 400; }

.ycf-jt-saved { color: #1a7a1a; font-weight: 600; margin-left: 12px; }

/* Detail modal content */
.ycf-jt-detail-content h3 { margin-top: 0; }
.ycf-jt-detail-section { margin-top: 24px; }
.ycf-jt-detail-section h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ycf-jt-detail-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 16px; }
.ycf-jt-detail-totals > div { padding: 12px; background: #fafafa; border-radius: 8px; text-align: center; }
.ycf-jt-detail-totals label { display: block; font-size: 11px; text-transform: uppercase; color: #888; margin-bottom: 4px; }
.ycf-jt-detail-totals strong { font-size: 16px; }

.ycf-jt-login-notice { padding: 20px; background: #fff4e0; border-radius: 8px; color: #b25c00; text-align: center; }

/* Photos */
.ycf-jt-photo-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ycf-jt-photo-item {
    position: relative;
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}
.ycf-jt-photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.ycf-jt-photo-del {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
}
.ycf-jt-photo-del:hover { background: #e63946; }
.ycf-jt-photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    line-height: 1.3;
}

.ycf-jt-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: pointer;
}
.ycf-jt-lightbox.open { display: flex; }
.ycf-jt-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Mobile */
@media (max-width: 700px) {
    .ycf-jt-wrap { padding: 16px 12px; }
    .ycf-jt-header h2 { font-size: 20px; }
    .ycf-jt-grid-2 { grid-template-columns: 1fr; }
    .ycf-jt-card-actions .ycf-jt-btn { min-width: 100%; }
    .ycf-jt-table { font-size: 13px; }
    .ycf-jt-table th, .ycf-jt-table td { padding: 8px 6px; }
    .ycf-jt-modal-box { padding: 20px; }
    .ycf-jt-running-timer { font-size: 13px; }
    .ycf-jt-running-timer .ycf-jt-elapsed { font-size: 16px; }
    .ycf-jt-quote-grid { grid-template-columns: 1fr; }
    .ycf-jt-invoice { padding: 24px 20px; }
    .ycf-jt-invoice-head { flex-direction: column; gap: 20px; }
    .ycf-jt-invoice-meta { text-align: left; }
    .ycf-jt-schedule .ycf-jt-staff-col { min-width: 100px; font-size: 12px; }
    .ycf-jt-schedule-cell { min-width: 110px; }
}

/* v1.2 printable upholstery worksheet */
.ycf-jt-worksheet-wrap{max-width:980px;margin:24px auto;font-family:Arial,sans-serif;color:#111}.ycf-jt-worksheet{background:#fff;padding:26px}.ycf-jt-ws-title{text-align:center;font-size:22px;font-weight:700;margin-bottom:24px}.ycf-jt-ws-client{text-align:right;margin-bottom:12px}.ycf-jt-worksheet table{width:100%;border-collapse:collapse;font-size:14px}.ycf-jt-worksheet th{width:220px;background:#d9d9d9;text-align:left;font-weight:700}.ycf-jt-worksheet th,.ycf-jt-worksheet td{border:1px solid #bbb;padding:10px;vertical-align:top;min-height:34px}.ycf-jt-worksheet tr.office th,.ycf-jt-worksheet tr.office td{border-top:2px solid #555}.ycf-jt-ws-img{max-width:220px;max-height:150px;display:block}.ycf-jt-labour-type{padding:10px;border:1px solid #ddd;border-radius:8px;background:#fff}.ycf-jt-no-print{margin-bottom:16px}
@media print{body *{visibility:hidden}.ycf-jt-worksheet-wrap,.ycf-jt-worksheet-wrap *{visibility:visible}.ycf-jt-worksheet-wrap{position:absolute;left:0;top:0;width:100%;margin:0}.ycf-jt-no-print{display:none!important}.ycf-jt-worksheet{padding:0}.ycf-jt-worksheet th,.ycf-jt-worksheet td{font-size:12px;padding:7px}.ycf-jt-ws-img{max-height:100px}}

/* v1.5 task timers */
.ycf-jt-task-list{margin:14px 0;padding:12px;border:1px solid rgba(0,0,0,.08);border-radius:12px;background:#fafafa}
.ycf-jt-task-list>strong{display:block;margin-bottom:8px}
.ycf-jt-task-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid rgba(0,0,0,.06)}
.ycf-jt-task-row:first-of-type{border-top:0}
.ycf-jt-task-row span{font-weight:700;display:block}
.ycf-jt-task-row small{display:block;opacity:.7;margin-top:2px}
.ycf-jt-muted{font-size:12px;opacity:.65}

/* ============================================================
   D&P Upholstery Theme — black / white / lime, mobile friendly v1.6
   Logo: https://www.dp-jobs.online/wp-content/uploads/2026/05/dp-logo-scaled.jpg
   ============================================================ */
:root{
    --dp-black:#050505;
    --dp-black-2:#111111;
    --dp-charcoal:#1b1b1d;
    --dp-lime:#9be800;
    --dp-lime-2:#77bd00;
    --dp-lime-soft:#edffd2;
    --dp-white:#ffffff;
    --dp-offwhite:#f6f7f5;
    --dp-grey:#8c8f94;
    --dp-border:#e4e7e1;
    --dp-shadow:0 14px 34px rgba(0,0,0,.08);
    --dp-radius:18px;
    --dp-logo:url('https://www.dp-jobs.online/wp-content/uploads/2026/05/dp-logo-scaled.jpg');
}

.ycf-jt-wrap{
    position:relative;
    max-width:1500px;
    padding:28px;
    background:linear-gradient(180deg,#ffffff 0%,#f7f8f6 100%);
    color:var(--dp-black-2);
    border-radius:22px;
    border:1px solid rgba(0,0,0,.06);
    box-shadow:0 18px 50px rgba(0,0,0,.07);
}

.ycf-jt-wrap::before{
    content:"";
    display:block;
    width:118px;
    height:118px;
    margin:0 auto 18px;
    background-image:var(--dp-logo);
    background-size:cover;
    background-position:center;
    border-radius:50%;
    border:4px solid var(--dp-white);
    box-shadow:0 0 0 2px var(--dp-black),0 10px 24px rgba(0,0,0,.18);
}

.ycf-jt-wrap::after{
    content:"D&P Upholstery Job Tracker";
    display:block;
    text-align:center;
    margin:-8px 0 22px;
    color:var(--dp-black);
    font-size:13px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.ycf-jt-header{
    background:linear-gradient(135deg,var(--dp-black),var(--dp-charcoal));
    color:var(--dp-white);
    border:0;
    border-radius:var(--dp-radius);
    padding:18px 20px;
    margin-bottom:22px;
    box-shadow:var(--dp-shadow);
}
.ycf-jt-header h2{
    color:var(--dp-white);
    font-size:25px;
    line-height:1.15;
    letter-spacing:-.02em;
}
.ycf-jt-header h2::after{
    content:"";
    display:block;
    width:54px;
    height:4px;
    background:var(--dp-lime);
    border-radius:999px;
    margin-top:9px;
}

.ycf-jt-btn,.ycf-jt-btn-sm{
    border-radius:999px;
    border:1px solid var(--dp-border);
    background:var(--dp-white);
    color:var(--dp-black);
    box-shadow:0 4px 12px rgba(0,0,0,.04);
    min-height:38px;
}
.ycf-jt-btn:hover,.ycf-jt-btn-sm:hover{
    transform:translateY(-1px);
    background:var(--dp-lime-soft);
    color:var(--dp-black);
    border-color:var(--dp-lime);
}
.ycf-jt-btn-primary,
.ycf-jt-kpi-accent,
.ycf-jt-quote-price-box{
    background:linear-gradient(135deg,var(--dp-lime),var(--dp-lime-2))!important;
    color:var(--dp-black)!important;
    border-color:var(--dp-lime)!important;
}
.ycf-jt-btn-primary:hover{
    background:linear-gradient(135deg,#b5ff17,var(--dp-lime))!important;
    color:var(--dp-black)!important;
}
.ycf-jt-btn-danger{
    background:#111!important;
    color:#fff!important;
    border-color:#111!important;
}
.ycf-jt-btn-danger:hover{background:#e63946!important;border-color:#e63946!important;color:#fff!important;}
.ycf-jt-btn-ghost{background:rgba(255,255,255,.08);color:inherit;border-color:rgba(255,255,255,.16);}

.ycf-jt-filters,
.ycf-jt-card,
.ycf-jt-kpi,
.ycf-jt-table-wrap,
.ycf-jt-schedule,
.ycf-jt-modal-box,
.ycf-jt-quote-summary,
.ycf-jt-invoice,
.ycf-jt-detail-totals>div,
.ycf-jt-empty-state,
.ycf-jt-task-list{
    background:var(--dp-white);
    border:1px solid var(--dp-border);
    border-radius:var(--dp-radius);
    box-shadow:var(--dp-shadow);
}

.ycf-jt-filters{
    padding:16px;
    background:#fff;
}
.ycf-jt-filters input,
.ycf-jt-filters select,
.ycf-jt-form input[type="text"],
.ycf-jt-form input[type="email"],
.ycf-jt-form input[type="number"],
.ycf-jt-form input[type="date"],
.ycf-jt-form select,
.ycf-jt-form textarea,
.ycf-jt-status-select,
.ycf-jt-quote-line input,
.ycf-jt-quote-line select{
    border-radius:12px;
    border:1px solid var(--dp-border);
    background:#fff;
    color:var(--dp-black);
}
.ycf-jt-filters input:focus,
.ycf-jt-filters select:focus,
.ycf-jt-form input:focus,
.ycf-jt-form select:focus,
.ycf-jt-form textarea:focus,
.ycf-jt-quote-line input:focus,
.ycf-jt-quote-line select:focus{
    outline:none;
    border-color:var(--dp-lime);
    box-shadow:0 0 0 4px rgba(155,232,0,.18);
}

.ycf-jt-kpis{gap:18px;margin-bottom:24px;}
.ycf-jt-kpi{
    padding:20px;
    text-align:left;
    position:relative;
    overflow:hidden;
}
.ycf-jt-kpi::after{
    content:"";
    position:absolute;
    top:18px;
    right:18px;
    width:44px;
    height:44px;
    border-radius:50%;
    background:radial-gradient(circle,var(--dp-lime) 0%,var(--dp-lime) 38%,#070707 40%,#070707 100%);
    opacity:.95;
}
.ycf-jt-kpi label{color:#5d6268;font-weight:800;}
.ycf-jt-kpi strong{font-size:28px;color:#000;letter-spacing:-.03em;}
.ycf-jt-kpi-accent label,.ycf-jt-quote-price-box label{color:rgba(0,0,0,.68)!important;}

.ycf-jt-table-wrap{overflow:hidden;}
.ycf-jt-table{border-collapse:separate;border-spacing:0;}
.ycf-jt-table th{
    background:var(--dp-black);
    color:var(--dp-lime);
    border-bottom:0;
    font-weight:800;
}
.ycf-jt-table td{border-bottom:1px solid var(--dp-border);}
.ycf-jt-table tbody tr:hover{background:var(--dp-lime-soft);}
.ycf-jt-table small{color:#666;}

.ycf-jt-status{
    border-radius:999px;
    padding:6px 11px;
    font-size:10px;
}
.ycf-jt-status-queued{background:#fff4d6;color:#8b5700;}
.ycf-jt-status-in_progress{background:var(--dp-lime-soft);color:#315900;}
.ycf-jt-status-on_hold{background:#f1f1f1;color:#111;}
.ycf-jt-status-completed{background:#111;color:var(--dp-lime);}
.ycf-jt-status-invoiced{background:#e8e8e8;color:#111;}
.ycf-jt-pos{color:#4f8e00;}
.ycf-jt-neg{color:#d22828;}

.ycf-jt-running-timer{
    background:linear-gradient(135deg,var(--dp-black),#203000);
    color:#fff;
    border:1px solid rgba(155,232,0,.35);
    border-radius:var(--dp-radius);
    box-shadow:var(--dp-shadow);
}
.ycf-jt-pulse{background:var(--dp-lime);box-shadow:0 0 0 6px rgba(155,232,0,.15);}
.ycf-jt-elapsed{color:var(--dp-lime);}

.ycf-jt-card{padding:20px;border-left:5px solid var(--dp-lime);}
.ycf-jt-card:hover{box-shadow:0 18px 38px rgba(0,0,0,.1);}
.ycf-jt-card-head h3{font-size:19px;color:#000;}
.ycf-jt-card-head p,.ycf-jt-desc{color:#555;}
.ycf-jt-desc{background:#f8faf5;border:1px solid var(--dp-border);border-radius:14px;}
.ycf-jt-card-stats{border-color:var(--dp-border);}
.ycf-jt-card-stats label{color:#6d737a;font-weight:800;}

.ycf-jt-task-list{
    background:#fbfff4;
    border-color:#d7f5a0;
    box-shadow:none;
}
.ycf-jt-task-list>strong{color:#111;}
.ycf-jt-task-row{border-top-color:#dfe9d0;}

.ycf-jt-schedule-wrap{border-radius:var(--dp-radius);box-shadow:var(--dp-shadow);}
.ycf-jt-schedule{box-shadow:none;border-radius:var(--dp-radius);}
.ycf-jt-schedule thead th,
.ycf-jt-schedule .ycf-jt-staff-col{
    background:#080808;
    color:#fff;
}
.ycf-jt-schedule thead th{color:var(--dp-lime);}
.ycf-jt-schedule-cell.ycf-jt-drop-hover{background:var(--dp-lime-soft);}
.ycf-jt-unscheduled-cell{background:#fbfff4;}
.ycf-jt-schedule-card{
    border-radius:12px;
    border:1px solid #dfe9d0;
    border-left:4px solid var(--dp-lime);
}
.ycf-jt-schedule-card:hover{box-shadow:0 8px 18px rgba(0,0,0,.1);}
.ycf-jt-status-bg-queued{border-left-color:#f0a600;}
.ycf-jt-status-bg-in_progress{border-left-color:var(--dp-lime);}
.ycf-jt-status-bg-on_hold{border-left-color:#222;}
.ycf-jt-status-bg-completed{border-left-color:#4d8d00;}
.ycf-jt-status-bg-invoiced{border-left-color:#999;}

.ycf-jt-quote-grid h3,
.ycf-jt-form h3,
.ycf-jt-detail-section h4{
    color:#111;
    border-bottom:2px solid var(--dp-lime);
    font-weight:900;
}
.ycf-jt-quote-line{background:#fbfff4;border:1px solid #dff4b5;border-radius:14px;}
.ycf-jt-quote-summary{background:#080808;color:#fff;}
.ycf-jt-quote-summary>div{background:#171717;border:1px solid rgba(255,255,255,.08);}
.ycf-jt-quote-summary label{color:#b8bec4;}
.ycf-jt-quote-summary strong{color:#fff;}
.ycf-jt-quote-price-box strong{color:#000!important;}

.ycf-jt-modal{background:rgba(0,0,0,.76);backdrop-filter:blur(5px);}
.ycf-jt-modal-box{border-top:6px solid var(--dp-lime);}
.ycf-jt-modal-box h3{color:#000;}
.ycf-jt-modal-close{background:#111;color:#fff;}
.ycf-jt-modal-close:hover{background:var(--dp-lime);color:#000;}

.ycf-jt-photo-item{border-radius:16px;border:2px solid #fff;box-shadow:0 8px 20px rgba(0,0,0,.11);}
.ycf-jt-photo-del{background:#111;color:#fff;border:1px solid rgba(255,255,255,.35);}
.ycf-jt-photo-del:hover{background:var(--dp-lime);color:#000;}
.ycf-jt-photo-caption{background:linear-gradient(0deg,rgba(0,0,0,.82),rgba(0,0,0,.18));}

.ycf-jt-invoice-head{border-bottom-color:var(--dp-black);}
.ycf-jt-invoice-head h1::before{
    content:"";
    display:block;
    width:76px;
    height:76px;
    background-image:var(--dp-logo);
    background-size:cover;
    background-position:center;
    border-radius:50%;
    margin-bottom:14px;
    border:3px solid #111;
}
.ycf-jt-invoice-table th{background:#080808;color:var(--dp-lime);}
.ycf-jt-invoice-total td{border-top-color:var(--dp-lime);}

.ycf-jt-worksheet-wrap{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;}
.ycf-jt-worksheet{
    border-radius:18px;
    box-shadow:var(--dp-shadow);
    border:1px solid var(--dp-border);
}
.ycf-jt-ws-title::before{
    content:"";
    display:block;
    width:86px;
    height:86px;
    margin:0 auto 10px;
    background-image:var(--dp-logo);
    background-size:cover;
    background-position:center;
    border-radius:50%;
}
.ycf-jt-ws-title{color:#000;}
.ycf-jt-worksheet th{background:#0b0b0b;color:#fff;border-color:#333;}
.ycf-jt-worksheet td{border-color:#d8ddd2;}
.ycf-jt-worksheet tr.office th{border-top-color:var(--dp-lime);}
.ycf-jt-worksheet tr.office td{border-top-color:var(--dp-lime);}

@media (min-width: 901px){
    .ycf-jt-wrap.ycf-jt-staff::before{margin-left:0;margin-right:auto;}
    .ycf-jt-wrap.ycf-jt-staff::after{text-align:left;}
}

@media (max-width: 900px){
    .ycf-jt-wrap{
        padding:18px 12px;
        border-radius:0;
        margin-left:calc(50% - 50vw);
        margin-right:calc(50% - 50vw);
        width:100vw;
        max-width:100vw;
    }
    .ycf-jt-wrap::before{width:86px;height:86px;margin-bottom:14px;}
    .ycf-jt-wrap::after{font-size:11px;margin-bottom:16px;}
    .ycf-jt-header{border-radius:16px;padding:16px;}
    .ycf-jt-header h2{font-size:22px;}
    .ycf-jt-kpis{grid-template-columns:1fr 1fr;gap:12px;}
    .ycf-jt-kpi{padding:16px;}
    .ycf-jt-kpi strong{font-size:23px;}
    .ycf-jt-job-cards{grid-template-columns:1fr;gap:14px;}
    .ycf-jt-card{padding:16px;}
    .ycf-jt-card-head{flex-direction:column;}
    .ycf-jt-filters{display:grid;grid-template-columns:1fr;}
    .ycf-jt-filters input,.ycf-jt-filters select,.ycf-jt-filters .ycf-jt-btn{width:100%;justify-content:center;}
}

@media (max-width: 700px){
    .ycf-jt-wrap{padding:14px 10px;}
    .ycf-jt-header{gap:10px;}
    .ycf-jt-header .ycf-jt-btn,
    .ycf-jt-header .ycf-jt-btn-sm{width:100%;justify-content:center;}
    .ycf-jt-kpis{grid-template-columns:1fr;}
    .ycf-jt-kpi::after{width:38px;height:38px;}
    .ycf-jt-card-actions{display:grid;grid-template-columns:1fr;}
    .ycf-jt-card-actions .ycf-jt-btn,
    .ycf-jt-status-select{min-width:0;width:100%;}
    .ycf-jt-card-stats{grid-template-columns:1fr;gap:0;}
    .ycf-jt-card-stats div{padding:8px 0;border-bottom:1px solid var(--dp-border);}
    .ycf-jt-card-stats div:last-child{border-bottom:0;}
    .ycf-jt-running-timer{display:grid;grid-template-columns:auto 1fr;align-items:center;}
    .ycf-jt-running-timer .ycf-jt-elapsed{margin-left:0;grid-column:1/-1;font-size:22px;}
    .ycf-jt-running-timer .ycf-jt-btn{grid-column:1/-1;width:100%;justify-content:center;}
    .ycf-jt-modal{padding:10px;align-items:flex-end;}
    .ycf-jt-modal-box{max-height:92vh;border-radius:20px 20px 0 0;padding:22px 16px;}
    .ycf-jt-grid-2,.ycf-jt-quote-grid{grid-template-columns:1fr;}
    .ycf-jt-quote-line{grid-template-columns:1fr;}
    .ycf-jt-quote-summary{grid-template-columns:1fr;}
    .ycf-jt-quote-price-box{grid-column:auto;}
    .ycf-jt-photo-gallery{grid-template-columns:repeat(2,1fr);}
    .ycf-jt-task-row{align-items:flex-start;flex-direction:column;}
    .ycf-jt-task-row .ycf-jt-btn,.ycf-jt-task-row .ycf-jt-btn-sm{width:100%;justify-content:center;}
    .ycf-jt-schedule-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;}
    .ycf-jt-schedule{min-width:880px;}
    .ycf-jt-table-wrap{overflow:visible;border:0;background:transparent;box-shadow:none;}
    .ycf-jt-table{border-collapse:separate;border-spacing:0 12px;}
    .ycf-jt-table thead{display:none;}
    .ycf-jt-table tr{display:block;background:#fff;border:1px solid var(--dp-border);border-radius:16px;box-shadow:0 8px 20px rgba(0,0,0,.06);overflow:hidden;margin-bottom:12px;}
    .ycf-jt-table td{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;border-bottom:1px solid var(--dp-border);padding:11px 13px;}
    .ycf-jt-table td:last-child{border-bottom:0;}
    .ycf-jt-table td::before{content:attr(data-label);font-weight:900;color:#000;min-width:38%;}
    .ycf-jt-table td:not([data-label])::before{content:"";display:none;}
    .ycf-jt-actions{white-space:normal;justify-content:flex-end;}
    .ycf-jt-actions .ycf-jt-btn,.ycf-jt-actions .ycf-jt-btn-sm{width:100%;justify-content:center;}
    .ycf-jt-invoice{padding:22px 14px;border-radius:16px;}
    .ycf-jt-invoice-actions{display:grid;grid-template-columns:1fr;}
    .ycf-jt-invoice-table{font-size:12px;}
    .ycf-jt-worksheet{padding:14px;overflow-x:auto;}
    .ycf-jt-worksheet table{min-width:650px;}
}


/* ============================================================
   v1.8 — Staff holidays / leave planner
   ============================================================ */
.ycf-jt-subtitle { margin: 6px 0 0; color: #666; font-size: 14px; }
.ycf-jt-panel {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
}
.ycf-jt-panel h3 { margin-top: 0; margin-bottom: 14px; }
.ycf-jt-holiday-form .ycf-jt-btn { margin-top: 12px; }
.ycf-jt-notice {
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-weight: 600;
}
.ycf-jt-notice-success { background: #e8f5e9; color: #1a7a1a; border: 1px solid #cbe8ce; }
.ycf-jt-notice-error { background: #fff0f0; color: #b42318; border: 1px solid #f5c2c7; }
.ycf-jt-inline-form { margin: 0; }
.ycf-jt-leave-badge,
.ycf-jt-holiday-marker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 700;
    background: #e6f0ff;
    color: #0052cc;
}
.ycf-jt-leave-sick { background: #ffe8e8; color: #b42318; }
.ycf-jt-leave-appointment { background: #fff3dc; color: #975a00; }
.ycf-jt-leave-training { background: #efe8ff; color: #5b21b6; }
.ycf-jt-leave-other { background: #eceff3; color: #3d4653; }
.ycf-jt-holiday-cell { background: #f3f8ff; }
.ycf-jt-holiday-marker {
    margin-bottom: 7px;
    max-width: 100%;
    white-space: normal;
    border-radius: 8px;
}
@media (max-width: 700px) {
    .ycf-jt-holiday-table { min-width: 720px; }
}

/* ============================================================
   v1.9 — Export buttons, notification settings, activity log
   ============================================================ */

.ycf-jt-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ycf-jt-btn-secondary {
    background: #fff;
    border: 1px solid #ccc;
    color: #333;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 4px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: background 0.15s;
}
.ycf-jt-btn-secondary:hover { background: #f5f5f5; border-color: #999; }

/* Notification settings indented options */
.ycf-jt-notification-opts {
    margin-left: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 16px;
}

/* ============================================================
   v2.0 — Kanban board, Customer DB, Overdue badges, Autocomplete
   ============================================================ */

/* --- Overdue badges ---------------------------------------- */
.ycf-jt-overdue-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.ycf-jt-tab-badge.ycf-jt-badge-warn {
    background: #e74c3c;
}

/* --- Kanban board ------------------------------------------ */
.ycf-jt-kanban {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0 16px;
    align-items: flex-start;
}
.ycf-jt-kanban-col {
    flex: 0 0 220px;
    min-width: 200px;
    background: #f4f5f7;
    border-radius: 8px;
    overflow: hidden;
}
.ycf-jt-kanban-col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px 8px;
    background: #e8eaed;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #444;
}
.ycf-jt-kanban-col-count {
    background: #fff;
    color: #555;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
}
.ycf-jt-kanban-cards {
    padding: 8px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ycf-jt-kanban-card {
    background: #fff;
    border-radius: 6px;
    padding: 10px 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    cursor: grab;
    border-left: 3px solid #1e3a5f;
    transition: box-shadow .15s;
    font-size: 13px;
}
.ycf-jt-kanban-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.15); }
.ycf-jt-kanban-card.is-overdue { border-left-color: #e74c3c; }
.ycf-jt-kanban-card-num {
    font-weight: 700;
    font-size: 12px;
    color: #1e3a5f;
    margin-bottom: 4px;
}
.ycf-jt-kanban-card-customer {
    font-weight: 600;
    margin-bottom: 2px;
}
.ycf-jt-kanban-card-model {
    color: #666;
    font-size: 12px;
    margin-bottom: 4px;
}
.ycf-jt-kanban-card-assignee,
.ycf-jt-kanban-card-due {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}
.ycf-jt-kanban-card-due.is-overdue { color: #e74c3c; font-weight: 600; }
.ycf-jt-kanban-card-actions {
    margin-top: 8px;
    display: flex;
    gap: 4px;
}
.ycf-jt-btn-xs {
    font-size: 11px;
    padding: 2px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #f9f9f9;
    cursor: pointer;
}
.ycf-jt-btn-xs:hover { background: #eee; }
.ycf-jt-kanban-ghost { opacity: .4; }
.ycf-jt-kanban-dragging { transform: rotate(2deg); opacity: .9; }
.ycf-jt-drop-ghost { opacity: .3; }

/* --- Customer autocomplete --------------------------------- */
.ycf-jt-autocomplete-list {
    position: absolute;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 220px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 260px;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.ycf-jt-autocomplete-list li {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}
.ycf-jt-autocomplete-list li:hover { background: #f0f4ff; }
.ycf-jt-autocomplete-list li small { color: #888; margin-left: 6px; }

/* Wrap input so dropdown positions correctly */
input[name="customer"] {
    position: relative;
}

/* --- Customer detail modal --------------------------------- */
.ycf-jt-modal-wide { max-width: 720px; }
.ycf-jt-cust-meta p { margin: 0 0 6px; font-size: 14px; }

/* ============================================================
   v3.0 — Comments, Templates, Bulk Actions, Clone
   ============================================================ */

/* --- Bulk action bar --------------------------------------- */
.ycf-jt-bulk-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #1e3a5f;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 13px;
}
.ycf-jt-bulk-bar select,
.ycf-jt-bulk-bar input[type=date] {
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
.ycf-jt-col-check { width: 36px; text-align: center; }
.ycf-jt-job-check { cursor: pointer; width: 16px; height: 16px; }

/* --- Comments thread -------------------------------------- */
.ycf-jt-comments { padding: 4px 0; }
.ycf-jt-comments-title { font-size: 14px; font-weight: 700; margin: 0 0 12px; color: #333; }
.ycf-jt-comment-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.ycf-jt-comment-empty { color: #999; font-style: italic; font-size: 13px; }
.ycf-jt-comment {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.ycf-jt-comment-avatar {
    border-radius: 50%;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}
.ycf-jt-comment-bubble {
    background: #f4f5f7;
    border-radius: 0 8px 8px 8px;
    padding: 8px 12px;
    flex: 1;
    font-size: 13px;
}
.ycf-jt-comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 12px;
    color: #666;
}
.ycf-jt-comment-meta strong { color: #222; font-size: 13px; }
.ycf-jt-comment-delete {
    margin-left: auto;
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0 2px;
}
.ycf-jt-comment-delete:hover { color: #e74c3c; }
.ycf-jt-comment-body { color: #333; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.ycf-jt-comment-form {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 8px;
}
.ycf-jt-comment-form textarea {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    resize: vertical;
    min-height: 60px;
}

/* --- Template cards --------------------------------------- */
.ycf-jt-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.ycf-jt-template-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.ycf-jt-template-card-title {
    font-weight: 700;
    font-size: 15px;
    color: #1e3a5f;
}
.ycf-jt-template-card-model { font-size: 13px; color: #555; }
.ycf-jt-template-card-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #777;
}
.ycf-jt-template-card-desc {
    font-size: 12px;
    color: #888;
    font-style: italic;
    flex: 1;
}
.ycf-jt-template-card-actions { display: flex; gap: 6px; align-items: center; margin-top: 8px; flex-wrap: wrap; }

/* Template picker modal list */
.ycf-jt-template-pick-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding: 4px 0;
}
.ycf-jt-template-pick-item {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ycf-jt-template-pick-item:hover { background: #f0f4ff; }

/* Template task list editor */
.ycf-jt-template-tasks-section { margin-top: 16px; }
.ycf-jt-template-tasks-section h4 { font-size: 13px; margin: 0 0 8px; }
.ycf-jt-template-tasks-section h4 small { font-weight: normal; color: #888; }
.ycf-jt-tpl-task-row {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.ycf-jt-tpl-task-row input[type=text] { flex: 1; min-width: 140px; }

/* ============================================================
   v4.0 — Lead CRM
   ============================================================ */

/* --- Lead inbox list -------------------------------------- */
.ycf-jt-lead-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.ycf-jt-lead-card {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    transition: box-shadow .15s;
}
.ycf-jt-lead-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.1); }
.ycf-jt-lead-card.is-new { border-left: 4px solid #3498db; }
.ycf-jt-lead-card.is-followup-due { border-left: 4px solid #e67e22; }

.ycf-jt-lead-card-left { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ycf-jt-lead-card-right { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex-shrink: 0; min-width: 140px; }

.ycf-jt-lead-card-name {
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ycf-jt-lead-dot {
    width: 8px; height: 8px;
    background: #3498db;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.ycf-jt-lead-card-contact { font-size: 13px; color: #555; display: flex; gap: 12px; flex-wrap: wrap; }
.ycf-jt-lead-card-item { font-size: 13px; color: #333; font-weight: 600; }
.ycf-jt-lead-card-message { font-size: 12px; color: #777; line-height: 1.5; }

.ycf-jt-lead-status-badge {
    display: inline-block;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.ycf-jt-lead-source-badge {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}
.ycf-jt-lead-followup {
    font-size: 11px;
    color: #888;
}
.ycf-jt-lead-followup.is-due {
    color: #e67e22;
    font-weight: 700;
}
.ycf-jt-lead-card-meta { font-size: 11px; color: #aaa; }
.ycf-jt-lead-card-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.ycf-jt-lead-linked { font-size: 11px; color: #27ae60; font-weight: 700; }

/* --- Source summary strip --------------------------------- */
.ycf-jt-lead-source-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 0;
    margin-bottom: 4px;
    font-size: 13px;
}
.ycf-jt-lead-strip-label { color: #888; }
.ycf-jt-lead-source-pill {
    background: #f0f4ff;
    border: 1px solid #d0d8f0;
    border-radius: 12px;
    padding: 3px 10px;
    font-size: 12px;
    color: #444;
}
.ycf-jt-lead-source-pill strong { margin-left: 4px; color: #1e3a5f; }

/* --- New lead badge --------------------------------------- */
.ycf-jt-lead-new-badge {
    background: #3498db;
    color: #fff;
    border-radius: 10px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 700;
}

/* --- Public lead / contact form --------------------------- */
.ycf-jt-lead-form-wrap { max-width: 600px; }
.ycf-jt-lead-form-title { margin-bottom: 16px; }
.ycf-jt-lead-form-success {
    background: #eafaf1;
    border: 1px solid #a9dfbf;
    border-radius: 6px;
    padding: 16px 20px;
    color: #1e8449;
    font-size: 15px;
}
