/* [project]/apps/web/app/globals.css [app-client] (css) */
:root {
  --blue: #003b71;
  --blue-2: #005ca8;
  --blue-3: #0b75c9;
  --bg: #f4f7fb;
  --card: #fff;
  --text: #17212f;
  --muted: #64748b;
  --border: #d9e2ec;
  --green: #2e7d32;
  --orange: #f57c00;
  --red: #c62828;
  --shadow: 0 18px 45px #0f172a14;
  --soft-shadow: 0 10px 25px #0f172a0d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button, a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  display: grid;
}

.sidebar {
  color: #fff;
  background: linear-gradient(#003b71 0%, #072947 100%);
  height: 100vh;
  padding: 24px 18px;
  position: sticky;
  top: 0;
  overflow: auto;
}

.brand-wrap {
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  display: flex;
}

.brand-mark {
  letter-spacing: -.5px;
  background: #ffffff24;
  border: 1px solid #ffffff2e;
  border-radius: 14px;
  place-items: center;
  width: 44px;
  height: 44px;
  font-weight: 900;
  display: grid;
}

.brand {
  margin-bottom: 4px;
  font-size: 22px;
  font-weight: 900;
}

.subtitle {
  color: #bfdbfe;
  font-size: 12px;
  line-height: 1.35;
}

.demo-pill {
  color: #fff8e1;
  background: #f57c002e;
  border: 1px solid #fff8e140;
  border-radius: 999px;
  width: fit-content;
  margin: 10px 0 18px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.nav {
  gap: 8px;
  margin-top: 22px;
  display: grid;
}

.nav a {
  color: #e5f2ff;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  transition: background .16s, transform .16s;
}

.nav a:hover {
  background: #ffffff1f;
  transform: translateX(2px);
}

.main {
  min-width: 0;
  padding: 22px 26px 40px;
}

.topbar {
  z-index: 5;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: #f4f7fbe0;
  border-bottom: 1px solid #d9e2ecb3;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: -22px -26px 22px;
  padding: 18px 26px;
  display: flex;
  position: sticky;
  top: 0;
}

.search {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  outline: none;
  width: min(420px, 100%);
  padding: 12px 14px;
  box-shadow: 0 1px #0f172a05;
}

.search:focus, .field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue-2);
  box-shadow: 0 0 0 4px #005ca81f;
}

.topbar-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.primary {
  background: linear-gradient(135deg, var(--blue-2), var(--blue-3));
  color: #fff;
  cursor: pointer;
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 800;
  box-shadow: 0 10px 22px #005ca82e;
}

.secondary {
  color: var(--blue);
  border: 1px solid var(--border);
  cursor: pointer;
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 800;
}

.primary:hover, .secondary:hover {
  filter: brightness(.98);
  transform: translateY(-1px);
}

.primary, .secondary {
  transition: transform .16s, filter .16s;
}

.compact {
  border-radius: 10px;
  width: fit-content;
  padding: 8px 11px;
  font-size: 13px;
  display: inline-flex;
}

.demo-banner {
  color: #704500;
  background: #fff8e1;
  border: 1px solid #ffe0a3;
  border-radius: 16px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px 14px;
  display: flex;
}

.demo-banner span {
  color: #8a5a00;
}

.grid {
  gap: 16px;
  display: grid;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--soft-shadow);
  border-radius: 20px;
  padding: 18px;
}

.card, .mini-row, .schedule-mini-card, .timeline-content {
  transition: box-shadow .18s, border-color .18s, transform .18s;
}

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

.card-number {
  letter-spacing: -1px;
  margin-top: 8px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 900;
}

.card-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.section-title {
  letter-spacing: -.6px;
  margin: 0 0 14px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900;
  line-height: 1.1;
}

.section-header {
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  display: flex;
}

.compact-row {
  justify-content: flex-start;
}

.muted {
  color: var(--muted);
  margin: -8px 0 0;
  line-height: 1.55;
}

.page-hero {
  background: linear-gradient(135deg, #fff 0%, #eef7ff 100%);
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  align-items: center;
  gap: 18px;
  display: grid;
  overflow: hidden;
}

.page-hero h1 {
  letter-spacing: -1.4px;
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.02;
}

.page-hero p {
  color: var(--muted);
  max-width: 740px;
  margin: 0;
  line-height: 1.6;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  display: flex;
}

.hero-panel {
  background: #003b7114;
  border: 1px solid #005ca824;
  border-radius: 18px;
  gap: 10px;
  padding: 16px;
  display: grid;
}

.hero-panel strong {
  font-size: 30px;
}

.hero-panel span {
  color: var(--muted);
  font-weight: 700;
}

.table {
  border-collapse: collapse;
  width: 100%;
  overflow: hidden;
}

.table th, .table td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  padding: 14px 10px;
  font-size: 14px;
}

.table th {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 12px;
  font-weight: 800;
}

.table tr:hover td {
  background: #f8fafc;
}

.card:has(.table) {
  overflow-x: auto;
}

.badge {
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
}

.badge.green {
  color: var(--green);
  background: #e8f5e9;
}

.badge.blue {
  color: var(--blue-2);
  background: #e3f2fd;
}

.badge.orange {
  color: var(--orange);
  background: #fff3e0;
}

.badge.red {
  color: var(--red);
  background: #ffebee;
}

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

.field {
  gap: 7px;
  display: grid;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.field input, .field select, .field textarea {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  outline: none;
  padding: 12px;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.full {
  grid-column: 1 / -1;
}

.actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
  display: flex;
}

.alert {
  color: #8a5a00;
  background: #fff8e1;
  border: 1px solid #ffe0a3;
  border-radius: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.red-text {
  color: var(--red);
}

.link {
  color: var(--blue-2);
  text-underline-offset: 3px;
  font-weight: 800;
  text-decoration: underline;
}

.timeline {
  gap: 10px;
  display: grid;
}

.timeline-item {
  border-left: 4px solid var(--blue-2);
  padding: 8px 0 8px 12px;
}

.schedule-card {
  border-left: 5px solid var(--blue-2);
}

.login-wrap {
  place-items: center;
  min-height: 70vh;
  display: grid;
}

.login-card {
  gap: 14px;
  width: min(430px, 100%);
  display: grid;
}

.login-card h1 {
  margin: 0;
}

.login-card p {
  color: var(--muted);
  margin: 0 0 8px;
}

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

.details-grid p {
  color: var(--muted);
  margin: 7px 0 0;
}

.mini-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  display: flex;
}

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

.photo-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  gap: 6px;
  padding: 10px;
  display: grid;
}

.photo-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e4e7eb;
  border-radius: 10px;
  width: 100%;
}

.photo-card span, .photo-card p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}

.checklist-list {
  gap: 10px;
  display: grid;
}

.checkline {
  border: 1px solid var(--border);
  border-radius: 14px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  display: flex;
}

.checkline p {
  color: var(--muted);
  margin: 4px 0 0;
}

.signature-list {
  gap: 12px;
  display: grid;
}

.signature-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  grid-template-columns: 1fr 260px;
  align-items: center;
  gap: 16px;
  padding: 12px;
  display: grid;
}

.signature-card p {
  color: var(--muted);
  margin: 5px 0 0;
}

.signature-card img {
  object-fit: contain;
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 10px;
  width: 100%;
  height: 120px;
}

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

.mini-list {
  gap: 10px;
  display: grid;
}

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

.mini-row:hover, .schedule-mini-card:hover {
  box-shadow: var(--soft-shadow);
  border-color: #005ca857;
  transform: translateY(-1px);
}

.mini-row span {
  color: var(--text);
}

.schedule-cards {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.alert-panel {
  border-left: 5px solid var(--red);
}

.conflict-row {
  align-items: flex-start;
}

.conflict-row p {
  color: var(--muted);
  margin: 4px 0 0;
}

.professional-timeline {
  gap: 14px;
  display: grid;
}

.timeline-block {
  grid-template-columns: 210px 1fr;
  align-items: stretch;
  gap: 14px;
  display: grid;
}

.timeline-hour {
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 16px;
  align-content: start;
  gap: 6px;
  padding: 14px;
  display: grid;
}

.timeline-hour span {
  color: var(--muted);
  font-size: 13px;
}

.timeline-content {
  border: 1px solid var(--border);
  border-left: 5px solid var(--blue-2);
  background: #fff;
  border-radius: 16px;
  gap: 10px;
  padding: 14px;
  display: grid;
}

.timeline-content h3 {
  margin: 0;
  font-size: 18px;
}

.timeline-content p {
  color: var(--muted);
  margin: 4px 0 0;
}

.agenda-meta {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.agenda-meta span {
  border: 1px solid var(--border);
  color: var(--text);
  background: #f1f5f9;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.schedule-group-list {
  gap: 14px;
  display: grid;
}

.schedule-group {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 16px;
  gap: 10px;
  padding: 12px;
  display: grid;
}

.schedule-mini-card {
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 14px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px;
  display: flex;
}

.schedule-mini-card p {
  color: var(--text);
  margin: 4px 0;
}

.schedule-mini-card span {
  color: var(--muted);
  font-size: 12px;
}

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

.empty-state strong {
  color: var(--text);
}

@media (max-width: 1400px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .sidebar {
    display: none;
  }

  .mobile-brandbar {
    background: var(--blue);
    color: #fff;
    z-index: 20;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    display: flex;
    position: sticky;
    top: 0;
  }

  .mobile-brandbar span {
    color: #bfdbfe;
    margin-top: 2px;
    font-size: 12px;
    display: block;
  }

  .main {
    padding: 18px;
  }

  .topbar {
    background: none;
    border-bottom: 0;
    flex-direction: column;
    align-items: stretch;
    margin: 0 0 16px;
    padding: 0;
    position: static;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-actions a {
    text-align: center;
    flex: 1;
    justify-content: center;
  }

  .search {
    width: 100%;
  }

  .mobile-nav {
    gap: 8px;
    margin-bottom: 6px;
    padding: 0 0 14px;
    display: flex;
    overflow-x: auto;
  }

  .mobile-nav a {
    border: 1px solid var(--border);
    color: var(--blue);
    background: #fff;
    border-radius: 999px;
    flex: none;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 800;
  }

  .page-hero, .cards, .technician-grid, .details-grid, .dashboard-panels, .form {
    grid-template-columns: 1fr;
  }

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

  .checkline {
    flex-direction: column;
    align-items: flex-start;
  }

  .signature-card, .schedule-cards, .schedule-team-grid, .timeline-block {
    grid-template-columns: 1fr;
  }

  .agenda-meta {
    flex-direction: column;
  }

  .table {
    min-width: 760px;
  }
}

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

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions {
    justify-content: stretch;
  }

  .actions a, .actions button, .hero-actions a {
    text-align: center;
    flex: 1;
    justify-content: center;
  }

  .card {
    border-radius: 16px;
    padding: 15px;
  }

  .topbar-actions {
    flex-direction: column;
  }

  .topbar-actions a {
    width: 100%;
  }
}

.shell {
  transition: grid-template-columns .18s;
}

.shell-collapsed .brand-copy, .shell-collapsed .demo-pill, .shell-collapsed .nav-label, .shell-collapsed .collapse-button strong {
  display: none;
}

.shell-collapsed .brand-wrap {
  justify-content: center;
}

.shell-collapsed .nav a {
  justify-content: center;
  padding: 12px;
}

.shell-collapsed .nav-icon {
  margin: 0;
}

.nav a {
  align-items: center;
  gap: 10px;
  display: flex;
}

.nav-icon {
  place-items: center;
  width: 24px;
  display: inline-grid;
}

.collapse-button {
  color: #fff;
  cursor: pointer;
  background: #ffffff14;
  border: 1px solid #ffffff2e;
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  font-weight: 800;
  display: flex;
}

.collapse-button:hover {
  background: #ffffff24;
}

.topbar-calendar {
  background: #f4f7fbf0;
}

.unscheduled-bar {
  border: 1px solid var(--border);
  box-shadow: var(--soft-shadow);
  background: #fff;
  border-radius: 14px;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  display: flex;
}

.unscheduled-bar strong {
  color: var(--blue);
  font-size: 28px;
}

.unscheduled-bar span {
  color: var(--text);
  margin-right: auto;
  font-weight: 800;
}

.calendar-toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  display: flex;
}

.calendar-month-nav h1 {
  text-transform: capitalize;
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
}

.calendar-month-nav p {
  color: var(--muted);
  margin: 4px 0 0;
}

.nav-square {
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  color: var(--blue);
  background: #fff;
  border-radius: 10px;
  place-items: center;
  font-size: 26px;
  font-weight: 900;
  display: grid;
}

.calendar-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.view-tabs {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  display: inline-flex;
  overflow: hidden;
}

.view-tabs a {
  color: var(--blue);
  border-right: 1px solid var(--border);
  padding: 11px 15px;
  font-weight: 800;
}

.view-tabs a:last-child {
  border-right: 0;
}

.view-tabs a.active {
  color: var(--blue);
  box-shadow: inset 0 -3px 0 var(--blue-2);
  background: #e3f2fd;
}

.compact-filter-bar {
  grid-template-columns: repeat(6, minmax(130px, 1fr)) auto;
  align-items: end;
  gap: 12px;
  display: grid;
}

.compact-filter-bar input, .compact-filter-bar select {
  border-radius: 12px;
  padding: 10px 11px;
}

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

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

.kpi-card {
  border: 1px solid var(--border);
  box-shadow: var(--soft-shadow);
  background: #fff;
  border-radius: 16px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px;
  display: flex;
}

.kpi-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.kpi-card strong {
  color: var(--blue);
  font-size: 24px;
}

.weekday-row strong {
  color: var(--muted);
  text-align: center;
  padding: 12px 10px;
  font-size: 13px;
}

.month-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  display: grid;
}

.month-cell {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
  align-content: start;
  gap: 6px;
  min-height: 154px;
  padding: 8px;
  display: grid;
}

.month-cell:nth-child(7n) {
  border-right: 0;
}

.month-cell.outside {
  color: #a0aec0;
  background: #f9fbfd;
}

.day-head {
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  display: flex;
}

.day-head span {
  color: var(--blue);
  font-weight: 900;
}

.day-head a {
  opacity: 0;
  width: 24px;
  height: 24px;
  color: var(--blue);
  background: #e3f2fd;
  border-radius: 7px;
  place-items: center;
  font-weight: 900;
  display: grid;
}

.month-cell:hover .day-head a {
  opacity: 1;
}

.day-events {
  gap: 5px;
  min-width: 0;
  display: grid;
}

.month-event {
  min-width: 0;
  color: var(--blue);
  border-radius: 8px;
  align-items: center;
  gap: 5px;
  padding: 3px 4px;
  font-size: 12px;
  line-height: 1.1;
  display: flex;
}

.month-event:hover {
  background: #f1f5f9;
}

.month-event strong {
  color: var(--text);
  flex: none;
}

