:root {
  --bg: #f5f9ff;
  --panel: #ffffff;
  --text: #0b2440;
  --muted: #607187;
  --line: #dbe7f5;
  --accent: #005fe8;
  --accent-dark: #003f9f;
  --accent-soft: #eaf3ff;
  --accent-cyan: #22a7f2;
  --brand-red: #ed2f49;
  --warn: #c36b15;
  --danger: #c92d45;
  --blue: #0a79d8;
  --shadow: 0 18px 45px rgba(9, 50, 100, 0.09);
  --soft-shadow: 0 10px 28px rgba(11, 36, 64, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% -10%, rgba(34, 167, 242, 0.16), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 44%, #ffffff 100%);
  color: var(--text);
  font-family: "Segoe UI", "Inter", "Aptos", Arial, Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
}

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(440px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan), var(--brand-red));
}

.login-logo {
  width: 108px;
  max-width: 36%;
  display: block;
  margin: 0 auto 12px;
  border-radius: 10px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: 1.36rem;
  line-height: 1.18;
  color: var(--text);
  font-weight: 700;
}

h2 {
  margin-bottom: 4px;
  font-size: 1.12rem;
  color: var(--text);
  font-weight: 800;
}

h3 {
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 800;
}

.muted {
  color: var(--muted);
  line-height: 1.45;
}

.main-view {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  margin: 0 0 12px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(219, 231, 245, 0.95);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(10px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  flex: 0 0 auto;
  width: 58px;
  height: 50px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 95, 232, 0.12);
}

.brand-lockup h1 {
  margin-bottom: 0;
}

.topbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 16px;
}

.mode-tabs.single-tab {
  grid-template-columns: 1fr;
}

.tab-button,
.ghost-action,
.secondary-action,
.primary-action {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 10px 16px;
  background: var(--panel);
  color: var(--text);
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(11, 36, 64, 0.05);
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.tab-button.active {
  border-color: var(--accent);
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #087cf0);
  box-shadow: 0 12px 26px rgba(0, 95, 232, 0.23);
}

.primary-action {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), #087cf0);
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 95, 232, 0.22);
}

.primary-action:disabled,
.secondary-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.secondary-action {
  border-color: #a9cdf7;
  color: var(--accent-dark);
  background: #f8fbff;
}

.ghost-action {
  min-width: 58px;
}

.work-view {
  display: grid;
  gap: 14px;
}

.step-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.step-pill {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.step-pill.active {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.tool-section,
.submit-bar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--soft-shadow);
}

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

.map-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.map-style-control {
  min-width: 170px;
}

.map-style-control span {
  font-size: 0.78rem;
  color: var(--muted);
}

.map {
  width: 100%;
  min-height: 420px;
  height: 52vh;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #e7f2ff;
}

.status-line,
.error-line {
  min-height: 22px;
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.error-line {
  color: var(--danger);
}

.parcel-empty,
.parcel-card,
.address-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fbfdff;
}

.address-card {
  margin-top: 10px;
}

.address-card textarea {
  min-height: 74px;
}

.address-clarification {
  margin-top: 10px;
}

.street-card {
  border-color: #a9cdf7;
  background: var(--accent-soft);
}

.street-location-title {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 1.15rem;
  font-weight: 800;
}

.parcel-number {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 2rem;
  font-weight: 800;
}

.parcel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.parcel-grid div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px;
  background: #fff;
}

.parcel-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.parcel-grid strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.form-grid,
.dynamic-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 11px;
  background: #fff;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 95, 232, 0.14);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.field-wide {
  grid-column: 1 / -1;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: #fff;
}

.toggle-row input {
  width: 20px;
  min-height: 20px;
}

.photo-drop {
  min-height: 76px;
  border: 2px dashed #a9cdf7;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #f8fbff;
  color: var(--accent-dark);
  text-align: center;
}

.photo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.photo-drop input {
  display: none;
}

.photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.photo-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.submit-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.case-list {
  display: none;
  gap: 10px;
}

.dashboard-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-task-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: thin;
}

.dashboard-tab {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: var(--panel);
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(11, 36, 64, 0.06);
}

.dashboard-tab.active {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), #087cf0);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 95, 232, 0.25);
}

.queue-panel {
  display: grid;
  gap: 14px;
}

.dashboard-map-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--soft-shadow);
}

.dashboard-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 14px;
  align-items: stretch;
}

.dashboard-map {
  width: 100%;
  min-height: 560px;
  height: 62vh;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #e7f2ff;
}

