/* Self-contained: system fonts and local assets, no CDN or build step. */
:root {
  --bg: #f5f6f3;
  --paper: #fff;
  --ink: #21332f;
  --muted: #7c8781;
  --line: #e4e8e1;
  --green: #254e40;
  --dark: #192e29;
  --lime: #cce7a6;
  --soft: #edf2e6;
  --radius: 15px;
  --shadow: 0 8px 30px #18372a06;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
svg.icon {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #85a95d;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  font-weight: 550;
  letter-spacing: -1.1px;
  margin-bottom: 9px;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.35px;
  margin-bottom: 6px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
p {
  line-height: 1.65;
}
small,
.muted {
  color: var(--muted);
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 10px;
  font-weight: 650;
  color: var(--muted);
}
.flex {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.grow {
  flex: 1;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hidden {
  display: none !important;
}
.boot {
  height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 25px;
}
.brand-mark {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: var(--lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 36px;
  font-weight: 750;
  letter-spacing: -5px;
  padding-right: 4px;
  line-height: 1;
}
.brand-mark span {
  font-size: 30px;
  margin-left: 2px;
}
.sidebar {
  width: 236px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--dark);
  color: #c4cec6;
  display: flex;
  flex-direction: column;
  padding: 34px 20px 20px;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 38px;
}
.brand strong {
  color: white;
  font-size: 23px;
  letter-spacing: -0.8px;
  font-weight: 550;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: #8daba0;
  margin-top: 4px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #6f9182;
  margin: 12px 15px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 9px;
  margin-bottom: 5px;
  color: #a6bcb1;
  font-size: 13px;
}
.nav-link:hover {
  background: #ffffff09;
  color: white;
}
.nav-link.active {
  color: #e1f2c8;
  background: #304b3f;
}
.nav-link.active:after {
  content: "";
  margin-left: auto;
  width: 5px;
  height: 5px;
  background: var(--lime);
  border-radius: 50%;
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  background: #ffffff0c;
  padding: 2px 7px;
  border-radius: 4px;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-note {
  margin: 25px 9px;
  padding: 18px 12px;
  border: 1px solid #426151;
  border-radius: 11px;
  font-size: 12px;
  color: #b6c8b8;
  line-height: 1.65;
  background: linear-gradient(130deg, #30463844, transparent);
}
.sidebar-note .eyebrow {
  color: var(--lime);
  margin-bottom: 8px;
}
.user-panel {
  padding: 17px 5px 0;
  border-top: 1px solid #ffffff12;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 35px;
  height: 35px;
  background: #e9eddf;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 650;
  color: #43604a;
  flex-shrink: 0;
}
.sidebar .avatar {
  background: #3e5847;
  color: var(--lime);
}
.user-panel strong {
  color: #dce7dd;
  font-size: 12px;
  display: block;
}
.user-panel small {
  font-size: 10px;
}
.user-panel button {
  color: #8aa394;
}
.main {
  margin-left: 236px;
  min-height: 100vh;
}
.topbar {
  height: 80px;
  border-bottom: 1px solid var(--line);
  background: #fafbf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  gap: 20px;
}
.breadcrumb {
  font-size: 12px;
  color: #8e968f;
  white-space: nowrap;
}
.breadcrumb strong {
  color: #3e5144;
  font-weight: 500;
}
.search-global {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  max-width: 310px;
  width: 100%;
  color: var(--muted);
}
.search-global input {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none !important;
  min-width: 0;
  font-size: 12px;
}
.search-global kbd {
  font-size: 10px;
  background: #f3f5ef;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 5px;
}
.top-date {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.content {
  padding: 34px 38px 50px;
  max-width: 1700px;
  margin: 0 auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 27px;
}
.page-head p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.3;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn:hover {
  background: #edf1e7;
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.btn.primary:hover {
  background: #193d2f;
}
.btn.lime {
  background: var(--lime);
  color: var(--dark);
  border-color: var(--lime);
}
.btn.small {
  padding: 8px 11px;
  font-size: 11px;
}
.btn.ghost {
  border-color: transparent;
  background: transparent;
}
.icon-btn {
  padding: 8px;
  background: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border-radius: 6px;
}
.icon-btn:hover {
  background: #e6ece2;
  color: var(--ink);
}
.text-link {
  color: #47664a;
  font-size: 12px;
  font-weight: 550;
  background: none;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.text-link:hover {
  text-decoration: underline;
}
.hero {
  background: #eaf0df;
  border: 1px solid #dce6cd;
  min-height: 168px;
  border-radius: var(--radius);
  padding: 29px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 25px;
}
.hero h2 {
  font-size: 27px;
  letter-spacing: -0.8px;
  font-weight: 500;
  margin: 9px 0;
}
.hero p {
  font-size: 12px;
  color: #69765d;
  margin-bottom: 18px;
  max-width: 460px;
}
.hero .eyebrow {
  color: #71845b;
}
.hero-art {
  position: absolute;
  right: 15px;
  top: -50px;
  width: 330px;
  height: 300px;
  opacity: 0.5;
  pointer-events: none;
  transform: rotate(-18deg);
}
.hero-art span {
  position: absolute;
  border: 1px solid #9bb681;
  border-radius: 36px;
  width: 185px;
  height: 185px;
  top: 65px;
  left: 70px;
}
.hero-art span:nth-child(2) {
  transform: translate(30px, 30px);
}
.hero-art span:nth-child(3) {
  transform: translate(60px, 60px);
}
.hero-art span:nth-child(4) {
  width: 85px;
  height: 85px;
  top: 115px;
  left: 120px;
  border-radius: 18px;
  background: #d3e3bd;
}
.hero > div:first-child {
  position: relative;
  z-index: 1;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 27px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.stat-icon {
  background: #f1f4ec;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  color: #778566;
}
.stat-value {
  font-size: 30px;
  font-weight: 550;
  letter-spacing: -1px;
  margin: 13px 0 7px;
}
.stat small {
  font-size: 10px;
}
.stat small.green {
  color: #5b7f42;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 23px;
  align-items: start;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}
.card-head {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.card-head h2 {
  font-size: 16px;
  margin: 0;
}
.card-head small {
  display: block;
  margin-top: 7px;
  font-size: 11px;
}
.card-body {
  padding: 0 24px 24px;
}
.tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  overflow-x: auto;
}
.tab {
  background: none;
  border: 0;
  color: #899185;
  padding: 13px 0;
  font-size: 12px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab.active {
  color: var(--green);
  border-color: var(--green);
  font-weight: 600;
}
.tab span {
  font-size: 9px;
  margin-left: 5px;
  background: #f1f3ec;
  border-radius: 4px;
  padding: 2px 5px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8a9388;
  font-weight: 550;
  padding: 14px 20px;
  background: #fafbf7;
  white-space: nowrap;
}
td {
  border-top: 1px solid #edf0e9;
  padding: 18px 20px;
  font-size: 12px;
  vertical-align: middle;
}
td strong {
  font-weight: 550;
  display: block;
  margin-bottom: 6px;
}
td small {
  font-size: 10px;
  display: block;
}
.job-row {
  cursor: pointer;
}
.job-row:hover {
  background: #fafcf5;
}
.job-id {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: #6d7a68;
  display: block;
  margin-bottom: 6px;
}
.amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.badge {
  font-size: 10px;
  padding: 5px 9px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-weight: 550;
}
.badge:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.quoting {
  background: #f8f0df;
  color: #9b7832;
}
.badge.quoted {
  background: #eaf0f7;
  color: #5a779d;
}
.badge.active {
  background: #eaf1df;
  color: #6b883f;
}
.badge.completed {
  background: #e6f0ec;
  color: #3d7b68;
}
.badge.on-hold {
  background: #f1eaf6;
  color: #8c6aa0;
}
.badge.declined {
  background: #f6e9e5;
  color: #a46e59;
}
.table-footer {
  border-top: 1px solid var(--line);
  padding: 15px 23px;
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.activity-list {
  padding: 3px 23px 16px;
}
.activity-item {
  display: flex;
  gap: 12px;
  position: relative;
  padding-bottom: 23px;
}
.activity-item:not(:last-child):before {
  content: "";
  position: absolute;
  left: 12px;
  top: 30px;
  bottom: 3px;
  width: 1px;
  background: var(--line);
}
.activity-dot {
  background: #f2f5ed;
  border: 1px solid #e7ecdd;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #82936c;
}
.activity-dot svg {
  width: 12px;
  height: 12px;
}
.activity-item p {
  font-size: 11px;
  line-height: 1.5;
  margin: 1px 0 5px;
}
.activity-item small {
  font-size: 9px;
}
.quick-card {
  background: #edf2e6;
  border: 1px solid #dee7d4;
  border-radius: 12px;
  padding: 21px;
}
.quick-card p {
  font-size: 11px;
  color: #758069;
  margin: 9px 0 16px;
}
.quick-icon {
  width: 35px;
  height: 35px;
  background: #dfe9d1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #708153;
  margin-bottom: 12px;
}
.empty {
  padding: 42px 25px;
  text-align: center;
}
.empty .empty-icon {
  display: inline-flex;
  background: #eff3e8;
  color: #819168;
  padding: 17px;
  border-radius: 16px;
  margin-bottom: 15px;
}
.empty h3 {
  font-size: 16px;
}
.empty p {
  font-size: 12px;
  color: var(--muted);
  max-width: 360px;
  margin: 9px auto 20px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  flex-wrap: wrap;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 200px;
  flex: 1;
  max-width: 420px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 12px;
  color: #95a087;
  background: #fff;
}
.search-box input {
  padding: 0;
  border: 0;
  box-shadow: none !important;
  min-width: 0;
}
.filter-select {
  width: auto;
  max-width: 180px;
  font-size: 12px;
  padding: 9px 30px 9px 10px;
}
.client-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.client-card {
  padding: 23px;
  transition: border-color 0.2s;
}
.client-card:hover {
  border-color: #a9bc98;
}
.client-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 20px;
}
.client-card h3 {
  font-size: 16px;
}
.client-card .client-contact {
  font-size: 11px;
  line-height: 1.9;
  color: #84917f;
  min-height: 45px;
  margin: 14px 0;
}
.client-card footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
label {
  display: block;
  font-size: 11px;
  font-weight: 550;
  color: #596b5b;
  margin-bottom: 8px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dde4d7;
  border-radius: 7px;
  padding: 11px 12px;
  outline: none;
  background: #fff;
  color: var(--ink);
  transition:
    border 0.15s,
    box-shadow 0.15s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #96af79;
  box-shadow: 0 0 0 3px #a6c48220;
}
input::placeholder,
textarea::placeholder {
  color: #a4ac9d;
}
textarea {
  min-height: 95px;
  resize: vertical;
  line-height: 1.6;
}
.field {
  margin-bottom: 19px;
}
.field small {
  display: block;
  font-size: 10px;
  margin-top: 7px;
  line-height: 1.5;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-section {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.form-section:last-child {
  border: 0;
}
.section-title {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 23px;
}
.section-number {
  background: #f0f4e8;
  color: #7f9269;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}
.section-title h2 {
  font-size: 15px;
  margin: 0;
}
.section-title p {
  font-size: 10px;
  color: var(--muted);
  margin: 5px 0 0;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
}
.client-results {
  max-height: 190px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 8px 0 14px;
}
.client-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid #eef1e8;
  background: white;
  font-size: 12px;
}
.client-option:last-child {
  border-bottom: 0;
}
.client-option:hover {
  background: var(--soft);
}
.client-option small {
  font-size: 10px;
  display: block;
  margin-top: 5px;
}
.selected-client {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f3f6ed;
  border: 1px solid #dfe8d2;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 15px;
}
.selected-client strong {
  font-size: 13px;
  display: block;
}
.selected-client small {
  font-size: 10px;
}
.job-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 23px;
}
.detail-list {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 15px;
  font-size: 12px;
  margin: 0;
}
.detail-list dt {
  color: var(--muted);
}
.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.folder-path {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  background: #f4f6ef;
  border-radius: 8px;
  padding: 14px;
  overflow-wrap: anywhere;
  line-height: 1.8;
  color: #738266;
  margin-top: 16px;
}
.quote-revision {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.document-icon {
  width: 42px;
  height: 48px;
  background: #f2f5eb;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a8e5e;
  font-size: 10px;
  font-weight: 650;
  flex-shrink: 0;
}
.document-icon.pdf {
  background: #f7ece5;
  color: #b18865;
}
.document-icon.image {
  background: #e8eff5;
  color: #6c8caa;
}
.quote-revision h3 {
  font-size: 13px;
}
.quote-revision small {
  font-size: 10px;
}
.files-list {
  padding: 0 23px 18px;
}
.file-row {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.file-row strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.file-preview-link {
  color: inherit;
  text-decoration: none;
}
.file-preview-link:hover,
.file-preview-link:focus-visible {
  text-decoration: underline;
}
.file-row small {
  font-size: 10px;
  display: block;
  margin-top: 6px;
}
.quote-file-row {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.quote-file-row:last-child {
  border-bottom: 0;
}
.dropzone {
  border: 1px dashed #b9c9a6;
  border-radius: 10px;
  background: #f8faf3;
  text-align: center;
  padding: 28px 20px;
  cursor: pointer;
  transition: background 0.15s;
}
.dropzone:hover,
.dropzone.over {
  background: #eaf3dc;
  border-color: #7ea658;
}
.dropzone .icon {
  color: #819868;
  width: 27px;
  height: 27px;
  margin-bottom: 8px;
}
.dropzone strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.dropzone small {
  display: block;
  font-size: 10px;
  margin-top: 7px;
  line-height: 1.6;
}
.upload-progress {
  font-size: 11px;
  line-height: 1.8;
  margin-top: 12px;
  color: #61734f;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 23px;
  align-items: start;
}
.quote-summary {
  position: sticky;
  top: 20px;
}
.summary-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #86917e;
}
.summary-amount {
  font-size: 34px;
  letter-spacing: -1.4px;
  margin: 11px 0 5px;
  font-weight: 550;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  margin: 17px 0;
  color: #74816b;
}
.summary-row strong {
  color: #405139;
  font-weight: 550;
}
.summary-divider {
  border-top: 1px solid var(--line);
  margin: 18px 0;
}
.summary-foot {
  background: #f3f6ed;
  padding: 17px;
  border-radius: 9px;
  font-size: 10px;
  color: #7b8b6a;
  line-height: 1.8;
}
.quote-summary .btn {
  width: 100%;
  margin-top: 18px;
}
.line-table th {
  padding: 11px 7px;
  font-size: 8px;
}
.line-table td {
  padding: 9px 5px;
  border: 0;
  vertical-align: top;
}
.line-table input,
.line-table select {
  padding: 9px 7px;
  font-size: 11px;
  border-color: #e5eade;
}
.line-table .desc {
  min-width: 190px;
}
.line-table .num {
  width: 76px;
}
.line-table .line-total {
  padding-top: 20px;
  min-width: 90px;
  font-size: 11px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.line-table .icon-btn {
  margin-top: 4px;
}
.line-description input + input {
  margin-top: 5px;
  font-size: 10px;
  background: #fafbf7;
}
.line-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  margin-top: 7px;
}
.line-footer small {
  font-size: 10px;
}
.builder-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 17px;
  border: 1px solid #dce6d0;
  background: #edf3e3;
  border-radius: 9px;
  margin-bottom: 22px;
  font-size: 11px;
  gap: 15px;
}
.builder-banner small {
  font-size: 10px;
}
.mini-row {
  display: grid;
  grid-template-columns: 1fr 90px 90px 30px;
  gap: 8px;
  margin: 10px 0;
}
.mini-row input {
  padding: 9px;
  font-size: 11px;
}
.mini-row.milestone {
  grid-template-columns: 1fr 90px 100px 30px;
}
.mini-row .computed {
  font-size: 11px;
  padding-top: 10px;
  text-align: right;
}
.section-toggle {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hint {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.error-box {
  background: #fbefeb;
  border: 1px solid #edd9cf;
  border-radius: 8px;
  color: #9d5d46;
  padding: 12px 14px;
  font-size: 12px;
  margin: 12px 0;
}
.notice {
  border-radius: 8px;
  padding: 13px 16px;
  background: #f2f5eb;
  color: #728060;
  font-size: 11px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.status-selector {
  max-width: 150px;
  font-size: 12px;
}
.contact-editor {
  background: #f7f9f3;
  padding: 13px;
  border-radius: 8px;
  margin-bottom: 12px;
}
.contact-editor .form-grid {
  gap: 10px;
}
.contact-editor input {
  font-size: 12px;
  padding: 9px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
}
.settings-grid .card-body {
  padding-top: 12px;
}
.member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.member:last-child {
  border-bottom: 0;
}
.member strong {
  font-size: 12px;
}
.member small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
dialog {
  border: 1px solid #dae2d3;
  border-radius: 17px;
  padding: 0;
  max-width: 630px;
  width: calc(100% - 32px);
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 30px 100px #13251a30;
  background: #fff;
}
dialog::backdrop {
  background: #142a235b;
  backdrop-filter: blur(4px);
}
.modal-head {
  padding: 24px 27px 18px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 21px;
  margin: 0;
}
.modal-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0 0;
}
.modal-body {
  padding: 24px 27px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 12px;
}
.catalogue-results {
  max-height: 380px;
  overflow: auto;
  margin-top: 16px;
}
.catalogue-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.catalogue-item strong {
  font-size: 12px;
}
.catalogue-item small {
  font-size: 10px;
  display: block;
  margin-top: 5px;
}
.catalogue-item .price {
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  background: var(--dark);
  color: #e0e8db;
  padding: 60px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-story .brand {
  padding: 0;
}
.auth-story h1 {
  font-size: 62px;
  line-height: 1.05;
  letter-spacing: -3px;
  max-width: 520px;
  font-weight: 450;
  margin-top: 100px;
  z-index: 1;
}
.auth-story h1 em {
  font-style: normal;
  color: var(--lime);
}
.auth-story p {
  max-width: 380px;
  font-size: 14px;
  color: #90aa97;
  z-index: 1;
}
.auth-story .hero-art {
  top: auto;
  bottom: 30px;
  right: 60px;
  opacity: 0.17;
  transform: rotate(-15deg) scale(1.8);
}
.auth-story footer {
  margin-top: auto;
  padding-top: 100px;
  font-size: 11px;
  color: #6f8a76;
}
.auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
}
.auth-form > div {
  width: 100%;
  max-width: 365px;
}
.auth-form h2 {
  font-size: 28px;
  font-weight: 500;
  margin: 13px 0;
}
.auth-form p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 30px;
}
.auth-form .btn {
  width: 100%;
  margin-top: 5px;
  padding: 14px;
}
.auth-foot {
  font-size: 10px;
  color: #97a18e;
  text-align: center;
  margin-top: 26px;
}
#toasts {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 420px;
}
.toast {
  border: 1px solid #d6e2c6;
  box-shadow: 0 5px 35px #20372215;
  background: #fff;
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slide-in 0.2s;
}
.toast .icon {
  color: #719a4b;
}
.toast.error {
  border-color: #e7cabc;
}
.toast.error .icon {
  color: #bd8060;
}
.skeleton {
  height: 130px;
  border-radius: 12px;
  background: linear-gradient(90deg, #e9ede3, #f4f6f0, #e9ede3);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.mobile-menu {
  display: none;
}
.preview-doc {
  font-size: 12px;
  line-height: 1.8;
}
.preview-doc h1 {
  font-size: 26px;
}
.preview-doc table {
  margin: 20px 0;
}
.preview-doc th,
.preview-doc td {
  padding: 10px 8px;
}
.preview-doc .preview-total {
  text-align: right;
  font-size: 20px;
}
.footer-note {
  font-size: 9px;
  color: #9ba48f;
  margin-top: 26px;
  display: flex;
  justify-content: space-between;
}
.legacy-list {
  max-height: 400px;
  overflow: auto;
}
.legacy-item {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  text-align: left;
  font-size: 12px;
}
.legacy-item:hover {
  color: var(--green);
  background: #f8faf3;
}
.legacy-item small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
.dirty-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c0a34e;
  display: inline-block;
  margin-right: 6px;
}
.search-caption {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 20px;
}
.mobile-backdrop {
  display: none;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1600px) {
  .content {
    padding: 40px 50px;
  }
  .hero {
    min-height: 185px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 205px;
    padding: 30px 14px 20px;
  }
  .main {
    margin-left: 205px;
  }
  .content {
    padding: 27px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 245px;
  }
  .stat {
    padding: 18px;
  }
  .stat-value {
    font-size: 27px;
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  .form-section {
    padding: 20px;
  }
  .client-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .job-layout {
    grid-template-columns: minmax(0, 1fr) 255px;
  }
  td,
  th {
    padding-left: 14px;
    padding-right: 14px;
  }
  .top-date {
    display: none;
  }
}
@media (max-width: 980px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-grid > .stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .quote-summary {
    position: static;
  }
  .job-layout {
    grid-template-columns: 1fr;
  }
  .job-layout > .stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 40px;
  }
  .auth-story h1 {
    font-size: 47px;
  }
  .line-table .desc {
    min-width: 200px;
  }
}
@media (max-width: 720px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 236px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    background: #142a2370;
    z-index: 25;
  }
  .main {
    margin: 0;
  }
  .topbar {
    height: 66px;
    padding: 0 18px;
    gap: 12px;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .breadcrumb {
    display: none;
  }
  .search-global {
    max-width: none;
  }
  .search-global kbd {
    display: none;
  }
  .content {
    padding: 23px 18px;
  }
  .page-head {
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 23px;
  }
  h1 {
    font-size: 28px;
  }
  .page-head p {
    font-size: 12px;
  }
  .page-head .btn {
    padding: 10px 13px;
  }
  .hero {
    padding: 25px;
    min-height: 180px;
  }
  .hero h2 {
    font-size: 25px;
  }
  .hero-art {
    right: -110px;
    opacity: 0.25;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 15px;
  }
  .stat-value {
    font-size: 27px;
  }
  .stat-top {
    font-size: 11px;
  }
  .stat-icon {
    padding: 6px;
  }
  .stat small {
    font-size: 9px;
  }
  .dashboard-grid > .stack,
  .job-layout > .stack {
    display: flex;
    flex-direction: column;
  }
  .client-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .card-head {
    padding: 20px;
  }
  .card-body {
    padding: 0 20px 20px;
  }
  .toolbar {
    padding: 16px;
  }
  .toolbar .search-box {
    max-width: none;
    min-width: 160px;
  }
  .filter-select {
    max-width: 145px;
  }
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 25px 30px;
  }
  .auth-story h1,
  .auth-story p,
  .auth-story footer,
  .auth-story .hero-art {
    display: none;
  }
  .auth-story .brand-mark {
    width: 37px;
    height: 37px;
    font-size: 30px;
  }
  .auth-form {
    padding: 40px 28px;
  }
  .auth-form > div {
    max-width: 430px;
  }
  .auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  .auth-form {
    flex: 1;
  }
  .mini-row {
    grid-template-columns: 1fr 60px 70px 28px;
    gap: 5px;
  }
  .mini-row.milestone {
    grid-template-columns: 1fr 65px 85px 28px;
  }
  .form-section {
    padding: 19px 16px;
  }
  .builder-banner {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  #toasts {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
  .footer-note {
    gap: 20px;
  }
  .modal-head {
    padding: 20px;
  }
  .modal-body {
    padding: 20px;
  }
  .quote-revision {
    padding: 17px;
  }
  .detail-list {
    grid-template-columns: 95px 1fr;
  }
  .contact-editor .form-grid {
    grid-template-columns: 1fr;
  }
  .summary-amount {
    font-size: 32px;
  }
  .page-head .flex {
    flex-wrap: wrap;
  }
  .line-footer .btn {
    font-size: 10px;
    padding: 8px;
  }
  .hide-mobile {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
