@font-face {
  font-family: Manrope;
  src: url("/manrope.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/manrope-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
:root {
  font-family: Manrope, system-ui, sans-serif;
  color: #193a34;
  background: #f5f6f1;
  font-synthesis: none;
  --ink: #193a34;
  --muted: #65766f;
  --line: #e2e7df;
  --green: #173c36;
  --lime: #d9eea4;
  --paper: #fff;
  --danger: #9c362c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #8fae53;
  outline-offset: 3px;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(27px, 3vw, 36px);
  letter-spacing: -1.4px;
  font-weight: 600;
  line-height: 1.25;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.6px;
  font-weight: 600;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
p {
  line-height: 1.65;
}
small {
  font-size: 12px;
}
a {
  text-decoration: none;
}
svg {
  vertical-align: middle;
}
.skip {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--lime);
  padding: 12px;
}
.skip:focus {
  top: 16px;
}
[hidden] {
  display: none !important;
}
#shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
}
#sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: var(--green);
  color: #fff;
  padding: 32px 19px 20px;
  display: flex;
  flex-direction: column;
  z-index: 40;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 38px;
}
.brand img {
  width: 108px;
  height: auto;
}
.brand span {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #d0dfca;
  border-left: 1px solid #58736b;
  padding-left: 12px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #9cb8aa;
  padding: 0 14px;
  margin-bottom: 14px;
}
#navigation {
  display: grid;
  gap: 6px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  color: #bed0c8;
  border-radius: 9px;
  font-size: 13px;
  min-height: 46px;
}
.nav-link:hover {
  background: #234940;
  color: #fff;
}
.nav-link.active {
  background: #d9eea4;
  color: var(--green);
  font-weight: 600;
}
.nav-icon {
  width: 21px;
  font-size: 18px;
  text-align: center;
}
.nav-link em {
  font-style: normal;
  margin-left: auto;
  font-size: 11px;
  border-radius: 5px;
  background: #294d43;
  padding: 2px 6px;
  color: white;
}
.nav-link.active em {
  background: #c1d783;
  color: #173c36;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 24px 11px 0;
}
.sidebar-bottom > p {
  font-size: 12px;
  line-height: 1.8;
  color: #a8c0b5;
  margin-bottom: 30px;
}
.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #385a4e;
  padding-top: 18px;
  font-size: 12px;
}
.avatar {
  background: #365c4f;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--lime);
}
.user-card button {
  border: 0;
  background: none;
  color: #d9eea4;
  padding: 12px;
  margin-left: auto;
  font-size: 20px;
}
.workspace {
  min-width: 0;
}
.topbar {
  min-height: 83px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 36px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb span {
  padding: 0 12px;
  color: #abb5ac;
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 500;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.demo-pill {
  font-size: 11px;
  background: #f0f5e5;
  border: 1px solid #dfe8d2;
  padding: 6px 9px;
  border-radius: 6px;
  color: #4c6745;
}
.icon-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  min-width: 42px;
  min-height: 42px;
  font-size: 18px;
  padding: 8px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 43px;
  padding: 10px 15px;
  background: white;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.button:hover {
  filter: brightness(0.97);
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.lime {
  background: var(--lime);
  border-color: var(--lime);
}
.danger {
  color: var(--danger);
  border-color: #e8d8d4;
}
.text-button {
  background: none;
  border: 0;
  min-height: 42px;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.menu-button {
  display: none;
}
#main {
  padding: 35px 36px 28px;
  max-width: 1740px;
  min-height: calc(100dvh - 150px);
  margin: auto;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: #718665;
  margin-bottom: 9px;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.heading-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.date-label {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 19px 20px;
  position: relative;
}
.metric-icon {
  position: absolute;
  right: 18px;
  top: 18px;
  background: #f2f5ed;
  color: #58764f;
  border-radius: 8px;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  font-size: 17px;
}
.metric .label {
  color: var(--muted);
  font-size: 12px;
  padding-right: 35px;
}
.metric strong {
  display: block;
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 13px 0 5px;
}
.metric small {
  color: var(--muted);
  font-size: 11px;
}
.metric .dot {
  color: #839e49;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr);
  gap: 22px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  overflow: hidden;
  min-width: 0;
}
.panel-header {
  padding: 21px 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.panel-header h2 {
  font-size: 17px;
}
.panel-header p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.panel-body {
  padding: 20px 23px;
}
.panel + .panel {
  margin-top: 22px;
}
.dashboard-grid > .panel {
  margin: 0;
}
.muted {
  color: var(--muted);
}
.caption {
  font-size: 12px;
  color: var(--muted);
}
.empty {
  padding: 35px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.badge {
  display: inline-block;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 10px;
  line-height: 1.4;
  white-space: normal;
}
.state-new {
  background: #edf3dc;
  color: #546d2d;
}
.state-clarifying,
.state-hold {
  background: #fff0d6;
  color: #886014;
}
.state-preparing,
.state-draft {
  background: #eff1f0;
  color: #64716b;
}
.state-offered,
.state-sent {
  background: #e9f0fa;
  color: #416587;
}
.state-won,
.state-confirmed,
.state-accepted {
  background: #e5f2e9;
  color: #2e7050;
}
.state-cancelled,
.state-lost,
.state-rejected {
  background: #f6e9e6;
  color: #974d40;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
.table th {
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #819084;
  background: #fbfcf8;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 17px 20px;
  border-bottom: 1px solid #edf0e9;
  vertical-align: middle;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table tbody tr:hover {
  background: #fafbf7;
}
.table .name {
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}
.table .sub {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
.row-link {
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  min-height: 36px;
  width: 100%;
}
.row-link:hover .name {
  text-decoration: underline;
}
.cell-arrow {
  font-size: 18px;
  color: #6e806d;
}
.reference {
  color: #718467;
  font-size: 10px;
  letter-spacing: 0.3px;
}
.filters {
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.filters label {
  margin: 0;
}
.filters input {
  width: min(320px, 100%);
}
.filters select {
  width: auto;
  min-width: 160px;
}
.filter-field {
  max-width: 100%;
}
.field-label {
  display: block;
  font-size: 11px;
  margin-bottom: 7px;
  font-weight: 600;
}
input,
select,
textarea {
  border: 1px solid #dbe2d7;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
  width: 100%;
  font-size: 12px;
  min-height: 43px;
}
textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.7;
}
input::placeholder,
textarea::placeholder {
  color: #89948a;
}
label {
  display: block;
  margin-bottom: 17px;
}
fieldset {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}
legend {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 15px;
}
.full {
  grid-column: 1/-1;
}
.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  margin: 0;
  min-height: 47px;
}
.check input {
  width: 17px;
  min-height: 17px;
  accent-color: var(--green);
  flex: none;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  position: sticky;
  bottom: -25px;
  background: white;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  margin-top: 10px;
}
.form-error {
  font-size: 12px;
  line-height: 1.6;
  color: var(--danger);
  background: #fff1ee;
  border: 1px solid #eed1ca;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 15px;
}
.form-notice {
  padding: 12px 15px;
  background: #f2f5ea;
  font-size: 11px;
  color: #637358;
  line-height: 1.7;
  border-radius: 6px;
  margin-bottom: 20px;
}
.section-title {
  font-size: 12px;
  font-weight: 600;
  padding: 20px 0 14px;
  margin-top: 5px;
  border-top: 1px solid var(--line);
}
.history {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}
.history li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
}
.history small {
  color: var(--muted);
  font-size: 10px;
  display: block;
}
.history p {
  white-space: pre-wrap;
}
.trip-item {
  display: flex;
  gap: 13px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.trip-item:first-child {
  padding-top: 0;
}
.trip-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.trip-date {
  width: 44px;
  flex: none;
  text-align: center;
  background: #f0f4e9;
  border-radius: 6px;
  padding: 7px 3px;
  align-self: flex-start;
}
.trip-date strong {
  display: block;
  font-size: 20px;
}
.trip-date small {
  font-size: 9px;
  color: var(--muted);
}
.trip-text {
  min-width: 0;
  flex: 1;
}
.trip-text h3 {
  font-size: 12px;
  margin-bottom: 5px;
}
.trip-text p {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.trip-text .badge {
  margin-top: 9px;
}
.trip-item .icon-button {
  border: 0;
  align-self: center;
  font-size: 16px;
}
.quick-note {
  margin-top: 22px;
  background: #edf2e1;
  border: 1px solid #dfe7cf;
  border-radius: 10px;
  padding: 19px 23px;
  font-size: 12px;
  line-height: 1.8;
}
.quick-note h3 {
  font-size: 13px;
  margin-bottom: 6px;
}
.quick-note p {
  font-size: 12px;
  color: #61704e;
}
.workspace-footer {
  border-top: 1px solid var(--line);
  margin: 0 36px;
  padding: 18px 0;
  font-size: 10px;
  color: #889384;
  display: flex;
  justify-content: space-between;
}
#global-status:not(:empty) {
  padding: 13px 36px;
  background: #e9f2d8;
  font-size: 12px;
}
#global-status.error {
  background: #fff1ee;
  color: var(--danger);
}
.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 20px;
}
.calendar-toolbar .button {
  padding: 8px 12px;
}
.calendar-toolbar .group {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.calendar-toolbar input {
  max-width: 158px;
}
.calendar-toolbar select {
  max-width: 190px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  min-height: 430px;
}
.calendar-grid.day-view {
  grid-template-columns: 1fr;
}
.calendar-day {
  border-right: 1px solid var(--line);
  padding: 12px 8px;
  min-width: 0;
}
.calendar-day:last-child {
  border-right: 0;
}
.day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3px 14px;
  font-size: 11px;
  color: var(--muted);
}
.day-header strong {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}
.calendar-day.today {
  background: #f7faef;
}
.calendar-day.today .day-header strong {
  background: var(--green);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.event {
  display: block;
  text-align: left;
  width: 100%;
  border: 1px solid #d3e4c8;
  background: #edf5e6;
  border-left: 3px solid #83a361;
  border-radius: 6px;
  padding: 10px 8px;
  margin-bottom: 9px;
  color: #355337;
  overflow-wrap: anywhere;
}
.event.hold {
  border-color: #efdbaf;
  border-left-color: #c59d4f;
  background: #fff7e7;
  color: #745c2f;
}
.event.block {
  border-color: #e3d9d4;
  border-left-color: #ab8776;
  background: #f7f0ec;
  color: #7c5d50;
}
.event strong {
  font-size: 11px;
  display: block;
  line-height: 1.6;
}
.event small {
  font-size: 10px;
  display: block;
  line-height: 1.7;
  margin-top: 5px;
}
.event-time {
  font-size: 10px;
  display: block;
  margin-bottom: 7px;
}
.add-day {
  width: 100%;
  border: 1px dashed #dce3d5;
  border-radius: 5px;
  background: transparent;
  color: #7c8c71;
  min-height: 34px;
  font-size: 16px;
}
.calendar-key {
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.calendar-key b {
  font-size: 14px;
  margin-right: 5px;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.resource-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 23px;
}
.resource-card .resource-mark {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: #f0f4e7;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.resource-card h2 {
  font-size: 16px;
  margin-bottom: 7px;
}
.resource-card p {
  font-size: 11px;
  color: var(--muted);
}
.resource-card .section-title {
  font-size: 10px;
  padding-top: 15px;
  margin-top: 19px;
}
.mini-trip {
  padding: 9px 0;
  border-top: 1px solid #edf0e9;
  font-size: 11px;
}
.mini-trip small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.notification {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.notification .notice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b4c78d;
  margin-top: 6px;
  flex: none;
}
.notification.read .notice-dot {
  background: #d8dfd4;
}
.notification p {
  font-size: 13px;
}
.notification small {
  font-size: 11px;
  color: var(--muted);
}
.notification .button {
  margin-left: auto;
  flex: none;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.settings-grid .panel {
  margin: 0;
}
.settings-grid p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.status-line {
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.settings-list {
  padding-left: 18px;
  font-size: 12px;
  line-height: 2;
  color: var(--muted);
}
dialog {
  border: 0;
  border-radius: 15px;
  box-shadow: 0 20px 100px #102f3450;
  width: min(650px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  color: var(--ink);
  background: white;
}
dialog::backdrop {
  background: #112d2966;
  backdrop-filter: blur(2px);
}
.dialog-top {
  padding: 24px 27px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  gap: 20px;
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}
.dialog-top h2 {
  line-height: 1.4;
}
.dialog-top .eyebrow {
  margin-bottom: 5px;
}
#editor-content {
  padding: 23px 27px 25px;
}
#editor-content > p {
  font-size: 13px;
  line-height: 1.8;
}
.login-wrap {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-brand {
  background: var(--green);
  padding: clamp(40px, 8vw, 120px);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-brand img {
  width: 160px;
  margin-bottom: 90px;
}
.login-brand h1 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -2px;
}
.login-brand h1 em {
  font-family: Georgia, serif;
  color: var(--lime);
  font-weight: 400;
}
.login-brand p {
  color: #afc6b9;
  font-size: 13px;
  max-width: 330px;
  margin-top: 25px;
}
.login-form {
  padding: 45px 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-box {
  width: 360px;
  max-width: 100%;
}
.login-box h2 {
  font-size: 29px;
}
.login-box > p {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 27px;
}
.login-box .button {
  width: 100%;
}
.login-divider {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  margin: 22px 0;
}
.login-divider:before,
.login-divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.offline {
  max-width: 500px;
  margin: 15vh auto;
  padding: 24px;
}
.offline p {
  margin: 20px 0;
}
#mobile-nav {
  display: none;
}
.workflow {
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid var(--line, #dce1d8);
  border-radius: 12px;
}
.workflow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 0;
  list-style: none;
}
.workflow-steps li {
  display: flex;
  gap: 6px;
  color: #666;
}
.workflow-steps .done,
.availability-list .free {
  color: #276140;
}
.availability-list {
  padding: 0;
  list-style: none;
}
.availability-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e5e8e2;
}
.availability-list .busy {
  color: #a34425;
}
.message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#print-area {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1700px) {
  #main {
    padding: 45px 48px;
  }
  .topbar {
    padding-left: 48px;
    padding-right: 48px;
  }
}
@media (max-width: 1150px) {
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 17px 15px;
  }
  .metric-icon {
    display: none;
  }
  .metric .label {
    padding: 0;
  }
  .dashboard-grid {
    grid-template-columns: 1.4fr 1fr;
  }
  .table th,
  .table td {
    padding-left: 14px;
    padding-right: 14px;
  }
  .resource-grid {
    grid-template-columns: 1fr 1fr;
  }
  .calendar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .calendar-day {
    min-height: 230px;
    border-bottom: 1px solid var(--line);
  }
  .calendar-grid.day-view {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  #shell {
    grid-template-columns: 1fr;
  }
  #sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  #sidebar.open {
    transform: none;
  }
  .nav-scrim {
    position: fixed;
    inset: 0;
    border: 0;
    background: #102f3470;
    z-index: 35;
  }
  .menu-button {
    display: block;
    background: none;
    border: 0;
    font-size: 22px;
    padding: 9px;
    min-height: 44px;
    min-width: 44px;
  }
  .topbar {
    padding: 10px 18px;
    min-height: 70px;
    gap: 8px;
  }
  .breadcrumb {
    flex: 1;
  }
  .breadcrumb > span,
  .breadcrumb > strong {
    display: none;
  }
  .top-actions {
    gap: 8px;
  }
  .new-inquiry {
    display: none;
  }
  #main {
    padding: 26px 20px 30px;
  }
  .workspace-footer {
    margin: 0 20px 80px;
  }
  .dashboard-grid {
    grid-template-columns: 1.3fr 1fr;
  }
  .calendar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #mobile-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 20;
  }
  #mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 11px 2px;
    min-height: 63px;
    font-size: 9px;
    color: var(--muted);
  }
  #mobile-nav a.active {
    color: var(--green);
    background: #f2f6e8;
  }
  #mobile-nav .nav-icon {
    font-size: 20px;
  }
  #global-status:not(:empty) {
    padding: 12px 20px;
  }
  .login-brand {
    padding: 45px;
  }
  .login-brand img {
    margin-bottom: 60px;
  }
  .settings-grid {
    gap: 15px;
  }
}
@media (max-width: 650px) {
  .page-heading {
    align-items: flex-start;
    margin-bottom: 23px;
    flex-wrap: wrap;
    gap: 15px;
  }
  .page-heading p:not(.eyebrow) {
    font-size: 12px;
    margin-top: 8px;
  }
  .page-heading .date-label {
    display: none;
  }
  .heading-actions {
    width: 100%;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }
  .metric {
    padding: 16px;
  }
  .metric strong {
    font-size: 28px;
    margin-top: 8px;
  }
  .metric .label {
    font-size: 11px;
  }
  .metric small {
    font-size: 10px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .panel-header {
    padding: 18px;
  }
  .panel-body {
    padding: 18px;
  }
  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
  }
  .table thead {
    display: none;
  }
  .table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 16px 18px;
    gap: 8px 14px;
    border-bottom: 1px solid var(--line);
  }
  .table td {
    border: 0;
    padding: 0;
    font-size: 11px;
  }
  .table td:first-child {
    grid-column: 1;
  }
  .table .name {
    font-size: 13px;
  }
  .table td:before {
    content: attr(data-label);
    display: block;
    font-size: 9px;
    color: #87947e;
    margin-bottom: 4px;
  }
  .table td:first-child:before {
    display: none;
  }
  .table td.mobile-hide {
    display: none;
  }
  .table .sub {
    font-size: 11px;
  }
  .filters {
    padding: 14px;
    gap: 9px;
  }
  .filters .filter-field {
    flex: 1;
    min-width: 120px;
  }
  .filters input,
  .filters select {
    width: 100%;
    min-width: 0;
  }
  .filters .field-label {
    font-size: 10px;
  }
  .calendar-grid {
    grid-template-columns: 1fr;
  }
  .calendar-day {
    min-height: 130px;
    border-right: 0;
    padding: 15px 17px;
  }
  .day-header {
    padding-bottom: 12px;
  }
  .day-header strong {
    font-size: 18px;
  }
  .event {
    padding: 12px;
  }
  .event strong {
    font-size: 12px;
  }
  .event small {
    font-size: 11px;
  }
  .event-time {
    font-size: 11px;
  }
  .calendar-toolbar {
    padding: 14px;
    gap: 12px;
  }
  .calendar-toolbar .group {
    gap: 5px;
  }
  .calendar-toolbar input {
    max-width: 148px;
  }
  .calendar-toolbar select {
    max-width: 100%;
  }
  .resource-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .check-list {
    grid-template-columns: 1fr;
  }
  .dialog-top {
    padding: 20px;
  }
  .dialog-top h2 {
    font-size: 19px;
  }
  #editor-content {
    padding: 20px;
  }
  .form-actions {
    bottom: -20px;
  }
  .topbar .demo-pill {
    font-size: 9px;
    padding: 5px 6px;
  }
  .icon-button {
    min-height: 42px;
    min-width: 42px;
  }
  .topbar {
    padding-left: 8px;
    padding-right: 13px;
  }
  .breadcrumb {
    font-size: 11px;
  }
  .workspace-footer {
    font-size: 9px;
  }
  .notification {
    padding: 17px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .notification .button {
    margin-left: 22px;
  }
  .notification p {
    font-size: 12px;
  }
  .login-wrap {
    grid-template-columns: 1fr;
  }
  .login-brand {
    padding: 35px 25px;
  }
  .login-brand img {
    width: 120px;
    margin-bottom: 35px;
  }
  .login-brand h1 {
    font-size: 35px;
    letter-spacing: -1px;
  }
  .login-brand p {
    margin-top: 17px;
    font-size: 12px;
  }
  .login-form {
    padding: 35px 25px;
  }
  .login-box h2 {
    font-size: 25px;
  }
  .quick-note {
    padding: 17px;
  }
  .row-link {
    min-height: 44px;
  }
  .filters select {
    font-size: 11px;
  }
  dialog {
    max-height: calc(100dvh - 20px);
    width: calc(100% - 16px);
  }
}
@media print {
  body > * {
    display: none !important;
  }
  #print-area {
    display: block !important;
    padding: 30px;
    font-size: 13px;
    color: #173c36;
  }
  #print-area h1 {
    margin: 20px 0;
  }
  #print-area h2 {
    margin: 18px 0;
  }
  #print-area p {
    margin: 12px 0;
    white-space: pre-wrap;
  }
  #print-area .print-total {
    font-size: 30px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
  }
  dialog {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.archive-link {
  margin-top: 16px;
  text-align: right;
}
.fleet-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 18px;
}
.fleet-table .fleet-event small {
  line-height: 1.3;
}
@media (max-width: 650px) {
  .fleet-table .fleet-event {
    padding-top: 5px;
    padding-bottom: 5px;
    gap: 2px;
  }
  .calendar-toolbar > .group:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .calendar-toolbar > .group:last-child input,
  .calendar-toolbar > .group:last-child select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}
