#onej-dispatch-root{font-family:Arial,Helvetica,sans-serif;color:#17202a;max-width:1400px;margin:0 auto}#onej-dispatch-root *{box-sizing:border-box}.onej-login-card,.onej-card{background:white;border-radius:14px;padding:18px;margin-bottom:18px;box-shadow:0 4px 14px rgba(0,0,0,.08)}.onej-login-card{max-width:430px;margin:40px auto}.onej-header{background:#111827;color:white;padding:18px;border-radius:14px 14px 0 0;display:flex;justify-content:space-between;align-items:center;gap:12px}.onej-header h2{margin:0;color:white}.onej-header p{margin:4px 0 0;opacity:.8}.onej-tabs{display:flex;gap:8px;padding:12px;background:white;border:1px solid #e5e7eb;overflow-x:auto}.onej-tab,#onej-dispatch-root button{background:#0f766e;color:white;border:none;border-radius:10px;padding:11px 16px;font-weight:bold;cursor:pointer}.onej-tab{background:#e5e7eb!important;color:#111827!important}.onej-tab.active{background:#0f766e!important;color:white!important}.onej-secondary{background:#2563eb!important}.onej-delete{background:#dc2626!important}.onej-page{display:none;background:#f4f6f8;padding:18px 0}.onej-page.active{display:block}.onej-card h3,.onej-login-card h2{margin-top:0}.onej-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.onej-inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.onej-grid{display:grid;grid-template-columns:repeat(3,minmax(170px,1fr));gap:12px}#onej-dispatch-root label{display:block;font-weight:bold;margin-bottom:12px}#onej-dispatch-root input,#onej-dispatch-root select,#onej-dispatch-root textarea{width:100%;padding:11px;border:1px solid #d0d7de;border-radius:10px;margin-top:6px;font-size:15px}#onej-dispatch-root textarea{min-height:80px}.onej-actions{display:flex;gap:10px;flex-wrap:wrap}.onej-days{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:8px;background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;padding:12px;margin:12px 0}.onej-days label{margin:0!important}.onej-days input{width:auto!important;margin-right:6px}.onej-item,.onej-assignment{border:1px solid #e5e7eb;padding:12px;border-radius:12px;margin-bottom:10px;background:#fafafa}.onej-assignment strong,.onej-item strong{font-size:17px}.onej-meta{color:#4b5563;margin-top:4px}.onej-assignment button,.onej-item button{margin-top:8px;margin-right:6px;padding:8px 10px}.onej-badge{display:inline-block;background:#e0f2fe;color:#075985;padding:3px 8px;border-radius:999px;font-size:12px;margin-left:6px}.onej-badge-in{background:#dcfce7;color:#166534}.onej-badge-out{background:#fee2e2;color:#991b1b}.onej-table-wrap{width:100%;overflow-x:auto}#onej-dispatch-root table{width:100%;border-collapse:collapse;min-width:1100px;background:white}#onej-dispatch-root th,#onej-dispatch-root td{border:1px solid #d1d5db;text-align:left;padding:8px;vertical-align:top;font-size:13px}#onej-dispatch-root th{background:#f3f4f6}.onej-small{color:#6b7280}.onej-cell{min-height:34px}.onej-cell-item{background:#eef2ff;border:1px solid #c7d2fe;border-radius:8px;padding:5px;margin:3px 0}.onej-whatsapp-panel{margin-top:14px;padding:12px;border:1px solid #bbf7d0;background:#f0fdf4;border-radius:12px}.onej-whatsapp-link{display:inline-block;margin:6px 6px 0 0;background:#16a34a;color:white!important;padding:8px 10px;border-radius:8px;text-decoration:none;font-weight:bold}.onej-warning-panel{margin-top:14px;padding:12px;border:1px solid #fde68a;background:#fffbeb;border-radius:12px}.onej-portal-card{border:1px solid #e5e7eb;border-radius:14px;padding:16px;margin-bottom:14px;background:#fff}.onej-map-link{display:inline-block;margin-top:8px;background:#111827;color:white!important;padding:9px 12px;border-radius:8px;text-decoration:none;font-weight:bold}@media(max-width:800px){.onej-header{flex-direction:column;align-items:flex-start}.onej-grid,.onej-days{grid-template-columns:1fr}}
.onej-badge-way{background:#fef3c7;color:#92400e}

.onej-route-link{display:inline-block;margin-top:4px}

.onej-vertical-week { min-width: 1200px; }
.onej-day-stack { min-width: 190px; padding: 0 !important; }
.onej-period-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  min-height: 58px;
  border-bottom: 1px solid #e5e7eb;
}
.onej-period-row:last-child { border-bottom: none; }
.onej-period-label {
  background: #f9fafb;
  color: #374151;
  font-weight: bold;
  padding: 8px 6px;
  border-right: 1px solid #e5e7eb;
  font-size: 12px;
}
.onej-period-row > div:last-child {
  padding: 5px;
}

.onej-item button { margin-top: 8px; }

.onej-gps-note {
  display:block;
  margin-top:6px;
  color:#374151;
}

.onej-warning-panel strong,
.onej-whatsapp-panel strong { display:inline-block; margin-bottom:4px; }

