:root {
  --ink: #172a34;
  --muted: #73828b;
  --line: #e4eaed;
  --paper: #f4f7f8;
  --white: #fff;
  --nav: #192c36;
  --accent: #ee704a;
  --accent-soft: #fff0e9;
  --green: #218a70;
  --blue: #457eaa;
  --radius: 14px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-size: 14px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
button svg {
  pointer-events: none;
}
svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  flex: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.8px;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  font-weight: 650;
}
h3 {
  font-size: 14px;
}
small,
.muted {
  color: var(--muted);
}
.initial {
  margin: 20vh auto;
  text-align: center;
  font-size: 36px;
  font-weight: 750;
  letter-spacing: 4px;
}
.initial span {
  display: block;
  font-size: 14px;
  letter-spacing: 0;
  margin-top: 20px;
}
.shell {
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  overflow-y: auto;
  scrollbar-width: thin;
  background: var(--nav);
  color: #b6c5cd;
  padding: 30px 16px 18px;
  position: fixed;
  width: 222px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 0 12px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  border-radius: 9px;
  width: 34px;
  height: 34px;
  font-size: 23px;
  letter-spacing: -2px;
  font-weight: 800;
}
.workspace-label {
  padding: 8px 12px 28px;
  font-size: 10px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: #8499a5;
}
.nav-label {
  font-size: 10px;
  color: #78909d;
  letter-spacing: 1.8px;
  padding: 20px 13px 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  margin: 3px 0;
  border-radius: 8px;
  width: 100%;
  text-align: left;
  font-weight: 500;
  font-size: 13px;
}
.nav-item:hover {
  background: #243d49;
  color: white;
}
.nav-item.active {
  background: #34444a;
  color: #fff;
}
.nav-item.active svg {
  color: #ff9473;
}
.nav-count {
  margin-left: auto;
  background: #42606b;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 11px;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid #30434e;
  padding-top: 14px;
  font-size: 11px;
}
.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #36464b;
  color: #ffbf94;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
