:root {
  --bg: #f7f8fa;
  --surface: #fff;
  --ink: #1d2533;
  --muted: #78808e;
  --line: #e9ecf0;
  --orange: #ef793c;
  --orange-dark: #ce5b22;
  --orange-light: #fff3ea;
  --green: #299273;
  --green-light: #eaf6f0;
  --red: #c74c49;
  --radius: 14px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #eea677;
  outline-offset: 3px;
}
input:focus,
select:focus {
  outline: 3px solid #f9e3d4;
  border-color: #eea677;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1.15px;
  font-weight: 650;
  line-height: 1.25;
}
h2 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.25px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
[hidden] {
  display: none !important;
}
.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  background: white;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 35px 21px 24px;
  z-index: 20;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 750;
  font-size: 29px;
  letter-spacing: -1.1px;
}
.brand > span:last-child {
  line-height: 1.05;
}
.brand small {
  display: block;
  font-size: 7.7px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #9499a2;
  margin-top: 9px;
}
.brand-dot {
  color: var(--orange);
}
.brand-mark {
  position: relative;
  width: 40px;
  height: 42px;
  border-radius: 12px;
  background: var(--orange);
  color: white;
  display: grid;
  place-items: center;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -4px;
  padding-right: 7px;
  font-weight: 600;
}
.brand-mark span {
  position: absolute;
  right: 4px;
  top: 6px;
  font-size: 20px;
  letter-spacing: 0;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 10px;
  margin-top: 38px;
}
.workspace-icon {
  height: 30px;
  width: 30px;
  background: #edf0f4;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 650;
  color: #657086;
}
.workspace strong {
  font-size: 11px;
  display: block;
  font-weight: 600;
}
.workspace small {
  font-size: 10px;
  display: block;
}
.status-dot {
  display: inline-block;
  background: #49a98c;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.workspace > .status-dot {
  margin-left: auto;
}
.nav-label {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.2px;
  color: #a1a6b0;
  margin: 31px 12px 13px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 550;
  color: #727986;
}
nav a:hover {
  background: #f6f7f8;
}
nav a.active {
  color: var(--orange-dark);
  background: var(--orange-light);
}
.nav-count {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 5px;
  background: #edf0f3;
  color: #818792;
  font-size: 10px;
}
.active .nav-count {
  background: #ffe4d3;
  color: var(--orange-dark);
}
.attention {
  background: #fff0d5;
  color: #9b690b;
}
.sidebar-bottom {
  margin-top: auto;
}
.connection {
  border-top: 1px solid var(--line);
  padding: 23px 9px 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.connection > .icon {
  color: #778b9e;
}
.connection strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
}
.connection small {
  display: block;
  font-size: 10px;
}
.logout {
  border: 0;
  background: none;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px;
  color: #858c98;
  font-size: 11px;
}
.version {
  display: block;
  margin: 22px 9px 0;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #b0b5bf;
}
.main-shell {
  margin-left: 250px;
}
.topbar {
  height: 77px;
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.breadcrumb {
  font-size: 11px;
  color: #9198a3;
  display: flex;
  gap: 15px;
  align-items: center;
}
.breadcrumb strong {
  font-weight: 500;
  color: #525d6d;
}
.breadcrumb span {
  color: #c8cdd4;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 25px;
}
.secure-label {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  color: #8b939e;
}
.secure-label .icon {
  width: 14px;
  height: 14px;
}
.avatar {
  height: 31px;
  width: 31px;
  display: grid;
  place-items: center;
  background: #f0eee9;
  border: 3px solid white;
  outline: 1px solid var(--line);
  font-size: 9px;
  border-radius: 50%;
  font-weight: 650;
  color: #867a67;
}
main#main {
  max-width: 1600px;
  padding: 35px 38px 24px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}
