@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');
@font-face{font-family:"VazirmatnWeb";src:url("https://cdn.jsdelivr.net/fontsource/fonts/vazirmatn:vf@5.3.0/arabic-wght-normal.woff2") format("woff2-variations");font-weight:100 900;font-style:normal;font-display:swap}
:root{--bg:#f5f7fb;--surface:#fff;--surface2:#f8f9fc;--ink:#172033;--muted:#697386;--primary:#148997;--primaryDark:#0f1f3a;--primarySoft:#e8f6f7;--line:#e3e7ef;--success:#18794e;--danger:#b42318;--warning:#9a6700;--radius:14px;--shadow:0 6px 24px rgba(25,35,70,.06)}
*{box-sizing:border-box}html{direction:rtl}body{margin:0;background:var(--bg);color:var(--ink);font-family:"Vazirmatn","VazirmatnWeb",Tahoma,Arial,sans-serif;font-size:14px;line-height:1.75}button,input,select,textarea,table{font-family:"Vazirmatn","VazirmatnWeb",Tahoma,Arial,sans-serif;font-size:14px}button{line-height:1.2}.hidden{display:none!important}
.login{min-height:100vh;display:grid;grid-template-columns:1fr 420px;background:linear-gradient(135deg,#f6f8fc 0,#eef3f8 100%)}.login-side{background:linear-gradient(160deg,#101f3a,#20356b);padding:60px;color:white;display:flex;flex-direction:column;justify-content:flex-end}.login-side h2{font-size:32px;margin:0 0 10px}.login-side p{opacity:.8;font-size:16px}.login-wrap{display:grid;place-items:center;padding:32px}.login-card{width:min(390px,94vw);background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:30px;box-shadow:var(--shadow)}.brandmark{width:54px;height:54px;border-radius:15px;background:var(--primarySoft);display:grid;place-items:center;font-size:27px;margin-bottom:18px}.login-card h1{font-size:22px;margin:0}.login-card .sub{color:var(--muted);margin:4px 0 22px}
.shell{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--primaryDark);color:#fff;padding:18px 12px;position:sticky;top:0;height:100vh;overflow:auto}.side-brand{display:flex;align-items:center;gap:10px;padding:7px 8px 19px;border-bottom:1px solid #ffffff17;margin-bottom:13px}.side-logo{width:38px;height:38px;border-radius:10px;background:#ffffff12;display:grid;place-items:center;font-size:21px}.side-brand strong{font-size:16px;font-weight:800}.side-brand small{display:block;color:#aebbd0;font-size:11px}.nav-title{color:#8492ad;font-size:11px;padding:13px 11px 5px}.nav button{width:100%;border:0;background:transparent;color:#d7dcf1;text-align:right;padding:11px 12px;border-radius:10px;margin:2px 0;cursor:pointer;display:flex;align-items:center;gap:9px}.nav button:hover,.nav button.active{background:#ffffff12;color:#fff}.nav .ico{width:20px;text-align:center;opacity:.9}
.main{min-width:0;padding:0 24px 28px}.topbar{height:70px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);margin-bottom:20px}.page-title h1{font-size:22px;font-weight:800;margin:0;line-height:1.2}.page-title small{color:var(--muted)}.userbox{display:flex;align-items:center;gap:10px}.avatar{width:36px;height:36px;border-radius:50%;background:var(--primarySoft);color:var(--primary);display:grid;place-items:center;font-weight:bold}.user-meta{line-height:1.25}.user-meta small{color:var(--muted);display:block;font-size:12px}
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.metric{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:17px 18px;box-shadow:var(--shadow)}.metric .metric-top{display:flex;justify-content:space-between;color:var(--muted)}.metric b{display:block;font-size:28px;margin-top:7px}.metric .dot{width:10px;height:10px;border-radius:50%;background:var(--primary)}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px;margin-bottom:14px;box-shadow:var(--shadow)}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:13px}.panel-head h3{font-size:17px;font-weight:800;margin:0}.panel-head p{margin:3px 0 0;color:var(--muted);font-size:12px}.section-title{display:flex;align-items:center;gap:9px}.section-num{width:27px;height:27px;border-radius:8px;background:var(--primarySoft);color:var(--primary);display:grid;place-items:center;font-size:13px;font-weight:bold}
.form-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:12px}.col-2{grid-column:span 2}.col-3{grid-column:span 3}.col-4{grid-column:span 4}.col-6{grid-column:span 6}.col-8{grid-column:span 8}.col-12{grid-column:1/-1}.field{min-width:0}.field label{display:block;color:#526078;font-size:12px;margin:0 2px 5px}.req{color:var(--danger)}.field input,.field select,.field textarea,.search-input{width:100%;border:1px solid #d9deea;background:#fff;border-radius:9px;padding:8px 11px;outline:none;color:var(--ink);transition:.15s}.field input,.field select{height:42px}.field textarea{resize:vertical;min-height:74px}.field input:focus,.field select:focus,.field textarea:focus,.search-input:focus{border-color:#8c96c7;box-shadow:0 0 0 3px #2832730d}.hint{font-size:12px;color:var(--muted);margin-top:3px}
.actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.btn{border:1px solid transparent;border-radius:10px;padding:10px 16px;font-weight:700;cursor:pointer;background:#fff;color:var(--ink);transition:.15s}.btn:hover{transform:translateY(-1px)}.btn-primary{background:var(--primary);color:#fff}.btn-soft{background:var(--primarySoft);color:var(--primary)}.btn-outline{border-color:var(--line)}.btn-danger{background:#fff1f0;color:var(--danger)}.btn-sm{padding:6px 10px;font-size:14px}.w100{width:100%}
.toolbar{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.toolbar-left,.toolbar-right{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.toolbar .search-input{width:270px;height:39px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:10px}table{border-collapse:collapse;width:100%;min-width:780px;background:#fff}th,td{padding:12px 13px;text-align:right;border-bottom:1px solid #edf0f5;white-space:nowrap}th{background:#f7f9fc;color:#66758c;font-size:12px;font-weight:700}tbody tr:hover{background:#fafbfe}.badge{display:inline-flex;align-items:center;border-radius:20px;padding:3px 9px;background:var(--primarySoft);color:var(--primary);font-size:13px}.badge.ok{background:#edf8f2;color:var(--success)}.badge.off{background:#f2f4f7;color:#667085}.empty{text-align:center;padding:35px;color:var(--muted)}
.permission-layout{display:grid;grid-template-columns:290px 1fr;gap:14px}.role-list{display:flex;flex-direction:column;gap:6px}.role-item{border:1px solid var(--line);background:#fff;border-radius:9px;padding:10px 11px;cursor:pointer}.role-item.active{border-color:#afb7da;background:var(--primarySoft)}.permission-table table{min-width:720px}.permission-table th:not(:first-child),.permission-table td:not(:first-child){text-align:center}.check{width:17px;height:17px;accent-color:var(--primary)}
.chips{display:flex;gap:5px;flex-wrap:wrap}.chip{background:#f1f3f8;border:1px solid #e6e9f0;border-radius:20px;padding:2px 8px;font-size:12px;color:#586174}.switchline{display:flex;align-items:center;gap:7px;height:40px}.toast{position:fixed;left:20px;bottom:20px;background:#1c2436;color:#fff;padding:10px 14px;border-radius:9px;box-shadow:0 10px 30px #0002;z-index:100}.error{color:var(--danger);margin-top:8px}.muted{color:var(--muted)}
@media(max-width:1050px){.cards{grid-template-columns:repeat(2,1fr)}.form-grid .col-2,.form-grid .col-3,.form-grid .col-4{grid-column:span 6}.permission-layout{grid-template-columns:1fr}}
@media(max-width:800px){.shell{grid-template-columns:1fr}.sidebar{position:static;height:auto}.nav{display:flex;overflow:auto;gap:4px}.nav-title{display:none}.nav button{width:auto;white-space:nowrap}.side-brand{border:0}.main{padding:0 13px 20px}.form-grid .col-2,.form-grid .col-3,.form-grid .col-4,.form-grid .col-6,.form-grid .col-8{grid-column:1/-1}}
@media(max-width:560px){.login{grid-template-columns:1fr}.login-side{display:none}.cards{grid-template-columns:1fr}.topbar{height:auto;padding:13px 0}.user-meta{display:none}.toolbar .search-input{width:100%}.panel{padding:13px}}

/* v0.4 typography hardening */
html,body,#app,.shell,.main,.sidebar,.panel,.login,.login-card,.topbar,.nav,.field,.table-wrap{font-family:"Vazirmatn","VazirmatnWeb",Tahoma,Arial,sans-serif!important}input::placeholder,textarea::placeholder{font-family:"Vazirmatn","VazirmatnWeb",Tahoma,Arial,sans-serif;color:#9aa5b5}body{font-feature-settings:"ss01" 1,"ss02" 1}strong,b,h1,h2,h3{font-family:"Vazirmatn","VazirmatnWeb",Tahoma,Arial,sans-serif;font-weight:800}

/* v0.5 reception / mobile / workflow */
.customer-search-box{position:relative;max-width:820px}.search-results{position:absolute;z-index:40;top:72px;right:0;left:0;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 40px rgba(23,32,51,.14);padding:6px;max-height:340px;overflow:auto}.customer-result,.customer-new-action{width:100%;border:0;background:#fff;border-radius:9px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;text-align:right;cursor:pointer;color:var(--ink)}.customer-result:hover{background:var(--primarySoft)}.customer-result span:first-child{display:flex;flex-direction:column}.customer-result small{color:var(--muted)}.customer-new-action{margin-top:5px;color:var(--primary);font-weight:800;border-top:1px solid var(--line);border-radius:0}.no-result{padding:12px;color:var(--muted)}.selected-customer{margin-top:10px;padding:11px 13px;border:1px solid #bde6df;background:#f2fbf8;border-radius:12px;display:flex;justify-content:space-between;align-items:center;gap:12px}.selected-customer>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.selected-customer small{color:var(--muted)}.new-customer-box{margin-top:12px;padding-top:12px;border-top:1px dashed var(--line)}.customer-history{margin-top:12px;background:#fafbfe;border:1px solid var(--line);border-radius:12px;padding:11px}.history-mini-title{font-weight:800;margin-bottom:7px}.history-mini-list{display:grid;gap:6px}.history-mini-list>div{display:grid;grid-template-columns:150px 1fr 130px 110px;gap:10px;align-items:center;background:#fff;border:1px solid #edf0f5;border-radius:9px;padding:8px 10px}.history-mini-list small,.history-mini-list span{color:var(--muted)}
.photo-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.photo-btn{display:inline-flex;align-items:center;gap:6px;background:var(--primarySoft);color:var(--primary);border:1px solid #cde9eb;border-radius:10px;padding:9px 13px;font-weight:800;cursor:pointer}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:10px;margin-top:12px}.photo-item{position:relative;border:1px solid var(--line);border-radius:11px;overflow:hidden;background:#fff}.photo-item img{width:100%;height:125px;object-fit:cover;display:block}.photo-item button{position:absolute;left:6px;top:6px;width:28px;height:28px;border:0;border-radius:50%;background:#111b;color:#fff;font-size:20px;cursor:pointer}.photo-item small{display:block;padding:5px 7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);direction:ltr}.photo-empty{grid-column:1/-1;padding:22px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:10px;background:#fbfcfe}
.td-wrap{max-width:340px;white-space:normal}.detail-head{display:flex;align-items:center;justify-content:space-between}.detail-head h2{margin:8px 0 0}.status-big{font-size:14px;padding:7px 13px}.status-flow{display:flex;align-items:flex-start;overflow:auto;padding:10px 2px 16px;gap:0}.status-step{min-width:118px;position:relative;text-align:center;color:#8a95a8}.status-step:after{content:"";position:absolute;height:2px;background:#dde3ec;top:16px;right:calc(50% + 17px);width:calc(100% - 34px)}.status-step:last-child:after{display:none}.status-step>span{position:relative;z-index:2;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;margin:0 auto 6px;background:#eef1f6;border:2px solid #dbe1ea;font-size:12px;font-weight:800}.status-step small{display:block;white-space:nowrap}.status-step.done>span{background:#e9f7f1;color:var(--success);border-color:#bfe8d5}.status-step.done:after{background:#bfe8d5}.status-step.active>span{background:var(--primary);color:#fff;border-color:var(--primary);box-shadow:0 0 0 5px var(--primarySoft)}.status-step.active small{color:var(--primary);font-weight:800}.status-change{display:grid;grid-template-columns:220px 1fr auto;gap:8px;border-top:1px solid var(--line);padding-top:14px}.status-change select,.status-change input{height:42px;border:1px solid #d9deea;border-radius:9px;padding:8px 11px;outline:none}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.info-grid>div{display:flex;flex-direction:column;padding:9px 0;border-bottom:1px solid #eef1f5}.info-grid .full{grid-column:1/-1}.info-grid small{color:var(--muted)}.attachment-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:9px}.attachment-grid a{position:relative;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;color:#fff;text-decoration:none}.attachment-grid img{display:block;width:100%;height:120px;object-fit:cover}.attachment-grid span{position:absolute;right:0;left:0;bottom:0;padding:5px 7px;background:#1119;text-align:center}.timeline{position:relative;padding-right:8px}.timeline-item{display:grid;grid-template-columns:22px 1fr;gap:8px;position:relative;padding-bottom:16px}.timeline-item:before{content:"";position:absolute;right:9px;top:17px;bottom:-2px;width:2px;background:#e3e8f0}.timeline-item:last-child:before{display:none}.timeline-dot{width:18px;height:18px;border:4px solid var(--primarySoft);background:var(--primary);border-radius:50%;position:relative;z-index:2}.timeline-item p{margin:2px 0;color:var(--muted)}.timeline-item small{color:#8b96a9}
@media(max-width:900px){.detail-grid{grid-template-columns:1fr}.history-mini-list>div{grid-template-columns:120px 1fr 100px}.history-mini-list>div small{display:none}.status-change{grid-template-columns:1fr}.status-change .btn{width:100%}}
@media(max-width:800px){.sidebar{position:sticky;top:0;z-index:60;padding:8px 10px;height:auto}.side-brand{display:none}.nav{padding-bottom:2px}.nav button{padding:9px 11px}.main{padding-top:0}.topbar{position:sticky;top:52px;z-index:30;background:var(--bg);margin-bottom:12px}.photo-item img{height:110px}.selected-customer{align-items:flex-start}.history-mini-list>div{grid-template-columns:1fr 90px}.history-mini-list>div span:first-of-type{display:none}}
@media(max-width:560px){body{font-size:13px}.page-title h1{font-size:18px}.panel{border-radius:11px}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-actions .photo-btn{flex:1;justify-content:center}.selected-customer{flex-direction:column}.selected-customer .btn{width:100%}.detail-head{align-items:flex-start}.status-big{margin-top:4px}.info-grid{grid-template-columns:1fr}.history-mini-list>div{grid-template-columns:1fr}.history-mini-list>div span,.history-mini-list>div small{display:block}.table-wrap{margin:0 -2px}.toolbar-right{width:100%}.toolbar-right .search-input,.toolbar-right select{width:100%!important}.toolbar-right .btn{width:100%}}


/* v0.6 dashboard, Persian date picker, workflow UX */
.metric small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.metric-icon{width:30px;height:30px;border-radius:9px;background:var(--primarySoft);color:var(--primary);display:grid;place-items:center;font-weight:900}.dashboard-cards{grid-template-columns:repeat(6,1fr)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(290px,.7fr);gap:14px;margin-top:14px}.recent-list{display:grid}.recent-row{display:grid;grid-template-columns:190px minmax(180px,1fr) 120px 155px;gap:12px;align-items:center;width:100%;background:#fff;border:0;border-bottom:1px solid var(--line);padding:11px 3px;text-align:right;color:var(--ink);cursor:pointer}.recent-row:last-child{border-bottom:0}.recent-row:hover{background:#fafcfd}.recent-row>div:first-child{display:flex;flex-direction:column}.recent-row small,.recent-row time{color:var(--muted);font-size:12px}.recent-problem{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-summary{display:grid;gap:7px}.status-summary>div{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:#fbfcfe}.status-summary b{color:var(--primary);font-size:17px}.quick-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.event-stream{display:grid}.event-row{display:grid;grid-template-columns:16px minmax(220px,1fr) 130px 170px;gap:10px;align-items:center;padding:9px 2px;border-bottom:1px solid var(--line)}.event-row:last-child{border-bottom:0}.event-row p{margin:2px 0;color:var(--muted)}.event-row>span:not(.event-dot),.event-row time{color:var(--muted);font-size:12px}.event-dot{width:9px;height:9px;border-radius:50%;background:var(--primary);box-shadow:0 0 0 4px var(--primarySoft)}
.repair-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:11px}.repair-search{display:flex;gap:7px;min-width:420px}.repair-search input{flex:1}.status-filter{display:flex;gap:6px;overflow:auto;padding:3px 0 12px;scrollbar-width:thin}.status-filter-item{border:1px solid var(--line);background:#fff;color:#637087;border-radius:999px;padding:7px 12px;white-space:nowrap;cursor:pointer;font:inherit}.status-filter-item span{display:none}.status-filter-item:hover{border-color:#b9dadd;color:var(--primary)}.status-filter-item.active{background:var(--primary);border-color:var(--primary);color:#fff}.photo-count{border:0;background:var(--primarySoft);color:var(--primary);border-radius:20px;padding:4px 8px;cursor:pointer;font:inherit}.date-stack{display:flex;flex-direction:column}.date-stack small{color:var(--muted);font-size:11px;margin-top:2px}
.status-flow .status-step{border:0;background:transparent;font:inherit;cursor:pointer}.status-flow .status-step.chosen>span{outline:3px solid #90d5d8;outline-offset:2px}.status-flow .status-step:disabled{cursor:default}.workflow-action{display:grid;grid-template-columns:220px minmax(200px,1fr) auto;gap:9px;align-items:center;border-top:1px solid var(--line);padding-top:14px}.workflow-action>div{display:flex;flex-direction:column}.workflow-action small{color:var(--muted)}.workflow-action input{height:42px;border:1px solid #d9deea;border-radius:9px;padding:8px 11px;font:inherit}.workflow-action .btn:disabled{opacity:.45;cursor:not-allowed}.exception-statuses{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:10px}.exception-statuses>span{color:var(--muted);font-size:12px}.attachment-card{border:1px solid var(--line);padding:0;border-radius:10px;overflow:hidden;background:#fff;cursor:pointer;font:inherit;text-align:right}.attachment-card img{display:block;width:100%;height:135px;object-fit:cover}.attachment-card span{display:block;padding:6px 7px;color:var(--muted);font-size:11px}.image-modal{position:fixed;inset:0;background:#07101cdd;z-index:9999;display:flex;align-items:center;justify-content:center;padding:25px}.image-modal img{max-width:94vw;max-height:90vh;object-fit:contain;border-radius:8px}.image-close{position:fixed;left:24px;top:20px;border:0;width:42px;height:42px;border-radius:50%;background:#fff;color:#172033;font-size:28px;cursor:pointer}
.date-input-wrap{display:flex;position:relative}.date-input-wrap input{padding-left:42px;cursor:pointer}.date-input-wrap button{position:absolute;left:3px;top:3px;bottom:3px;width:36px;border:0;background:var(--primarySoft);color:var(--primary);border-radius:7px;cursor:pointer}.date-modal{position:fixed;inset:0;background:#0b152655;z-index:9998;display:flex;align-items:center;justify-content:center;padding:14px}.date-picker{width:min(360px,96vw);background:#fff;border-radius:16px;box-shadow:0 24px 70px #0003;padding:14px}.date-head{display:grid;grid-template-columns:38px 1fr 38px;align-items:center;text-align:center;margin-bottom:12px}.date-head button{border:0;background:var(--primarySoft);color:var(--primary);border-radius:9px;height:36px;font-size:24px;cursor:pointer}.week,.days{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center}.week{color:var(--muted);font-size:12px;margin-bottom:5px}.date-day{aspect-ratio:1;border:0;background:#fff;border-radius:9px;cursor:pointer;font:inherit}.date-day:hover{background:var(--primarySoft);color:var(--primary)}.date-day.selected{background:var(--primary);color:#fff}.date-actions{display:flex;justify-content:flex-end;gap:6px;border-top:1px solid var(--line);padding-top:10px;margin-top:10px}
@media(max-width:1250px){.dashboard-cards{grid-template-columns:repeat(3,1fr)}}
@media(max-width:950px){.dashboard-grid{grid-template-columns:1fr}.recent-row{grid-template-columns:160px 1fr 100px}.recent-row time{display:none}.event-row{grid-template-columns:16px 1fr 120px}.event-row time{display:none}.workflow-action{grid-template-columns:1fr}}
@media(max-width:800px){.repair-toolbar{align-items:stretch;flex-direction:column}.repair-search{min-width:0;width:100%}.repair-toolbar>.btn{width:100%}.status-filter{margin-left:-13px;margin-right:-13px;padding-left:13px;padding-right:13px}.dashboard-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.dashboard-cards{grid-template-columns:1fr 1fr}.recent-row{grid-template-columns:1fr auto;gap:6px}.recent-row .recent-problem,.recent-row time{display:none}.event-row{grid-template-columns:14px 1fr}.event-row>span:not(.event-dot),.event-row time{display:none}.repair-search{flex-direction:column}.repair-search .btn{width:100%}.workflow-action{grid-template-columns:1fr}.workflow-action .btn{width:100%}}

/* v0.6.1 mobile / iOS usability hotfix */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
button,a,.btn,.nav button,.status-filter-item,.photo-btn{touch-action:manipulation}
@media(max-width:800px){
  /* iOS Safari auto-zooms focused controls below 16px. Keep every editable control >=16px. */
  input,select,textarea,.search-input,
  .field input,.field select,.field textarea,
  .status-change select,.status-change input,
  .workflow-action input,
  .date-input-wrap input,
  .repair-search input{
    font-size:16px!important;
  }
  .field input,.field select{min-height:46px;height:46px}
  .field textarea{min-height:92px}
  .search-input{min-height:46px}
  .main{padding-left:10px;padding-right:10px;padding-bottom:22px}
  .panel{padding:14px}
  .form-grid{gap:14px}
  .field label{font-size:13px;margin-bottom:6px}
  .topbar{top:56px;padding-top:10px;padding-bottom:10px}
  .page-title h1{font-size:20px}
  .nav{scrollbar-width:none;-ms-overflow-style:none}
  .nav::-webkit-scrollbar{display:none}
  .nav button{font-size:14px;min-height:42px}
  .sidebar{padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}
  .photo-actions{gap:8px}
  .photo-btn{min-height:52px}
  .btn{min-height:42px}
}
@media(max-width:560px){
  body{font-size:14px}
  input,select,textarea,.search-input,button{font-size:16px}
  .panel{padding:12px;border-radius:12px}
  .form-grid{gap:12px}
  .topbar{margin-bottom:10px}
  .page-title small{font-size:12px}
  .sidebar{padding-top:max(8px,env(safe-area-inset-top))}
  .nav button{padding:9px 12px}
  .photo-grid{gap:8px}
  .attachment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* v0.7 immediate photo upload + stable desktop viewport */
.upload-photo-item{position:relative}
.upload-photo-item .upload-overlay{position:absolute;inset:0 0 28px 0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(10,24,43,.42);color:#fff;pointer-events:none;transition:.18s}
.upload-photo-item.upload-done .upload-overlay{background:rgba(12,103,88,.22)}
.upload-photo-item.upload-error .upload-overlay{background:rgba(180,35,24,.46);pointer-events:auto}
.upload-progress-text{font-weight:800;font-size:13px;text-shadow:0 1px 2px #0006;margin-bottom:7px}
.upload-progress{width:72%;height:7px;border-radius:999px;background:#ffffff55;overflow:hidden;box-shadow:inset 0 0 0 1px #ffffff33}
.upload-progress-bar{display:block;height:100%;background:#fff;border-radius:inherit;transition:width .15s linear}
.upload-photo-item.upload-done .upload-progress{opacity:0}
.retry-upload{position:absolute;right:8px;bottom:34px;z-index:4;border:0;border-radius:8px;padding:5px 8px;background:#fff;color:var(--danger);font:inherit;font-size:11px;font-weight:800;cursor:pointer}
.upload-photo-item>button[data-rm-photo]{z-index:5}
@media(min-width:801px){html{overflow-y:scroll;scrollbar-gutter:stable}}
@media(max-width:800px){.upload-progress-text{font-size:14px}.upload-progress{height:8px}}

/* v0.7.1 - repair status counters and semantic colors */
.status-filter-item{display:inline-flex;align-items:center;gap:7px;transition:.16s ease;background:#fff}
.status-filter-label{display:inline-block!important}
.status-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:#f2f4f7;color:#475467;font-size:11px;font-weight:800;line-height:1}
.status-filter-item.active .status-count{background:rgba(255,255,255,.24);color:#fff}
.status-filter-item.status-received{--st-bg:#e8f5ff;--st-fg:#1769aa;--st-border:#b9dcf5}
.status-filter-item.status-review{--st-bg:#eef0ff;--st-fg:#4d5bc5;--st-border:#d4d8ff}
.status-filter-item.status-waiting-customer{--st-bg:#fff6db;--st-fg:#9a6700;--st-border:#f5d98a}
.status-filter-item.status-approved{--st-bg:#e8f8f4;--st-fg:#087d67;--st-border:#bfe8de}
.status-filter-item.status-in-repair{--st-bg:#fff0e5;--st-fg:#b54708;--st-border:#f7c9a6}
.status-filter-item.status-waiting-part{--st-bg:#fff4e8;--st-fg:#975a16;--st-border:#efcfaa}
.status-filter-item.status-repaired{--st-bg:#eaf8ee;--st-fg:#1f7a3d;--st-border:#c5e7cf}
.status-filter-item.status-ready{--st-bg:#e8f8f8;--st-fg:#087b80;--st-border:#bce6e8}
.status-filter-item.status-delivered{--st-bg:#eef7f1;--st-fg:#246b43;--st-border:#cde4d5}
.status-filter-item.status-rejected{--st-bg:#fff0f0;--st-fg:#b42318;--st-border:#f2c4c0}
.status-filter-item.status-not-repairable{--st-bg:#fbeeee;--st-fg:#8a1c1c;--st-border:#e8bcbc}
.status-filter-item.status-cancelled{--st-bg:#f2f4f7;--st-fg:#667085;--st-border:#d9dde5}
.status-filter-item[class*="status-"]:not(.active):not(.status-default){background:var(--st-bg);color:var(--st-fg);border-color:var(--st-border)}
.status-filter-item[class*="status-"]:not(.active):not(.status-default) .status-count{background:#fff;color:var(--st-fg);box-shadow:inset 0 0 0 1px var(--st-border)}
.status-badge{font-weight:800;border:1px solid transparent}
.status-badge.status-received{background:#e8f5ff;color:#1769aa;border-color:#b9dcf5}
.status-badge.status-review{background:#eef0ff;color:#4d5bc5;border-color:#d4d8ff}
.status-badge.status-waiting-customer{background:#fff6db;color:#9a6700;border-color:#f5d98a}
.status-badge.status-approved{background:#e8f8f4;color:#087d67;border-color:#bfe8de}
.status-badge.status-in-repair{background:#fff0e5;color:#b54708;border-color:#f7c9a6}
.status-badge.status-waiting-part{background:#fff4e8;color:#975a16;border-color:#efcfaa}
.status-badge.status-repaired{background:#eaf8ee;color:#1f7a3d;border-color:#c5e7cf}
.status-badge.status-ready{background:#e8f8f8;color:#087b80;border-color:#bce6e8}
.status-badge.status-delivered{background:#eef7f1;color:#246b43;border-color:#cde4d5}
.status-badge.status-rejected{background:#fff0f0;color:#b42318;border-color:#f2c4c0}
.status-badge.status-not-repairable{background:#fbeeee;color:#8a1c1c;border-color:#e8bcbc}
.status-badge.status-cancelled{background:#f2f4f7;color:#667085;border-color:#d9dde5}
.status-badge.status-default{background:#f2f4f7;color:#475467;border-color:#e4e7ec}
@media(max-width:800px){.status-filter-item{padding:7px 10px}.status-count{min-width:22px;height:22px;padding:0 6px;font-size:10px}}

/* v0.8 - SMS / customer portal / ready-for-delivery */
.detail-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ready-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.ready-card{border:1px solid var(--line,#e1e7ef);border-radius:16px;padding:16px;background:#fff;display:flex;flex-direction:column;gap:12px}
.ready-card-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.ready-card-head strong,.ready-card-head small{display:block}.ready-card-head small{color:#718096;margin-top:4px}.ready-code{font-weight:800;direction:ltr;text-align:right}.ready-info{display:flex;justify-content:space-between;gap:8px;color:#64748b;font-size:13px}.ready-card p{margin:0;min-height:42px}.ready-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}
.success-modal{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:5000;display:grid;place-items:center;padding:18px}.success-card{position:relative;background:#fff;border-radius:22px;width:min(520px,100%);padding:26px;box-shadow:0 24px 70px rgba(15,23,42,.22);text-align:center}.success-close{position:absolute;left:14px;top:10px;border:0;background:transparent;font-size:28px;cursor:pointer}.success-icon{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#dcfce7;color:#15803d;font-size:30px;font-weight:900;margin:0 auto 12px}.success-card h2{margin:0 0 8px}.success-code{direction:ltr;font-weight:900;font-size:22px}.success-card p{color:#64748b}.success-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}
body.public-mode{background:#f2f6fb;min-height:100vh}.public-loading{min-height:100vh;display:grid;place-items:center;font-size:18px}.customer-portal{width:min(760px,100%);margin:0 auto;padding:24px 16px 48px;direction:rtl}.portal-brand{display:flex;align-items:center;gap:12px;margin-bottom:24px}.portal-logo{width:46px;height:46px;border-radius:14px;background:#102544;color:#fff;display:grid;place-items:center;font-size:23px}.portal-brand strong,.portal-brand small{display:block}.portal-brand small{color:#64748b;margin-top:3px}.portal-welcome{margin:20px 0}.portal-welcome span{color:#0f8f9a;font-weight:700}.portal-welcome h1{margin:4px 0 8px;font-size:28px}.portal-welcome p{color:#64748b;margin:0}.portal-card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:18px;margin-bottom:16px;box-shadow:0 8px 28px rgba(15,23,42,.04)}.portal-current-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.portal-current-head small,.portal-current-head h2{display:block}.portal-current-head h2{direction:ltr;margin:4px 0 0}.portal-watch{display:flex;justify-content:space-between;gap:8px;margin-top:18px}.portal-watch span{color:#64748b}.portal-problem{background:#f8fafc;border-radius:12px;padding:12px}.portal-flow{display:flex;overflow:auto;gap:0;padding:16px 0 6px;scrollbar-width:thin}.portal-step{min-width:92px;text-align:center;position:relative;color:#94a3b8}.portal-step:before{content:"";height:2px;background:#e2e8f0;position:absolute;top:17px;right:-50%;left:50%}.portal-step:first-child:before{display:none}.portal-step span{position:relative;z-index:1;width:34px;height:34px;border-radius:50%;background:#f1f5f9;border:2px solid #e2e8f0;display:grid;place-items:center;margin:0 auto 7px;font-weight:800}.portal-step small{font-size:11px;display:block}.portal-step.done span{background:#e0f2f1;border-color:#99d8db;color:#0f8f9a}.portal-step.active span{background:#0f8f9a;border-color:#0f8f9a;color:#fff}.portal-step.done,.portal-step.active{color:#0f5460}.portal-history{border-top:1px solid #eef2f7;margin-top:16px;padding-top:12px}.portal-history h3{font-size:15px}.portal-history>div{display:flex;gap:10px;padding:8px 0}.portal-history-dot{width:10px;height:10px;border-radius:50%;background:#0f8f9a;margin-top:5px;flex:none}.portal-history strong,.portal-history small{display:block}.portal-history small{color:#64748b;margin-top:3px}.portal-repair-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid #eef2f7}.portal-repair-row:last-child{border-bottom:0}.portal-repair-row strong,.portal-repair-row small{display:block}.portal-repair-row strong{direction:ltr;text-align:right}.portal-repair-row small{margin-top:4px;color:#64748b}.portal-footer{text-align:center;color:#94a3b8;font-size:12px;padding:10px}
@media(max-width:980px){.ready-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.ready-grid{grid-template-columns:1fr}.success-actions{grid-template-columns:1fr}.detail-head-actions{width:100%}.detail-head-actions .btn{flex:1}.customer-portal{padding:18px 12px 40px}.portal-card{border-radius:16px;padding:15px}.portal-welcome h1{font-size:23px}.portal-current-head{align-items:center}.portal-watch{flex-direction:column}.portal-repair-row{align-items:flex-start}.ready-actions .btn{width:100%}}

/* v0.8.1 - responsive overflow + customer portal flow hotfix */
html,body{max-width:100%;overflow-x:hidden}
.shell,.main,#page,.panel,.detail-grid,.detail-grid>*{min-width:0;max-width:100%}
.main{overflow-x:hidden}

/* Admin repair detail: never let workflow create page-level horizontal scroll */
.status-flow{width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.workflow-action{min-width:0}
.workflow-action input{min-width:0;width:100%}
.attachment-grid{min-width:0}
.attachment-card{min-width:0}

/* Public customer portal */
body.public-mode{overflow-x:hidden}
body.public-mode #app{width:100%;max-width:100%;overflow-x:hidden}
.customer-portal{box-sizing:border-box;width:min(820px,100%);max-width:100%;overflow-x:hidden}
.portal-card{min-width:0;max-width:100%;overflow:hidden}
.portal-current-head>*{min-width:0}
.portal-current-head h2{overflow-wrap:anywhere}
.portal-watch>*{min-width:0;overflow-wrap:anywhere}
.portal-problem{overflow-wrap:anywhere;word-break:break-word}

/* Desktop/tablet: all steps fit inside card without a horizontal scrollbar */
.portal-flow{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:0;width:100%;max-width:100%;overflow:visible;padding:18px 2px 8px}
.portal-step{min-width:0;width:auto;position:relative;text-align:center;color:#94a3b8;padding-inline:2px}
.portal-step:before{right:-50%;left:50%;width:auto}
.portal-step span{width:32px;height:32px;font-size:11px}
.portal-step small{font-size:10px;line-height:1.65;white-space:normal;overflow-wrap:anywhere}

@media(max-width:800px){
  .detail-grid{grid-template-columns:1fr}
  .workflow-action{grid-template-columns:1fr}
  .workflow-action .btn{width:100%}
  .status-flow{padding-bottom:10px}
}

/* Mobile portal: vertical timeline is easier to read and has no sideways scrolling */
@media(max-width:680px){
  .customer-portal{width:100%;padding:14px 10px 34px}
  .portal-card{padding:14px;border-radius:15px}
  .portal-current-head{align-items:flex-start;flex-wrap:wrap}
  .portal-current-head .badge{flex:none}
  .portal-watch{gap:4px}
  .portal-flow{display:flex;flex-direction:column;gap:0;padding:12px 0 4px;overflow:visible}
  .portal-step{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;text-align:right;min-height:46px;padding:0;color:#7b8798}
  .portal-step:before{content:"";position:absolute;right:15px;top:29px;bottom:-17px;left:auto;width:2px;height:auto;background:#e2e8f0}
  .portal-step:last-child:before{display:none}
  .portal-step span{margin:0;width:32px;height:32px;grid-column:1}
  .portal-step small{grid-column:2;font-size:13px;line-height:1.7;padding-right:8px}
  .portal-step.done:before{background:#99d8db}
  .portal-history>div{align-items:flex-start}
  .portal-history small{line-height:1.8}
  .portal-repair-row{flex-direction:column;align-items:stretch;gap:8px}
  .portal-repair-row .badge{align-self:flex-start}
}

/* v0.8.2 - all status filters visible + semantic active colors + strict workflow UI */
.status-filter{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(138px,1fr));
  gap:8px;
  overflow:visible!important;
  padding:4px 0 12px!important;
  margin:0!important;
  width:100%;
}
.status-filter-item{
  width:100%;
  min-width:0;
  justify-content:space-between;
  white-space:normal;
  text-align:right;
  border-radius:12px;
  min-height:42px;
}
.status-filter-item.status-default{background:#eef8f9;color:#0f7d89;border-color:#b9e1e5}
.status-filter-item.status-default.active{background:#148997;color:#fff;border-color:#148997;box-shadow:0 0 0 3px rgba(20,137,151,.12)}
.status-filter-item[class*="status-"]:not(.status-default){background:var(--st-bg)!important;color:var(--st-fg)!important;border-color:var(--st-border)!important}
.status-filter-item[class*="status-"]:not(.status-default) .status-count{background:#fff!important;color:var(--st-fg)!important;box-shadow:inset 0 0 0 1px var(--st-border)!important}
.status-filter-item[class*="status-"]:not(.status-default).active{box-shadow:0 0 0 3px color-mix(in srgb,var(--st-border) 65%,transparent);font-weight:900;transform:none}
.status-filter-item[class*="status-"]:not(.status-default).active::after{content:"✓";font-weight:900;color:var(--st-fg)}

/* Workflow steps use the same semantic status colors. Locked steps stay visible but clearly unavailable. */
.status-step[class*="status-"]>span{background:var(--st-bg,#f1f5f9);color:var(--st-fg,#64748b);border-color:var(--st-border,#dfe5ec)}
.status-step.allowed{opacity:1;cursor:pointer}
.status-step.allowed>span{box-shadow:0 0 0 3px rgba(20,137,151,.08)}
.status-step.locked:not(.active):not(.done){opacity:.48;filter:saturate(.65)}
.status-step.active>span{outline:3px solid rgba(20,137,151,.18);outline-offset:2px}
.status-step.done{opacity:.82}
.status-exception{font-weight:800}
.status-exception:disabled{opacity:.38;cursor:not-allowed;filter:saturate(.45)}

@media(max-width:1200px){.status-filter{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:800px){.status-filter{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.status-filter-item{min-height:44px;padding:8px 10px}}
@media(max-width:430px){.status-filter{grid-template-columns:1fr 1fr}.status-filter-label{font-size:12px}.status-count{min-width:22px}}
.status-received{--st-bg:#e8f5ff;--st-fg:#1769aa;--st-border:#b9dcf5}
.status-review{--st-bg:#eef0ff;--st-fg:#4d5bc5;--st-border:#d4d8ff}
.status-waiting-customer{--st-bg:#fff6db;--st-fg:#9a6700;--st-border:#f5d98a}
.status-approved{--st-bg:#e8f8f4;--st-fg:#087d67;--st-border:#bfe8de}
.status-in-repair{--st-bg:#fff0e5;--st-fg:#b54708;--st-border:#f7c9a6}
.status-waiting-part{--st-bg:#fff4e8;--st-fg:#975a16;--st-border:#efcfaa}
.status-repaired{--st-bg:#eaf8ee;--st-fg:#1f7a3d;--st-border:#c5e7cf}
.status-ready{--st-bg:#e8f8f8;--st-fg:#087b80;--st-border:#bce6e8}
.status-delivered{--st-bg:#e5f4ea;--st-fg:#1f6b3d;--st-border:#b8ddc6}
.status-rejected{--st-bg:#fff0f0;--st-fg:#b42318;--st-border:#f2c4c0}
.status-not-repairable{--st-bg:#fbeeee;--st-fg:#8a1c1c;--st-border:#e8bcbc}
.status-cancelled{--st-bg:#f2f4f7;--st-fg:#667085;--st-border:#d9dde5}


/* v0.9 - repair detail photo caption hotfix + optional technician assignment */
/* Old .attachment-grid span selector positioned the timestamp against the page and created the dark full-width bar. */
.attachment-card{position:relative!important}
.attachment-grid .attachment-card span{position:static!important;inset:auto!important;background:transparent!important;color:var(--muted)!important;text-align:right!important;padding:6px 7px!important}
.attachment-grid{overflow:visible!important}
.technician-panel{margin-top:14px}
.technician-assign{display:grid;grid-template-columns:minmax(260px,420px) auto;gap:10px;align-items:center}
.technician-assign select{height:42px;border:1px solid #d9deea;border-radius:9px;padding:8px 11px;font:inherit;background:#fff}
@media(max-width:800px){.technician-assign{grid-template-columns:1fr}.technician-assign .btn{width:100%}}

/* v1.0 - semantic dashboard colors + real workflow journey with controlled return to repair */
.semantic-metric[class*="status-"]{border-color:var(--st-border);background:linear-gradient(180deg,#fff 0%,var(--st-bg) 180%)}
.semantic-metric[class*="status-"] .metric-icon{background:var(--st-bg);color:var(--st-fg);box-shadow:inset 0 0 0 1px var(--st-border)}
.semantic-metric[class*="status-"] b{color:var(--st-fg)}
.status-summary-item[class*="status-"]{background:var(--st-bg)!important;border-color:var(--st-border)!important;color:var(--st-fg)}
.status-summary-item[class*="status-"] b{color:var(--st-fg)!important}
.recent-row .status-badge{justify-self:start}

.actual-journey{border-top:1px solid var(--line);margin-top:14px;padding-top:14px}
.actual-journey-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.actual-journey-head strong{font-size:14px}.actual-journey-head small{color:var(--muted);line-height:1.8}
.journey-chain{display:flex;align-items:stretch;gap:7px;overflow-x:auto;padding:4px 2px 10px;scrollbar-width:thin;direction:rtl}
.journey-node{flex:0 0 auto;min-width:150px;display:flex;gap:8px;align-items:flex-start;border:1px solid var(--st-border,#dfe5ec);background:var(--st-bg,#f8fafc);color:var(--st-fg,#475467);border-radius:12px;padding:10px 11px}
.journey-node>div{min-width:0}.journey-node strong,.journey-node small,.journey-node em,.journey-node p{display:block}
.journey-node strong{font-size:13px}.journey-node small{color:#667085;margin-top:4px;font-size:11px}.journey-node em{font-style:normal;font-size:10px;font-weight:900;color:#b54708;margin-top:3px}.journey-node p{margin:5px 0 0;color:#667085;font-size:11px;max-width:220px;white-space:normal}
.journey-dot{width:11px;height:11px;border-radius:50%;background:var(--st-fg,#667085);margin-top:4px;flex:none;box-shadow:0 0 0 4px rgba(255,255,255,.72)}
.journey-arrow{display:grid;place-items:center;flex:0 0 22px;font-size:18px;color:#98a2b3;font-weight:900}.journey-arrow.back{color:#b54708;font-size:22px}
.journey-return{box-shadow:0 0 0 2px #f79009 inset}.journey-return em{color:#b54708}
.portal-journey{border-top:1px solid #eef2f7;margin-top:16px;padding-top:14px}.portal-journey h3{margin:0 0 4px;font-size:15px}.portal-journey>p{margin:0 0 10px;color:#64748b;font-size:12px;line-height:1.8}
.customer-portal .journey-chain.compact{padding-bottom:4px}.customer-portal .journey-chain.compact .journey-node{min-width:132px;padding:9px}.customer-portal .journey-chain.compact .journey-node p{display:none}
.status-step.visited:not(.active)>span{box-shadow:0 0 0 2px color-mix(in srgb,var(--st-border,#dfe5ec) 60%,transparent)}

@media(max-width:800px){
  .actual-journey-head{display:block}.actual-journey-head small{display:block;margin-top:4px}
  .journey-chain,.journey-chain.compact{display:flex;flex-direction:column;overflow:visible;gap:0;padding:2px 0}
  .journey-node,.customer-portal .journey-chain.compact .journey-node{width:100%;min-width:0;border-radius:10px}
  .journey-arrow{height:24px;min-height:24px;transform:rotate(-90deg);margin:0 auto}.journey-arrow.back{transform:none;height:30px}
  .customer-portal .journey-chain.compact .journey-node p{display:block}
}

/* v1.0.1 - no horizontal workflow scrolling + hide zero-count status filters */
.status-filter-item.status-empty{display:none!important}

/* Keep the main repair workflow fully visible without a horizontal scrollbar. */
.status-flow{
  display:grid!important;
  grid-template-columns:repeat(9,minmax(0,1fr));
  gap:8px!important;
  overflow:visible!important;
  padding:10px 0 14px!important;
}
.status-flow .status-step{
  min-width:0!important;
  width:100%;
  padding:8px 4px 6px;
  border-radius:12px!important;
  background:var(--st-bg,#f8fafc)!important;
  border:1px solid var(--st-border,#e4e7ec)!important;
}
.status-flow .status-step:after{display:none!important}
.status-flow .status-step>span{margin-bottom:5px!important}
.status-flow .status-step small{white-space:normal!important;line-height:1.55;font-size:11px;min-height:34px}
.status-flow .status-step.active{box-shadow:0 0 0 2px var(--st-border,#dfe5ec) inset}

/* Real journey: cards wrap instead of forcing sideways scrolling. */
.journey-chain,
.journey-chain.compact{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px!important;
  overflow:visible!important;
  padding:4px 0 8px!important;
  direction:rtl;
}
.journey-node,
.customer-portal .journey-chain.compact .journey-node{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  box-sizing:border-box;
}
.journey-arrow{display:none!important}
.journey-node p{max-width:none!important}

@media(max-width:1200px){
  .status-flow{grid-template-columns:repeat(5,minmax(0,1fr))}
  .journey-chain,.journey-chain.compact{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:800px){
  .status-flow{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px!important}
  .journey-chain,.journey-chain.compact{grid-template-columns:1fr!important;gap:7px!important}
  .status-flow .status-step small{font-size:10.5px;min-height:32px}
}
@media(max-width:460px){
  .status-flow{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* v1.0.2 mobile navigation: use an off-canvas drawer instead of a large sticky bar */
.mobile-nav-open,.mobile-nav-close,.sidebar-overlay{display:none}
@media(max-width:800px){
  .shell{display:block}
  .sidebar{
    position:fixed!important;
    top:0!important;
    right:0;
    bottom:0;
    width:min(82vw,320px);
    height:100dvh!important;
    z-index:1000;
    padding:calc(14px + env(safe-area-inset-top)) 12px calc(14px + env(safe-area-inset-bottom))!important;
    transform:translateX(105%);
    transition:transform .22s ease;
    overflow-y:auto;
    box-shadow:-18px 0 40px rgba(4,18,40,.22);
  }
  .shell.mobile-nav-active .sidebar{transform:translateX(0)}
  .side-brand{display:flex!important;border-bottom:1px solid #ffffff17!important;margin-bottom:12px!important;padding:4px 4px 14px!important}
  .side-brand .mobile-nav-close{margin-right:auto}
  .mobile-nav-close{
    display:grid;width:36px;height:36px;place-items:center;border:0;border-radius:10px;
    background:#ffffff12;color:#fff;font-size:24px;cursor:pointer
  }
  .nav{display:block!important;overflow:visible!important;padding:0!important}
  .nav-title{display:block!important}
  .nav button{width:100%!important;white-space:normal!important;font-size:14px!important;min-height:44px!important;padding:10px 12px!important}
  .sidebar-overlay{
    display:block;position:fixed;inset:0;z-index:999;background:rgba(5,18,38,.38);
    opacity:0;visibility:hidden;transition:.2s
  }
  .shell.mobile-nav-active .sidebar-overlay{opacity:1;visibility:visible}
  .mobile-nav-open{
    display:grid;width:42px;height:42px;place-items:center;border:1px solid var(--border);border-radius:11px;
    background:#fff;color:var(--text);font-size:22px;cursor:pointer;flex:0 0 auto
  }
  .topbar{position:sticky!important;top:0!important;z-index:80!important;background:var(--bg)!important}
  .main{padding-top:0!important}
}

/* v1.1 - reception SMS shortcut + customer/staff messaging */
.reception-sms-toggle{min-height:44px;padding:10px 12px;border:1px solid #d9e4ef;border-radius:12px;background:#f8fbfd;align-items:flex-start}.reception-sms-toggle span{line-height:1.8}
.message-metric.has-unread{border-color:#f2c97d;background:#fffaf0}.message-metric.has-unread .metric-icon{background:#fff1cc;color:#9a6700}
.message-count-badge{background:#fff4d6;color:#8a5b00;border:1px solid #f2d18a}
.customer-message-alerts{border-color:#f4d596}.customer-message-alert-list{display:grid;gap:8px}.customer-message-alert{width:100%;border:1px solid #edf1f5;background:#fff;border-radius:12px;padding:12px 14px;display:flex;justify-content:space-between;gap:14px;align-items:flex-start;text-align:right;cursor:pointer}.customer-message-alert:hover{background:#fffaf2;border-color:#efd69c}.customer-message-alert strong,.customer-message-alert p{display:block}.customer-message-alert p{margin:5px 0 0;color:#526174;line-height:1.8}.customer-message-alert time{white-space:nowrap;color:#8a97a8;font-size:12px}
.repair-messages-panel{border-color:#d9e8ec}.repair-message-thread{display:grid;gap:10px;max-width:980px}.repair-message{max-width:78%;border-radius:14px;padding:11px 13px;border:1px solid #e3eaf0}.repair-message.from-customer{justify-self:end;background:#f0fafb;border-color:#bee4e8}.repair-message.from-staff{justify-self:start;background:#f8fafc}.repair-message-meta{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:6px}.repair-message-meta strong{font-size:13px}.repair-message-meta time{font-size:11px;color:#8b98a8;white-space:nowrap}.repair-message p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}.repair-message-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin-top:14px;max-width:980px}.repair-message-compose textarea{min-width:0}
.portal-messages-card{overflow:visible}.portal-message-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}.portal-message-head h3{margin:0 0 4px}.portal-message-head p{margin:0;color:#64748b;line-height:1.8}.portal-message-head>span{white-space:nowrap;background:#edf9fa;color:#0f7f89;border-radius:999px;padding:5px 9px;font-size:12px}.portal-message-thread{display:grid;gap:9px;margin:10px 0 14px}.portal-message{max-width:86%;padding:10px 12px;border-radius:14px;border:1px solid #e2e8f0}.portal-message.mine{justify-self:end;background:#eaf8fa;border-color:#bae1e5}.portal-message.shop{justify-self:start;background:#f7f9fc}.portal-message-meta{display:flex;justify-content:space-between;gap:16px;margin-bottom:5px}.portal-message-meta strong{font-size:12px}.portal-message-meta time{font-size:10px;color:#8b98a8;white-space:nowrap}.portal-message p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}.portal-message-empty{border:1px dashed #dbe4ec;border-radius:12px;padding:14px;text-align:center;color:#7d8a9a}.portal-message-compose textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:88px;font:inherit;font-size:16px;border:1px solid #d9e3ed;border-radius:12px;padding:11px 12px;outline:none}.portal-message-compose textarea:focus{border-color:#79c8cf;box-shadow:0 0 0 3px rgba(15,143,154,.08)}.portal-message-compose>div{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:8px}.portal-message-compose small{color:#7e8b9b;line-height:1.7}
@media(max-width:680px){.customer-message-alert{flex-direction:column}.customer-message-alert time{align-self:flex-start}.repair-message{max-width:94%}.repair-message-compose{grid-template-columns:1fr}.repair-message-compose .btn{width:100%}.portal-message{max-width:94%}.portal-message-head{flex-direction:column}.portal-message-compose>div{flex-direction:column;align-items:stretch}.portal-message-compose .btn{width:100%;min-height:46px}}

/* v1.2 - action-driven repair workflow */
.status-flow-readonly .status-step{cursor:default!important;pointer-events:none}
.next-action-section{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.next-action-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.next-action-head>div{display:flex;flex-direction:column;gap:3px}.next-action-head .eyebrow{font-size:11px;color:var(--muted)}.next-action-head>div>strong{font-size:18px}.next-action-head>div>small{color:var(--muted)}
.next-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.next-action-card{min-width:0;border:1px solid var(--line);background:#fff;border-radius:14px;padding:14px;text-align:right;display:flex;align-items:center;gap:12px;cursor:pointer;font:inherit;transition:.18s ease}.next-action-card:hover{transform:translateY(-1px);border-color:var(--st-border,#bddde0);box-shadow:0 8px 20px #10213b0d}.next-action-card:focus-visible{outline:3px solid #8ad7db;outline-offset:2px}.next-action-card strong{display:block;font-size:14px;margin-bottom:4px}.next-action-card small{display:block;color:var(--muted);line-height:1.8}.next-action-icon{width:42px;height:42px;flex:0 0 42px;border-radius:12px;display:grid;place-items:center;background:var(--st-bg,#eef8f9);color:var(--st-text,#177f88);font-size:19px;font-weight:900}.action-warning{border-color:#f0c78f;background:#fffaf4}.action-danger{border-color:#f2c4c4;background:#fffafa}.action-secondary{background:#fbfcfe}.workflow-final-note{padding:14px;border:1px dashed var(--line);border-radius:12px;color:var(--muted);background:#fafbfd}.other-actions{margin-top:12px}.other-actions summary{cursor:pointer;color:var(--muted);font-weight:700;display:inline-flex;padding:7px 0}.other-actions-list{display:flex;gap:8px;flex-wrap:wrap;padding-top:8px}.other-action-btn{border:1px solid var(--st-border,#e2e7ef);background:var(--st-bg,#fff);color:var(--st-text,#5f6c80);border-radius:10px;padding:9px 12px;font:inherit;cursor:pointer}.workflow-confirm{margin-top:14px;border:1px solid #cfe6e8;background:#f8fcfc;border-radius:14px;padding:14px;display:grid;grid-template-columns:minmax(180px,.8fr) minmax(260px,1.4fr) auto;gap:12px;align-items:center}.workflow-confirm.hidden{display:none}.workflow-confirm-copy{display:flex;flex-direction:column}.workflow-confirm-copy span{font-size:11px;color:var(--muted)}.workflow-confirm-copy strong{margin:3px 0}.workflow-confirm-copy small{color:var(--muted)}.workflow-confirm textarea{width:100%;min-width:0;border:1px solid #d9deea;border-radius:10px;padding:10px 12px;font:inherit;resize:vertical}.workflow-confirm textarea.required-note{border-color:#e9a86b;background:#fffaf5}.workflow-confirm-actions{display:flex;gap:7px;flex-wrap:wrap}.workflow-confirm-actions .btn{white-space:nowrap}
@media(max-width:900px){.next-action-grid{grid-template-columns:1fr}.workflow-confirm{grid-template-columns:1fr}.workflow-confirm-actions .btn{flex:1}}
@media(max-width:560px){.next-action-head{align-items:flex-start;flex-direction:column}.next-action-card{padding:12px}.next-action-icon{width:38px;height:38px;flex-basis:38px}.workflow-confirm-actions{display:grid;grid-template-columns:1fr 1fr}.other-actions-list{display:grid;grid-template-columns:1fr}.other-action-btn{width:100%}}

/* v1.3 - compact fixed mobile bottom navigation */
.mobile-bottom-nav{display:none}
@media(max-width:800px){
  .mobile-bottom-nav{
    position:fixed;z-index:950;right:0;left:0;bottom:0;
    min-height:62px;height:calc(62px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);
    display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;
    background:rgba(255,255,255,.985);border:1px solid var(--border);border-bottom:0;border-radius:18px 18px 0 0;
    box-shadow:0 -8px 24px rgba(15,35,65,.10);overflow:hidden;box-sizing:border-box;
    backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)
  }
  .mobile-bottom-nav button{
    min-width:0;border:0;background:transparent;color:#64748b;font:inherit;font-size:10.5px;font-weight:700;
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:5px 2px;cursor:pointer
  }
  .mobile-bottom-nav button .ico{font-size:19px;line-height:1;color:#3c8790}
  .mobile-bottom-nav button:hover,.mobile-bottom-nav button.active{background:#edf9fa;color:#0f7f89}
  .mobile-bottom-nav button.active .ico{color:#0f8f9a}
  .mobile-bottom-nav .mobile-more-btn .ico{font-size:16px;letter-spacing:1px}
  .main{padding-bottom:calc(76px + env(safe-area-inset-bottom))!important}
  .mobile-nav-open{display:none!important}
  .topbar{min-height:70px}
  .userbox{gap:7px}
  .user-meta{display:none}
  .sidebar .nav button[data-p="dashboard"],
  .sidebar .nav button[data-p="newrepair"],
  .sidebar .nav button[data-p="repairs"],
  .sidebar .nav button[data-p="ready"]{display:none!important}
}
@media(max-width:390px){
  .mobile-bottom-nav{right:0;left:0;min-height:60px;height:calc(60px + env(safe-area-inset-bottom));border-radius:16px 16px 0 0}
  .mobile-bottom-nav button{font-size:9.5px}
  .mobile-bottom-nav button .ico{font-size:18px}
}

/* v1.3.1 - iOS flush bottom nav + digit normalization display */
@media(max-width:800px){html,body{overscroll-behavior-y:none}.mobile-bottom-nav{transform:translateZ(0);-webkit-transform:translateZ(0)}body{padding-bottom:0!important}}

/* v1.3.2 checkbox/radio hardening + reliable iOS reception success */
input.check,
.field input.check,
.switchline input.check,
.permission-table input.check{
  -webkit-appearance:none!important;
  appearance:none!important;
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  min-height:22px!important;
  max-width:22px!important;
  max-height:22px!important;
  padding:0!important;
  margin:0!important;
  border:2px solid #c9d5df!important;
  border-radius:6px!important;
  background:#fff!important;
  box-shadow:none!important;
  flex:0 0 22px!important;
  cursor:pointer;
  vertical-align:middle;
  background-position:center!important;
  background-repeat:no-repeat!important;
  background-size:14px 14px!important;
}
input.check:checked,
.field input.check:checked,
.switchline input.check:checked,
.permission-table input.check:checked{
  border-color:var(--primary)!important;
  background-color:var(--primary)!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5 6.5 12 13 4.5'/%3E%3C/svg%3E")!important;
}
input.check:focus-visible{outline:3px solid #14899728!important;outline-offset:2px}
.switchline{height:auto;min-height:42px;align-items:center}
.switchline>span{min-width:0;line-height:1.7}
.reception-sms-toggle{display:flex!important;align-items:center!important;gap:10px!important}
.reception-sms-toggle input.check{align-self:center}
.sms-next-action{box-shadow:0 0 0 4px var(--primarySoft)}
@media(max-width:800px){
  input.check,.field input.check,.switchline input.check,.permission-table input.check{
    width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;max-width:24px!important;max-height:24px!important;font-size:initial!important;
  }
  .reception-sms-toggle{padding:11px 12px!important}
  .reception-sms-toggle span{font-size:14px!important}
  .success-card{max-height:calc(100svh - 32px);overflow:auto}
  .success-actions .btn{width:100%}
}

/* v1.4 - fast reception + money inputs + finance workflow */
.reception-core-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:16px;align-items:start}
.reception-photo-block,.reception-problem-block{min-width:0}.reception-problem-block{display:grid;gap:12px}
.primary-photo{background:var(--primary)!important;color:#fff!important;border-color:var(--primary)!important}
.finance-reception-grid{align-items:end}.money-input{position:relative}.money-input input{padding-left:66px!important}.money-input span{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:12px;color:var(--muted);pointer-events:none}
.pretty-check{display:flex;align-items:center;gap:10px;min-height:48px;border:1px solid var(--border);border-radius:12px;padding:10px 12px;background:#fbfdff;cursor:pointer}.pretty-check input{position:absolute;opacity:0;pointer-events:none}.pretty-check-box{width:24px;height:24px;flex:0 0 24px;border:2px solid #c9d5df;border-radius:7px;display:grid;place-items:center;color:transparent;background:#fff;font-weight:900}.pretty-check input:checked+.pretty-check-box{background:var(--primary);border-color:var(--primary);color:#fff}.pretty-check strong,.pretty-check small{display:block}.pretty-check small{color:var(--muted);font-size:11px;margin-top:2px}.sms-check{height:100%}.reception-extra{margin-top:12px;border:1px dashed var(--border);border-radius:12px;padding:0 12px;background:#fbfcfe}.reception-extra summary{cursor:pointer;padding:12px 2px;font-weight:800;color:#53647a}.reception-extra[open] summary{border-bottom:1px solid var(--line);margin-bottom:12px}.reception-actions{position:sticky;bottom:10px;background:rgba(255,255,255,.96);padding:10px;border:1px solid var(--border);border-radius:14px;box-shadow:0 8px 26px rgba(20,40,70,.08);z-index:20}
.workflow-finance-box{grid-column:1/-1;border:1px solid #dbe8ef;background:#fff;border-radius:12px;padding:12px}.workflow-finance-box.hidden{display:none}.finance-summary-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}.finance-summary-strip>div{padding:10px;border-radius:10px;background:#f7fafc;border:1px solid #edf1f5}.finance-summary-strip small,.finance-summary-strip strong{display:block}.finance-summary-strip small{color:var(--muted);font-size:11px}.finance-summary-strip strong{margin-top:4px}.finance-preview{margin-top:8px;padding:9px 11px;border-radius:10px;background:#f0faf7;color:#18794e}.has-due{color:#c2410c!important}.ready-finance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0}.ready-finance span{padding:7px 8px;background:#f8fafc;border:1px solid #edf1f5;border-radius:9px;font-size:11px}.finance-ready-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.finance-ready-summary>div{padding:10px;border-radius:10px;background:#f7fafc}.finance-ready-summary small,.finance-ready-summary strong{display:block}.finance-ready-summary small{color:var(--muted);font-size:11px}.finance-ready-summary strong{margin-top:4px}
@media(max-width:800px){.reception-core-grid{grid-template-columns:1fr}.finance-summary-strip,.finance-ready-summary,.ready-finance{grid-template-columns:1fr}.reception-actions{bottom:calc(68px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr 1fr}.reception-actions .btn{width:100%}.money-input input{font-size:16px!important}.workflow-finance-box{padding:10px}}
.portal-finance-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.portal-finance-summary>div{padding:10px;border:1px solid #e7edf2;border-radius:10px;background:#f8fafc}.portal-finance-summary small,.portal-finance-summary strong{display:block}.portal-finance-summary small{color:#6b7788;font-size:11px}.portal-finance-summary strong{margin-top:4px}@media(max-width:560px){.portal-finance-summary{grid-template-columns:1fr}}

/* v1.5 - Cando Service branding + service types + mobile-first fast reception */
.cando-product{display:flex;align-items:center;gap:18px;max-width:560px}.cando-product h2{font-size:38px;margin:0 0 6px}.cando-product>div:last-child>strong{display:block;font-size:17px;margin-bottom:12px}.cando-product p{max-width:480px;line-height:2}.cando-product small{display:block;margin-top:18px;opacity:.78;font-weight:700}
.cando-service-mark{width:76px;height:76px;display:grid;place-items:center;flex:0 0 76px;border-radius:24px;background:linear-gradient(145deg,#1da6b2,#176c82);color:#fff;box-shadow:0 14px 34px rgba(17,109,132,.24);position:relative}.cando-service-mark:before,.cando-service-mark:after{content:"";position:absolute;border:2px solid rgba(255,255,255,.35);border-radius:18px;inset:9px}.cando-service-mark:after{inset:17px;border-radius:12px}.cando-service-mark span{font-size:32px;line-height:1;z-index:1}.cando-service-mark.small{width:42px;height:42px;flex-basis:42px;border-radius:13px;box-shadow:none}.cando-service-mark.small:before{inset:5px;border-radius:10px}.cando-service-mark.small:after{display:none}.cando-service-mark.small span{font-size:18px}.login-product-mini{display:flex;align-items:center;gap:10px;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--line)}.login-product-mini>div:last-child{display:flex;flex-direction:column}.login-product-mini small{color:var(--muted);font-size:11px;margin-top:2px}
.reception-mobile-intro{display:none}.service-type-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.service-type-head strong,.service-type-head small{display:block}.service-type-head small{font-size:11px;color:var(--muted);margin-top:3px}.service-type-choices{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.service-type-chip{border:1px solid #d9e5ec;background:#fff;color:#40516a;border-radius:999px;padding:9px 13px;min-height:40px;font:inherit;font-weight:700;cursor:pointer;display:inline-flex;gap:7px;align-items:center;transition:.16s}.service-type-chip span{width:18px;height:18px;border:1px solid #cad8e1;border-radius:50%;display:grid;place-items:center;color:transparent;font-size:10px}.service-type-chip.selected{background:#e8f8f9;border-color:#8bd3d8;color:#0c7780}.service-type-chip.selected span{background:#17939e;border-color:#17939e;color:#fff}.reception-problem-field textarea{min-height:112px}.important-money input{font-weight:900!important;font-size:19px!important;color:#12314a}.reception-final-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-top:12px}.service-editor{max-width:520px}.service-editor .field{margin-bottom:12px}
.repair-service-types{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.repair-service-types .chip{background:#edf8f8;color:#16737b;border:1px solid #c6e8ea}

@media(max-width:800px){
  .cando-product{justify-content:center;text-align:center;flex-direction:column}.cando-product h2{font-size:28px}.login-product-mini{margin-bottom:14px}
  #page>.panel{margin-bottom:10px!important}.reception-mobile-intro{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;margin:0 0 9px;border-radius:12px;background:#eaf7f8;color:#176f78}.reception-mobile-intro strong{font-size:14px}.reception-mobile-intro span{font-size:11px;color:#54727a}
  #page>.panel .panel-head{margin-bottom:10px}.section-title{align-items:flex-start}.section-title h3{font-size:16px!important}.section-title p{font-size:11px;line-height:1.7;margin-top:2px}.section-num{width:30px!important;height:30px!important;min-width:30px!important}
  .service-type-head{align-items:flex-start}.service-type-head .btn{font-size:11px;padding:7px 9px}.service-type-choices{gap:7px}.service-type-chip{padding:8px 10px;min-height:38px;font-size:12.5px}
  .reception-problem-field textarea{min-height:94px}.photo-actions{display:grid!important;grid-template-columns:1fr 1fr}.photo-actions .photo-btn{min-height:44px!important;padding:9px!important;font-size:12.5px!important}.photo-grid{gap:7px!important}.photo-item img{height:96px!important}
  .finance-reception-grid{grid-template-columns:1fr 1fr!important}.finance-reception-grid>.field{grid-column:auto!important}.finance-reception-grid>.inline-option{grid-column:1/-1!important}.money-input input{min-height:48px!important}.important-money input{font-size:18px!important}
  .reception-extra{margin-top:0}.reception-extra summary{min-height:46px;display:flex;align-items:center}.reception-final-options{grid-template-columns:1fr;gap:9px}.compact-check{min-height:44px!important;padding:8px 10px!important}.compact-check .pretty-check-box{width:22px;height:22px;flex-basis:22px}.compact-check strong{font-size:13px}.compact-check small{font-size:10.5px}
  .reception-actions{position:sticky!important;bottom:calc(62px + env(safe-area-inset-bottom))!important;margin:8px -4px 0!important;padding:8px!important;border-radius:13px!important;z-index:25!important}.reception-actions .btn{min-height:46px!important;font-size:14px!important}
  .main{padding-bottom:calc(142px + env(safe-area-inset-bottom))!important}
}
@media(max-width:430px){
  .reception-mobile-intro{align-items:flex-start;flex-direction:column}.service-type-head{flex-direction:column}.service-type-head .btn{width:100%}.finance-reception-grid{grid-template-columns:1fr!important}.finance-reception-grid>.field{grid-column:1/-1!important}.photo-actions{grid-template-columns:1fr 1fr}.service-type-chip{font-size:12px;padding:7px 9px}.reception-actions{grid-template-columns:.75fr 1.25fr!important}.reception-actions .btn:first-child{order:1}.reception-actions .btn:last-child{order:2}
}

/* v1.6 checklist, expenses and refined Cando Service identity */
html,body,button,input,select,textarea{font-family:"Vazirmatn",Tahoma,Arial,sans-serif!important}
.cando-service-mark{position:relative;overflow:visible;background:transparent!important;border:0!important;box-shadow:none!important}.cando-service-mark span{font-size:0}.cando-service-mark:before,.cando-service-mark:after{content:"";position:absolute;inset:12%;border-radius:7px;transform:rotate(30deg) skewY(-8deg)}.cando-service-mark:before{background:linear-gradient(135deg,#18b8c4,#138a9c);box-shadow:-9px 9px 0 #203b80}.cando-service-mark:after{inset:30%;background:#fff;box-shadow:12px -12px 0 #b8df18}
.repair-work-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:14px;margin-bottom:14px}.service-checklist{display:grid;gap:9px}.service-task{display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,1fr) auto;gap:8px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:9px;background:#fff}.service-task-state{display:flex;align-items:center;gap:10px;text-align:right;border:0;background:transparent;font:inherit;cursor:pointer}.service-task-state>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#f2f4f7;font-weight:900}.service-task-state div{display:flex;flex-direction:column}.service-task-state small{color:var(--muted)}.service-task-done{background:#f2fbf5;border-color:#bfe3c9}.service-task-done .service-task-state>span{background:#dff4e5;color:#1f7a3d}.service-task-inprogress{background:#fff8ef;border-color:#f0d0aa}.service-task-inprogress .service-task-state>span{background:#ffedd5;color:#b54708}.service-task-notpossible{background:#fff3f2;border-color:#f1c5c0}.service-result{height:40px;border:1px solid var(--line);border-radius:9px;padding:7px 10px;font:inherit}.expense-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:10px}.expense-summary>div{background:#f7f9fc;border:1px solid var(--line);border-radius:10px;padding:9px;display:flex;flex-direction:column}.expense-summary small{color:var(--muted)}.expense-list{display:grid;gap:7px}.expense-row{display:grid;grid-template-columns:1fr auto 28px;align-items:center;gap:8px;padding:9px;border:1px solid var(--line);border-radius:10px}.expense-row>div:first-child{display:flex;flex-direction:column}.expense-row small{color:var(--muted)}.expense-values{display:flex;flex-direction:column;text-align:left;font-size:12px}.expense-delete{border:0;background:#fff0f0;color:#b42318;border-radius:7px;height:28px;cursor:pointer}.expense-editor{width:min(560px,94vw)!important}.portal-service-checklist{margin:14px 0;padding:12px;border-radius:13px;background:#f8fafc;border:1px solid #e5e9f0}.portal-service-checklist h3{margin:0 0 9px}.portal-service-row{display:flex;gap:9px;align-items:center;padding:8px 0;border-bottom:1px solid #e9edf3}.portal-service-row:last-child{border-bottom:0}.portal-service-row>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#fff;border:1px solid #d7dde7}.portal-service-row>div{display:flex;flex-direction:column}.portal-service-row small{color:#7b8496}.portal-service-row.done>span{background:#e4f6e9;color:#19723a;border-color:#bfe3c9}.portal-service-row.blocked>span{background:#fff0f0;color:#b42318}.portal-journey-collapsed{padding:0!important}.portal-journey-collapsed summary{list-style:none;cursor:pointer;display:inline-flex;padding:7px 11px;border:1px solid #cbd5e1;border-radius:9px;font-weight:700;color:#476071;background:#fff}.portal-journey-collapsed summary::-webkit-details-marker{display:none}.portal-journey-collapsed[open] summary{margin-bottom:10px}.login-side{background:linear-gradient(145deg,#13294f,#1d3d72)!important}.cando-product{max-width:570px}.cando-product h2{font-size:42px!important;letter-spacing:-1px}.cando-product p{max-width:460px;line-height:2}.login-card{box-shadow:0 24px 70px #14213d14!important}
@media(max-width:900px){.repair-work-grid{grid-template-columns:1fr}.service-task{grid-template-columns:1fr}.service-task .btn{width:100%}.expense-summary{grid-template-columns:1fr 1fr}.expense-summary>div:last-child{grid-column:1/-1}}
@media(max-width:560px){.repair-work-grid{gap:10px}.service-task{padding:10px}.expense-row{grid-template-columns:1fr 28px}.expense-values{grid-column:1/-1;grid-row:2;flex-direction:row;justify-content:space-between;text-align:right}.expense-summary{grid-template-columns:1fr}.expense-summary>div:last-child{grid-column:auto}.portal-flow{overflow-x:auto;scrollbar-width:none}.portal-flow::-webkit-scrollbar{display:none}.login-side{display:none!important}.login-wrap{width:100%!important}.login-card{margin:18px!important}}


/* v1.7 - compact repair focus + Persian typography reliability */
/* Keep the workflow context visible, but let next repair actions reach the first screen faster. */
.workflow-panel{padding:12px 14px!important}
.workflow-panel>.panel-head{margin-bottom:6px!important}
.workflow-panel>.panel-head h3{font-size:15px!important}
.workflow-panel>.panel-head p{font-size:10.5px!important;margin-top:1px!important;line-height:1.6!important}
.status-flow{gap:5px!important;padding:5px 0 7px!important}
.status-flow .status-step{padding:5px 3px 4px!important;border-radius:9px!important;min-height:58px!important}
.status-flow .status-step>span{width:27px!important;height:27px!important;font-size:10px!important;margin-bottom:2px!important;border-width:1px!important}
.status-flow .status-step small{font-size:9.5px!important;line-height:1.35!important;min-height:25px!important}
.status-flow .status-step.active>span{box-shadow:0 0 0 3px var(--primarySoft)!important}

.detail-head{padding:10px 13px!important;margin-bottom:10px!important;min-height:0!important}
.detail-head h2{font-size:19px!important;margin:3px 0 1px!important;line-height:1.25!important}
.detail-head .muted{font-size:10.5px!important;line-height:1.55!important}
.detail-head-actions{gap:5px!important}
.detail-head-actions .btn,.detail-head .btn{padding:5px 9px!important;min-height:32px!important;font-size:11.5px!important;border-radius:8px!important}
.detail-head-actions .status-big{font-size:11px!important;padding:4px 9px!important}

.actual-journey{margin-top:7px!important;padding-top:7px!important}
.actual-journey-head{margin-bottom:6px!important;align-items:center!important}
.actual-journey-head strong{font-size:12px!important}
.actual-journey-head small{font-size:9.5px!important;line-height:1.5!important}
.journey-chain,.journey-chain.compact{gap:5px!important;padding:1px 0 4px!important}
.journey-node,.customer-portal .journey-chain.compact .journey-node{padding:6px 8px!important;border-radius:9px!important;gap:6px!important;min-height:54px!important}
.journey-node strong{font-size:11px!important}
.journey-node small{font-size:9px!important;margin-top:1px!important}
.journey-node em{font-size:8.5px!important;margin-top:1px!important}
.journey-node p{font-size:9px!important;margin-top:2px!important;line-height:1.45!important;display:-webkit-box!important;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.journey-dot{width:8px!important;height:8px!important;margin-top:3px!important;box-shadow:0 0 0 2px rgba(255,255,255,.72)!important}

.next-action-section{margin-top:8px!important;padding-top:8px!important}
.next-action-head{margin-bottom:8px!important;gap:8px!important}
.next-action-head>div>strong{font-size:16px!important}
.next-action-head .eyebrow,.next-action-head>div>small{font-size:10.5px!important}
.next-action-grid{gap:7px!important}
.next-action-card{padding:9px 10px!important;border-radius:10px!important;gap:8px!important;min-height:62px!important}
.next-action-card strong{font-size:12.5px!important;margin-bottom:1px!important}
.next-action-card small{font-size:10px!important;line-height:1.55!important}
.next-action-icon{width:33px!important;height:33px!important;flex-basis:33px!important;border-radius:9px!important;font-size:15px!important}
.other-actions{margin-top:6px!important}.other-actions summary{padding:4px 0!important;font-size:11px!important}

/* More readable Persian defaults on browsers that synthesize font weights differently. */
html,body,button,input,select,textarea,table{font-family:"Vazirmatn","VazirmatnWeb",Tahoma,Arial,sans-serif!important;text-rendering:optimizeLegibility}
body{font-weight:400}
strong,b,h1,h2,h3,.btn{font-family:"Vazirmatn","VazirmatnWeb",Tahoma,Arial,sans-serif!important}

@media(max-width:800px){
  .detail-head{padding:9px 10px!important;gap:7px!important;flex-direction:column!important;align-items:stretch!important}
  .detail-head>div:first-child{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:8px;align-items:center}
  .detail-head>div:first-child .btn{grid-row:1/3;align-self:center}
  .detail-head h2{font-size:17px!important;margin:0!important}
  .detail-head .muted{font-size:9.5px!important}
  .detail-head-actions{width:100%;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px!important}
  .detail-head-actions>*{min-width:0!important;width:100%!important;justify-content:center!important}
  .workflow-panel{padding:10px!important}
  .status-flow{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
  .status-flow .status-step{min-height:52px!important;padding:4px 2px!important}
  .status-flow .status-step small{font-size:9px!important;min-height:22px!important}
  .actual-journey-head small{display:none!important}
  .journey-chain,.journey-chain.compact{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
  .journey-node,.customer-portal .journey-chain.compact .journey-node{min-height:50px!important}
  .next-action-head{flex-direction:row!important;align-items:center!important}
  .next-action-grid{grid-template-columns:1fr!important}
  .next-action-card{min-height:58px!important}
}
@media(max-width:460px){
  .status-flow{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .journey-chain,.journey-chain.compact{grid-template-columns:1fr!important}
}

/* v1.8 responsive service-focused login */
.cando-login-v18{min-height:100vh;min-height:100dvh;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(380px,.75fr);background:#f4f7fb;overflow:hidden}
.login-service-hero{position:relative;isolation:isolate;min-height:100vh;min-height:100dvh;color:#fff;padding:clamp(34px,5vw,74px);display:flex;align-items:center;background:radial-gradient(circle at 18% 82%,rgba(31,182,197,.24),transparent 24%),radial-gradient(circle at 82% 18%,rgba(159,216,32,.11),transparent 22%),linear-gradient(145deg,#071b35 0%,#0d2b55 55%,#0a2346 100%)}
.login-service-hero:before{content:"";position:absolute;inset:0;z-index:-2;opacity:.18;background-image:linear-gradient(30deg,transparent 24%,#36d3df 25%,#36d3df 26%,transparent 27%,transparent 74%,#36d3df 75%,#36d3df 76%,transparent 77%),linear-gradient(150deg,transparent 24%,#36d3df 25%,#36d3df 26%,transparent 27%,transparent 74%,#36d3df 75%,#36d3df 76%,transparent 77%);background-size:78px 136px;background-position:-18px -30px}
.login-service-hero:after{content:"⌚  ⚙  ◉";position:absolute;left:5%;bottom:3%;font-size:clamp(58px,8vw,120px);letter-spacing:20px;opacity:.045;transform:rotate(-8deg);z-index:-1;white-space:nowrap}
.login-hero-inner{width:min(720px,100%);margin-inline:auto}
.login-brand-v18{display:flex;align-items:center;gap:20px;margin-bottom:26px}.login-brand-v18 h2{font-size:clamp(34px,4vw,54px);line-height:1.15;margin:0 0 6px;font-weight:900;letter-spacing:-1.4px}.login-brand-v18 strong{display:block;color:#35d8e0;font-size:clamp(15px,1.5vw,19px)}
.login-logo-v18{width:92px!important;height:92px!important;flex-basis:92px!important;filter:drop-shadow(0 16px 28px rgba(0,0,0,.24))}
.login-hero-copy{font-size:clamp(15px,1.35vw,18px)!important;line-height:2.15!important;max-width:620px;margin:0 0 28px!important;color:#dce9f7;opacity:1!important}
.login-service-features{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.login-service-feature{min-height:150px;padding:18px 12px;border:1px solid rgba(255,255,255,.13);border-radius:18px;background:rgba(9,35,70,.46);backdrop-filter:blur(10px);display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;transition:.18s}.login-service-feature:hover{transform:translateY(-3px);background:rgba(14,54,99,.64)}.login-service-feature>span{width:44px;height:44px;border:1px solid rgba(47,218,224,.55);border-radius:14px;display:grid;place-items:center;color:#35d8e0;font-size:23px;margin-bottom:10px}.login-service-feature b{font-size:13px}.login-service-feature small{color:#aebfd4;font-size:11px;line-height:1.8;margin-top:5px}
.login-service-note{margin-top:16px;max-width:520px;display:flex;align-items:center;gap:12px;padding:13px 16px;border:1px solid rgba(255,255,255,.11);border-radius:16px;background:rgba(7,25,51,.48)}.login-service-note>span{font-size:25px;color:#35d8e0}.login-service-note p{margin:0;display:flex;flex-direction:column}.login-service-note b{color:#35d8e0}.login-service-note small{color:#b5c5d8;margin-top:2px}.login-company{display:block;margin-top:22px;color:#9fb1c8;font-weight:700}
.login-form-zone{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:clamp(24px,4vw,54px);background:linear-gradient(180deg,#f8fafc,#f1f5f9)}
.login-card-v18{width:min(430px,100%);padding:34px 34px 24px;border-radius:24px;border:1px solid #e4e9f0;box-shadow:0 26px 75px rgba(17,31,57,.11)!important;background:#fff}.login-tool-badge{width:68px;height:68px;border-radius:50%;display:grid;place-items:center;margin:0 auto 14px;background:linear-gradient(145deg,#f7faff,#edf4ff);border:1px solid #e1e7ef;font-size:29px;color:#1976d2}.login-card-v18 h1{text-align:center;font-size:24px;margin:0}.login-card-v18 .sub{text-align:center;margin:4px 0 24px;color:#778397}.login-field-v18{margin-top:14px}.login-input-wrap{position:relative}.login-input-wrap>span{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:#77869a;z-index:1;font-size:17px}.login-input-wrap input{padding-right:40px!important;height:48px!important;border-radius:11px!important;background:#fbfcfe!important}.login-input-wrap input:focus{background:#fff!important;border-color:#7bbcc4!important;box-shadow:0 0 0 4px rgba(20,137,151,.08)!important}.login-remember{margin-top:13px;display:flex;align-items:center;gap:7px;color:#5f6d81;font-size:12px;cursor:pointer}.login-remember input{width:17px;height:17px;accent-color:var(--primary)}.login-submit-v18{margin-top:17px;min-height:48px;border-radius:11px;font-size:15px;background:linear-gradient(135deg,#163d9c,#1738b5)!important;box-shadow:0 9px 22px rgba(30,65,165,.18)}.login-submit-v18 span{margin-right:8px}.login-security-note{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:17px;padding-top:15px;border-top:1px solid #edf0f4;color:#7a8799;font-size:12px}.login-card-footer{text-align:center;color:#9ba6b5;font-size:11px;margin-top:15px}.login-mobile-brand{display:none}
@media(max-width:1050px){.cando-login-v18{grid-template-columns:minmax(0,1fr) 390px}.login-service-hero{padding:38px}.login-service-features{grid-template-columns:repeat(2,minmax(0,1fr))}.login-service-feature{min-height:118px}.login-brand-v18 h2{font-size:38px}.login-logo-v18{width:74px!important;height:74px!important;flex-basis:74px!important}}
@media(max-width:800px){.cando-login-v18{display:block;min-height:100dvh;background:#082246}.login-service-hero{min-height:auto;padding:max(24px,env(safe-area-inset-top)) 18px 18px;display:block;text-align:center;background:linear-gradient(155deg,#071b35,#0d2b55)}.login-hero-inner{width:100%}.login-brand-v18{justify-content:center;gap:11px;margin:2px 0 11px}.login-logo-v18{width:54px!important;height:54px!important;flex-basis:54px!important}.login-brand-v18 h2{font-size:26px!important;text-align:right;margin-bottom:2px}.login-brand-v18 strong{font-size:12px;text-align:right}.login-hero-copy{font-size:12px!important;line-height:1.9!important;max-width:560px;margin:0 auto 13px!important}.login-service-features{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.login-service-feature{min-height:78px;padding:8px 4px;border-radius:12px}.login-service-feature>span{width:30px;height:30px;font-size:16px;border-radius:9px;margin-bottom:5px}.login-service-feature b{font-size:10px}.login-service-feature small{display:none}.login-service-note,.login-company{display:none}.login-service-hero:after{display:none}.login-form-zone{min-height:auto;display:block;padding:0 12px max(20px,env(safe-area-inset-bottom));background:#082246}.login-mobile-brand{display:none}.login-card-v18{width:100%;max-width:560px;margin:0 auto;padding:24px 18px 20px;border-radius:22px}.login-tool-badge{width:54px;height:54px;font-size:24px;margin-bottom:10px}.login-card-v18 h1{font-size:21px}.login-card-v18 .sub{font-size:12px;margin-bottom:18px}.login-input-wrap input{height:50px!important;font-size:16px!important}.login-submit-v18{min-height:50px;font-size:16px}.login-card-footer{padding-bottom:2px}}
@media(max-width:430px){.login-service-hero{padding-left:10px;padding-right:10px}.login-brand-v18 h2{font-size:23px!important}.login-brand-v18 strong{font-size:10px}.login-hero-copy{font-size:11.5px!important}.login-service-features{gap:5px}.login-service-feature{min-height:72px}.login-service-feature b{font-size:9px}.login-card-v18{padding:20px 14px 17px;border-radius:20px}.login-form-zone{padding-left:9px;padding-right:9px}.login-tool-badge{width:48px;height:48px;font-size:21px}.login-card-v18 h1{font-size:19px}}

/* v1.8.1 mobile-first login hotfix: prioritize fast sign-in on phones */
@media(max-width:560px){
  .cando-login-v18{display:flex;flex-direction:column;min-height:100dvh;background:linear-gradient(180deg,#071b35 0,#0b2b54 30%,#082246 100%);overflow:visible}
  .login-service-hero{flex:0 0 auto;min-height:0!important;padding:max(10px,env(safe-area-inset-top)) 14px 12px!important;background:transparent!important;text-align:center}
  .login-service-hero:before{opacity:.10;background-size:58px 101px}
  .login-hero-inner{width:100%;max-width:420px}
  .login-brand-v18{margin:0 0 4px!important;gap:9px!important;justify-content:center!important}
  .login-logo-v18{width:42px!important;height:42px!important;flex-basis:42px!important;border-radius:13px!important;filter:none!important}
  .login-logo-v18:before{inset:5px!important;border-radius:10px!important}.login-logo-v18:after{display:none!important}.login-logo-v18 span{font-size:18px!important}
  .login-brand-v18 h2{font-size:21px!important;line-height:1.1!important;letter-spacing:-.4px!important;text-align:right!important;margin:0!important}
  .login-brand-v18 strong{font-size:10px!important;line-height:1.45!important;text-align:right!important;margin-top:2px!important}
  .login-hero-copy{display:none!important}
  .login-service-features{display:none!important}
  .login-service-note,.login-company{display:none!important}
  .login-form-zone{flex:1;min-height:0!important;display:flex!important;align-items:flex-start!important;justify-content:center!important;padding:0 9px max(8px,env(safe-area-inset-bottom))!important;background:transparent!important}
  .login-card-v18{width:100%!important;max-width:420px!important;margin:0 auto!important;padding:15px 14px 12px!important;border-radius:18px 18px 16px 16px!important;border-color:rgba(255,255,255,.25)!important;box-shadow:0 16px 42px rgba(0,0,0,.18)!important}
  .login-tool-badge{width:38px!important;height:38px!important;font-size:18px!important;margin:0 auto 6px!important}
  .login-card-v18 h1{font-size:18px!important;line-height:1.35!important}
  .login-card-v18 .sub{font-size:10.5px!important;line-height:1.6!important;margin:2px 0 10px!important}
  .login-field-v18{margin-top:8px!important}
  .login-field-v18 label{font-size:11px!important;margin-bottom:4px!important}
  .login-input-wrap>span{right:11px!important;font-size:14px!important}
  .login-input-wrap input{height:44px!important;min-height:44px!important;font-size:16px!important;border-radius:10px!important;padding-right:35px!important}
  .login-remember{margin-top:8px!important;font-size:11px!important;gap:6px!important}
  .login-remember input{width:16px!important;height:16px!important}
  .login-submit-v18{margin-top:10px!important;min-height:45px!important;height:45px!important;font-size:14px!important;border-radius:10px!important}
  .login-security-note{margin-top:10px!important;padding-top:9px!important;font-size:10px!important}
  .login-card-footer{font-size:9px!important;margin-top:8px!important;line-height:1.5!important}
  .login-card-v18 .error{font-size:10px!important;margin-top:5px!important}
}
@media(max-width:380px){
  .login-service-hero{padding-left:10px!important;padding-right:10px!important;padding-bottom:8px!important}
  .login-logo-v18{width:38px!important;height:38px!important;flex-basis:38px!important}
  .login-brand-v18 h2{font-size:19px!important}.login-brand-v18 strong{font-size:9.5px!important}
  .login-card-v18{padding:12px 12px 10px!important}.login-tool-badge{display:none!important}.login-card-v18 .sub{margin-bottom:8px!important}
  .login-input-wrap input{height:42px!important;min-height:42px!important}.login-submit-v18{height:43px!important;min-height:43px!important}
}


/* v1.8.2 - real Hamyaran logo + polished responsive login */
.cando-brand-logo{display:block;object-fit:contain;object-position:center;background:transparent!important;box-shadow:none!important;border:0!important}
.login-brand-v18 .cando-brand-logo{width:82px!important;height:92px!important;flex:0 0 82px!important;filter:drop-shadow(0 12px 22px rgba(0,0,0,.2))}
.cando-brand-logo.small{width:34px!important;height:46px!important;flex:0 0 34px!important}
.side-brand .side-logo{width:34px!important;height:42px!important;flex:0 0 34px!important}
.portal-brand .portal-logo{width:34px!important;height:44px!important}
.login-tool-badge{font-size:0!important}
.login-tool-badge:after{content:"";width:30px;height:38px;background:url('/assets/hamyaran-cando-logo.png?v=1.8.2') center/contain no-repeat;display:block}

@media(max-width:800px){
  .cando-login-v18{display:flex!important;flex-direction:column!important;min-height:100dvh!important;background:linear-gradient(180deg,#071b35 0%,#0d2b55 43%,#082246 100%)!important;overflow-x:hidden!important}
  .login-service-hero{display:block!important;flex:0 0 auto!important;min-height:0!important;padding:max(12px,env(safe-area-inset-top)) 12px 13px!important;text-align:center!important;background:transparent!important}
  .login-hero-inner{max-width:460px!important;margin:0 auto!important}
  .login-brand-v18{display:flex!important;justify-content:center!important;align-items:center!important;gap:9px!important;margin:0 0 7px!important}
  .login-brand-v18 .cando-brand-logo{width:44px!important;height:58px!important;flex:0 0 44px!important;filter:none!important}
  .login-brand-v18 h2{font-size:22px!important;line-height:1.15!important;margin:0!important;text-align:right!important}
  .login-brand-v18 strong{font-size:10px!important;line-height:1.5!important;text-align:right!important;margin-top:2px!important}
  .login-hero-copy{display:block!important;max-width:370px!important;margin:0 auto 9px!important;font-size:10.5px!important;line-height:1.75!important;color:#dbe8f6!important}
  .login-service-features{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important;margin:0!important}
  .login-service-feature{display:flex!important;min-height:61px!important;padding:6px 3px!important;border-radius:11px!important;background:rgba(7,32,62,.44)!important;border-color:rgba(255,255,255,.14)!important}
  .login-service-feature>span{width:26px!important;height:26px!important;font-size:14px!important;border-radius:8px!important;margin-bottom:4px!important}
  .login-service-feature b{font-size:8.5px!important;line-height:1.4!important}
  .login-service-feature small{display:none!important}
  .login-service-note,.login-company{display:none!important}
  .login-form-zone{flex:1!important;min-height:0!important;display:flex!important;align-items:flex-start!important;justify-content:center!important;padding:0 8px max(10px,env(safe-area-inset-bottom))!important;background:transparent!important}
  .login-card-v18{width:100%!important;max-width:430px!important;margin:0 auto!important;padding:16px 14px 13px!important;border-radius:20px!important;box-shadow:0 16px 42px rgba(0,0,0,.2)!important}
  .login-tool-badge{width:40px!important;height:40px!important;margin:0 auto 6px!important}
  .login-tool-badge:after{width:24px!important;height:31px!important}
  .login-card-v18 h1{font-size:18px!important;line-height:1.35!important}
  .login-card-v18 .sub{font-size:10.5px!important;line-height:1.55!important;margin:2px 0 9px!important}
  .login-field-v18{margin-top:8px!important}
  .login-field-v18 label{font-size:10.5px!important;margin-bottom:3px!important}
  .login-input-wrap input{height:43px!important;min-height:43px!important;font-size:16px!important;border-radius:10px!important}
  .login-remember{margin-top:7px!important;font-size:10.5px!important}
  .login-submit-v18{height:44px!important;min-height:44px!important;margin-top:9px!important;font-size:14px!important}
  .login-security-note{margin-top:9px!important;padding-top:8px!important;font-size:9.5px!important}
  .login-card-footer{font-size:8.5px!important;margin-top:7px!important;line-height:1.45!important}
}
@media(max-width:390px){
  .login-service-hero{padding-bottom:9px!important}
  .login-brand-v18 .cando-brand-logo{width:40px!important;height:52px!important;flex-basis:40px!important}
  .login-brand-v18 h2{font-size:20px!important}.login-brand-v18 strong{font-size:9px!important}
  .login-hero-copy{font-size:9.8px!important;margin-bottom:7px!important}
  .login-service-feature{min-height:56px!important}.login-service-feature>span{width:24px!important;height:24px!important;font-size:13px!important}.login-service-feature b{font-size:8px!important}
  .login-card-v18{padding:13px 12px 10px!important}.login-tool-badge{display:none!important}
  .login-card-v18 h1{font-size:17px!important}.login-card-v18 .sub{margin-bottom:7px!important}
  .login-input-wrap input{height:41px!important;min-height:41px!important}.login-submit-v18{height:42px!important;min-height:42px!important}
}
