:root {
  --teal: #18474e;
  --teal-2: #23636b;
  --green: #21b24b;
  --green-soft: #e8f8ee;
  --ink: #102226;
  --muted: #62747a;
  --line: #d9e5e4;
  --bg: #f4f8f7;
  --surface: #ffffff;
  --orange: #f59e0b;
  --red: #dc2626;
  --blue: #2563eb;
  --gray: #64748b;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Arial,
    Helvetica Neue,
    Helvetica,
    sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

img {
  max-width: 100%;
}

.cl-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--teal);
  font-size: 1.2rem;
  font-weight: 800;
}

.cl-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  background:
    linear-gradient(125deg, rgba(24, 71, 78, 0.96), rgba(24, 71, 78, 0.7)),
    url("https://images.unsplash.com/photo-1625246333195-78d9c38ad449?auto=format&fit=crop&w=1800&q=80") center / cover;
  padding: clamp(20px, 4vw, 56px);
  gap: 24px;
}

.cl-login-panel,
.cl-login-art {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 80px rgba(5, 28, 31, 0.32);
}

.cl-login-panel {
  align-self: center;
  max-width: 720px;
  padding: clamp(24px, 4vw, 44px);
}

.cl-login-art {
  display: grid;
  align-items: end;
  min-height: 560px;
  padding: 34px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(24, 71, 78, 0.1), rgba(24, 71, 78, 0.92)),
    url("https://images.unsplash.com/photo-1599644938391-5f29249eac03?auto=format&fit=crop&w=1400&q=80") center / cover;
}

.cl-login-art > div {
  max-width: 420px;
  display: grid;
  gap: 10px;
  font-size: 1.1rem;
}

.cl-login-art strong {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.98;
}

.cl-login-copy h1,
.cl-hero-panel h1,
.cl-section-head h1,
.cl-supervisor-summary h1 {
  margin: 0;
  color: var(--teal);
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: 0;
  line-height: 1;
}

.cl-login-copy p,
.cl-section-head p,
.cl-hero-panel p,
.cl-supervisor-summary p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.cl-welcome-copy h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
}

.cl-kicker {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(33, 178, 75, 0.35);
  border-radius: 8px;
  padding: 0 10px;
  margin: 22px 0 12px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cl-feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.cl-feature-strip span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--teal);
  background: #fff;
  font-weight: 900;
}

.cl-welcome-art {
  background:
    linear-gradient(180deg, rgba(24, 71, 78, 0.08), rgba(24, 71, 78, 0.94)),
    url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=1400&q=80") center / cover;
}

.cl-welcome-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.cl-welcome-list li {
  border-left: 4px solid var(--green);
  padding: 8px 0 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.cl-login-form {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.cl-brand {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--teal);
}

.cl-brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 8px 14px rgba(8, 69, 89, 0.18));
}

.cl-brand strong,
.cl-brand span {
  display: block;
}

.cl-brand strong {
  color: var(--teal);
  font-size: 1.08rem;
}

.cl-brand span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cl-brand-fallback {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-weight: 900;
}

.cl-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
}

.cl-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 24px;
  padding: 22px;
  background: #fff;
  border-right: 1px solid var(--line);
  z-index: 30;
}

.cl-sidebar nav {
  display: grid;
  align-content: start;
  gap: 6px;
  overflow: auto;
}

.cl-sidebar button,
.cl-menu-button,
.cl-language,
.cl-logout {
  border: 0;
  background: transparent;
}

.cl-sidebar nav button {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 800;
  text-align: left;
}

.cl-sidebar nav button:hover,
.cl-sidebar nav button.active {
  color: var(--teal);
  background: var(--green-soft);
}

.cl-main {
  min-width: 0;
}

.cl-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px clamp(18px, 3vw, 32px);
  background: rgba(244, 248, 247, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.cl-menu-button {
  display: none;
  color: var(--teal);
}

.cl-user-chip {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  font-weight: 800;
}

.cl-user-chip strong {
  color: var(--green);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.cl-top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cl-top-actions select,
.cl-top-actions button,
.cl-language,
.cl-logout {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--teal);
  font-weight: 800;
}

.cl-language,
.cl-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cl-content {
  padding: clamp(18px, 3vw, 34px);
}

.cl-save-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #fed7aa;
  padding: 12px clamp(18px, 3vw, 32px);
  color: #9a3412;
  background: #fff7ed;
  font-weight: 900;
}

.cl-stack {
  display: grid;
  gap: 20px;
}