:root {
  --onej-black: #211f20;
  --onej-bluegray: #5f7881;
  --onej-teal: #47aebe;
  --onej-light: #f5f8f9;
  --onej-border: #d6e1e4;
}
#onej-dispatch-root { color: var(--onej-black); }
.onej-header {
  background: linear-gradient(135deg, var(--onej-black), #2f3e43) !important;
  border-bottom: 5px solid var(--onej-teal);
}
.onej-tab, #onej-dispatch-root button { background: var(--onej-bluegray); }
.onej-tab.active, #onej-dispatch-root button:not(.onej-delete):not(.onej-secondary) {
  background: var(--onej-teal) !important;
  color: white !important;
}
.onej-secondary { background: var(--onej-bluegray) !important; }
.onej-delete { background: #9a2e2e !important; }
.onej-card { border: 1px solid var(--onej-border); }
.onej-page { background: var(--onej-light); }
.onej-cell-item { background: #e9f5f7; border-color: #b8dfe5; }
.onej-period-label { background: #eef4f5; color: var(--onej-bluegray); }
.onej-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.onej-dashboard-card {
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--onej-border);
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.onej-dashboard-card h4 { margin: 0 0 8px; font-size: 19px; }
.onej-dashboard-card p { margin: 0 0 10px; }
.onej-dashboard-card span {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 12px;
}
.onej-status-in span { background: #dcfce7; color: #166534; }
.onej-status-way span { background: #fef3c7; color: #92400e; }
.onej-status-out span { background: #e0f2fe; color: #075985; }
.onej-status-off span { background: #e5e7eb; color: #374151; }
.onej-small-btn {
  padding: 5px 8px !important;
  font-size: 11px !important;
  margin-top: 8px !important;
}
.onej-month-table td { height: 125px; width: 14.28%; }
.onej-muted-day { background: #f3f4f6; color: #9ca3af; }
.onej-month-item {
  margin-top: 5px;
  padding: 5px;
  border-radius: 8px;
  background: #e9f5f7;
  border: 1px solid #b8dfe5;
  font-size: 12px;
}

.onej-employee-avatar {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid var(--onej-teal, #47aebe);
  display: block;
  margin-bottom: 10px;
}
.onej-avatar-fallback {
  background: var(--onej-bluegray, #5f7881);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: bold;
}
.onej-employee-preview {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid var(--onej-teal, #47aebe);
  margin: 8px 0 14px;
}
.onej-employee-row {
  display: flex;
  gap: 14px;
  align-items: center;
}
.onej-employee-row .onej-employee-avatar {
  margin-bottom: 0;
}

.onej-debug-hidden { display:none; }

.onej-sms-link {
  display: inline-block;
  margin: 6px 6px 0 0;
  background: #211f20;
  color: white !important;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}
.onej-overtime-alert {
  margin: 6px;
  padding: 6px 8px;
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #991b1b;
  border-radius: 8px;
  font-weight: bold;
  font-size: 12px;
}
.onej-hours-ok {
  margin: 6px;
  padding: 6px 8px;
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
  border-radius: 8px;
  font-weight: bold;
  font-size: 12px;
}
.onej-receipt-box {
  margin-top: 12px;
  padding: 10px;
  border: 1px dashed var(--onej-bluegray, #5f7881);
  border-radius: 12px;
  background: #f8fbfc;
}
.onej-receipt-grid {
  grid-template-columns: 1fr 120px 1fr;
}
.onej-receipt-thumb {
  margin-top: 8px;
  width: 120px;
  max-height: 160px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #d6e1e4;
}
.onej-past-item {
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.onej-checkout-screen {
  max-width: 680px;
  margin: 0 auto;
  background: white;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 6px 22px rgba(0,0,0,.10);
  text-align: center;
  border: 1px solid var(--onej-border, #d6e1e4);
}
.onej-checkout-screen h2 {
  font-size: 30px;
  margin: 0 0 10px;
  color: var(--onej-black, #211f20);
}
.onej-camera-panel { margin: 22px auto; }
.onej-camera-button {
  cursor: pointer;
  border: 3px dashed var(--onej-teal, #47aebe);
  border-radius: 18px;
  padding: 28px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #f0fbfd;
  color: var(--onej-black, #211f20);
  font-weight: bold;
}
.onej-camera-button input { display: none; }
.onej-camera-icon { font-size: 54px; line-height: 1; }
.onej-checkout-fields { text-align: left; grid-template-columns: 1fr 1fr; }
.onej-checkout-actions { justify-content: center; margin-top: 18px; }
.onej-complete-checkout { background: #16a34a !important; }
.onej-receipt-preview-large {
  max-width: 260px;
  max-height: 360px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #d6e1e4;
  margin-top: 10px;
}
@media(max-width:700px){
  .onej-checkout-fields { grid-template-columns: 1fr; }
  .onej-checkout-screen { padding: 18px; }
  .onej-checkout-screen h2 { font-size: 25px; }
}

.onej-big-icon {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 8px;
}
.onej-simple-text {
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 18px;
}
.onej-amount-only {
  max-width: 220px;
  margin: 16px auto !important;
  text-align: left;
}
.onej-large-action {
  font-size: 18px !important;
  padding: 15px 22px !important;
  margin: 8px !important;
  min-width: 210px;
}
.onej-back-button {
  background: #6b7280 !important;
  font-size: 16px !important;
  padding: 12px 18px !important;
  margin-top: 12px !important;
}
.onej-success-box {
  margin: 18px auto;
  padding: 18px;
  border-radius: 16px;
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #166534;
  max-width: 420px;
}
.onej-checkout-screen .onej-camera-button {
  max-width: 420px;
  margin: 0 auto;
}

/* v24 safe improvements based directly on stable v20 */
.onej-assignment-chip{padding:7px!important;margin:4px!important;background:#fff!important;border:1px solid #cfe5e9!important;box-shadow:0 1px 4px rgba(0,0,0,.04)}
.onej-chip-project{font-weight:700;font-size:13px;color:var(--onej-black,#211f20);margin-bottom:2px}
.onej-chip-meta{font-size:11px;color:#64748b;margin-bottom:4px}
.onej-chip-status{font-size:11px}
.onej-compact-actions{display:flex;gap:4px;margin-top:5px;flex-wrap:wrap}
.onej-compact-actions button,.onej-mini-delete{padding:4px 6px!important;min-width:0!important;font-size:10px!important;border-radius:6px!important;line-height:1.1!important}
.onej-mini-delete{margin-top:5px!important}
.onej-receipt-pill{display:inline-block;margin-top:4px;padding:3px 6px!important;font-size:10px!important;border-radius:999px!important;background:#fef3c7!important;color:#92400e!important}
.onej-receipt-summary-card{background:#fffbeb;border:1px solid #fde68a;border-radius:16px;padding:14px;margin-bottom:14px}
.onej-receipt-summary-card h3{margin:0 0 6px}
.onej-receipt-summary-line{padding:5px 0;border-top:1px solid #fde68a;font-size:13px}


/* v25 Full Width Mode - helps the dispatch system escape narrow WordPress theme containers */
body.onej-dispatch-fullwidth-active .entry-content,
body.onej-dispatch-fullwidth-active .wp-block-post-content,
body.onej-dispatch-fullwidth-active .site-content,
body.onej-dispatch-fullwidth-active .content-area,
body.onej-dispatch-fullwidth-active .container,
body.onej-dispatch-fullwidth-active .ast-container,
body.onej-dispatch-fullwidth-active .elementor-container,
body.onej-dispatch-fullwidth-active .elementor-widget-container,
body.onej-dispatch-fullwidth-active .wp-site-blocks,
.onej-force-wide-parent {
  max-width: none !important;
}

#onej-dispatch-root {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

#onej-dispatch-root * {
  box-sizing: border-box;
}

#onej-dispatch-root .onej-header,
#onej-dispatch-root .onej-tabs,
#onej-dispatch-root .onej-page,
#onej-dispatch-root .onej-card {
  width: 100% !important;
  max-width: none !important;
}

#onej-dispatch-root .onej-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

#onej-dispatch-root table {
  width: max-content !important;
  min-width: 1800px !important;
}

#onej-dispatch-root .onej-vertical-week {
  min-width: 1900px !important;
}

#onej-dispatch-root .onej-month-table {
  min-width: 1200px !important;
}

#onej-dispatch-root .onej-day-stack {
  min-width: 210px !important;
}

#onej-dispatch-root .onej-tabs {
  overflow-x: auto !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
  -webkit-overflow-scrolling: touch;
}

#onej-dispatch-root .onej-tab {
  flex: 0 0 auto !important;
}

@media (max-width: 900px) {
  #onej-dispatch-root {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  #onej-dispatch-root table {
    min-width: 1500px !important;
  }
  #onej-dispatch-root .onej-vertical-week {
    min-width: 1650px !important;
  }
}

/* v26 PDF and receipt worksheet fix */
#onej-dispatch-root #generateWorksheetPdfBtn {
  background: #211f20 !important;
}
.onej-receipt-pill {
  cursor: pointer;
}


/* v27 professional clean interface */
#onej-dispatch-root {
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif !important;
  background: #f6f8fa !important;
  color: #1f2937 !important;
}

#onej-dispatch-root .onej-header {
  background: #ffffff !important;
  color: #1f2937 !important;
  border: 1px solid #e5edf0 !important;
  border-left: 5px solid #47aebe !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
  padding: 18px 22px !important;
  margin-bottom: 14px !important;
}

#onej-dispatch-root .onej-header h2 {
  color: #1f2937 !important;
  font-size: 24px !important;
  letter-spacing: -0.03em !important;
  margin-bottom: 4px !important;
  font-weight: 750 !important;
}

#onej-dispatch-root .onej-header p {
  color: #64748b !important;
  font-size: 13px !important;
  margin: 0 !important;
}

#onej-dispatch-root .onej-tabs {
  background: transparent !important;
  border: none !important;
  gap: 8px !important;
  padding: 4px 0 12px !important;
}

#onej-dispatch-root .onej-tab {
  background: #ffffff !important;
  color: #475569 !important;
  border: 1px solid #dbe7eb !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  padding: 9px 14px !important;
}

#onej-dispatch-root .onej-tab.active {
  background: #47aebe !important;
  border-color: #47aebe !important;
  color: #ffffff !important;
}

#onej-dispatch-root .onej-card {
  background: #ffffff !important;
  border: 1px solid #e5edf0 !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
}

#onej-dispatch-root .onej-card h3,
#onej-dispatch-root .onej-section-head h3 {
  color: #1f2937 !important;
  font-size: 18px !important;
  letter-spacing: -0.02em !important;
  font-weight: 750 !important;
}

#onej-dispatch-root button,
#onej-dispatch-root .onej-secondary {
  border-radius: 10px !important;
  font-weight: 700 !important;
  border: none !important;
}

#onej-dispatch-root button:not(.onej-delete):not(.onej-secondary),
#onej-dispatch-root .onej-pdf-btn {
  background: #47aebe !important;
  color: #ffffff !important;
}

#onej-dispatch-root .onej-secondary {
  background: #5f7881 !important;
  color: #ffffff !important;
}

#onej-dispatch-root .onej-pdf-btn {
  background: #1f2937 !important;
}

#onej-dispatch-root input,
#onej-dispatch-root select,
#onej-dispatch-root textarea {
  border: 1px solid #dbe7eb !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #1f2937 !important;
  box-shadow: none !important;
}

#onej-dispatch-root label {
  color: #334155 !important;
  font-weight: 650 !important;
  font-size: 13px !important;
}

#onej-dispatch-root th {
  background: #eef6f8 !important;
  color: #1f2937 !important;
  border-color: #d5e3e7 !important;
}

#onej-dispatch-root td {
  border-color: #e2eaed !important;
}

#onej-dispatch-root .onej-badge {
  border-radius: 999px !important;
  font-weight: 700 !important;
}

/* v28 Project Coverage and active/inactive projects */
.onej-project-coverage-table {
  min-width: 1800px !important;
}
.onej-project-name-cell {
  min-width: 230px;
  background: #f8fafc;
}
.onej-coverage-chip {
  background: #eef9fb;
  border: 1px solid #cfe5e9;
  border-radius: 10px;
  padding: 7px;
  margin: 4px 0;
  font-size: 12px;
}
.onej-coverage-chip span {
  color: #5f7881;
  font-size: 11px;
}
.onej-unassigned {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 7px;
  font-size: 11px;
  font-weight: 700;
}
.onej-project-active,
.onej-project-inactive {
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 8px;
  font-weight: 700;
}
.onej-project-active {
  background: #dcfce7;
  color: #166534;
}
.onej-project-inactive {
  background: #e5e7eb;
  color: #374151;
}

