.nav-link {
  display: inline-flex;
  align-items: center;
  border-radius: 0.375rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(51 65 85);
  white-space: nowrap;
}

.nav-link:hover {
  background: rgb(248 250 252);
  color: rgb(2 6 23);
}

.nav-link-active {
  background: rgb(15 23 42);
  color: white;
}

.nav-link-active:hover {
  background: rgb(15 23 42);
  color: white;
}

.nav-link-muted {
  color: rgb(148 163 184);
  cursor: default;
}

.nav-link-muted:hover {
  background: transparent;
  color: rgb(148 163 184);
}

.status-button {
  border: 1px solid rgb(203 213 225);
  border-radius: 0.375rem;
  color: rgb(51 65 85);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
  padding: 0.35rem 0.55rem;
}

.status-button:hover {
  background: rgb(248 250 252);
}

.status-button:disabled,
.status-button-active {
  background: rgb(15 23 42);
  border-color: rgb(15 23 42);
  color: white;
  cursor: default;
}

.errorlist {
  color: rgb(190 18 60);
  font-size: 0.875rem;
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
}

.tactical-ui {
  background:
    linear-gradient(rgba(114, 150, 88, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 150, 88, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(205, 166, 76, 0.12), transparent 38%),
    #050805;
  background-size: 32px 32px, 32px 32px, 100% 100%, auto;
  color: #e8f2df;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tactical-ui aside {
  background: rgba(10, 18, 11, 0.96);
  border-color: rgba(125, 154, 93, 0.28);
}

.tactical-ui main {
  background: transparent;
}

.tactical-ui .bg-white,
.tactical-ui .bg-slate-50 {
  background-color: rgba(11, 20, 12, 0.92);
}

.tactical-ui .bg-slate-100,
.tactical-ui .bg-slate-200 {
  background-color: rgba(36, 51, 31, 0.88);
}

.tactical-ui .bg-blue-50 {
  background-color: rgba(33, 63, 67, 0.9);
}

.tactical-ui .bg-emerald-50 {
  background-color: rgba(21, 63, 38, 0.9);
}

.tactical-ui .bg-amber-50 {
  background-color: rgba(74, 54, 24, 0.92);
}

.tactical-ui .bg-rose-50 {
  background-color: rgba(70, 30, 30, 0.92);
}

.tactical-ui .border,
.tactical-ui .border-slate-100,
.tactical-ui .border-slate-200,
.tactical-ui .border-slate-300 {
  border-color: rgba(119, 148, 88, 0.34);
}

.tactical-ui .border-blue-200 {
  border-color: rgba(68, 137, 151, 0.55);
}

.tactical-ui .border-amber-200 {
  border-color: rgba(205, 166, 76, 0.55);
}

.tactical-ui .border-rose-200,
.tactical-ui .border-rose-300 {
  border-color: rgba(210, 90, 80, 0.55);
}

.tactical-ui .shadow-sm {
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.tactical-ui .text-slate-950,
.tactical-ui .text-slate-900,
.tactical-ui .text-slate-800 {
  color: #f7ffe9;
}

.tactical-ui .text-slate-700,
.tactical-ui .text-slate-600 {
  color: #e1edd7;
}

.tactical-ui .text-slate-500,
.tactical-ui .text-slate-400 {
  color: #c4d2b9;
}

.tactical-ui .text-blue-700,
.tactical-ui .text-blue-900 {
  color: #8fd5df;
}

.tactical-ui .text-emerald-700 {
  color: #9ee0a8;
}

.tactical-ui .text-amber-800,
.tactical-ui .text-amber-900,
.tactical-ui .text-orange-700 {
  color: #f2cd78;
}

.tactical-ui .text-rose-700,
.tactical-ui .text-rose-900,
.tactical-ui .text-red-700 {
  color: #ff9b8f;
}

.tactical-ui .bg-slate-950 {
  background-color: #b7903f;
  color: #071009;
}

.tactical-ui .bg-slate-950:hover {
  background-color: #d3aa55;
}

.tactical-ui input,
.tactical-ui select,
.tactical-ui textarea {
  background-color: rgba(4, 10, 5, 0.92) !important;
  border-color: rgba(139, 170, 102, 0.45) !important;
  color: #e8f3dc !important;
}

.tactical-ui option {
  background-color: #071009;
  color: #f1f8e8;
}

.system-checkbox-list {
  display: grid;
  gap: 0.45rem;
  max-height: 15rem;
  overflow: auto;
  padding: 0.65rem;
}

.system-checkbox-list label {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  line-height: 1.25rem;
}

.system-checkbox-list input {
  flex: 0 0 auto;
}

.tactical-ui label,
.tactical-ui th,
.tactical-ui td,
.tactical-ui p,
.tactical-ui li {
  color: inherit;
}

.tactical-ui .rounded-md.border:not(.nav-link):not(.status-button) {
  color: #e1edd7;
}

.tactical-ui .rounded-md.border:not(.nav-link):not(.status-button):hover {
  background: rgba(53, 74, 39, 0.74);
  color: #f7ffe9;
}

.tactical-ui input::placeholder,
.tactical-ui textarea::placeholder {
  color: #829276;
}

.tactical-ui input:focus,
.tactical-ui select:focus,
.tactical-ui textarea:focus {
  border-color: #d0a64f !important;
  box-shadow: 0 0 0 2px rgba(208, 166, 79, 0.25) !important;
}

.tactical-ui table thead {
  background: rgba(20, 35, 19, 0.96);
}

.tactical-ui table tbody tr:hover {
  background: rgba(31, 49, 27, 0.62);
}

.tactical-ui h1,
.tactical-ui h2,
.tactical-ui h3 {
  text-transform: uppercase;
}

.tactical-ui .nav-link {
  color: #b8c9ae;
}

.tactical-ui .nav-link:hover {
  background: rgba(62, 84, 48, 0.42);
  color: #edf7df;
}

.tactical-ui .nav-link-active {
  background: linear-gradient(90deg, rgba(183, 144, 63, 0.95), rgba(111, 139, 75, 0.95));
  color: #071009;
}

.tactical-ui .status-button {
  background: rgba(7, 14, 8, 0.85);
  border-color: rgba(139, 170, 102, 0.42);
  color: #c6d7bc;
}

.tactical-ui .status-button:hover {
  background: rgba(39, 57, 32, 0.95);
}

.tactical-ui .status-button:disabled,
.tactical-ui .status-button-active {
  background: #b7903f;
  border-color: #b7903f;
  color: #071009;
}

.tactical-ui .ring-slate-200,
.tactical-ui .ring-blue-200,
.tactical-ui .ring-emerald-200,
.tactical-ui .ring-amber-200,
.tactical-ui .ring-rose-200 {
  --tw-ring-color: rgba(183, 144, 63, 0.36);
}

.mission-timeline {
  --day-width: 26px;
  scroll-behavior: smooth;
}

.timeline-inner {
  min-width: calc(190px + (var(--timeline-days, 182) * var(--day-width)));
}

.day-header {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: var(--day-width);
  min-height: 72px;
}

.timeline-row {
  min-height: 44px;
}

.timeline-day-cell {
  pointer-events: none;
}

.timeline-row-out-of-order .timeline-row {
  background: rgba(127, 29, 29, 0.14);
}

.timeline-row-out-of-order .timeline-day-cell {
  background: rgba(127, 29, 29, 0.12);
}

.timeline-system-out-of-order {
  background: rgba(127, 29, 29, 0.92) !important;
  border-color: rgba(252, 165, 165, 0.62) !important;
  color: #fff2ef !important;
}

.timeline-weekend {
  background: rgba(54, 64, 42, 0.24);
}

.timeline-today-head,
.timeline-today-cell {
  border-left: 2px solid #ef4444 !important;
  background: rgba(127, 29, 29, 0.18);
}

.timeline-today-slot {
  height: 13px;
  line-height: 1;
  margin-bottom: 2px;
}

.timeline-today-slot span {
  background: rgba(127, 29, 29, 0.5);
  border: 1px solid rgba(252, 165, 165, 0.45);
  border-radius: 999px;
  color: #fca5a5;
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  line-height: 11px;
  padding: 0 4px;
  text-transform: uppercase;
}

.timeline-segment {
  align-self: center;
  display: block;
  height: 23px;
  line-height: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legend-swatch {
  border-radius: 0.25rem;
  display: inline-block;
  height: 0.85rem;
  width: 1.8rem;
}

.booking-status-planned {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(245, 180, 54, 0.95) 0,
      rgba(245, 180, 54, 0.95) 5px,
      rgba(104, 75, 22, 0.82) 5px,
      rgba(104, 75, 22, 0.82) 10px
    );
  border: 1px dashed rgba(255, 222, 126, 0.9);
  color: #101408;
}

.booking-status-active {
  background: rgba(58, 176, 89, 0.94);
  border: 1px solid rgba(171, 244, 184, 0.8);
  color: #061007;
}

.booking-status-completed {
  background: rgba(67, 134, 214, 0.94);
  border: 1px solid rgba(158, 208, 255, 0.78);
  color: #eef7ff;
}

.booking-status-cancelled {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(210, 55, 48, 0.94) 0,
      rgba(210, 55, 48, 0.94) 5px,
      rgba(91, 28, 28, 0.84) 5px,
      rgba(91, 28, 28, 0.84) 10px
    );
  border: 1px dashed rgba(255, 165, 155, 0.86);
  color: #fff2ef;
}

@media (min-width: 1280px) {
  .mission-timeline {
    --day-width: 28px;
  }
}
