* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f5f7;
  color: #222;
}

header {
  padding: 0rem 2rem;
  background: #1e293b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header h1 {
  margin: 0;
  font-size: 1.4rem;
}

header .brand a{color:white;}

.brand h1 {
  font-size: 1.3rem;
}

.nav-list {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  position: relative;
}

.submenu-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.submenu-toggle:hover,
.submenu-toggle:focus-visible {
  border-color: #93c5fd;
  outline: none;
}

.submenu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.65rem;
  padding: 0.45rem 0;
  list-style: none;
  min-width: 180px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 150ms ease, transform 150ms ease;
  z-index: 10;
}

.submenu li a {
  display: block;
  padding: 0.55rem 0.9rem;
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
}

.submenu li a:hover,
.submenu li a:focus-visible {
  background: rgba(148, 163, 184, 0.15);
  color: #fff;
}

.nav-item.open > .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.user-chip {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}
.logout-link {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
}
.logout-link:hover,
.logout-link:focus-visible {
  color: #fff;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  cursor: pointer;
}

.burger-lines {
  position: relative;
  width: 22px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

.burger-lines::before,
.burger-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 150ms ease;
}

.burger-lines::before {
  top: -7px;
}

.burger-lines::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .burger-lines {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .burger-lines::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .burger-lines::after {
  transform: translateY(-7px) rotate(-45deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.board-wrapper {
  padding: 1rem 1.5rem 2rem;
}

.board {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  overflow-x: auto;
}

.column {
  background: #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem;
  min-width: 260px;
  max-width: 360px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 120px);
}

.column h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.column-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.25rem;
  min-height: 40px;
}

.column-body.drag-over {
  outline: 2px dashed #2563eb;
  outline-offset: 2px;
}

.job-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.75rem 0.8rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
  cursor: grab;
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.87rem;
}

.job-card.account-customer {
  border: 3px solid #16a34a;
  
}

.job-card.dragging {
  opacity: 0.5;
  box-shadow: 0 0 0 2px #2563eb;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.job-number {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.job-edit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.job-edit-link:hover {
  background: #e5e7eb;
  color: #111827;
}

.job-edit-link:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.job-edit-link i {
  pointer-events: none;
}

.job-status-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.job-status-paid {
  background: #e0f2fe;
  color: #0f172a;
  border-color: #bae6fd;
}

.job-status-unpaid {
  background: #dc2626;
  color: #fff;
  border-color: #b91c1c;
}

.job-status-account {
  background: #e5e7eb;
  color: #111827;
  border-color: #cbd5e1;
}

.job-card.shake {
  animation: shake 0.3s ease;
}

@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

.job-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.2rem;
  gap: 0.5rem;
}

.job-label {
  font-weight: 600;
  flex: 0 0 42%;
}

.job-value {
  flex: 1;
  text-align: right;
}

.account-badge {
  display: inline-block;
  /*margin-left: 0.4rem;*/
  padding: 0.15rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  vertical-align: middle;
}

.job-ref {
  font-style: italic;
  margin-bottom: 0.4rem;
}

.number-plate {
  display: inline-block;
  background: #ffeb3b;
  border-radius: 4px;
  padding: 2px 8px;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid #000;
  font-family: "Arial Narrow", system-ui, sans-serif;
}

.date-today {
  background: #d4edda;
  color: #155724;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  display: inline-block;
}

.address-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.address-toggle {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #4b5563;
  background: #fff;
  font-size: 0.8rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-weight: 700;
}

.address-details {
  display: none;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  text-align: right;
  color: #374151;
}

.address-details.show {
  display: block;
}

.section-divider {
  margin: 0.35rem 0;
  border-top: 1px dashed rgba(15, 23, 42, 0.18);
}

.job-footer {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
}

.job-footer span {
  white-space: nowrap;
  color: white;
  padding: 5px;
  border-radius: 15px;
  font-size: 11px;
}

.job-footer span:first-of-type{
  background:black;

}
.job-footer span:nth-of-type(2){
  background:yellow;
  color: black !important;

}
.job-footer span:nth-of-type(3){
  background:green;

}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #0ea5e9;
  text-decoration: none;
  font-size: 1rem;
}

.icon-link:hover,
.icon-link:focus-visible {
  color: #38bdf8;
}

.swatch {
  display: inline-flex;
  width: 28px;
  height: 18px;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  border: 1px solid rgba(0,0,0,0.08);
  margin-right: 0.35rem;
}

