.search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.search-row input {
  flex: 1;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.health-banner {
  margin-bottom: 16px;
  padding: 13px 16px;
  border: 1px solid #a9ddc9;
  border-radius: 12px;
  color: #096b4b;
  background: #e9f8f1;
}

.health-banner.degraded {
  border-color: #efc0c4;
  color: #8f2731;
  background: #fff1f2;
}

.detail-card {
  padding: 24px;
}

.detail-card h2 {
  margin-top: 0;
}

.detail-card dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 14px;
}

.detail-card dt {
  color: var(--muted);
}

.detail-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}

#detailDialog { width: min(980px, calc(100% - 28px)); }

.evidence-section {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(32,116,185,.18);
  border-radius: 16px;
  background: linear-gradient(145deg, #f4faff, #fff);
}

.transfer-history-section {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(232,139,25,.24);
  border-radius: 16px;
  background: linear-gradient(145deg, #fff8ee, #fff);
}

.transfer-history-section h3 { margin: 2px 0 0; color: var(--navy); }

#pppoeDialog { width: min(620px, calc(100% - 28px)); }
.dialog-error { padding: 12px 14px; margin: 0 0 12px; border: 1px solid #d49a9a; border-radius: 10px; background: #fff1f0; color: #8b2525; font-size: 14px; line-height: 1.5; }
.credential-dialog { min-width: 0; }
.credential-dialog h2 { margin: 2px 0 0; color: var(--navy); }
.credential-values {
  display: grid;
  grid-template-columns: 130px minmax(0,1fr);
  gap: 12px;
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid rgba(232,139,25,.28);
  border-radius: 14px;
  background: #fff8ee;
}
.credential-values dt { color: var(--muted); }
.credential-values dd { margin: 0; overflow-wrap: anywhere; user-select: text; }
.credential-values code { font-size: 14px; color: var(--navy); }

.field-report-section {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(18,132,94,.22);
  border-radius: 16px;
  background: linear-gradient(145deg, #f1fbf7, #fff);
}

.field-report-section h3 { margin: 2px 0 0; color: var(--navy); }
.field-report-section form { margin-top: 16px; }
.field-report-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.field-report-grid .form-span { grid-column: 1 / -1; }
.field-report-material { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 12px; padding: 12px; border: 1px solid #dce5ee; border-radius: 12px; background: #f7fafc; }
.field-report-material label { min-width: 0; }
.field-report-material select { width: 100%; min-width: 0; }
.material-stock-balance { display: block; margin-top: 6px; color: #155c44; font-size: 12px; line-height: 1.4; }
.report-materials { min-width: 0; }
.report-materials h4 { margin: 0 0 12px; color: var(--navy); }
.report-materials > .form-note { margin: 10px 0; }
.personal-material-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.personal-material-row { min-width: 0; padding: 14px; background: #f7fafc; border: 1px solid #dce5ee; border-radius: 12px; }
.personal-material-row strong { display: block; overflow-wrap: anywhere; }
.personal-material-row > label { margin-top: 12px; }
.personal-material-row .serial-choice { display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.serial-choice input { width: 22px; height: 22px; min-height: 22px; flex: 0 0 22px; }
.inventory-holdings { margin-top: 24px; }
.field-report-section > form > .form-note { margin: 12px 0; }

.monthly-report .panel-heading { align-items: end; }
.monthly-report .panel-heading p { margin: 4px 0 0; color: var(--muted); }
.report-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.report-actions label { min-width: 155px; }

.screen-watermark {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  z-index: 70;
}
.screen-watermark span {
  color: rgba(15,51,77,.10);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-align: center;
  transform: rotate(-24deg);
  white-space: nowrap;
}

.screen-shield {
  position: fixed;
  inset: 0;
  display: none;
  place-content: center;
  gap: 8px;
  color: #fff;
  background: #0d314c;
  text-align: center;
  z-index: 9999;
}
.screen-shield strong { font-size: 24px; }
.screen-shield span { color: #c4d7e1; }
.screen-shielded .screen-shield { display: grid; }
.screen-shielded #application { filter: blur(24px); }

.evidence-section h3 { margin: 2px 0 0; color: var(--navy); }

#evidenceForm {
  display: grid;
  grid-template-columns: minmax(150px,.7fr) minmax(200px,1.2fr) minmax(190px,1fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: 14px;
}

#evidenceForm .form-note { grid-column: 1 / -1; }

/* Fibim control-room visual layer */
body {
  background:
    radial-gradient(circle at 86% 4%, rgba(32,116,185,.10), transparent 28rem),
    linear-gradient(180deg, #eef5f8 0, #f7fafb 46rem);
}

aside {
  background:
    radial-gradient(circle at 30% 4%, rgba(45,153,220,.30), transparent 14rem),
    linear-gradient(180deg, #123e5f 0%, #0d314c 100%);
  box-shadow: 12px 0 40px rgba(15,51,77,.12);
}

.brand {
  border-bottom: 1px solid rgba(255,255,255,.10);
  margin-bottom: 13px;
}

.brand .brand-mark { box-shadow: 0 10px 28px rgba(0,0,0,.22); }

.workspace > header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  z-index: 8;
}

.view { max-width: 1640px; margin: 0 auto; }

.page-head {
  padding: 5px 2px;
}

.page-head h1 {
  color: #123a56;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -.035em;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #2586cb, #1768a5);
  box-shadow: 0 9px 22px rgba(32,116,185,.20);
}

.button.primary:hover { filter: brightness(1.06); transform: translateY(-1px); }

.panel,
.metric,
.team-card {
  border-color: rgba(180,202,212,.68);
  box-shadow: 0 12px 34px rgba(20,59,86,.07);
}
.team-category { margin: 0 0 24px; }
.team-category h2 { margin: 0 0 12px; color: var(--navy); }

.metric {
  position: relative;
  overflow: hidden;
}

.metric::after {
  position: absolute;
  top: -22px;
  right: -16px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  content: "";
  background: rgba(32,116,185,.07);
}

.accent-metrics .metric { border-top: 3px solid #2074b9; }
.accent-metrics .metric-orange { border-top-color: #ee7623; }
.accent-metrics .metric-red { border-top-color: #b83e48; }
.accent-metrics .metric-green { border-top-color: #12845e; }

.planning-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 16px;
  margin-bottom: 16px;
}

.planning-section { margin-top: 16px; }

.panel-feature {
  border-top: 3px solid var(--orange);
  background: linear-gradient(180deg, #fffaf6, #fff 150px);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.panel-heading h2 { margin: 1px 0 0; }

.panel-kicker {
  color: var(--orange);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.sla-badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.sla-on_track,
.sla-met { color: #08704e; background: #e4f6ee; }
.sla-warning { color: #935707; background: #fff1d1; }
.sla-breached { color: #a12531; background: #ffe8ea; }
.sla-unknown { color: #536a74; background: #edf2f4; }

.sla-row.resolution_breached td:first-child,
.sla-row.response_breached td:first-child { border-left: 3px solid var(--red); }
.sla-row.resolution_warning td:first-child { border-left: 3px solid var(--orange); }

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

.incident-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-top: 3px solid #62a7d7;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #f7fbfd);
}

.incident-card.priority-high { border-top-color: var(--orange); }
.incident-card.priority-critical { border-top-color: var(--red); }
.incident-card h3 { margin: 7px 0 5px; color: var(--navy); }
.incident-card p { min-height: 42px; margin: 0 0 13px; color: var(--muted); }
.incident-reference { color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.incident-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 10px; }
.incident-meta strong { color: var(--navy); }
.empty-state { padding: 25px; color: var(--muted); text-align: center; }

.input-action { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.scanner-card video { width: 100%; max-height: 58vh; margin: 15px 0; border-radius: 14px; background: #071d2c; }

.offline-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 430px;
  padding: 13px 16px;
  border: 1px solid #e3b376;
  border-radius: 12px;
  color: #70410a;
  background: #fff4dd;
  box-shadow: 0 15px 40px rgba(90,52,8,.20);
  z-index: 80;
}

.header-action { margin-left: auto; }
.workspace > header .actor { margin-left: 0; }

.role-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 15px 18px;
  border: 1px solid rgba(32,116,185,.20);
  border-left: 4px solid var(--blue);
  border-radius: 14px;
  color: var(--navy);
  background: linear-gradient(100deg, rgba(32,116,185,.10), rgba(255,255,255,.92));
}

.role-banner strong { font-size: 15px; }
.role-banner span { color: var(--muted); }
.role-banner.role-orange { border-left-color: var(--orange); background: linear-gradient(100deg, rgba(238,118,35,.10), #fff); }
.role-banner.role-green { border-left-color: var(--green); background: linear-gradient(100deg, rgba(18,132,94,.09), #fff); }

.dashboard-analytics,
.analytics-grid,
.intake-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 16px;
  margin-bottom: 16px;
}

.analytics-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.next-task-panel { margin-bottom: 16px; }
#nextTask { display: grid; gap: 12px; }
.team-workload-button { width: 100%; text-align: left; color: var(--text); font: inherit; cursor: pointer; }
#teamWorkloadSummary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-workload-button:hover,
.team-workload-button[aria-pressed="true"] { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(238,118,35,.12); }
.team-workload-button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.team-orders-more { margin-top: 12px; }
.next-task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.next-task h3 { margin: 10px 0 3px; color: var(--navy); font-size: 21px; }
.next-task p { margin: 0 0 6px; color: var(--text); }
.next-task small { color: var(--muted); }

.standalone-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, .55fr);
  gap: 16px;
}
.standalone-form .form-span { grid-column: 1 / -1; }
.intake-card { padding: 24px; }
.intake-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 4px;
}
.intake-guide {
  padding: 28px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, #154c70, #0d314c);
  box-shadow: 0 16px 40px rgba(13,49,76,.18);
}
.intake-guide h2 { margin: 12px 0; }
.intake-guide ol { display: grid; gap: 11px; padding-left: 21px; color: #deebf1; }
.intake-guide p { margin: 22px 0 0; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.14); color: #bcd0dc; font-size: 12px; }
.guide-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: #0d5d42; background: #d8f6ea; font-size: 20px; font-weight: 900; }
.intake-result { margin-top: 18px; padding: 14px 16px; border: 1px solid #a9ddc9; border-radius: 12px; color: #096b4b; background: #e9f8f1; font-weight: 700; }

.trend-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(34px, 1fr));
  align-items: end;
  gap: 8px;
  min-height: 190px;
  padding-top: 12px;
}
.trend-day { display: grid; justify-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.trend-day b { color: var(--text); text-transform: capitalize; }
.trend-bars { display: flex; align-items: end; justify-content: center; gap: 3px; width: 100%; height: 130px; border-bottom: 1px solid var(--line); }
.trend-bar { display: block; width: min(16px, 38%); min-height: 4px; border-radius: 5px 5px 1px 1px; }
.trend-bar.opened { background: linear-gradient(180deg, #49a4df, var(--blue)); }
.trend-bar.closed { background: linear-gradient(180deg, #42c296, var(--green)); }
.chart-legend { display: flex; justify-content: center; gap: 20px; margin-top: 11px; color: var(--muted); font-size: 11px; }
.chart-legend span::before { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; content: ""; }
.legend-opened::before { background: var(--blue); }
.legend-closed::before { background: var(--green); }

.distribution-list,
.team-load-list { display: grid; gap: 15px; }
.distribution-row > div:first-child,
.team-load-row > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.distribution-row span,
.team-load-row span { color: var(--muted); font-size: 11px; }
.distribution-track,
.team-load-track { height: 8px; overflow: hidden; border-radius: 999px; background: #edf2f4; }
.distribution-track i,
.team-load-track i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.distribution-track i.green { background: var(--green); }
.distribution-track i.orange { background: var(--orange); }
.distribution-track i.red,
.team-load-track i.risk { background: var(--red); }
.distribution-track i.muted { background: #8ca1aa; }
.team-load-list.compact { max-height: 258px; overflow: auto; padding-right: 4px; }

.trend-bar.level-0 { height: 4px; }
.trend-bar.level-1 { height: 10%; }.trend-bar.level-2 { height: 20%; }.trend-bar.level-3 { height: 30%; }
.trend-bar.level-4 { height: 40%; }.trend-bar.level-5 { height: 50%; }.trend-bar.level-6 { height: 60%; }
.trend-bar.level-7 { height: 70%; }.trend-bar.level-8 { height: 80%; }.trend-bar.level-9 { height: 90%; }.trend-bar.level-10 { height: 100%; }
.distribution-track i.level-0,.team-load-track i.level-0 { width: 0; }
.distribution-track i.level-1,.team-load-track i.level-1 { width: 10%; }.distribution-track i.level-2,.team-load-track i.level-2 { width: 20%; }.distribution-track i.level-3,.team-load-track i.level-3 { width: 30%; }
.distribution-track i.level-4,.team-load-track i.level-4 { width: 40%; }.distribution-track i.level-5,.team-load-track i.level-5 { width: 50%; }.distribution-track i.level-6,.team-load-track i.level-6 { width: 60%; }
.distribution-track i.level-7,.team-load-track i.level-7 { width: 70%; }.distribution-track i.level-8,.team-load-track i.level-8 { width: 80%; }.distribution-track i.level-9,.team-load-track i.level-9 { width: 90%; }.distribution-track i.level-10,.team-load-track i.level-10 { width: 100%; }

.permission-security-note { padding: 11px 13px; border: 1px solid #cfe0e8; border-radius: 10px; color: var(--muted); background: #f4f8fa; font-size: 11px; }
.detail-quick-actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.detail-quick-actions small { color: var(--muted); }
.route-button { color: #fff; background: linear-gradient(135deg, var(--green), #0c6f4e); text-decoration: none; white-space: nowrap; }

.mobiliz-readiness {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 22px;
  margin-bottom: 16px;
  border-left: 4px solid var(--green);
  background: linear-gradient(120deg, rgba(18,132,94,.08), #fff 55%);
}
.mobiliz-readiness h2 { margin: 4px 0; }
.mobiliz-readiness p { margin: 0; color: var(--muted); }
.mobiliz-readiness ul { grid-column: 1 / -1; display: grid; gap: 5px; margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; }

.mobile-nav { display: none; }

.is-offline [data-refresh],
.is-offline form button[type="submit"] { opacity: .55; }

#teamDialog .detail-card {
  display: grid;
  gap: 16px;
}

#teamDialog { width: min(960px, calc(100% - 28px)); }

#teamDialog h3 {
  margin: 6px 0 -6px;
  color: var(--navy);
}

#teamDialog form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, .45fr) auto;
  align-items: end;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

#teamMappingForm {
  grid-template-columns: 1fr auto !important;
}

@media (max-width: 720px) {
  .workspace { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .workspace > header .header-action { display: none; }
  .workspace > header .actor { flex: 1; }

  .role-banner { align-items: flex-start; flex-direction: column; gap: 4px; }
  .dashboard-analytics,
  .analytics-grid,
  .intake-layout,
  .standalone-form { grid-template-columns: 1fr; }
  .standalone-form .form-span { grid-column: auto; }
  .intake-card { padding: 18px; }
  .intake-submit { align-items: stretch; flex-direction: column; }
  .intake-submit .button { width: 100%; }
  .intake-guide { padding: 22px; }
  .analytics-metrics { grid-template-columns: repeat(2, 1fr); }
  .next-task { align-items: stretch; flex-direction: column; }
  .next-task-actions .small-button { width: 100%; }
  .trend-chart { gap: 4px; overflow-x: auto; }
  .detail-quick-actions { align-items: stretch; flex-direction: column; }
  .field-report-grid { grid-template-columns: 1fr; }
  .field-report-material { grid-template-columns: 1fr; }
  .personal-material-list { grid-template-columns: 1fr; }
  .field-report-grid .form-span { grid-column: auto; }
  /* Keep one scroll container; nested height-limited forms can leave the mobile dialog blank. */
  #detailDialog { width: 100%; }
  #detailDialog .detail-card,
  #detailDialog form { max-height: none; overflow-y: visible; }
  #detailDialog .detail-card { padding: 20px 14px calc(20px + env(safe-area-inset-bottom)); }
  #detailDialog form { padding: 0; }
  .monthly-report .panel-heading,
  .report-actions { align-items: stretch; flex-direction: column; }
  .report-actions,
  .report-actions .button,
  .report-actions label { width: 100%; }
  .mobiliz-readiness { grid-template-columns: 1fr; }
  .mobiliz-readiness ul { grid-column: auto; }

  .mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-around;
    gap: 2px;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(21,59,90,.12);
    background: rgba(255,255,255,.96);
    box-shadow: 0 -12px 35px rgba(13,49,76,.12);
    backdrop-filter: blur(16px);
    z-index: 9;
  }
  .mobile-nav button {
    display: grid;
    min-width: 58px;
    min-height: 48px;
    place-items: center;
    gap: 1px;
    padding: 4px 7px;
    border: 0;
    border-radius: 10px;
    color: #647b85;
    background: transparent;
    font-size: 10px;
    text-align: center;
  }
  .mobile-nav button span { color: var(--blue); font-size: 19px; line-height: 1; }
  .mobile-nav button.active { color: var(--navy); background: #eaf3f8; box-shadow: none; }

  .search-row {
    align-items: stretch;
    flex-direction: column;
  }

  #teamDialog form,
  #teamMappingForm {
    grid-template-columns: 1fr !important;
  }

  .detail-card dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .detail-card dd { margin-bottom: 10px; }

  #evidenceForm { grid-template-columns: 1fr; }
  #evidenceForm .form-note { grid-column: auto; }

  .detail-card > .dialog-actions {
    position: static;
    grid-template-columns: 1fr;
    margin-top: 16px;
    padding-top: 0;
  }

  .planning-grid,
  .incident-grid { grid-template-columns: 1fr; }

  .input-action { grid-template-columns: 1fr; }

  .offline-banner {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
  }
}

@media print {
  body > *:not(.screen-shield) { visibility: hidden !important; }
  .screen-shield { display: grid !important; }
  .screen-shield span { display: none; }
}

#mainNavigation { display: flex; flex-direction: column; overflow: hidden; }
#mainNavigation > .brand { flex-shrink: 0; }
#mainNavigation > nav { min-height: 0; flex: 1; overflow-y: auto; align-content: start; }
#mainNavigation > .security { position: static; flex-shrink: 0; margin-top: 12px; }
.nav-group { margin-top: 8px; border-top: 1px solid #ffffff24; padding-top: 8px; }
.nav-group summary { cursor: pointer; padding: 13px 10px; min-height: 46px; color: #d9e8f2; font-weight: 700; font-size: 13px; border-radius: 10px; }
.nav-group summary:hover, .nav-group summary:focus-visible { background: #ffffff12; }
.nav-group summary:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.nav-group-items { display: grid; gap: 3px; margin: 4px 0 4px 12px; padding-left: 8px; border-left: 2px solid #ee762366; }
.nav-group-items button { width: 100%; text-align: left; min-height: 44px; }
.permission-person-picker { display: flex; align-items: end; gap: 16px; flex-wrap: wrap; }
.permission-person-picker label { flex: 1; min-width: min(320px, 100%); }
.permission-person-picker p { width: 100%; }
.creation-permissions { margin: 16px 0; }
.order-filter-form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-bottom: 18px; }
.order-filter-primary { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; }
.order-filter-primary label { min-width: 220px; flex: 1; }
.order-filter-details summary { padding: 15px 0 8px; font-size: 13px; font-weight: 700; cursor: pointer; }
.order-filter-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 12px; padding-top: 12px; }
.order-filter-form label { font-size: 12px; }
.order-filter-form .form-note { margin-bottom: 0; }
#moreFilteredOrders { margin-top: 16px; }
.creation-permissions summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.delegation-banner { position: sticky; top: 0; z-index: 12; background: #fff2d8; color: #593707; padding: 10px 20px; border-bottom: 2px solid var(--orange); display: flex; align-items: center; gap: 18px; justify-content: space-between; }
.delegation-banner p { margin: 0; overflow-wrap: anywhere; }
.delegation-banner button { flex-shrink: 0; }
.delegation-banner[hidden] { display: none; }
#login > button { margin-top: 16px; }
@media (max-width: 720px) { .delegation-banner { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 14px; } }
#view-reports .standalone-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#view-reports .form-span { grid-column: 1 / -1; }
#reportCreateResult:empty { display: none; }
#archivedTeamsSection summary { cursor: pointer; font-weight: 700; }
.team-card > .small-button + .small-button { margin-top: 8px; }
#dailyBriefingDialog { width: min(680px, calc(100vw - 24px)); }
.briefing-job { border: 1px solid #dbe5eb; border-radius: 14px; padding: 16px; margin-block: 12px; background: #f6fafc; }
.briefing-job p, #reportDetailFields dd { overflow-wrap: anywhere; white-space: pre-wrap; }
.briefing-job small { display: block; margin-bottom: 10px; color: #526677; }
@media (max-width: 720px) { #view-reports .standalone-form { grid-template-columns: 1fr; } }

@media (min-width: 721px) and (max-width: 1100px) {
  .planning-grid { grid-template-columns: 1fr; }
  .incident-grid { grid-template-columns: repeat(2, 1fr); }
}