/* v31 conservative repair for project planning */
#projectPlanDaysInput{min-height:92px}
.onej-not-planned{color:#94a3b8;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:7px;font-size:11px}
.onej-unassigned-click{width:100%;text-align:center;cursor:pointer}
.onej-unassigned-click small{color:inherit;opacity:.85}

/* v33 dashboard grouped by employee */
.onej-dash-project-list {
  margin-top: 12px;
}
.onej-dash-subitem {
  margin-top: 9px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.35;
}
.onej-dash-subitem strong {
  color: #1f2937;
}
.onej-dash-subitem small {
  color: #64748b;
}

/* v34 clickable receipts on Dashboard */
.onej-receipt-summary-click {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent !important;
  color: #1f2937 !important;
  border: none !important;
  border-top: 1px solid #fde68a !important;
  border-radius: 0 !important;
  padding: 8px 0 !important;
  margin: 0 !important;
  font-size: 13px !important;
  cursor: pointer;
}
.onej-receipt-summary-click:hover {
  background: #fff7d6 !important;
}
.onej-receipt-summary-click small {
  color: #92400e;
}
.onej-dashboard-card .onej-receipt-pill {
  cursor: pointer;
}

/* v35 refinements */
.onej-receipt-summary-card {
  padding: 12px 14px !important;
}
.onej-receipt-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.onej-receipt-summary-head h3 {
  margin: 0 !important;
  font-size: 16px !important;
}
.onej-receipt-summary-head span {
  background: #fef3c7;
  color: #92400e;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}
.onej-receipt-summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.onej-receipt-summary-chip {
  width: auto !important;
  max-width: 260px !important;
  display: inline-flex !important;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: #fff8dc !important;
  color: #1f2937 !important;
  border: 1px solid #fde68a !important;
  border-radius: 12px !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}
.onej-receipt-summary-chip:hover {
  background: #fff3bf !important;
}
.onej-receipt-summary-chip span {
  color: #475569;
}
.onej-receipt-summary-chip small {
  color: #92400e;
}
.onej-plan-days-field {
  grid-column: 1 / -1;
}
.onej-plan-days-field > label {
  display: block;
  margin-bottom: 6px;
}
.onej-plan-days {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: #f8fafc;
  border: 1px solid #dbe7eb;
  border-radius: 12px;
  padding: 10px;
}
.onej-plan-days label {
  background: white;
  border: 1px solid #dbe7eb;
  border-radius: 999px;
  padding: 7px 10px;
  cursor: pointer;
}
.onej-plan-days input {
  margin-right: 5px;
}

/* v36 Project Coverage status indicators */
.onej-coverage-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  font-size: 13px;
  color: #475569;
}
.onej-coverage-legend span {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 10px;
}
.onej-coverage-legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 5px;
}
.onej-coverage-legend .green { background: #22c55e; }
.onej-coverage-legend .yellow { background: #f59e0b; }
.onej-coverage-legend .red { background: #ef4444; }

.onej-project-status {
  margin: 8px 0;
  padding: 6px 8px;
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
}
.onej-project-status-ok {
  background: #dcfce7;
  color: #166534;
}
.onej-project-status-noplan {
  background: #fef3c7;
  color: #92400e;
}
.onej-project-status-missed {
  background: #fee2e2;
  color: #991b1b;
}
.onej-planned-day {
  background: #fbfeff;
}
.onej-no-plan-day {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 7px;
  font-size: 11px;
  font-weight: 700;
}
.onej-unassigned-missed {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
}

/* v37 Project Coverage future assignment logic */
.onej-coverage-legend .gray { background: #94a3b8; }
.onej-project-status small {
  font-weight: 600;
  opacity: .85;
}
.onej-project-status-offweek {
  background: #f1f5f9;
  color: #475569;
}

/* v38 Project Coverage color logic */
.onej-project-status-partial {
  background: #fef3c7;
  color: #92400e;
}
.onej-project-status-nocoverage {
  background: #fee2e2;
  color: #991b1b;
}
.onej-project-status-missed {
  background: #fee2e2;
  color: #991b1b;
}
/* Empty planned day cells are action items, but project-level status decides yellow vs red */
.onej-unassigned-missed {
  background: #fef3c7 !important;
  border-color: #f59e0b !important;
  color: #92400e !important;
}

/* v39 auto plan days */
#autoPlanDaysBtn {
  margin-top: 8px !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
}
.onej-plan-days-field .onej-small {
  margin-top: 6px;
}

/* v40 dashboard planned projects row */
.onej-dashboard-projects-card {
  margin-top: 16px !important;
}
.onej-dashboard-project-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.onej-project-day-card {
  border: 1px solid #dbe7eb;
  border-radius: 14px;
  padding: 12px;
  background: #ffffff;
}
.onej-project-day-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #1f2937;
}
.onej-project-day-card p {
  margin: 0 0 10px;
  font-size: 12px;
  color: #64748b;
}
.onej-project-has-employee {
  border-left: 5px solid #22c55e;
}
.onej-project-no-employee {
  border-left: 5px solid #f59e0b;
  background: #fffbeb;
}
.onej-project-employee-line {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px;
  margin-top: 8px;
  font-size: 13px;
}
.onej-project-employee-line span {
  color: #64748b;
}
.onej-no-employee-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 700;
  font-size: 12px;
  margin: 4px 8px 8px 0;
}
.onej-outside-plan-badge {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 700;
  font-size: 12px;
}

/* v41 Employee Portal redesign */
.portal-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}
.portal-header {
  background: #ffffff;
  border: 1px solid #e5edf0;
  border-radius: 22px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  box-shadow: 0 6px 20px rgba(15,23,42,.06);
}
.portal-profile {
  display: flex;
  gap: 14px;
  align-items: center;
}
.portal-avatar {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid #47aebe;
  flex: 0 0 auto;
}
.portal-avatar-fallback {
  background: #5f7881;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
}
.portal-header h1 {
  margin: 0;
  font-size: 22px;
  color: #1f2937;
  letter-spacing: -.03em;
}
.portal-header p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}
.portal-top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.portal-lang,
.portal-logout {
  border-radius: 999px !important;
  padding: 9px 12px !important;
  border: 1px solid #dbe7eb !important;
  background: white !important;
  color: #1f2937 !important;
  font-weight: 700 !important;
}
.portal-logout {
  background: #f1f5f9 !important;
}
.portal-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.portal-menu button {
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #dbe7eb !important;
  border-radius: 16px !important;
  padding: 13px 8px !important;
  font-weight: 800 !important;
  font-size: 14px !important;
}
.portal-menu button.active {
  background: #47aebe !important;
  color: #ffffff !important;
  border-color: #47aebe !important;
}
.portal-section {
  background: #ffffff;
  border: 1px solid #e5edf0;
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(15,23,42,.05);
}
.portal-section h2 {
  margin: 0 0 6px;
  color: #1f2937;
  font-size: 22px;
}
.portal-helper {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 13px;
}
.portal-job-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px;
  margin-top: 12px;
}
.portal-job-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.portal-job-top h3 {
  margin: 0;
  color: #1f2937;
  font-size: 19px;
}
.portal-job-top p {
  margin: 4px 0 0;
  color: #64748b;
  font-weight: 700;
}
.portal-status {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.portal-status-off { background: #e5e7eb; color: #374151; }
.portal-status-way { background: #dbeafe; color: #1d4ed8; }
.portal-status-active { background: #dcfce7; color: #166534; }
.portal-status-done { background: #ede9fe; color: #6d28d9; }
.portal-address {
  margin-top: 12px;
  color: #334155;
  font-weight: 700;
}
.portal-notes {
  margin-top: 12px;
  background: white;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 11px;
  color: #334155;
  line-height: 1.4;
}
.portal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
  margin-top: 14px;
}
.portal-action-btn,
.portal-map-btn {
  text-align: center;
  text-decoration: none;
  border-radius: 14px !important;
  padding: 14px 10px !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  background: #47aebe !important;
  color: white !important;
  border: none !important;
}
.portal-action-btn.secondary {
  background: #16a34a !important;
}
.portal-map-btn {
  background: #1f2937 !important;
}
.portal-mini-status {
  margin-top: 10px;
}
.portal-empty {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  font-weight: 700;
}
.portal-date-label {
  margin: 14px 0 0;
  font-weight: 900;
  color: #5f7881;
}
.portal-receipt-card {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 6px 10px;
  align-items: center;
  text-align: left;
  background: #fffbeb !important;
  color: #1f2937 !important;
  border: 1px solid #fde68a !important;
  border-radius: 16px !important;
  padding: 12px !important;
  margin-top: 10px !important;
}
.portal-receipt-card span {
  grid-row: span 2;
  font-size: 28px;
}
.portal-receipt-card small {
  color: #92400e;
}
@media(max-width:700px){
  .portal-header {
    flex-direction: column;
    align-items: stretch;
  }
  .portal-top-actions {
    justify-content: space-between;
  }
  .portal-menu {
    grid-template-columns: repeat(2,1fr);
  }
  .portal-actions {
    grid-template-columns: 1fr;
  }
}

/* v42 employee portal photo fix */
.portal-avatar {
  background: #f1f5f9;
}

/* v43 employee photo hard fix */
.portal-avatar { background: #f1f5f9; }

/* v44 employee photo final fix */
.portal-avatar {
  object-fit: cover !important;
}
.onej-employee-avatar,
.onej-employee-preview {
  object-fit: cover !important;
}

/* v44.4.3 professional card/calendar layout */
.onej-calendar-sheet,
.onej-project-calendar,
.onej-month-calendar {
  background:#fff;
  border:1px solid #dbe7eb;
  border-radius:18px;
  box-shadow:0 8px 24px rgba(15,23,42,.06);
  overflow:auto;
}
.onej-calendar-head,
.onej-calendar-row {
  display:grid;
  grid-template-columns:170px repeat(7, minmax(250px, 1fr)) 70px;
  min-width:2050px;
}
.onej-calendar-head > div,
.onej-project-calendar-head > div,
.onej-month-head > div {
  background:#eaf7fa;
  color:#0f172a;
  font-weight:900;
  padding:14px 12px;
  border-right:2px solid #c7e3ea;
  border-bottom:2px solid #c7e3ea;
  text-align:center;
}
.onej-calendar-head span,
.onej-project-calendar-head span {font-size:12px;color:#475569}
.onej-employee-cell,
.onej-total-cell {
  background:#f8fbfc;
  border-right:2px solid #c7e3ea;
  border-bottom:2px solid #edf4f6;
  padding:14px 12px;
}
.onej-day-card-cell {
  border-right:2px solid #d7edf2;
  border-bottom:2px solid #edf4f6;
  padding:10px;
  background:#fff;
}
.onej-period-block {
  border:1px solid #e2edf1;
  border-radius:14px;
  margin-bottom:10px;
  overflow:hidden;
  background:#fbfdfe;
}
.onej-period-title {
  background:#f2f8fa;
  color:#0f172a;
  font-weight:900;
  font-size:12px;
  padding:8px 10px;
  border-bottom:1px solid #e2edf1;
  white-space:nowrap;
}
.onej-drop-zone {
  min-height:48px;
  padding:8px;
}
.onej-assignment-chip,
.onej-month-item,
.onej-coverage-chip {
  background:#fff!important;
  border:1px solid #dbe7eb!important;
  border-radius:14px!important;
  padding:10px!important;
  margin:0 0 8px!important;
  box-shadow:0 3px 10px rgba(15,23,42,.06)!important;
  cursor:grab!important;
  user-select:none;
}
.onej-chip-project {font-weight:900;color:#0f172a;margin-bottom:5px}
.onej-chip-meta {font-size:12px;color:#475569;font-weight:700;margin-bottom:6px}
.onej-drop-hover {
  background:#e0f7fb!important;
  outline:3px dashed #47aebe!important;
  outline-offset:-5px;
}
.onej-month-head {
  display:grid;
  grid-template-columns:repeat(7, minmax(170px, 1fr));
  min-width:1190px;
}
.onej-month-grid {
  display:grid;
  grid-template-columns:repeat(7, minmax(170px, 1fr));
  min-width:1190px;
}
.onej-month-day {
  min-height:140px;
  padding:10px;
  border-right:1px solid #e2edf1;
  border-bottom:1px solid #e2edf1;
  background:#fff;
}
.onej-month-date {
  font-weight:900;
  color:#0f172a;
  margin-bottom:6px;
}
.onej-month-item strong {display:block;font-size:12px}
.onej-month-item small {display:block;color:#64748b;font-size:11px}
.onej-project-calendar-head,
.onej-project-calendar-row {
  display:grid;
  grid-template-columns:260px repeat(7, minmax(190px, 1fr));
  min-width:1590px;
}
.onej-project-name-cell {
  background:#f8fbfc;
  border-right:2px solid #c7e3ea;
  border-bottom:2px solid #edf4f6;
  padding:12px;
}
.onej-coverage-day {
  min-height:92px;
  padding:10px;
  border-right:1px solid #e2edf1;
  border-bottom:1px solid #e2edf1;
  background:#fff;
}
.onej-coverage-chip strong {display:block;color:#0f172a}
.onej-coverage-chip span {display:block;color:#64748b;font-size:12px}
.onej-card-actions,.onej-compact-actions {
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:5px!important;
  align-items:center!important;
}
.onej-card-actions button,.onej-compact-actions button,.onej-mini-delete {
  width:auto!important;
  min-width:34px!important;
  padding:4px 7px!important;
  font-size:10px!important;
  white-space:nowrap!important;
  margin:0!important;
}
.onej-warning-panel {
  border:1px solid #f59e0b;
  background:#fffbeb;
  color:#92400e;
  border-radius:14px;
  padding:14px;
  margin:10px 0;
}


/* v45 dashboard active employees + worksheet completion + multi-night support */
.onej-dashboard-card.onej-dashboard-active {
  border: 2px solid #16a34a;
  background: linear-gradient(180deg,#ffffff 0%,#f0fdf4 100%);
  box-shadow: 0 10px 24px rgba(22,163,74,.18);
}
.onej-dashboard-card.onej-status-off {
  opacity: .48;
  filter: grayscale(.45);
  background: #f3f4f6;
  box-shadow: none;
}
.onej-assignment-chip.onej-assignment-completed {
  background: #dcfce7 !important;
  border-color: #86efac !important;
  box-shadow: inset 4px 0 0 #16a34a;
}
.onej-assignment-chip.onej-assignment-completed .onej-chip-project::before {
  content: "✅ ";
}
.onej-mini-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 6px;
}
.onej-manual-complete {
  background: #16a34a !important;
  color: #fff !important;
  padding: 5px 8px !important;
  font-size: 11px !important;
}
.onej-completed-label {
  display: inline-block;
  background: #bbf7d0;
  color: #166534;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
}

/* v44.4.8 worksheet compact full-screen layout */
#onej-dispatch-root #worksheet {
  padding: 8px 0 !important;
}
#onej-dispatch-root #worksheet .onej-card {
  width: 100% !important;
  max-width: none !important;
  min-height: calc(100vh - 145px) !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 12px !important;
  margin-bottom: 0 !important;
}
#onej-dispatch-root #worksheet .onej-section-head {
  flex: 0 0 auto !important;
  margin-bottom: 6px !important;
}
#onej-dispatch-root #worksheet .onej-section-head h3 {
  margin: 0 !important;
}
#onej-dispatch-root #worksheet .onej-actions {
  flex: 0 0 auto !important;
  margin: 4px 0 8px !important;
}
#onej-dispatch-root #worksheetTable {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
}
#onej-dispatch-root #worksheet .onej-calendar-sheet {
  height: calc(100vh - 245px) !important;
  max-height: none !important;
  width: 100% !important;
  border-radius: 12px !important;
  overflow: auto !important;
}
#onej-dispatch-root #worksheet .onej-calendar-head {
  position: sticky !important;
  top: 0 !important;
  z-index: 30 !important;
}
#onej-dispatch-root #worksheet .onej-calendar-head > div {
  padding: 8px 8px !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
}
#onej-dispatch-root #worksheet .onej-calendar-head span {
  font-size: 10px !important;
}
#onej-dispatch-root #worksheet .onej-calendar-head,
#onej-dispatch-root #worksheet .onej-calendar-row {
  grid-template-columns: 145px repeat(7, minmax(220px, 1fr)) 58px !important;
  min-width: 1745px !important;
}
#onej-dispatch-root #worksheet .onej-employee-head,
#onej-dispatch-root #worksheet .onej-employee-cell {
  position: sticky !important;
  left: 0 !important;
  z-index: 35 !important;
}
#onej-dispatch-root #worksheet .onej-employee-head {
  z-index: 45 !important;
}
#onej-dispatch-root #worksheet .onej-employee-cell,
#onej-dispatch-root #worksheet .onej-total-cell {
  padding: 7px 8px !important;
  font-size: 12px !important;
}
#onej-dispatch-root #worksheet .onej-employee-cell strong {
  display: block !important;
  margin-bottom: 4px !important;
  line-height: 1.15 !important;
}
#onej-dispatch-root #worksheet .onej-day-card-cell {
  padding: 4px !important;
}
#onej-dispatch-root #worksheet .onej-period-block {
  border-radius: 8px !important;
  margin-bottom: 4px !important;
}
#onej-dispatch-root #worksheet .onej-period-title {
  padding: 3px 6px !important;
  font-size: 10px !important;
  line-height: 1.1 !important;
}
#onej-dispatch-root #worksheet .onej-drop-zone {
  min-height: 20px !important;
  padding: 3px !important;
}
#onej-dispatch-root #worksheet .onej-assignment-chip,
#onej-dispatch-root #worksheet .onej-cell-item {
  border-radius: 8px !important;
  padding: 5px 6px !important;
  margin: 0 0 4px !important;
  box-shadow: 0 1px 4px rgba(15,23,42,.05) !important;
}
#onej-dispatch-root #worksheet .onej-chip-project {
  font-size: 11px !important;
  margin-bottom: 2px !important;
  line-height: 1.15 !important;
}
#onej-dispatch-root #worksheet .onej-chip-meta {
  font-size: 10px !important;
  margin-bottom: 2px !important;
  line-height: 1.15 !important;
}
#onej-dispatch-root #worksheet .onej-mini-actions {
  gap: 4px !important;
  margin-top: 3px !important;
}
#onej-dispatch-root #worksheet .onej-mini-actions button,
#onej-dispatch-root #worksheet .onej-small-btn,
#onej-dispatch-root #worksheet .onej-manual-complete {
  padding: 3px 5px !important;
  font-size: 9px !important;
  line-height: 1.1 !important;
  border-radius: 6px !important;
  min-height: 0 !important;
}
#onej-dispatch-root #worksheet .onej-overtime-alert {
  padding: 3px 6px !important;
  font-size: 10px !important;
  margin-top: 3px !important;
  border-radius: 8px !important;
}
@media (max-width: 800px) {
  #onej-dispatch-root #worksheet .onej-card {
    min-height: calc(100vh - 120px) !important;
    padding: 8px !important;
  }
  #onej-dispatch-root #worksheet .onej-calendar-sheet {
    height: calc(100vh - 230px) !important;
  }
}

