@font-face {
  font-family: "Vazirmatn";
  src: url("./assets/fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #17233a;
  --muted: #6d7890;
  --line: #dbe4ef;
  --soft: #f4f7fb;
  --purple: #7137e8;
  --purple-soft: #f0eaff;
  --green: #078b67;
  --green-soft: #e7f8f2;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 50% -15%, #fff 0, #f6f8fc 34%, #f2f5f9 76%); color: var(--ink); font-weight: 400; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; font-weight: 500; }
strong, b { font-weight: 620; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.012em; }
.voice-test-page { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 56px; }
.gts-site-header { margin-bottom: 22px; overflow: hidden; border: 1px solid #d8e1ec; border-radius: 18px; background: #fff; box-shadow: 0 10px 26px rgba(27, 47, 80, .06); }
.gts-header-main { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 18px; }
.gts-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 250px; }
.gts-brand img { width: 116px; height: 52px; object-fit: contain; }
.gts-brand span { display: grid; gap: 3px; }
.gts-brand strong { font-size: .96rem; font-weight: 680; }
.gts-brand small { color: var(--muted); font-size: .72rem; }
.gts-user-menu { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 7px; }
.gts-user-label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: .76rem; font-weight: 560; white-space: nowrap; }
.gts-user-label::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.gts-user-action, .gts-nav a, .gts-return-link { border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; color: var(--ink); background: #fff; text-decoration: none; font-size: .74rem; white-space: nowrap; }
.gts-user-action { border-color: #d8c9ff; color: var(--purple); background: var(--purple-soft); font-weight: 620; }
.gts-user-action:hover, .gts-nav a:hover, .gts-return-link:hover { border-color: var(--purple); color: var(--purple); }
.gts-nav-shell { display: flex; align-items: center; gap: 10px; border-top: 1px solid #edf1f6; padding: 8px 12px; }
.gts-nav { display: flex; align-items: center; gap: 6px; min-width: 0; overflow-x: auto; flex: 1; scrollbar-width: thin; }
.gts-nav a { border: 0; background: #f7f9fc; }
.gts-nav a.is-current { color: var(--green); background: var(--green-soft); font-weight: 620; }
.workspace-switcher { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 18px; }
.voice-test-header, .step-strip { display: none !important; }
.workspace-card { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px 14px; border: 1px solid rgba(166, 137, 255, .38); border-radius: 16px; color: var(--ink); text-decoration: none; background: linear-gradient(135deg, rgba(255,255,255,.72), rgba(239,234,255,.58)); box-shadow: 0 8px 22px rgba(51, 39, 100, .07); backdrop-filter: blur(14px); transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.workspace-card:hover { transform: translateY(-2px); border-color: var(--purple); box-shadow: 0 12px 28px rgba(91, 55, 220, .14); }
.workspace-card.is-active { border-color: var(--purple); background: linear-gradient(135deg, rgba(239,232,255,.92), rgba(255,255,255,.78)); box-shadow: 0 10px 26px rgba(91, 55, 220, .16); }
.workspace-card-number { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; color: var(--purple); background: rgba(255,255,255,.74); font-weight: 700; }
.workspace-card.is-active .workspace-card-number { color: #fff; background: var(--purple); }
.workspace-card span:last-child { display: grid; gap: 2px; }
.workspace-card small, .workspace-card em { color: var(--muted); font-size: .72rem; font-style: normal; }
.workspace-card strong { font-size: .92rem; }
.gts-return-link { flex: 0 0 auto; border-color: #bcebdd; color: var(--green); background: var(--green-soft); font-weight: 620; }
.voice-test-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin-bottom: 22px; }
.voice-test-header > div { text-align: center; }
.voice-test-header h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.4rem, 2.4vw, 2.1rem); }
h2 { margin-bottom: 8px; font-size: clamp(1.2rem, 2vw, 1.65rem); }
.eyebrow { display: block; color: var(--purple); font-size: .78rem; font-weight: 620; margin-bottom: 6px; }
.back-link, .standalone-badge { display: inline-flex; justify-self: start; border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px; color: var(--ink); background: #fff; text-decoration: none; font-size: .85rem; }
.standalone-badge { justify-self: end; color: var(--green); border-color: #bcebdd; background: var(--green-soft); }
.step-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.step-box { min-height: 54px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; position: relative; }
.step-box.is-active { border-color: #8c6cf0; background: var(--purple-soft); }
.step-box span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #e9eef5; color: var(--muted); font-size: .78rem; font-weight: 650; }
.step-box.is-active span { background: var(--purple); color: #fff; }
.step-box small, .step-box strong { display: block; margin-top: 3px; }
.step-box small { color: var(--muted); font-size: .66rem; }
.step-box strong { font-size: .76rem; }
.voice-card, .classification-card, .invoice-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 12px 32px rgba(27, 47, 80, .06); }
.voice-card { display: grid; grid-template-columns: 1fr 130px; gap: 16px; align-items: center; padding: 16px; margin-bottom: 18px; }
.guide-popover { position: fixed; z-index: 20; left: 24px; bottom: 24px; width: min(330px, calc(100vw - 48px)); border-color: #bcebdd; box-shadow: 0 18px 42px rgba(19, 33, 61, .18); }
.voice-intro p { color: var(--muted); line-height: 1.9; margin-bottom: 8px; }
.voice-transcript { color: var(--purple) !important; min-height: 27px; font-size: .9rem; font-weight: 520; }
.mic-area { display: grid; justify-items: center; gap: 9px; }
.mic-button { width: 116px; min-height: 94px; border: 2px solid #a5e5d1; border-radius: 20px; background: linear-gradient(145deg, #f4fffb, #e2f8f1); color: var(--green); display: grid; place-items: center; padding: 10px; box-shadow: 0 12px 25px rgba(7, 139, 103, .12); }
.mic-button.is-listening { border-color: #f0a7b2; background: #fff2f4; color: #bd334c; animation: pulse 1.4s infinite; }
.mic-icon { font-size: 2rem; line-height: 1; }
.mic-button strong { font-size: .75rem; }
.mic-area small { color: var(--muted); text-align: center; line-height: 1.7; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(189, 51, 76, .08); } }
.classification-card, .invoice-card { padding: 26px; margin-bottom: 18px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 17px; }
.classification-heading { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(390px, 600px) minmax(210px, 1fr); align-items: center; gap: 20px; direction: ltr; }
.classification-copy { grid-column: 3; direction: rtl; text-align: right; }
.classification-copy h2 { font-size: clamp(1.05rem, 1.7vw, 1.5rem); line-height: 1.55; }
.classification-left-tools { grid-column: 1; grid-row: 1; display: flex; align-items: center; justify-content: flex-start; gap: 10px; direction: ltr; }
.quick-product-search { grid-column: 2; grid-row: 1; justify-self: stretch; display: flex; align-items: stretch; width: 100%; min-height: 64px; border: 2px solid #cab8ff; border-radius: 19px; overflow: hidden; background: #fff; box-shadow: 0 18px 42px rgba(90, 44, 196, .2), 0 0 0 6px rgba(113, 55, 232, .05); direction: rtl; position: relative; z-index: 2; }
.quick-product-search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 20px; color: var(--ink); background: transparent; font: inherit; font-size: 1.08rem; font-weight: 560; }
.quick-product-search:focus-within { border-color: var(--purple); box-shadow: 0 0 0 6px rgba(113, 55, 232, .14), 0 18px 46px rgba(90, 44, 196, .22); transform: translateY(-1px); }
.quick-product-search button { width: 44px; border: 0; border-left: 1px solid #e5dcff; background: var(--purple-soft); color: var(--purple); font-size: 1.25rem; cursor: pointer; }
.classification-tools { display: flex; align-items: center; justify-content: flex-start; gap: 8px; flex-wrap: wrap; direction: rtl; }
.mic-inline-button, .help-button { border: 1px solid #a5e5d1; border-radius: 18px; padding: 8px 12px; background: var(--green-soft); color: var(--green); display: inline-flex; align-items: center; gap: 7px; }
.mic-inline-button { min-width: 132px; min-height: 116px; flex-direction: column; justify-content: center; }
.mic-circle { display: grid; place-items: center; width: 68px; height: 68px; border: 2px solid #79d9be; border-radius: 50%; background: #effff9; box-shadow: 0 0 0 8px rgba(121, 217, 190, .18); }
.mic-inline-button strong { font-size: .8rem; }
.mic-inline-button .mic-icon { font-size: 1.15rem; }
.mic-inline-button .mic-circle .mic-icon { font-size: 2rem; }
.mic-inline-button.is-listening { border-color: #f0a7b2; background: #fff2f4; color: #bd334c; }
.mic-inline-button.is-listening .mic-circle { border-color: #e9798d; background: #fff5f6; box-shadow: 0 0 0 9px rgba(233, 121, 141, .16); }
.mic-inline-button.is-floating { position: fixed; left: 22px; bottom: 22px; z-index: 40; width: 78px; min-width: 78px; min-height: 78px; padding: 8px; border-color: rgba(121, 217, 190, .8); background: rgba(239, 255, 249, .62); box-shadow: 0 12px 28px rgba(19, 33, 61, .18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.mic-inline-button.is-floating .mic-circle { width: 58px; height: 58px; }
.mic-inline-button.is-floating #micLabel { display: none; }
.mic-inline-button.is-floating.is-listening { border-color: rgba(233, 121, 141, .9); background: rgba(255, 242, 244, .68); }
.help-button { border-color: #d8c9ff; background: var(--purple-soft); color: var(--purple); font-weight: 620; }
.voice-help-popover { display: flex; justify-content: flex-start; margin: 15px 0 0; border: 1px solid #d8c9ff; border-radius: 14px; background: #fbf9ff; padding: 14px 16px; box-shadow: 0 8px 20px rgba(113, 55, 232, .08); }
.voice-help-popover[hidden] { display: none !important; }
.voice-help-popover strong, .voice-help-popover p, .voice-help-popover small { display: block; line-height: 1.8; }
.voice-help-popover p { color: var(--muted); margin: 5px 0; }
.voice-help-popover small { color: var(--green); }
.voice-live-feedback { display: flex; align-items: center; gap: 10px; min-height: 38px; margin: 10px 0 0; padding: 8px 12px; border: 1px solid #d9e4ee; border-radius: 11px; background: #f8fbfd; color: var(--ink); }
.voice-live-feedback strong { font-size: .82rem; font-weight: 580; }
.voice-live-feedback small { color: var(--muted); }
.voice-live-feedback small.is-error { color: #bd334c; }
.quick-search-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.catalog-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding: 14px 16px; border: 1px solid #d8c9ff; border-radius: 15px; background: linear-gradient(135deg, rgba(113, 55, 232, .09), rgba(41, 191, 149, .07)); box-shadow: 0 10px 28px rgba(55, 31, 105, .08); }
.catalog-summary strong { font-size: 1rem; font-weight: 720; }
.catalog-summary span { color: var(--muted); font-size: .8rem; }
.catalog-breadcrumb { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 9px 12px; border-radius: 12px; background: #f8f6ff; color: var(--muted); }
.catalog-breadcrumb span { font-weight: 650; color: var(--ink); }
.required-attributes-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid #f0d38b; border-radius: 10px; background: #fffaf0; color: #76540b; }
.required-attributes-note span { font-size: .8rem; }
.attribute-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.attribute-heading em { color: #bd334c; font-size: .72rem; font-style: normal; font-weight: 620; }
.flow-hint { color: var(--muted); margin: 16px 0; font-size: .78rem; }
.selection-queue { position: relative; z-index: 3; border: 2px solid #a985ff; border-radius: 20px; background: linear-gradient(135deg, #fff, #f6f0ff); padding: 20px; margin: 16px 0 22px; box-shadow: 0 22px 52px rgba(67, 38, 145, .23), 0 0 0 6px rgba(113, 55, 232, .07); }
.selection-queue-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.selection-queue-heading .eyebrow { margin-bottom: 2px; }
.selection-queue-heading strong { display: block; }
.selection-queue-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.selection-queue-actions a { text-decoration: none; }
.selection-queue-actions a[hidden] { display: none !important; }
.queue-voice-hint { display: block; color: var(--muted); font-size: .72rem; margin-top: 4px; }
.invoice-voice-hint { margin: 14px 0 0; color: var(--muted); font-size: .82rem; }
.send-selected-button { border: 0; border-radius: 10px; background: var(--purple); color: #fff; padding: 10px 13px; font-weight: 650; }
.selection-queue-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.selection-queue-item { display: flex; align-items: flex-start; gap: 8px; flex: 1 1 320px; min-width: 220px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 7px; }
.queue-product-image { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; border-radius: 7px; background: #f5f7fb; overflow: hidden; color: #aab5c5; }
.queue-product-image img { width: 100%; height: 100%; object-fit: contain; }
.selection-queue-item > div:nth-child(2) { min-width: 0; flex: 1 1 auto; }
.selection-queue-item strong { display: block; max-width: none; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; line-height: 1.65; }
.selection-queue-item small { display: block; max-width: none; overflow: visible; text-overflow: clip; white-space: normal; line-height: 1.6; }
.selection-queue-item small { color: var(--muted); font-size: .7rem; margin-top: 2px; }
.queue-product-copy { min-width: 0; flex: 1 1 auto; }
.queue-quantity-control { display: grid; gap: 3px; min-width: 76px; color: var(--muted); font-size: .68rem; }
.queue-quantity-control input { width: 76px; min-height: 36px; border: 1px solid #cbbaff; border-radius: 9px; background: #fbf9ff; color: var(--ink); padding: 5px 8px; font: inherit; font-size: .9rem; font-weight: 650; text-align: center; }
.queue-quantity-control input:focus { outline: 0; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(113, 55, 232, .12); }
.queue-remove-button { margin-right: auto; border: 0; background: #fff0f2; color: #bd334c; border-radius: 7px; padding: 6px 9px; font-size: .72rem; font-weight: 620; }
.text-button, .primary-button { border: 0; border-radius: 11px; padding: 10px 16px; color: var(--purple); background: var(--purple-soft); font-weight: 620; }
.primary-button { background: var(--purple); color: white; }
.classification-panel { min-height: 150px; }
.loading-state, .empty-invoice { padding: 42px 15px; text-align: center; color: var(--muted); }
.category-grid, .product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.category-box, .product-box { text-align: right; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); min-height: 118px; transition: .18s ease; position: relative; }
.category-box { padding: 18px; }
.category-box::after { content: "←"; position: absolute; left: 16px; bottom: 14px; color: var(--purple); opacity: .48; font-size: 1.05rem; transition: transform .18s ease, opacity .18s ease; }
.category-box:hover::after { transform: translateX(-3px); opacity: 1; }
.product-box { display: grid; grid-template-columns: 128px minmax(0, 1fr); min-height: 168px; padding: 0; overflow: hidden; direction: rtl; }
.category-box:hover, .product-box:hover, .term-button:hover { border-color: var(--purple); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(113, 55, 232, .1); }
.category-box strong, .product-select-action strong, .category-box small, .product-select-action small, .product-select-action em { display: block; }
.category-box strong { margin: 10px 0 8px; font-weight: 590; }
.category-box small, .product-select-action small, .product-select-action em { color: var(--muted); font-size: .76rem; line-height: 1.7; font-style: normal; }
.product-image-action { position: relative; display: grid; place-items: center; min-width: 0; min-height: 168px; padding: 10px; border: 0; border-left: 1px solid var(--line); background: #f7f9fc; cursor: zoom-in; overflow: hidden; }
.product-image, .product-image-placeholder { display: block; width: 100%; height: 122px; object-fit: contain; border-radius: 10px; background: #fff; }
.product-image-action-label { position: absolute; right: 8px; bottom: 8px; left: 8px; padding: 5px 7px; border-radius: 8px; color: #fff; background: rgba(24, 20, 48, .72); text-align: center; font-size: .68rem; font-weight: 600; opacity: .88; }
.product-image-action:hover .product-image-action-label, .product-image-action:focus-visible .product-image-action-label { background: var(--purple); opacity: 1; }
.product-image-action.is-empty { cursor: default; color: var(--muted); }
.product-select-action { display: flex; flex-direction: column; align-items: stretch; min-width: 0; padding: 14px 15px; border: 0; background: #fff; color: var(--ink); text-align: right; cursor: pointer; }
.product-select-action:hover, .product-select-action:focus-visible { background: linear-gradient(135deg, #fff, var(--purple-soft)); outline: 0; }
.product-select-action strong { margin: 9px 0 6px; line-height: 1.7; overflow-wrap: anywhere; font-weight: 560; }
.product-number { align-self: flex-start; display: inline-flex; align-items: center; min-height: 25px; padding: 3px 8px; border-radius: 8px; background: var(--purple-soft); color: var(--purple); font-size: .72rem; font-weight: 580; }
.product-select-label { display: inline-flex; align-items: center; justify-content: center; margin-top: auto; padding: 7px 9px; border-radius: 9px; background: var(--purple-soft); color: var(--purple); font-size: .74rem; font-weight: 580; }
.product-image-placeholder { display: grid; place-items: center; color: #aab5c5; font-size: .75rem; }
.product-box.image-missing .product-image-placeholder { display: grid; }
.invoice-product-cell { display: flex; align-items: center; gap: 10px; min-width: 230px; }
.invoice-product-image { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: #f7f9fc; }
.confirm-product-visual img, .invoice-product-image { cursor: zoom-in; }
.image-zoom-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 34px; background: rgba(10, 18, 35, .78); }
.image-zoom-modal[hidden] { display: none; }
.image-zoom-modal img { max-width: min(900px, 90vw); max-height: 78vh; object-fit: contain; border-radius: 16px; background: #fff; padding: 12px; box-shadow: 0 24px 70px rgba(0, 0, 0, .28); }
.image-zoom-modal p { position: absolute; bottom: 24px; max-width: 80vw; color: #fff; text-align: center; font-weight: 600; }
.image-zoom-close { position: absolute; top: 22px; right: 26px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 1.7rem; line-height: 1; }
.image-zoom-open { overflow: hidden; }
.category-count { float: left; background: var(--green-soft); color: var(--green); border-radius: 8px; padding: 4px 7px; font-size: .72rem; }
.category-code { float: right; background: var(--purple-soft); color: var(--purple); border-radius: 8px; padding: 4px 7px; font-size: .72rem; font-weight: 620; }
.subhead { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.subhead strong { font-size: 1rem; }
.attribute-grid { display: grid; gap: 13px; }
.attribute-box { border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.attribute-box > span { display: block; color: var(--muted); font-size: .8rem; margin-bottom: 10px; }
.term-list { display: flex; flex-wrap: wrap; gap: 8px; }
.term-button { border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--soft); padding: 8px 11px; font-size: .82rem; }
.term-button.is-selected { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.confirm-box { border: 2px solid #8bdcc3; background: linear-gradient(135deg, #f4fffb, var(--green-soft)); border-radius: 18px; padding: 20px; }
.confirm-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.confirm-heading strong { font-size: 1.05rem; }
.confirm-step { color: var(--green); background: #d4f4e9; border-radius: 8px; padding: 6px 9px; font-size: .75rem; font-weight: 620; white-space: nowrap; }
.confirm-product { display: flex; align-items: center; gap: 14px; border: 1px solid #bcebdd; border-radius: 13px; background: #fff; padding: 11px; }
.confirm-product-visual { display: grid; place-items: center; width: 76px; height: 76px; flex: 0 0 76px; overflow: hidden; border-radius: 10px; background: #f5faf8; color: #9ab8ad; font-size: .72rem; }
.confirm-product-visual img { width: 100%; height: 100%; object-fit: contain; }
.confirm-product strong, .confirm-product small { display: block; margin-bottom: 7px; }
.confirm-product small { color: var(--muted); line-height: 1.8; }
.confirm-explanation { color: #416d60; line-height: 1.9; margin: 14px 0 8px; font-size: .86rem; }
.confirm-action { display: inline-flex; align-items: center; gap: 7px; margin-top: 2px; padding: 12px 18px; font-size: .92rem; }
.invoice-workspace-header { display: grid; grid-template-columns: 1fr minmax(260px, 420px); align-items: center; gap: 22px; margin-bottom: 18px; padding: 20px 24px; border: 1px solid #d8c9ff; border-radius: 20px; background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(240,234,255,.72)); box-shadow: 0 12px 32px rgba(27, 47, 80, .07); }
.invoice-workspace-header[hidden] { display: none !important; }
.invoice-mode .invoice-status { display: none !important; }
.invoice-workspace-copy p { color: var(--muted); line-height: 1.9; margin-bottom: 14px; }
.workspace-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.workspace-actions a { text-decoration: none; }
.invoice-voice-mount { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; direction: ltr; }
.invoice-voice-mount .mic-inline-button { min-width: 108px; min-height: 104px; direction: rtl; }
.invoice-voice-mount .voice-live-feedback { margin: 0; direction: rtl; flex-direction: column; align-items: flex-start; }
.invoice-mode .classification-card, .invoice-mode .step-strip { display: none !important; }
.invoice-mode .invoice-card { display: block; }
.invoice-list-mode .classification-card, .invoice-list-mode .step-strip, .invoice-list-mode .invoice-card { display: none !important; }
.invoice-list-workspace { position: relative; overflow: hidden; border: 1px solid rgba(207, 188, 157, .72); border-radius: 26px; background: radial-gradient(circle at 92% 6%, rgba(238, 216, 176, .34), transparent 27%), linear-gradient(145deg, rgba(255,255,255,.94), rgba(248,244,237,.86)); padding: 28px; box-shadow: 0 24px 70px rgba(74, 52, 31, .12); backdrop-filter: blur(22px); }
.invoice-list-workspace::before { content: ""; position: absolute; width: 330px; height: 330px; left: -180px; bottom: -210px; border: 1px solid rgba(166, 117, 62, .19); border-radius: 50%; box-shadow: 0 0 0 34px rgba(166,117,62,.04), 0 0 0 70px rgba(166,117,62,.025); pointer-events: none; }
.invoice-list-workspace[hidden] { display: none !important; }
.invoice-list-workspace .section-heading p { color: var(--muted); line-height: 1.8; margin-top: 8px; }
.invoice-list-heading { position: relative; z-index: 1; }
.invoice-list-workspace .primary-button, .follow-up-card .primary-button { border-color: #9c622c; background: linear-gradient(135deg, #bd823d, #7a421d); box-shadow: 0 8px 20px rgba(112,66,27,.18); }
.invoice-list-workspace .text-button:hover, .follow-up-card .text-button:hover { border-color: rgba(164,112,57,.46); color: #7b471d; background: #fff7ec; }
.invoice-list-toolbar { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(180px, .42fr) minmax(280px, 1fr) auto; align-items: end; gap: 12px; margin: 22px 0 14px; padding: 16px; border: 1px solid rgba(255,255,255,.82); border-radius: 18px; background: linear-gradient(135deg, rgba(255,255,255,.76), rgba(239,229,215,.5)); box-shadow: inset 0 1px 0 #fff, 0 12px 30px rgba(87,61,35,.07); backdrop-filter: blur(15px); }
.invoice-filter-field span { color: #6e5743; font-weight: 620; }
.invoice-filter-field input { height: 46px; border-color: rgba(172,133,87,.35); background: rgba(255,255,255,.83); box-shadow: inset 0 1px 0 #fff; }
.invoice-filter-field input:focus { outline: 3px solid rgba(184,132,67,.14); border-color: #b88443; }
.invoice-filter-reset { min-height: 46px; }
.invoice-status-filters { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 18px; padding: 13px 15px 15px; border: 1px solid rgba(194,169,136,.45); border-radius: 16px; background: rgba(255,255,255,.5); }
.invoice-status-filters legend { padding: 0 8px; color: #806348; font-size: .76rem; font-weight: 650; }
.invoice-status-filters label { position: relative; cursor: pointer; }
.invoice-status-filters input { position: absolute; opacity: 0; pointer-events: none; }
.invoice-status-filters span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid rgba(191,166,134,.48); border-radius: 999px; background: rgba(255,255,255,.62); color: #725b47; font-size: .75rem; transition: .18s ease; }
.invoice-status-filters span::before { content: ""; width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; }
.invoice-status-filters input:checked + span { border-color: rgba(146,91,37,.54); background: linear-gradient(135deg, #f9ead2, #fff9ee); color: #78471d; box-shadow: 0 5px 14px rgba(119,75,34,.09); }
.invoice-status-filters input:checked + span::before { background: #b77a31; box-shadow: inset 0 0 0 2px #fff; }
.invoice-status-summary { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 23px; }
.sales-summary-card { position: relative; overflow: hidden; min-height: 112px; padding: 17px; border: 1px solid rgba(255,255,255,.9); border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(234,222,205,.56)); box-shadow: inset 0 1px 0 #fff, 0 13px 30px rgba(68,46,26,.09); backdrop-filter: blur(14px); }
.sales-summary-card::after { content: ""; position: absolute; width: 80px; height: 80px; left: -30px; bottom: -35px; border-radius: 50%; background: var(--summary-glow, rgba(178,124,57,.16)); filter: blur(2px); }
.sales-summary-card span, .sales-summary-card strong, .sales-summary-card small { position: relative; z-index: 1; display: block; }
.sales-summary-card span { color: #796651; font-size: .76rem; }
.sales-summary-card strong { margin: 6px 0 3px; color: #3d281a; font-size: 1.55rem; }
.sales-summary-card small { color: var(--muted); }
.sales-summary-card.is-won { --summary-glow: rgba(22,160,120,.22); }
.sales-summary-card.is-following { --summary-glow: rgba(100,75,214,.2); }
.sales-summary-card.is-postponed { --summary-glow: rgba(218,146,41,.24); }
.invoice-quarter-heading, .invoice-results-heading { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.invoice-quarter-heading h3 { margin: 3px 0 0; font-size: 1.06rem; }
.invoice-quarter-heading small, .invoice-results-heading span { color: var(--muted); }
.invoice-quarter-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 11px; margin: 12px 0 23px; }
.quarter-card { position: relative; min-height: 106px; padding: 15px; text-align: right; border: 1px solid rgba(191,163,127,.43); border-radius: 17px; background: rgba(255,255,255,.65); color: #573b25; box-shadow: 0 9px 24px rgba(81,53,30,.06); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.quarter-card:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(81,53,30,.1); }
.quarter-card.is-active { border-color: #ae7131; background: linear-gradient(140deg, rgba(255,252,246,.95), rgba(229,202,165,.7)); box-shadow: inset 0 1px 0 #fff, 0 14px 32px rgba(116,72,31,.14); }
.quarter-card span, .quarter-card strong, .quarter-card small { display: block; }
.quarter-card span { color: #9b6a35; font-size: .72rem; }
.quarter-card strong { margin: 5px 0; font-size: 1rem; }
.quarter-card small { color: var(--muted); }
.invoice-results-heading { margin-bottom: 11px; padding-bottom: 10px; border-bottom: 1px solid rgba(191,163,127,.3); }
.invoice-results-heading div { display: flex; align-items: center; gap: 10px; }
.invoice-results-heading strong { padding: 4px 8px; border-radius: 999px; background: #f1e3d0; color: #70481f; font-size: .7rem; }
.invoice-record-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; min-height: 210px; }
.invoice-record-card { position: relative; overflow: hidden; display: grid; gap: 14px; padding: 18px; border: 1px solid rgba(202,178,146,.47); border-radius: 20px; background: linear-gradient(145deg, rgba(255,255,255,.91), rgba(247,241,233,.77)); box-shadow: inset 0 1px 0 #fff, 0 14px 34px rgba(60,42,25,.08); backdrop-filter: blur(13px); }
.invoice-record-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--sales-color, #b78143); opacity: .72; }
.invoice-record-card.is-new { --sales-color: #ad7b42; }
.invoice-record-card.is-contacted { --sales-color: #3e86bb; }
.invoice-record-card.is-following { --sales-color: #7658d4; }
.invoice-record-card.is-postponed { --sales-color: #d0912d; }
.invoice-record-card.is-negotiating { --sales-color: #247e86; }
.invoice-record-card.is-won { --sales-color: #11966f; }
.invoice-record-card.is-lost { --sales-color: #b55757; }
.invoice-record-top, .invoice-record-meta, .invoice-record-actions, .invoice-sales-control { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.invoice-record-number span, .invoice-record-number strong, .invoice-customer strong, .invoice-customer small { display: block; }
.invoice-record-number span { color: var(--muted); font-size: .7rem; }
.invoice-record-number strong { margin-top: 2px; color: #4c311f; }
.invoice-customer { min-width: 0; }
.invoice-customer strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invoice-customer small { color: var(--muted); margin-top: 3px; }
.invoice-record-meta { justify-content: flex-start; flex-wrap: wrap; color: #6f604f; font-size: .73rem; }
.invoice-record-meta span { padding: 5px 8px; border-radius: 8px; background: rgba(238,229,217,.65); }
.record-status { display: inline-flex; align-items: center; border-radius: 999px; padding: 7px 10px; font-size: .76rem; font-weight: 620; white-space: nowrap; }
.record-status.is-draft { color: #8a5c00; background: #fff4d6; }
.record-status.is-sent { color: var(--green); background: var(--green-soft); }
.record-status.is-editing { color: var(--purple); background: var(--purple-soft); }
.invoice-sales-control { align-items: end; padding: 11px; border: 1px solid rgba(195,170,137,.34); border-radius: 13px; background: rgba(255,255,255,.55); }
.invoice-sales-control label { flex: 1; }
.invoice-sales-control select, .follow-up-fields select { width: 100%; min-height: 40px; border: 1px solid rgba(174,139,97,.4); border-radius: 10px; padding: 7px 10px; color: #493421; background: rgba(255,255,255,.9); }
.invoice-followup-count { flex: 0 0 auto; color: #7b624b; font-size: .7rem; }
.record-actions, .invoice-record-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-start; }
.invoice-record-actions button { min-height: 38px; }
.record-customer strong, .record-customer small { display: block; }
.record-customer small { color: var(--muted); margin-top: 5px; text-align: right; }
.invoice-list-empty { grid-column: 1 / -1; display: grid; place-items: center; min-height: 190px; border: 1px dashed rgba(174,139,97,.44); border-radius: 18px; background: rgba(255,255,255,.48); }
.invoice-pagination { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 20px; }
.invoice-pagination[hidden] { display: none !important; }
.invoice-pagination > div { display: flex; gap: 6px; }
.invoice-page-button { width: 38px; height: 38px; border: 1px solid rgba(183,148,105,.45); border-radius: 10px; background: rgba(255,255,255,.74); color: #63472e; }
.invoice-page-button.is-active { border-color: #9e6228; color: #fff; background: linear-gradient(135deg,#bd833f,#7f461d); box-shadow: 0 7px 18px rgba(114,68,27,.2); }
.invoice-row-number { width: 52px; color: var(--purple); font-weight: 650; text-align: center; }
.invoice-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px 0; }
label span { display: block; color: var(--muted); font-size: .78rem; margin-bottom: 7px; }
input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fff; color: var(--ink); }
.invoice-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 850px; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 9px; text-align: right; vertical-align: middle; font-size: .82rem; }
th { color: var(--muted); background: var(--soft); }
td input { width: 110px; }
.remove-button { border: 0; background: #fff0f2; color: #bd334c; border-radius: 8px; padding: 6px 10px; }
.invoice-status { color: var(--purple); background: var(--purple-soft); padding: 8px 12px; border-radius: 10px; font-size: .8rem; }
.invoice-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; }
.invoice-footer span { color: var(--muted); display: block; font-size: .8rem; }
.invoice-footer strong { display: block; margin-top: 5px; font-size: 1.2rem; }
.invoice-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sms-share-modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; background: rgba(10, 18, 35, .64); }
.sms-share-modal[hidden] { display: none; }
.sms-share-card { position: relative; width: min(620px, 100%); border: 1px solid #d8c9ff; border-radius: 18px; background: #fff; padding: 26px; box-shadow: 0 24px 70px rgba(10, 18, 35, .25); }
.sms-share-card p { color: var(--muted); line-height: 1.8; }
.sms-share-card textarea { width: 100%; min-height: 170px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; padding: 13px; color: var(--ink); background: var(--soft); line-height: 1.9; }
.sms-share-actions { display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin-top: 12px; }
.sms-share-actions a { text-decoration: none; }
.follow-up-modal { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 20px; background: rgba(39, 26, 17, .68); backdrop-filter: blur(9px); }
.follow-up-modal[hidden] { display: none; }
.follow-up-card { position: relative; width: min(900px,100%); max-height: min(92vh,900px); overflow: auto; padding: 29px; border: 1px solid rgba(255,255,255,.74); border-radius: 25px; background: radial-gradient(circle at 90% 0, rgba(227,194,151,.3), transparent 30%), linear-gradient(145deg, rgba(255,255,255,.98), rgba(245,237,227,.96)); box-shadow: 0 30px 90px rgba(25,16,10,.36); }
.follow-up-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-left: 52px; }
.follow-up-header h2 { margin: 5px 0 3px; }
.follow-up-header p { margin: 0; color: var(--muted); }
.follow-up-count { padding: 7px 11px; border: 1px solid rgba(174,132,80,.35); border-radius: 999px; color: #75491f; background: rgba(248,229,202,.72); white-space: nowrap; font-size: .76rem; }
.follow-up-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 22px; }
.follow-up-fields input, .follow-up-summary-field textarea { width: 100%; border: 1px solid rgba(174,139,97,.4); border-radius: 11px; background: rgba(255,255,255,.86); color: var(--ink); }
.follow-up-summary-field { display: block; margin-top: 15px; }
.follow-up-summary-field textarea { min-height: 112px; resize: vertical; padding: 12px; line-height: 1.9; }
.jalali-date-control { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.calendar-toggle { border: 1px solid rgba(174,139,97,.4); border-radius: 10px; padding: 7px 10px; color: #744a23; background: #f8ead7; font-size: .72rem; }
.jalali-calendar { width: min(420px,100%); margin: 12px 0 0 auto; padding: 14px; border: 1px solid rgba(180,143,96,.42); border-radius: 16px; background: rgba(255,255,255,.95); box-shadow: 0 18px 42px rgba(72,43,20,.16); }
.jalali-calendar[hidden] { display: none; }
.jalali-calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.jalali-calendar-head button { width: 34px; height: 34px; border: 0; border-radius: 9px; background: #f5e8d5; color: #75481d; font-size: 1.25rem; }
.jalali-weekdays, .jalali-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; text-align: center; }
.jalali-weekdays { margin-bottom: 5px; color: #9a7959; font-size: .68rem; }
.jalali-day { min-height: 35px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #4f3a29; }
.jalali-day:hover { border-color: #d5b180; background: #fff7ec; }
.jalali-day.is-selected { color: #fff; background: linear-gradient(135deg,#b77b37,#7c451e); }
.jalali-day.is-today:not(.is-selected) { border-color: #b77b37; color: #8b5420; }
.jalali-day.is-empty { pointer-events: none; }
.calendar-today { margin-top: 10px; border: 0; border-radius: 9px; padding: 7px 11px; color: #805021; background: #f7ead8; }
.follow-up-indicators { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 0; padding: 13px; border: 1px solid rgba(188,156,115,.42); border-radius: 15px; background: rgba(255,255,255,.48); }
.follow-up-indicators legend { padding: 0 7px; color: #78593b; font-size: .76rem; font-weight: 650; }
.follow-up-indicators label { position: relative; cursor: pointer; }
.follow-up-indicators input { position: absolute; opacity: 0; pointer-events: none; }
.follow-up-indicators span { display: inline-flex; padding: 8px 11px; border: 1px solid rgba(184,151,109,.42); border-radius: 10px; color: #715a44; background: rgba(255,255,255,.75); font-size: .74rem; }
.follow-up-indicators input:checked + span { border-color: #a5682f; color: #704018; background: linear-gradient(135deg,#ffe9c9,#fff8eb); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.follow-up-indicators input:checked + span::before { content: "✓"; margin-left: 5px; font-weight: 800; }
.follow-up-actions { display: flex; gap: 9px; margin-top: 12px; }
.follow-up-history { margin-top: 25px; padding-top: 20px; border-top: 1px solid rgba(187,156,117,.35); }
.follow-up-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.follow-up-history-heading h3 { margin: 0; }
.follow-up-history-heading small { color: var(--muted); }
.follow-up-history-list { display: grid; gap: 9px; margin-top: 12px; }
.follow-up-history-item { display: grid; grid-template-columns: 125px 1fr; gap: 12px; padding: 13px; border: 1px solid rgba(194,166,131,.34); border-radius: 14px; background: rgba(255,255,255,.62); }
.follow-up-history-date strong, .follow-up-history-date small { display: block; }
.follow-up-history-date small { margin-top: 4px; color: var(--muted); }
.follow-up-history-body p { margin: 5px 0; color: #51463b; line-height: 1.8; }
.follow-up-history-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.follow-up-history-tags span { padding: 4px 7px; border-radius: 7px; color: #754b25; background: #f5e6d2; font-size: .66rem; }
body.follow-up-open { overflow: hidden; }
.invoice-preview-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(10, 18, 35, .64); }
.invoice-preview-modal[hidden] { display: none; }
.invoice-preview-card { position: relative; width: min(1040px, 100%); max-height: min(86vh, 820px); overflow: auto; border: 1px solid #d8c9ff; border-radius: 20px; background: #fff; padding: 28px; box-shadow: 0 24px 70px rgba(10, 18, 35, .25); }
.invoice-preview-card h2 { margin: 8px 0 4px; }
.invoice-preview-meta { color: var(--muted); margin: 0 0 18px; }
.invoice-preview-customer { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: 12px; background: var(--soft); }
.invoice-preview-table-wrap { overflow-x: auto; }
.invoice-preview-table-wrap table { min-width: 760px; }
body.invoice-preview-open { overflow: hidden; }
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { background: #fff; }
  .voice-test-page { width: 100%; padding: 0; }
  .gts-site-header, .voice-test-header, .step-strip, .classification-card, .invoice-workspace-header, .invoice-list-workspace, .invoice-voice-hint, .invoice-actions, .image-zoom-modal, .sms-share-modal, .invoice-preview-modal, .follow-up-modal { display: none !important; }
  .invoice-card { display: block !important; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .invoice-card .section-heading { padding-top: 0; }
  .invoice-product-image { width: 58px; height: 58px; }
  table { min-width: 0; }
  th, td { font-size: 10pt; }
}
@media (max-width: 760px) {
  .quick-product-search { width: 100%; }
  .voice-live-feedback { align-items: flex-start; flex-direction: column; gap: 3px; }
  .voice-test-page { width: min(100% - 20px, 620px); padding-top: 12px; }
  .gts-header-main { align-items: flex-start; flex-direction: column; gap: 12px; }
  .gts-brand { min-width: 0; }
  .gts-user-menu { justify-content: flex-start; }
  .gts-nav-shell { align-items: stretch; flex-direction: column; }
  .gts-return-link { text-align: center; }
  .voice-test-header { grid-template-columns: 1fr 1fr; }
  .workspace-switcher { grid-template-columns: 1fr; gap: 8px; }
  .workspace-card { min-height: 58px; }
  .voice-test-header > div { grid-column: 1 / -1; grid-row: 1; }
  .back-link { grid-column: 1; grid-row: 2; }
  .standalone-badge { grid-column: 2; grid-row: 2; }
  .step-strip, .category-grid, .product-grid { grid-template-columns: 1fr 1fr; }
  .voice-card { grid-template-columns: 1fr; text-align: center; }
  .guide-popover { left: 10px; bottom: 10px; width: min(300px, calc(100vw - 20px)); }
  .voice-intro { order: 2; }
  .mic-area { order: 1; }
  .classification-heading { align-items: flex-start; flex-direction: column; }
  .classification-heading { grid-template-columns: 1fr; width: 100%; justify-items: stretch; gap: 12px; direction: rtl; }
  .catalog-summary, .catalog-breadcrumb { align-items: flex-start; flex-direction: column; }
  .classification-copy, .quick-product-search, .classification-left-tools { grid-column: 1; grid-row: auto; }
  .classification-copy { text-align: right; }
  .quick-product-search { justify-self: center; width: 100%; min-height: 56px; }
  .classification-left-tools { justify-content: space-between; direction: ltr; }
  .classification-tools { justify-content: flex-start; }
  .selection-queue-heading { align-items: flex-start; flex-direction: column; }
  .invoice-workspace-header { grid-template-columns: 1fr; padding: 18px; }
  .invoice-voice-mount { grid-template-columns: 1fr; }
  .invoice-voice-mount .mic-inline-button { justify-self: start; }
  .invoice-fields { grid-template-columns: 1fr; }
  .invoice-footer { align-items: flex-start; flex-direction: column; gap: 14px; }
  .invoice-actions { justify-content: flex-start; }
  .invoice-preview-card { max-height: 92vh; padding: 20px 14px; border-radius: 16px; }
  .invoice-preview-customer { align-items: flex-start; flex-direction: column; }
  .record-actions { align-items: stretch; flex-direction: column; }
  .record-actions button { width: 100%; }
  .invoice-list-toolbar, .follow-up-fields { grid-template-columns: 1fr; }
  .invoice-filter-reset { width: 100%; }
  .invoice-status-summary, .invoice-quarter-grid, .invoice-record-grid { grid-template-columns: 1fr 1fr; }
  .follow-up-card { max-height: 94vh; padding: 23px 15px; border-radius: 18px; }
  .follow-up-header { flex-direction: column; padding-left: 45px; }
  .follow-up-history-item { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .step-strip, .category-grid, .product-grid { grid-template-columns: 1fr; }
  .classification-card, .invoice-card, .voice-card { padding: 18px; border-radius: 16px; }
  .workspace-card { min-height: 54px; padding: 8px 10px; }
  .workspace-card strong { font-size: .82rem; }
  .workspace-card small, .workspace-card em { font-size: .64rem; }
  .selection-queue { padding: 13px; }
  .selection-queue-item { flex-basis: 100%; min-width: 0; }
  .product-box { grid-template-columns: 108px minmax(0, 1fr); min-height: 150px; }
  .product-image-action { min-height: 150px; padding: 8px; }
  .product-image { height: 108px; }
  .product-select-action { padding: 11px 12px; }
  .send-selected-button { width: 100%; }
  th, td { padding: 9px 7px; }
  .invoice-list-workspace { padding: 17px 13px; }
  .invoice-status-summary, .invoice-quarter-grid, .invoice-record-grid { grid-template-columns: 1fr; }
  .invoice-quarter-heading, .invoice-results-heading, .follow-up-history-heading { align-items: flex-start; flex-direction: column; }
  .invoice-record-top, .invoice-sales-control { align-items: flex-start; flex-direction: column; }
  .invoice-sales-control label { width: 100%; }
  .invoice-pagination { flex-wrap: wrap; }
}