.sidebar-foot p {
  padding: 10px 8px;
  line-height: 1.6;
  color: #92a8b4;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  padding: 0 36px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.topbar-left b {
  color: var(--ink);
  font-weight: 550;
}
.topbar-right {
  display: flex;
  gap: 20px;
  align-items: center;
}
.avatar {
  border-radius: 50%;
  background: #edf1f3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile small {
  display: block;
  font-size: 10px;
  margin-top: 2px;
}
.profile strong {
  font-size: 12px;
}
.icon-btn {
  display: inline-flex;
  padding: 8px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.icon-btn:hover {
  background: var(--paper);
  color: var(--ink);
}
.menu-toggle {
  display: none;
}
.content {
  max-width: 1660px;
  margin: auto;
  padding: 30px 36px 45px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  margin-bottom: 9px;
}
.subtitle {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.btn:hover {
  border-color: #bbc9d0;
  background: #f9fafb;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 3px 8px #ee704a16;
}
.btn.primary:hover {
  background: #dc623e;
}
.btn.dark {
  background: var(--nav);
  color: white;
  border-color: var(--nav);
}
.btn.danger {
  color: #b94343;
}
.btn.small {
  padding: 7px 10px;
  font-size: 11px;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.filterbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.segments {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #eaf0f2;
  border-radius: 9px;
  flex-wrap: wrap;
}
.segment {
  padding: 8px 13px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.segment.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 4px #1d344d0a;
}
.filterbar input,
.filterbar select {
  width: auto;
  max-width: 230px;
  padding: 9px 12px;
  font-size: 12px;
  background: white;
}
.search {
  position: relative;
  flex: 1;
  max-width: 340px;
}
.search svg {
  position: absolute;
  left: 11px;
  top: 10px;
  width: 17px;
  color: #92a0a8;
}
.search input {
  padding-left: 35px;
  width: 100%;
  max-width: 100%;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 23px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: var(--radius);
  min-height: 130px;
}
.metric-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
}
.metric-icon {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #edf4f5;
  color: #628495;
}
.metric-icon svg {
  width: 16px;
}
.metric strong {
  font-size: 28px;
  letter-spacing: -0.8px;
  display: block;
  margin: 12px 0 7px;
  font-weight: 650;
  white-space: nowrap;
}
.metric small {
  font-size: 10px;
}
.metric.emphasis {
  background: var(--nav);
  border-color: var(--nav);
  color: white;
}
.metric.emphasis .metric-top {
  color: #abc0c9;
}
.metric.emphasis .metric-icon {
  background: #344952;
  color: #b8d6cf;
}
.metric.emphasis small {
  color: #a0c6bc;
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(285px, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-head {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #edf1f3;
}
.panel-head small {
  font-size: 11px;
}
.panel-body {
  padding: 22px;
}
.text-link {
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
}
.text-link:hover {
  text-decoration: underline;
}
.direction-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}
.direction-row:last-child {
  margin-bottom: 0;
}
.direction-icon {
  height: 34px;
  width: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e8f1f4;
  color: #498498;
}
.direction-row b {
  font-weight: 550;
  font-size: 12px;
}
.direction-row small {
  font-size: 10px;
  display: block;
  margin-top: 5px;
}
.direction-value {
  text-align: right;
}
.direction-value strong {
  font-size: 13px;
}
.bar {
  height: 5px;
  background: #edf2f4;
  border-radius: 5px;
  margin-top: 9px;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: #609ba4;
}
.bar.furniture span {
  background: #ddac71;
}
.bar.renovation span {
  background: #97a2c9;
}
.schedule-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #edf1f3;
  align-items: flex-start;
}
.schedule-item:first-child {
  padding-top: 0;
}
.schedule-item:last-child {
  border: 0;
  padding-bottom: 0;
}
.schedule-time {
  font-size: 11px;
  color: var(--muted);
  min-width: 36px;
  padding-top: 2px;
}
.schedule-body {
  border-left: 3px solid #73a4af;
  padding-left: 12px;
  flex: 1;
}
.schedule-body b {
  font-size: 12px;
  font-weight: 550;
  display: block;
}
.schedule-body p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.5;
}
.schedule-body.furniture {
  border-color: #d9ac70;
}
.schedule-body.renovation {
  border-color: #929dc4;
}
.empty {
  padding: 35px 22px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.empty svg {
  display: block;
  margin: 0 auto 12px;
  color: #a0b0b7;
  width: 28px;
  height: 28px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: #fafcfc;
  font-weight: 600;
  padding: 13px 20px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 20px;
  border-bottom: 1px solid #edf1f3;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fafcfd;
}
td strong {
  font-size: 12px;
  font-weight: 600;
}
td small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
}
td.numeric {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.order-link {
  color: var(--ink);
  text-align: left;
  padding: 0;
}
.order-link:hover {
  color: var(--accent);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  background: #edf3f5;
  color: #547987;
  border-radius: 5px;
  font-size: 10px;
  white-space: nowrap;
  font-weight: 550;
}
.badge.green {
  background: #e9f5ef;
  color: #338363;
}
.badge.orange {
  background: #fff1e7;
  color: #b48045;
}
.badge.purple {
  background: #eeeff8;
  color: #7a7da6;
}
.badge.red {
  background: #fceeee;
  color: #b66b68;
}
.dot {
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.direction-tag {
  font-size: 10px;
  color: #648995;
}
.direction-tag.furniture {
  color: #b18a51;
}
.direction-tag.renovation {
  color: #858aad;
}
.row-actions {
  display: flex;
  gap: 5px;
}
.table-foot {
  padding: 14px 22px;
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.warning {
  padding: 14px 18px;
  background: #fff6e8;
  color: #93703b;
  border: 1px solid #efdfc7;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.info {
  padding: 14px 18px;
  background: #edf4f6;
  color: #547582;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.kanban {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 20px;
  align-items: flex-start;
}
.kanban-column {
  min-width: 245px;
  flex: 1;
  max-width: 310px;
  background: #eaf0f2;
  border-radius: 12px;
  padding: 12px;
}
.kanban-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 12px;
  margin: 3px 3px 14px;
}
.kanban-head span {
  background: white;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 10px;
  color: var(--muted);
}
.kanban-card {
  display: block;
  text-align: left;
  background: white;
  border: 1px solid #e0e7ea;
  border-radius: 9px;
  padding: 15px;
  width: 100%;
  margin-bottom: 10px;
  box-shadow: 0 2px 3px #1c354c03;
}
.kanban-card:hover {
  border-color: #98b0ba;
  transform: translateY(-1px);
}
.kanban-card b {
  display: block;
  margin: 8px 0;
  font-size: 12px;
  line-height: 1.5;
}
.kanban-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.kanban-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 11px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  min-width: 980px;
}
.calendar-day {
  border-right: 1px solid var(--line);
  min-height: 350px;
  padding: 10px;
  background: white;
}
.calendar-day:last-child {
  border: 0;
}
.calendar-day h3 {
  margin: 6px 4px 18px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.calendar-day.today {
  background: #fffcf8;
}
.calendar-day.today h3 {
  color: var(--accent);
  font-weight: 700;
}
.event {
  background: #eaf3f5;
  border-left: 3px solid #73a4af;
  border-radius: 5px;
  padding: 11px 8px;
  margin-bottom: 9px;
  text-align: left;
  width: 100%;
  font-size: 10px;
}
.event.furniture {
  background: #fbf1e5;
  border-color: #d5ab6b;
}
.event.renovation {
  background: #eeeff8;
  border-color: #929bc1;
}
.event b {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  margin: 6px 0;
}
.event small {
  font-size: 9px;
}
.back {
  font-size: 11px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 20px;
}
.detail-summary {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.stepper {
  display: flex;
  overflow-x: auto;
  margin: 22px 0;
  gap: 4px;
}
.step {
  padding: 11px 15px;
  white-space: nowrap;
  background: #eaf0f2;
  color: #8798a1;
  font-size: 10px;
  flex: 1;
  text-align: center;
  border-radius: 4px;
}
.step.current {
  background: var(--nav);
  color: white;
}
.step.past {
  background: #e2eee9;
  color: #538172;
}
.tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  overflow: auto;
}
.tab {
  padding: 13px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}
.tab.active {
  color: var(--ink);
  border-color: var(--accent);
  font-weight: 650;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
}
.fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.read-field span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 7px;
}
.read-field p {
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.read-field.full {
  grid-column: 1/-1;
}
.money-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.money-box {
  padding: 17px;
  background: #f6f9fa;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.money-box span {
  font-size: 10px;
  color: var(--muted);
  display: block;
}
.money-box b {
  font-size: 20px;
  letter-spacing: -0.5px;
  display: block;
  margin-top: 10px;
}
.money-box.green {
  background: #ebf5f0;
}
.money-box.green b {
  color: var(--green);
}
.money-box.orange {
  background: #fff4ec;
}
.file-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.file-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.file-card b {
  font-size: 12px;
  display: block;
  overflow-wrap: anywhere;
}
.file-card small {
  font-size: 10px;
  display: block;
  margin-top: 5px;
}
.audit-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.audit-row small {
  font-size: 10px;
  display: block;
  margin-top: 5px;
}
.audit-row details {
  margin-top: 8px;
  color: var(--muted);
}
pre {
  font-size: 11px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
input,
select,
textarea {
  border: 1px solid #dce4e8;
  border-radius: 7px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #f5b8a3;
  border-color: var(--accent);
}
textarea {
  resize: vertical;
  min-height: 82px;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 550;
  color: #586e7a;
}
label input,
label select,
label textarea {
  display: block;
  margin-top: 7px;
}
input[type="checkbox"] {
  width: auto;
  display: inline;
  margin: 0 8px 0 0;
}
dialog {
  border: 0;
  border-radius: 16px;
  padding: 0;
  width: min(650px, calc(100vw - 28px));
  max-height: 90vh;
  box-shadow: 0 24px 90px #12263040;
  color: var(--ink);
}
dialog::backdrop {
  background: #132b3b70;
  backdrop-filter: blur(3px);
}
dialog.wide {
  width: min(1000px, calc(100vw - 28px));
}
.modal-header {
  padding: 23px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}
.modal-header h2 {
  font-size: 18px;
}
.modal-body {
  padding: 24px 26px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-section {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 650;
}
.modal-footer {
  padding: 17px 26px;
  background: #f8fafb;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: 0;
  border-top: 1px solid var(--line);
}
.form-error {
  color: #b34343;
  background: #fff0ef;
  padding: 11px 14px;
  font-size: 12px;
  border-radius: 6px;
  line-height: 1.6;
  margin-top: 16px;
  display: none;
}
.form-error:not(:empty) {
  display: block;
}
.estimate-inputs td {
  padding: 7px;
}
.estimate-inputs th {
  padding: 10px 7px;
}
.estimate-inputs input {
  padding: 9px 8px;
  min-width: 75px;
}
.estimate-inputs td:first-child {
  min-width: 180px;
}
.estimate-inputs td:nth-child(2) {
  max-width: 70px;
}
.estimate-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  align-items: center;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
.login-art {
  background: var(--nav);
  padding: 70px 65px;
  color: white;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-art .brand {
  padding: 0;
}
.login-copy {
  margin: auto 0;
  max-width: 500px;
  z-index: 1;
}
.login-copy h1 {
  font-size: 48px;
  line-height: 1.12;
  letter-spacing: -2px;
  font-weight: 600;
}
.login-copy p {
  font-size: 15px;
  color: #b0c4cd;
  line-height: 1.9;
  margin-top: 25px;
  max-width: 360px;
}
.login-lines {
  display: flex;
  gap: 12px;
  margin-top: 38px;
  flex-wrap: wrap;
}
.login-lines span {
  border: 1px solid #47606a;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 11px;
  color: #c7d5dc;
}
.login-art:after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -250px;
  width: 600px;
  height: 600px;
  border: 90px solid #2b444d;
  border-radius: 50%;
  opacity: 0.5;
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-form {
  width: 100%;
  max-width: 350px;
}
.login-form h2 {
  font-size: 28px;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}
.login-form p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 28px;
}
.login-form label {
  margin-bottom: 18px;
}
.login-form .btn {
  width: 100%;
  margin: 10px 0 20px;
}
.login-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  background: #edf2f4;
  border-radius: 9px;
  padding: 14px;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  max-width: 450px;
  padding: 14px 20px;
  background: var(--nav);
  color: white;
  border-radius: 10px;
  box-shadow: 0 10px 40px #14222f30;
  z-index: 100;
  font-size: 12px;
  display: none;
}
#toast.visible {
  display: block;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.stack {
  display: grid;
  gap: 20px;
}
.stats-table {
  min-width: 750px;
}
.tiny {
  font-size: 10px;
}
.mobile-overlay {
  display: none;
}
.document {
  max-width: 850px;
  padding: 55px;
  margin: auto;
  background: white;
}
.document header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 20px;
  margin-bottom: 30px;
}
.document h2 {
  margin: 25px 0;
}
.document p {
  line-height: 1.8;
  margin: 14px 0;
}
.document table {
  margin: 25px 0;
}
.link {
  color: var(--blue);
  text-decoration: underline;
}
.muted-line {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 12px;
}
.nowrap {
  white-space: nowrap;
}
.check-label {
  line-height: 1.8;
}
.badge.mini {
  font-size: 8px;
  padding: 3px 5px;
}
.danger-text {
  color: #b76155;
}
.mobile-only {
  display: none;
}
@media (min-width: 1550px) {
  .metric strong {
    font-size: 32px;
  }
  .content {
    padding-top: 36px;
  }
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    width: 190px;
    padding: 27px 10px 15px;
  }
  .brand {
    font-size: 19px;
  }
  .content {
    padding: 25px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric strong {
    font-size: 23px;
  }
  .grid-main {
    grid-template-columns: 1.25fr 1fr;
    gap: 16px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .money-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 850px) {
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 222px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main {
    width: 100%;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .topbar {
    height: 64px;
    padding: 0 18px;
  }
  .topbar-left .office-label {
    display: none;
  }
  .content {
    padding: 24px 18px;
  }
  .grid-main {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric strong {
    font-size: 26px;
  }
  .profile strong {
    max-width: 120px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-overlay.open {
    display: block;
    position: fixed;
    inset: 0;
    background: #102e4260;
    z-index: 20;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .login-panel {
    min-height: 100vh;
  }
  .mobile-only {
    display: block;
  }
  .login-form .brand {
    color: var(--ink);
    margin-bottom: 40px;
    padding: 0;
  }
  .detail-summary {
    font-size: 11px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 25px;
  }
}
@media (max-width: 520px) {
  .content {
    padding: 22px 13px;
  }
  .topbar {
    padding: 0 10px;
    gap: 8px;
  }
  .topbar-right {
    gap: 6px;
  }
  .profile {
    gap: 6px;
  }
  .profile .avatar {
    width: 29px;
    height: 29px;
    font-size: 10px;
  }
  .profile strong {
    font-size: 10px;
    max-width: 100px;
  }
  .profile small {
    font-size: 9px;
  }
  .topbar .btn {
    padding: 8px 10px;
    font-size: 10px;
  }
  .topbar .btn svg {
    display: none;
  }
  .page-heading {
    display: block;
    margin-bottom: 20px;
  }
  .page-heading .actions {
    margin-top: 17px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .subtitle {
    font-size: 11px;
  }
  .metrics {
    gap: 9px;
  }
  .metric {
    padding: 15px 12px;
    min-height: 115px;
  }
  .metric-top {
    font-size: 10px;
  }
  .metric strong {
    font-size: 22px;
  }
  .metric small {
    font-size: 9px;
  }
  .panel-head {
    padding: 17px;
  }
  .panel-body {
    padding: 17px;
  }
  .segments {
    width: 100%;
    gap: 2px;
  }
  .segment {
    padding: 8px 9px;
    font-size: 10px;
    flex: 1;
  }
  .filterbar {
    gap: 10px;
  }
  .filterbar .actions {
    width: 100%;
  }
  .search {
    max-width: 100%;
  }
  .filterbar select {
    max-width: 150px;
  }
  .filterbar input[type="date"] {
    max-width: 150px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .form-section {
    grid-column: auto;
  }
  .modal-header {
    padding: 18px;
  }
  .modal-body {
    padding: 19px;
  }
  .modal-footer {
    padding: 15px 19px;
  }
  .fields-grid {
    gap: 18px;
  }
  .money-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }
  .money-box {
    padding: 14px;
  }
  .money-box b {
    font-size: 18px;
  }
  .step {
    padding: 10px;
    font-size: 9px;
  }
  .tabs {
    gap: 17px;
  }
  .tab {
    font-size: 11px;
  }
  td {
    padding: 13px;
  }
  th {
    padding: 12px 13px;
  }
  .document {
    padding: 20px;
  }
  .table-foot {
    padding: 12px 14px;
  }
  .login-panel {
    padding: 30px;
  }
  .login-copy h1 {
    font-size: 36px;
  }
  #toast {
    left: 15px;
    right: 15px;
    bottom: 15px;
  }
  .btn {
    font-size: 11px;
    padding: 9px 12px;
  }
  .calendar-grid {
    min-width: 980px;
  }
  .page-heading .badge {
    margin-top: 5px;
  }
}
@media print {
  body.document {
    padding: 0;
    max-width: none;
  }
  .no-print {
    display: none;
  }
  .document header {
    margin-top: 0;
  }
  table {
    font-size: 10px;
  }
  td,
  th {
    padding: 9px;
  }
}

@media (max-width: 520px) {
  .content table,
  .content table.stats-table {
    display: block;
    min-width: 0;
  }
  .content table thead {
    display: none;
  }
  .content table tbody {
    display: block;
  }
  .content table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--line);
    padding: 12px 6px;
  }
  .content table tbody tr:last-child {
    border-bottom: 0;
  }
  .content table td {
    display: block;
    border: 0;
    padding: 9px 10px;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .content table td:first-child {
    grid-column: 1/-1;
  }
  .content table td.numeric {
    text-align: left;
    white-space: normal;
  }
  .content table td::before {
    content: attr(data-label);
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin-bottom: 6px;
  }
  .content table td[data-label=""]::before {
    display: none;
  }
  .content table td:last-child {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
  }
  .content table td:last-child[data-label]:not([data-label=""]) {
    display: block;
  }
  .content .row-actions {
    flex-wrap: wrap;
  }
  .content td strong {
    font-size: 13px;
  }
}