.fleet-filters .group,
.calendar-layouts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.fleet-filters select {
  width: auto;
  max-width: 220px;
}
.calendar-layouts .button {
  min-height: 37px;
  padding: 8px 12px;
}
.fleet-scroll {
  overflow: auto;
  max-width: 100%;
  max-height: 70dvh;
  border-top: 1px solid var(--line);
}
.fleet-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  table-layout: fixed;
  font-size: 11px;
}
.fleet-table th,
.fleet-table td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 5px;
  vertical-align: top;
  width: 64px;
  min-width: 64px;
  height: 80px;
}
.fleet-table thead th {
  height: 55px;
  background: #f7f9f2;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 3;
  min-width: 64px;
  padding: 9px 4px;
}
.fleet-table thead th span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}
.fleet-table thead th strong {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.fleet-table .fleet-name {
  position: sticky;
  left: 0;
  width: 165px;
  min-width: 165px;
  max-width: 165px;
  z-index: 2;
  background: white;
  padding: 14px 12px;
  vertical-align: middle;
  text-align: left;
  box-shadow: 2px 0 3px #183c3610;
}
.fleet-table thead .fleet-name {
  z-index: 5;
  background: #f7f9f2;
}
.fleet-name span {
  font-size: 12px;
  font-weight: 600;
  display: block;
  overflow-wrap: anywhere;
}
.fleet-name small {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}
.fleet-table .fleet-weekend {
  background: #f6f7f1;
}
.fleet-table .fleet-today {
  background: #f2f7e4;
}
.fleet-table thead .fleet-today {
  background: #e4efc7;
}
.fleet-event {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #c5dbc5;
  border-left: 3px solid #5b8b63;
  border-radius: 4px;
  background: #e3f0e1;
  padding: 8px 3px;
  width: 100%;
  min-height: 52px;
  text-align: left;
  overflow: hidden;
  color: #345c3a;
  margin-bottom: 3px;
}
.fleet-event span {
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.fleet-event small {
  font-size: 9px;
  white-space: nowrap;
}
.fleet-event.hold {
  background: #fff2d4;
  border-color: #ead39d;
  border-left-color: #bd933b;
  color: #725725;
}
.fleet-event.block {
  background: #eee7e3;
  border-color: #d5c3b9;
  border-left-color: #aa7d66;
  color: #705445;
}
.fleet-free {
  border: 0;
  border-radius: 4px;
  width: 100%;
  height: 62px;
  background: transparent;
  color: #97a28f;
  font-size: 10px;
}
.fleet-free:hover {
  background: #edf2e2;
  color: #456335;
}
.fleet-more {
  border: 0;
  background: none;
  color: #536947;
  font-size: 10px;
  padding: 6px 2px;
  min-height: 30px;
}
.fleet-pending td,
.fleet-pending .fleet-name {
  background: #f7f9fd;
  min-height: 70px;
}
.fleet-request {
  display: block;
  border: 1px dashed #b8c9de;
  border-radius: 4px;
  width: 100%;
  font-size: 10px;
  color: #446585;
  background: #edf3fb;
  margin-bottom: 4px;
  padding: 8px 3px;
  min-height: 35px;
}
.event.request {
  background: #edf3fb;
  border-color: #b8c9de;
  color: #446585;
}
.key-confirmed {
  color: #4a7550;
}
.key-hold {
  color: #967227;
}
.key-block {
  color: #916a57;
}
.key-request {
  color: #547da6;
}
.fleet-table {
  min-width: calc(165px + 14 * 64px);
}
.fleet-table[data-span="7"] {
  min-width: 613px;
}
.fleet-table[data-span="28"] {
  min-width: 1957px;
}
@media (max-width: 650px) {
  .fleet-table .fleet-name {
    width: 125px;
    min-width: 125px;
    max-width: 125px;
    padding: 10px 9px;
  }
  .fleet-name span {
    font-size: 11px;
  }
  .fleet-table {
    min-width: 1021px;
  }
  .fleet-table[data-span="7"] {
    min-width: 573px;
  }
  .fleet-table[data-span="28"] {
    min-width: 1917px;
  }
  .fleet-filters {
    padding: 12px;
    gap: 10px;
  }
  .fleet-filters .group {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .fleet-filters select {
    max-width: 100%;
    width: 100%;
  }
  .calendar-layouts .button {
    font-size: 11px;
    padding: 8px 10px;
  }
  .fleet-scroll {
    max-height: 65dvh;
  }
  .archive-link {
    text-align: left;
  }
}