.eyebrow {
  color: #9a7964;
  letter-spacing: 1.65px;
  font-size: 9px;
  font-weight: 650;
  margin-bottom: 10px;
}
.subtitle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  margin-top: 10px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 550;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.button .icon {
  height: 16px;
  width: 16px;
}
.button.primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 2px 4px #e2773220;
}
.button.primary:hover {
  background: var(--orange-dark);
}
.button.secondary {
  background: white;
  border-color: #e3e7ed;
  color: #626d7c;
}
.button.secondary:hover {
  background: #f7f8fa;
}
.button.soft {
  color: var(--orange-dark);
  background: var(--orange-light);
  border-color: #ffdfc9;
}
.button.danger {
  background: var(--red);
  color: #fff;
}
.button.small {
  font-size: 11px;
  padding: 8px 11px;
}
.text-button {
  background: none;
  border: none;
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.text-button .icon {
  width: 14px;
  height: 14px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 23px 25px;
}
.panel-heading p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
  line-height: 1.6;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 24px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 21px 22px;
  position: relative;
}
.metric-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #7f8793;
  gap: 10px;
}
.metric-icon {
  background: #f5f6f8;
  color: #909aa7;
  padding: 7px;
  border-radius: 8px;
}
.metric-icon .icon {
  width: 16px;
  height: 16px;
}
.metric-value {
  display: block;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -1.2px;
  margin-top: 7px;
}
.metric-note {
  font-size: 10px;
  color: #9aa1ac;
  margin-top: 9px;
}
.metric-note b {
  font-weight: 500;
  color: var(--green);
}
.metric-note b.orange {
  color: var(--orange-dark);
}
.overview-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}
.control-panel {
  padding: 25px;
  background: linear-gradient(130deg, #fff, #fffaf6);
  border: 1px solid #ede6df;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.control-title {
  display: flex;
  align-items: center;
  gap: 11px;
}
.control-symbol {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #ffebdc;
  color: var(--orange-dark);
}
.control-title p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  line-height: 1.4;
  font-weight: 550;
  padding: 5px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.badge.green {
  color: #238269;
  background: #eaf6f0;
}
.badge.gray {
  color: #8a929f;
  background: #f1f3f5;
}
.badge.orange {
  color: #b27b29;
  background: #fff2dd;
}
.badge.red {
  color: #c05551;
  background: #fff0ef;
}
.control-copy {
  font-size: 12px;
  line-height: 1.8;
  color: #8a827c;
  max-width: 410px;
}
.control-copy strong {
  font-weight: 600;
  color: #66594e;
}
.mode-selector {
  display: flex;
  padding: 4px;
  border: 1px solid #eae4df;
  border-radius: 8px;
  background: #f4f1ee;
  gap: 4px;
}
.mode-selector button {
  flex: 1;
  background: none;
  border: 0;
  padding: 9px 10px;
  border-radius: 5px;
  font-size: 11px;
  color: #8a827d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.mode-selector button.selected {
  background: white;
  box-shadow: 0 1px 4px #412d1710;
  color: #645344;
}
.mode-selector .icon {
  width: 14px;
  height: 14px;
}
.control-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.control-actions .button.primary {
  flex: 1;
}
.control-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #ab9887;
}
.control-foot .icon {
  width: 13px;
  height: 13px;
}
.activity-panel {
  display: flex;
  flex-direction: column;
}
.activity-items {
  padding: 0 25px 23px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.activity-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.activity-icon {
  height: 30px;
  width: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f4f6f8;
  color: #8591a2;
  flex-shrink: 0;
}
.activity-icon .icon {
  width: 15px;
  height: 15px;
}
.activity-item strong {
  font-size: 11px;
  font-weight: 550;
  display: block;
  margin-bottom: 6px;
}
.activity-item p {
  font-size: 10px;
  color: #969eaa;
  line-height: 1.6;
}
.activity-item .text-button {
  font-size: 10px;
  margin-top: 8px;
  padding: 0;
}
.notice {
  background: #f1f5fb;
  color: #677c93;
  border: 1px solid #e2eaf3;
  border-radius: 10px;
  padding: 15px 18px;
  font-size: 12px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.notice.warn {
  background: #fff9eb;
  color: #987028;
  border-color: #f3e6c6;
}
.notice.danger {
  background: #fff1ee;
  border-color: #f8d7cf;
  color: #b55a4b;
}
.notice a {
  text-decoration: underline;
}
.notice strong {
  font-weight: 600;
}
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 19px 23px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
}
.search .icon {
  color: #9ba3ae;
  width: 16px;
  height: 16px;
}
.search input {
  border: none;
  padding: 6px 2px;
  min-width: 200px;
  font-size: 12px;
  width: 220px;
  background: transparent;
}
.toolbar-actions select,
.panel-heading select {
  width: auto;
  padding: 8px 10px;
  font-size: 11px;
  color: #737e8d;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  padding: 13px 24px;
  background: #fcfcfd;
  color: #9da4af;
  font-weight: 500;
  font-size: 10px;
  border-bottom: 1px solid #edf0f3;
}
td {
  padding: 17px 24px;
  font-size: 11px;
  border-bottom: 1px solid #f0f2f5;
  color: #778291;
}
tr:last-child td {
  border-bottom: 0;
}
.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 215px;
  max-width: 330px;
}
.product-thumb {
  width: 39px;
  height: 39px;
  background: #f4f5f7;
  border: 1px solid #eceff2;
  display: grid;
  place-items: center;
  border-radius: 9px;
  flex-shrink: 0;
  color: #9ca5b1;
}
.product-text {
  overflow: hidden;
}
.product-text strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  font-weight: 550;
  color: #3e4a5c;
  max-width: 240px;
}
.product-text small {
  font-size: 9px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
  margin-top: 5px;
  color: #a0a7b1;
}
.store {
  font-size: 10px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.store::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f4a94f;
}
.store.manomano::before {
  background: #44a9a1;
}
.store.leroymerlin::before {
  background: #86b764;
}
.price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #465163;
}
.price small {
  font-size: 9px;
  font-weight: 400;
  display: block;
  margin-top: 4px;
  color: #a2a9b3;
}
.row-actions {
  display: flex;
  gap: 3px;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  height: 30px;
  width: 30px;
  border: 0;
  background: none;
  border-radius: 7px;
  color: #8c97a6;
  font-size: 23px;
}
.icon-button:hover {
  background: #f0f3f6;
  color: #485568;
}
.icon-button .icon {
  width: 15px;
  height: 15px;
}
.icon-button.delete:hover {
  background: #fff0ee;
  color: var(--red);
}
.empty {
  padding: 46px 20px;
  text-align: center;
  color: #939ba7;
}
.empty-symbol {
  width: 51px;
  height: 51px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  background: #f4f6f8;
  border: 1px solid #eceff2;
  border-radius: 14px;
  color: #a3adbb;
}
.empty-symbol .icon {
  height: 24px;
  width: 24px;
}
.empty h3 {
  font-size: 13px;
  color: #667283;
  margin-bottom: 8px;
}
.empty p {
  font-size: 11px;
  line-height: 1.8;
  max-width: 365px;
  margin: 0 auto 17px;
}
.empty .button {
  font-size: 11px;
}
.table-bottom {
  display: flex;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #9ca4b0;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  color: #adb3bd;
  font-size: 9px;
}
.page-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.page-footer .status-dot {
  width: 5px;
  height: 5px;
  background: #b3c8be;
}
.settings-intro {
  font-size: 11px;
}
.settings-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 25px;
  padding: 27px;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.settings-section-header h2 {
  margin-bottom: 9px;
}
.settings-section-header p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.settings-section-header .button {
  margin-top: 16px;
}
.settings-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.settings-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}
.settings-footer p {
  color: #969eab;
  font-size: 11px;
}
.settings-form-grid label {
  margin: 0;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 550;
  color: #657082;
  margin-bottom: 19px;
}
input,
select {
  display: block;
  width: 100%;
  background: white;
  color: #465369;
  border: 1px solid #dfe4ea;
  border-radius: 7px;
  padding: 11px 12px;
  margin-top: 7px;
  font-size: 12px;
  min-width: 0;
}
select {
  cursor: pointer;
}
input::placeholder {
  color: #b1b7c1;
  font-weight: 400;
}
input[readonly],
input:disabled,
select:disabled {
  background: #f5f6f8;
  color: #929aa7;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--orange);
  flex-shrink: 0;
}
label small {
  display: block;
  font-weight: 400;
  font-size: 10px;
  margin-top: 6px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 450;
  line-height: 1.8;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 17px;
}
.form-grid.three {
  grid-template-columns: repeat(3, 1fr);
}
.form-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #9b897a;
  margin: -2px 0 23px;
  line-height: 1.7;
}
.form-note .icon {
  width: 15px;
  height: 15px;
}
.form-note strong {
  font-weight: 650;
}
.dialog {
  border: 1px solid #e4e8ee;
  padding: 0;
  border-radius: 17px;
  width: min(480px, calc(100% - 28px));
  max-height: 90dvh;
  color: var(--ink);
  box-shadow: 0 30px 90px #1d26342b;
}
.dialog.wide {
  width: min(670px, calc(100% - 28px));
}
.dialog::backdrop {
  background: #202c4270;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  padding: 24px 27px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.dialog-heading h2 {
  font-size: 19px;
}
.dialog-heading .eyebrow {
  font-size: 8px;
  margin-bottom: 7px;
}
.dialog-body {
  padding: 24px 27px;
}
.dialog-body > p {
  font-size: 12px;
  line-height: 1.8;
  color: #7a8595;
  margin-bottom: 18px;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 27px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
}
.form-error {
  color: var(--red) !important;
  background: #fff2ee;
  padding: 11px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
  margin: 12px 0 0 !important;
}
details {
  border-top: 1px solid var(--line);
  padding-top: 17px;
}
summary {
  cursor: pointer;
  color: #8b94a2;
  font-size: 11px;
}
.advanced-fields {
  padding-top: 20px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 21px;
  background: #263447;
  color: white;
  border-radius: 10px;
  font-size: 12px;
  box-shadow: 0 4px 20px #1d25332a;
  z-index: 100;
  max-width: calc(100% - 30px);
  line-height: 1.6;
}
.history-chart {
  width: 100%;
  height: 170px;
  margin: 5px 0 12px;
}
.history-summary {
  display: flex;
  gap: 25px;
  margin-bottom: 15px;
}
.history-summary small {
  display: block;
  font-size: 10px;
}
.history-summary strong {
  display: block;
  font-size: 21px;
  margin-top: 5px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.history-table td,
.history-table th {
  padding: 13px 9px;
}
.preview-card {
  padding: 20px;
  border-top: 1px solid var(--line);
}
.preview-card pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.8;
  color: #76808e;
}
.preview-card a {
  font-size: 11px;
  color: var(--orange-dark);
  text-decoration: underline;
}
.preview-label {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--orange-dark);
  font-weight: 600;
}
.login-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  background:
    radial-gradient(ellipse at 50% 30%, #fff6ed 0, transparent 60%), var(--bg);
}
.login-card {
  background: white;
  padding: 43px 44px 33px;
  border: 1px solid #ede8e2;
  border-radius: 20px;
  box-shadow: 0 14px 45px #58422407;
  width: min(445px, 100%);
}
.login-card .brand {
  margin-bottom: 39px;
}
.login-card .eyebrow {
  font-size: 8px;
}
.login-card h1 {
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -1.2px;
}
.login-card .subtitle {
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 29px;
}
.login-card .button {
  width: 100%;
  justify-content: space-between;
  padding: 12px 15px;
  margin-top: 4px;
}
.login-card label {
  font-size: 11px;
}
.login-card input {
  padding: 12px;
}
.login-help {
  font-size: 9px;
  color: #a1a7b1;
  line-height: 1.9;
  margin-top: 24px;
}
.login-help code {
  font-size: 9px;
}
.login-caption {
  font-size: 10px;
  letter-spacing: 0.2px;
  color: #a5a9b1;
  margin-top: 26px;
}
@media (min-width: 1450px) {
  main#main {
    padding: 42px 48px;
  }
  .metric {
    padding: 24px 27px;
  }
  .overview-columns {
    grid-template-columns: 1.6fr 1fr;
  }
  .control-panel {
    padding: 29px;
  }
  .control-copy {
    max-width: none;
  }
  .product-text strong {
    max-width: 320px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 210px;
    padding: 30px 15px;
  }
  .workspace {
    padding: 10px 7px;
    gap: 7px;
  }
  .workspace strong {
    font-size: 10px;
  }
  .main-shell {
    margin-left: 210px;
  }
  .brand {
    font-size: 27px;
    gap: 9px;
  }
  .brand small {
    font-size: 6.5px;
  }
  .topbar {
    padding: 0 25px;
  }
  main#main {
    padding: 29px 25px;
  }
  .metric-grid {
    gap: 11px;
  }
  .metric {
    padding: 16px;
  }
  .metric-label {
    font-size: 10px;
  }
  .metric-note {
    font-size: 9px;
  }
  .overview-columns {
    grid-template-columns: 1.35fr 1fr;
    gap: 17px;
  }
  .control-panel {
    padding: 21px;
  }
  .control-title h2 {
    font-size: 14px;
  }
  .panel-heading {
    padding: 21px;
  }
  .activity-items {
    padding: 0 21px 21px;
  }
  .settings-section {
    grid-template-columns: 170px 1fr;
    gap: 18px;
  }
  td,
  th {
    padding-left: 18px;
    padding-right: 18px;
  }
  .secure-label {
    display: none;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 76px;
    padding: 24px 12px;
  }
  .brand {
    justify-content: center;
  }
  .sidebar .brand > span:last-child,
  .workspace,
  .nav-label,
  .sidebar nav a .nav-count,
  .sidebar-bottom .connection,
  .sidebar-bottom .version {
    display: none;
  }
  .sidebar nav {
    margin-top: 40px;
    gap: 14px;
  }
  .sidebar nav a {
    font-size: 0;
    justify-content: center;
    padding: 14px;
    gap: 0;
  }
  .sidebar nav a .icon {
    width: 21px;
    height: 21px;
  }
  .logout {
    font-size: 0;
    justify-content: center;
    width: 100%;
    padding: 14px;
  }
  .logout .icon {
    width: 20px;
    height: 20px;
  }
  .main-shell {
    margin-left: 76px;
  }
  .overview-columns {
    grid-template-columns: 1fr 1fr;
  }
  .control-actions .button {
    font-size: 10px;
    padding: 10px;
  }
  .control-title {
    gap: 8px;
  }
  .control-title h2 {
    font-size: 13px;
  }
  .control-header {
    flex-wrap: wrap;
  }
  .settings-section {
    grid-template-columns: 1fr;
  }
  .settings-section-header {
    max-width: 500px;
  }
  .metric-label {
    align-items: flex-start;
  }
  .metric-icon {
    padding: 5px;
  }
  .metric-value {
    font-size: 29px;
  }
}
@media (max-width: 650px) {
  .sidebar {
    inset: auto 0 0 0;
    width: 100%;
    height: 72px;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    border-right: 0;
    display: block;
  }
  .sidebar .brand,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    height: 64px;
    align-items: center;
  }
  .sidebar nav a {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 9px;
    padding: 8px 2px;
    border-radius: 8px;
  }
  .sidebar nav a .icon {
    width: 18px;
    height: 18px;
  }
  .main-shell {
    margin-left: 0;
    margin-bottom: 75px;
  }
  .topbar {
    height: 57px;
    padding: 0 20px;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 10px;
  }
  .avatar {
    width: 27px;
    height: 27px;
    font-size: 8px;
  }
  main#main {
    padding: 25px 18px 20px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 23px;
    gap: 9px;
    flex-wrap: wrap;
  }
  .page-heading > div {
    width: 100%;
  }
  h1 {
    font-size: 27px;
  }
  .eyebrow {
    font-size: 8px;
    margin-bottom: 9px;
  }
  .subtitle {
    font-size: 11px;
    max-width: 270px;
    line-height: 1.8;
    margin-top: 7px;
  }
  .page-heading > .button {
    padding: 9px 12px;
    font-size: 10px;
    margin-top: 5px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
    margin-bottom: 18px;
  }
  .metric {
    padding: 15px;
  }
  .metric-label {
    font-size: 10px;
  }
  .metric-value {
    font-size: 29px;
    margin-top: 5px;
  }
  .metric-note {
    font-size: 9px;
    margin-top: 5px;
  }
  .metric-icon {
    padding: 5px;
  }
  .metric-icon .icon {
    width: 14px;
    height: 14px;
  }
  .overview-columns {
    grid-template-columns: 1fr;
    gap: 17px;
    margin-bottom: 19px;
  }
  .control-panel {
    padding: 22px;
    gap: 20px;
  }
  .control-title h2 {
    font-size: 14px;
  }
  .control-header {
    flex-wrap: nowrap;
  }
  .control-actions .button {
    font-size: 11px;
    padding: 11px;
  }
  .control-copy {
    font-size: 11px;
  }
  .panel-heading {
    padding: 20px;
  }
  .panel-heading h2 {
    font-size: 14px;
  }
  .panel-heading p {
    font-size: 10px;
  }
  .activity-items {
    padding: 0 20px 23px;
    gap: 19px;
  }
  .activity-item strong {
    font-size: 11px;
  }
  .empty {
    padding: 35px 16px;
  }
  .empty p {
    max-width: 280px;
  }
  .page-footer {
    font-size: 9px;
  }
  .page-footer > span:last-child {
    display: none;
  }
  .table-toolbar {
    padding: 16px;
    gap: 13px;
  }
  .search {
    width: 100%;
  }
  .search input {
    width: 100%;
  }
  .toolbar-actions {
    width: 100%;
    gap: 6px;
  }
  .toolbar-actions select {
    flex: 1;
    min-width: 0;
    font-size: 10px;
    padding: 8px;
  }
  .button.small {
    font-size: 10px;
    padding: 8px;
  }
  .button.small .icon {
    height: 13px;
    width: 13px;
  }
  th,
  td {
    padding: 14px 16px;
  }
  .settings-section {
    padding: 21px;
    gap: 22px;
  }
  .settings-form-grid {
    grid-template-columns: 1fr;
  }
  .settings-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .settings-footer .button {
    width: 100%;
  }
  .notice {
    font-size: 11px;
    padding: 13px;
  }
  .dialog-heading {
    padding: 21px;
  }
  .dialog-body {
    padding: 21px;
  }
  .dialog-footer {
    padding: 17px 21px;
  }
  .dialog-heading h2 {
    font-size: 17px;
  }
  .form-grid.three {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid.three label:first-child {
    grid-column: span 2;
  }
  .form-note {
    display: block;
  }
  .form-note .icon {
    margin-right: 5px;
  }
  .form-grid {
    gap: 0 12px;
  }
  .dialog-footer .button {
    font-size: 11px;
  }
  .history-summary {
    gap: 18px;
  }
  .history-summary strong {
    font-size: 18px;
  }
  .login-page {
    padding: 20px;
  }
  .login-card {
    padding: 32px 27px;
  }
  .login-card h1 {
    font-size: 28px;
  }
  .toast {
    bottom: 89px;
  }
  .table-bottom {
    font-size: 9px;
    padding: 13px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.mobile-only {
  display: none;
}
.previews {
  margin-top: 24px;
}
.brand small {
  white-space: nowrap;
  font-size: 7px;
  letter-spacing: 0.85px;
}
.overview-columns > * {
  min-width: 0;
}
@media (max-width: 650px) {
  .mobile-only {
    display: inline-grid;
  }
  .topbar-right {
    gap: 10px;
  }
  .product-table,
  .product-table tbody {
    display: block;
    white-space: normal;
  }
  .product-table thead {
    display: none;
  }
  .product-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
  }
  .product-table tr:last-child {
    border-bottom: 0;
  }
  .product-table td {
    display: block;
    padding: 0;
    border: 0;
    min-width: 0;
  }
  .product-table td:first-child {
    grid-column: span 2;
  }
  .product-table td:nth-child(2) {
    align-self: center;
  }
  .product-table td:nth-child(3) {
    text-align: right;
  }
  .product-table td:nth-child(4) {
    align-self: center;
    font-size: 10px;
  }
  .product-table td:nth-child(4)::before {
    content: "Alerte : ";
    color: #a0a7b1;
  }
  .product-table td:nth-child(5) {
    text-align: right;
    align-self: center;
  }
  .product-table td:nth-child(6) {
    grid-column: span 2;
    border-top: 1px solid #f0f2f5;
    padding-top: 9px;
  }
  .product-table .row-actions {
    justify-content: flex-end;
    gap: 12px;
  }
  .product-table .icon-button {
    width: 36px;
    height: 32px;
  }
  .product-cell {
    max-width: 100%;
    min-width: 0;
  }
  .product-text {
    max-width: 100%;
  }
  .product-text strong,
  .product-text small {
    max-width: 100%;
  }
  .product-table .price {
    font-size: 15px;
  }
  .product-table .product-text strong {
    font-size: 12px;
  }
  .product-thumb {
    width: 40px;
    height: 40px;
  }
}