.cl-hero-panel,
.cl-panel,
.cl-supervisor-summary,
.cl-mini-panel,
.cl-job-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(16, 34, 38, 0.07);
}

.cl-hero-panel,
.cl-supervisor-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 4vw, 36px);
  background:
    linear-gradient(120deg, rgba(232, 248, 238, 0.95), rgba(255, 255, 255, 0.95)),
    radial-gradient(circle at 90% 20%, rgba(33, 178, 75, 0.22), transparent 35%);
}

.cl-hero-date {
  min-width: 220px;
  border-radius: 8px;
  padding: 18px;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
  text-align: center;
  text-transform: capitalize;
}

.cl-panel {
  padding: clamp(18px, 2.5vw, 28px);
}

.cl-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.cl-section-head h1,
.cl-section-head h2 {
  margin: 0;
  color: var(--teal);
}

.cl-section-head h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.cl-stats-grid,
.cl-report-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 14px;
}

.cl-report-tabs {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  margin: 18px 0;
}

.cl-stat {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.cl-stat svg {
  color: var(--teal);
}

.cl-stat strong {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}

.cl-stat span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.cl-stat.green svg,
.cl-stat.green strong {
  color: var(--green);
}

.cl-stat.teal svg,
.cl-stat.teal strong {
  color: var(--teal-2);
}

.cl-stat.orange svg,
.cl-stat.orange strong {
  color: var(--orange);
}

.cl-stat.red svg,
.cl-stat.red strong {
  color: var(--red);
}

.cl-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
  line-height: 1;
}

.cl-button-primary {
  background: var(--green);
}

.cl-button-secondary {
  color: var(--teal);
  background: #fff;
  border-color: var(--line);
}

.cl-button-danger {
  background: var(--red);
}

.cl-button-ghost {
  color: var(--teal);
  background: transparent;
  border-color: transparent;
}

.cl-button-dark {
  background: var(--teal);
}

.cl-field {
  display: grid;
  gap: 7px;
}

.cl-field > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cl-field input,
.cl-field select,
.cl-field textarea,
.cl-inline-form input,
.cl-filter-grid input,
.cl-filter-grid select,
.cl-extra-actions input,
.cl-extra-actions select,
.cl-skip-row input,
.cl-skip-row select,
.cl-photo-compose input,
.cl-top-actions select,
.cl-info-card input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
}

.cl-field textarea,
.cl-note-compose textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

.cl-form-grid,
.cl-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.cl-form-grid .cl-wide,
.cl-wide {
  grid-column: 1 / -1;
}

.cl-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cl-check {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  font-weight: 800;
}

.cl-truck-grid,
.cl-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cl-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.cl-truck-column {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f9fbfb;
}

.cl-truck-column h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--teal);
}

.cl-truck-list {
  display: grid;
  gap: 10px;
}

.cl-job-card {
  width: 100%;
  min-height: 154px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 20px rgba(16, 34, 38, 0.05);
}

.cl-job-card.compact {
  min-height: 118px;
}

.cl-job-card:hover {
  border-color: var(--green);
  transform: translateY(-1px);
}

.cl-job-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.cl-job-card strong {
  font-size: 1.02rem;
}

.cl-job-card span,
.cl-job-card small {
  color: var(--muted);
  line-height: 1.35;
}

.cl-route-pill {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  min-height: 30px;
  border-radius: 8px;
  color: #fff !important;
  background: var(--teal);
  font-weight: 900;
}

.cl-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 8px;
  padding: 0 10px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.cl-status-scheduled {
  background: var(--blue);
}

.cl-status-in-progress {
  background: var(--green);
}

.cl-status-completed {
  background: var(--teal-2);
}

.cl-status-needs-review {
  background: var(--orange);
  color: #2d1c00;
}

.cl-status-skipped {
  background: var(--red);
}

.cl-status-closed {
  background: var(--gray);
}

.cl-info-card {
  min-height: 160px;
  display: grid;
  align-content: start;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.cl-info-card strong {
  color: var(--teal);
  font-size: 1.08rem;
}

.cl-info-card span,
.cl-info-card p,
.cl-info-card small,
.cl-help {
  color: var(--muted);
  line-height: 1.45;
}

.cl-empty {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

.cl-empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 26px;
  margin: 14px 0;
  color: var(--teal);
  background: #fff;
  text-align: center;
}

.cl-empty-state strong {
  font-size: 1.1rem;
}

.cl-empty-state p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.cl-empty-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 14px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.cl-form-error {
  margin: 0;
  border: 1px solid rgba(220, 38, 38, 0.28);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--red);
  background: #fff1f1;
  font-weight: 800;
}