.swatch.outline {
  color: transparent;
}

.job-type-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  min-width: 140px;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.08);
}

.sortable-table .drag-handle {
  width: 36px;
  text-align: center;
  color: #94a3b8;
}

.sortable-table .drag-handle i {
  cursor: grab;
}

.sortable-row.dragging {
  opacity: 0.6;
}

.filter-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 1rem;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.5rem;
  color: #334155;
  font-weight: 600;
}

.help-text .link {
  color: #0ea5e9;
}

.autocomplete-list {
  position: relative;
}

.autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  z-index: 20;
  max-height: 220px;
  overflow-y: auto;
}

.autocomplete-results button {
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.autocomplete-results button:hover,
.autocomplete-results button:focus {
  background: #f1f5f9;
}

.service-select-colored {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  font-weight: 700;
  min-width: 200px;
}

.service-select-colored option {
  font-weight: 700;
}

.vehicle-desc {
  display: none;
}

.vehicle-desc.is-visible {
  display: block;
}

.form-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.service-level-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.service-chip {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 0.45rem 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.service-chip.active {
  box-shadow: 0 0 0 2px #0ea5e9, 0 8px 16px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

.color-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
  gap: 8px;
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.color-swatch-option {
  position: relative;
  width: 100%;
  padding-top: 100%;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.color-swatch-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.color-swatch-option .swatch-fill {
  position: absolute;
  inset: 2px;
  border-radius: 6px;
}

.color-swatch-option input:checked + .swatch-fill {
  box-shadow: 0 0 0 2px #0ea5e9, 0 4px 10px rgba(0,0,0,0.16);
  transform: scale(0.98);
}

.color-swatch-option:hover .swatch-fill {
  box-shadow: 0 0 0 2px rgba(14,165,233,0.4);
}

.color-chip {
  width: 52px;
  height: 36px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.profit-summary {
  margin-top: 0.45rem;
  padding: 0.55rem 0.65rem;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: 0.6rem;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.profit-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.profit-label {
  color: #475569;
  font-weight: 600;
}

.profit-value {
  font-weight: 700;
}

.profit-value.sales {
  color: #0284c7;
}

.profit-value.costs {
  color: #ea580c;
}

.profit-value.profit {
  color: #0f9d58;
}


/* Status-based card background colours */
.job-card.status-not-started {
  background: #f8d7da;
}

.job-card.status-active {
  background: #fff3cd;
}

.job-card.status-complete {
  background: #d4edda;
}

.job-card.status-invoiced {
  background: #e2d9f3;
}

.job-card.status-paid {
  background: #d1ecf1;
}

/* Small screens */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .main-nav {
    width: 100%;
    display: none;
  }
  .main-nav.open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0.25rem;
    margin-top: 0.25rem;
  }
  .submenu-toggle {
    width: 100%;
    justify-content: space-between;
    text-align: left;
    border-color: rgba(255, 255, 255, 0.2);
  }
  .submenu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    display: none;
    margin-top: 0.2rem;
    background: #111827;
    box-shadow: none;
  }
  .nav-item.open > .submenu {
    display: block;
  }
  .submenu li a {
    padding-left: 1.1rem;
  }
  .user-chip {
    align-self: flex-end;
  }
  .job-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .job-value,
  .address-line {
    text-align: left;
  }
.board-wrapper {
    padding: 0.75rem;
  }
  .column {
    min-width: 240px;
  }
}

/* ---- Forms & layout ---- */
.page-content {
  padding: 2rem;
  max-width: 1080px;
  margin: 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #0ea5e9;
  color: #fff;
  border: 1px solid #0ea5e9;
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}
.button.secondary {
  background: transparent;
  color: #0ea5e9;
}
.button.tertiary {
  background: transparent;
  border-color: #cbd5e1;
  color: #0f172a;
}
.button:hover,
.button:focus-visible {
  filter: brightness(0.95);
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin: 0.75rem 0;
  border: 1px solid transparent;
}
.alert.error {
  background: #fef2f2;
  border-color: #fecdd3;
  color: #b91c1c;
}
.alert.success {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #166534;
}

.grid.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.stacked-form label {
  display: block;
  font-weight: 600;
  color: #0f172a;
  margin-top: 0.5rem;
}
.stacked-form input,
.stacked-form select {
  width: 50%;
  padding: 0.5rem 0.6rem;
  margin-top: 0.35rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 1rem;
}

.table {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.table-row,
.table-head {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1fr 0.7fr;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  align-items: center;
}
.table-head {
  background: #f8fafc;
  font-weight: 700;
  color: #0f172a;
}
.table-row:nth-child(odd) {
  background: #f8fafc;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
  font-size: 0.8rem;
  margin: 0 0 0.25rem 0;
}

.card h1 {
  margin: 0;
}

/* Login form styling */
#login form, #login h1{
  text-align: center;
  margin-top:10px;
}

#login input{

border-radius:10px;
padding:10px;

}




/*End Login Form styling*/

.subtitle {
  margin: 0.25rem 0 0;
  color: #475569;
}

.pill {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid transparent;
}

.pill-info {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.notice {
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin: 0.75rem 0;
  border: 1px solid;
}

.notice.success {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #15803d;
}

.notice.error {
  background: #fef2f2;
  border-color: #fecdd3;
  color: #b91c1c;
}

.notice ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-section {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.6), rgba(255, 255, 255, 0.9));
}

.form-section-header {
  margin-bottom: 0.75rem;
}

.form-section-header h2 {
  margin: 0 0 0.1rem 0;
}

.form-section-header p {
  margin: 0;
  color: #475569;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

.grid.three-col {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.datetime-inputs {
  display: flex;
  gap: 0.5rem;
}

.datetime-inputs input[type="date"],
.datetime-inputs input[type="time"] {
  flex: 1;
}

.form-field label {
  font-weight: 700;
  color: #0f172a;
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  background: #fff;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.checkbox-field {
  justify-content: flex-end;
}

.checkbox-field input[type="checkbox"] {
  margin-right: 0.5rem;
}

.help-text {
  margin: 0.5rem 0 0;
  color: #475569;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: center;
}

form.login{
  text-align:center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 10px;
  padding: 0.65rem 1.2rem;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.btn.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
}

.btn.ghost {
  background: #fff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.btn.ghost:hover {
  border-color: #94a3b8;
}

.search-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.search-bar input[type="text"] {
  flex: 1;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
}

.table-wrapper {
  width: 100%;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.data-table th,
.data-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.data-table thead {
  background: #f8fafc;
}

.data-table.compact th,
.data-table.compact td {
  padding: 0.5rem 0.75rem;
}

.text-right {
  text-align: right !important;
}

.status-pill {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

.status-pill.status-active {
  background: #ecfdf3;
  color: #15803d;
}

.status-pill.status-inactive {
  background: #f8fafc;
  color: #475569;
  border: 1px dashed #cbd5e1;
}

.column-body[data-has-jobs="1"] .column-empty-message {
  display: none;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.pagination-info {
  font-size: 0.95rem;
  color: #475569;
}

.pagination-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.pagination-page-count {
  font-weight: 600;
  color: #0f172a;
}

.calendar-header {
  flex-direction: column;
  gap: 1rem;
}

.calendar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
}

.calendar-view-toggle .btn {
  margin-right: 0.35rem;
}

.calendar-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.calendar-label {
  font-weight: 600;
  font-size: 1rem;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  table-layout: fixed;
}

.calendar-table th,
.calendar-table td {
  border: 1px solid #e5e7eb;
  vertical-align: top;
  padding: 0.35rem;
}

.calendar-table thead th {
  background: #f8fafc;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.calendar-day {
  min-height: 110px;
  position: relative;
}

.calendar-day .day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.day-number {
  font-weight: 600;
}

.muted-day {
  background: #f9fafb;
  color: #94a3b8;
}

.active-day {
  background: #fff;
}

.calendar-jobs {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.calendar-jobs.mini {
  gap: 0.15rem;
}

.calendar-job-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.calendar-job-chip small {
  font-size: 0.65rem;
  font-weight: 500;
}

.today-pill {
  background: #0ea5e9;
  color: #fff;
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 20px;
}

.more-indicator {
  display: inline-flex;
  font-size: 0.7rem;
  color: #475569;
}

.empty-placeholder {
  font-size: 0.75rem;
}

.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.month-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.month-card-header {
  padding: 0.6rem 0.75rem;
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.calendar-table.mini td {
  min-height: 60px;
  padding: 0.2rem;
}

.calendar-table.week-view td {
  min-height: 200px;
}