/* v44.4.10 - Dashboard three-level emphasis + action popup */
.onej-dashboard-card{cursor:pointer;transition:transform .12s ease, box-shadow .12s ease, opacity .12s ease, border-color .12s ease;background:#fff!important;}
.onej-dashboard-card:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(0,0,0,.10);}
.onej-dashboard-card.onej-dash-layer-active{opacity:1!important;border:2px solid var(--onej-teal,#47aebe)!important;box-shadow:0 8px 24px rgba(71,174,190,.28)!important;background:#fff!important;}
.onej-dashboard-card.onej-dash-layer-active h4{color:#111827!important;font-weight:800!important;}
.onej-dashboard-card.onej-dash-layer-active .onej-employee-avatar{opacity:1!important;filter:none!important;border-width:4px!important;}
.onej-dashboard-card.onej-dash-layer-scheduled{opacity:.92!important;border:1.5px solid #9bc7b0!important;box-shadow:0 4px 12px rgba(0,0,0,.06)!important;background:#fff!important;}
.onej-dashboard-card.onej-dash-layer-scheduled h4{color:#374151!important;font-weight:750!important;}
.onej-dashboard-card.onej-dash-layer-scheduled .onej-employee-avatar{opacity:.9!important;filter:none!important;}
.onej-dashboard-card.onej-dash-layer-off{opacity:.46!important;border:1px solid #e5e7eb!important;box-shadow:none!important;background:#fafafa!important;}
.onej-dashboard-card.onej-dash-layer-off .onej-employee-avatar{filter:grayscale(65%);opacity:.65;}
.onej-status-scheduled > span,.onej-status-scheduled span:first-of-type{background:#ecfdf5;color:#065f46;}
.onej-modal-backdrop{position:fixed;inset:0;background:rgba(17,24,39,.48);z-index:999999;display:flex;align-items:center;justify-content:center;padding:18px;}
.onej-modal-card{background:white;width:min(720px,96vw);max-height:88vh;overflow:auto;border-radius:18px;padding:20px;box-shadow:0 20px 60px rgba(0,0,0,.25);border:1px solid #d6e1e4;}
.onej-modal-close{background:#6b7280!important;border-radius:999px!important;width:34px;height:34px;padding:0!important;font-size:22px!important;line-height:1!important;}
.onej-modal-job{border:1px solid #e5e7eb;border-radius:14px;padding:12px;margin:10px 0;background:#f9fafb;}
.onej-modal-job strong{font-size:16px;}
.onej-modal-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;}
.onej-modal-actions button{padding:8px 10px!important;font-size:12px!important;}
@media(max-width:700px){.onej-modal-card{padding:16px}.onej-modal-actions button{width:100%;}}


/* v44.4.11 dashboard 3-layer visual fix - final override */
#onej-dispatch-root .onej-dashboard-grid{align-items:stretch;}
#onej-dispatch-root .onej-dashboard-card{cursor:pointer;filter:none!important;transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease,background .12s ease,opacity .12s ease;}
#onej-dispatch-root .onej-dashboard-card:hover{transform:translateY(-2px);}

/* Layer 1: active check-in */
#onej-dispatch-root .onej-dashboard-card.onej-dash-layer-active{
  opacity:1!important;
  filter:none!important;
  background:#ffffff!important;
  border:3px solid var(--onej-teal,#47aebe)!important;
  box-shadow:0 14px 34px rgba(71,174,190,.34)!important;
}
#onej-dispatch-root .onej-dashboard-card.onej-dash-layer-active h4{color:#0f172a!important;font-weight:900!important;}
#onej-dispatch-root .onej-dashboard-card.onej-dash-layer-active .onej-employee-avatar{opacity:1!important;filter:none!important;transform:scale(1.04);}

/* Layer 2: scheduled today, but not checked in */
#onej-dispatch-root .onej-dashboard-card.onej-dash-layer-scheduled{
  opacity:1!important;
  filter:none!important;
  background:#ffffff!important;
  border:2px solid #9bc7b0!important;
  box-shadow:0 7px 18px rgba(15,23,42,.12)!important;
}
#onej-dispatch-root .onej-dashboard-card.onej-dash-layer-scheduled h4{color:#1f2937!important;font-weight:800!important;}
#onej-dispatch-root .onej-dashboard-card.onej-dash-layer-scheduled .onej-employee-avatar{opacity:1!important;filter:none!important;}

/* Layer 3: no schedule today */
#onej-dispatch-root .onej-dashboard-card.onej-dash-layer-off{
  opacity:.40!important;
  filter:grayscale(.75)!important;
  background:#f8fafc!important;
  border:1px solid #e5e7eb!important;
  box-shadow:none!important;
}
#onej-dispatch-root .onej-dashboard-card.onej-dash-layer-off h4,
#onej-dispatch-root .onej-dashboard-card.onej-dash-layer-off p,
#onej-dispatch-root .onej-dashboard-card.onej-dash-layer-off span{color:#6b7280!important;}
#onej-dispatch-root .onej-dashboard-card.onej-dash-layer-off .onej-employee-avatar{opacity:.65!important;filter:grayscale(.85)!important;}
#onej-dispatch-root .onej-status-scheduled > span{background:#eef8f1!important;color:#166534!important;}


/* v44.4.12 professional calendar/dashboard redesign */
#onej-dispatch-root{
  max-width:none!important;
  width:100%!important;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Arial,sans-serif!important;
  color:#111827!important;
  background:#f5f7fb!important;
  font-size:14px!important;
  line-height:1.35!important;
}
#onej-dispatch-root .onej-card{
  border:1px solid #e6edf4!important;
  border-radius:18px!important;
  box-shadow:0 14px 36px rgba(15,23,42,.06)!important;
  background:#fff!important;
}
#onej-dispatch-root h2,#onej-dispatch-root h3,#onej-dispatch-root h4{letter-spacing:-.025em!important;color:#0f172a!important;}
#onej-dispatch-root button{border-radius:9px!important;box-shadow:none!important;text-transform:none!important;letter-spacing:.01em!important;}
#onej-dispatch-root input,#onej-dispatch-root select,#onej-dispatch-root textarea{border-radius:10px!important;background:#fff!important;border-color:#d9e3ec!important;}

/* Dashboard: clear three-layer emphasis */
#onej-dispatch-root .onej-dashboard-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(245px,1fr))!important;
  gap:14px!important;
  align-items:stretch!important;
}
#onej-dispatch-root .onej-dashboard-card{
  min-height:210px!important;
  height:100%!important;
  padding:16px!important;
  border-radius:18px!important;
  position:relative!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  user-select:none!important;
}
#onej-dispatch-root .onej-dashboard-card:focus{outline:3px solid rgba(37,99,235,.22)!important;outline-offset:2px!important;}
#onej-dispatch-root .onej-dashboard-card:hover{transform:translateY(-2px)!important;}
#onej-dispatch-root .onej-dashboard-card .onej-employee-avatar{width:54px!important;height:54px!important;margin:0!important;border-width:2px!important;}
#onej-dispatch-root .onej-dash-card-top{display:flex!important;flex-direction:column!important;gap:7px!important;min-height:58px!important;}
#onej-dispatch-root .onej-dashboard-card h4{font-size:16px!important;line-height:1.18!important;margin:0!important;font-weight:750!important;}
#onej-dispatch-root .onej-dashboard-card p{font-size:13px!important;color:#64748b!important;margin:0!important;}
#onej-dispatch-root .onej-status-pill,
#onej-dispatch-root .onej-dashboard-card > span{
  width:max-content!important;
  max-width:100%!important;
  padding:4px 9px!important;
  font-size:11px!important;
  font-weight:700!important;
  border-radius:999px!important;
  line-height:1.2!important;
}
#onej-dispatch-root .onej-dash-layer-active{
  opacity:1!important;filter:none!important;background:linear-gradient(180deg,#fff 0%,#f5fbff 100%)!important;
  border:2px solid #2563eb!important;box-shadow:0 16px 36px rgba(37,99,235,.20)!important;
}
#onej-dispatch-root .onej-dash-layer-active:before{content:"";position:absolute;inset:0 0 auto 0;height:4px;background:#2563eb;}
#onej-dispatch-root .onej-dash-layer-active .onej-employee-avatar{opacity:1!important;filter:none!important;border-color:#2563eb!important;}
#onej-dispatch-root .onej-dash-layer-active .onej-status-pill{background:#dbeafe!important;color:#1d4ed8!important;}
#onej-dispatch-root .onej-dash-layer-scheduled{
  opacity:1!important;filter:none!important;background:#fff!important;
  border:1.5px solid #b7c7d5!important;box-shadow:0 8px 22px rgba(15,23,42,.08)!important;
}
#onej-dispatch-root .onej-dash-layer-scheduled .onej-employee-avatar{opacity:1!important;filter:none!important;border-color:#94a3b8!important;}
#onej-dispatch-root .onej-dash-layer-scheduled .onej-status-pill{background:#eef2ff!important;color:#3730a3!important;}
#onej-dispatch-root .onej-dash-layer-off{
  opacity:.72!important;filter:none!important;background:#fafafa!important;
  border:1px solid #edf1f5!important;box-shadow:none!important;
}
#onej-dispatch-root .onej-dash-layer-off .onej-employee-avatar{opacity:.42!important;filter:grayscale(1)!important;border-color:#d1d5db!important;}
#onej-dispatch-root .onej-dash-layer-off h4{color:#6b7280!important;font-weight:650!important;}
#onej-dispatch-root .onej-dash-layer-off .onej-status-pill,#onej-dispatch-root .onej-dash-layer-off > span{background:#f1f5f9!important;color:#64748b!important;}
#onej-dispatch-root .onej-dash-project-list{display:flex!important;flex-direction:column!important;gap:8px!important;}
#onej-dispatch-root .onej-dash-subitem{
  border:1px solid #edf2f7!important;border-radius:12px!important;background:#fff!important;padding:10px!important;
  display:flex!important;flex-direction:column!important;gap:3px!important;box-shadow:0 2px 8px rgba(15,23,42,.04)!important;
}
#onej-dispatch-root .onej-dash-subitem strong{font-size:13px!important;line-height:1.2!important;}
#onej-dispatch-root .onej-dash-subitem span,#onej-dispatch-root .onej-dash-subitem small{font-size:12px!important;color:#64748b!important;}