.cl-calendar-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 18px;
}

.cl-calendar-strip button {
  min-width: 132px;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--teal);
}

.cl-calendar-strip button.active {
  border-color: var(--green);
  background: var(--green-soft);
}

.cl-calendar-strip strong,
.cl-calendar-strip span {
  display: block;
}

.cl-calendar-strip span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.cl-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(104px, 1fr));
  gap: 8px;
}

.cl-month-head {
  color: var(--teal);
  font-size: 0.78rem;
  text-align: center;
  text-transform: uppercase;
}

.cl-month-day {
  min-height: 128px;
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.cl-month-day.active {
  border-color: var(--green);
  box-shadow: inset 0 0 0 2px rgba(33, 178, 75, 0.18);
}

.cl-month-day.muted {
  background: #f7faf9;
  color: var(--muted);
}

.cl-month-day > span {
  font-weight: 900;
}

.cl-cal-dot {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  padding: 4px 6px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cl-input-with-icon,
.cl-inline-input {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
}

.cl-input-with-icon input,
.cl-inline-input input {
  border: 0 !important;
  padding: 0 !important;
}

.cl-inline-input {
  grid-template-columns: 1fr auto;
  padding-right: 4px;
}

.cl-inline-input button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--teal);
  background: var(--green-soft);
  font-weight: 900;
}

.cl-two-column,
.cl-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cl-options-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 18px;
}

.cl-soft-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.cl-soft-badge.green {
  color: #0c6127;
  background: var(--green-soft);
}

.cl-soft-badge.gray {
  color: var(--gray);
  background: #eef2f3;
}

.cl-soft-badge.orange {
  color: #7a4300;
  background: #fff7db;
}

.cl-soft-badge.red {
  color: var(--red);
  background: #fff1f1;
}

.cl-link-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--teal);
  background: #fff;
  font-weight: 900;
}

.cl-service-dot {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-radius: 99px;
  margin-right: 6px;
}

.cl-alert-text.expired {
  color: var(--red);
}

.cl-alert-text.soon {
  color: var(--orange);
}

.cl-notes-admin {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.cl-nav-group {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.cl-sidebar nav button.cl-nav-heading,
.cl-nav-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  width: 100%;
  padding: 8px 10px 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  border-radius: 8px;
}

.cl-sidebar nav button.cl-nav-heading:hover {
  color: var(--teal);
  background: transparent;
}

.cl-nav-heading svg {
  transform: rotate(-90deg);
  transition: transform 0.16s ease;
}

.cl-nav-heading svg.open {
  transform: rotate(0deg);
}

.cl-notification-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  background: var(--orange);
  font-weight: 900;
}

.cl-photo-manager {
  display: grid;
  gap: 14px;
}

.cl-section-head.compact {
  align-items: center;
  margin-bottom: 0;
}

.cl-photo-button {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.cl-photo-grid textarea {
  width: 100%;
  min-height: 62px;
  resize: vertical;
}

.cl-photo-grid figure small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.cl-photo-grid figure button:not(.cl-photo-button) {
  margin-top: 6px;
  border: 0;
  color: var(--red);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.cl-photo-card-wide {
  grid-column: 1 / -1;
}

.cl-photo-preview {
  position: relative;
  text-align: center;
}

.cl-photo-preview img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
}

.cl-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  color: var(--teal);
  background: #fff;
  cursor: pointer;
}

.cl-reminder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.cl-truck-portal {
  display: grid;
  gap: 18px;
}

.cl-portal-hero,
.cl-field-detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 8px;
  padding: clamp(20px, 3vw, 32px);
  color: #fff;
  background: linear-gradient(120deg, var(--teal), #0e3035);
}

.cl-portal-hero .cl-brand strong,
.cl-portal-hero .cl-brand span {
  color: #fff;
}

.cl-portal-hero h1,
.cl-field-detail-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.cl-portal-hero p,
.cl-field-detail-hero p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.cl-portal-truck {
  border-radius: 8px;
  padding: 16px 18px;
  background: var(--green);
  font-size: 1.25rem;
  font-weight: 900;
}

.cl-portal-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
}

.cl-portal-summary article,
.cl-portal-crew span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.cl-portal-summary article {
  display: grid;
  gap: 8px;
}

.cl-portal-summary strong {
  color: var(--teal);
  font-size: 1.18rem;
}