.month-event span:last-child {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.event-dot {
  background: #cbd5e1;
  border-radius: 999px;
  flex: none;
  width: 10px;
  height: 10px;
}

.month-event.green .event-dot {
  background: var(--green);
}

.month-event.orange .event-dot {
  background: var(--orange);
}

.month-event.blue .event-dot {
  background: var(--blue-2);
}

.month-event.red .event-dot {
  background: var(--red);
}

.month-event.gray .event-dot {
  background: #c4c4c4;
}

.more-events {
  color: var(--muted);
  padding-left: 17px;
  font-size: 12px;
  font-weight: 800;
}

.muted-small {
  color: var(--muted);
  font-size: 12px;
}

.client-search {
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: end;
  gap: 12px;
  display: grid;
}

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

.client-card {
  gap: 14px;
  display: grid;
}

.client-card h2 {
  color: var(--blue);
  margin: 0;
}

.client-card p {
  color: var(--muted);
  margin: 4px 0 0;
}

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

.client-meta span {
  border: 1px solid var(--border);
  color: var(--text);
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px;
}

.location-box {
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 16px;
  gap: 6px;
  padding: 14px;
  display: grid;
}

.location-box strong {
  color: var(--blue);
}

.location-box span {
  font-weight: 800;
}

.location-box p {
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

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

.compact-client-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-section-title {
  color: var(--blue);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 18px;
  font-weight: 900;
}

.small-number {
  letter-spacing: 0;
  word-break: break-word;
  font-size: 18px;
}

.orientation-card .details-grid {
  margin: 12px 0;
}

@media (max-width: 1300px) {
  .compact-filter-bar, .agenda-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .client-grid, .compact-client-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .shell-collapsed {
    grid-template-columns: 1fr;
  }

  .calendar-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .calendar-actions {
    width: 100%;
  }

  .view-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .view-tabs a {
    text-align: center;
    white-space: nowrap;
    flex: 1;
  }

  .compact-filter-bar {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    justify-content: stretch;
  }

  .filter-actions a, .filter-actions button {
    text-align: center;
    flex: 1;
    justify-content: center;
  }

  .agenda-kpis {
    grid-template-columns: 1fr;
  }

  .month-calendar {
    overflow-x: auto;
  }

  .weekday-row, .month-grid {
    min-width: 980px;
  }

  .client-search, .client-meta {
    grid-template-columns: 1fr;
  }
}

:root {
  --shadow: 0 10px 24px #0f172a12;
  --soft-shadow: 0 4px 12px #0f172a0b;
}

body {
  font-size: 14px;
}

.sidebar {
  padding: 14px 10px;
}

.brand-wrap {
  gap: 9px;
  margin-bottom: 10px;
}

.brand-mark {
  border-radius: 11px;
  width: 34px;
  height: 34px;
  font-size: 14px;
}

.brand {
  font-size: 20px;
  line-height: 1.05;
}

.subtitle {
  font-size: 11px;
}

.demo-pill {
  margin: 8px 0 12px;
  padding: 5px 8px;
  font-size: 11px;
}

.nav {
  gap: 3px;
  margin-top: 12px;
}

.nav a {
  border-radius: 10px;
  gap: 8px;
  padding: 8px 10px;
  font-size: 13px;
}

.nav-icon {
  width: 18px;
  font-size: 13px;
}

.collapse-button {
  border-radius: 11px;
  padding: 8px 10px;
  font-size: 13px;
}

.shell-collapsed .sidebar {
  padding-left: 7px;
  padding-right: 7px;
}

.shell-collapsed .brand-mark {
  width: 36px;
  height: 36px;
}

.shell-collapsed .nav a {
  min-height: 34px;
  padding: 8px 0;
}

.main {
  padding: 12px 16px 24px;
}

.topbar {
  gap: 10px;
  min-height: 50px;
  margin: -12px -16px 12px;
  padding: 9px 16px;
}

.search {
  border-radius: 11px;
  width: min(430px, 42vw);
  padding: 9px 12px;
  font-size: 13px;
}

.topbar-actions {
  gap: 7px;
}

.primary, .secondary {
  border-radius: 11px;
  padding: 9px 12px;
  font-size: 13px;
}

.compact {
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 12px;
}

.demo-banner {
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 7px 12px;
  font-size: 13px;
}

.grid {
  gap: 10px;
}

.card {
  border-radius: 15px;
  padding: 12px;
}

.section-title {
  margin-bottom: 8px;
  font-size: clamp(18px, 1.6vw, 23px);
}

.muted {
  margin-top: -4px;
}

.agenda-page {
  gap: 9px;
}

.unscheduled-bar {
  border-radius: 11px;
  min-height: 38px;
  padding: 7px 12px;
}

.unscheduled-bar strong {
  font-size: 20px;
}

.calendar-toolbar {
  border-radius: 15px;
  padding: 10px 12px;
}

.calendar-month-nav {
  gap: 8px;
}

.calendar-month-nav h1 {
  font-size: clamp(21px, 2vw, 28px);
}

.calendar-month-nav p {
  margin-top: 2px;
  font-size: 13px;
}

.nav-square {
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 21px;
}

.calendar-actions {
  gap: 7px;
}

.view-tabs {
  border-radius: 10px;
}

.view-tabs a {
  padding: 9px 12px;
  font-size: 13px;
}

.compact-filter-bar {
  border-radius: 15px;
  grid-template-columns: 1.05fr repeat(5, minmax(105px, 1fr)) auto;
  gap: 8px;
  padding: 10px 12px;
}

.compact-filter-bar .field {
  gap: 3px;
}

.compact-filter-bar .field label {
  font-size: 11px;
}

.compact-filter-bar input, .compact-filter-bar select {
  border-radius: 9px;
  min-height: 36px;
  padding: 8px 9px;
  font-size: 13px;
}

.filter-actions {
  gap: 6px;
}

.agenda-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.kpi-card {
  border-radius: 12px;
  min-height: 42px;
  padding: 8px 10px;
}

.kpi-card span {
  font-size: 12px;
}

.kpi-card strong {
  font-size: 20px;
}

.weekday-row strong {
  padding: 8px;
  font-size: 12px;
}

.month-cell {
  gap: 4px;
  min-height: 92px;
  padding: 6px;
}

.day-head {
  font-size: 12px;
}

.day-head a {
  border-radius: 6px;
  width: 20px;
  height: 20px;
}

.day-events {
  gap: 3px;
}

.month-event {
  border-radius: 6px;
  gap: 4px;
  padding: 2px 3px;
  font-size: 11px;
  line-height: 1.05;
}

.event-dot {
  width: 8px;
  height: 8px;
}

.more-events {
  padding-left: 13px;
  font-size: 11px;
}

.form {
  gap: 10px;
}

.field {
  gap: 5px;
}

.field label {
  font-size: 12px;
}

.field input, .field select, .field textarea {
  border-radius: 10px;
  padding: 9px 10px;
}

.field textarea {
  min-height: 78px;
}

.actions {
  gap: 8px;
  margin-top: 12px;
}

.details-grid {
  gap: 8px;
}

.details-grid p {
  margin-top: 3px;
}

.mini-card, .mini-row, .checkline {
  border-radius: 10px;
  padding: 8px 10px;
}

.location-box {
  border-radius: 12px;
  padding: 10px;
}

.photo-grid {
  gap: 10px;
}

.photo-card {
  border-radius: 11px;
  padding: 8px;
}

.badge {
  padding: 4px 8px;
  font-size: 11px;
}

.table th, .table td {
  padding: 9px 8px;
  font-size: 13px;
}

@media (min-width: 1500px) {
  .month-cell {
    min-height: 100px;
  }
}

@media (max-width: 1300px) {
  .compact-filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .month-cell {
    min-height: 96px;
  }
}

@media (max-width: 1100px) {
  .shell, .shell-collapsed {
    grid-template-columns: 1fr;
  }

  .main {
    padding: 10px 12px 70px;
  }

  .topbar {
    margin: -10px -12px 10px;
    padding: 8px 12px;
  }

  .search {
    width: 100%;
  }
}

.status-actions-panel, .validation-actions-panel {
  gap: 10px;
  margin-top: 12px;
  display: grid;
}

.status-actions-title {
  color: var(--muted);
  align-items: center;
  gap: 10px;
  font-size: 13px;
  display: flex;
}

.status-actions-title strong {
  color: var(--blue-900);
  font-size: 15px;
}

.compact-alert {
  padding: 8px 10px;
  font-size: 13px;
}

.compact-text {
  margin: 0;
  font-size: 13px;
}

.badge.slate {
  color: #475569;
  background: #e2e8f0;
}

.badge.amber {
  color: #92400e;
  background: #fef3c7;
}

.badge.teal {
  color: #0f766e;
  background: #ccfbf1;
}

.badge.purple {
  color: #6d28d9;
  background: #ede9fe;
}

.badge.darkgreen {
  color: #14532d;
  background: #dcfce7;
}

.agenda-live-pill {
  color: #0f766e;
  white-space: nowrap;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
}

.live-dot {
  background: #22c55e;
  border-radius: 999px;
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 4px #22c55e24;
}

.month-cell.operational {
  min-height: 215px;
  padding: 10px;
}

.month-cell.operational:hover {
  background: #f8fbff;
  box-shadow: inset 0 0 0 2px #005ca81f;
}

.day-actions button {
  color: var(--blue);
  cursor: pointer;
  background: #eef6ff;
  border: 0;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 900;
}

.month-event {
  cursor: grab;
}

.month-event:active {
  cursor: grabbing;
}

.month-event.slate .event-dot {
  background: #94a3b8;
}

.month-event.amber .event-dot {
  background: #f59e0b;
}

.month-event.teal .event-dot {
  background: #14b8a6;
}

.month-event.purple .event-dot {
  background: #7c3aed;
}

.month-event.darkgreen .event-dot {
  background: #14532d;
}

.month-event.blue {
  background: #005ca80d;
}

.month-event.orange {
  background: #f57c000f;
}

.month-event.green {
  background: #2e7d3212;
}

.month-event.amber {
  background: #f59e0b17;
}

.month-event.purple {
  background: #7c3aed12;
}

.month-event.darkgreen {
  background: #14532d12;
}

.month-event.red {
  background: #c628280f;
}

.month-event.teal {
  background: #14b8a612;
}

.compact-user-form {
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  align-items: end;
}

.page-header-card {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

@media (min-width: 1500px) {
  .month-cell.operational {
    min-height: 235px;
  }
}

@media (max-width: 1300px) {
  .month-cell.operational {
    min-height: 150px;
  }

  .compact-user-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .month-cell.operational {
    min-height: 135px;
  }

  .agenda-live-pill {
    width: fit-content;
  }

  .compact-user-form {
    grid-template-columns: 1fr;
  }
}

.checkbox-card {
  border: 1px solid var(--border);
  cursor: pointer;
  background: #fff;
  border-radius: 12px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  display: flex;
}

.checkbox-card input {
  width: 16px;
  height: 16px;
}

.checkbox-card span {
  color: var(--text);
  font-size: 13px;
}

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

.calendar-month-nav h1 {
  text-transform: none;
  letter-spacing: -.02em;
}

.refresh-control {
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.agenda-live-pill.clean {
  color: #075985;
  background: #eef7ff;
  border-color: #bfdbfe;
  padding: 8px 10px;
}

.agenda-live-pill.clean .live-dot {
  background: #0ea5e9;
  box-shadow: 0 0 0 4px #0ea5e91f;
}

.refresh-now-button {
  border: 1px solid var(--border);
  color: var(--blue);
  cursor: pointer;
  background: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
}

.refresh-now-button:hover {
  background: #f8fbff;
  border-color: #005ca859;
}

.refresh-now-button:disabled {
  opacity: .7;
  cursor: progress;
}

.status-legend {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  display: flex;
}

.status-legend > strong {
  color: var(--blue);
  font-size: 13px;
}

.status-legend > div {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  display: flex;
}

.legend-item {
  color: var(--muted);
  white-space: nowrap;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
}

.legend-item i {
  background: #94a3b8;
  border-radius: 999px;
  width: 9px;
  height: 9px;
  display: inline-block;
}

.legend-item.blue i {
  background: var(--blue-2);
}

.legend-item.orange i {
  background: var(--orange);
}

.legend-item.green i {
  background: var(--green);
}

.legend-item.amber i {
  background: #f59e0b;
}

.legend-item.teal i {
  background: #14b8a6;
}

.legend-item.purple i {
  background: #7c3aed;
}

.legend-item.darkgreen i {
  background: #14532d;
}

.legend-item.red i {
  background: var(--red);
}

.legend-item.slate i {
  background: #94a3b8;
}

.month-cell.operational {
  min-height: 245px;
}

.month-event {
  border: 1px solid #d9e2eca6;
  min-height: 22px;
}

.month-event strong, .month-event span:last-child {
  font-size: 11px;
}

.more-events-button {
  color: var(--blue);
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 2px 0 2px 15px;
  font-size: 11px;
  font-weight: 900;
}

.toast-message {
  border: 1px solid var(--border);
  box-shadow: var(--soft-shadow);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
}

.toast-message.success {
  color: #14532d;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.toast-message.warning {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.toast-message.error {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.modal-backdrop {
  z-index: 80;
  background: #0f172a6b;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}

.modal-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 20px;
  width: min(560px, 100%);
  max-height: min(80vh, 720px);
  padding: 18px;
  overflow: auto;
  box-shadow: 0 24px 70px #0f172a3d;
}

.modal-card h2 {
  color: var(--blue);
  margin: 0 0 8px;
}

.modal-card p {
  margin: 0 0 10px;
  line-height: 1.45;
}

.modal-actions {
  justify-content: flex-end;
}

.day-panel-modal {
  width: min(760px, 100%);
}

.day-panel-list {
  gap: 8px;
  margin-top: 12px;
  display: grid;
}

.day-panel-row {
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 13px;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  display: grid;
}

.day-panel-row small {
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 2px;
  display: block;
  overflow: hidden;
}

.day-panel-row.blue .event-dot {
  background: var(--blue-2);
}

.day-panel-row.orange .event-dot {
  background: var(--orange);
}

.day-panel-row.green .event-dot {
  background: var(--green);
}

.day-panel-row.amber .event-dot {
  background: #f59e0b;
}

.day-panel-row.teal .event-dot {
  background: #14b8a6;
}

.day-panel-row.purple .event-dot {
  background: #7c3aed;
}

.day-panel-row.darkgreen .event-dot {
  background: #14532d;
}

.day-panel-row.red .event-dot {
  background: var(--red);
}

.day-panel-row.slate .event-dot {
  background: #94a3b8;
}

.alert.compact-alert, .alert.full {
  white-space: normal;
  word-break: break-word;
}

@media (max-width: 1300px) {
  .month-cell.operational {
    min-height: 185px;
  }

  .month-grid-operational {
    min-height: 780px;
  }

  .status-legend {
    flex-direction: column;
    align-items: flex-start;
  }

  .status-legend > div {
    justify-content: flex-start;
  }
}

@media (max-width: 1100px) {
  .month-cell.operational {
    min-height: 155px;
  }

  .refresh-control {
    width: 100%;
  }

  .refresh-now-button {
    flex: 1;
  }
}

:root {
  --brand: #003b71;
  --brand-2: #005ca8;
  --brand-3: #0f7bd2;
  --surface: #fff;
  --surface-soft: #f8fbff;
  --ring: #005ca824;
}

body {
  background: radial-gradient(circle at 0 0, #005ca814, #0000 34%), #f5f7fa;
}

.sidebar {
  background: linear-gradient(#062f55 0%, #05233f 54%, #031a30 100%);
  box-shadow: 20px 0 50px #0f172a1a;
}

.brand-mark {
  color: var(--brand);
  background: linear-gradient(135deg, #fff 0%, #dff0ff 100%);
  box-shadow: 0 12px 30px #0000001f;
}

.subtitle {
  color: #cfe8ff;
}

.nav a:hover {
  background: #ffffff24;
  border-color: #ffffff1a;
  transform: translateX(3px);
}

.topbar {
  background: #f5f7fad1;
  box-shadow: 0 12px 28px #0f172a0a;
}

.search {
  border-radius: 16px;
  min-height: 42px;
}

.card {
  border: 1px solid #d9e2ece6;
  border-radius: 22px;
  box-shadow: 0 12px 36px #0f172a0f;
}

.card:hover {
  box-shadow: 0 18px 48px #0f172a17;
}

.primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
  box-shadow: 0 12px 28px #005ca833;
}

.secondary {
  border-color: #003b7124;
  box-shadow: 0 6px 18px #0f172a0a;
}

.calendar-toolbar {
  background: linear-gradient(135deg, #fff 0%, #eef7ff 100%);
  border-color: #005ca81f;
}

.calendar-toolbar h1 {
  letter-spacing: -.8px;
}

.calendar-toolbar p {
  color: #64748b;
}

.view-tabs {
  background: #edf4fb;
  border: 1px solid #005ca814;
  border-radius: 14px;
  padding: 4px;
}

.view-tabs a {
  border-radius: 11px;
}

.view-tabs a.active {
  color: var(--brand);
  background: #fff;
  box-shadow: 0 8px 18px #0f172a14;
}

.compact-filter-bar {
  background: #ffffffeb;
}

.agenda-kpis .kpi-card {
  background: #fff;
  border: 1px solid #d9e2ecf2;
  border-radius: 18px;
  box-shadow: 0 10px 24px #0f172a0b;
}

.kpi-card strong {
  letter-spacing: -.6px;
  color: #0f172a;
}

.status-legend {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  display: flex;
}

.status-legend > div {
  justify-content: flex-end;
}

.month-calendar {
  padding: 0;
  overflow: hidden;
}

.weekday-row {
  background: #f1f7ff;
  border-bottom: 1px solid #005ca81f;
}

.month-cell.operational {
  background: #fff;
  min-height: 255px;
}

.month-cell.operational:hover {
  box-shadow: inset 0 0 0 2px var(--ring);
  background: #f8fbff;
}

.day-head span {
  color: #0f172a;
}

.day-actions button {
  color: var(--brand);
  background: #eef7ff;
  border: 1px solid #005ca81f;
}

.month-event {
  border: 1px solid #0000;
  width: 100%;
}

.event-button {
  appearance: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  background: none;
}

.month-event:hover {
  background: #f8fafc;
  border-color: #005ca814;
  transform: translateY(-1px);
}

.month-event.blue {
  color: #005ca8;
  background: #005ca812;
}

.month-event.orange {
  color: #b45309;
  background: #f57c0017;
}

.month-event.green {
  color: #166534;
  background: #2e7d3217;
}

.month-event.red {
  color: #991b1b;
  background: #c6282814;
}

.month-event.slate {
  color: #475569;
  background: #64748b14;
}

.more-events-button {
  color: var(--brand);
  cursor: pointer;
  background: #f8fbff;
  border: 1px dashed #005ca840;
  border-radius: 10px;
  padding: 5px;
  font-weight: 900;
}

.modal-card {
  border-radius: 24px;
  box-shadow: 0 28px 90px #0f172a47;
}

.os-quick-panel {
  width: min(520px, 100%);
}

.quick-os-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
  display: grid;
}

.quick-os-grid div {
  border: 1px solid var(--border);
  background: #f8fbff;
  border-radius: 16px;
  padding: 12px;
}

.quick-os-grid span {
  color: var(--muted);
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 800;
  display: block;
}

.quick-os-grid strong {
  color: #0f172a;
}

.table th, .table tr:hover td {
  background: #f8fbff;
}

.os-tabs, .tasken-tabs {
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 12px;
  display: flex;
}

.os-tabs a, .tasken-tabs a {
  color: var(--brand);
  background: #f1f7ff;
  border: 1px solid #005ca81f;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
}

.progress-line {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 14px;
  display: grid;
}

.progress-line span {
  color: #64748b;
  text-align: center;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 7px 8px;
  font-size: 11px;
  font-weight: 900;
}

.progress-line span.done {
  color: #166534;
  background: #dcfce7;
}

@media (max-width: 1100px) {
  .month-cell.operational {
    min-height: 190px;
  }

  .status-legend {
    flex-direction: column;
    align-items: flex-start;
  }
}

.tasken-logo-mark {
  background: #f8fbff;
  border: 1px solid #ffffff8c;
  border-radius: 14px;
  place-items: center;
  width: 44px;
  height: 44px;
  display: grid;
  position: relative;
  box-shadow: inset 0 0 0 1px #003b7114, 0 10px 24px #0000001f;
}

.tasken-logo-card {
  border: 3px solid var(--blue);
  border-radius: 7px;
  width: 25px;
  height: 30px;
  position: absolute;
  transform: translate(3px, 1px);
}

.tasken-logo-card:before {
  content: "";
  background: var(--blue-2);
  width: 7px;
  height: 3px;
  box-shadow: 0 7px 0 var(--blue-2), 0 14px 0 var(--blue-2);
  border-radius: 2px;
  position: absolute;
  top: 5px;
  left: -6px;
}

.tasken-logo-t {
  z-index: 1;
  color: var(--blue);
  letter-spacing: -1px;
  font-size: 22px;
  font-weight: 950;
  position: relative;
  transform: translateX(-3px);
}

.sidebar {
  background: linear-gradient(#073b68 0%, #041f37 100%);
}

.brand {
  letter-spacing: -.6px;
}

.nav a {
  border: 1px solid #0000;
}

.nav a:hover {
  background: #ffffff1a;
  border-color: #ffffff1f;
}

.lovable-page {
  gap: 18px;
}

.lovable-hero {
  border: 1px solid var(--border);
  box-shadow: var(--soft-shadow);
  background: linear-gradient(135deg, #fff 0%, #edf7ff 100%);
  border-radius: 22px;
  padding: 22px;
}

.eyebrow {
  width: fit-content;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #e3f2fd;
  border-radius: 999px;
  margin-bottom: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
}

.lovable-table-card {
  border-radius: 22px;
  padding: 18px 22px;
}

.lovable-form-card {
  border-radius: 22px;
  padding: 22px;
}

.wizard-form .form-section-title {
  color: #0f3557;
  border-top: 0;
  border-left: 4px solid var(--blue-2);
  background: linear-gradient(90deg, #eef7ff, #0000);
  border-radius: 12px;
  margin-top: 8px;
  padding: 11px 12px;
}

.row-actions {
  align-items: center;
  gap: 8px;
  display: flex;
}

.shell-collapsed .tasken-logo-mark {
  width: 42px;
  height: 42px;
}

.shell-collapsed .brand-wrap {
  margin-left: 0;
}

.tasken-tabs {
  z-index: 4;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  background: #f4f7fbeb;
  border-radius: 16px;
  gap: 6px;
  padding: 8px;
  display: flex;
  position: sticky;
  top: 76px;
  overflow-x: auto;
}

.tasken-tabs a {
  color: var(--blue);
  border-radius: 12px;
  flex: none;
  padding: 10px 13px;
  font-weight: 850;
}

.tasken-tabs a:hover {
  background: #e3f2fd;
}

.progress-line {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin: 18px 0;
  display: grid;
}

.progress-line span {
  color: var(--blue);
  text-align: center;
  background: #edf5ff;
  border: 1px solid #d5e7f8;
  border-radius: 999px;
  padding: 7px 8px;
  font-size: 12px;
  font-weight: 850;
}

@media (max-width: 900px) {
  .progress-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tasken-tabs {
    top: 0;
  }
}

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

.mobile-brandbar-copy .tasken-brand.compact .brand-copy {
  gap: 0;
}

.tasken-brand {
  align-items: center;
  gap: 12px;
  display: flex;
}

.tasken-brand.compact .tasken-logo-mark {
  width: 42px;
  height: 42px;
}

.tasken-brand.compact .brand-wordmark {
  font-size: 20px;
}

.tasken-brand.compact .subtitle {
  display: none;
}

.brand-wrap {
  margin-bottom: 12px;
}

.brand-copy {
  gap: 2px;
  display: grid;
}

.brand-wordmark {
  letter-spacing: -.04em;
  align-items: baseline;
  gap: 0;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  display: flex;
}

.brand-wordmark-task {
  background: linear-gradient(#3b9cff 0%, #0b5ad7 100%);
  color: #0000;
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-wordmark-name, .brand-wordmark-os {
  color: #f8fbff;
}

.brand-wordmark-os {
  color: #dbeafe;
  background: #ffffff14;
  border: 1px solid #ffffff1f;
  border-radius: 999px;
  margin-left: 8px;
  padding: 4px 8px;
  font-size: 17px;
}

.tasken-logo-mark.refined {
  background: linear-gradient(#fdfefe 0%, #eef7ff 100%);
  border-radius: 18px;
  place-items: center;
  width: 56px;
  height: 56px;
  display: grid;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #0000000a, 0 12px 28px #0000002e;
}

.tasken-logo-rings {
  z-index: 3;
  gap: 11px;
  display: grid;
  position: absolute;
  top: 12px;
  left: 5px;
}

.tasken-logo-rings i {
  border: 4px solid #cfd7e6;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  width: 14px;
  height: 7px;
  display: block;
}

.tasken-logo-sheet {
  background: linear-gradient(#2d8cff 0%, #0b57d0 84%);
  border-radius: 13px;
  width: 38px;
  height: 42px;
  position: relative;
  box-shadow: inset 0 0 0 1px #ffffff38;
}

.tasken-logo-sheet:before {
  content: "";
  background: #fffffff5;
  border-radius: 999px;
  width: 24px;
  height: 7px;
  position: absolute;
  top: 8px;
  left: 7px;
}

.tasken-logo-sidebar-dots {
  gap: 3px;
  display: grid;
  position: absolute;
  bottom: 7px;
  left: 4px;
}

.tasken-logo-sidebar-dots i {
  background: #dbe3ef;
  border-radius: 999px;
  width: 4px;
  height: 4px;
}

.tasken-logo-sidebar-dots i:first-child {
  background: #24334d;
}

.tasken-logo-sidebar-dots i:nth-child(2) {
  background: #16c8a1;
}

.tasken-logo-sidebar-dots i:nth-child(3) {
  background: #d6d9df;
}

.tasken-logo-t {
  color: #fff;
  text-shadow: 0 1px 2px #00000014;
  place-items: center;
  font-size: 30px;
  font-weight: 950;
  display: grid;
  position: absolute;
  inset: 0;
}

.tasken-logo-corner {
  background: linear-gradient(135deg, #ffffff1f 0%, #ffffffeb 100%);
  border-top-left-radius: 12px;
  width: 13px;
  height: 13px;
  position: absolute;
  bottom: 0;
  right: 0;
}

.calendar-actions {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  display: flex;
}

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

.filter-popover summary {
  list-style: none;
}

.filter-toggle {
  min-width: 42px;
  padding-inline: 10px;
}

.filter-popover-panel {
  z-index: 18;
  background: #fff;
  border: 1px solid #005ca81f;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(860px, 100vw - 48px);
  display: grid;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  box-shadow: 0 22px 48px #0f172a29;
}

.filter-popover-panel .field {
  gap: 4px;
}

.filter-popover-panel .field label {
  color: #5b6b80;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 11px;
  font-weight: 800;
}

.filter-popover-panel input, .filter-popover-panel select {
  min-height: 40px;
}

.filter-popover-panel .filter-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
  display: flex;
}

.agenda-kpis-secondary {
  margin-top: 4px;
}

.month-calendar {
  overflow: auto;
}

.weekday-row, .month-grid {
  min-width: 1120px;
}

.month-grid-operational {
  min-height: auto !important;
}

.month-grid-operational .month-cell {
  aspect-ratio: 1 / .96;
  padding: 8px;
  min-height: 158px !important;
}

.month-grid-operational .day-events {
  align-content: start;
  overflow: hidden;
}

.month-grid-operational .month-event, .month-grid-operational .more-events-button {
  min-height: 22px;
}

.status-legend {
  margin-top: 2px;
}

@media (max-width: 1240px) {
  .filter-popover-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(680px, 100vw - 36px);
  }

  .month-grid-operational .month-cell {
    aspect-ratio: auto;
    min-height: 140px !important;
  }
}

@media (max-width: 1100px) {
  .toolbar-inline-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .filter-popover-panel {
    grid-template-columns: 1fr;
    width: min(520px, 100vw - 28px);
    left: 0;
    right: auto;
  }

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

@media (max-width: 760px) {
  .brand-wordmark {
    font-size: 26px;
  }

  .brand-wordmark-os {
    display: none;
  }

  .agenda-kpis {
    grid-template-columns: 1fr;
  }
}

.shell {
  grid-template-columns: 295px minmax(0, 1fr) !important;
}

.shell-collapsed {
  grid-template-columns: 74px minmax(0, 1fr) !important;
}

.lovable-sidebar {
  color: #d8e6f7 !important;
  height: 100vh !important;
  box-shadow: none !important;
  background: #062d51 !important;
  border-right: 1px solid #ffffff14 !important;
  flex-direction: column !important;
  padding: 16px 10px 14px !important;
  display: flex !important;
}

.lovable-brand-wrap {
  align-items: center;
  min-height: 54px;
  display: flex;
  overflow: hidden;
  margin: 0 4px 18px !important;
}

.tasken-image-brand {
  align-items: center;
  min-width: 0;
  display: flex;
}

.tasken-image-logo.full {
  object-fit: contain;
  width: 232px;
  max-width: 100%;
  height: auto;
  display: block;
}

.tasken-image-logo.icon {
  object-fit: contain;
  width: 46px;
  height: 46px;
  display: none;
}

.shell-collapsed .tasken-image-logo.full {
  display: none;
}

.shell-collapsed .tasken-image-logo.icon {
  display: block;
}

.shell-collapsed .lovable-brand-wrap {
  justify-content: center;
  margin: 0 0 18px !important;
}

.lovable-nav {
  flex: 1 !important;
  align-content: start !important;
  gap: 5px !important;
  margin-top: 0 !important;
  display: grid !important;
}

.lovable-nav a {
  color: #c7d7ea !important;
  background: none !important;
  border: 1px solid #0000 !important;
  border-radius: 10px !important;
  align-items: center !important;
  gap: 13px !important;
  min-height: 42px !important;
  padding: 10px 12px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  display: flex !important;
}

.lovable-nav a:hover, .lovable-nav a:focus-visible {
  color: #fff !important;
  background: #1358927a !important;
  border-color: #a0c3e624 !important;
}

.lovable-nav a[aria-current="page"], .lovable-nav a.active {
  color: #fff !important;
  background: #005ca86b !important;
  border-color: #accef247 !important;
}

.nav-icon {
  color: #b9cae0 !important;
  flex: 0 0 22px !important;
  place-items: center !important;
  width: 22px !important;
  height: 22px !important;
  font-size: 0 !important;
  display: inline-grid !important;
}

.lovable-nav a:hover .nav-icon {
  color: #fff !important;
}

.nav-svg {
  width: 21px;
  height: 21px;
  display: block;
}

.shell-collapsed .lovable-nav a {
  justify-content: center !important;
  gap: 0 !important;
  padding: 10px 0 !important;
}

.shell-collapsed .nav-label {
  display: none !important;
}

.lovable-collapse {
  color: #c7d7ea !important;
  background: none !important;
  border: 0 !important;
  border-top: 1px solid #ffffff14 !important;
  border-radius: 0 !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 44px !important;
  margin-top: auto !important;
  padding: 14px 8px 0 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  display: flex !important;
}

.shell-collapsed .lovable-collapse strong {
  display: none !important;
}

.shell-collapsed .lovable-collapse {
  padding-top: 14px !important;
}

.side-drawer-backdrop {
  z-index: 80;
  pointer-events: none;
  justify-content: flex-end;
  display: flex;
  position: fixed;
  inset: 0;
}

.side-drawer-scrim {
  pointer-events: auto;
  cursor: default;
  background: #0f172a61;
  border: 0;
  position: absolute;
  inset: 0;
}

.os-side-drawer {
  z-index: 1;
  pointer-events: auto;
  background: #f8fafc;
  border-left: 1px solid #d9e2ec;
  grid-template-rows: auto 1fr auto;
  width: min(520px, 100vw);
  height: 100vh;
  animation: .18s ease-out taskenDrawerIn;
  display: grid;
  position: relative;
  box-shadow: -24px 0 54px #0f172a38;
}

@keyframes taskenDrawerIn {
  from {
    opacity: .72;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.os-drawer-header {
  background: #fff;
  border-bottom: 1px solid #d9e2ec;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
  padding: 0 20px;
  display: flex;
}

.os-drawer-header strong {
  color: #0f172a;
  letter-spacing: -.02em;
  font-size: 17px;
}

.os-drawer-header button {
  color: #0f172a;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  font-size: 26px;
  line-height: 1;
}

.os-drawer-body {
  gap: 14px;
  padding: 18px 20px 96px;
  display: grid;
  overflow: auto;
}

.drawer-status-pill {
  color: #0f172a;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 999px;
  justify-self: start;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
}

.drawer-status-pill i, .day-panel-row .event-dot, .month-event .event-dot {
  box-shadow: none !important;
}

.drawer-status-pill.blue i {
  background: #1d74d8;
}

.drawer-status-pill.orange i {
  background: #e4811c;
}

.drawer-status-pill.green i {
  background: #178a45;
}

.drawer-status-pill.amber i {
  background: #c9971a;
}

.drawer-status-pill.teal i {
  background: #159c8b;
}

.drawer-status-pill.purple i {
  background: #303f9f;
}

.drawer-status-pill.darkgreen i {
  background: #126b37;
}

.drawer-status-pill.red i {
  background: #d33b3b;
}

.os-drawer-title h2 {
  letter-spacing: -.04em;
  color: #0f172a;
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.drawer-info-card {
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  gap: 4px;
  padding: 13px 14px;
  display: grid;
}

.drawer-info-card span {
  color: #43546b;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
}

.drawer-info-card strong {
  color: #0f172a;
  font-size: 16px;
}

.drawer-info-card p {
  color: #43546b;
  margin: 0;
  line-height: 1.35;
}

.os-drawer-footer {
  background: #fffffff5;
  border-top: 1px solid #d9e2ec;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 14px 20px;
  display: grid;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  box-shadow: 0 -10px 20px #0f172a0d;
}

.os-drawer-footer .primary, .os-drawer-footer .secondary {
  text-align: center;
  justify-content: center;
}

.os-drawer-footer .primary {
  color: #fff;
  background: #062d51;
}

@media (max-width: 700px) {
  .os-side-drawer {
    width: 100vw;
  }

  .drawer-two-cols {
    grid-template-columns: 1fr;
  }

  .tasken-image-logo.full {
    width: 190px;
  }
}

:root {
  --lv-bg: #f5f7fa;
  --lv-card: #fff;
  --lv-text: #1b2a41;
  --lv-muted: #64748b;
  --lv-border: #dde6ef;
  --lv-primary: #003b71;
  --lv-secondary: #005ca8;
  --lv-soft: #eaf4ff;
  --lv-sidebar: #042c51;
  --lv-sidebar-accent: #083e70;
  --lv-sidebar-border: #ffffff1a;
  --lv-shadow-card: 0 1px 2px #0f172a0a, 0 1px 3px #0f172a0d;
  --lv-shadow-elevated: 0 18px 46px #0f172a29;
}

html, body {
  color: var(--lv-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 14px;
  background: var(--lv-bg) !important;
}

body {
  overflow-x: hidden;
}

.mobile-brandbar, .mobile-nav {
  display: none !important;
}

.lovable-shell {
  background: var(--lv-bg);
  min-height: 100vh;
  display: flex;
}

.lovable-sidebar {
  background: var(--lv-sidebar);
  color: #fffffff0;
  z-index: 50;
  flex-direction: column;
  flex: none;
  height: 100vh;
  transition: width .2s;
  display: flex;
  position: sticky;
  top: 0;
  box-shadow: inset -1px 0 #ffffff0f;
}

.lovable-brand {
  border-bottom: 1px solid var(--lv-sidebar-border);
  align-items: center;
  min-height: 80px;
  padding: 13px 14px;
  display: flex;
  overflow: hidden;
}

.lovable-brand.collapsed-brand {
  justify-content: center;
  padding: 12px 8px;
}

.tasken-sidebar-logo-full {
  filter: drop-shadow(0 3px 6px #00000038);
  width: 192px;
  max-width: 192px;
  height: auto;
  display: block;
}

.tasken-sidebar-logo-icon {
  object-fit: contain;
  filter: drop-shadow(0 3px 6px #00000038);
  width: 38px;
  height: 44px;
  display: block;
}

.lovable-nav {
  flex: 1;
  padding: 12px 8px;
  overflow-y: auto;
}

.lovable-nav a {
  color: #ffffffc2;
  border-radius: 8px;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 9px 10px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transition: background .18s, color .18s;
  display: flex;
}

.lovable-sidebar.collapsed .lovable-nav a {
  justify-content: center;
  padding: 9px;
}

.lovable-nav a:hover {
  color: #fff;
  background: #ffffff14;
}

.lovable-nav a.active {
  color: #fff;
  background: var(--lv-sidebar-accent);
  box-shadow: inset 2px 0 #ffffffa6;
}

.nav-svg {
  color: currentColor;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.lovable-collapse {
  border: 0;
  border-top: 1px solid var(--lv-sidebar-border);
  color: #ffffffbd;
  cursor: pointer;
  background: none;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  font-size: 13px;
  font-weight: 650;
  display: flex;
}

.lovable-collapse:hover {
  color: #fff;
  background: #ffffff14;
}

.lovable-collapse span {
  font-size: 24px;
  line-height: 1;
}

.lovable-main-wrap {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}

.lovable-topbar {
  z-index: 35;
  border-bottom: 1px solid var(--lv-border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: #ffffffeb;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 12px 22px;
  display: flex;
  position: sticky;
  top: 0;
}

.top-search-wrap {
  flex: 1;
  max-width: 640px;
  position: relative;
}

.top-search-wrap input {
  width: 100%;
  height: 38px;
  color: var(--lv-text);
  background: #fff;
  border: 1px solid #cbd7e3;
  border-radius: 8px;
  outline: none;
  padding: 0 12px 0 36px;
  font-size: 14px;
}

.top-search-wrap input:focus {
  border-color: var(--lv-secondary);
  box-shadow: 0 0 0 3px #005ca81f;
}

.top-search-icon {
  fill: none;
  stroke: #64748b;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  width: 16px;
  height: 16px;
  position: absolute;
  top: 50%;
  left: 11px;
  transform: translateY(-50%);
}

.lovable-top-actions {
  align-items: center;
  gap: 10px;
  margin-left: auto;
  display: flex;
}

.lovable-top-actions a {
  color: #0f2340;
  background: #fff;
  border: 1px solid #d7e2ed;
  border-radius: 8px;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  display: inline-flex;
  box-shadow: 0 1px 2px #0f172a0a;
}

.lovable-top-actions a:hover {
  background: #f8fbff;
}

.lovable-top-actions .top-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--lv-secondary), var(--lv-primary));
  border-color: #0000;
  box-shadow: 0 8px 18px #005ca82e;
}

.notification-link span {
  color: #fff;
  background: #c21f32;
  border-radius: 999px;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  display: grid;
}

.lovable-main {
  flex: 1;
  min-width: 0;
  padding: 22px;
}

.card {
  padding: 16px;
  background: var(--lv-card) !important;
  border: 1px solid var(--lv-border) !important;
  box-shadow: var(--lv-shadow-card) !important;
  border-radius: 10px !important;
}

.primary, button.primary, a.primary {
  justify-content: center;
  align-items: center;
  min-height: 38px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  display: inline-flex;
  box-shadow: 0 8px 18px #005ca829;
  background: linear-gradient(180deg, var(--lv-secondary), var(--lv-primary)) !important;
  color: #fff !important;
  border: 1px solid #0000 !important;
  border-radius: 8px !important;
  padding: 0 14px !important;
}

.secondary, button.secondary, a.secondary {
  justify-content: center;
  align-items: center;
  min-height: 38px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  color: #0f2340 !important;
  background: #fff !important;
  border: 1px solid #d7e2ed !important;
  border-radius: 8px !important;
  padding: 0 12px !important;
}

input, select, textarea {
  border-color: #cbd7e3 !important;
  border-radius: 8px !important;
}

.agenda-page {
  gap: 14px;
  display: grid;
}

.calendar-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  box-shadow: none !important;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  display: grid !important;
}

.calendar-month-nav {
  align-items: center;
  gap: 10px;
  display: flex;
}

.calendar-month-nav h1 {
  letter-spacing: -.025em;
  color: #0f172a;
  margin: 0;
  font-size: 22px;
  font-weight: 850;
}

.calendar-month-nav p {
  color: #64748b;
  margin: 3px 0 0;
  font-size: 13px;
}

.nav-square {
  width: 38px;
  height: 38px;
  color: var(--lv-primary);
  background: #fff;
  border: 1px solid #d7e2ed;
  border-radius: 8px;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  display: grid;
}

.calendar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  display: flex;
}

.view-tabs {
  background: #edf5fd;
  border: 1px solid #d7e2ed;
  border-radius: 10px;
  align-items: center;
  gap: 2px;
  height: 40px;
  padding: 2px;
  display: inline-flex;
}

.view-tabs a {
  color: #0f2340;
  background: none;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  height: 34px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  box-shadow: none !important;
  border: 0 !important;
}

.view-tabs a.active {
  color: #fff;
  background: var(--lv-primary);
}

.toolbar-inline-actions {
  align-items: center;
  gap: 8px;
  display: flex;
}

.refresh-control {
  color: #166534;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 750;
  display: inline-flex;
}

.refresh-dot {
  background: #22c55e;
  border-radius: 999px;
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 4px #22c55e1f;
}

.filter-popover {
  position: relative;
}

.filter-popover summary {
  cursor: pointer;
  list-style: none;
}

.filter-popover summary::-webkit-details-marker {
  display: none;
}

.filter-toggle {
  width: 40px;
  min-width: 40px;
  padding: 0 !important;
}

.filter-glyph {
  gap: 3px;
  width: 16px;
  display: grid;
}

.filter-glyph i {
  background: currentColor;
  border-radius: 999px;
  height: 2px;
  display: block;
}

.filter-glyph i:first-child {
  width: 16px;
}

.filter-glyph i:nth-child(2) {
  width: 11px;
}

.filter-glyph i:nth-child(3) {
  width: 7px;
}

.filter-popover-panel {
  z-index: 20;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(820px, 100vw - 80px);
  display: grid;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  box-shadow: var(--lv-shadow-elevated) !important;
}

.field label {
  color: #64748b;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  display: block;
}

.field input, .field select {
  width: 100%;
  height: 38px;
  color: var(--lv-text);
  background: #fff;
  padding: 0 10px;
  font-size: 13px;
}

.filter-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 8px;
  display: flex;
}

.status-legend {
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  display: flex;
  margin: 0 !important;
  padding: 10px 14px !important;
}

.status-legend strong {
  color: #64748b;
  text-transform: none;
  font-size: 12px;
}

.status-legend div {
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  display: flex;
}

.legend-item {
  color: #0f172acc;
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.legend-item i, .event-dot {
  background: var(--dot, #94a3b8);
  border-radius: 999px;
  width: 8px;
  height: 8px;
  display: inline-block;
}

.slate {
  --dot: #94a3b8;
}

.blue {
  --dot: #2563eb;
}

.orange {
  --dot: #d97706;
}

.green {
  --dot: #16a34a;
}

.amber {
  --dot: #d6a400;
}

.teal {
  --dot: #0d9488;
}

.purple {
  --dot: #312e81;
}

.darkgreen {
  --dot: #166534;
}

.red {
  --dot: #dc2626;
}

.month-calendar {
  overflow: hidden;
  padding: 0 !important;
}

.weekday-row {
  border-bottom: 1px solid var(--lv-border);
  background: #eef3f7;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  display: grid;
}

.weekday-row strong {
  text-align: center;
  color: #475569;
  letter-spacing: .05em;
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 800;
}

.month-grid-operational {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  display: grid;
}

.month-cell.operational {
  aspect-ratio: 1 / .78;
  border-right: 1px solid var(--lv-border);
  border-bottom: 1px solid var(--lv-border);
  background: #fff;
  padding: 8px;
  transition: background .15s;
  position: relative;
  min-height: 122px !important;
}

.month-cell.operational:hover {
  background: #eaf4ff8c;
}

.month-cell.operational.outside {
  color: #94a3b8;
  background: #f8fafc;
}

.day-head {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  display: flex;
}

.day-head > span {
  color: #10233f;
  border-radius: 999px;
  place-items: center;
  width: 25px;
  height: 25px;
  font-size: 13px;
  font-weight: 760;
  display: grid;
}

.day-actions {
  align-items: center;
  gap: 4px;
  display: flex;
}

.day-actions button, .day-actions a {
  background: var(--lv-soft);
  min-width: 20px;
  height: 20px;
  color: var(--lv-primary);
  border: 0;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
}

.day-events {
  gap: 5px;
  display: grid;
}

.month-event.event-button {
  border: 1px solid var(--lv-border);
  border-left: 3px solid var(--dot, #94a3b8);
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  width: 100%;
  min-height: 24px;
  box-shadow: var(--lv-shadow-card);
  background: #fff;
  border-radius: 5px;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  font-size: 11px;
  line-height: 1.2;
  display: flex;
}

.month-event.event-button strong {
  font-size: 11px;
}

.month-event.event-button span:last-child {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.more-events-button {
  color: #64748b;
  background: #eef2f6;
  border: 0;
  border-radius: 5px;
  min-height: 20px;
  font-size: 10px;
  font-weight: 800;
}

.agenda-kpis-secondary, .agenda-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.kpi-card {
  border: 1px solid var(--lv-border);
  min-height: 68px;
  box-shadow: var(--lv-shadow-card);
  background: #fff;
  border-radius: 10px;
  padding: 13px 16px;
}

.kpi-card span {
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 11px;
  font-weight: 800;
  display: block;
}

.kpi-card strong {
  color: var(--lv-primary);
  margin-top: 4px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  display: block;
}

.kpi-card.warning strong {
  color: #dc2626;
}

.side-drawer-backdrop {
  z-index: 1000;
  position: fixed;
  inset: 0;
}

.side-drawer-scrim {
  background: #0000004d;
  border: 0;
  position: absolute;
  inset: 0;
}

.os-side-drawer, .day-side-drawer {
  background: var(--lv-bg);
  flex-direction: column;
  width: min(506px, 100vw);
  height: 100%;
  display: flex;
  position: absolute;
  top: 0;
  right: 0;
  box-shadow: -20px 0 45px #0f172a3d;
}

.os-drawer-header {
  border-bottom: 1px solid var(--lv-border);
  background: #fff;
  flex: none;
  justify-content: space-between;
  align-items: center;
  min-height: 66px;
  padding: 0 18px;
  display: flex;
}

.os-drawer-header strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 850;
}

.os-drawer-header button {
  color: #0f172a;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 8px;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 24px;
  line-height: 1;
  display: grid;
}

.os-drawer-header button:hover {
  background: #f1f5f9;
}

.os-drawer-body {
  flex: 1;
  gap: 12px;
  padding: 18px;
  display: grid;
  overflow-y: auto;
}

.drawer-status-pill {
  border: 1px solid var(--lv-border);
  color: #0f172a;
  background: #fff;
  border-radius: 999px;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 650;
  display: inline-flex;
}

.drawer-status-pill i {
  background: var(--dot, #94a3b8);
  border-radius: 999px;
  width: 8px;
  height: 8px;
}

.os-drawer-title h2 {
  color: #0f172a;
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.12;
}

.os-drawer-title p {
  color: #475569;
  margin: 5px 0 0;
  font-size: 14px;
}

.drawer-info-card {
  border: 1px solid var(--lv-border);
  box-shadow: var(--lv-shadow-card);
  background: #fff;
  border-radius: 9px;
  padding: 12px 14px;
}

.drawer-info-card span {
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 850;
  display: block;
}

.drawer-info-card strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 760;
  display: block;
}

.drawer-info-card p {
  color: #475569;
  margin: 4px 0 0;
  font-size: 13px;
}

.drawer-two-cols {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  display: grid;
}

.os-drawer-footer {
  border-top: 1px solid var(--lv-border);
  background: #fff;
  padding: 14px 18px;
}

.os-drawer-footer a {
  width: 100%;
  min-height: 42px;
}

.modal-backdrop {
  z-index: 1001;
}

.modal-card.compact-modal {
  border: 1px solid var(--lv-border);
  box-shadow: var(--lv-shadow-elevated);
  border-radius: 12px;
}

@media (max-width: 1100px) {
  .lovable-topbar {
    flex-wrap: wrap;
  }

  .lovable-top-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    margin-left: 0;
  }

  .calendar-toolbar {
    grid-template-columns: 1fr;
  }

  .calendar-actions {
    justify-content: flex-start;
  }

  .filter-popover-panel {
    grid-template-columns: 1fr;
    width: min(560px, 100vw - 40px);
    left: 0;
    right: auto;
  }

  .agenda-kpis-secondary, .agenda-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .month-cell.operational {
    aspect-ratio: auto;
    min-height: 110px !important;
  }
}

@media (max-width: 720px) {
  .lovable-sidebar.expanded {
    width: 216px;
  }

  .tasken-sidebar-logo-full {
    width: 170px;
  }

  .lovable-main {
    padding: 14px;
  }

  .view-tabs {
    max-width: 100%;
    overflow-x: auto;
  }

  .agenda-kpis-secondary, .agenda-kpis, .drawer-two-cols {
    grid-template-columns: 1fr;
  }
}

.drawer-count {
  color: #64748b;
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}

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

.day-panel-row {
  border: 1px solid var(--lv-border);
  border-left: 3px solid var(--dot, #94a3b8);
  color: #0f172a;
  text-align: left;
  width: 100%;
  box-shadow: var(--lv-shadow-card);
  cursor: pointer;
  background: #fff;
  border-radius: 8px;
  grid-template-columns: auto 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  text-decoration: none;
  display: grid;
}

.day-panel-row:hover {
  border-color: var(--lv-secondary);
}

.day-panel-row div {
  min-width: 0;
}

.day-panel-row b {
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  display: block;
  overflow: hidden;
}

.day-panel-row small {
  color: #64748b;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  display: block;
  overflow: hidden;
}

.day-panel-row em {
  color: #475569;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.os-drawer-footer {
  gap: 10px;
  display: flex;
}

.os-drawer-footer .secondary {
  flex: none;
}

.os-drawer-footer .primary {
  flex: 1;
}

.lovable-shell {
  align-items: stretch;
  min-height: 100vh;
}

.lovable-sidebar {
  top: 0;
  bottom: 0;
  left: 0;
  flex-direction: column !important;
  height: 100vh !important;
  display: flex !important;
  position: fixed !important;
  overflow: hidden !important;
}

.lovable-sidebar.expanded {
  width: 248px !important;
}

.lovable-sidebar.collapsed {
  width: 68px !important;
}

.lovable-brand {
  flex: 0 0 70px;
  min-height: 70px !important;
  padding: 10px 14px !important;
}

.tasken-sidebar-logo-full {
  object-fit: contain;
  width: 206px !important;
  max-width: 206px !important;
  height: auto !important;
}

.tasken-sidebar-logo-icon {
  object-fit: contain;
  width: 42px !important;
  height: 42px !important;
}

.lovable-nav {
  min-height: 0;
  flex-direction: column !important;
  flex: auto !important;
  gap: 3px !important;
  padding: 10px 8px !important;
  display: flex !important;
  overflow: hidden !important;
}

.lovable-nav a {
  border-radius: 8px !important;
  min-height: 34px !important;
  padding: 7px 10px !important;
  font-size: 13.5px !important;
}

.nav-svg {
  flex-basis: 17px !important;
  width: 17px !important;
  height: 17px !important;
}

.lovable-collapse {
  margin-top: auto;
  flex: 0 0 48px !important;
  min-height: 48px !important;
}

.lovable-main-wrap {
  width: calc(100% - 248px);
  min-height: 100vh;
  margin-left: 248px;
}

.lovable-sidebar.collapsed + .lovable-main-wrap {
  width: calc(100% - 68px);
  margin-left: 68px;
}

.lovable-topbar {
  min-width: 0;
  left: 248px;
}

.lovable-main {
  min-width: 0;
  max-width: 100%;
}

.top-search-wrap {
  display: block;
}

.toolbar-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  display: grid;
}

.form-message {
  border: 1px solid #0000;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 750;
}

.form-message.success {
  color: #166534;
  background: #ecfdf3;
  border-color: #bbf7d0;
}

.form-message.error {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.drawer-form {
  align-content: start;
  display: grid;
}

.responsive-table-card {
  overflow-x: auto;
}

.responsive-table-card .table, .card .table {
  min-width: 720px;
}

.client-search {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
}

.technician-grid {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)) !important;
}

.cards, .details-grid, .dashboard-panels, .client-grid {
  min-width: 0;
}

.primary:disabled, .secondary:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none !important;
}

button.primary, button.secondary, a.primary, a.secondary {
  white-space: nowrap;
}

@media (max-height: 720px) {
  .lovable-brand {
    flex-basis: 58px !important;
    min-height: 58px !important;
  }

  .tasken-sidebar-logo-full {
    width: 184px !important;
  }

  .lovable-nav {
    gap: 1px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  .lovable-nav a {
    min-height: 30px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    font-size: 12.5px !important;
  }

  .lovable-collapse {
    flex-basis: 40px !important;
    min-height: 40px !important;
  }
}

@media (max-width: 1180px) {
  .lovable-sidebar.expanded {
    width: 220px !important;
  }

  .tasken-sidebar-logo-full {
    width: 180px !important;
  }

  .lovable-main-wrap {
    width: calc(100% - 220px);
    margin-left: 220px;
  }

  .lovable-sidebar.collapsed + .lovable-main-wrap {
    width: calc(100% - 68px);
    margin-left: 68px;
  }

  .lovable-top-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .calendar-actions {
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .lovable-sidebar.expanded, .lovable-sidebar.collapsed {
    width: 68px !important;
  }

  .lovable-brand {
    justify-content: center;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .tasken-sidebar-logo-full {
    display: none !important;
  }

  .tasken-sidebar-logo-icon {
    display: block !important;
  }

  .lovable-nav a {
    justify-content: center;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .lovable-nav a span:not(.nav-icon), .lovable-collapse strong {
    display: none !important;
  }

  .lovable-main-wrap, .lovable-sidebar.collapsed + .lovable-main-wrap {
    width: calc(100% - 68px);
    margin-left: 68px;
  }

  .lovable-topbar {
    gap: 10px;
    padding: 10px 12px;
    position: sticky;
  }

  .top-search-wrap {
    min-width: min(100%, 320px);
    max-width: 100%;
  }

  .lovable-top-actions {
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 2px;
    overflow-x: auto;
  }

  .lovable-main {
    padding: 14px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions, .client-actions, .actions {
    justify-content: flex-start;
  }

  .form {
    grid-template-columns: 1fr !important;
  }

  .client-search, .toolbar-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .primary, .secondary {
    width: fit-content;
  }

  .agenda-kpis-secondary, .agenda-kpis, .cards, .details-grid, .dashboard-panels {
    grid-template-columns: 1fr !important;
  }

  .month-calendar {
    overflow-x: auto !important;
  }

  .weekday-row, .month-grid {
    min-width: 980px;
  }

  .os-side-drawer, .day-side-drawer {
    width: min(100vw - 68px, 520px);
  }
}

@media (max-width: 560px) {
  .lovable-sidebar.expanded, .lovable-sidebar.collapsed {
    width: 58px !important;
  }

  .lovable-main-wrap, .lovable-sidebar.collapsed + .lovable-main-wrap {
    width: calc(100% - 58px);
    margin-left: 58px;
  }

  .lovable-top-actions a {
    padding: 0 10px;
  }

  .view-tabs {
    width: 100%;
  }

  .view-tabs a {
    flex: 1;
    justify-content: center;
  }

  .toolbar-inline-actions {
    width: 100%;
  }

  .toolbar-inline-actions > * {
    flex: none;
  }

  .os-side-drawer, .day-side-drawer {
    width: calc(100vw - 58px);
  }
}

.indicators-page {
  gap: 18px;
  display: grid;
}

.indicators-header {
  gap: 6px;
  display: grid;
}

.indicators-header h1 {
  color: #020617;
  letter-spacing: -.035em;
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
}

.indicators-header p {
  color: #334155;
  margin: 0;
  font-size: 14px;
}

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

.indicator-card {
  background: #fff;
  border: 1px solid #d8e2ee;
  border-radius: 10px;
  align-content: center;
  gap: 4px;
  min-height: 72px;
  padding: 14px 18px;
  display: grid;
  box-shadow: 0 1px 2px #0f172a0a, 0 10px 28px #0f172a09;
}

.indicator-card span {
  color: #0b2f5d;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 12px;
  font-weight: 800;
}

.indicator-card strong {
  color: #003b71;
  letter-spacing: -.04em;
  font-size: 30px;
  line-height: 1;
}

.indicator-card small {
  color: #334155;
  font-size: 12px;
}

.metric-green {
  color: #087b32 !important;
}

.metric-orange {
  color: #dc5f00 !important;
}

.metric-red {
  color: #dc2626 !important;
}

.metric-dark {
  color: #020617 !important;
}

.indicators-chart-grid {
  grid-template-columns: minmax(0, 2fr) minmax(360px, 1fr);
  align-items: stretch;
  gap: 12px;
  display: grid;
}

.indicator-panel {
  background: #fff;
  border: 1px solid #d8e2ee;
  border-radius: 10px;
  min-height: 390px;
  padding: 22px 22px 20px;
  box-shadow: 0 1px 2px #0f172a0a, 0 10px 28px #0f172a09;
}

.indicator-panel h2 {
  color: #0b2f5d;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 900;
}

.bar-chart {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  height: 300px;
  display: grid;
}

.bar-y-axis {
  color: #334155;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: 3px 0 33px;
  font-size: 12px;
  display: flex;
}

.bar-plot {
  border-bottom: 1px solid #94a3b8;
  border-left: 1px solid #94a3b8;
  position: relative;
  overflow: hidden;
}

.bar-grid-lines {
  pointer-events: none;
  flex-direction: column;
  justify-content: space-between;
  display: flex;
  position: absolute;
  inset: 0 0 32px;
}

.bar-grid-lines i {
  border-top: 1px dashed #d9e2ec;
  display: block;
}

.bar-items {
  grid-template-columns: repeat(5, minmax(70px, 1fr));
  align-items: end;
  gap: 28px;
  display: grid;
  position: absolute;
  inset: 0 12px;
}

.bar-item {
  grid-template-rows: minmax(0, 1fr) 28px;
  place-items: end center;
  height: 100%;
  display: grid;
}

.bar-column {
  background: #003b71;
  border-radius: 4px 4px 0 0;
  width: 100%;
  max-width: 170px;
  box-shadow: inset 0 1px #ffffff29;
}

.bar-item span {
  color: #334155;
  align-self: center;
  font-size: 12px;
}

.service-panel {
  grid-template-rows: auto 1fr auto;
  display: grid;
}

.donut-wrap {
  place-items: center;
  display: grid;
}

.service-donut {
  background: conic-gradient(#0d5ca6 0deg 158deg, #2ba84a 158deg 237deg, #f28c22 237deg 290deg, #dc2626 290deg 334deg, #eab308 334deg 360deg);
  border-radius: 999px;
  width: 182px;
  height: 182px;
  position: relative;
  box-shadow: 0 8px 22px #0f172a14;
}

.service-donut:after {
  content: "";
  background: #fff;
  border-radius: 999px;
  position: absolute;
  inset: 42px;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

.service-legend {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding-top: 10px;
  display: grid;
}

.service-legend-item {
  color: #0f172a;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  display: flex;
}

.service-legend-item span {
  align-items: center;
  gap: 7px;
  display: inline-flex;
}

.service-legend-item i {
  border-radius: 999px;
  width: 9px;
  height: 9px;
  display: inline-block;
}

.service-legend-item strong {
  color: #0b2f5d;
}

.service-blue {
  background: #0d5ca6;
}

.service-green {
  background: #2ba84a;
}

.service-orange {
  background: #f28c22;
}

.service-red {
  background: #dc2626;
}

.service-yellow {
  background: #eab308;
}

@media (max-width: 1280px) {
  .indicators-chart-grid {
    grid-template-columns: 1fr;
  }

  .indicator-panel {
    min-height: 340px;
  }
}

@media (max-width: 980px) {
  .indicators-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bar-items {
    gap: 14px;
  }
}

@media (max-width: 680px) {
  .indicators-metrics {
    grid-template-columns: 1fr;
  }

  .indicator-card strong {
    font-size: 26px;
  }

  .bar-chart {
    overflow-x: auto;
  }

  .bar-plot {
    min-width: 620px;
  }

  .service-legend {
    grid-template-columns: 1fr;
  }
}

.refresh-control-single {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

.refresh-control-single:disabled {
  cursor: wait;
  opacity: .8;
}

.agenda-page .calendar-toolbar .toolbar-inline-actions .primary[href*="/os/nova"] {
  display: none !important;
}

.agenda-page .calendar-toolbar {
  grid-template-columns: minmax(320px, 1fr) auto;
}

.agenda-page .view-tabs a.active {
  color: #fff !important;
  box-shadow: none !important;
  background: #003b71 !important;
}

.agenda-reschedule-modal {
  z-index: 1200;
  background: #0f172a7a;
}

.reschedule-modal-card {
  border-radius: 18px;
  width: min(520px, 100vw - 32px);
  padding: 22px;
}

.reschedule-modal-card h2 {
  color: #031b36;
  margin: 0;
  font-size: 20px;
}

.icon-close-button {
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  color: var(--text);
  cursor: pointer;
  background: #fff;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
}

.reschedule-copy {
  color: #0f172a;
  margin: 16px 0 8px;
  font-size: 15px;
  line-height: 1.5;
}

.reschedule-service {
  color: #334155;
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 12px;
  margin: 0 0 12px;
  padding: 12px;
}

.reschedule-modal-card .modal-actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  display: flex;
}

.month-cell.operational .day-head span.today, .month-cell.operational.today .day-head > span {
  color: #fff;
  background: #003b71;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  min-width: 28px;
  height: 28px;
  display: inline-flex;
}

@media (max-width: 900px) {
  .agenda-page .calendar-toolbar {
    grid-template-columns: 1fr;
  }

  .agenda-page .calendar-actions, .toolbar-inline-actions {
    width: 100%;
  }
}

.agenda-os-drawer {
  background: #f6f8fb;
  width: min(560px, 100vw - 290px);
  max-width: 620px;
  height: 100dvh;
  grid-template-rows: 58px minmax(0, 1fr) auto !important;
  display: grid !important;
}

.agenda-os-drawer .os-drawer-header {
  min-height: 58px !important;
  padding: 0 20px !important;
}

.agenda-os-drawer-body {
  align-content: start;
  gap: 10px !important;
  padding: 16px 20px 14px !important;
  overflow-y: auto !important;
}

.agenda-os-summary {
  gap: 10px;
  margin-bottom: 2px;
  display: grid;
}

.agenda-os-summary .drawer-status-pill {
  padding: 6px 11px !important;
  font-size: 12px !important;
}

.agenda-os-summary .os-drawer-title h2 {
  margin: 0 !important;
  font-size: 22px !important;
  line-height: 1.12 !important;
}

.agenda-os-summary .os-drawer-title p {
  margin-top: 4px !important;
  font-size: 13px !important;
}

.agenda-drawer-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  display: grid;
}

.agenda-drawer-card {
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  min-height: 76px;
  padding: 10px 12px;
  box-shadow: 0 6px 16px #0f172a0a;
}

.agenda-drawer-card.client-card, .agenda-drawer-card.description-card {
  min-height: unset;
}

.agenda-drawer-card span {
  color: #475569;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 900;
  display: block;
}

.agenda-drawer-card strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
  display: block;
}

.agenda-drawer-card p {
  color: #334155;
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.35;
}

.agenda-os-drawer-footer {
  background: #fff !important;
  border-top: 1px solid #d9e2ec !important;
  grid-template-columns: 150px 1fr !important;
  gap: 10px !important;
  padding: 12px 20px !important;
  display: grid !important;
  position: static !important;
  box-shadow: 0 -8px 18px #0f172a0d !important;
}

.agenda-os-drawer-footer a {
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 42px !important;
  display: inline-flex !important;
}

@media (max-width: 1180px) {
  .agenda-os-drawer {
    width: min(560px, 100vw - 68px);
  }
}

@media (max-width: 760px) {
  .agenda-os-drawer {
    width: calc(100vw - 58px);
  }

  .agenda-drawer-grid {
    grid-template-columns: 1fr;
  }

  .agenda-os-drawer-body {
    padding: 12px !important;
  }

  .agenda-os-drawer-footer {
    grid-template-columns: 1fr !important;
    padding: 10px 12px !important;
  }
}

.agenda-edit-panel {
  background: #fff;
  border: 1px solid #c9d9ea;
  border-radius: 12px;
  gap: 10px;
  padding: 12px;
  display: grid;
  box-shadow: 0 10px 24px #0f172a14;
}

.agenda-edit-panel .field {
  margin: 0;
}

.agenda-edit-panel label {
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}

.agenda-edit-panel select {
  min-height: 40px;
}

.agenda-edit-checklist label {
  border: 1px solid var(--border);
  cursor: pointer;
  background: #f8fbff;
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  display: flex;
}

.agenda-edit-checklist input {
  width: 16px;
  height: 16px;
}

.agenda-edit-actions {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  display: grid;
}

.agenda-os-drawer-footer {
  grid-template-columns: 120px 110px 1fr !important;
}

.agenda-os-drawer-footer button {
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 42px !important;
  display: inline-flex !important;
}

@media (max-width: 760px) {
  .agenda-os-drawer-footer {
    grid-template-columns: 1fr !important;
  }

  .agenda-edit-actions {
    grid-template-columns: 1fr;
  }
}

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

.checkbox-card {
  border: 1px solid var(--border);
  cursor: pointer;
  min-height: 46px;
  box-shadow: none;
  background: #fff;
  border-radius: 12px;
  gap: 10px;
  padding: 0 14px;
  justify-content: flex-start !important;
  align-items: center !important;
  display: flex !important;
}

.checkbox-card:hover {
  background: #f8fbff;
  border-color: #005ca859;
}

.checkbox-card input[type="checkbox"], .agenda-edit-checklist input[type="checkbox"] {
  accent-color: var(--blue-2);
  flex: 0 0 18px;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.checkbox-card span, .agenda-edit-checklist span {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.agenda-edit-checklist {
  grid-template-columns: 1fr;
  gap: 10px;
  display: grid;
}

.agenda-edit-checklist label {
  border: 1px solid var(--border);
  cursor: pointer;
  background: #fff;
  border-radius: 12px;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  justify-content: flex-start !important;
  align-items: center !important;
  display: flex !important;
}

.agenda-edit-checklist label:hover {
  background: #f8fbff;
  border-color: #005ca859;
}

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

.auxiliary-select-list {
  gap: 10px;
  display: grid;
}

.auxiliary-select-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  display: grid;
}

.auxiliary-select-row select {
  width: 100%;
  min-height: 44px;
}

.compact-add, .compact-remove {
  white-space: nowrap;
  min-height: 40px !important;
  padding: 0 14px !important;
}

.compact-add {
  justify-self: start;
}

.agenda-edit-panel .auxiliary-select-row select {
  min-height: 40px;
}

@media (max-width: 760px) {
  .auxiliary-select-row {
    grid-template-columns: 1fr;
  }

  .compact-add, .compact-remove {
    width: 100%;
  }
}

.client-workbench {
  grid-template-columns: minmax(260px, 330px) minmax(420px, 1fr) minmax(300px, 360px);
  align-items: start;
  gap: 18px;
  padding-bottom: 78px;
  display: grid;
}

.client-form-message {
  border: 1px solid var(--border);
  border-radius: 14px;
  grid-column: 1 / -1;
  padding: 11px 14px;
  font-weight: 800;
}

.client-form-message.success {
  color: #14532d;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.client-form-message.error {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.client-side-column, .client-center-column {
  gap: 14px;
  min-width: 0;
  display: grid;
}

.client-panel, .client-tabs-card {
  border-radius: 16px;
  padding: 18px;
}

.client-panel h2, .client-tabs-card h2 {
  color: var(--blue);
  letter-spacing: -.02em;
  margin: 0;
  font-size: 18px;
}

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

.inline-field-action {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  display: grid;
}

.inline-field-action input {
  min-width: 0;
}

.client-subtitle {
  color: var(--blue);
  margin-top: 8px;
  font-size: 17px;
  font-weight: 900;
}

.chip-input {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  display: grid;
}

.chip-input button {
  color: var(--blue-2);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0 4px;
  font-weight: 900;
}

.chip-list {
  flex-wrap: wrap;
  gap: 6px;
  min-height: 8px;
  display: flex;
}

.info-chip {
  color: var(--blue);
  background: #e3f2fd;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
}

.info-chip button {
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-weight: 900;
}

.switch-line {
  color: var(--muted);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  font-weight: 800;
  display: flex;
}

.switch-line input {
  display: none;
}

.switch-line i {
  background: #cbd5e1;
  border-radius: 999px;
  width: 42px;
  height: 24px;
  transition: background .18s;
  position: relative;
}

.switch-line i:after {
  content: "";
  background: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  transition: transform .18s;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: 0 3px 9px #0f172a2e;
}

.switch-line input:checked + i {
  background: #9bd66f;
}

.switch-line input:checked + i:after {
  transform: translateX(18px);
}

.client-tabs-card {
  padding: 0;
  overflow: hidden;
}

.client-tabs {
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 0;
  display: flex;
  overflow-x: auto;
}

.client-tabs button {
  color: var(--blue);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 3px solid #0000;
  padding: 16px 18px 14px;
  font-weight: 500;
}

.client-tabs button.active {
  color: #5b3df5;
  border-bottom-color: #6d5dfc;
  font-weight: 800;
}

.client-tabs.small-tabs {
  margin: -18px -18px 14px;
}

.client-tabs.small-tabs button {
  text-align: center;
  flex: 1;
}

.tab-body {
  gap: 18px;
  padding: 18px;
  display: grid;
}

.tab-body h3 {
  color: var(--text);
  margin: 0;
  font-size: 16px;
}

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

.note-grid textarea {
  min-height: 112px;
}

.annotation-box {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

.annotation-box textarea {
  border: 0;
  border-bottom: 1px solid var(--border);
  resize: vertical;
  border-radius: 0;
  outline: none;
  width: 100%;
  min-height: 96px;
  padding: 14px;
}

.annotation-box button {
  float: right;
  margin: 10px;
}

.client-tab-empty {
  margin: 18px;
}

.location-panel {
  gap: 12px;
  display: grid;
}

.two-cols-tight {
  grid-template-columns: 1fr 90px;
  gap: 10px;
  display: grid;
}

.map-preview {
  border: 1px solid var(--border);
  background: #eef3f7;
  border-radius: 14px;
  height: 190px;
  overflow: hidden;
}

.map-preview iframe {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.compact-panel {
  gap: 10px;
  display: grid;
}

.plain-input {
  border: 1px solid var(--border);
  border-radius: 11px;
  outline: none;
  width: 100%;
  padding: 10px 12px;
}

.client-form-footer {
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  z-index: 4;
  background: #f5f7faeb;
  border: 1px solid #d9e2ecbf;
  border-radius: 18px;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px;
  display: flex;
  position: sticky;
  bottom: 0;
  box-shadow: 0 -10px 30px #0f172a0f;
}

@media (max-width: 1500px) {
  .client-workbench {
    grid-template-columns: minmax(250px, 320px) minmax(400px, 1fr);
  }

  .client-workbench > .client-side-column:last-of-type {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .client-workbench > .client-side-column:last-of-type .location-panel {
    grid-column: span 2;
  }
}

@media (max-width: 1100px) {
  .client-workbench, .client-workbench > .client-side-column:last-of-type {
    grid-template-columns: 1fr;
  }

  .client-workbench > .client-side-column:last-of-type .location-panel {
    grid-column: auto;
  }

  .note-grid, .two-cols-tight {
    grid-template-columns: 1fr;
  }

  .client-tabs button {
    padding: 13px 14px 11px;
  }

  .client-form-footer {
    position: static;
  }
}

.clients-list-page .client-search {
  align-items: end;
}

.compact-client-search {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  display: grid;
}

.client-list-card {
  padding: 0;
  overflow: auto;
}

.clients-table td strong {
  color: #06142a;
  display: block;
}

.clients-table td span {
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
  display: block;
}

.clients-table td {
  white-space: nowrap;
}

.clients-table td:first-child, .clients-table td:nth-child(4), .clients-table td:nth-child(5) {
  white-space: normal;
  min-width: 220px;
}

.client-workbench.simplified {
  grid-template-columns: minmax(270px, 340px) minmax(430px, 1fr) minmax(320px, 380px);
}

.client-detail-workbench {
  grid-template-columns: minmax(270px, 340px) minmax(430px, 1fr) minmax(320px, 380px);
  align-items: start;
  gap: 18px;
  padding-bottom: 78px;
  display: grid;
}

.client-detail-workbench .client-form-message {
  grid-column: 1 / -1;
}

.client-page-title {
  margin-bottom: 2px;
}

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

.underline-field {
  gap: 4px;
}

.underline-field label {
  color: #1f4667;
  font-size: 12px;
}

.underline-field input, .underline-field select {
  background: none;
  border: 0;
  border-bottom: 1px solid #d8e2ec;
  border-radius: 0;
  padding: 6px 0 9px;
  box-shadow: none !important;
}

.underline-field strong {
  color: #06142a;
  border-bottom: 1px solid #edf2f7;
  min-height: 27px;
  padding: 4px 0 7px;
  font-size: 16px;
  display: block;
}

.client-single-tab {
  color: #5b3df5;
  border-bottom: 3px solid #6d5dfc;
  width: fit-content;
  margin-bottom: 8px;
  padding: 0 0 12px;
  font-weight: 900;
}

.address-search-button {
  align-self: end;
  height: 38px;
}

.clickable-map {
  cursor: pointer;
  position: relative;
}

.clickable-map:after {
  content: "Clique para validar";
  color: var(--blue);
  background: #ffffffeb;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
  position: absolute;
  top: 8px;
  right: 8px;
  box-shadow: 0 4px 12px #0f172a1f;
}

.map-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.address-options-modal {
  width: min(760px, 100%);
}

.address-options-list {
  gap: 10px;
  margin-top: 14px;
  display: grid;
}

.address-option {
  border: 1px solid var(--border);
  background: #f8fbff;
  border-radius: 16px;
  gap: 8px;
  padding: 14px;
  display: grid;
}

.address-option strong {
  color: var(--blue);
}

.address-option span {
  color: var(--text);
}

.client-detail-workbench .client-tabs-card .tab-body {
  min-height: 310px;
}

.client-detail-workbench .table-card-inner {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: auto;
}

.client-detail-workbench .table {
  min-width: 680px;
}

.client-detail-workbench .client-form-footer {
  position: sticky;
}

@media (max-width: 1500px) {
  .client-workbench.simplified, .client-detail-workbench {
    grid-template-columns: minmax(260px, 340px) minmax(430px, 1fr);
  }

  .client-workbench.simplified > .client-side-column:last-of-type, .client-detail-workbench > .client-side-column:last-of-type {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  .client-workbench.simplified, .client-detail-workbench, .compact-client-search {
    grid-template-columns: 1fr;
  }

  .client-detail-workbench .client-form-footer {
    position: static;
  }
}

.inline-editable-field {
  position: relative;
}

.inline-label-row {
  align-items: center;
  gap: 7px;
  min-height: 18px;
  display: flex;
}

.inline-label-row label {
  margin: 0;
}

.field-pencil {
  color: #638399;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 6px;
  padding: 2px 4px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.field-pencil:hover {
  color: var(--blue-2);
  background: #eef6ff;
}

.field-readonly-text {
  color: #06142a;
  border-bottom: 1px solid #edf2f7;
  min-height: 27px;
  margin: 0;
  padding: 4px 0 7px;
  font-size: 15px;
  line-height: 1.45;
}

.inline-editable-field textarea {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  min-height: 110px;
  padding: 10px 12px;
}

.inline-switch-line {
  border-top: 1px solid #edf2f7;
  padding-top: 12px;
}

.address-modal-backdrop {
  justify-content: center;
  align-items: center;
  padding: 28px;
}

.auvo-address-modal {
  border-radius: 16px;
  width: min(1120px, 100vw - 42px);
  max-height: calc(100vh - 56px);
  padding: 0;
  overflow: hidden;
}

.address-modal-header {
  color: #fff;
  background: linear-gradient(90deg, #6d28d9, #7c3aed);
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 18px;
  display: flex;
}

.address-modal-header button {
  color: #fff;
  cursor: pointer;
  background: none;
  border: 0;
  font-size: 30px;
  line-height: 1;
}

.address-modal-content {
  background: #fff;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  display: grid;
}

.address-modal-map-side {
  border-right: 1px solid #e5edf5;
  gap: 12px;
  padding-right: 18px;
  display: grid;
}

.map-preview.large {
  border-radius: 0;
  height: 310px;
}

.address-modal-current {
  color: #5c7184;
  text-transform: uppercase;
  border-bottom: 1px solid #e5edf5;
  margin: 0;
  padding: 10px 0;
  font-weight: 700;
}

.address-modal-options-side {
  align-content: start;
  gap: 12px;
  display: grid;
}

.address-modal-options-side h2 {
  color: #18324a;
  margin: 0 0 2px;
  font-size: 22px;
}

.address-source-card {
  background: #fff;
  border: 1px solid #e7edf4;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 14px 16px;
  display: grid;
}

.source-icon {
  color: #ef4444;
  background: #fff5f5;
  border-radius: 50%;
  place-items: center;
  width: 46px;
  height: 46px;
  font-size: 21px;
  font-weight: 900;
  display: grid;
  box-shadow: 0 4px 14px #0f172a14;
}

.muted-source {
  color: #6d5dfc;
  background: #f8f7ff;
}

.source-body {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.source-body strong {
  color: #20384f;
  font-size: 15px;
}

.source-body span {
  color: #334155;
  font-weight: 700;
}

.source-body small {
  color: #8aa0b2;
}

.source-body em {
  color: #64748b;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-style: normal;
  overflow: hidden;
}

.source-body input {
  border: 0;
  border-bottom: 1px solid #d8e2ec;
  border-radius: 0;
  outline: none;
  width: 100%;
  padding: 7px 0;
}

.address-modal-footer {
  background: #fff;
  border-top: 1px solid #e7edf4;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  display: flex;
}

.danger-button {
  color: #fff;
  cursor: pointer;
  background: #ff4266;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 900;
  box-shadow: 0 8px 18px #ff42662e;
}

@media (max-width: 900px) {
  .address-modal-content {
    grid-template-columns: 1fr;
  }

  .address-modal-map-side {
    border-bottom: 1px solid #e5edf5;
    border-right: 0;
    padding-bottom: 14px;
    padding-right: 0;
  }

  .address-source-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .address-source-card > button {
    grid-column: 2;
    justify-self: start;
  }

  .address-modal-footer {
    flex-wrap: wrap;
  }
}

.map-hint {
  font-size: 12px;
  font-weight: 800;
}

.auvo-address-modal {
  grid-template-rows: auto minmax(0, 1fr) auto;
  display: grid;
}

.address-modal-content {
  min-height: 0;
  overflow: hidden;
}

.address-modal-map-side, .address-modal-options-side {
  min-height: 0;
}

.address-modal-options-side {
  padding-right: 2px;
  overflow: auto;
}

.address-modal-coordinate-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.address-modal-coordinate-grid label {
  color: #6c8193;
  text-transform: uppercase;
  letter-spacing: .02em;
  gap: 5px;
  font-size: 12px;
  font-weight: 900;
  display: grid;
}

.address-modal-coordinate-grid input {
  color: #18324a;
  border: 0;
  border-bottom: 1px solid #d8e2ec;
  border-radius: 0;
  outline: none;
  padding: 8px 0;
}

.address-source-card .source-icon {
  flex-shrink: 0;
}

.address-source-card .source-icon:has( + .source-body) {
  font-size: 19px;
}

.address-source-card .source-icon {
  overflow: hidden;
}

.address-source-card .source-icon:first-child {
  text-align: center;
}

.address-source-card .source-body input::placeholder {
  color: #95a9ba;
}

.address-source-card:hover {
  border-color: #d4e2f0;
  box-shadow: 0 10px 24px #0f172a0d;
}

.address-modal-footer .secondary {
  background: #fff;
}

@media (max-width: 640px) {
  .address-modal-backdrop {
    padding: 10px;
  }

  .auvo-address-modal {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .address-modal-content {
    gap: 12px;
    padding: 12px;
  }

  .map-preview.large {
    height: 240px;
  }

  .address-modal-coordinate-grid {
    grid-template-columns: 1fr;
  }
}

.auvo-address-modal {
  width: min(1180px, 100vw - 42px);
}

.address-source-card {
  border-radius: 0;
  align-items: start;
}

.address-source-card.autocomplete-source {
  grid-template-columns: 48px minmax(0, 1fr);
  min-height: 0;
}

.address-source-card.autocomplete-source .source-body {
  width: 100%;
  overflow: hidden;
}

.source-title-row {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.source-title-row .compact {
  flex: none;
}

.double-input-body input {
  min-width: 0;
  display: block;
}

.address-suggestions {
  gap: 7px;
  margin-top: 8px;
  display: grid;
}

.address-suggestions > small {
  color: #7b90a4;
  font-weight: 700;
}

.address-suggestion {
  text-align: left;
  width: 100%;
  color: var(--text);
  cursor: pointer;
  background: #f8fbff;
  border: 1px solid #dce8f3;
  border-radius: 12px;
  gap: 3px;
  padding: 9px 11px;
  display: grid;
}

.address-suggestion:hover, .address-suggestion:focus {
  border-color: var(--blue-2);
  background: #eef7ff;
  outline: none;
  box-shadow: 0 0 0 3px #005ca81a;
}

.address-suggestion strong {
  color: var(--blue);
  font-size: 13px;
  line-height: 1.25;
}

.address-suggestion span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.url-source-icon {
  font-size: 14px !important;
}

@media (max-width: 900px) {
  .address-source-card.autocomplete-source {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .source-title-row {
    align-items: flex-start;
  }
}

.client-tabs button.active {
  font-weight: 900;
  color: var(--blue) !important;
  border-bottom-color: var(--blue-2) !important;
}

.client-tabs button:hover {
  color: var(--blue-2);
  background: #f1f7ff;
}

.client-single-tab {
  color: var(--blue) !important;
  border-bottom-color: var(--blue-2) !important;
}

.address-modal-header {
  background: linear-gradient(90deg, var(--blue), var(--blue-2)) !important;
}

.address-source-card {
  background: #fff;
  border-color: #dce8f3;
  border-radius: 0;
  align-items: start;
}

.address-source-card.autocomplete-source {
  grid-template-columns: 48px minmax(0, 1fr);
  min-height: 132px;
  padding: 18px 16px;
  overflow: visible;
}

.address-source-card .source-body {
  width: 100%;
  min-width: 0;
  overflow: visible !important;
}

.address-source-card .source-body input {
  height: 34px;
  min-height: 34px;
  color: var(--text);
  background: none;
  padding: 4px 0 8px;
  line-height: 34px;
}

.double-input-body {
  gap: 8px;
}

.double-input-body input + input {
  margin-top: 0;
}

.source-title-row {
  align-items: center;
  min-height: 38px;
}

.source-title-row strong, .source-body strong {
  color: var(--blue);
}

.source-title-row .secondary.compact {
  color: var(--blue);
  box-shadow: none;
  background: #fff;
  border-color: #cfe0ef;
}

.source-title-row .secondary.compact:hover {
  border-color: var(--blue-2);
  background: #eef7ff;
}

.muted-source, .url-source-icon {
  color: var(--blue-2) !important;
  background: #eef7ff !important;
  box-shadow: 0 4px 14px #005ca81a !important;
}

.address-suggestions {
  z-index: 3;
  margin-top: 3px;
  position: relative;
}

.address-suggestion {
  background: #f8fbff;
  border-color: #cfe0ef;
}

.address-suggestion strong {
  color: var(--blue);
}

.address-suggestion:hover, .address-suggestion:focus {
  border-color: var(--blue-2);
  background: #eef7ff;
}

.address-modal-options-side {
  gap: 14px;
}

.address-modal-options-side h2 {
  color: var(--blue);
}

.url-source-icon {
  letter-spacing: -.02em;
  font-size: 13px !important;
}

.address-modal-current {
  color: #445f78;
}

@media (max-width: 900px) {
  .address-source-card.autocomplete-source {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 132px;
  }
}

.address-source-card {
  box-sizing: border-box;
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
}

.address-source-card .source-body {
  gap: 8px;
  width: 100%;
  min-width: 0;
  display: grid;
  overflow: visible !important;
}

.address-source-card .source-body input {
  box-sizing: border-box;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 100%;
  display: block;
  overflow: hidden;
  height: 38px !important;
  min-height: 38px !important;
  padding: 7px 0 8px !important;
  line-height: normal !important;
}

.address-source-card .source-body small {
  line-height: 1.35;
  display: block;
}

.address-source-card.autocomplete-source {
  grid-template-columns: 48px minmax(0, 1fr) 82px !important;
  align-items: start !important;
  gap: 14px !important;
  min-height: auto !important;
  padding: 16px !important;
}

.address-source-card.autocomplete-source .source-icon {
  margin-top: 2px;
}

.address-source-card.autocomplete-source .source-title-row {
  line-height: 1.25;
  display: block;
  height: auto !important;
  min-height: auto !important;
}

.source-use-button {
  width: 76px;
  min-width: 76px;
  height: 40px;
  color: var(--blue) !important;
  box-shadow: none !important;
  background: #fff !important;
  border-color: #cfe0ef !important;
  grid-column: auto !important;
  place-self: start end !important;
  margin-top: 0 !important;
}

.source-use-button:hover {
  border-color: var(--blue-2) !important;
  background: #eef7ff !important;
}

.address-suggestions {
  gap: 6px;
  padding-top: 0;
  display: grid;
  z-index: auto !important;
  margin-top: 0 !important;
  position: static !important;
}

.address-suggestions > small {
  color: #55708a;
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  display: block;
}

.address-suggestion {
  box-sizing: border-box;
  min-height: 0;
}

.url-source-icon, .muted-source {
  color: var(--blue-2) !important;
  background: #eef7ff !important;
}

@media (max-width: 900px) {
  .address-source-card.autocomplete-source {
    grid-template-columns: 42px minmax(0, 1fr) !important;
  }

  .source-use-button {
    grid-column: 2 !important;
    justify-self: start !important;
    margin-top: 2px !important;
  }
}

.lovable-brand {
  flex: 0 0 64px !important;
  justify-content: center !important;
  min-height: 64px !important;
  padding: 8px 14px !important;
}

.tasken-sidebar-logo-full {
  object-fit: contain !important;
  object-position: center !important;
  image-rendering: auto !important;
  filter: none !important;
  width: 184px !important;
  max-width: 184px !important;
  height: auto !important;
  max-height: 54px !important;
  display: block !important;
}

.lovable-brand.collapsed-brand {
  flex-basis: 58px !important;
  justify-content: center !important;
  min-height: 58px !important;
  padding: 8px 7px !important;
}

.tasken-sidebar-logo-icon {
  object-fit: contain !important;
  object-position: center !important;
  image-rendering: auto !important;
  filter: none !important;
  width: 34px !important;
  max-width: 34px !important;
  height: 38px !important;
  max-height: 38px !important;
  display: block !important;
}

@media (max-height: 720px) {
  .lovable-brand {
    flex-basis: 56px !important;
    min-height: 56px !important;
  }

  .tasken-sidebar-logo-full {
    width: 172px !important;
    max-width: 172px !important;
    max-height: 48px !important;
  }

  .tasken-sidebar-logo-icon {
    width: 32px !important;
    height: 36px !important;
  }
}

@media (max-width: 1180px) {
  .tasken-sidebar-logo-full {
    width: 172px !important;
    max-width: 172px !important;
  }
}

@media (max-width: 900px) {
  .tasken-sidebar-logo-full {
    display: none !important;
  }

  .tasken-sidebar-logo-icon {
    width: 32px !important;
    height: 36px !important;
    display: block !important;
  }
}

.lovable-brand {
  flex: 0 0 72px !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 72px !important;
  padding: 8px 12px !important;
}

.tasken-sidebar-logo-full {
  image-rendering: -webkit-optimize-contrast;
  object-fit: contain !important;
  object-position: center !important;
  filter: none !important;
  width: 196px !important;
  max-width: calc(100% - 8px) !important;
  height: auto !important;
  max-height: 56px !important;
  display: block !important;
}

.lovable-brand.collapsed-brand {
  flex-basis: 60px !important;
  min-height: 60px !important;
  padding: 8px 7px !important;
}

.tasken-sidebar-logo-icon {
  image-rendering: -webkit-optimize-contrast;
  object-fit: contain !important;
  object-position: center !important;
  filter: none !important;
  width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  max-height: 34px !important;
  display: block !important;
}

@media (max-height: 720px) {
  .lovable-brand {
    flex-basis: 62px !important;
    min-height: 62px !important;
  }

  .tasken-sidebar-logo-full {
    width: 184px !important;
    max-height: 52px !important;
  }

  .tasken-sidebar-logo-icon {
    width: 32px !important;
    height: 32px !important;
  }
}

@media (max-width: 900px) {
  .tasken-sidebar-logo-full {
    display: none !important;
  }

  .tasken-sidebar-logo-icon {
    width: 32px !important;
    height: 32px !important;
    display: block !important;
  }
}

.client-units-tab {
  gap: 14px;
}

.unit-tab-header {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 2px;
  display: flex;
}

.unit-tab-header strong {
  color: var(--blue);
  font-size: 17px;
  display: block;
}

.unit-tab-header span {
  color: var(--muted);
  margin-top: 3px;
  font-size: 13px;
  display: block;
}

.client-units-list {
  gap: 10px;
  display: grid;
}

.client-unit-card {
  background: #fff;
  border: 1px solid #dce8f3;
  border-radius: 15px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  transition: border-color .15s, box-shadow .15s, background .15s;
  display: grid;
}

.client-unit-card.active {
  background: #f5fbff;
  border-color: #005ca873;
  box-shadow: 0 10px 24px #005ca814;
}

.client-unit-main {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.client-unit-main strong {
  color: #06142a;
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.client-unit-main span {
  color: #445f78;
  font-size: 13px;
}

.client-unit-main small {
  color: var(--muted);
  font-size: 12px;
}

.unit-card-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.location-panel > .primary {
  justify-self: stretch;
  margin-top: 2px;
}

@media (max-width: 760px) {
  .unit-tab-header, .client-unit-card {
    grid-template-columns: 1fr;
  }

  .unit-card-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

.client-not-found-backdrop {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: #07294775;
}

.client-not-found-modal {
  text-align: center;
  border-color: #005ca833;
  border-radius: 22px;
  width: min(480px, 100vw - 32px);
  padding: 26px;
}

.client-not-found-modal h2 {
  color: var(--blue);
  margin: 4px 0 10px;
  font-size: 24px;
}

.client-not-found-modal p {
  color: #4b5f73;
  margin: 0 0 10px;
}

.client-not-found-modal p strong {
  color: var(--text);
}

.not-found-icon {
  width: 54px;
  height: 54px;
  color: var(--blue);
  background: #eaf5ff;
  border: 1px solid #cfe6fb;
  border-radius: 18px;
  place-items: center;
  margin: 0 auto 10px;
  font-size: 24px;
  font-weight: 900;
  display: grid;
}

.client-not-found-actions {
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  display: flex;
}

.client-not-found-actions a {
  justify-content: center;
  min-width: 150px;
}

@media (max-width: 560px) {
  .client-not-found-actions {
    flex-direction: column;
  }

  .client-not-found-actions a {
    width: 100%;
  }
}

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

.mini-metric-card {
  align-content: start;
  gap: 4px;
  display: grid;
}

.mini-metric-card strong {
  color: var(--blue);
  font-size: 28px;
  line-height: 1;
}

.mini-metric-card p {
  color: #506985;
  margin: 0;
  font-size: 13px;
}

.concept-card {
  background: linear-gradient(135deg, #fff 0%, #f4f9ff 100%);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  display: flex;
}

.concept-card p {
  color: #445f78;
  margin: 6px 0 0;
}

.concept-flow {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  display: flex;
}

.concept-flow span {
  color: var(--blue);
  white-space: nowrap;
  background: #eaf5ff;
  border: 1px solid #cfe6fb;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.improved-user-form {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.improved-user-form .full, .compact-user-form .full {
  grid-column: 1 / -1;
}

.user-link-box {
  background: #f8fbff;
  border: 1px solid #dbe8f4;
  border-radius: 14px;
  padding: 12px;
}

.link-options {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  display: flex;
}

.link-options.stacked {
  flex-direction: column;
}

.link-options label {
  color: var(--text);
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 850;
  display: inline-flex;
}

.link-options input {
  width: 16px;
  height: 16px;
}

.info-strip {
  color: #1e3a5f;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
}

.user-access-table td {
  vertical-align: middle;
}

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

.technician-card {
  gap: 12px;
  display: grid;
}

.compact-details-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.compact-details-grid > div {
  background: #f8fbff;
  border: 1px solid #e5edf5;
  border-radius: 12px;
  padding: 9px 10px;
}

.compact-details-grid p {
  margin: 4px 0 0;
}

.technician-drawer {
  width: min(560px, 100vw - 30px);
}

.drawer-subsection {
  background: #f8fbff;
  border: 1px solid #dbe8f4;
  border-radius: 14px;
  gap: 8px;
  padding: 12px;
  display: grid;
}

.drawer-subsection p {
  margin: 0;
}

.create-access-box {
  background: #fff;
}

@media (max-width: 1200px) {
  .access-flow-grid, .improved-technician-grid {
    grid-template-columns: 1fr;
  }

  .improved-user-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .concept-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .concept-flow {
    justify-content: flex-start;
  }

  .improved-user-form, .compact-details-grid {
    grid-template-columns: 1fr;
  }
}

.users-list-page .section-header, .technicians-list-page .section-header {
  align-items: center;
}

.user-list-card, .technician-list-card {
  padding: 0;
  overflow-x: auto;
}

.users-table, .technicians-table {
  min-width: 860px;
}

.users-table td strong, .technicians-table td strong {
  color: #06142a;
  display: block;
}

.users-table td span:not(.badge), .technicians-table td span:not(.badge) {
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
  display: block;
}

.users-table td, .technicians-table td {
  white-space: nowrap;
}

.users-table td:first-child, .users-table td:nth-child(4), .technicians-table td:first-child, .technicians-table td:nth-child(3) {
  white-space: normal;
  min-width: 220px;
}

.clickable-row:hover td {
  background: #f4f9ff !important;
}

.user-detail-modal, .technician-detail-modal {
  width: min(720px, 100%);
  padding: 22px;
}

.user-detail-modal h2, .technician-detail-modal h2 {
  color: var(--text);
  margin: 0;
}

.user-detail-grid, .technician-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.user-detail-grid > div, .technician-detail-grid > div {
  background: #f8fbff;
  border: 1px solid #e5edf5;
  border-radius: 14px;
  padding: 12px;
}

.user-detail-grid p, .technician-detail-grid p {
  color: #1e3a5f;
  margin: 5px 0 0;
}

.user-detail-actions, .technician-detail-actions {
  justify-content: flex-end;
  margin-top: 16px;
}

.user-detail-rule {
  margin-top: 14px;
}

.user-drawer, .technician-drawer {
  width: min(560px, 100vw - 30px);
}

.user-drawer-body .improved-user-form, .user-drawer-body .compact-user-form {
  grid-template-columns: 1fr;
}

.user-drawer-body .link-options {
  flex-direction: column;
}

@media (max-width: 760px) {
  .user-detail-grid, .technician-detail-grid {
    grid-template-columns: 1fr;
  }

  .user-detail-actions, .technician-detail-actions {
    flex-direction: column;
  }

  .user-detail-actions a, .technician-detail-actions a, .user-detail-actions button, .technician-detail-actions button {
    justify-content: center;
    width: 100%;
  }
}

.vehicles-list-page .section-header {
  align-items: center;
}

.vehicle-list-card {
  padding: 0;
  overflow-x: auto;
}

.vehicles-table {
  min-width: 980px;
}

.vehicles-table td strong {
  color: #06142a;
  display: block;
}

.vehicles-table td span:not(.badge) {
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
  display: block;
}

.vehicles-table td {
  white-space: nowrap;
}

.vehicles-table td:nth-child(4), .vehicles-table td:nth-child(5) {
  white-space: normal;
  min-width: 240px;
}

.vehicle-actions-cell {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.vehicle-detail-modal {
  width: min(760px, 100%);
  padding: 22px;
}

.vehicle-detail-modal h2 {
  color: var(--text);
  margin: 0;
}

.vehicle-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.vehicle-detail-grid > div {
  background: #f8fbff;
  border: 1px solid #e5edf5;
  border-radius: 14px;
  padding: 12px;
}

.vehicle-detail-grid p {
  color: #1e3a5f;
  margin: 5px 0 0;
}

.vehicle-upcoming-box {
  background: #fff;
  border: 1px solid #e5edf5;
  border-radius: 16px;
  margin-top: 14px;
  padding: 14px;
}

.vehicle-upcoming-box h3 {
  color: var(--text);
  margin: 0 0 10px;
}

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

.vehicle-upcoming-item {
  color: var(--text);
  background: #f8fbff;
  border: 1px solid #e6eef7;
  border-radius: 12px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  text-decoration: none;
  display: flex;
}

.vehicle-upcoming-item:hover {
  background: #f2f8ff;
  border-color: #b8d7f4;
}

.vehicle-upcoming-item span {
  color: var(--muted);
  font-size: 12px;
}

.vehicle-detail-actions {
  justify-content: flex-end;
  margin-top: 16px;
}

.vehicle-drawer {
  width: min(560px, 100vw - 30px);
}

@media (max-width: 760px) {
  .vehicle-detail-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-detail-actions, .vehicle-upcoming-item {
    flex-direction: column;
    align-items: stretch;
  }

  .vehicle-detail-actions a, .vehicle-detail-actions button {
    justify-content: center;
    width: 100%;
  }
}

.checklist-page {
  gap: 14px;
}

.checklist-search-card {
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  gap: 12px;
  display: grid;
}

.checklist-list-card {
  overflow-x: auto;
}

.checklist-table {
  min-width: 980px;
}

.checklist-table td strong {
  color: #0f172a;
  display: block;
}

.clickable-row {
  cursor: pointer;
}

.checklist-actions-cell {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.checklist-detail-modal {
  gap: 14px;
  width: min(860px, 100vw - 40px);
  max-height: min(86vh, 820px);
  display: grid;
}

.checklist-preview-list {
  gap: 9px;
  max-height: 54vh;
  padding-right: 4px;
  display: grid;
  overflow: auto;
}

.checklist-preview-item {
  align-items: flex-start;
}

.checklist-detail-actions {
  border-top: 1px solid var(--border);
  justify-content: flex-end;
  padding-top: 14px;
}

.checklist-drawer {
  width: min(720px, 100vw);
}

.checklist-editor-form {
  padding-bottom: 0;
}

.assistant-card {
  background: linear-gradient(135deg, #f8fbff 0%, #eef7ff 100%);
  border: 1px solid #005ca82e;
  border-radius: 16px;
  gap: 12px;
  padding: 14px;
  display: grid;
}

.assistant-card h3 {
  color: #0f172a;
  margin: 8px 0 4px;
  font-size: 18px;
}

.assistant-card p {
  color: #475569;
  margin: 0;
  line-height: 1.45;
}

.checklist-question-editor {
  gap: 12px;
  display: grid;
}

.checklist-question-card {
  background: #fff;
  gap: 12px;
  display: grid;
}

.checklist-question-card .actions {
  justify-content: flex-start;
  margin-top: 0;
}

.form-message {
  border-radius: 12px;
  padding: 11px 13px;
  font-weight: 750;
}

.form-message.success {
  color: #166534;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
}

.form-message.error {
  color: #991b1b;
  background: #ffebee;
  border: 1px solid #ffcdd2;
}

@media (max-width: 720px) {
  .checklist-search-card {
    grid-template-columns: 1fr;
  }

  .checklist-drawer {
    width: 100vw;
  }

  .checklist-detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .checklist-detail-actions button {
    width: 100%;
  }
}

.materials-page .section-header {
  align-items: center;
}

.material-list-card {
  padding: 0;
  overflow-x: auto;
}

.materials-table {
  min-width: 1080px;
}

.materials-table td strong {
  color: #06142a;
  display: block;
}

.materials-table td span:not(.badge) {
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
  display: block;
}

.materials-table td {
  white-space: nowrap;
}

.materials-table td:first-child, .materials-table td:nth-child(5) {
  white-space: normal;
  min-width: 220px;
}

.material-actions-cell {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.material-detail-modal {
  width: min(760px, 100%);
  padding: 22px;
}

.material-detail-modal h2 {
  color: var(--text);
  margin: 0;
}

.material-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.material-detail-grid > div {
  background: #f8fbff;
  border: 1px solid #e5edf5;
  border-radius: 14px;
  padding: 12px;
}

.material-detail-grid p {
  color: #1e3a5f;
  margin: 5px 0 0;
}

.material-detail-actions {
  justify-content: flex-end;
  margin-top: 16px;
}

.material-drawer {
  width: min(640px, 100vw - 30px);
}

.material-drawer-form textarea {
  min-height: 96px;
}

.material-usage-card p {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .material-detail-grid {
    grid-template-columns: 1fr;
  }

  .material-detail-actions {
    flex-direction: column;
  }

  .material-detail-actions button {
    justify-content: center;
    width: 100%;
  }
}

.material-drawer {
  width: min(720px, 100vw - 28px);
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.material-drawer .os-drawer-header {
  flex: none;
}

.material-drawer-form {
  scrollbar-gutter: stable;
  flex: auto;
  align-content: start;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 24px 0 !important;
}

.material-drawer-form .field, .material-drawer-form input, .material-drawer-form select, .material-drawer-form textarea {
  min-width: 0;
  max-width: 100%;
}

.material-drawer-form textarea {
  resize: vertical;
  min-height: 118px;
}

.material-drawer .os-drawer-footer {
  z-index: 4;
  background: #fffffffa;
  border-top: 1px solid #d9e2ec;
  gap: 10px;
  margin: 18px -24px 0;
  box-shadow: 0 -10px 22px #0f172a0f;
  padding: 14px 24px !important;
  display: flex !important;
  position: sticky !important;
  bottom: 0 !important;
  left: auto !important;
  right: auto !important;
}

.material-drawer .os-drawer-footer .secondary {
  flex: none;
  min-width: 96px;
}

.material-drawer .os-drawer-footer .primary {
  flex: auto;
  min-width: 180px;
}

.material-drawer .form-message {
  margin-bottom: 2px;
}

@media (max-width: 820px) {
  .material-drawer {
    width: 100vw;
  }

  .material-drawer-form {
    padding: 16px 16px 0 !important;
  }

  .material-drawer .os-drawer-footer {
    margin-left: -16px;
    margin-right: -16px;
    padding: 12px 16px !important;
  }
}

@media (max-width: 620px) {
  .material-drawer .os-drawer-footer {
    flex-direction: column;
  }

  .material-drawer .os-drawer-footer .primary, .material-drawer .os-drawer-footer .secondary {
    width: 100%;
  }
}

.materials-filter-card {
  gap: 14px;
  display: grid;
}

.materials-filter-grid {
  grid-template-columns: minmax(260px, 1.45fr) minmax(150px, .65fr) minmax(140px, .55fr) minmax(190px, .75fr) auto auto;
  align-items: end;
  gap: 12px;
  display: grid;
}

.materials-search-field input {
  min-width: 0;
}

.materials-clear-button {
  justify-content: center;
  min-height: 46px;
}

.frequent-filter-toggle {
  color: #06345f;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  border: 1px solid #c7d8ea;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  font-weight: 850;
  display: inline-flex;
}

.frequent-filter-toggle input {
  accent-color: #005a9c;
  width: 16px;
  height: 16px;
}

.category-chip-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.category-chip {
  color: #06345f;
  cursor: pointer;
  background: #f7fbff;
  border: 1px solid #c7d8ea;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  transition: all .16s;
}

.category-chip:hover {
  border-color: #0b5b9e;
  transform: translateY(-1px);
}

.category-chip.active {
  color: #fff;
  background: linear-gradient(#0666ad, #004984);
  border-color: #004984;
  box-shadow: 0 8px 16px #0048842e;
}

.materials-results-bar, .materials-pagination {
  color: var(--muted);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  display: flex;
}

.pagination-size {
  align-items: center;
  gap: 8px;
  display: flex;
}

.pagination-size label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pagination-size select {
  color: #06142a;
  background: #fff;
  border: 1px solid #c7d8ea;
  border-radius: 10px;
  min-height: 34px;
  padding: 6px 10px;
  font-weight: 750;
}

.materials-pagination {
  background: #fbfdff;
  border-top: 1px solid #d9e2ec;
  padding: 14px 18px;
}

.mini-tag {
  color: #005a9c;
  vertical-align: middle;
  background: #e6f4ff;
  border-radius: 999px;
  margin-left: 6px;
  padding: 2px 7px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  display: inline-flex;
}

@media (max-width: 1100px) {
  .materials-filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .materials-search-field {
    grid-column: 1 / -1;
  }

  .materials-clear-button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .materials-filter-grid {
    grid-template-columns: 1fr;
  }

  .materials-results-bar, .materials-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .materials-pagination .row-actions, .pagination-size {
    justify-content: space-between;
  }
}

.refined-topbar {
  z-index: 60 !important;
  gap: 16px !important;
}

.refined-search-wrap {
  max-width: min(680px, 52vw) !important;
}

.refined-search-wrap input {
  border-radius: 10px !important;
  height: 42px !important;
  font-size: 14px !important;
}

.refined-top-actions {
  gap: 10px !important;
}

.top-popover-wrap {
  align-items: center;
  display: inline-flex;
  position: relative;
}

.top-icon-button, .account-chip {
  color: #0f2340;
  cursor: pointer;
  background: #fff;
  border: 1px solid #d7e2ed;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  font-weight: 800;
  display: inline-flex;
  box-shadow: 0 1px 2px #0f172a0a;
}

.top-icon-button {
  width: 44px;
  padding: 0;
  position: relative;
}

.top-icon-button:hover, .account-chip:hover {
  background: #f8fbff;
}

.topbar-icon-svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 19px;
  height: 19px;
}

.top-notification-badge {
  color: #fff;
  background: #c21f32;
  border: 2px solid #fff;
  border-radius: 999px;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 900;
  display: grid;
  position: absolute;
  top: -7px;
  right: -7px;
}

.account-chip {
  padding: 0 11px 0 6px;
}

.account-avatar {
  color: #fff;
  background: linear-gradient(#071728, #111827);
  border: 1px solid #ffffff59;
  border-radius: 999px;
  place-items: center;
  width: 31px;
  height: 31px;
  font-weight: 900;
  display: inline-grid;
  box-shadow: inset 0 0 0 1px #ffffff26, 0 4px 10px #0f172a2e;
}

.account-avatar.large {
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.account-name {
  font-size: 13px;
}

.account-caret {
  color: #64748b;
  margin-left: -2px;
  font-size: 15px;
}

.top-mini-popover {
  z-index: 90;
  background: #fff;
  border: 1px solid #d7e2ed;
  border-radius: 16px;
  width: min(370px, 100vw - 32px);
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  overflow: hidden;
  box-shadow: 0 24px 70px #0f172a2e;
}

.mini-popover-header {
  border-bottom: 1px solid #e2e8f0;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  display: flex;
}

.mini-popover-header strong {
  color: #061b36;
  font-size: 15px;
}

.mini-popover-header span {
  color: #005ca8;
  background: #eaf6ff;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.mini-popover-list {
  padding: 6px;
  display: grid;
}

.mini-popover-list a, .account-menu-list a, .account-menu-list button {
  box-shadow: none !important;
  border: 0 !important;
  min-height: auto !important;
}

.mini-popover-list a {
  color: #0f2340;
  border-radius: 12px;
  gap: 4px;
  padding: 11px 12px;
  display: grid;
}

.mini-popover-list a:hover {
  background: #f4f8fc;
}

.mini-popover-list strong {
  font-size: 13px;
}

.mini-popover-list span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.mini-popover-footer {
  justify-content: center;
  color: #005ca8 !important;
  min-height: 42px !important;
  box-shadow: none !important;
  border-width: 1px 0 0 !important;
  border-radius: 0 !important;
  font-weight: 900 !important;
  display: flex !important;
}

.account-popover {
  width: min(390px, 100vw - 32px);
}

.account-summary {
  background: linear-gradient(135deg, #f8fbff, #fff);
  border-bottom: 1px solid #e2e8f0;
  align-items: center;
  gap: 12px;
  padding: 16px;
  display: flex;
}

.account-summary div {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.account-summary strong {
  color: #061b36;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.account-summary span:not(.account-avatar) {
  color: #64748b;
  font-size: 13px;
}

.account-menu-list {
  padding: 8px;
  display: grid;
}

.account-menu-list a, .account-menu-list button {
  cursor: pointer;
  text-align: left;
  background: #fff;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  font-weight: 800;
  display: flex;
  color: #0f2340 !important;
  border-radius: 12px !important;
  padding: 11px 12px !important;
}

.account-menu-list a:hover, .account-menu-list button:hover {
  background: #f4f8fc;
}

.account-saved-message {
  color: #166534;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  margin-bottom: 6px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}

.account-edit-form {
  gap: 10px;
  padding: 14px 16px 16px;
  display: grid;
}

.account-edit-form label {
  color: #475569;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
  display: grid;
}

.account-edit-form input {
  color: #0f172a;
  background: #fff;
  border: 1px solid #cbd7e3;
  border-radius: 10px;
  outline: none;
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
}

.account-edit-form input:focus {
  border-color: var(--lv-secondary, #005ca8);
  box-shadow: 0 0 0 3px #005ca81f;
}

.account-form-actions {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
  display: flex;
}

.global-search-backdrop {
  z-index: 1200;
  background: #0f172a70;
  place-items: start center;
  padding: 84px 20px 24px;
  display: grid;
  position: fixed;
  inset: 0;
}

.global-search-modal {
  background: #fff;
  border: 1px solid #d7e2ed;
  border-radius: 20px;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(860px, 100%);
  max-height: min(82vh, 780px);
  display: grid;
  overflow: hidden;
  box-shadow: 0 28px 90px #0f172a47;
}

.global-search-header {
  border-bottom: 1px solid #e2e8f0;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  display: flex;
}

.global-search-header h2 {
  color: #061b36;
  letter-spacing: -.5px;
  margin: 0;
  font-size: 24px;
}

.global-search-header p {
  color: #64748b;
  margin: 4px 0 0;
}

.global-search-header button {
  color: #0f2340;
  cursor: pointer;
  background: #f8fafc;
  border: 0;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  font-size: 26px;
}

.global-search-header button:hover {
  background: #eef3f7;
}

.global-search-inputline {
  margin: 16px 20px 0;
  position: relative;
}

.global-search-inputline .top-search-icon {
  left: 14px;
}

.global-search-inputline input {
  border: 1px solid #cbd7e3;
  border-radius: 14px;
  outline: none;
  width: 100%;
  min-height: 48px;
  padding: 0 14px 0 44px;
  font-size: 16px;
}

.global-search-inputline input:focus {
  border-color: var(--lv-secondary, #005ca8);
  box-shadow: 0 0 0 4px #005ca81f;
}

.global-search-results {
  gap: 14px;
  padding: 16px 20px 20px;
  display: grid;
  overflow: auto;
}

.global-result-group {
  gap: 8px;
  display: grid;
}

.global-result-group h3 {
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0;
  font-size: 12px;
}

.global-result-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  display: grid;
}

.global-result-item:hover {
  background: #f8fbff;
  border-color: #bfdbfe;
}

.global-result-type {
  color: #005ca8;
  background: #eaf6ff;
  border-radius: 999px;
  justify-self: start;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.global-result-item strong {
  color: #061b36;
}

.global-result-item p {
  color: #64748b;
  margin: 3px 0 0;
  font-size: 13px;
  line-height: 1.35;
}

.global-result-item em {
  color: #005ca8;
  white-space: nowrap;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.global-search-empty {
  color: #64748b;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #cbd7e3;
  border-radius: 16px;
  gap: 6px;
  padding: 24px;
  display: grid;
}

.global-search-empty strong {
  color: #061b36;
}

@media (max-width: 900px) {
  .refined-search-wrap {
    max-width: 100% !important;
  }

  .account-name, .account-caret {
    display: none;
  }

  .refined-topbar {
    flex-wrap: wrap;
  }

  .refined-top-actions {
    justify-content: flex-end;
    width: 100%;
    margin-left: 0 !important;
  }

  .global-result-item {
    grid-template-columns: 1fr;
  }

  .global-result-item em {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .global-search-backdrop {
    padding: 64px 10px 12px;
  }

  .global-search-modal {
    border-radius: 16px;
    max-height: 88vh;
  }

  .top-mini-popover {
    right: -6px;
  }

  .account-form-actions {
    flex-direction: column;
  }
}

.lovable-top-actions .mini-popover-list a {
  min-height: auto !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 12px !important;
  justify-content: stretch !important;
  align-items: start !important;
  gap: 4px !important;
  padding: 11px 12px !important;
  display: grid !important;
}

.lovable-top-actions .account-menu-list a, .lovable-top-actions .account-menu-list button {
  width: 100% !important;
  min-height: auto !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 12px !important;
  justify-content: flex-start !important;
  padding: 11px 12px !important;
  display: flex !important;
}

.lovable-top-actions .mini-popover-footer {
  min-height: 42px !important;
  box-shadow: none !important;
  border-width: 1px 0 0 !important;
  border-radius: 0 !important;
  justify-content: center !important;
  align-items: center !important;
  display: flex !important;
}

.ops-page {
  gap: 14px;
  display: grid;
}

.ops-title-row {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  display: flex;
}

.ops-title-row h1 {
  letter-spacing: -.04em;
  color: #020617;
  margin: 0 0 6px;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.05;
}

.ops-title-row p {
  color: #334155;
  margin: 0;
  line-height: 1.45;
}

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

.ops-filter-card {
  padding: 14px;
}

.ops-filter-grid {
  align-items: end;
  gap: 12px;
  display: grid;
}

.ops-filter-grid .field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.notification-filter-grid {
  grid-template-columns: minmax(280px, 1fr) minmax(150px, 190px) minmax(150px, 190px) auto;
}

.indicators-filter-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
}

.reports-filter-grid {
  grid-template-columns: repeat(6, minmax(130px, 1fr)) auto;
}

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

.ops-table td strong {
  color: #07192f;
}

.ops-unread-row td {
  background: #f8fbff;
}

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

.ops-quick-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 12px;
  display: grid;
}

.ops-pill-list {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.empty-state {
  border: 1px dashed var(--border);
  color: var(--muted);
  background: #f8fafc;
  border-radius: 16px;
  gap: 8px;
  padding: 22px;
  display: grid;
}

.compact-empty {
  margin: 0;
  padding: 14px;
}

.reports-page .cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reports-page .card-number {
  color: #003b71;
}

.indicators-page .ops-filter-card {
  margin-top: -4px;
}

.indicators-page .indicator-panel .section-header h2 {
  margin-bottom: 0;
}

@media (max-width: 1400px) {
  .reports-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reports-filter-grid .ops-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 1100px) {
  .notification-filter-grid, .indicators-filter-grid, .reports-filter-grid {
    grid-template-columns: 1fr;
  }

  .ops-filter-actions {
    justify-content: stretch;
  }

  .ops-filter-actions > * {
    flex: 1;
  }

  .ops-quick-grid {
    grid-template-columns: 1fr;
  }

  .reports-page .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .ops-title-row {
    align-items: stretch;
  }

  .ops-title-actions {
    justify-content: flex-start;
  }

  .reports-page .cards {
    grid-template-columns: 1fr;
  }

  .inline-actions > * {
    flex: 1;
    justify-content: center;
  }
}

.live-header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  display: flex;
}

.live-refresh-control {
  color: #075985;
  cursor: pointer;
  background: #eef7ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 11px;
  font-weight: 900;
  display: inline-flex;
  box-shadow: 0 8px 20px #005ca814;
}

.live-refresh-control:disabled {
  cursor: wait;
  opacity: .75;
}

.live-refresh-control small {
  color: #42627e;
  font-weight: 800;
}

.live-refresh-control .live-dot {
  background: #0ea5e9;
  border-radius: 999px;
  width: 9px;
  height: 9px;
  box-shadow: 0 0 0 4px #0ea5e91f;
}

.agenda-os-drawer-footer-actions {
  grid-template-columns: 1fr 1fr 92px 82px 1.35fr !important;
}

.danger-outline-button {
  color: #991b1b;
  cursor: pointer;
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 10px;
  width: 100%;
  min-height: 42px;
  font-weight: 900;
}

.danger-outline-button:hover {
  background: #fee2e2;
}

.danger-outline-button:disabled, .agenda-os-drawer-footer-actions button:disabled {
  opacity: .48;
  cursor: not-allowed;
}

@media (max-width: 1180px) {
  .agenda-os-drawer-footer-actions {
    grid-template-columns: 1fr 1fr !important;
  }

  .agenda-os-drawer-footer-actions .primary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .live-header-actions {
    justify-content: flex-start;
  }

  .live-refresh-control {
    justify-content: center;
    width: 100%;
  }

  .agenda-os-drawer-footer-actions {
    grid-template-columns: 1fr !important;
  }

  .agenda-os-drawer-footer-actions .primary {
    grid-column: auto;
  }
}

.tasky-assistant {
  z-index: 80;
  pointer-events: none;
  font-family: inherit;
  position: fixed;
  bottom: 24px;
  right: 24px;
}

.tasky-fab, .tasky-panel {
  pointer-events: auto;
}

.tasky-fab {
  color: #fff;
  cursor: pointer;
  letter-spacing: -.01em;
  background: linear-gradient(135deg, #003b71 0%, #005ca8 52%, #10b7ff 100%);
  border: 0;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-width: 132px;
  min-height: 56px;
  padding: 12px 18px;
  font-weight: 950;
  display: inline-flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 48px #003b7152, inset 0 0 0 1px #ffffff2e;
}

.tasky-fab:before {
  content: "";
  border-radius: inherit;
  border: 1px solid #ffffff2e;
  position: absolute;
  inset: 6px;
}

.tasky-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 56px #003b7161, inset 0 0 0 1px #fff3;
}

.tasky-fab-glow {
  opacity: .8;
  background: radial-gradient(circle, #ffffff94, #fff0 64%);
  width: 88px;
  height: 88px;
  position: absolute;
  top: -36px;
  right: -28px;
}

.tasky-fab-icon {
  background: #ffffff29;
  border-radius: 999px;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 17px;
  display: grid;
  box-shadow: inset 0 0 0 1px #ffffff26;
}

.tasky-fab strong {
  z-index: 1;
  position: relative;
}

.tasky-panel {
  background: #fffffffa;
  border: 1px solid #d8e5f2;
  border-radius: 24px;
  grid-template-rows: auto auto auto minmax(220px, 1fr) auto auto;
  width: min(420px, 100vw - 32px);
  max-height: min(720px, 100vh - 112px);
  margin-bottom: 14px;
  display: grid;
  overflow: hidden;
  box-shadow: 0 28px 80px #04193247;
}

.tasky-header {
  color: #fff;
  background: linear-gradient(135deg, #052a4f 0%, #003b71 48%, #005ca8 100%);
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  display: grid;
}

.tasky-avatar {
  background: #ffffff29;
  border-radius: 16px;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 20px;
  display: grid;
  box-shadow: inset 0 0 0 1px #ffffff2e;
}

.tasky-header strong {
  font-size: 18px;
  line-height: 1.1;
  display: block;
}

.tasky-header span {
  color: #cae8ff;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 750;
  display: block;
  overflow: hidden;
}

.tasky-header button {
  color: #fff;
  cursor: pointer;
  background: #ffffff21;
  border: 0;
  border-radius: 12px;
  width: 34px;
  height: 34px;
  font-size: 24px;
  line-height: 1;
}

.tasky-context-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 12px 0;
  display: grid;
}

.tasky-context-grid div {
  text-align: center;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  place-items: center;
  min-height: 64px;
  padding: 8px 4px;
  display: grid;
}

.tasky-context-grid strong {
  color: #003b71;
  font-size: 20px;
  line-height: 1;
}

.tasky-context-grid span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
}

.tasky-quick-actions {
  border-bottom: 1px solid #e2e8f0;
  gap: 8px;
  padding: 12px;
  display: flex;
  overflow-x: auto;
}

.tasky-quick-actions button, .tasky-message-actions button {
  color: #005ca8;
  cursor: pointer;
  background: #eef7ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  flex: none;
  min-height: 34px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 950;
}

.tasky-quick-actions button:hover, .tasky-message-actions button:hover {
  background: #dff1ff;
}

.tasky-messages {
  background: linear-gradient(#fff 0%, #f8fafc 100%);
  align-content: start;
  gap: 10px;
  padding: 14px;
  display: grid;
  overflow: hidden auto;
}

.tasky-message {
  white-space: pre-line;
  overflow-wrap: anywhere;
  word-break: break-word;
  border-radius: 18px;
  max-width: 92%;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.42;
}

.tasky-message > div {
  overflow-wrap: anywhere;
  min-width: 0;
}

.tasky-message.tasky {
  color: #0f172a;
  background: #fff;
  border: 1px solid #e2e8f0;
  justify-self: start;
  box-shadow: 0 10px 24px #0f172a0d;
}

.tasky-message.user {
  color: #fff;
  background: #005ca8;
  border: 1px solid #ffffff2e;
  justify-self: end;
}

.tasky-message-actions {
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
  display: flex;
}

.tasky-compose {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  display: grid;
}

.tasky-compose input {
  color: #0f172a;
  border: 1px solid #cbd7e3;
  border-radius: 14px;
  outline: none;
  min-height: 44px;
  padding: 0 12px;
}

.tasky-compose input:focus {
  border-color: #005ca8;
  box-shadow: 0 0 0 4px #005ca81f;
}

.tasky-compose button {
  color: #fff;
  cursor: pointer;
  background: #003b71;
  border: 0;
  border-radius: 14px;
  min-height: 44px;
  padding: 0 14px;
  font-weight: 950;
}

.tasky-footer {
  color: #64748b;
  gap: 8px;
  padding: 0 12px 12px;
  font-size: 11px;
  font-weight: 800;
  display: grid;
}

.tasky-footer a {
  color: #005ca8;
  justify-self: start;
  font-weight: 950;
}

.tasky-footer-action {
  color: #005ca8;
  cursor: pointer;
  background: #eef6ff;
  border: 1px solid #005ca838;
  border-radius: 999px;
  justify-self: start;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 950;
}

.tasky-footer-action:disabled {
  cursor: wait;
  opacity: .68;
}

@media (max-width: 760px) {
  .tasky-assistant {
    bottom: 14px;
    right: 14px;
  }

  .tasky-fab {
    width: 58px;
    min-width: 58px;
    height: 58px;
    padding: 0;
  }

  .tasky-fab strong {
    display: none;
  }

  .tasky-panel {
    border-radius: 20px;
    width: calc(100vw - 28px);
    max-height: calc(100vh - 96px);
  }

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

  .tasky-message {
    max-width: 96%;
  }
}

.tasky-checklist-card {
  position: relative;
  overflow: hidden;
}

.tasky-checklist-card:after {
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, #10b7ff2e, #10b7ff00 66%);
  width: 140px;
  height: 140px;
  position: absolute;
  top: -62px;
  right: -58px;
}

.tasky-checklist-shortcuts {
  z-index: 1;
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
  position: relative;
}

.tasky-checklist-shortcuts .compact {
  color: #005ca8;
  background: #fff;
  border-color: #bfdbfe;
  border-radius: 999px;
  min-height: 30px;
}

.tasky-message-actions button:first-child {
  color: #fff;
  background: #003b71;
  border-color: #003b71;
}

.tasky-message-actions button:first-child:hover {
  background: #005ca8;
}

.knowledge-page {
  gap: 14px;
  display: grid;
}

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

.knowledge-intro {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  align-items: start;
  gap: 16px;
  display: grid;
}

.knowledge-intro p {
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.knowledge-example-box {
  background: #f8fbff;
  border: 1px solid #005ca829;
  border-radius: 16px;
  gap: 8px;
  padding: 14px;
  display: grid;
}

.knowledge-example-box strong {
  color: var(--blue-900);
}

.knowledge-example-box span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  display: block;
}

.knowledge-group {
  gap: 12px;
  display: grid;
}

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

.knowledge-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 18px;
  gap: 11px;
  padding: 15px;
  display: grid;
  box-shadow: 0 10px 24px #0f172a0a;
}

.knowledge-card-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  display: flex;
}

.knowledge-card-header strong {
  color: var(--blue-900);
  font-size: 16px;
  line-height: 1.25;
}

.knowledge-card-header span {
  color: var(--muted);
  white-space: nowrap;
  background: #eef6ff;
  border: 1px solid #d7eaff;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 900;
}

.knowledge-card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

.knowledge-block {
  gap: 7px;
  display: grid;
}

.knowledge-block b {
  color: var(--blue);
  font-size: 13px;
}

.knowledge-block ol, .knowledge-block ul {
  color: var(--text);
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  display: grid;
}

.knowledge-block li {
  font-size: 13px;
  line-height: 1.35;
}

.knowledge-block.compact p {
  color: var(--text);
  font-size: 13px;
}

.knowledge-next p {
  color: var(--muted);
  margin: 0 0 8px;
  line-height: 1.5;
}

.muted-line {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 1300px) {
  .knowledge-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .knowledge-intro, .knowledge-grid, .knowledge-filter-row {
    grid-template-columns: 1fr;
  }
}

.knowledge-admin {
  gap: 14px;
  display: grid;
}

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

.knowledge-form-grid label {
  color: var(--blue-900);
  gap: 7px;
  font-size: 13px;
  font-weight: 900;
  display: grid;
}

.knowledge-form-grid label.wide {
  grid-column: 1 / -1;
}

.knowledge-form-grid input, .knowledge-form-grid select, .knowledge-form-grid textarea, .knowledge-search, .knowledge-import-box {
  border: 1px solid var(--border);
  width: 100%;
  color: var(--text);
  font: inherit;
  background: #fff;
  border-radius: 14px;
  outline: none;
  padding: 11px 12px;
  box-shadow: 0 6px 16px #0f172a0a;
}

.knowledge-form-grid textarea {
  resize: vertical;
  min-height: 96px;
}

.knowledge-import-box {
  resize: vertical;
  min-height: 180px;
  line-height: 1.45;
}

.knowledge-search {
  min-height: 44px;
}

.knowledge-filter-row {
  grid-template-columns: minmax(280px, 1fr) minmax(180px, .35fr) minmax(170px, .3fr);
  align-items: center;
  gap: 10px;
  display: grid;
}

.knowledge-filter-row select {
  border: 1px solid var(--border);
  width: 100%;
  color: var(--text);
  font: inherit;
  background: #fff;
  border-radius: 14px;
  outline: none;
  min-height: 44px;
  padding: 10px 12px;
  box-shadow: 0 6px 16px #0f172a0a;
}

.knowledge-actions-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.knowledge-actions-row.compact-row {
  margin-top: 2px;
}

.primary-action, .secondary-action, .danger-action, .file-pill {
  cursor: pointer;
  border: 1px solid #0000;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-weight: 950;
  text-decoration: none;
  display: inline-flex;
}

.primary-action {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 22px #005ca82e;
}

.secondary-action {
  color: var(--blue);
  background: #f4f9ff;
  border-color: #cfe5ff;
}

.danger-action {
  color: #b42318;
  background: #fff4f4;
  border-color: #ffd3d3;
}

.primary-action:disabled, .secondary-action:disabled, .danger-action:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

.file-pill {
  color: var(--blue);
  background: #eef6ff;
  border-color: #cfe5ff;
  position: relative;
  overflow: hidden;
}

.file-pill input {
  opacity: 0;
  cursor: pointer;
  position: absolute;
  inset: 0;
}

@media (max-width: 860px) {
  .knowledge-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1300px) {
  .knowledge-filter-row {
    grid-template-columns: 1fr;
  }
}

.tasky-agent-status {
  color: #003b71;
  background: #eff6ff;
  border-radius: 999px;
  justify-self: start;
  align-items: center;
  max-width: 100%;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.25;
  display: inline-flex;
}

.tasky-diagram-card {
  background: linear-gradient(#f8fbff 0%, #fff 100%);
  border: 1px solid #d7eaff;
  border-radius: 16px;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  display: grid;
}

.tasky-diagram-title {
  gap: 2px;
  display: grid;
}

.tasky-diagram-title strong {
  color: #003b71;
  font-size: 13px;
  line-height: 1.2;
}

.tasky-diagram-title span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.tasky-diagram-svg {
  background: radial-gradient(circle at 16% 12%, #005ca81a, #0000 26%), #fff;
  border: 1px solid #e5effa;
  border-radius: 14px;
  width: 100%;
  min-height: 190px;
}

.tasky-diagram-line {
  stroke: #005ca8;
  stroke-width: 2.4px;
  fill: none;
}

.tasky-diagram-svg marker path {
  fill: #005ca8;
}

.tasky-diagram-edge-label {
  fill: #003b71;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
  stroke-linejoin: round;
  font-size: 12px;
  font-weight: 900;
}

.tasky-diagram-node rect {
  fill: #eef7ff;
  stroke: #005ca8;
  stroke-width: 2px;
  filter: drop-shadow(0 8px 10px #003b7114);
}

.tasky-diagram-node.switch rect {
  fill: #eafaf7;
  stroke: #0f766e;
}

.tasky-diagram-node.display rect {
  fill: #fff7ed;
  stroke: #c2410c;
}

.tasky-diagram-node.camera rect {
  fill: #f5f3ff;
  stroke: #6d28d9;
}

.tasky-diagram-node.power rect {
  fill: #fff1f2;
  stroke: #be123c;
}

.tasky-diagram-node text {
  fill: #0f172a;
  dominant-baseline: middle;
  font-size: 13px;
  font-weight: 950;
}

.tasky-diagram-notes {
  color: #334155;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  display: grid;
}

.tasky-diagram-notes li {
  font-size: 11.5px;
  line-height: 1.35;
}

.execution-guide-panel {
  background: linear-gradient(135deg, #f8fbff 0%, #eef7ff 100%);
  border: 1px solid #005ca82e;
  border-radius: 18px;
  padding: 16px;
}

.execution-guide-panel h3 {
  color: var(--brand);
  margin: 0 0 4px;
}

.execution-guide-panel p {
  color: var(--muted);
  margin: 0;
}

.account-permission-card {
  background: #f7fbff;
  border: 1px solid #d8e6f7;
  border-radius: 12px;
  gap: 7px;
  margin: 10px 0;
  padding: 10px;
  display: grid;
}

.account-permission-card strong {
  color: #063762;
  font-size: 13px;
}

.account-permission-card span {
  color: #42627e;
  font-size: 12px;
  line-height: 1.35;
}

.account-permission-card div {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.account-permission-card em {
  color: #004b86;
  background: #e7f2ff;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.permission-matrix-card {
  gap: 14px;
  display: grid;
}

.permission-profile-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  display: grid;
}

.permission-profile-card {
  background: linear-gradient(#fff 0%, #f6fbff 100%);
  border: 1px solid #d9e7f8;
  border-radius: 16px;
  gap: 8px;
  padding: 14px;
  display: grid;
  box-shadow: 0 10px 22px #0f172a0d;
}

.permission-profile-card strong {
  color: #062f55;
  font-size: 15px;
  font-weight: 950;
}

.permission-profile-card p {
  color: #4b6380;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.permission-chip-list {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.permission-chip-list span, .permission-chip-list em {
  color: #004b86;
  background: #e8f2ff;
  border-radius: 999px;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  display: inline-flex;
}

.permission-chip-list em {
  color: #475569;
  background: #f1f5f9;
}

.agenda-os-drawer {
  width: min(660px, 100vw - 44px) !important;
  max-width: 100vw !important;
}

.agenda-os-drawer .os-drawer-header {
  padding-right: 26px !important;
}

.agenda-os-drawer .os-drawer-header button {
  border: 1px solid #0000;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin-left: 12px;
}

.agenda-os-drawer .os-drawer-header button:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #1d74d838;
}

.agenda-os-drawer-footer-actions {
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  display: grid !important;
}

.agenda-os-drawer-footer-actions a, .agenda-os-drawer-footer-actions button {
  white-space: normal !important;
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  line-height: 1.15 !important;
  display: inline-flex !important;
}

.agenda-os-drawer-footer-actions .primary {
  grid-column: 1 / -1 !important;
}

@media (min-width: 1280px) {
  .agenda-os-drawer-footer-actions {
    grid-template-columns: 1fr 1fr 1fr !important;
  }

  .agenda-os-drawer-footer-actions .primary {
    grid-column: 2 / 4 !important;
  }
}

@media (max-width: 760px) {
  .agenda-os-drawer {
    width: 100vw !important;
  }

  .agenda-os-drawer-footer-actions {
    grid-template-columns: 1fr !important;
  }

  .agenda-os-drawer-footer-actions .primary {
    grid-column: auto !important;
  }
}

.publication-page {
  padding-bottom: 80px;
}

.publication-hero .hero-panel {
  align-content: center;
  min-height: 180px;
}

.publication-kpis .kpi-card strong {
  font-size: 22px;
}

.publication-checklist {
  margin-top: 16px;
}

.publication-flow {
  overflow: hidden;
}

.flow-line {
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  display: grid;
}

.flow-line > div {
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 16px;
  align-content: center;
  gap: 6px;
  min-height: 96px;
  padding: 14px;
  display: grid;
}

.flow-line > div strong {
  color: var(--blue);
  font-size: 16px;
}

.flow-line > div span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.flow-line > span {
  color: var(--blue-2);
  font-size: 24px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .flow-line {
    grid-template-columns: 1fr;
  }

  .flow-line > span {
    justify-self: center;
    transform: rotate(90deg);
  }
}

.mobile-bottom-nav, .mobile-touch-note {
  display: none;
}

@media (hover: none) and (pointer: coarse) {
  button, a.primary, a.secondary, .primary, .secondary, .top-icon-button, .account-chip, .tasky-quick-actions button, .tasky-message-actions button, .mobile-bottom-nav a {
    min-height: 44px;
  }
}

@media (max-width: 760px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  .lovable-shell {
    min-height: 100vh;
    display: block !important;
  }

  .lovable-sidebar.expanded, .lovable-sidebar.collapsed, .sidebar {
    display: none !important;
  }

  .lovable-main-wrap, .lovable-sidebar.collapsed + .lovable-main-wrap, .lovable-sidebar.expanded + .lovable-main-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
  }

  .lovable-main {
    width: 100%;
    min-width: 0;
    padding: 12px 10px 104px !important;
  }

  .lovable-topbar, .refined-topbar {
    z-index: 45;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-radius: 0 0 18px 18px;
    grid-template-columns: 1fr;
    top: 0;
    background: #f4f7fbf5 !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 9px 10px !important;
    display: grid !important;
    position: sticky !important;
  }

  .top-search-wrap, .refined-search-wrap {
    order: 2;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .top-search-wrap input, .refined-search-wrap input, .search {
    font-size: 14px;
    min-height: 44px !important;
  }

  .lovable-top-actions, .refined-top-actions {
    order: 1;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 8px !important;
    width: 100% !important;
    padding-bottom: 0 !important;
    display: grid !important;
    overflow: visible !important;
  }

  .account-chip {
    min-width: 0;
    max-width: 100%;
  }

  .account-name {
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 84px;
    overflow: hidden;
  }

  .top-primary {
    white-space: nowrap;
    justify-self: end;
    min-height: 42px;
    border-radius: 13px !important;
    padding: 0 12px !important;
  }

  .top-mini-popover, .notifications-popover, .account-popover {
    max-height: calc(100vh - 190px);
    overflow: auto;
    width: auto !important;
    max-width: none !important;
    position: fixed !important;
    top: 112px !important;
    left: 10px !important;
    right: 10px !important;
  }

  .section-title, .page-hero h1 {
    font-size: clamp(22px, 7vw, 30px) !important;
  }

  .page-hero, .knowledge-intro, .publication-hero, .dashboard-panels, .details-grid, .cards, .form, .technician-grid, .permission-profile-grid, .knowledge-grid, .publication-kpis, .client-grid {
    grid-template-columns: 1fr !important;
  }

  .card, .page-hero, .hero-panel, .toolbar-card, .execution-guide-panel {
    border-radius: 16px !important;
    padding: 14px !important;
  }

  .section-header, .hero-actions, .actions, .topbar-actions, .client-actions, .knowledge-actions-row, .toolbar-inline-actions, .live-header-actions {
    width: 100%;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .actions a, .actions button, .hero-actions a, .hero-actions button, .knowledge-actions-row button, .knowledge-actions-row a, .client-actions a, .client-actions button, .toolbar-inline-actions a, .toolbar-inline-actions button {
    text-align: center;
    justify-content: center !important;
    width: 100% !important;
  }

  :is(.table, .card:has(.table)) {
    min-width: 0 !important;
  }

  .table {
    width: 100%;
    display: block;
    overflow-x: auto;
  }

  .table th, .table td {
    white-space: nowrap;
  }

  .month-calendar, .month-calendar-shell, .calendar-shell {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto !important;
  }

  .weekday-row, .month-grid, .month-grid-operational {
    min-width: 760px !important;
  }

  .agenda-kpis, .agenda-kpis-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .agenda-kpis .card, .agenda-kpis-secondary .card {
    padding: 11px !important;
  }

  .agenda-os-drawer, .os-side-drawer, .day-side-drawer {
    width: 100vw !important;
    max-width: 100vw !important;
    left: auto !important;
    right: 0 !important;
  }

  .agenda-os-drawer-footer-actions, .drawer-actions, .drawer-footer-actions {
    padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important;
    grid-template-columns: 1fr !important;
  }

  .service-order-tabs, .tabs, .view-tabs {
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    width: 100%;
    padding-bottom: 4px;
    display: flex;
    overflow-x: auto;
  }

  .service-order-tabs a, .tabs a, .view-tabs a {
    white-space: nowrap;
    flex: none;
    min-height: 40px;
  }

  .tasky-assistant {
    left: auto;
    right: 10px !important;
    bottom: calc(76px + env(safe-area-inset-bottom)) !important;
  }

  .tasky-panel {
    left: 8px;
    right: 8px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    grid-template-rows: auto auto auto minmax(170px, 1fr) auto auto;
    position: fixed;
    width: auto !important;
    max-height: calc(100vh - 98px - env(safe-area-inset-bottom)) !important;
    border-radius: 18px !important;
    margin-bottom: 0 !important;
  }

  .tasky-header {
    grid-template-columns: 38px minmax(0, 1fr) 38px !important;
    padding: 12px !important;
  }

  .tasky-context-grid {
    overflow-x: auto;
    grid-template-columns: repeat(4, minmax(70px, 1fr)) !important;
    padding: 10px 10px 0 !important;
  }

  .tasky-context-grid div {
    min-width: 78px;
    min-height: 58px;
  }

  .tasky-messages {
    padding: 10px !important;
  }

  .tasky-message {
    max-width: 98% !important;
    font-size: 12.8px !important;
  }

  .tasky-compose {
    grid-template-columns: 1fr auto;
    gap: 6px;
    padding: 10px !important;
  }

  .tasky-compose button {
    padding: 0 12px !important;
  }

  .tasky-diagram-svg {
    min-width: 520px;
  }

  .tasky-diagram-card {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
  }

  .global-search-backdrop {
    align-items: start !important;
    padding: 8px !important;
  }

  .global-search-modal {
    border-radius: 18px !important;
    width: 100% !important;
    max-height: calc(100vh - 22px) !important;
  }

  .global-search-header {
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .global-result-item {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .mobile-bottom-nav {
    z-index: 70;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    background: #fffffff7;
    border-top: 1px solid #d8e6f7;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    display: grid;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: 0 -16px 34px #0f172a1a;
  }

  .mobile-bottom-nav a {
    color: #38556f;
    border-radius: 14px;
    align-content: center;
    justify-items: center;
    gap: 3px;
    min-width: 0;
    min-height: 48px;
    font-size: 10.5px;
    font-weight: 900;
    display: grid;
  }

  .mobile-bottom-nav a.active {
    color: #003b71;
    background: #e8f2ff;
  }

  .mobile-bottom-nav .nav-svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 430px) {
  .lovable-main {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .agenda-kpis, .agenda-kpis-secondary {
    grid-template-columns: 1fr !important;
  }

  .top-primary {
    font-size: 12px;
    padding: 0 10px !important;
  }

  .account-name {
    display: none !important;
  }

  .tasky-panel {
    left: 6px;
    right: 6px;
  }

  .tasky-compose {
    grid-template-columns: 1fr;
  }

  .tasky-compose button {
    width: 100%;
  }

  .mobile-bottom-nav a span {
    font-size: 9.8px;
  }
}

.mobile-technician-agenda {
  display: none;
}

.mobile-day-top {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.mobile-day-top span {
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 12px;
  font-weight: 900;
}

.mobile-day-top h1 {
  color: #06142a;
  text-transform: capitalize;
  margin: 3px 0;
  font-size: 24px;
  line-height: 1.1;
}

.mobile-day-top p {
  color: #48627d;
  margin: 0;
  font-size: 13px;
}

.mobile-day-switcher {
  grid-template-columns: 44px 1fr 44px auto;
  align-items: center;
  gap: 8px;
  display: grid;
}

.mobile-day-switcher .secondary {
  min-height: 42px;
}

.mobile-day-picker {
  position: relative;
}

.mobile-day-picker summary {
  cursor: pointer;
  list-style: none;
}

.mobile-day-picker summary::-webkit-details-marker {
  display: none;
}

.mobile-day-picker-panel {
  z-index: 20;
  gap: 10px;
  width: min(260px, 100vw - 38px);
  display: grid;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
}

.mobile-day-picker-panel label {
  color: #48627d;
  font-size: 12px;
  font-weight: 900;
}

.mobile-day-picker-panel input {
  min-height: 42px;
  padding: 0 10px;
}

.mobile-day-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  display: grid;
}

.mobile-day-summary div {
  background: #f7fbff;
  border: 1px solid #d7e8f7;
  border-radius: 16px;
  gap: 2px;
  padding: 11px 10px;
  display: grid;
}

.mobile-day-summary strong {
  color: #003b71;
  font-size: 22px;
  line-height: 1;
}

.mobile-day-summary span {
  color: #55708b;
  font-size: 12px;
  font-weight: 800;
}

.mobile-day-list {
  gap: 10px;
  display: grid;
}

.mobile-day-os-card {
  border: 1px solid #dbe9f6;
  border-left: 5px solid var(--dot, #94a3b8);
  background: #fff;
  border-radius: 18px;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  display: grid;
  box-shadow: 0 12px 24px #0f172a0e;
}

.mobile-day-os-time {
  align-content: start;
  gap: 3px;
  padding-top: 2px;
  display: grid;
}

.mobile-day-os-time strong {
  color: #003b71;
  font-size: 18px;
  line-height: 1;
}

.mobile-day-os-time span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.mobile-day-os-main {
  gap: 6px;
  min-width: 0;
  display: grid;
}

.mobile-day-os-header {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.mobile-day-os-header > strong {
  color: #06142a;
  font-size: 16px;
}

.mobile-day-os-main h3 {
  color: #10243e;
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
}

.mobile-day-os-main p {
  color: #64748b;
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

.mobile-day-os-meta {
  color: #48627d;
  gap: 3px;
  font-size: 12px;
  display: grid;
}

.mobile-day-os-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 3px;
  display: grid;
}

.mobile-day-os-actions a {
  width: 100%;
}

.mobile-empty-day {
  color: #48627d;
  background: #f8fbff;
  border: 1px dashed #bdd5ea;
  border-radius: 18px;
  gap: 5px;
  padding: 18px;
  display: grid;
}

.mobile-empty-day strong {
  color: #06142a;
}

@media (max-width: 760px) {
  .agenda-page {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
    gap: 10px !important;
  }

  .mobile-technician-agenda {
    gap: 12px;
    display: grid;
    border-radius: 20px !important;
    padding: 14px !important;
  }

  .agenda-desktop-toolbar, .agenda-desktop-only, .agenda-desktop-view, .month-calendar, .month-calendar-shell, .calendar-shell, .status-legend {
    display: none !important;
  }

  .unscheduled-bar {
    grid-template-columns: auto 1fr auto;
    border-radius: 14px !important;
    padding: 9px 10px !important;
  }

  .mobile-day-top h1 {
    font-size: 22px;
  }

  .mobile-day-switcher {
    grid-template-columns: 42px 1fr 42px;
  }

  .mobile-day-picker {
    grid-column: 1 / -1;
  }

  .mobile-day-picker summary {
    justify-content: center;
    width: 100%;
  }

  .mobile-day-picker-panel {
    width: 100%;
    left: 0;
    right: auto;
  }
}

@media (max-width: 390px) {
  .mobile-day-os-card {
    grid-template-columns: 1fr;
  }

  .mobile-day-os-time {
    grid-template-columns: auto auto;
    justify-content: start;
    align-items: baseline;
  }

  .mobile-day-os-actions, .mobile-day-summary {
    grid-template-columns: 1fr;
  }
}

.install-page {
  gap: 18px;
}

.install-hero .hero-panel strong {
  color: #003b71;
  font-size: 34px;
}

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

.install-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.install-step-card {
  align-content: start;
}

.install-step-card ol {
  color: #314a67;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 20px;
  line-height: 1.45;
  display: grid;
}

.install-step-card li::marker {
  color: #005ba8;
  font-weight: 900;
}

.section-header.compact {
  align-items: flex-start;
}

.pwa-install-banner {
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 120;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: #fffffff5;
  border: 1px solid #a0c6e8cc;
  border-radius: 20px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: min(640px, 100vw - 28px);
  padding: 12px;
  display: grid;
  position: fixed;
  transform: translateX(-50%);
  box-shadow: 0 24px 50px #0f172a2e;
}

.pwa-install-banner strong {
  color: #06142a;
  font-size: 14px;
  display: block;
}

.pwa-install-banner span {
  color: #48627d;
  margin-top: 2px;
  font-size: 12px;
  display: block;
}

.pwa-install-banner button, .pwa-install-banner a {
  color: #fff;
  background: #005ba8;
  border: 0;
  border-radius: 14px;
  place-items: center;
  min-height: 38px;
  padding: 0 14px;
  font-weight: 900;
  text-decoration: none;
  display: inline-grid;
}

.pwa-install-banner .ghost {
  color: #48627d;
  background: #eef5fc;
  width: 36px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 900px) {
  .install-kpis, .install-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .pwa-install-banner {
    left: 8px;
    right: 8px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    grid-template-columns: minmax(0, 1fr) auto;
    width: auto;
    transform: none;
  }

  .pwa-install-banner .ghost {
    grid-area: 1 / 2;
    align-self: start;
  }

  .pwa-install-banner button, .pwa-install-banner a {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.homologation-page {
  gap: 18px;
}

.homologation-hero .eyebrow {
  color: #005ba8;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
}

.homologation-score strong {
  color: #003b71;
  font-size: 38px;
}

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

.homologation-list {
  gap: 10px;
  display: grid;
}

.homologation-item {
  background: #f8fbff;
  border: 1px solid #dbe9f6;
  border-radius: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  display: grid;
}

.homologation-item-head {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
  display: flex;
}

.homologation-item h3 {
  color: #06142a;
  margin: 0;
  font-size: 16px;
}

.homologation-item p {
  color: #48627d;
  margin: 0;
  line-height: 1.4;
}

.homologation-item small {
  color: #64748b;
  margin-top: 6px;
  line-height: 1.4;
  display: block;
}

.homologation-next-grid {
  grid-template-columns: 1.05fr .95fr;
}

.homologation-steps {
  color: #314a67;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 20px;
  line-height: 1.45;
  display: grid;
}

.homologation-steps li::marker {
  color: #005ba8;
  font-weight: 900;
}

.homologation-decision {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  display: flex;
}

.homologation-decision p {
  max-width: 860px;
}

@media (max-width: 900px) {
  .homologation-kpis, .homologation-next-grid {
    grid-template-columns: 1fr;
  }

  .homologation-decision {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .homologation-item {
    grid-template-columns: 1fr;
  }

  .homologation-item .secondary {
    width: 100%;
  }

  .homologation-item-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.tasky-assistant {
  z-index: 9990 !important;
  pointer-events: auto !important;
}

.tasky-assistant.open {
  z-index: 9999 !important;
}

.tasky-fab {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  z-index: 9999;
}

.tasky-assistant.open .tasky-fab {
  display: none;
}

.tasky-panel {
  z-index: 10000 !important;
  pointer-events: auto !important;
}

.pwa-install-banner {
  z-index: 10020 !important;
}

@supports (-webkit-touch-callout: none) {
  .tasky-fab, .tasky-header button, .tasky-compose button, .tasky-quick-actions button, .tasky-message-actions button {
    cursor: pointer;
    -webkit-tap-highlight-color: #005ca829;
  }
}

@media (max-width: 760px) {
  .tasky-assistant {
    right: 12px !important;
    bottom: calc(82px + env(safe-area-inset-bottom)) !important;
  }

  .tasky-panel {
    left: 8px !important;
    right: 8px !important;
    bottom: calc(82px + env(safe-area-inset-bottom)) !important;
    max-height: calc(100dvh - 112px - env(safe-area-inset-bottom)) !important;
  }

  .pwa-install-banner {
    bottom: calc(86px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 430px) {
  .tasky-panel {
    left: 6px !important;
    right: 6px !important;
    bottom: calc(76px + env(safe-area-inset-bottom)) !important;
    max-height: calc(100dvh - 96px - env(safe-area-inset-bottom)) !important;
  }

  .tasky-compose {
    grid-template-columns: 1fr !important;
  }

  .tasky-compose button {
    width: 100% !important;
  }
}

.tasky-route-page {
  place-items: center;
  min-height: calc(100dvh - 160px);
  padding: 24px;
  display: grid;
}

.tasky-route-page section {
  background: linear-gradient(135deg, #fffffff5, #eef7fff5);
  border: 1px solid #dbeafe;
  border-radius: 28px;
  max-width: 720px;
  padding: 28px;
  box-shadow: 0 20px 60px #0f172a14;
}

.tasky-route-page h1 {
  color: #003b71;
  letter-spacing: -.05em;
  margin: 8px 0 10px;
  font-size: clamp(32px, 7vw, 58px);
}

.tasky-route-page p {
  color: #334155;
  font-size: 15px;
  line-height: 1.55;
}

.tasky-route-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  display: flex;
}

.tasky-route-actions a {
  border-radius: 999px;
  min-height: 42px;
  padding: 10px 16px;
  font-weight: 950;
  text-decoration: none;
}

.tasky-route-actions .primary {
  color: #fff;
  background: #003b71;
}

.tasky-route-actions .secondary {
  color: #005ca8;
  background: #eef7ff;
  border: 1px solid #bfdbfe;
}

.tasky-assistant.tasky-fullpage {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: #02061761;
  z-index: 11000 !important;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)) !important;
  place-items: center !important;
  display: grid !important;
  position: fixed !important;
  inset: 0 !important;
}

.tasky-assistant.tasky-fullpage .tasky-fab {
  display: none !important;
}

.tasky-assistant.tasky-fullpage .tasky-panel {
  width: min(860px, 100vw - 24px) !important;
  height: min(820px, calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))) !important;
  border-radius: 24px !important;
  max-height: none !important;
  margin: 0 !important;
}

@media (max-width: 760px) {
  .tasky-assistant.tasky-fullpage {
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)) !important;
  }

  .tasky-assistant.tasky-fullpage .tasky-panel {
    width: calc(100vw - 16px) !important;
    height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    border-radius: 18px !important;
  }
}

.tasky-assistant {
  isolation: isolate;
}

.tasky-fab {
  -webkit-user-select: none;
  user-select: none;
  pointer-events: auto !important;
}

.tasky-assistant.open:not(.tasky-fullpage) {
  bottom: 24px !important;
  right: 24px !important;
}

.tasky-assistant.open:not(.tasky-fullpage):before {
  content: "";
  pointer-events: none;
  z-index: -1;
  background: #0206172e;
  position: fixed;
  inset: 0;
}

@media (max-width: 760px) {
  .tasky-assistant.open:not(.tasky-fullpage) {
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    background: #02061757;
    padding: max(10px, env(safe-area-inset-top)) 10px calc(74px + env(safe-area-inset-bottom)) !important;
    place-items: end center !important;
    display: grid !important;
    inset: 0 !important;
  }

  .tasky-assistant.open:not(.tasky-fullpage):before {
    display: none;
  }

  .tasky-assistant.open:not(.tasky-fullpage) .tasky-panel {
    border-radius: 24px !important;
    grid-template-rows: auto auto auto minmax(160px, 1fr) auto auto !important;
    width: min(100%, 720px) !important;
    height: min(78dvh, 760px) !important;
    max-height: none !important;
    margin: 0 !important;
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
  }

  .tasky-assistant.open:not(.tasky-fullpage) .tasky-context-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .tasky-assistant.open:not(.tasky-fullpage) .tasky-context-grid div {
    min-height: 52px;
  }

  .tasky-assistant.open:not(.tasky-fullpage) .tasky-context-grid strong {
    font-size: 18px;
  }

  .tasky-assistant.open:not(.tasky-fullpage) .tasky-compose {
    grid-template-columns: minmax(0, 1fr) 86px !important;
  }

  .tasky-assistant.open:not(.tasky-fullpage) .tasky-compose button {
    width: auto !important;
  }
}

@media (max-width: 430px) {
  .tasky-assistant.open:not(.tasky-fullpage) {
    padding-left: 6px !important;
    padding-right: 6px !important;
    padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important;
  }

  .tasky-assistant.open:not(.tasky-fullpage) .tasky-panel {
    border-radius: 18px !important;
    height: min(80dvh, 760px) !important;
  }

  .tasky-assistant.open:not(.tasky-fullpage) .tasky-context-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/*# sourceMappingURL=apps_web_app_globals_1lkgh9-.css.map*/