/* FACTRO. | Monochrome business interface — presentation-only overrides.
   The original component styles remain intact for compatibility. */
:root{
  color-scheme:light;
  --ink:#161616;
  --muted:#686868;
  --blue:#171717;
  --edge:rgba(255,255,255,.86);
  --factor-line:#e6e6e5;
  --factor-subtle:#f6f6f5;
  --factor-black:#181818;
  font-family:"Segoe UI",Tahoma,"Vazirmatn",Arial,sans-serif;
  color:#161616;
  font-size:14px;
}
*{scrollbar-color:#c7c7c5 transparent}
html{scroll-behavior:smooth}
body{
  background:#f6f6f5;
  background-image:radial-gradient(ellipse 60% 32% at 52% -5%,rgba(255,255,255,.95),transparent 100%);
  color:var(--ink);
  letter-spacing:0;
}
::selection{background:#ddddda;color:#141414}
button,input,textarea,select{font:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,
[role="button"]:focus-visible{outline:2px solid #1e1e1e!important;outline-offset:3px!important}
button:disabled{opacity:.48}
.app-shell,.employer-shell{max-width:1440px;padding:28px 36px 22px}
.glass{
  background:rgba(255,255,255,.77);
  border:1px solid rgba(255,255,255,.98);
  box-shadow:0 12px 35px rgba(0,0,0,.035),0 1px 3px rgba(0,0,0,.035);
  backdrop-filter:blur(16px) saturate(112%);
  -webkit-backdrop-filter:blur(16px) saturate(112%);
}
.top-nav{
  border-radius:20px;min-height:72px;padding:14px 24px;
  background:rgba(255,255,255,.85);
  box-shadow:0 3px 16px rgba(0,0,0,.03);
}
.brand{gap:12px;flex-wrap:wrap;font-size:20px;letter-spacing:0}
.brand-symbol{
  width:39px;height:39px;flex:0 0 39px;display:grid;place-items:center;
  background:#191919;color:white;border-radius:12px;
  font:800 24px/1 Arial,sans-serif;direction:ltr;
}
.brand-name{font:800 22px/1 Arial,"Segoe UI",sans-serif;letter-spacing:-1.2px;color:#151515;white-space:nowrap}
main{min-height:64vh}
.page-heading{margin:40px 4px 24px}
.page-heading h1{font-size:clamp(25px,2.3vw,32px);font-weight:800;letter-spacing:-.5px;margin-bottom:8px;color:#171717}
.page-heading p{color:#737373;font-size:13px;line-height:1.9}
.tiny-pill,.quiet-chip,.employer-brand-sub{
  color:#535353;border:1px solid #e8e8e7;background:rgba(255,255,255,.8);
  border-radius:12px;padding:9px 13px;font-size:12px;font-weight:600;box-shadow:none;
}
.tiny-pill.success{color:#202020}
.workspace{grid-template-columns:minmax(0,1fr) 292px;gap:19px}
.main-card,.side-card{border-radius:21px;padding:28px}
.side-card{background:rgba(255,255,255,.72);position:sticky;top:18px}
.side-card h2,.main-card h2,.section-heading h2{font-weight:750;color:#202020;font-size:17px}
.section-heading{margin-bottom:20px;gap:12px}
.info-banner{
  background:#f5f5f4;border:1px solid #ededeb;color:#525252;
  border-radius:12px;min-height:48px;padding:11px 15px;margin:14px 0 20px;
  font-size:12px;line-height:1.85;animation:none;
}
.info-icon{width:19px;height:19px;border:1px solid #7d7d7d;color:#555;font:600 12px Georgia,serif}
.stage-track{gap:9px}
.stage-step{color:#969696;border:1px solid transparent;background:transparent;border-radius:10px;padding:7px 10px;font-weight:650;font-size:12px;box-shadow:none}
.stage-step.current,.stage-step.completed{color:#202020;background:#f2f2f1;border:1px solid #e8e8e6;box-shadow:none;transform:none}
.stage-dot{width:25px;height:25px;background:#efefee;color:#777;font-weight:700}
.stage-step.current .stage-dot,.stage-step.completed .stage-dot{background:#1d1d1d;color:white}
.stage-connector{width:19px;background:#dcdcdc;height:1px}
.drop-zone{
  border:1.5px dashed #c6c6c5;background:#fbfbfa;
  min-height:255px;border-radius:16px;gap:13px;padding:32px 22px;
  transition:background .18s,border-color .18s;
}
.drop-zone:hover,.drop-zone:focus-within{background:#f2f2f1;border-color:#626262}
.drop-zone strong{color:#242424;font-size:17px;font-weight:750}
.drop-zone span:not(.upload-picture){color:#8a8a8a;font-size:12px}
.drop-zone b{color:#292929}
.upload-picture{width:62px;height:62px;border-radius:16px;background:#eeeeed;color:#272727}
.upload-picture svg{width:31px;height:31px}
.primary-btn,.secondary-btn,.preview-change,.employer-entry-link,
.price-action,.actions button,.choice button,.quantity-box .small-save,.proposed-cell .pick-open,
.order-tab,.manager-nav-item,.manual-choice button,.preview-thumb,.preview-dialog-close{
  border-radius:12px;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
  box-shadow:none;
}
.primary-btn,.secondary-btn{
  min-height:46px;padding:11px 20px;
  font-weight:700;border:1px solid transparent;
}
.primary-btn{
  color:#fff;background:linear-gradient(160deg,rgba(47,47,47,.97),#111 82%);
  border:1px solid #202020;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 5px 10px rgba(0,0,0,.08);
}
.primary-btn:hover:enabled{background:linear-gradient(150deg,#393939,#171717);filter:none;transform:translateY(-1px)}
.secondary-btn,.preview-change,.employer-entry-link{
  color:#292929;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(240,240,239,.83));
  border:1px solid #e0e0df;
  box-shadow:inset 0 1px 0 #fff,0 2px 6px rgba(0,0,0,.025);
}
.secondary-btn:hover:enabled,.preview-change:hover,.employer-entry-link:hover{background:#ededec;border-color:#bcbcbc;color:#151515;transform:translateY(-1px);box-shadow:none}
.primary-btn:active:enabled,.secondary-btn:active:enabled{transform:translateY(0)}
.compact{min-height:38px;padding:8px 13px;border-radius:10px;font-weight:700}
.step{align-items:flex-start;gap:13px;margin:24px 0}
.step>b{background:#f3f3f2;border:1px solid #e9e9e8;color:#353535;width:38px;height:35px;font:700 12px/1 Arial,sans-serif;border-radius:11px}
.step strong{font-size:13px;color:#282828}
.step span,.side-hint{font-size:12px;color:#7c7c7c}
.side-hint{border-top:1px solid #e9e9e8;padding-top:17px;margin-top:27px}
.meta-grid{gap:12px}
.meta-grid span{color:#7a7a7a}
.meta-grid strong{background:#f8f8f7;border:1px solid #eeeeed;border-radius:10px;color:#252525}
.manual-search,.glass-subtle,.file-preview,.suggestions-panel,.order-item-editor,.manager-workflow{
  background:rgba(250,250,249,.93);border:1px solid #ededeb;border-radius:14px;box-shadow:none;
}
.manual-search{padding:18px}
input:not([type="checkbox"]):not([type="file"]),textarea,select{
  background:#fff!important;color:#222!important;border:1px solid #dcdcd9!important;
  border-radius:10px!important;box-shadow:none!important;
}
input::placeholder,textarea::placeholder{color:#9b9b9b}
input:focus,textarea:focus,select:focus{border-color:#6f6f6f!important}
.review-labels{color:#717171;border-bottom:1px solid #efefef;padding:12px 13px;font-size:12px}
.line-list{gap:7px;margin-top:12px}
.item-row{
  background:#fcfcfb;border:1px solid #ebebea;border-radius:13px;padding:14px;
  box-shadow:none;animation:none;
}
.item-row:hover{background:#f7f7f6;box-shadow:none}
.item-row .smaller,.quantity-box,.suggestion-hint{color:#777}
.quantity-box input{background:#fff}
.quantity-box .small-save,.actions button,.choice button,.proposed-cell .pick-open,
.price-action,.preview-thumb,.preview-dialog-close{
  background:#f4f4f3;color:#282828;border:1px solid #dededd;box-shadow:none;
}
.actions .danger{color:#282828;background:#fafafa;border-color:#d4d4d4}
.actions .confirm,.proposed-cell .pick-open[aria-expanded="true"]{background:#e8e8e7;color:#202020}
.pill,.order-state{background:#f2f2f1!important;color:#444!important;border:1px solid #e4e4e2!important;border-radius:9px}
.pill.matched,.pill.confirmed,.pill.needs_confirmation,.pill.not_found,.order-state.pending{background:#f2f2f1!important;color:#444!important}
.choice,.manual-choice,.version-choice,.no-orders{background:#fff;border:1px solid #ededeb;border-radius:11px}
.choice:hover{box-shadow:none;background:#f8f8f7}
.warning,.unpriced{color:#5a5a5a}
.stat{border-bottom:1px solid #ececeb}
.stat b{color:#1e1e1e}
.summary-divider{height:14px}
.review-guidance{color:#707070}
.review-footer{border-top:1px solid #ececeb}
.approved-table th,.employer-table th{color:#6c6c6c;border-bottom:1px solid #ededeb}
.approved-table td,.employer-table td{background:#fafafa;border-top:1px solid #eeeeed;border-bottom:1px solid #eeeeed}
.approved-table td:first-child,.employer-table td:first-child{border-right:1px solid #eee;border-radius:0 10px 10px 0}
.approved-table td:last-child,.employer-table td:last-child{border-left:1px solid #eee;border-radius:10px 0 0 10px}
.error-box{background:#f4f4f4;color:#333;border:1px solid #b1b1b1;border-radius:12px}
.customer-footer,footer{color:#909090;font-size:12px}
.footer-brand{font:800 13px/1 Arial,sans-serif;letter-spacing:-.5px;color:#3a3a3a}
.employer-entry-link{border-radius:9px;padding:9px 14px;font-size:12px}
.file-preview{animation:none;padding:16px}
.preview-viewport{border:1px solid #ededeb;background:#f9f9f8;border-radius:12px}
.preview-check{color:#3d3d3d;background:#f2f2f1;border-radius:9px}
.preview-thumbs .preview-thumb.active{background:#ddd;border-color:#8d8d8d;box-shadow:none}
.review-document summary{color:#333}
.confirm-dialog,.preview-dialog{
  color:#171717;background:#fff;border:1px solid #e9e9e9;
  border-radius:20px;box-shadow:0 25px 65px rgba(0,0,0,.16);
}
.confirm-dialog::backdrop,.preview-dialog::backdrop{background:rgba(10,10,10,.55);backdrop-filter:blur(5px)}
.modal-mark{background:#222;border-radius:14px}
.confirm-dialog p{color:#777}
#customer-final-form label{color:#444}
.required-mark{color:#333}
.validation-note{background:#f2f2f2;color:#444;border:1px solid #d7d7d7}
/* Management and pricing screens */
.employer-brand-sub{padding:7px 12px;color:#5f5f5f}
.topbar-links{gap:12px}
.emp-live{color:#555;font-weight:600}
.emp-live::before{background:#353535;box-shadow:0 0 0 3px #ededed}
.employer-login-card{border-radius:22px;margin:66px auto 80px;padding:42px}
.employer-login-card h1{font-size:25px}
.lock-sign{border-radius:16px;background:#f2f2f1;color:#333}
.helper,.muted{color:#797979}
.employer-stats{gap:13px;margin-bottom:18px}
.stat-panel{border-radius:16px;padding:20px 23px;gap:10px}
.stat-panel span{color:#777;font-size:12px}
.stat-panel strong{color:#1f1f1f;font-size:27px}
.manager-layout{grid-template-columns:310px minmax(0,1fr);gap:18px}
.order-list-card,.order-detail-card,.finance-dashboard{border-radius:19px;padding:22px}
.order-select{background:#fff;border:1px solid #ebebea;border-radius:12px;box-shadow:none;padding:13px}
.order-select:hover{background:#f7f7f6;transform:none}
.order-select.active{background:#f3f3f2;border-color:#b8b8b7}
.bulk-order-select{color:#888}
.bulk-order-select input{accent-color:#202020}
.order-sub{color:#888}
.order-tabs{gap:7px}
.order-tab{background:#f9f9f8;border:1px solid #e8e8e7;color:#777;border-radius:10px}
.order-tab.active{color:white;background:#252525;border-color:#252525}
.empty-order{color:#8c8c8c}
.empty-order h2,.detail-header h2{color:#333}
.empty-icon,.eyebrow{color:#6b6b6b}
.detail-meta{color:#777}
.money{color:#191919}
.price-editor input{border-radius:9px}
.price-action.save{background:#ededeb;color:#252525;border-color:#d2d2d2}
.invoice-grand-total{
  background:#f4f4f3;border:1px solid #e9e9e7;border-radius:12px;
  padding:21px 22px;
}
.invoice-grand-total strong{font-weight:800}
.finance-dashboard h2{color:#242424}
.financial-summary{gap:13px}
.financial-tile{background:#fafafa;border:1px solid #ececeb;border-radius:14px}
.financial-tile span,.financial-tile small{color:#777}
.financial-tile strong{color:#242424}
.chart-card{background:#fff;border:1px solid #ededeb;border-radius:13px}
.chart-card h3{color:#333}
.bar-track{background:#ededeb;border-radius:7px 7px 2px 2px}
.bar-fill{background:linear-gradient(180deg,#6b6b6b,#222)}
.bar-value,.bar-tick{color:#777}
.manager-workflow{background:#fbfbfa;border-radius:12px}
.admin-card{background:#fff;border:1px solid #e8e8e7;border-radius:14px}
.admin-card h3{color:#292929}
.admin-section-heading h3{color:#292929}
#manager-screen{padding-bottom:120px}
.manager-bottom-nav{
  background:rgba(255,255,255,.89);border:1px solid rgba(255,255,255,.98);
  box-shadow:0 12px 38px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.035);
  border-radius:19px;width:min(720px,calc(100% - 32px));min-height:70px;
  padding:7px;gap:5px;
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
}
.manager-nav-item{border-radius:12px;min-height:56px;color:#828282;font-weight:650;font-size:11px}
.manager-nav-item:hover{background:#f3f3f2;color:#303030}
.manager-nav-item.active{background:#1f1f1f;color:#fff;border:1px solid #1f1f1f;box-shadow:inset 0 1px 0 #555}
.manager-nav-item.active svg{stroke:#fff}
.manager-nav-item:focus-visible{outline:2px solid #222;outline-offset:2px}
.manager-nav-item[data-manager-view="catalog"] span{-webkit-line-clamp:1}
/* Respect low distraction and narrow layouts */
@media(max-width:1100px){
  .app-shell,.employer-shell{padding:20px}
  .workspace{grid-template-columns:minmax(0,1fr) 260px;gap:14px}
  .manager-layout{grid-template-columns:275px minmax(0,1fr)}
}
@media(max-width:850px){
  .app-shell,.employer-shell{padding:14px}
  .workspace{display:flex;flex-direction:column}
  .workspace .main-card{order:0}.workspace .side-card{order:1}
  .main-card,.side-card{width:100%;padding:21px;border-radius:17px}
  .side-card{position:static}
  .page-heading{margin:27px 4px 21px}
  .top-nav{border-radius:15px}
}
@media(max-width:780px){
  .manager-layout{display:flex;flex-direction:column}
  .manager-layout>.order-list-card,.manager-layout>.order-detail-card{width:100%}
}
@media(max-width:600px){
  .top-nav{padding:13px 15px}
  .brand-name{font-size:20px}
  .brand-symbol{width:34px;height:34px;flex-basis:34px;font-size:21px;border-radius:10px}
  .manager-bottom-nav{border-radius:14px}
  .manager-nav-item{border-radius:9px}
  .emp-live{display:none}
  .employer-brand-sub{font-size:11px}
  .page-heading h1{font-size:25px}
  .stat-panel{padding:15px}
  .financial-summary{grid-template-columns:1fr}
}
@media(max-width:480px){
  .app-shell,.employer-shell{padding:12px}
  .stage-track{width:100%;justify-content:flex-start;gap:5px}
  .stage-step{font-size:11px;padding:6px}
  .stage-connector{width:12px}
  .page-heading{gap:9px}
  .drop-zone{min-height:220px;padding:20px}
  .info-banner{padding:10px}
  .employer-login-card{margin:38px auto;padding:25px 20px}
  .meta-grid{grid-template-columns:1fr}
  .employer-stats{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media print{
  body{background:#fff;background-image:none}
  .glass,.main-card,.side-card,.order-detail-card{box-shadow:none;border-color:transparent;background:#fff;backdrop-filter:none}
  .manager-bottom-nav,.top-nav,footer{display:none!important}
}

/* Management uses fixed bottom navigation instead of the global footer. */
body:has(#manager-screen:not([hidden])) footer{display:none}