.cl-portal-summary span {
  color: var(--muted);
}

.cl-portal-crew {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cl-portal-crew span {
  color: var(--teal);
  font-weight: 900;
}

.cl-field-route-list {
  display: grid;
  gap: 14px;
}

.cl-field-card {
  width: 100%;
  min-height: 156px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) minmax(190px, 260px);
  gap: 16px;
  align-items: stretch;
  border: 2px solid var(--line);
  border-left: 10px solid var(--blue);
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.cl-field-card.timer-running {
  border-left-color: var(--green);
}

.cl-field-card.timer-paused {
  border-left-color: var(--orange);
}

.cl-field-card.timer-stopped {
  border-left-color: var(--red);
}

.cl-field-card.timer-completed {
  border-left-color: var(--teal);
}

.cl-field-card-route {
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-size: 1.7rem;
  font-weight: 900;
}

.cl-field-card-main,
.cl-field-card-side {
  display: grid;
  align-content: center;
  gap: 8px;
}

.cl-field-card-main h2 {
  margin: 0;
  color: var(--teal);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.cl-field-card-main p,
.cl-field-card-side span,
.cl-field-card-side small {
  margin: 0;
  color: var(--muted);
}

.cl-field-card-top,
.cl-field-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.cl-field-chips span {
  border-radius: 8px;
  padding: 6px 9px;
  color: var(--teal);
  background: var(--green-soft);
  font-weight: 900;
}

.cl-field-card-side strong {
  color: var(--green);
  font-size: 1.2rem;
}

.cl-field-timer-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 14px;
}

.cl-field-timer-panel > div {
  border-radius: 8px;
  padding: 20px;
  color: #fff;
  background: var(--teal);
}

.cl-field-timer-panel span,
.cl-field-timer-panel strong {
  display: block;
}

.cl-field-timer-panel strong {
  margin-top: 6px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.cl-field-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
}

.cl-field-actions .cl-button {
  min-height: 74px;
  font-size: 1.1rem;
}

.cl-locked-banner,
.cl-stopped-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 900;
}

.cl-locked-banner {
  color: #fff;
  background: var(--gray);
}

.cl-stopped-banner {
  color: #4a2500;
  background: #fff1c7;
}

.cl-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 34, 38, 0.48);
}

.cl-modal {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(16, 34, 38, 0.32);
}

.cl-modal h2 {
  margin: 0 0 12px;
  color: var(--teal);
}

@media (max-width: 1180px) {
  .cl-field-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .cl-field-card-side {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .cl-portal-hero,
  .cl-field-detail-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .cl-portal-summary,
  .cl-field-timer-panel,
  .cl-field-actions,
  .cl-reminder-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .cl-portal-summary,
  .cl-field-timer-panel,
  .cl-field-actions,
  .cl-reminder-grid,
  .cl-field-card {
    grid-template-columns: 1fr;
  }

  .cl-field-card-route {
    min-height: 58px;
  }
}

.cl-spaced-top {
  margin-top: 16px;
}

.cl-route-edit {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.cl-route-controls {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
}

.cl-route-controls select,
.cl-route-controls button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--teal);
  font-weight: 800;
}

.cl-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}

th {
  color: var(--teal);
  background: #f1f7f4;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

td small {
  color: var(--muted);
}

.cl-table-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.cl-table-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--teal);
  font-weight: 800;
}

.cl-inline-form,
.cl-export-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.cl-link-button {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-weight: 900;
  text-decoration: underline;
  width: fit-content;
}

.cl-business-logo-preview {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.cl-help-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: start end;
  padding: 86px 28px 28px;
  background: rgba(16, 34, 38, 0.28);
}

.cl-help-popover {
  width: min(420px, calc(100vw - 36px));
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(16, 34, 38, 0.24);
}

.cl-help-popover strong {
  color: var(--teal);
  font-size: 1.25rem;
}

.cl-help-close {
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.cl-help-section {
  scroll-margin-top: 18px;
}

.cl-help-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.cl-help-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfefd;
}

.cl-help-grid h3 {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 1rem;
}

.cl-help-grid dl,
.cl-help-grid ol,
.cl-help-grid ul,
.cl-help-steps {
  margin: 0;
  padding-left: 20px;
}

.cl-help-grid dl {
  display: grid;
  gap: 12px;
  padding-left: 0;
}

.cl-help-grid dt {
  color: var(--ink);
  font-weight: 900;
}