/* Worksheet and Project Coverage: Apple/Google Calendar feel */
#onej-dispatch-root #worksheet .onej-card,
#onej-dispatch-root #projectcoverage .onej-card{padding:16px!important;border-radius:20px!important;}
#onej-dispatch-root #worksheet .onej-section-head h3,
#onej-dispatch-root #projectcoverage .onej-section-head h3{font-size:22px!important;font-weight:760!important;margin:0!important;}
#onej-dispatch-root #worksheet .onej-actions button{height:38px!important;padding:0 16px!important;font-size:13px!important;}
#onej-dispatch-root #worksheet .onej-calendar-sheet,
#onej-dispatch-root #projectcoverage .onej-project-calendar{
  border:1px solid #e2e8f0!important;border-radius:16px!important;background:#fff!important;overflow:auto!important;
}
#onej-dispatch-root #worksheet .onej-calendar-head,
#onej-dispatch-root #worksheet .onej-calendar-row{
  grid-template-columns:170px repeat(7,minmax(180px,1fr)) 58px!important;
  min-width:1490px!important;
}
#onej-dispatch-root #worksheet .onej-calendar-head > div,
#onej-dispatch-root #projectcoverage .onej-project-calendar-head > div{
  background:#fbfdff!important;border-right:1px solid #e6edf4!important;border-bottom:1px solid #dce7f1!important;
  color:#0f172a!important;font-size:12px!important;font-weight:750!important;padding:12px 8px!important;
}
#onej-dispatch-root #worksheet .onej-calendar-head span,
#onej-dispatch-root #projectcoverage .onej-project-calendar-head span{font-size:11px!important;color:#64748b!important;font-weight:600!important;}
#onej-dispatch-root #worksheet .onej-employee-cell,
#onej-dispatch-root #worksheet .onej-total-cell,
#onej-dispatch-root #projectcoverage .onej-project-name-cell{
  background:#fbfdff!important;border-right:1px solid #e6edf4!important;border-bottom:1px solid #eef3f7!important;padding:14px 12px!important;
}
#onej-dispatch-root #worksheet .onej-employee-cell{min-height:150px!important;}
#onej-dispatch-root #worksheet .onej-employee-cell strong{font-size:13px!important;font-weight:750!important;line-height:1.25!important;}
#onej-dispatch-root #worksheet .onej-day-card-cell,
#onej-dispatch-root #projectcoverage .onej-coverage-day{
  background:#fff!important;border-right:1px solid #eef3f7!important;border-bottom:1px solid #eef3f7!important;padding:9px!important;min-height:150px!important;
}
#onej-dispatch-root #worksheet .onej-period-block{border:1px solid #e7eef5!important;background:#fbfdff!important;border-radius:10px!important;margin-bottom:7px!important;overflow:hidden!important;}
#onej-dispatch-root #worksheet .onej-period-title{background:#f8fafc!important;color:#334155!important;font-size:10px!important;font-weight:750!important;padding:5px 7px!important;border-bottom:1px solid #edf2f7!important;}
#onej-dispatch-root #worksheet .onej-drop-zone{min-height:32px!important;padding:5px!important;}
#onej-dispatch-root .onej-assignment-chip,
#onej-dispatch-root .onej-coverage-chip{
  width:100%!important;min-height:76px!important;border-radius:12px!important;border:1px solid #dde8f0!important;background:#fff!important;
  padding:9px!important;margin:0 0 7px!important;box-shadow:0 4px 12px rgba(15,23,42,.06)!important;
}
#onej-dispatch-root .onej-chip-project,
#onej-dispatch-root .onej-coverage-chip strong{font-size:12px!important;font-weight:760!important;color:#0f172a!important;line-height:1.25!important;}
#onej-dispatch-root .onej-chip-meta,
#onej-dispatch-root .onej-coverage-chip span{font-size:11px!important;color:#64748b!important;font-weight:600!important;line-height:1.25!important;}
#onej-dispatch-root #worksheet .onej-cell-item.onej-blocked{min-height:48px!important;display:flex!important;align-items:center!important;color:#334155!important;background:#f8fafc!important;}
#onej-dispatch-root .onej-mini-actions{gap:5px!important;margin-top:6px!important;}
#onej-dispatch-root .onej-mini-actions button,
#onej-dispatch-root .onej-card-actions button,
#onej-dispatch-root .onej-compact-actions button{font-size:10px!important;padding:4px 7px!important;border-radius:7px!important;min-height:0!important;}
#onej-dispatch-root .onej-completed-label{font-size:10px!important;padding:4px 8px!important;background:#e8f7ed!important;color:#166534!important;}
#onej-dispatch-root #projectcoverage .onej-project-calendar-head,
#onej-dispatch-root #projectcoverage .onej-project-calendar-row{grid-template-columns:260px repeat(7,minmax(180px,1fr))!important;min-width:1520px!important;}
#onej-dispatch-root #projectcoverage .onej-project-name-cell strong,
#onej-dispatch-root #projectcoverage .onej-project-name-cell h4{font-size:14px!important;font-weight:760!important;line-height:1.25!important;margin:0 0 6px!important;}
#onej-dispatch-root #projectcoverage .onej-project-name-cell p{font-size:12px!important;line-height:1.4!important;color:#475569!important;margin:0 0 8px!important;}

