:root {
  --ink: #202938;
  --muted: #606c7c;
  --nav: #172435;
  --teal: #0867ad;
  --line: #e0e6ed;
  --bg: #f4f6f9;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.sidebar {
  background: linear-gradient(165deg, #1c3046, #142030);
  border-right: 1px solid #26394e;
}
.brandmark {
  background: #0867ad;
  border-radius: 13px;
  letter-spacing: -1px;
}
.nav {
  border-radius: 12px;
  transition: background 0.15s ease;
}
.nav.active {
  background: #24496a;
}
.nav.active > span {
  color: #a8d9ff;
}
.nav:hover {
  background: #253c53;
}
.topbar {
  background: rgba(255, 255, 255, 0.94);
  padding-top: 24px;
  padding-bottom: 24px;
}
.eyebrow {
  color: #536c87;
}
.primary,
.secondary,
.icon-button {
  border-radius: 10px;
}
.primary {
  background: var(--teal);
  box-shadow: 0 2px 5px #0757921a;
}
.primary:hover {
  background: #075792;
}
.secondary {
  background: #fff;
  border-color: #d8e0e9;
  color: #2b4058;
}
.secondary:hover {
  background: #f1f6fb;
}
.text-button {
  color: var(--teal);
}
.panel,
.job-card,
.kpi {
  border-radius: 16px;
  box-shadow: 0 3px 15px #182c4310;
}
.panel {
  border-color: var(--line);
}
dialog {
  border-radius: 20px;
  box-shadow: 0 24px 90px #0c213844;
}
dialog::backdrop {
  background: #14263877;
  backdrop-filter: blur(3px);
}
input,
select,
textarea {
  border-radius: 9px;
  border-color: #ccd6e2;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #0867ad66;
  outline-offset: 1px;
}
.avatar {
  background: #e5f0fb;
  color: #145a91;
}
.connection-bar {
  background: #eef4fa;
  color: #304f6c;
  border-bottom: 1px solid var(--line);
}
.access-screen {
  border-radius: 20px;
  box-shadow: 0 20px 80px #192d4315;
}
.access-screen h2 {
  letter-spacing: -0.5px;
}
.report-author {
  background: #eff5fb;
  border: 1px solid #dce9f5;
  border-radius: 10px;
  padding: 10px 14px;
}
.summary-date {
  display: block;
  font-size: 14px;
  color: var(--muted);
}
.recent-picker {
  min-width: 130px;
}
.recent-picker select {
  display: block;
}
.backup-panel .muted {
  margin: 12px 0 0;
}
.admin-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-confirm input {
  width: auto;
}
.unplanned-card {
  gap: 12px;
  flex-wrap: wrap;
}
.hall-mode #content {
  padding: 18px 22px;
  min-height: 0;
  width: calc(100% - 8px);
  margin: 4px;
}
.hall-mode .hall-week {
  border-radius: 10px;
  box-shadow: none;
}
.hall-mode .hall-week h3 {
  background: #234665;
}
.hall-mode .hall-weeks {
  min-height: 0;
}
@media (max-width: 900px) {
  .topbar {
    padding: 18px;
  }
  .recent-picker {
    min-width: 120px;
  }
  .hall-mode #content {
    padding: 12px;
  }
  .report-summary {
    gap: 10px;
  }
  .section-heading {
    flex-wrap: wrap;
  }
}
@media print {
  #content {
    transform: none !important;
  }
  .report-author {
    background: none;
  }
}
.project-hours {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #dce4ef;
  border-radius: 16px;
  background: #f5f8fc;
}
.hours-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.hours-grid small {
  display: block;
  color: #526477;
}
.hours-grid strong {
  display: block;
  font-size: 24px;
  margin-top: 6px;
}
.project-hours .muted {
  font-size: 12px;
  line-height: 1.6;
}
@media (max-width: 500px) {
  .hours-grid {
    grid-template-columns: 1fr;
  }
}
.absence.training {
  background: #e9edff;
  color: #343f87;
  border-color: #c9d1f3;
}
.planning-bottom {
  grid-template-columns: 1fr;
}
.primary.danger-button,
.secondary.danger-button {
  background: #a94242;
  border-color: #a94242;
  color: #fff;
  box-shadow: 0 2px 5px #a942421a;
}
.primary.danger-button:hover,
.secondary.danger-button:hover {
  background: #8e3636;
  border-color: #8e3636;
}
.hall-mode {
  overflow: hidden;
}
.hall-mode #content {
  min-height: 0;
}
.hall-mode .hall-weeks {
  height: auto;
  min-height: 0;
  overflow: visible;
  grid-template-rows: auto auto;
}
.hall-mode .hall-week {
  overflow: visible;
}
.booking.absence-conflict,
.job-card.absence-conflict {
  border: 3px solid #b42318;
  box-shadow: 0 0 0 2px #fff1ed;
}
.absence-conflict-label {
  display: block !important;
  color: #b42318;
  font-size: 12px !important;
  font-weight: 700;
  margin-top: 4px;
  white-space: normal;
}
.hall-booking .absence-conflict-label {
  font-size: inherit !important;
}

.board:not(.month-board) .boardhead,
.board:not(.month-board) .resource-row {
  grid-template-columns: 180px repeat(7, minmax(130px, 1fr));
}
.planning-booking {
  position: relative;
  min-width: 0;
}
.planning-booking > .booking {
  width: 100%;
  padding-right: 28px;
}
.job-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  padding: 3px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  z-index: 1;
}
.job-delete svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.job-delete.armed {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
}
.job-delete:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
