:root {
  --bg: #f6f7f9;
  --surface: #fff;
  --ink: #19252e;
  --muted: #77828d;
  --line: #e9edf1;
  --orange: #f97316;
  --orange-dark: #c94e07;
  --soft: #fff2e8;
  --green: #157b5c;
  --blue: #3266bd;
  --red: #be3446;
  --shadow: 0 8px 28px #17233208;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.9px;
  line-height: 1.25;
  font-weight: 720;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange-dark);
  font-weight: 700;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--ink);
  color: var(--orange);
  border-radius: 12px;
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -4px;
  padding-right: 4px;
}
.shell {
  min-height: 100vh;
  padding-left: 235px;
}
.sidebar {
  width: 235px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 29px 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px 30px;
}
.brand strong {
  font-size: 19px;
  letter-spacing: -0.7px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 0;
}
.nav-caption {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  color: #a0a8b1;
  font-weight: 700;
  padding: 12px 15px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 9px;
  color: #71808b;
  margin: 4px 0;
  font-size: 13px;
  font-weight: 550;
}
.nav-link:hover {
  background: #f7f8fa;
}
.nav-link.active {
  color: #db5a11;
  background: var(--soft);
  font-weight: 700;
}
.nav-link.active:after {
  content: "";
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 18px 10px 0;
}
.sidebar-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 13px;
}
.user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff0e2;
  display: grid;
  place-items: center;
  font-weight: 750;
  color: #d16a28;
  font-size: 12px;
}
.user strong {
  display: block;
  font-size: 12px;
}
.user small {
  font-size: 10px;
}
.topbar {
  height: 75px;
  padding: 0 38px;
  background: #ffffffdd;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb b {
  color: var(--ink);
  font-weight: 550;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.online {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #648076;
  font-size: 11px;
}
.online:before {
  content: "";
  width: 6px;
  height: 6px;
  background: #42a886;
  border-radius: 50%;
}
.main {
  max-width: 1640px;
  padding: 35px 38px 60px;
  margin: auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 27px;
}
.page-head p {
  color: var(--muted);
  margin-top: 7px;
  font-size: 13px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.btn {
  min-height: 38px;
  border: 1px solid #e2e6ea;
  background: #fff;
  color: #42525f;
  padding: 9px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.btn:hover {
  border-color: #c7cfd7;
  background: #fafbfc;
}
.btn.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 4px 10px #f9731620;
}
.btn.primary:hover {
  background: #ea6410;
}
.btn.danger {
  color: var(--red);
  border-color: #f2d5da;
}
.btn.ghost {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.btn.small {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 11px;
}
.icon-button {
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  color: #7b8791;
}
.icon-button:hover {
  background: #f3f5f7;
}
.menu-toggle {
  display: none;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-height: 139px;
}
.kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7b8790;
  font-size: 11px;
  font-weight: 550;
  gap: 6px;
}
.kpi-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f6f7f9;
  color: #84919c;
}
.kpi-icon svg {
  width: 15px;
  height: 15px;
}
.kpi:first-child {
  border-color: #f8d8c0;
  background: linear-gradient(120deg, #fffaf5, #fff);
}
.kpi:first-child .kpi-icon {
  color: var(--orange);
  background: #fff0e2;
}
.kpi-value {
  font-size: 26px;
  letter-spacing: -1px;
  line-height: 1.2;
  font-weight: 720;
  margin: 11px 0 9px;
}
.kpi-note {
  font-size: 10px;
  color: #92a0ab;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 22px 23px 0;
}
.panel-head p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.panel-body {
  padding: 22px 23px;
}
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 20px;
}
.grid-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.chart {
  width: 100%;
  height: 250px;
  display: block;
  overflow: visible;
}
.chart text {
  font:
    10px Inter,
    ui-sans-serif,
    sans-serif;
  fill: #96a0a9;
}
.chart .grid {
  stroke: #eef1f4;
  stroke-dasharray: 4 4;
}
.chart .curve {
  stroke: var(--orange);
  stroke-width: 3;
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart .point {
  fill: var(--orange);
  stroke: #fff;
  stroke-width: 3;
}
.legend {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}
.legend:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--orange);
}
.agenda-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.agenda-row:last-child {
  border: 0;
}
.time {
  background: #f7f8fa;
  color: #596c7c;
  padding: 8px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
}
.agenda-detail {
  min-width: 0;
  flex: 1;
}
.agenda-detail strong {
  font-size: 12px;
  display: block;
}
.agenda-detail small {
  display: block;
  font-size: 10px;
  margin-top: 2px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 650;
  padding: 5px 9px;
  border-radius: 6px;
  background: #f0f3f8;
  color: #657489;
  white-space: nowrap;
}
.status:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status.orange {
  color: #c37224;
  background: #fff3e4;
}
.status.green {
  color: #2b8b67;
  background: #eaf7f0;
}
.status.blue {
  color: #4c7cbc;
  background: #eef4fd;
}
.status.red {
  color: #b74758;
  background: #fceff1;
}
.operation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.operation {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.operation svg {
  width: 22px;
  height: 22px;
  color: #c09c7e;
}
.operation strong {
  font-size: 23px;
  font-weight: 650;
  line-height: 1;
  display: block;
}
.operation small {
  font-size: 10px;
}
.pipeline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 11px;
}
.pipeline span:first-child {
  width: 140px;
  flex-shrink: 0;
}
.pipeline meter {
  flex: 1;
  height: 9px;
  min-width: 20px;
  appearance: none;
  border: 0;
  background: #f4f5f6;
  border-radius: 5px;
}
.pipeline meter::-webkit-meter-bar {
  background: #f4f5f6;
  border: 0;
  border-radius: 5px;
}
.pipeline meter::-webkit-meter-optimum-value {
  background: #f6a66d;
  border-radius: 5px;
}
.pipeline b {
  width: 20px;
  text-align: right;
  font-size: 11px;
}
.filters {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
}
.filters .field {
  margin: 0;
  min-width: 130px;
  flex: 1;
}
.filters .search-field {
  flex: 2;
  min-width: 210px;
}
.filters .btn {
  height: 39px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  min-width: 0;
}
.field > span {
  font-size: 11px;
  font-weight: 600;
  color: #65727e;
}
.field input,
.field select,
.field textarea,
.select {
  border: 1px solid #e2e7eb;
  background: #fff;
  border-radius: 7px;
  padding: 10px 11px;
  min-height: 39px;
  min-width: 0;
  width: 100%;
  font-size: 12px;
  color: #364954;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--orange);
  outline: 2px solid #ffeadb;
}
.field textarea {
  resize: vertical;
  min-height: 86px;
}
.field small {
  font-size: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.span-2 {
  grid-column: 1/-1;
}
.check-label {
  display: flex;
  align-items: start;
  gap: 9px;
  font-size: 12px;
  color: #65727e;
  margin: 12px 0;
}
.check-label input {
  accent-color: var(--orange);
  margin-top: 3px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 10px;
  font-weight: 550;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #8c99a3;
  background: #fafbfc;
  border-bottom: 1px solid var(--line);
  padding: 13px 22px;
  white-space: nowrap;
}
td {
  padding: 17px 22px;
  border-bottom: 1px solid #f0f2f5;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
td strong {
  display: block;
  font-size: 12px;
  font-weight: 650;
}
td small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
}
.row-link:hover {
  background: #fcfcfd;
}
.cell-link {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.cell-link:hover strong {
  color: var(--orange-dark);
}
.align-right {
  text-align: right;
}
.table-footer {
  padding: 13px 22px;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.empty {
  padding: 42px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.empty svg {
  width: 35px;
  height: 35px;
  opacity: 0.5;
  margin-bottom: 10px;
}
.empty strong {
  display: block;
  color: #5f6f7c;
  font-size: 13px;
  margin-bottom: 5px;
}
.empty .btn {
  margin-top: 15px;
}
.note {
  padding: 14px 17px;
  border: 1px solid #f8dfc7;
  background: #fffbf6;
  color: #a0744c;
  border-radius: 9px;
  font-size: 11px;
  margin: 16px 0;
  line-height: 1.7;
}
.note.info {
  border-color: #dce8f3;
  background: #f6faff;
  color: #6b829a;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 14px;
  gap: 12px;
}
.section-title small {
  font-size: 10px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 18px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.summary-grid dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}
.summary-grid dd {
  margin: 0;
  font-weight: 600;
  font-size: 12px;
}
.stepper {
  display: flex;
  overflow: auto;
  gap: 5px;
  padding: 18px 22px;
}
.step {
  font-size: 9px;
  flex: 1;
  min-width: 80px;
  text-align: center;
  color: #98a1aa;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.step span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f2f4f6;
  font-size: 10px;
}
.step.done {
  color: #a57e5f;
}
.step.done span {
  background: #fff0e4;
  color: #d47937;
}
.step.current {
  color: #d35a0e;
  font-weight: 700;
}
.step.current span {
  background: var(--orange);
  color: #fff;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
  align-items: start;
}
.detail-sidebar {
  position: sticky;
  top: 20px;
}
.checkin-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.checkin-row > strong {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
}
.condition-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.condition-options label {
  font-size: 10px;
  padding: 5px 9px;
  border-radius: 5px;
  border: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}
.condition-options label:has(input:checked) {
  border-color: #f7c6a2;
  background: #fff7f0;
  color: #ca702c;
}
.condition-options input {
  accent-color: var(--orange);
  margin: 0;
  width: 12px;
  height: 12px;
}
.checkin-note {
  margin: 8px 0 0;
}
.checkin-note input {
  padding: 7px 9px;
  min-height: 30px;
}
.accessory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.quote-row {
  display: grid;
  grid-template-columns: 90px minmax(100px, 1fr) 65px 95px 85px 28px;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
}
.quote-row .field {
  margin: 0;
}
.quote-row input,
.quote-row select {
  padding: 8px;
  min-height: 36px;
}
.quote-labels {
  font-size: 9px;
  color: var(--muted);
}
.quote-labels span:last-child {
  grid-column: auto;
}
.totals {
  margin: 20px 0 0 auto;
  max-width: 310px;
}
.totals > div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 12px;
  color: #73818c;
}
.totals .grand {
  border-top: 1px solid var(--line);
  font-size: 18px;
  color: var(--ink);
  font-weight: 750;
  margin-top: 5px;
  padding-top: 14px;
}
.timeline {
  position: relative;
}
.event {
  position: relative;
  margin-left: 4px;
  padding: 0 0 21px 20px;
  border-left: 1px solid var(--line);
  font-size: 11px;
}
.event:last-child {
  border-color: transparent;
  padding-bottom: 0;
}
.event:before {
  content: "";
  width: 7px;
  height: 7px;
  border: 2px solid white;
  box-shadow: 0 0 0 1px #f1c4a5;
  border-radius: 50%;
  background: #f4a369;
  position: absolute;
  left: -6px;
  top: 3px;
}
.event p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #5f6f7c;
}
.event small {
  font-size: 9px;
  display: block;
  margin-top: 4px;
}
.share-box {
  overflow-wrap: anywhere;
  word-break: break-all;
  background: #f7f8fa;
  border-radius: 6px;
  padding: 11px;
  font-size: 10px;
  color: #6c7f8c;
  margin: 12px 0;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.photo-grid img {
  width: 100%;
  height: 110px;
  border-radius: 7px;
  object-fit: cover;
}
.photo-grid figure {
  margin: 0;
}
.photo-grid figcaption {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.photo-grid figcaption b {
  color: #5a6975;
  display: block;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  width: min(560px, calc(100% - 30px));
  max-height: 90vh;
  padding: 0;
  box-shadow: 0 24px 100px #0d182c30;
  color: var(--ink);
}
dialog.wide {
  width: min(850px, calc(100% - 30px));
}
dialog::backdrop {
  background: #15233166;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 23px 26px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 20px;
}
.modal-head p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.modal-body {
  padding: 24px 26px;
  max-height: calc(90vh - 185px);
  overflow: auto;
}
.modal-footer {
  padding: 17px 26px;
  background: #fafbfc;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: end;
  gap: 9px;
}
.error-message {
  color: var(--red);
  font-size: 12px;
  white-space: pre-wrap;
}
.loading {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: #253b31;
  color: #fff;
  border-radius: 9px;
  padding: 12px 20px;
  font-size: 12px;
  box-shadow: 0 6px 25px #0002;
  max-width: 90%;
  display: none;
}
#toast.show {
  display: block;
}
#toast.error {
  background: #993c4b;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #fff;
}
.login-visual {
  padding: 70px;
  background: #1b272e;
  color: white;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-visual:after {
  content: "";
  position: absolute;
  width: 550px;
  height: 550px;
  border: 90px solid #f9731610;
  border-radius: 50%;
  bottom: -280px;
  right: -200px;
}
.login-visual .brand {
  padding: 0;
}
.login-visual .brand small {
  color: #91a0a8;
}
.login-copy {
  margin: auto 0;
  position: relative;
  z-index: 1;
}
.login-copy h1 {
  font-size: 48px;
  max-width: 480px;
  letter-spacing: -2px;
  line-height: 1.15;
}
.login-copy h1 em {
  font-style: normal;
  color: #fb9a54;
}
.login-copy p {
  max-width: 370px;
  color: #9baab4;
  font-size: 14px;
  margin-top: 25px;
  line-height: 1.8;
}
.login-pills {
  display: flex;
  gap: 10px;
  margin-top: 35px;
  flex-wrap: wrap;
}
.login-pills span {
  padding: 9px 13px;
  border: 1px solid #38434a;
  border-radius: 20px;
  font-size: 10px;
  color: #bfc9ce;
}
.login-footer {
  font-size: 10px;
  letter-spacing: 0.6px;
  color: #6b7f8a;
}
.login-form-wrap {
  display: grid;
  place-items: center;
  padding: 35px;
}
.login-form {
  width: min(100%, 350px);
}
.login-form h2 {
  font-size: 27px;
  letter-spacing: -0.8px;
}
.login-form > p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 30px;
}
.login-form .btn {
  width: 100%;
  margin-top: 6px;
  min-height: 44px;
}
.login-form .field {
  margin-bottom: 21px;
}
.login-form .field input {
  min-height: 45px;
}
.public-shell {
  max-width: 850px;
  margin: 0 auto;
  padding: 25px 20px 70px;
}
.public-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 35px;
  font-size: 14px;
  font-weight: 700;
}
.public-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 23px;
}
.public-total {
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -1px;
}
.public-shell .panel-body > p {
  white-space: pre-wrap;
  font-size: 12px;
  color: #6c7d88;
  line-height: 1.8;
}
.print-sheet {
  background: #fff;
  max-width: 900px;
  margin: 25px auto;
  padding: 50px;
}
.print-head {
  border-bottom: 2px solid var(--orange);
  padding-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
}
.print-head h1 {
  font-size: 22px;
}
.print-sheet section {
  margin: 25px 0;
  break-inside: avoid;
}
.print-sheet p {
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
}
.print-sheet h3 {
  margin-bottom: 10px;
}
.print-sheet th,
.print-sheet td {
  padding: 10px;
}
.signature {
  border-top: 1px solid #aaa;
  margin: 60px 10px 20px;
  text-align: center;
  padding-top: 8px;
  font-size: 11px;
}
.print-actions {
  max-width: 900px;
  margin: 25px auto;
  display: flex;
  justify-content: space-between;
}
.csv-button {
  white-space: nowrap;
}
@media (min-width: 1600px) {
  .main {
    padding-top: 44px;
  }
  .kpi {
    min-height: 155px;
    padding: 24px;
  }
  .kpi-value {
    font-size: 30px;
  }
}
@media (max-width: 1200px) {
  .shell {
    padding-left: 205px;
  }
  .sidebar {
    width: 205px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .main {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .kpi-grid {
    gap: 12px;
  }
  .kpi {
    padding: 16px;
  }
  .kpi-value {
    font-size: 23px;
  }
  .kpi-head {
    font-size: 10px;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .grid-2 {
    grid-template-columns: 1.4fr 1fr;
  }
  .quote-row {
    grid-template-columns: 75px minmax(80px, 1fr) 55px 80px 70px 25px;
    gap: 5px;
  }
}
@media (max-width: 1000px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .grid-equal {
    grid-template-columns: 1fr;
  }
  .operation-grid {
    grid-template-columns: 1fr 1fr;
  }
  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .topbar-right .online {
    display: none;
  }
  .page-head {
    align-items: start;
  }
  .login-visual {
    padding: 40px;
  }
  .login-copy h1 {
    font-size: 37px;
  }
}
@media (max-width: 720px) {
  .shell {
    padding-left: 0;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 235px;
    box-shadow: 15px 0 50px #15233110;
  }
  .shell.nav-open .sidebar {
    transform: translateX(0);
  }
  .menu-toggle {
    display: grid;
  }
  .topbar {
    height: 63px;
    padding: 0 18px;
  }
  .topbar-right {
    gap: 8px;
  }
  .topbar-right .company-name {
    display: none;
  }
  .main {
    padding: 25px 17px 45px;
  }
  .page-head {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 22px;
  }
  h1 {
    font-size: 25px;
  }
  .page-head .actions {
    width: 100%;
  }
  .page-head .actions .btn {
    flex: 1;
  }
  .kpi {
    padding: 16px 14px;
    min-height: 128px;
  }
  .kpi-grid {
    gap: 10px;
  }
  .kpi-value {
    font-size: 24px;
  }
  .kpi-head {
    font-size: 10px;
    gap: 3px;
  }
  .kpi-icon {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
  }
  .kpi-note {
    font-size: 9px;
  }
  .panel-head {
    padding: 18px 17px 0;
  }
  .panel-body {
    padding: 18px 17px;
  }
  .panel-head h2 {
    font-size: 15px;
  }
  .filters {
    padding: 15px;
    gap: 10px;
  }
  .filters .field {
    min-width: 120px;
  }
  .filters .search-field {
    min-width: 100%;
  }
  .filters .btn {
    flex: 1;
  }
  .operation {
    padding: 15px;
    gap: 10px;
  }
  .operation strong {
    font-size: 21px;
  }
  .operation-grid {
    gap: 10px;
  }
  .detail-sidebar {
    grid-template-columns: 1fr;
  }
  .form-grid {
    gap: 0 12px;
  }
  .photo-grid {
    grid-template-columns: 1fr 1fr;
  }
  .quote-row {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .quote-row .q-description {
    grid-column: span 2;
  }
  .quote-row .q-kind {
    grid-column: span 1;
  }
  .quote-labels {
    display: none;
  }
  .quote-row .field > span {
    display: block;
  }
  .quote-row {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
  }
  .quote-row .remove-row {
    justify-self: end;
  }
  .chart {
    height: 220px;
  }
  .modal-head {
    padding: 20px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-footer {
    padding: 15px 20px;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-visual {
    padding: 28px 25px 35px;
  }
  .login-copy {
    margin: 30px 0 0;
  }
  .login-copy h1 {
    font-size: 32px;
    max-width: 330px;
  }
  .login-copy p {
    font-size: 12px;
    margin-top: 15px;
    max-width: 330px;
  }
  .login-pills,
  .login-footer {
    display: none;
  }
  .login-form-wrap {
    padding: 35px 25px;
  }
  .login-form h2 {
    font-size: 24px;
  }
  .summary-grid {
    gap: 18px;
  }
  .public-head {
    align-items: start;
  }
  .public-total {
    font-size: 28px;
  }
  .print-sheet {
    padding: 22px;
    margin: 15px;
  }
  .print-actions {
    margin: 15px;
  }
  .print-head {
    flex-direction: column;
  }
  td,
  th {
    padding-left: 16px;
    padding-right: 16px;
  }
  .topbar .breadcrumb {
    font-size: 11px;
  }
  .table-wrap {
    scrollbar-width: thin;
  }
}
@media print {
  body {
    background: #fff;
    color: #111;
    font-size: 11px;
  }
  .shell,
  .public-shell {
    padding: 0;
  }
  .sidebar,
  .topbar,
  .no-print,
  #toast,
  dialog,
  .print-actions {
    display: none !important;
  }
  .main {
    padding: 0;
  }
  .print-sheet {
    padding: 0;
    margin: 0;
    max-width: none;
  }
  .print-sheet th {
    background: #eee !important;
  }
  .print-sheet section {
    break-inside: avoid;
  }
  .panel {
    box-shadow: none;
  }
  a {
    color: inherit;
  }
  @page {
    size: A4;
    margin: 16mm;
  }
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
summary {
  cursor: pointer;
  font-size: 12px;
  color: #ac682f;
  padding: 12px 0;
}
details[open] > summary {
  margin-bottom: 15px;
}
.page-head .select {
  width: auto;
  min-width: 125px;
}
.error-message:not(:empty) {
  margin: 12px 0;
}
.chart text {
  font-size: 9px;
}