/* Modal actions */
.onej-modal-backdrop{backdrop-filter:blur(6px)!important;background:rgba(15,23,42,.42)!important;}
.onej-pro-modal{padding:0!important;border-radius:22px!important;overflow:hidden!important;border:1px solid #e2e8f0!important;box-shadow:0 24px 80px rgba(15,23,42,.28)!important;}
.onej-modal-header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;padding:18px 20px!important;border-bottom:1px solid #eef3f7!important;background:#fbfdff!important;}
.onej-modal-header>div{display:flex!important;align-items:center!important;gap:12px!important;}
.onej-modal-header .onej-employee-avatar{width:44px!important;height:44px!important;margin:0!important;}
.onej-modal-header h3{margin:0!important;font-size:18px!important;font-weight:760!important;}
.onej-modal-header p{margin:2px 0 0!important;color:#64748b!important;font-size:12px!important;}
.onej-modal-body{padding:16px 20px 20px!important;}
.onej-modal-job{background:#fff!important;border:1px solid #e5edf5!important;border-radius:14px!important;padding:14px!important;box-shadow:0 5px 16px rgba(15,23,42,.05)!important;}
.onej-modal-job strong{font-size:14px!important;font-weight:760!important;}
.onej-modal-actions button{height:34px!important;padding:0 11px!important;font-size:12px!important;border-radius:9px!important;}
.onej-modal-close{background:#f1f5f9!important;color:#334155!important;border:1px solid #e2e8f0!important;}

/* v44.4.13 Real professional UI shell + worksheet redesign */
#onej-dispatch-root{max-width:none!important;width:100%!important;margin:0!important;background:#f6f8fb!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Arial,sans-serif!important;color:#111827!important;}
#onej-dispatch-root .onej-app-shell{display:grid!important;grid-template-columns:220px minmax(0,1fr)!important;min-height:calc(100vh - 20px)!important;background:#f6f8fb!important;}
#onej-dispatch-root .onej-sidebar{position:sticky!important;top:0!important;align-self:start!important;height:100vh!important;background:linear-gradient(180deg,#0f172a 0%,#111827 100%)!important;color:#fff!important;padding:18px 12px!important;display:flex!important;flex-direction:column!important;gap:18px!important;box-shadow:10px 0 30px rgba(15,23,42,.12)!important;z-index:30!important;}
#onej-dispatch-root .onej-brand{display:flex!important;align-items:center!important;gap:11px!important;padding:6px 8px 14px!important;border-bottom:1px solid rgba(255,255,255,.12)!important;}
#onej-dispatch-root .onej-brand-mark{width:38px!important;height:38px!important;border-radius:12px!important;background:#2563eb!important;display:flex!important;align-items:center!important;justify-content:center!important;font-weight:800!important;letter-spacing:-.04em!important;}
#onej-dispatch-root .onej-brand strong{display:block!important;color:#fff!important;font-size:19px!important;letter-spacing:.02em!important;line-height:1!important;}
#onej-dispatch-root .onej-brand span{display:block!important;color:#94a3b8!important;font-size:10px!important;text-transform:uppercase!important;font-weight:700!important;margin-top:3px!important;}
#onej-dispatch-root .onej-main{min-width:0!important;padding:0 18px 24px!important;}
#onej-dispatch-root .onej-topbar{height:70px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;border-bottom:1px solid #e6edf4!important;margin-bottom:16px!important;background:rgba(246,248,251,.92)!important;position:sticky!important;top:0!important;z-index:20!important;backdrop-filter:blur(14px)!important;}
#onej-dispatch-root .onej-topbar h2{font-size:20px!important;margin:0!important;color:#0f172a!important;font-weight:760!important;letter-spacing:-.03em!important;}
#onej-dispatch-root .onej-topbar p{margin:2px 0 0!important;color:#64748b!important;font-size:12px!important;}
#onej-dispatch-root .onej-sidebar .onej-tabs{display:flex!important;flex-direction:column!important;gap:5px!important;padding:0!important;background:transparent!important;border:0!important;overflow:visible!important;}
#onej-dispatch-root .onej-sidebar .onej-tab{width:100%!important;text-align:left!important;background:transparent!important;color:#dbeafe!important;border:0!important;border-radius:11px!important;padding:11px 12px!important;font-size:13px!important;font-weight:700!important;box-shadow:none!important;}
#onej-dispatch-root .onej-sidebar .onej-tab:hover{background:rgba(255,255,255,.08)!important;color:#fff!important;}
#onej-dispatch-root .onej-sidebar .onej-tab.active{background:rgba(148,163,184,.22)!important;color:#fff!important;}
#onej-dispatch-root .onej-sidebar-logout{margin-top:auto!important;background:transparent!important;border:1px solid rgba(255,255,255,.16)!important;color:#cbd5e1!important;width:100%!important;text-align:left!important;}
#onej-dispatch-root .onej-page{background:transparent!important;padding:0!important;}
#onej-dispatch-root .onej-card{border:1px solid #e2e8f0!important;border-radius:20px!important;padding:16px!important;box-shadow:0 14px 34px rgba(15,23,42,.06)!important;background:#fff!important;}

/* worksheet professional grid */
#onej-dispatch-root #worksheet .onej-card{padding:14px!important;overflow:hidden!important;}
#onej-dispatch-root #worksheet .onej-section-head{padding:2px 2px 12px!important;border-bottom:1px solid #edf2f7!important;margin-bottom:10px!important;}
#onej-dispatch-root #worksheet .onej-section-head h3{font-size:22px!important;font-weight:780!important;letter-spacing:-.035em!important;}
#onej-dispatch-root #worksheet .onej-actions{margin:8px 0 10px!important;}
#onej-dispatch-root #worksheet .onej-calendar-sheet{border:1px solid #dce7f1!important;border-radius:16px!important;overflow:auto!important;max-height:calc(100vh - 205px)!important;background:#fff!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)!important;}
#onej-dispatch-root #worksheet .onej-calendar-head{position:sticky!important;top:0!important;z-index:12!important;box-shadow:0 1px 0 #dce7f1,0 8px 18px rgba(15,23,42,.04)!important;}
#onej-dispatch-root #worksheet .onej-calendar-head,
#onej-dispatch-root #worksheet .onej-calendar-row{display:grid!important;grid-template-columns:150px repeat(7,minmax(170px,1fr)) 52px!important;min-width:1392px!important;}
#onej-dispatch-root #worksheet .onej-calendar-head>div{background:#fbfdff!important;border-right:1px solid #e6edf4!important;border-bottom:1px solid #dce7f1!important;color:#0f172a!important;font-size:12px!important;font-weight:760!important;text-align:center!important;padding:11px 8px!important;}
#onej-dispatch-root #worksheet .onej-calendar-row{border-bottom:3px solid #dbe6ef!important;}
#onej-dispatch-root #worksheet .onej-calendar-row:last-child{border-bottom:0!important;}
#onej-dispatch-root #worksheet .onej-employee-cell{background:#fbfdff!important;border-right:1px solid #dce7f1!important;padding:12px 10px!important;min-height:140px!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:8px!important;text-align:center!important;}
#onej-dispatch-root .onej-worksheet-employee{display:flex!important;flex-direction:column!important;align-items:center!important;gap:5px!important;width:100%!important;}
#onej-dispatch-root .onej-worksheet-employee .onej-employee-avatar{width:54px!important;height:54px!important;margin:0!important;border:2px solid #dbeafe!important;box-shadow:0 3px 8px rgba(15,23,42,.10)!important;}
#onej-dispatch-root .onej-worksheet-employee strong{font-size:13px!important;font-weight:780!important;line-height:1.18!important;color:#0f172a!important;}
#onej-dispatch-root .onej-worksheet-employee small{font-size:10px!important;color:#64748b!important;}
#onej-dispatch-root #worksheet .onej-day-card-cell{border-right:1px solid #edf2f7!important;background:#fff!important;padding:7px!important;min-height:140px!important;}
#onej-dispatch-root #worksheet .onej-total-cell{background:#fbfdff!important;border-left:1px solid #e6edf4!important;display:flex!important;justify-content:center!important;align-items:flex-start!important;padding-top:15px!important;font-size:13px!important;}
#onej-dispatch-root #worksheet .onej-period-block{border:1px solid #e7eef5!important;background:#fbfdff!important;border-radius:10px!important;margin:0 0 6px!important;overflow:hidden!important;}
#onej-dispatch-root #worksheet .onej-period-title{height:23px!important;background:#f8fafc!important;border-bottom:1px solid #edf2f7!important;color:#334155!important;font-size:10px!important;line-height:23px!important;padding:0 7px!important;font-weight:760!important;}
#onej-dispatch-root #worksheet .onej-drop-zone{min-height:30px!important;padding:5px!important;}
#onej-dispatch-root #worksheet .onej-assignment-chip{cursor:pointer!important;min-height:72px!important;padding:8px!important;border-radius:11px!important;border:1px solid #dbe5ef!important;background:#fff!important;box-shadow:0 4px 12px rgba(15,23,42,.055)!important;transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease!important;}
#onej-dispatch-root #worksheet .onej-assignment-chip:hover{transform:translateY(-1px)!important;border-color:#93c5fd!important;box-shadow:0 8px 18px rgba(15,23,42,.10)!important;}
#onej-dispatch-root #worksheet .onej-chip-project{font-size:12px!important;font-weight:780!important;color:#0f172a!important;line-height:1.2!important;margin-bottom:3px!important;}
#onej-dispatch-root #worksheet .onej-chip-meta{font-size:11px!important;color:#475569!important;font-weight:650!important;}
#onej-dispatch-root #worksheet .onej-chip-status .onej-badge{font-size:10px!important;padding:3px 6px!important;margin-top:3px!important;}
#onej-dispatch-root #worksheet .onej-mini-actions{display:flex!important;align-items:center!important;gap:5px!important;flex-wrap:wrap!important;margin-top:6px!important;}
#onej-dispatch-root #worksheet .onej-mini-actions button{font-size:10px!important;padding:4px 7px!important;border-radius:7px!important;line-height:1!important;}
#onej-dispatch-root #worksheet .onej-cell-item.onej-blocked{min-height:44px!important;background:#f8fafc!important;border:1px dashed #cbd5e1!important;color:#334155!important;display:flex!important;align-items:center!important;font-size:13px!important;}

/* project coverage matching professional feel */
#onej-dispatch-root #projectcoverage .onej-project-calendar{border-radius:16px!important;border:1px solid #dce7f1!important;overflow:auto!important;max-height:calc(100vh - 190px)!important;background:#fff!important;}
#onej-dispatch-root #projectcoverage .onej-project-calendar-head{position:sticky!important;top:0!important;z-index:12!important;box-shadow:0 1px 0 #dce7f1,0 8px 18px rgba(15,23,42,.04)!important;}
#onej-dispatch-root #projectcoverage .onej-project-name-cell{background:#fbfdff!important;border-right:1px solid #dce7f1!important;}
#onej-dispatch-root #projectcoverage .onej-project-calendar-row{border-bottom:3px solid #dbe6ef!important;}
#onej-dispatch-root #projectcoverage .onej-coverage-chip{cursor:pointer!important;border-radius:11px!important;border:1px solid #dbe5ef!important;background:#fff!important;box-shadow:0 4px 12px rgba(15,23,42,.055)!important;}

@media(max-width:900px){
 #onej-dispatch-root .onej-app-shell{grid-template-columns:1fr!important;}
 #onej-dispatch-root .onej-sidebar{position:relative!important;height:auto!important;flex-direction:column!important;}
 #onej-dispatch-root .onej-sidebar .onej-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 #onej-dispatch-root .onej-main{padding:0 10px 18px!important;}
}


/* v44.4.14 Professional full-width workspace cleanup */
html body.onej-dispatch-fullwidth-active{overflow-x:hidden!important;background:#f6f8fb!important;}
body.onej-dispatch-fullwidth-active #page,
body.onej-dispatch-fullwidth-active #content,
body.onej-dispatch-fullwidth-active .site,
body.onej-dispatch-fullwidth-active .site-content,
body.onej-dispatch-fullwidth-active .content-area,
body.onej-dispatch-fullwidth-active .entry-content,
body.onej-dispatch-fullwidth-active .wp-block-post-content,
body.onej-dispatch-fullwidth-active .ast-container,
body.onej-dispatch-fullwidth-active .container,
body.onej-dispatch-fullwidth-active .elementor,
body.onej-dispatch-fullwidth-active .elementor-section,
body.onej-dispatch-fullwidth-active .elementor-container,
body.onej-dispatch-fullwidth-active .elementor-column,
body.onej-dispatch-fullwidth-active .elementor-widget-wrap,
body.onej-dispatch-fullwidth-active .elementor-widget-container{
  max-width:none!important;width:100%!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;
}
#onej-dispatch-root{width:100vw!important;max-width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;padding:0!important;background:#f6f8fb!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif!important;}
#onej-dispatch-root .onej-app-shell{width:100vw!important;min-height:100vh!important;grid-template-columns:216px minmax(0,1fr)!important;background:#f6f8fb!important;}
#onej-dispatch-root .onej-main{padding:0!important;min-width:0!important;overflow:hidden!important;}
#onej-dispatch-root .onej-topbar{height:56px!important;padding:0 18px!important;margin:0!important;border-bottom:1px solid #e5eaf0!important;background:rgba(246,248,251,.94)!important;}
#onej-dispatch-root .onej-page{padding:0!important;margin:0!important;background:#f6f8fb!important;}
#onej-dispatch-root .onej-page>.onej-card{margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#f6f8fb!important;padding:12px 14px!important;}
#onej-dispatch-root .onej-card{box-shadow:none!important;}

/* Sidebar typography - cleaner, less playful */
#onej-dispatch-root .onej-sidebar{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif!important;letter-spacing:0!important;}
#onej-dispatch-root .onej-brand strong{font-size:16px!important;font-weight:760!important;letter-spacing:.06em!important;}
#onej-dispatch-root .onej-brand span{font-size:9px!important;font-weight:650!important;letter-spacing:.12em!important;}
#onej-dispatch-root .onej-sidebar .onej-tab{font-size:12px!important;font-weight:620!important;letter-spacing:0!important;line-height:1.15!important;padding:9px 10px!important;border-radius:9px!important;color:#d5deea!important;}
#onej-dispatch-root .onej-sidebar .onej-tab.active{background:rgba(255,255,255,.12)!important;box-shadow:inset 3px 0 0 #60a5fa!important;}
#onej-dispatch-root .onej-sidebar-logout{font-size:12px!important;font-weight:600!important;padding:9px 10px!important;border-radius:9px!important;}

/* Compact page controls */
#onej-dispatch-root #prevWeek,#onej-dispatch-root #nextWeek,
#onej-dispatch-root #prevCoverageWeek,#onej-dispatch-root #nextCoverageWeek{
  width:34px!important;height:32px!important;min-width:34px!important;padding:0!important;border-radius:8px!important;font-size:0!important;background:#fff!important;color:#334155!important;border:1px solid #dbe4ee!important;box-shadow:0 1px 2px rgba(15,23,42,.04)!important;position:relative!important;
}
#onej-dispatch-root #prevWeek:before,#onej-dispatch-root #prevCoverageWeek:before{content:'‹';font-size:22px!important;line-height:1!important;font-weight:500!important;}
#onej-dispatch-root #nextWeek:before,#onej-dispatch-root #nextCoverageWeek:before{content:'›';font-size:22px!important;line-height:1!important;font-weight:500!important;}
#onej-dispatch-root #weekPicker,#onej-dispatch-root #coverageWeekPicker{height:32px!important;font-size:12px!important;padding:5px 9px!important;margin:0!important;}
#onej-dispatch-root #worksheetEmployeeFilter,#onej-dispatch-root #coverageProjectFilter{height:32px!important;font-size:12px!important;padding:5px 9px!important;margin:0!important;}
#onej-dispatch-root .onej-section-head{margin:0 0 10px!important;padding:0!important;align-items:center!important;}
#onej-dispatch-root .onej-section-head h3{font-size:18px!important;line-height:1.2!important;font-weight:750!important;letter-spacing:-.025em!important;margin:0!important;}
#onej-dispatch-root .onej-actions{margin:6px 0 8px!important;gap:7px!important;}
#onej-dispatch-root .onej-actions button{height:32px!important;padding:0 11px!important;border-radius:8px!important;font-size:11px!important;font-weight:700!important;letter-spacing:.01em!important;}

/* Worksheet: denser, calmer, more professional */
#onej-dispatch-root #worksheet .onej-calendar-sheet{border-radius:0!important;border:1px solid #dbe6ef!important;max-height:calc(100vh - 116px)!important;width:100%!important;background:#fff!important;box-shadow:none!important;}
#onej-dispatch-root #worksheet .onej-calendar-head,
#onej-dispatch-root #worksheet .onej-calendar-row{grid-template-columns:126px repeat(7,minmax(156px,1fr)) 42px!important;min-width:1260px!important;}
#onej-dispatch-root #worksheet .onej-calendar-head>div{padding:8px 6px!important;font-size:11px!important;font-weight:700!important;background:#f8fafc!important;color:#0f172a!important;border-color:#e5eaf0!important;}
#onej-dispatch-root #worksheet .onej-calendar-head span{font-size:10px!important;color:#64748b!important;font-weight:600!important;}
#onej-dispatch-root #worksheet .onej-calendar-row{border-bottom:4px solid #e2e8f0!important;background:#fff!important;}
#onej-dispatch-root #worksheet .onej-calendar-row:nth-child(even){background:#fbfdff!important;}
#onej-dispatch-root #worksheet .onej-employee-cell{background:#fff!important;border-right:1px solid #dbe6ef!important;padding:10px 8px!important;min-height:142px!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:6px!important;text-align:center!important;}
#onej-dispatch-root #worksheet .onej-worksheet-employee{display:flex!important;flex-direction:column!important;align-items:center!important;gap:5px!important;}
#onej-dispatch-root #worksheet .onej-employee-avatar{width:42px!important;height:42px!important;margin:0!important;border-width:2px!important;box-shadow:0 1px 3px rgba(15,23,42,.12)!important;}
#onej-dispatch-root #worksheet .onej-employee-cell strong{font-size:12px!important;line-height:1.15!important;font-weight:730!important;color:#0f172a!important;}
#onej-dispatch-root #worksheet .onej-employee-cell small{font-size:10px!important;color:#94a3b8!important;}
#onej-dispatch-root #worksheet .onej-employee-cell .onej-delete{height:22px!important;padding:0 6px!important;font-size:9px!important;border-radius:6px!important;margin-top:4px!important;}
#onej-dispatch-root #worksheet .onej-day-card-cell{padding:6px!important;min-height:142px!important;border-right:1px solid #e5eaf0!important;}
#onej-dispatch-root #worksheet .onej-total-cell{min-height:142px!important;padding:8px 4px!important;text-align:center!important;font-size:12px!important;border-right:0!important;background:#fbfdff!important;}
#onej-dispatch-root #worksheet .onej-period-block{border:1px solid #e8eef5!important;border-radius:8px!important;margin-bottom:5px!important;background:#fff!important;}
#onej-dispatch-root #worksheet .onej-period-title{height:20px!important;padding:4px 6px!important;font-size:9px!important;line-height:1!important;text-transform:none!important;color:#475569!important;background:#f8fafc!important;border-bottom:1px solid #eef2f7!important;}
#onej-dispatch-root #worksheet .onej-drop-zone{min-height:26px!important;padding:4px!important;}
#onej-dispatch-root #worksheet .onej-cell-item,
#onej-dispatch-root #worksheet .onej-assignment-chip{padding:7px!important;margin:0 0 5px!important;border-radius:9px!important;background:#fff!important;border:1px solid #dfe8f2!important;box-shadow:0 1px 2px rgba(15,23,42,.05)!important;cursor:pointer!important;min-height:0!important;}
#onej-dispatch-root #worksheet .onej-cell-item:hover{border-color:#b7c7d8!important;box-shadow:0 3px 10px rgba(15,23,42,.08)!important;transform:translateY(-1px)!important;}
#onej-dispatch-root #worksheet .onej-chip-project{font-size:11px!important;font-weight:720!important;line-height:1.18!important;color:#0f172a!important;margin-bottom:2px!important;}
#onej-dispatch-root #worksheet .onej-chip-meta{font-size:10px!important;font-weight:600!important;color:#334155!important;margin:0!important;line-height:1.15!important;}
#onej-dispatch-root #worksheet .onej-chip-status{display:flex!important;gap:3px!important;flex-wrap:wrap!important;margin-top:4px!important;align-items:center!important;}
#onej-dispatch-root #worksheet .onej-badge,
#onej-dispatch-root #worksheet .onej-chip-status .onej-badge,
#onej-dispatch-root #worksheet .onej-receipt-pill,
#onej-dispatch-root #worksheet .onej-overtime-alert,
#onej-dispatch-root #worksheet .onej-completed-label{
  display:inline-flex!important;align-items:center!important;height:18px!important;padding:0 6px!important;margin:0!important;border-radius:6px!important;font-size:9px!important;font-weight:700!important;line-height:1!important;letter-spacing:0!important;white-space:nowrap!important;
}
#onej-dispatch-root #worksheet .onej-route-link{display:inline!important;font-size:9px!important;line-height:1!important;margin:0!important;color:#64748b!important;text-decoration:none!important;}
#onej-dispatch-root #worksheet .onej-mini-actions{display:flex!important;gap:4px!important;margin-top:5px!important;align-items:center!important;}
#onej-dispatch-root #worksheet .onej-mini-actions button,
#onej-dispatch-root #worksheet .onej-small-btn,
#onej-dispatch-root #worksheet .onej-manual-complete{height:20px!important;min-height:20px!important;padding:0 6px!important;margin:0!important;border-radius:6px!important;font-size:9px!important;font-weight:750!important;line-height:1!important;}
#onej-dispatch-root #worksheet .onej-cell-item.onej-blocked{min-height:28px!important;height:auto!important;font-size:11px!important;color:#64748b!important;background:#f8fafc!important;align-items:center!important;padding:6px!important;box-shadow:none!important;}
#onej-dispatch-root #worksheet .onej-cell-item.onej-blocked strong{font-size:11px!important;font-weight:650!important;}
#onej-dispatch-root #worksheet .onej-assignment-completed{background:#f7fffa!important;border-color:#bbf7d0!important;}

/* Project coverage: more compact controls and grid */
#onej-dispatch-root #projectcoverage .onej-card{margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#f6f8fb!important;padding:12px 14px!important;}
#onej-dispatch-root #projectCoverageTable .onej-project-calendar{border-radius:0!important;max-height:calc(100vh - 116px)!important;}
#onej-dispatch-root #projectCoverageTable .onej-project-calendar-head>div{font-size:11px!important;padding:9px 6px!important;}
#onej-dispatch-root #projectCoverageTable .onej-project-name-cell{padding:12px 10px!important;}
#onej-dispatch-root #projectCoverageTable .onej-project-name-cell strong{font-size:13px!important;line-height:1.2!important;}
#onej-dispatch-root #projectCoverageTable .onej-coverage-day{padding:8px!important;}
#onej-dispatch-root #projectCoverageTable .onej-coverage-chip{font-size:11px!important;padding:8px!important;border-radius:9px!important;}

/* Modal must always be above WordPress/theme layers */
.onej-modal-backdrop{position:fixed!important;inset:0!important;background:rgba(15,23,42,.42)!important;z-index:999999!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:18px!important;}
.onej-modal-card{max-width:560px!important;width:min(560px,96vw)!important;background:#fff!important;border-radius:16px!important;border:1px solid #e5eaf0!important;box-shadow:0 24px 80px rgba(15,23,42,.24)!important;overflow:hidden!important;}
.onej-modal-header{display:flex!important;justify-content:space-between!important;align-items:center!important;padding:14px 16px!important;border-bottom:1px solid #eef2f7!important;background:#fbfdff!important;}
.onej-modal-header>div{display:flex!important;align-items:center!important;gap:10px!important;}
.onej-modal-header .onej-employee-avatar{width:38px!important;height:38px!important;margin:0!important;}
.onej-modal-header h3{font-size:16px!important;margin:0!important;line-height:1.2!important;color:#0f172a!important;}
.onej-modal-header p{font-size:12px!important;margin:2px 0 0!important;color:#64748b!important;}
.onej-modal-body{padding:14px 16px!important;}
.onej-modal-job{border:1px solid #e8eef5!important;border-radius:12px!important;padding:12px!important;margin-bottom:10px!important;background:#fff!important;}
.onej-modal-actions{display:flex!important;gap:6px!important;flex-wrap:wrap!important;margin-top:10px!important;}
.onej-modal-actions button,.onej-modal-close{height:30px!important;padding:0 9px!important;font-size:11px!important;border-radius:8px!important;}

/* v44.4.15 - fixed shell, compact header, cleaner worksheet density */
html body.onej-dispatch-fullwidth-active{
  margin:0!important;
  overflow-x:hidden!important;
  background:#f6f8fb!important;
}
#onej-dispatch-root{
  min-height:100vh!important;
  background:#f6f8fb!important;
}
#onej-dispatch-root .onej-app-shell{
  display:block!important;
  width:100vw!important;
  min-height:100vh!important;
}
#onej-dispatch-root .onej-sidebar{
  position:fixed!important;
  top:0!important;
  left:0!important;
  bottom:0!important;
  width:216px!important;
  height:100vh!important;
  overflow:hidden!important;
  padding:14px 10px!important;
  z-index:10000!important;
}
#onej-dispatch-root .onej-brand{
  padding:4px 7px 12px!important;
  margin-bottom:2px!important;
}
#onej-dispatch-root .onej-brand-mark{
  width:34px!important;
  height:34px!important;
  border-radius:10px!important;
  font-size:12px!important;
}
#onej-dispatch-root .onej-brand strong{
  font-size:15px!important;
  font-weight:750!important;
  letter-spacing:.04em!important;
}
#onej-dispatch-root .onej-brand span{
  font-size:8.5px!important;
  letter-spacing:.11em!important;
}
#onej-dispatch-root .onej-sidebar .onej-tabs{
  gap:4px!important;
}
#onej-dispatch-root .onej-sidebar .onej-tab{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif!important;
  font-size:12px!important;
  font-weight:600!important;
  height:34px!important;
  padding:0 10px!important;
  display:flex!important;
  align-items:center!important;
  border-radius:8px!important;
}
#onej-dispatch-root .onej-main{
  margin-left:216px!important;
  padding:0!important;
  min-width:0!important;
  width:calc(100vw - 216px)!important;
  overflow:visible!important;
}
#onej-dispatch-root .onej-topbar{
  position:fixed!important;
  top:0!important;
  left:216px!important;
  right:0!important;
  height:46px!important;
  min-height:46px!important;
  padding:0 16px!important;
  margin:0!important;
  z-index:9999!important;
  background:rgba(246,248,251,.96)!important;
  backdrop-filter:blur(12px)!important;
  border-bottom:1px solid #e3eaf2!important;
}
#onej-dispatch-root .onej-topbar h2{
  font-size:16px!important;
  line-height:1.1!important;
  font-weight:740!important;
  margin:0!important;
}
#onej-dispatch-root .onej-topbar p{
  font-size:10.5px!important;
  line-height:1.1!important;
  margin:2px 0 0!important;
}
#onej-dispatch-root .onej-page{
  padding-top:46px!important;
  min-height:100vh!important;
}
#onej-dispatch-root .onej-page>.onej-card{
  padding:10px 12px!important;
}
#onej-dispatch-root #worksheet .onej-card,
#onej-dispatch-root #projectcoverage .onej-card{
  min-height:calc(100vh - 46px)!important;
}
#onej-dispatch-root #worksheet .onej-section-head,
#onej-dispatch-root #projectcoverage .onej-section-head{
  min-height:34px!important;
  margin:0 0 6px!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
}
#onej-dispatch-root #worksheet .onej-section-head h3,
#onej-dispatch-root #projectcoverage .onej-section-head h3{
  font-size:18px!important;
  line-height:1!important;
  margin:0!important;
  font-weight:740!important;
}
#onej-dispatch-root #worksheet .onej-section-head .onej-inline,
#onej-dispatch-root #projectcoverage .onej-section-head .onej-inline{
  gap:6px!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
}
#onej-dispatch-root #worksheet .onej-actions{
  margin:4px 0 7px!important;
  gap:6px!important;
}
#onej-dispatch-root #worksheet .onej-actions button,
#onej-dispatch-root #projectcoverage .onej-actions button{
  height:30px!important;
  padding:0 10px!important;
  font-size:10.5px!important;
  border-radius:7px!important;
}
#onej-dispatch-root #prevWeek,#onej-dispatch-root #nextWeek,
#onej-dispatch-root #prevCoverageWeek,#onej-dispatch-root #nextCoverageWeek{
  width:30px!important;
  height:28px!important;
  min-width:30px!important;
  border-radius:7px!important;
}
#onej-dispatch-root #weekPicker,#onej-dispatch-root #coverageWeekPicker,
#onej-dispatch-root #worksheetEmployeeFilter,#onej-dispatch-root #coverageProjectFilter{
  height:30px!important;
  min-height:30px!important;
  font-size:11.5px!important;
  padding:4px 8px!important;
}
#onej-dispatch-root #worksheet .onej-calendar-sheet{
  height:calc(100vh - 128px)!important;
  max-height:calc(100vh - 128px)!important;
  border-radius:0!important;
}
#onej-dispatch-root #projectCoverageTable .onej-project-calendar,
#onej-dispatch-root #projectcoverage .onej-project-calendar{
  height:calc(100vh - 116px)!important;
  max-height:calc(100vh - 116px)!important;
  border-radius:0!important;
}
#onej-dispatch-root #worksheet .onej-calendar-head{
  top:0!important;
  z-index:50!important;
}
#onej-dispatch-root #worksheet .onej-calendar-row{
  border-bottom:5px solid #d9e3ee!important;
}
#onej-dispatch-root #worksheet .onej-employee-head,
#onej-dispatch-root #worksheet .onej-employee-cell{
  position:sticky!important;
  left:0!important;
  z-index:45!important;
  box-shadow:1px 0 0 #dbe6ef!important;
}
#onej-dispatch-root #worksheet .onej-employee-head{
  z-index:60!important;
}
#onej-dispatch-root #worksheet .onej-day-card-cell,
#onej-dispatch-root #worksheet .onej-employee-cell,
#onej-dispatch-root #worksheet .onej-total-cell{
  min-height:132px!important;
}
#onej-dispatch-root #worksheet .onej-assignment-chip,
#onej-dispatch-root #worksheet .onej-cell-item:not(.onej-blocked){
  padding:6px!important;
  border-radius:8px!important;
  box-shadow:0 1px 2px rgba(15,23,42,.045)!important;
}
#onej-dispatch-root #worksheet .onej-chip-project{
  font-size:10.5px!important;
  line-height:1.12!important;
  margin-bottom:1px!important;
}
#onej-dispatch-root #worksheet .onej-chip-meta{
  font-size:9.5px!important;
  line-height:1.1!important;
}
#onej-dispatch-root #worksheet .onej-chip-status{
  margin-top:3px!important;
  gap:2px!important;
}
#onej-dispatch-root #worksheet .onej-badge,
#onej-dispatch-root #worksheet .onej-chip-status .onej-badge,
#onej-dispatch-root #worksheet .onej-receipt-pill,
#onej-dispatch-root #worksheet .onej-overtime-alert,
#onej-dispatch-root #worksheet .onej-completed-label{
  height:15px!important;
  padding:0 5px!important;
  font-size:8.5px!important;
  border-radius:5px!important;
  line-height:15px!important;
}
#onej-dispatch-root #worksheet .onej-route-link{
  font-size:8.5px!important;
}
#onej-dispatch-root #worksheet .onej-mini-actions{
  margin-top:4px!important;
  gap:3px!important;
}
#onej-dispatch-root #worksheet .onej-mini-actions button,
#onej-dispatch-root #worksheet .onej-small-btn,
#onej-dispatch-root #worksheet .onej-manual-complete{
  height:18px!important;
  min-height:18px!important;
  padding:0 5px!important;
  font-size:8.5px!important;
  border-radius:5px!important;
}
@media(max-width:900px){
  #onej-dispatch-root .onej-sidebar{position:fixed!important;width:190px!important;transform:translateX(-190px);transition:transform .2s ease;}
  #onej-dispatch-root .onej-main{margin-left:0!important;width:100vw!important;}
  #onej-dispatch-root .onej-topbar{left:0!important;}
}