.dashboard-map-info {
  display: grid;
  align-content: start;
  gap: 14px;
}

.dashboard-map-count,
.dashboard-map-selected {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fbfdff;
}

.dashboard-map-count strong {
  display: block;
  color: var(--accent-dark);
  font-size: 2rem;
  line-height: 1;
}

.dashboard-map-count span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.dashboard-map-selected {
  display: grid;
  gap: 10px;
}

.dashboard-map-selected h3 {
  margin: 0;
  color: var(--accent-dark);
}

.dashboard-map-hover {
  width: min(320px, calc(100vw - 32px));
  border: 1px solid rgba(11, 36, 64, 0.14);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 32px rgba(11, 36, 64, 0.18);
  color: var(--text);
  pointer-events: none;
}

.dashboard-map-hover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 12px;
  height: 12px;
  border-right: 1px solid rgba(11, 36, 64, 0.14);
  border-bottom: 1px solid rgba(11, 36, 64, 0.14);
  background: rgba(255, 255, 255, 0.96);
  transform: translateX(-50%) rotate(45deg);
}

.dashboard-map-hover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.dashboard-map-hover-head > strong {
  color: var(--accent-dark);
}

.dashboard-map-hover-grid {
  display: grid;
  grid-template-columns: minmax(88px, auto) minmax(0, 1fr);
  gap: 5px 8px;
  font-size: 0.84rem;
  line-height: 1.3;
}

.dashboard-map-hover-grid span {
  color: var(--muted);
  font-weight: 700;
}

.dashboard-map-hover-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) repeat(3, minmax(150px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--soft-shadow);
}

.settings-panel,
.workflow-panel,
.report-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--soft-shadow);
}

.workflow-grid {
  overflow: auto;
}

.workflow-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.workflow-table th,
.workflow-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  vertical-align: middle;
  font-size: 0.86rem;
}

.workflow-table th {
  background: #f4f8ff;
  color: var(--accent-dark);
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: none;
}

.workflow-table input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  padding: 0;
  accent-color: var(--accent);
}

.deadline-control {
  min-width: 140px;
}

.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}

.condition-list {
  display: grid;
  gap: 8px;
}

.condition-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px;
  background: #fbfdff;
}

.condition-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.condition-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.report-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.report-card {
  display: grid;
  gap: 12px;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fbfdff;
}

.report-card h3 {
  color: var(--accent-dark);
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-actions .secondary-action,
.report-actions .ghost-action {
  min-height: 38px;
  padding: 7px 12px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.case-table-wrap,
.case-detail-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

.case-table-wrap {
  overflow: auto;
}

.case-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  table-layout: auto;
}

.case-table th,
.case-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  vertical-align: top;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.case-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f8ff;
  color: var(--accent-dark);
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: none;
}

.case-table tr {
  cursor: pointer;
}

.case-table tr:hover,
.case-table tr.active {
  background: var(--accent-soft);
}

.case-table .select-col {
  width: 36px;
  text-align: center;
}

.case-table th:nth-child(2),
.case-table td:nth-child(2) {
  min-width: 132px;
}

.case-table th:nth-child(3),
.case-table td:nth-child(3) {
  min-width: 98px;
}

.case-table th:nth-child(4),
.case-table td:nth-child(4) {
  min-width: 118px;
}

.case-table th:nth-child(5),
.case-table td:nth-child(5) {
  min-width: 118px;
}

.case-table th:nth-child(6),
.case-table td:nth-child(6) {
  min-width: 150px;
}

.case-table th:nth-child(7),
.case-table td:nth-child(7) {
  min-width: 112px;
}

.case-table th:nth-child(8),
.case-table td:nth-child(8) {
  min-width: 92px;
}

.case-table input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--accent);
}

.case-table .muted-cell {
  color: var(--muted);
}

.case-detail-panel {
  padding: 14px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.detail-title {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.detail-section {
  margin-top: 14px;
}

.detail-section h3 {
  color: var(--accent-dark);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.detail-grid div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  background: #fbfdff;
}

.detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.detail-grid strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
}

.photo-gallery a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fbfdff;
}

.photo-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.print-area {
  display: none;
}

.case-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 18px;
  padding: 13px;
  box-shadow: var(--soft-shadow);
}

.case-item.active {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border-color: var(--accent);
  box-shadow: 0 16px 36px rgba(0, 95, 232, 0.13);
}

