@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  color: #20232a;
  background: #f6f7f9;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --red: #d7193f;
  --dark: #17191f;
  --muted: #818794;
  --line: #e8eaf0;
  --surface: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 360px; min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 246px; flex: 0 0 246px; padding: 26px 15px 16px; background: var(--dark); color: #fff; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px 36px; color: white; text-decoration: none; }
.brand-mark { width: 37px; height: 37px; background: var(--red); display: grid; place-items: center; font: 800 24px Manrope,sans-serif; transform: skew(-7deg); }
.brand strong { display: block; font: 800 17px Manrope,sans-serif; letter-spacing: 1.2px; }
.brand small { color: #9499a5; font-size: 8px; letter-spacing: 1.25px; display: block; margin-top: 3px; }
.side-label { padding: 0 10px 11px; color: #777e8a; letter-spacing: 1.1px; font-size: 9px; font-weight: 700; }
.navigation { display: grid; gap: 5px; }
.nav-item { width: 100%; background: none; border: 0; color: #a7abb4; padding: 11px 10px; text-align: left; border-radius: 6px; display: flex; align-items: center; gap: 12px; font-size: 12px; }
.nav-item.active { color: white; background: #2b2e37; font-weight: 600; }
.nav-icon { width: 19px; font-size: 16px; text-align: center; }
.nav-count { margin-left: auto; font-size: 10px; color: #b6bbc3; }
.sidebar-bottom { margin-top: auto; }
.connection-card { margin: 15px 4px; background: #22252d; border: 1px solid #30333b; border-radius: 7px; padding: 12px 10px; }
.connection-status { display: flex; align-items: center; gap: 9px; }
.connection-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 9px; }
.connection-action { min-height: 27px; padding: 4px; border: 1px solid #3b3e47; border-radius: 4px; background: #2b2e37; color: #d7d9de; text-align: center; text-decoration: none; font-size: 8px; font-weight: 600; cursor: pointer; }
.connection-action:hover { background: #363943; color: white; }
.disconnect-action { color: #f0a2b1; }
.connection-dot,.status-pulse { width: 7px; height: 7px; border-radius: 50%; background: #e8a330; display: inline-block; flex: 0 0 auto; }
.connection-dot.connected { background: #2db883; }
.connection-card strong,.connection-card small,.profile-button strong,.profile-button small { display: block; }
.connection-card strong { font-size: 10px; font-weight: 600; }
.connection-card small { color: #888e9a; margin-top: 3px; font-size: 9px; }
.profile-button { width: 100%; border: 0; border-top: 1px solid #30323a; background: none; color: white; padding: 17px 5px 0; display: flex; align-items: center; gap: 9px; text-align: left; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #363943; display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.profile-button strong { font-size: 10px; }.profile-button small { color: #8c919d; font-size: 9px; margin-top: 3px; }.more { margin-left: auto; color: #999eaa; font-size: 20px; }
.main { min-width: 0; flex: 1; max-width: 1600px; padding: 0 42px 54px; margin: 0 auto; }
.topbar { height: 68px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e8eaf0; }
.breadcrumbs { color: #898e99; font-size: 11px; }.breadcrumbs span { margin: 0 8px; color: #c3c6cd; }.breadcrumbs strong { color: #343840; font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 9px; }.today { color: #858b96; font-size: 10px; margin-right: 10px; }
.button { border: 1px solid transparent; border-radius: 5px; height: 34px; padding: 0 12px; display: inline-flex; gap: 7px; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; white-space: nowrap; }
.button-outline { border-color: #e3e5e9; background: white; color: #4a4e57; }.button-outline:hover { background: #f7f8fa; border-color: #cfd2d9; }
.button-primary { background: var(--red); color: white; }.button-primary:hover { background: #bb1434; }.button-small { height: 30px; padding: 0 10px; }
.button-danger { border-color: #f0ccd3; background: white; color: #b72843; }
.refresh-icon { font-size: 15px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; padding: 29px 0 22px; }
.eyebrow { color: var(--red); font-size: 8px; font-weight: 700; letter-spacing: 1.4px; margin: 0 0 7px; }
h1,h2,h3,p { margin-top: 0; }h1 { margin-bottom: 5px; font: 700 24px Manrope,sans-serif; letter-spacing: -.5px; }.subheading { color: #858a95; font-size: 11px; margin-bottom: 0; }.sync-status { color: #8b909b; font-size: 9px; padding-bottom: 4px; display: flex; align-items: center; gap: 7px; }.status-pulse { width: 6px; height: 6px; background: #2db883; }
.notice { position: relative; border-radius: 6px; display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; margin: 0 0 10px; }
.notice-info { background: #f0f5ff; border: 1px solid #dfe9ff; color: #304773; }.notice-warning { background: #fff9eb; border: 1px solid #f5e9c9; color: #735a25; }
.notice-icon { width: 17px; height: 17px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: #f2e7c9; }
.notice-info .notice-icon { background: #dce8ff; }.notice strong { display: block; font-size: 10px; margin: 1px 0 3px; }.notice p { margin: 0; font-size: 9px; line-height: 1.5; opacity: .8; }.notice-close { position: absolute; right: 11px; top: 7px; background: none; border: 0; color: inherit; font-size: 17px; opacity: .6; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.metric-card { background: white; border: 1px solid var(--line); border-radius: 7px; padding: 13px 15px 12px; display: grid; grid-template-columns: 27px 1fr; align-items: center; column-gap: 8px; }
.metric-icon { width: 25px; height: 25px; border-radius: 6px; grid-row: span 2; display: grid; place-items: center; font-size: 13px; }.icon-inbox { background: #fcebf0; color: var(--red); }.icon-quote { background: #eef0ff; color: #5965c9; }.icon-stock { background: #e7f7f0; color: #249a6d; }.icon-review { background: #fff4e5; color: #ca8125; }
.metric-label { font-size: 9px; color: #777d88; }.metric-card strong { font: 700 19px Manrope,sans-serif; margin-top: 5px; }.metric-card small { grid-column: 2; color: #a0a4ad; font-size: 8px; margin-top: 3px; }
.content-panel { background: white; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; padding: 17px 18px 14px; border-bottom: 1px solid #eff0f3; }
.panel-heading h2 { font: 700 13px Manrope,sans-serif; margin: 0 0 4px; }.panel-heading p { color: #9297a1; font-size: 9px; margin: 0; }.live-pill { border: 1px solid #dcefe7; color: #37946e; background: #f2fbf7; border-radius: 20px; font-size: 8px; padding: 5px 8px; letter-spacing: .5px; }.live-pill i { width: 5px; height: 5px; border-radius: 50%; background: #31ae79; display: inline-block; margin: 0 5px 1px 0; }
.email-row { display: grid; grid-template-columns: 30px minmax(150px,1.1fr) minmax(160px,1.6fr) 120px 105px; gap: 12px; align-items: center; min-height: 63px; padding: 10px 18px; border-bottom: 1px solid #f0f1f4; }.email-row:last-child { border-bottom: 0; }.email-row:hover { background: #fcfcfd; }
.sender-avatar { width: 27px; height: 27px; border-radius: 50%; background: #eef0f4; color: #686e79; font-size: 9px; display: grid; place-items: center; font-weight: 700; }.email-sender strong,.email-subject strong { display: block; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.email-sender small,.email-subject small { display: block; font-size: 8px; color: #969ba5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }.email-subject small { max-width: 390px; }.email-date { font-size: 8px; color: #9399a3; }.email-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }.email-actions .button { height: 27px; font-size: 9px; padding: 0 9px; }.email-delete { border: 0; background: none; color: #a0a5ae; width: 27px; height: 27px; display: grid; place-items: center; padding: 0; border-radius: 5px; cursor: pointer; }.email-delete:hover { background: #fff0f3; color: var(--red); }.empty-state { text-align: center; padding: 44px 20px; color: #858b96; font-size: 10px; }.empty-state strong { display: block; color: #434751; font-size: 12px; margin-bottom: 6px; }.empty-state .button { margin-top: 12px; }
.table-wrap { width: 100%; overflow-x: auto; }table { width: 100%; border-collapse: collapse; text-align: left; }th { background: #fafbfc; color: #8b909a; font-size: 8px; letter-spacing: .55px; font-weight: 600; padding: 11px 13px; border-bottom: 1px solid #eceef2; white-space: nowrap; }td { border-bottom: 1px solid #f0f1f4; padding: 11px 13px; font-size: 9px; color: #51555f; vertical-align: middle; }tbody tr:last-child td { border-bottom: 0; }.quote-id { font-weight: 700; color: #333741; }.quote-customer { font-weight: 600; color: #464a54; }.quote-status { background: #fff4e5; color: #b77c28; font-size: 8px; border-radius: 12px; padding: 4px 7px; }.table-link { border: 0; background: none; color: var(--red); font-size: 9px; font-weight: 600; display: inline-grid; place-items: center; width: 25px; height: 25px; padding: 0; border-radius: 5px; cursor: pointer; }.table-link:hover { background: #f3f4f7; }.action-icon { width: 14px; height: 14px; display: block; }
.upload-button { position: relative; }.upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.stock-summary { display: flex; gap: 20px; padding: 13px 18px; border-bottom: 1px solid #eff0f3; color: #818691; font-size: 9px; }.stock-summary strong { color: #383c45; margin-right: 4px; }.stock-table-wrap { max-height: 56vh; }.stock-footnote { color: #a27430; font-size: 9px; margin: 0; padding: 12px 18px; background: #fffaf0; border-top: 1px solid #f5ecd9; }.warehouse-cell { color: #8e939d; font-size: 8px; max-width: 270px; }
.price-origin { display: block; color: #a27430; font-size: 7px; margin-top: 3px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(15,18,24,.46); display: grid; place-items: center; padding: 20px; }.modal { background: white; width: min(690px, 100%); max-height: 92vh; overflow-y: auto; border-radius: 9px; box-shadow: 0 22px 70px #10121a3a; padding: 20px; }.quote-modal { width: min(850px, 100%); }.modal-header { display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid #eceef2; padding-bottom: 13px; }.modal-header h2 { margin: 0; font: 700 17px Manrope,sans-serif; }.modal-subtitle { margin: 5px 0 0; color: #8a909a; font-size: 9px; }.icon-button { background: none; border: 0; font-size: 22px; color: #868b94; line-height: 1; }.email-meta { padding: 13px 0; font-size: 10px; color: #555a64; }.email-meta strong { color: #333741; }.email-meta small { display: block; color: #8e939d; margin-top: 4px; }.email-body { border: 1px solid #eceef2; background: #fcfcfd; padding: 14px; border-radius: 5px; max-height: 36vh; overflow: auto; white-space: pre-wrap; font-size: 10px; line-height: 1.6; color: #50545e; }
.modal-footer { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding-top: 15px; margin-top: 15px; border-top: 1px solid #eceef2; }.muted { color: #969ba5; font-size: 9px; margin-right: auto; }.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 15px 0; }.form-grid label,.tax-control { color: #747a84; display: grid; gap: 6px; font-size: 9px; font-weight: 600; }.form-grid input,.product-input,.tax-control input { height: 32px; border: 1px solid #e2e4e9; border-radius: 4px; padding: 0 9px; outline: none; color: #333741; font-size: 10px; }.form-grid input:focus,.product-input:focus,.tax-control input:focus { border-color: #d7193f; box-shadow: 0 0 0 2px #d7193f15; }.products-heading { display: flex; align-items: center; justify-content: space-between; margin: 5px 0 9px; }.products-heading h3 { margin: 0 0 3px; font: 700 11px Manrope,sans-serif; }.products-heading p { margin: 0; color: #979ca6; font-size: 8px; }.product-table-wrap { max-height: 230px; border: 1px solid #eceef2; border-radius: 5px; }.product-table-wrap th { padding: 9px; }.product-table-wrap td { padding: 7px 8px; }.product-input { height: 29px; width: 84px; }.product-select,.product-description-input { width: 100%; min-width: 160px; }.product-description { display: block; color: #686e79; font-size: 8px; margin-top: 4px; }.product-code { display: block; color: #8b909a; font-size: 8px; margin-bottom: 4px; }.stock-available { font-weight: 600; }.stock-short { color: #d08019; }.remove-product { border: 0; background: none; color: #a0a5ae; width: 25px; height: 25px; display: grid; place-items: center; padding: 0; border-radius: 5px; cursor: pointer; }
.remove-product:hover { background: #fff0f3; color: var(--red); }.quote-bottom { display: flex; justify-content: space-between; align-items: start; padding: 15px 0 0; }.tax-control { display: flex; align-items: center; }.tax-control span { display: flex; align-items: center; gap: 5px; }.tax-control input { width: 60px; }.quote-totals { width: 205px; display: grid; gap: 7px; color: #868b95; font-size: 9px; }.quote-totals span { display: flex; justify-content: space-between; }.quote-totals strong { color: #383c44; font-weight: 600; }.quote-totals .grand-total { border-top: 1px solid #e9ebef; padding-top: 8px; color: #454953; font-weight: 700; }.quote-totals .grand-total strong { font-size: 12px; }.toast { position: fixed; z-index: 40; bottom: 22px; left: 50%; transform: translateX(-50%); background: #20232a; color: white; border-radius: 5px; padding: 10px 16px; font-size: 10px; box-shadow: 0 5px 25px #17191f30; }
.source-email-panel { margin: 0 0 15px; padding: 12px; border: 1px solid #e8eaf0; border-radius: 5px; background: #fcfcfd; }.source-email-panel h3 { margin: 0 0 9px; font: 700 11px Manrope,sans-serif; }.source-email-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 16px; margin: 0; }.source-email-meta div { min-width: 0; }.source-email-meta dt { color: #8b909a; font-size: 8px; font-weight: 600; }.source-email-meta dd { margin: 2px 0 0; color: #434751; font-size: 9px; overflow-wrap: anywhere; }.source-email-body { max-height: 180px; overflow: auto; margin: 10px 0 0; padding: 10px; border: 1px solid #eceef2; border-radius: 4px; background: white; color: #50545e; font: inherit; font-size: 9px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 980px) { .sidebar { width: 204px; flex-basis: 204px; }.main { padding: 0 22px 40px; }.metric-grid { grid-template-columns: repeat(2,1fr); }.email-row { grid-template-columns: 30px minmax(110px,1fr) minmax(130px,1.4fr) 105px; }.email-date { display: none; } }
@media (max-width: 650px) { .sidebar { width: 59px; flex-basis: 59px; padding: 15px 7px; }.brand { padding: 0 4px 28px; }.brand>span:last-child,.side-label,.nav-item:not(.active),.nav-item.active:not(:hover) { font-size: 0; }.brand-mark { width: 37px; }.navigation { gap: 6px; }.nav-item { width: 45px; height: 42px; padding: 0; justify-content: center; font-size: 0; }.nav-icon { font-size: 17px; }.nav-count { display: none; }.connection-card { padding: 8px; }.connection-status { justify-content: center; }.connection-status>span:last-child,.connection-actions,.profile-button>span:not(.avatar) { display: none !important; }.profile-button { justify-content: center; }.main { padding: 0 13px 30px; }.topbar { height: 58px; }.today { display: none; }.top-actions { gap: 5px; }.button { padding: 0 8px; font-size: 9px; }.page-heading { padding-top: 22px; }.page-heading .sync-status { display: none; }.metric-grid { gap: 7px; }.metric-card { padding: 10px; }.email-row { grid-template-columns: 27px minmax(90px,1fr) 100px; gap: 8px; padding: 10px; }.email-subject { display: none; }.email-actions .button { padding: 0 7px; font-size: 8px; }.form-grid { gap: 8px; }.modal { padding: 15px; }.modal-footer { flex-wrap: wrap; }.muted { width: 100%; }.quote-bottom { gap: 15px; flex-wrap: wrap; }.quote-totals { margin-left: auto; }.stock-summary { flex-wrap: wrap; gap: 9px 15px; } }

/* Finish the dashboard with a steadier app shell and clearer working sizes. */
body { font-size: 14px; line-height: 1.5; background: #f4f6f9; }
.app-shell { align-items: flex-start; }
.sidebar { position: sticky; top: 0; align-self: flex-start; height: 100vh; overflow-y: auto; z-index: 12; box-shadow: 4px 0 22px #1417200c; }
.main { padding: 0 clamp(20px, 3.2vw, 48px) 48px; }
.topbar { position: sticky; top: 0; z-index: 10; height: 72px; background: #f4f6f9ed; backdrop-filter: blur(12px); }
.breadcrumbs,.today { font-size: 12px; }
.button { min-height: 38px; height: auto; padding: 0 14px; font-size: 12px; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.button-primary:hover { transform: translateY(-1px); }
.button-small { min-height: 34px; font-size: 11px; }
h1 { font-size: 29px; }
.eyebrow { font-size: 10px; }
.subheading { font-size: 13px; }
.page-heading { padding: 34px 0 24px; }
.sync-status { font-size: 11px; }
.notice { border-radius: 9px; padding: 14px 16px; margin-bottom: 12px; }
.notice strong { font-size: 12px; }
.notice p { font-size: 11px; }
.metric-grid { gap: 14px; margin: 20px 0; }
.metric-card { min-height: 106px; padding: 16px; border-radius: 9px; box-shadow: 0 2px 8px #1a20300a; }
.metric-icon { width: 32px; height: 32px; font-size: 16px; }
.metric-label { font-size: 11px; }
.metric-card strong { font-size: 23px; }
.metric-card small { font-size: 10px; }
.content-panel { border-radius: 10px; box-shadow: 0 4px 18px #1a20300a; }
.panel-heading { min-height: 76px; padding: 18px 20px; }
.panel-heading h2 { font-size: 16px; }
.panel-heading p { font-size: 11px; }
.email-row { min-height: 72px; padding: 12px 20px; }
.sender-avatar { width: 34px; height: 34px; font-size: 11px; }
.email-sender strong,.email-subject strong { font-size: 12px; }
.email-sender small,.email-subject small { font-size: 10px; }
.email-date { font-size: 10px; }
.email-actions .button { min-height: 34px; font-size: 11px; }
.table-wrap table { min-width: 720px; }
.quotes-table { min-width: 1020px !important; }
.quote-actions { display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.table-link.table-send { color: #2f8f6c; }
.table-link.table-delete { color: #b72843; }
.table-link:disabled { color: #aeb3bc; cursor: not-allowed; }
.quote-status.sent { background: #e8f5ef; color: #328560; }
th { padding: 13px 15px; font-size: 10px; }
td { padding: 13px 15px; font-size: 11px; }
.quote-status { font-size: 10px; }
.table-link { font-size: 11px; }
.stock-table-wrap { max-height: 58vh; overscroll-behavior: contain; }
.stock-summary { flex-wrap: wrap; gap: 10px 24px; padding: 16px 20px; font-size: 11px; }
.stock-summary strong { font-size: 12px; }
.stock-footnote { font-size: 10px; line-height: 1.55; padding: 13px 20px; }
.warehouse-cell { min-width: 220px; font-size: 10px; }
.price-origin { font-size: 9px; }
.panel-tools { display: flex; align-items: center; gap: 10px; }
.search-field { display: flex; align-items: center; gap: 8px; height: 38px; min-width: 220px; padding: 0 11px; border: 1px solid #e1e4ea; border-radius: 6px; background: #fff; color: #858b96; }
.search-field:focus-within { border-color: #d7193f; box-shadow: 0 0 0 3px #d7193f12; }
.search-field span { font-size: 19px; line-height: 1; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #343840; font-size: 11px; }
.search-field input::placeholder { color: #a0a5ae; }
.upload-button { min-height: 38px; }
.table-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid #eff0f3; color: #858b96; font-size: 11px; }
.table-pagination>div { display: flex; gap: 7px; }
.table-pagination .button { min-height: 32px; font-size: 10px; }
.table-pagination .button:disabled { cursor: not-allowed; opacity: .45; }
.empty-state { padding: 52px 20px; font-size: 12px; }
.empty-state strong { font-size: 14px; }
.modal { border-radius: 12px; padding: 24px; box-shadow: 0 28px 90px #10121a40; }
.quote-modal { width: min(940px, 100%); }
.modal-header h2 { font-size: 20px; }
.modal-subtitle { font-size: 11px; }
.form-grid { gap: 14px; padding: 18px 0; }
.form-grid label,.tax-control { font-size: 11px; }
.form-grid input,.product-input,.tax-control input { height: 38px; font-size: 12px; }
.product-table-wrap { max-height: 34vh; }
.product-table-wrap th { padding: 11px; }
.product-table-wrap td { padding: 9px; }
.product-input { height: 34px; }
.product-code { font-size: 10px; }
.products-heading h3 { font-size: 14px; }
.products-heading p { font-size: 10px; }
.quote-totals { font-size: 11px; }
.quote-totals .grand-total strong { font-size: 14px; }
.modal-footer { padding-top: 18px; margin-top: 18px; }
.muted { font-size: 10px; }
.toast { font-size: 12px; padding: 12px 18px; }
button:focus-visible,a:focus-visible,input:focus-visible { outline: 3px solid #d7193f55; outline-offset: 2px; }
@media (max-width: 980px) {
  .sidebar { width: 220px; flex-basis: 220px; }
  .main { padding-inline: 24px; }
  .panel-tools { flex-wrap: wrap; justify-content: flex-end; }
  .search-field { min-width: 190px; }
}
@media (max-width: 650px) {
  .sidebar { width: 60px; flex-basis: 60px; padding: 15px 7px; }
  .main { padding: 0 14px 30px; }
  .topbar { height: 62px; }
  .top-actions .button { min-height: 34px; padding: 0 8px; font-size: 10px; }
  h1 { font-size: 25px; }
  .page-heading { padding: 25px 0 18px; }
  .metric-grid { gap: 8px; }
  .metric-card { min-height: 95px; padding: 11px; }
  .metric-card strong { font-size: 20px; }
  .metric-card small { font-size: 9px; }
  .panel-heading { align-items: flex-start; gap: 12px; padding: 15px; }
  .panel-heading h2 { font-size: 14px; }
  .search-field { min-width: 0; width: 100%; }
  .panel-tools { width: 58%; }
  .upload-button { font-size: 10px; }
  .email-row { min-height: 68px; padding: 10px; }
  .email-sender strong { font-size: 11px; }
  .email-actions .button { font-size: 9px; }
  .form-grid { gap: 10px; }
  .modal { padding: 17px; }
  .table-pagination { padding-inline: 12px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
body.modal-open { overflow: hidden; }
.modal-backdrop { overflow-y: auto; padding: 24px; }
.modal { margin: auto 0; max-height: min(92vh, 960px); }
.product-table-wrap table { min-width: 650px; }
@media (max-width: 980px) {
  .topbar { gap: 12px; }
  .today { display: none; }
  .main { padding-inline: 20px; }
}
@media (max-width: 650px) {
  .breadcrumbs { display: none; }
  .top-actions { width: 100%; justify-content: flex-end; }
  .top-actions .button { width: 38px; min-width: 38px; padding: 0; }
  .top-actions .button-text { display: none; }
  .top-actions .refresh-icon { font-size: 19px; }
}
.product-table-wrap table { min-width: 0; table-layout: fixed; }
.product-table-wrap th:nth-child(1) { width: 41%; }
.product-table-wrap th:nth-child(2),.product-table-wrap th:nth-child(3) { width: 14%; }
.product-table-wrap th:nth-child(4) { width: 23%; }
.product-table-wrap th:nth-child(5) { width: 8%; }
.product-description-input { min-width: 0; }
.product-table-wrap .product-input { width: 100%; min-width: 0; padding-inline: 7px; }
.product-table-wrap .product-code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-header { position: sticky; top: -24px; z-index: 3; background: white; padding-top: 4px; }
.modal-footer { position: sticky; bottom: -24px; z-index: 3; background: white; padding-bottom: 4px; }
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* Sidebar close / reopen icon */
.sidebar-toggle { position: absolute; top: 20px; right: 10px; width: 29px; height: 29px; display: grid; place-items: center; border: 0; border-radius: 6px; background: #2b2e37; color: #c9cdd5; cursor: pointer; transition: background .15s ease, color .15s ease; }
.sidebar-toggle:hover { background: #3a3e49; color: #fff; }
.sidebar-toggle svg { width: 15px; height: 15px; display: block; }
.sidebar-toggle .icon-open { display: none; }
.app-shell.sidebar-collapsed .sidebar { width: 64px; flex-basis: 64px; padding: 18px 7px; }
.app-shell.sidebar-collapsed .sidebar-toggle { top: 76px; right: auto; left: 50%; transform: translateX(-50%); }
.app-shell.sidebar-collapsed .sidebar-toggle .icon-close { display: none; }
.app-shell.sidebar-collapsed .sidebar-toggle .icon-open { display: block; }
.app-shell.sidebar-collapsed .brand { justify-content: center; padding: 0 0 24px; }
.app-shell.sidebar-collapsed .brand > span:last-child,.app-shell.sidebar-collapsed .side-label { display: none; }
.app-shell.sidebar-collapsed .nav-item { width: 46px; height: 42px; padding: 0; justify-content: center; gap: 0; font-size: 0; }
.app-shell.sidebar-collapsed .nav-icon { font-size: 18px; }
.app-shell.sidebar-collapsed .nav-count { display: none; }
.app-shell.sidebar-collapsed .connection-card { margin: 12px 0; padding: 8px; }
.app-shell.sidebar-collapsed .connection-status { justify-content: center; }
.app-shell.sidebar-collapsed .connection-status > span:last-child,.app-shell.sidebar-collapsed .connection-actions,.app-shell.sidebar-collapsed .profile-button > span:not(.avatar) { display: none !important; }
.app-shell.sidebar-collapsed .profile-button { justify-content: center; }
@media (max-width: 650px) { .sidebar-toggle { display: none; } }
.form-grid label.wide { grid-column: 1 / -1; }
.stock-item-modal { max-width: 560px; }
.stock-table-wrap table { min-width: 980px; }
