:root {
  --ink: #203946;
  --muted: #75818b;
  --teal: #187b71;
  --line: #e5ebee;
  --bg: #f3f6f8;
  --side: 220px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Noto Sans SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #dce4e7;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}
button:hover {
  background: #f0f6f5;
  border-color: #bdcfca;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
input,
select,
textarea {
  border: 1px solid #dbe2e6;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 9px 10px;
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #75b6ac;
  outline-offset: 1px;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
  cursor: pointer;
  padding: 0;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 16px;
  font-weight: 600;
}
small {
  font-size: 12px;
  color: var(--muted);
}
em {
  font-style: normal;
}
p {
  line-height: 1.8;
}
label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.primary {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.primary:hover {
  background: #10665d;
  color: white;
}
.wide {
  width: 100%;
}
.grow {
  flex: 1;
}
.sidebar {
  width: var(--side);
  background: #172f3d;
  color: #dbe7ec;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 21px;
  font-weight: 600;
  margin: 4px 8px 38px;
}
.brand-icon {
  display: flex;
  width: 38px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: #91cec0;
}
.brand small {
  display: block;
  font-weight: 400;
  color: #92a7b3;
  font-size: 11px;
  letter-spacing: 2px;
  margin-top: 4px;
}
.side-label {
  font-size: 12px;
  color: #8ba2ae;
  margin: 0 13px 12px;
}
.sidebar button {
  border: 0;
  background: transparent;
  color: #b6c7d1;
  text-align: left;
  justify-content: flex-start;
}
.sidebar .month {
  display: flex;
  width: 100%;
  padding: 13px 12px;
  margin-bottom: 6px;
}
.month span {
  flex: 1;
}
.sidebar .active,
.sidebar button:hover {
  background: #2a4856;
  color: white;
}
.month small {
  color: #b6c7d1;
}
.add-month {
  margin-top: 7px;
}
.side-tools {
  border-top: 1px solid #344b58;
  margin-top: 27px;
  padding-top: 23px;
  display: grid;
  gap: 10px;
}
.side-bottom {
  margin-top: auto;
  border-top: 1px solid #344b58;
  padding: 23px 10px 0;
}
.side-bottom small {
  display: block;
  margin: 7px 0 20px;
  color: #8da6b5;
}
.side-bottom button {
  font-size: 12px;
  padding: 0;
}
.sync {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.dot {
  width: 7px;
  height: 7px;
  background: #68c3a9;
  border-radius: 50%;
}
.main {
  margin-left: var(--side);
  padding: 0 36px 150px;
  min-height: 100vh;
}
.topbar {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.crumb {
  color: #94a0a9;
  margin-left: 12px;
}
.top-sync {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #788a91;
  font-size: 12px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 27px;
}
.eyebrow {
  font-size: 12px;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 8px;
}
.heading p:last-child {
  margin-top: 10px;
  color: var(--muted);
}
.separator {
  margin: 0 10px;
}
.actions {
  display: flex;
  gap: 10px;
}
.rates-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 22px 24px;
  margin-bottom: 26px;
}
.rates-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.rates-heading > div {
  display: flex;
  align-items: center;
  gap: 17px;
}
.rates-heading span {
  font-size: 12px;
  color: #89959d;
}
.rates-heading label {
  font-size: 12px;
  color: var(--muted);
}
.rates-heading select {
  font-weight: 600;
  font-size: 13px;
  padding: 6px 28px 6px 10px;
}
.rate-fields {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.rate-fields > label {
  padding: 7px 12px;
  background: #f5f8f9;
  border-radius: 7px;
  border: 1px solid var(--line);
}
.rate-fields input {
  width: 115px;
  border: 0;
  background: transparent;
  text-align: right;
  padding: 3px 5px;
  font-weight: 600;
}
.rate-fields b {
  font-size: 12px;
  color: #6c7d87;
}
.rate-buttons {
  margin-left: auto;
  display: flex;
  gap: 9px;
}
.rate-buttons button {
  font-size: 12px;
  padding: 8px 10px;
}
.rate-buttons button:last-child {
  color: var(--teal);
  border-color: #bfdbd5;
}
.listing {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  overflow: hidden;
}
.list-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.tabs {
  display: flex;
  gap: 24px;
}
.tabs button {
  padding: 19px 0;
  border: 0;
  background: none;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  font-weight: 500;
}
.tabs .selected {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
.tabs small {
  padding: 1px 6px;
  background: #f0f3f4;
  border-radius: 4px;
  color: #84949e;
}
.search {
  display: flex;
  align-items: center;
  color: #9ca7af;
  gap: 7px;
}
.search input {
  border: 0;
  padding: 8px 0;
  width: 200px;
  font-size: 12px;
}
.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 22px;
  font-size: 12px;
  color: var(--muted);
}
.currency-tabs {
  display: flex;
  gap: 8px;
}
.currency-tabs button {
  border: 0;
  padding: 5px 12px;
  font-size: 12px;
  color: #7b8c95;
  background: #f4f6f7;
}
.currency-tabs .chosen {
  color: var(--teal);
  background: #e7f3ee;
}
.selection-tools {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 22px;
  border-top: 1px solid #f2f5f6;
  font-size: 12px;
  flex-wrap: wrap;
}
.selection-tools button {
  padding: 4px 0;
  border: 0;
  background: none;
  font-size: 12px;
  color: #768690;
}
.selection-tools select {
  font-size: 12px;
  padding: 5px 8px;
}
.selection-tools .danger-link {
  color: #a77e77;
}
.date-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #edf3f5;
  padding: 13px 22px;
  border-top: 1px solid var(--line);
}
.date-head label {
  gap: 12px;
}
.date-head strong {
  font-size: 13px;
}
.date-head small,
.date-head > span {
  font-size: 11px;
  color: #8997a0;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 740px;
}
th {
  font-size: 11px;
  font-weight: 400;
  color: #8d9aa3;
  background: #fbfcfd;
  text-align: left;
  padding: 11px 15px;
}
td {
  border-top: 1px solid #edf0f2;
  padding: 14px 15px;
  vertical-align: middle;
  font-size: 13px;
}
.check-col {
  width: 42px;
}
td:first-child,
th:first-child {
  padding-left: 22px;
}
th:nth-child(2) {
  width: 40%;
}
th:nth-child(4),
th:nth-child(5),
th:nth-child(6) {
  text-align: right;
}
.product {
  display: flex;
  align-items: center;
  gap: 13px;
}
.thumb,
.no-image {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background: white;
  border: 1px solid #edf0f2;
  border-radius: 6px;
  flex-shrink: 0;
  cursor: zoom-in;
}
.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a3b4bc;
  background: #f5f8f9;
}
.product-name {
  border: 0;
  background: none;
  padding: 0;
  white-space: normal;
  text-align: left;
  font-size: 13px;
  line-height: 1.7;
  justify-content: flex-start;
  max-width: 330px;
}
.product small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  color: #95a2aa;
}
.product em {
  color: #b38b48;
  font-size: 10px;
  margin-left: 10px;
}
.numeric {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.numeric small,
td > small {
  display: block;
  font-size: 11px;
  margin-bottom: 3px;
}
.strong {
  font-weight: 600;
}
.status {
  display: block;
  width: max-content;
  margin-top: 6px;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 4px;
}
.status.pending {
  background: #fff4db;
  color: #ad8635;
}
.status.confirmed {
  background: #e6f4ee;
  color: #328267;
}
.status.cancelled {
  background: #f0f1f3;
  color: #929ba1;
}
.icon-button {
  border: 0;
  padding: 7px;
  color: #8999a2;
  background: none;
}
.row-selected {
  background: #f1f9f6;
}
.empty {
  padding: 55px 20px;
  text-align: center;
  color: #81929c;
}
.month-actions {
  text-align: right;
  padding-top: 20px;
}
.month-actions button {
  border: 0;
  background: transparent;
  color: #a0a8ae;
  font-size: 11px;
}
.totals-bar {
  position: fixed;
  bottom: 0;
  left: var(--side);
  right: 0;
  z-index: 25;
  background: white;
  border-top: 1px solid #dfe7ea;
  box-shadow: 0 -5px 25px #20394608;
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 21px 30px;
  min-height: 105px;
}
.selected-count {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #7e9098;
}
.selected-count b {
  font-size: 17px;
  color: var(--teal);
}
.selected-count button {
  border: 0;
  padding: 2px;
  font-size: 11px;
  color: #91a0a8;
}
.pending-total {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pending-total span {
  font-size: 16px;
}
.pending-total em,
.grand-total em {
  font-size: 11px;
  color: #91a0a8;
  font-weight: 400;
}
.split-totals {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 10px;
  color: #8c9aa2;
  border-left: 1px solid var(--line);
  padding-left: 22px;
}
.split-totals b {
  font-weight: 500;
  color: #596f7c;
  margin-left: 10px;
}
.grand-total {
  margin-left: auto;
}
.grand-total strong {
  display: block;
  font-size: 25px;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
  margin-top: 3px;
}
.footer-actions {
  display: grid;
  gap: 7px;
}
.footer-actions button {
  font-size: 12px;
  padding: 7px 13px;
}
.message {
  position: sticky;
  top: 8px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: #e5f2ee;
  border: 1px solid #c8dfd6;
  border-radius: 8px;
  margin-top: 14px;
  font-size: 13px;
}
.message button {
  padding: 3px;
  border: 0;
  background: none;
}
.conflict {
  padding: 18px;
  background: #fff1d5;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.error {
  color: #b27533 !important;
}
.other-view {
  padding: 35px 0;
}
.other-view > p {
  margin: 13px 0 25px;
  color: var(--muted);
}
.quote-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 22px;
  margin: 14px 0;
}
.quote-card > div {
  flex: 1;
}
.quote-card p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.quote-card strong {
  color: var(--teal);
}
.quote-card small {
  display: block;
  font-weight: 400;
  text-align: right;
  margin-top: 4px;
}
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #10263266;
  display: flex;
  justify-content: flex-end;
  backdrop-filter: blur(2px);
}
.overlay.centered {
  align-items: center;
  justify-content: center;
}
.drawer {
  background: white;
  width: 520px;
  max-width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 25px 28px;
  box-shadow: -15px 0 60px #132e3d22;
}
.dialog {
  background: white;
  border-radius: 14px;
  width: 540px;
  max-width: 94vw;
  max-height: 90vh;
  overflow: auto;
  padding: 27px;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.dialog-head h2 {
  font-size: 21px;
}
.dialog-head small {
  display: block;
  margin-top: 5px;
}
.dialog-head button {
  border: 0;
  padding: 6px;
}
.drawer form > label,
.dialog form > label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  font-size: 13px;
  gap: 8px;
  margin: 17px 0;
}
.drawer textarea,
.dialog textarea {
  min-height: 75px;
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 14px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  font-size: 13px;
}
.drawer form .check-label {
  flex-direction: row;
  align-items: center;
}
.image-gallery {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.image-gallery > div {
  position: relative;
}
.image-gallery > div button {
  position: absolute;
  right: -6px;
  top: -6px;
  padding: 2px;
  border-radius: 50%;
}
.upload-image {
  width: 80px;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px dashed #abc6c0;
  border-radius: 7px;
  font-size: 10px;
  cursor: pointer;
  color: var(--teal);
}
.hint {
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0;
}
.dialog p {
  margin: 12px 0;
  color: #6b7d86;
  font-size: 13px;
}
.quote-items {
  max-height: 350px;
  overflow: auto;
  margin-bottom: 22px;
}
.quote-items p {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.quote-items small {
  display: block;
}
.image-viewer {
  max-width: 90vw;
  max-height: 92vh;
  overflow: auto;
  background: white;
  border-radius: 12px;
  padding: 28px;
  position: relative;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.large-image {
  max-width: 70vw;
  max-height: 75vh;
  object-fit: contain;
}
.image-viewer > button {
  position: absolute;
  right: 6px;
  top: 6px;
}
@media (min-width: 1500px) {
  .main {
    padding-left: 50px;
    padding-right: 50px;
  }
  .product-name {
    max-width: 480px;
  }
  .totals-bar {
    gap: 35px;
  }
  .footer-actions {
    display: flex;
  }
  .grand-total {
    margin-right: 15px;
  }
}
@media (max-width: 1150px) {
  :root {
    --side: 190px;
  }
  .main {
    padding: 0 20px 185px;
  }
  .sidebar {
    padding: 24px 12px;
  }
  .brand {
    font-size: 18px;
    margin-left: 2px;
  }
  .totals-bar {
    flex-wrap: wrap;
    gap: 12px 22px;
    padding: 15px 20px;
  }
  .selected-count {
    width: 100px;
  }
  .split-totals {
    padding-left: 12px;
  }
  .grand-total strong {
    font-size: 21px;
  }
  .footer-actions {
    display: flex;
    margin-left: auto;
  }
  .rate-buttons {
    margin: 0;
  }
  .rates-heading > div {
    display: block;
  }
  .rates-heading span {
    display: block;
    margin-top: 6px;
  }
  .list-top {
    flex-wrap: wrap;
    gap: 3px;
  }
  .search {
    padding-bottom: 10px;
    width: 100%;
  }
  .search input {
    width: 100%;
  }
  .heading {
    gap: 14px;
    flex-wrap: wrap;
  }
  .top-sync {
    display: none;
  }
}
@media (max-width: 720px) {
  :root {
    --side: 0px;
  }
  .sidebar {
    position: relative;
    width: 100%;
    padding: 16px;
  }
  .brand {
    margin: 0 0 14px;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
  }
  .sidebar .month {
    min-width: 170px;
  }
  .side-label,
  .side-tools,
  .side-bottom {
    display: none;
  }
  .add-month {
    position: absolute;
    right: 15px;
    top: 20px;
  }
  .main {
    padding: 0 12px 230px;
  }
  .topbar {
    height: 46px;
  }
  .heading {
    padding: 20px 0;
  }
  .heading h1 {
    font-size: 25px;
  }
  .heading p {
    font-size: 12px;
  }
  .rates-card {
    padding: 16px;
  }
  .rates-heading {
    align-items: flex-start;
  }
  .rate-buttons {
    flex-wrap: wrap;
  }
  .selection-tools {
    gap: 10px;
    padding: 10px 12px;
  }
  .selection-tools .grow {
    display: none;
  }
  .tabs {
    gap: 18px;
  }
  .totals-bar {
    padding: 12px;
    gap: 12px;
  }
  .grand-total {
    margin-left: auto;
  }
  .split-totals {
    font-size: 10px;
  }
  .pending-total span {
    font-size: 13px;
  }
  .footer-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .selected-count {
    width: auto;
  }
  .quote-card {
    flex-wrap: wrap;
  }
  .quote-card > div {
    width: 100%;
    flex: auto;
  }
  .drawer {
    padding: 20px;
  }
}

.inline-cell{min-width:72px}.inline-cell input,.inline-cell select{width:100%;border:1px solid #d7e2e5;border-radius:5px;background:#fff;padding:7px 8px;font-size:14px}.inline-cell.unsaved input,.inline-cell.unsaved select{border-color:#d4ac61}.inline-cell .error{white-space:normal;font-size:11px}.inline-name{flex:1;min-width:160px}.inline-name input{width:100%}.inline-picture{position:relative;flex-shrink:0}.inline-picture label{cursor:pointer;justify-content:center;color:#187b71;font-size:12px;margin-top:3px}.numeric .inline-cell input{text-align:right;max-width:120px}.numeric .inline-cell{display:flex;justify-content:flex-end}.numeric .inline-cell+.inline-cell{margin-top:5px}td>.inline-cell+.inline-cell{margin-top:5px}.inline-cell select{font-size:13px}.product{gap:10px}.product small{font-size:12px}table{min-width:920px}th,td{font-size:14px}.side-label,.side-tools button,.side-bottom button,.selection-tools,.selection-tools button,.selection-tools select,.filters,.currency-tabs button,.tabs button,.rate-buttons button,.date-head strong,.date-head small{font-size:14px}.heading p:last-child{font-size:14px}.status{font-size:12px}.main{font-size:16px}.icon-button{font-size:12px}.split-totals{font-size:12px}

.currency-tabs,.add-currency-form{flex-wrap:wrap}.add-currency-form{display:flex;align-items:center;gap:6px}.add-currency-form input{width:95px}.add-currency-form small{color:#995326}