.case-item h3 {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.case-item input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--accent);
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.case-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
  white-space: nowrap;
}

.case-status.notified {
  background: #fff4dc;
  color: #8b520d;
}

.case-status.submitted {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.case-status.needs_certificate_check,
.case-status.ready_to_notify {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.case-status.eligible_collection {
  background: #e7f8ff;
  color: #00619c;
}

.case-status.moved,
.case-status.not_collectable {
  background: #fff4dc;
  color: #8b520d;
}

.case-status.collected,
.case-status.recycled,
.case-status.recovered {
  background: #e7f8ff;
  color: var(--blue);
}

.case-status.recheck_unclear {
  background: #ffe9ed;
  color: var(--danger);
}

.row-action-button {
  min-height: 34px;
  border: 1px solid #a9cdf7;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  color: var(--accent-dark);
  font-weight: 800;
  white-space: nowrap;
}

.case-action-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.case-detail-panel .case-action-form {
  grid-template-columns: 1fr;
}

.case-detail-panel select {
  min-width: 0;
}

.payment-history {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.payment-history div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  background: #fbfdff;
}

.payment-history span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
}

.demo-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.demo-hint span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: #fbfdff;
}

@media (min-width: 1024px) {
  body {
    font-size: 15px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }

  .main-view {
    max-width: 1360px;
    padding: 18px 22px 24px;
  }

  .login-panel,
  .topbar,
  .tool-section,
    .submit-bar,
    .dashboard-filters,
    .dashboard-map-panel,
    .settings-panel,
    .report-panel,
    .workflow-panel,
  .case-table-wrap,
  .case-detail-panel {
    border-radius: 14px;
  }

  h1 {
    font-size: 1.5rem;
    line-height: 1.18;
    font-weight: 700;
  }

  h2 {
    font-size: 1.05rem;
    line-height: 1.25;
  }

  h3 {
    font-size: 0.96rem;
    line-height: 1.3;
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.03em;
  }

  .tab-button,
  .ghost-action,
  .secondary-action,
  .primary-action,
  .dashboard-tab,
  .row-action-button {
    font-weight: 750;
  }

  .case-table th,
  .case-table td,
  .workflow-table th,
  .workflow-table td {
    font-size: 0.9rem;
    line-height: 1.35;
    padding: 10px;
  }

  .case-table th,
  .workflow-table th {
    font-size: 0.82rem;
  }

  .case-meta,
  .demo-hint,
  .payment-history span {
    font-size: 0.88rem;
  }
}

@media (max-width: 1000px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-map-layout {
    grid-template-columns: 1fr;
  }

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

  .dashboard-filters button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .main-view {
    padding: 10px;
  }

  .topbar,
  .section-head,
  .submit-bar,
  .map-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar {
    padding: 12px;
    border-radius: 16px;
  }

  .brand-logo {
    width: 48px;
    height: 42px;
  }

  .topbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .topbar-actions .ghost-action {
    width: auto;
  }

  .login-panel {
    padding: 22px;
  }

  .login-logo {
    width: 94px;
  }

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

  .step-pill {
    font-size: 0.82rem;
  }

  .map {
    min-height: 360px;
    height: 50vh;
  }

  .dashboard-map {
    min-height: 420px;
    height: 54vh;
  }

  .form-grid,
  .dynamic-fields,
  .parcel-grid,
  .dashboard-filters,
  .dashboard-grid,
  .detail-grid,
  .photo-actions,
  .condition-form,
    .case-action-form {
    grid-template-columns: 1fr;
  }

  .dashboard-task-tabs {
    margin: 0 -10px;
    padding: 0 10px 10px;
  }

  .dashboard-tab {
    min-height: 40px;
    padding: 8px 12px;
  }

  .primary-action,
  .secondary-action,
  .ghost-action,
  .tab-button {
    width: 100%;
  }

  .case-table {
    display: none;
  }

  .case-list {
    display: grid;
    padding: 10px;
  }

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

@media print {
  body {
    background: #fff;
  }

  .app-shell > :not(.print-area),
  .login-view,
  .main-view {
    display: none !important;
  }

  .print-area {
    display: block;
    color: #000;
    font-size: 12pt;
  }

  .print-area h1 {
    font-size: 18pt;
    margin-bottom: 4pt;
  }

  .print-area table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12pt;
  }

  .print-area th,
  .print-area td {
    border: 1px solid #000;
    padding: 6pt;
    text-align: left;
    vertical-align: top;
  }
}