.cl-help-grid dd {
  margin: 3px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.cl-help-grid li,
.cl-help-steps li {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.cl-route-page {
  display: grid;
  gap: 18px;
}

.cl-route-layout {
  display: grid;
  grid-template-columns: minmax(270px, 360px) minmax(0, 1fr);
  gap: 18px;
}

.cl-route-list {
  display: grid;
  align-content: start;
  gap: 12px;
}

.cl-mini-panel,
.cl-job-detail {
  padding: 16px;
}

.cl-mini-panel h2,
.cl-job-detail h2 {
  margin: 0 0 12px;
  color: var(--teal);
}

.cl-crew-row {
  min-height: 42px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gray);
}

.dot.green {
  background: var(--green);
}

.cl-job-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cl-job-detail-head h2 {
  margin-top: 12px;
  font-size: clamp(1.45rem, 2.7vw, 2.6rem);
}

.cl-job-detail-head p {
  color: var(--muted);
  margin: 0;
}

.cl-lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray);
  font-weight: 900;
}

.cl-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.cl-detail-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f9fbfb;
}

.cl-detail-grid strong,
.cl-detail-grid span {
  display: block;
}

.cl-detail-grid strong {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.cl-detail-grid span {
  margin-top: 4px;
  color: var(--teal);
  font-weight: 900;
}

.cl-instructions {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.cl-instructions h3,
.cl-notes-photos h3 {
  margin: 0 0 8px;
  color: var(--teal);
}

.cl-instructions p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55;
}

.cl-action-bar,
.cl-skip-row,
.cl-extra-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.cl-skip-row {
  display: grid;
  grid-template-columns: 220px minmax(180px, 1fr);
}

.cl-extra-prompt {
  border: 2px solid var(--orange);
  border-radius: 8px;
  padding: 14px;
  background: #fff8e8;
}

.cl-extra-prompt .cl-section-head {
  margin-bottom: 8px;
}

.cl-extra-prompt .cl-section-head button {
  border: 0;
  background: transparent;
}

.cl-extra-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
}

.cl-notes-photos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.cl-note-compose,
.cl-photo-compose {
  display: grid;
  gap: 10px;
}

.cl-note-compose textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cl-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
  background: #fff;
}

.cl-note p {
  margin: 6px 0 0;
  color: var(--muted);
}

.cl-upload {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed var(--teal);
  border-radius: 8px;
  color: var(--teal);
  background: var(--green-soft);
  font-weight: 900;
}

.cl-upload input {
  display: none;
}

.cl-upload.disabled {
  opacity: 0.5;
}

.cl-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.cl-photo-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.cl-photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cl-photo-grid figcaption {
  padding: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.cl-import-box {
  display: grid;
  place-items: center;
  gap: 10px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 18px;
  color: var(--teal);
  background: #f9fbfb;
  text-align: center;
}

.cl-import-box input {
  max-width: 320px;
}

@media (max-width: 1180px) {
  .cl-stats-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .cl-truck-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cl-form-grid,
  .cl-filter-grid,
  .cl-extra-actions,
  .cl-month-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .cl-month-head {
    display: none;
  }
}

@media (max-width: 860px) {
  .cl-login,
  .cl-app,
  .cl-route-layout,
  .cl-notes-photos {
    grid-template-columns: 1fr;
  }

  .cl-login-art {
    display: none;
  }

  .cl-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, 320px);
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: 20px 0 50px rgba(16, 34, 38, 0.18);
  }

  .cl-sidebar.open {
    transform: translateX(0);
  }

  .cl-menu-button {
    min-width: 44px;
    min-height: 44px;
    display: inline-grid;
    place-items: center;
  }

  .cl-topbar,
  .cl-hero-panel,
  .cl-supervisor-summary,
  .cl-section-head,
  .cl-job-detail-head {
    align-items: stretch;
    flex-direction: column;
  }

  .cl-top-actions {
    width: 100%;
    margin-left: 0;
  }

  .cl-top-actions select,
  .cl-top-actions button {
    flex: 1;
  }

  .cl-stats-grid,
  .cl-report-tabs,
  .cl-truck-grid,
  .cl-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cl-form-grid,
  .cl-filter-grid,
  .cl-skip-row,
  .cl-extra-actions,
  .cl-two-column,
  .cl-month-grid,
  .cl-help-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .cl-stats-grid,
  .cl-report-tabs,
  .cl-truck-grid,
  .cl-detail-grid {
    grid-template-columns: 1fr;
  }

  .cl-content {
    padding: 14px;
  }

  .cl-login {
    padding: 14px;
  }
}
