
/* ===== assets/styles.css ===== */
:root{--bg:#03100b;--bg2:#061a12;--panel:#081f16;--panel2:#0d2a1e;--line:rgba(82,255,155,.18);--line2:rgba(226,183,91,.32);--text:#ecfff3;--muted:#95b8a4;--green:#38e57f;--green2:#0ca55a;--gold:#e0b45b;--bad:#ff6d7a;--warn:#ffcf65;--blue:#65c7ff;--shadow:0 18px 60px rgba(0,0,0,.42);--radius:22px;--sidebar:280px;--safe-bottom:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:radial-gradient(circle at 85% -10%,rgba(34,209,113,.16),transparent 35%),radial-gradient(circle at 10% 0,rgba(224,180,91,.08),transparent 28%),var(--bg);color:var(--text);font-family:"Noto Sans Ethiopic","Noto Sans",system-ui,-apple-system,"Segoe UI",Arial,sans-serif}body{overflow-x:hidden}button,input,select,textarea{font:inherit}.hidden{display:none!important}.splash{min-height:100vh;display:grid;place-content:center;text-align:center;gap:12px}.splash img{width:104px;margin:auto;filter:drop-shadow(0 15px 30px rgba(55,229,126,.35))}.splash h1{margin:0;font-size:clamp(25px,4vw,44px)}.splash p{color:var(--muted)}
.app-shell{display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;padding:18px 14px;background:linear-gradient(180deg,rgba(4,22,14,.98),rgba(2,12,8,.98));border-right:1px solid var(--line);overflow:auto;z-index:30}.brand{display:flex;align-items:center;gap:12px;padding:10px 10px 18px;border-bottom:1px solid var(--line)}.brand img{width:55px;height:55px}.brand h1{font-size:17px;line-height:1.25;margin:0}.brand small{color:var(--green);font-weight:700}.nav-group-title{padding:18px 12px 8px;color:#6d9780;font-size:11px;text-transform:uppercase;letter-spacing:.12em}.nav-btn{width:100%;display:flex;align-items:center;gap:12px;border:0;background:transparent;color:#cbe8d6;padding:12px 13px;border-radius:14px;text-align:left;cursor:pointer;margin:2px 0;transition:.2s}.nav-btn:hover{background:rgba(56,229,127,.09);transform:translateX(2px)}.nav-btn.active{background:linear-gradient(135deg,rgba(56,229,127,.22),rgba(224,180,91,.08));color:#fff;border:1px solid rgba(56,229,127,.28);box-shadow:inset 0 0 25px rgba(56,229,127,.06)}.nav-btn .ico{width:26px;height:26px;display:grid;place-items:center;border-radius:9px;background:rgba(255,255,255,.05);font-size:16px}.nav-btn .label{flex:1;font-weight:750;font-size:13px}.nav-btn .count{min-width:24px;height:22px;display:grid;place-items:center;border-radius:999px;background:rgba(255,255,255,.08);font-size:11px}.sidebar-footer{margin-top:18px;padding:12px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.025)}.online-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 12px var(--green);margin-right:7px}.offline-dot{background:var(--bad);box-shadow:0 0 12px var(--bad)}
.main-wrap{min-width:0}.topbar{position:sticky;top:0;z-index:25;display:flex;align-items:center;gap:12px;padding:14px 22px;background:rgba(3,16,11,.82);backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}.menu-toggle{display:none}.topbar-title{min-width:0}.topbar-title h2{font-size:18px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-title small{color:var(--muted)}.topbar-actions{margin-left:auto;display:flex;gap:9px;align-items:center}.pill{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.035);font-size:12px;color:#d9f1e1}.avatar{width:38px;height:38px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,var(--green2),#0b3b26);border:1px solid rgba(255,255,255,.12);font-weight:900}.content{padding:22px;max-width:1800px;margin:auto}.page-head{display:flex;align-items:flex-end;gap:15px;margin-bottom:18px}.page-head h1{margin:0;font-size:clamp(24px,3vw,38px)}.page-head p{margin:4px 0 0;color:var(--muted)}.page-head .actions{margin-left:auto}
.btn{border:1px solid var(--line);background:#0a281b;color:var(--text);border-radius:13px;padding:10px 14px;min-height:42px;font-weight:800;cursor:pointer;transition:.18s;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn:hover{transform:translateY(-1px);border-color:rgba(56,229,127,.55);box-shadow:0 10px 25px rgba(0,0,0,.25)}.btn.primary{background:linear-gradient(135deg,#2ee77a,#0e9f58);color:#03120b;border-color:#75f9a7}.btn.gold{background:linear-gradient(135deg,#f0c86e,#a87929);color:#1b1202;border-color:#ffe4a2}.btn.danger{background:#341319;border-color:rgba(255,109,122,.55);color:#ffd9dd}.btn.ghost{background:transparent}.btn.small{min-height:34px;padding:6px 10px;font-size:12px}.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.actions{display:flex;gap:9px;flex-wrap:wrap}.grid{display:grid;gap:16px}.g2{grid-template-columns:repeat(2,minmax(0,1fr))}.g3{grid-template-columns:repeat(3,minmax(0,1fr))}.g4{grid-template-columns:repeat(4,minmax(0,1fr))}.g5{grid-template-columns:repeat(5,minmax(0,1fr))}.card{position:relative;background:linear-gradient(160deg,rgba(13,42,30,.95),rgba(5,23,15,.95));border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow);overflow:hidden}.card:before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(120deg,rgba(255,255,255,.025),transparent 38%)}.card h3{margin:0 0 13px}.card-sub{color:var(--muted);font-size:13px}.hero{min-height:290px;display:grid;grid-template-columns:1.15fr .85fr;align-items:center;background:radial-gradient(circle at 15% 10%,rgba(56,229,127,.22),transparent 38%),linear-gradient(145deg,#0b2d20,#04150e);border-color:rgba(56,229,127,.34)}.hero-copy{padding:15px;position:relative;z-index:2}.hero-copy h1{font-size:clamp(30px,4.5vw,62px);line-height:1.05;margin:0 0 12px}.hero-copy h1 span{color:var(--green)}.hero-copy p{max-width:700px;color:#b6d5c2;font-size:15px}.hero-art{height:280px;background:linear-gradient(180deg,rgba(3,16,11,.02),rgba(3,16,11,.28)),url('furniture/showroom.jpg') center/cover no-repeat;border-radius:20px;box-shadow:inset 0 0 80px rgba(0,0,0,.35)}.workflow{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:16px}.workflow span{padding:8px 10px;border-radius:10px;background:rgba(0,0,0,.25);border:1px solid var(--line);font-size:11px}.workflow b{color:var(--gold)}
.kpi{padding:17px;border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.05),rgba(255,255,255,.015));border:1px solid var(--line);min-height:118px;position:relative;overflow:hidden}.kpi:after{content:"";position:absolute;right:-20px;top:-20px;width:75px;height:75px;border-radius:50%;background:var(--kpi,rgba(56,229,127,.13));filter:blur(2px)}.kpi .kpi-label{color:var(--muted);font-size:12px}.kpi .kpi-value{font-size:clamp(22px,2.6vw,36px);font-weight:950;margin:8px 0 3px}.kpi .kpi-note{font-size:11px;color:#8ec7a4}.gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.product-card{border:1px solid var(--line);background:#061810;border-radius:18px;overflow:hidden}.product-card img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}.product-card .meta{padding:11px}.product-card b{display:block}.product-card small{color:var(--muted)}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:16px;background:rgba(0,0,0,.12)}table{width:100%;border-collapse:collapse;min-width:760px}th,td{padding:11px 12px;border-bottom:1px solid rgba(82,255,155,.1);text-align:left;font-size:12px;vertical-align:top}th{position:sticky;top:0;background:#0a281c;color:#a9d8bb;z-index:2;white-space:nowrap}tbody tr:hover{background:rgba(56,229,127,.045)}.status{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:850;background:rgba(56,229,127,.12);border:1px solid rgba(56,229,127,.28);color:#baffd3}.status.warn{background:rgba(255,207,101,.12);border-color:rgba(255,207,101,.3);color:#ffe4a6}.status.bad{background:rgba(255,109,122,.12);border-color:rgba(255,109,122,.3);color:#ffc3c9}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.toolbar .search{min-width:220px;flex:1}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.field{display:flex;flex-direction:column;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:12px;color:#b8d7c3;font-weight:700}.field input,.field select,.field textarea,.search-input{width:100%;border:1px solid rgba(82,255,155,.2);background:#04140d;color:var(--text);border-radius:12px;padding:11px 12px;outline:none}.field input:focus,.field select:focus,.field textarea:focus,.search-input:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(56,229,127,.09)}.field textarea{min-height:90px;resize:vertical}.field input[type=file]{padding:8px}.help{font-size:10px;color:#6f9b82}.notice{padding:13px 14px;border-radius:14px;border:1px solid var(--line);background:rgba(56,229,127,.07);color:#c9f1d8;margin:10px 0}.notice.warn{border-color:rgba(255,207,101,.32);background:rgba(255,207,101,.08);color:#ffe3a4}.notice.bad{border-color:rgba(255,109,122,.35);background:rgba(255,109,122,.08);color:#ffc9cf}.empty{text-align:center;padding:48px 20px;color:var(--muted)}
.modal-backdrop{position:fixed;inset:0;z-index:80;background:rgba(0,0,0,.72);backdrop-filter:blur(7px);display:grid;place-items:center;padding:18px}.modal{width:min(920px,100%);max-height:92vh;overflow:auto;background:#071b12;border:1px solid rgba(56,229,127,.35);border-radius:24px;box-shadow:0 30px 100px rgba(0,0,0,.7)}.modal-head{position:sticky;top:0;z-index:3;display:flex;align-items:center;padding:16px 18px;background:rgba(7,27,18,.96);border-bottom:1px solid var(--line)}.modal-head h3{margin:0}.modal-head button{margin-left:auto}.modal-body{padding:18px}.modal-foot{position:sticky;bottom:0;padding:14px 18px;display:flex;justify-content:flex-end;gap:9px;background:rgba(7,27,18,.96);border-top:1px solid var(--line)}.toast-root{position:fixed;right:18px;bottom:18px;z-index:100;display:grid;gap:9px}.toast{max-width:390px;padding:13px 15px;border-radius:14px;background:#0b3020;border:1px solid rgba(56,229,127,.4);box-shadow:var(--shadow);animation:toastIn .25s ease}.toast.bad{background:#3b151a;border-color:#ff6d7a}.toast.warn{background:#3a2a0f;border-color:#ffcf65}@keyframes toastIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.login-page{min-height:100vh;display:grid;grid-template-columns:1.15fr .85fr;background:radial-gradient(circle at 10% 10%,rgba(56,229,127,.2),transparent 33%),#03100b}.login-art{padding:45px;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.login-art:after{content:"";position:absolute;inset:12% -10% -20% 20%;background:linear-gradient(180deg,rgba(3,16,11,.04),rgba(3,16,11,.36)),url('furniture/showroom-green.jpg') center/cover no-repeat;opacity:.58;filter:saturate(1.2)}.login-art>*{position:relative;z-index:2}.login-art img{width:90px}.login-art h1{font-size:clamp(36px,6vw,78px);line-height:1;margin:24px 0 14px;max-width:760px}.login-art h1 span{color:var(--green)}.login-art p{max-width:620px;color:#b8d3c1}.login-panel{display:grid;place-items:center;padding:28px;background:rgba(0,0,0,.18);backdrop-filter:blur(10px)}.login-card{width:min(520px,100%);padding:28px;border-radius:28px;background:linear-gradient(145deg,rgba(12,43,29,.97),rgba(4,20,13,.97));border:1px solid rgba(56,229,127,.34);box-shadow:var(--shadow)}.login-card h2{font-size:28px;margin:0 0 8px}.login-card .field{margin:13px 0}.login-card .btn{width:100%;margin-top:8px}.login-links{display:flex;justify-content:space-between;margin-top:15px;font-size:12px}.link{color:var(--green);cursor:pointer;text-decoration:none}.mobile-bottom{display:none}.chart{height:210px;display:flex;align-items:flex-end;gap:10px;padding:20px 8px 5px}.bar{flex:1;min-width:18px;border-radius:9px 9px 3px 3px;background:linear-gradient(180deg,var(--green),#087641);position:relative}.bar span{position:absolute;bottom:-22px;left:50%;transform:translateX(-50%);font-size:9px;color:var(--muted)}.metric-row{display:grid;grid-template-columns:180px 1fr auto;gap:12px;align-items:center;margin:10px 0}.metric-track{height:9px;border-radius:999px;background:#04140d;overflow:hidden}.metric-fill{height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--green2),var(--green))}.offline-banner{position:fixed;left:50%;top:12px;transform:translateX(-50%);z-index:120;background:#4b171d;border:1px solid var(--bad);padding:9px 14px;border-radius:999px;font-size:12px}.code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#bdfbd2}.split{display:grid;grid-template-columns:1fr 1fr;gap:16px}.right{text-align:right}.nowrap{white-space:nowrap}.muted{color:var(--muted)}.danger-zone{border-color:rgba(255,109,122,.35)}
@media(max-width:1200px){.g5{grid-template-columns:repeat(3,1fr)}.g4{grid-template-columns:repeat(2,1fr)}.gallery{grid-template-columns:repeat(2,1fr)}.hero{grid-template-columns:1fr}.hero-art{height:230px}}
@media(max-width:900px){:root{--sidebar:260px}.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;left:-290px;width:270px;transition:.25s}.sidebar.open{left:0;box-shadow:20px 0 60px rgba(0,0,0,.65)}.menu-toggle{display:inline-flex}.topbar{padding:11px 14px}.content{padding:14px 14px 92px}.g3,.g4,.g5{grid-template-columns:repeat(2,1fr)}.login-page{grid-template-columns:1fr}.login-art{min-height:310px;padding:30px}.login-art:after{opacity:.25}.login-panel{padding:18px}.mobile-bottom{position:fixed;left:0;right:0;bottom:0;z-index:40;display:grid;grid-template-columns:repeat(5,1fr);padding:7px 8px calc(7px + var(--safe-bottom));background:rgba(3,16,11,.94);backdrop-filter:blur(16px);border-top:1px solid var(--line)}.mobile-bottom button{border:0;background:transparent;color:#91b5a0;font-size:10px;padding:6px 2px}.mobile-bottom button b{display:block;font-size:19px;margin-bottom:2px}.mobile-bottom button.active{color:var(--green)}}
@media(max-width:620px){.g2,.g3,.g4,.g5,.form-grid,.split{grid-template-columns:1fr}.field.full{grid-column:auto}.page-head{align-items:flex-start;flex-direction:column}.page-head .actions{margin-left:0;width:100%}.page-head .btn{flex:1}.hero{padding:14px}.hero-copy{padding:4px}.hero-art{height:175px}.gallery{grid-template-columns:1fr 1fr}.kpi{min-height:105px}.topbar-title small,.topbar .branch-pill{display:none}.login-art h1{font-size:42px}.modal-backdrop{padding:6px}.modal{border-radius:18px}.metric-row{grid-template-columns:110px 1fr auto}.toolbar .btn{flex:1}.toolbar .search{flex-basis:100%}}
@media print{.sidebar,.topbar,.mobile-bottom,.toolbar,.page-head .actions,.btn{display:none!important}.app-shell{display:block}.content{padding:0}.card{box-shadow:none;break-inside:avoid;background:white;color:black;border:1px solid #bbb}.muted,.card-sub{color:#444}body{background:white;color:black}}

/* R1.3 non-visual interaction patch: no layout/theme override. */
.topbar-profile{cursor:pointer;font-family:inherit}.topbar-profile.pill{appearance:none;color:var(--text)}button.avatar{padding:0;color:var(--text);cursor:pointer}


/* ===== assets/enterprise-v28.css ===== */
/* V28 Enterprise luxury layer — additive; base V27 styles remain authoritative */
:root{
  --v28-gold:#d9b868;
  --v28-gold-soft:rgba(217,184,104,.16);
  --v28-emerald:#0f5f42;
  --v28-ink:#07140f;
  --v28-line:rgba(217,184,104,.24);
}
.v28-feature{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,.7fr);gap:20px;align-items:center;background:linear-gradient(135deg,rgba(15,95,66,.24),rgba(217,184,104,.08));border:1px solid var(--v28-line)}
.v28-feature:after{content:"";position:absolute;right:-90px;top:-110px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,var(--v28-gold-soft),transparent 70%);pointer-events:none}
.v28-feature h2{margin:.4rem 0 .5rem;font-size:clamp(1.25rem,2vw,1.8rem)}
.v28-feature p{margin:0;color:var(--muted,#a9b8b1);line-height:1.7}
.v28-badge{display:inline-flex;padding:5px 10px;border-radius:999px;border:1px solid var(--v28-line);background:var(--v28-gold-soft);color:var(--v28-gold);font-size:.72rem;font-weight:800;letter-spacing:.09em}
.v28-control-note{position:relative;z-index:1;padding:16px;border-radius:14px;border:1px solid rgba(217,184,104,.28);background:rgba(4,19,13,.72);line-height:1.6}
.v28-media-preview{min-height:90px;margin:0 0 12px;border:1px dashed rgba(217,184,104,.35);border-radius:14px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:rgba(0,0,0,.15)}
.v28-media-preview:empty:before{content:"Photo / Video preview";color:var(--muted,#9eaca6)}
.v28-media-preview img,.v28-media-preview video{display:block;max-width:100%;max-height:360px;object-fit:contain}
.v28-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}
.v28-check-grid span{display:flex;align-items:center;min-height:44px;padding:10px 12px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.025)}
.v28-date{white-space:nowrap;border-color:var(--v28-line)!important;color:var(--v28-gold)!important}
.btn.gold{background:linear-gradient(135deg,#cfaa50,#f0d790);color:#1e1606;border-color:#e3c573;font-weight:800}
.btn.gold:hover{filter:brightness(1.05)}
.card h3{letter-spacing:.01em}
.code{font-variant-numeric:tabular-nums}
@media(max-width:900px){.v28-feature{grid-template-columns:1fr}.v28-check-grid{grid-template-columns:1fr}.v28-date{display:none}}
@media(max-width:600px){.v28-feature{padding:15px}.v28-control-note{padding:12px}.v28-media-preview img,.v28-media-preview video{max-height:240px}}

.report-summary{padding:10px 12px;margin:8px 0 12px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.03)}
.invoice-sheet{background:#fff;color:#17231f;padding:24px;border-radius:16px;max-height:68vh;overflow:auto}.invoice-brand{text-align:center}.invoice-sheet table{color:#17231f}.invoice-totals{margin:16px 0 12px;display:grid;justify-content:end;gap:5px;text-align:right}.invoice-totals .grand{font-size:1.2rem;border-top:2px solid #183f35;padding-top:7px}.qr-ready-box{border:2px dashed #1c5a49;border-radius:12px;padding:12px;display:grid;gap:7px;word-break:break-all}.qr-ready-box code{white-space:pre-wrap;font-size:.78rem}.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:12px}@media print{body *{visibility:hidden!important}#v28Invoice,#v28Invoice *{visibility:visible!important}#v28Invoice{position:absolute;inset:0;max-height:none;overflow:visible}.modal-actions{display:none!important}}


/* ===== assets/enterprise-v29.css ===== */
/* V29 Furniture Enterprise layer */
:root{--v29-cream:#f4efe3;--v29-deep:#061b13;--v29-gold:#e4bf67;--v29-soft:rgba(228,191,103,.12)}
.v29-control-tower{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,.8fr);gap:20px;align-items:center;margin-bottom:16px;background:linear-gradient(135deg,rgba(15,95,66,.34),rgba(228,191,103,.08));border-color:rgba(228,191,103,.32)}
.v29-control-tower h2{font-size:clamp(1.35rem,2.4vw,2.25rem);margin:.5rem 0}.v29-control-tower p{color:var(--muted);line-height:1.7;margin:0}
.v29-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.v29-quick-grid button{min-height:58px;border:1px solid rgba(228,191,103,.28);border-radius:14px;background:rgba(255,255,255,.035);color:var(--text);font-weight:800;cursor:pointer}.v29-quick-grid button:hover{border-color:var(--v29-gold);transform:translateY(-1px)}.v29-quick-grid b{display:inline-grid;place-items:center;min-width:22px;height:22px;margin-left:5px;border-radius:999px;background:#57212a;color:#ffdce0}
.v29-catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(265px,1fr));gap:16px}.v29-product-card{overflow:hidden;border:1px solid var(--line);border-radius:20px;background:linear-gradient(150deg,rgba(13,42,30,.96),rgba(4,19,13,.96));box-shadow:0 14px 35px rgba(0,0,0,.28)}.v29-product-card>img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;background:#0b2419}.v29-product-body{padding:15px}.v29-product-body h3{margin:10px 0 5px}.v29-product-body p{color:var(--muted);min-height:38px}.v29-price{display:flex;align-items:end;justify-content:space-between;gap:10px;padding:10px 0}.v29-price b{font-size:1.28rem;color:#fff}.v29-price small{color:var(--v29-gold)}.v29-specs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.v29-specs span{padding:5px 8px;border:1px solid rgba(255,255,255,.08);border-radius:999px;font-size:.69rem;color:#bed8c8;background:rgba(255,255,255,.025)}
.v29-detail-img{width:100%;max-height:420px;object-fit:cover;border-radius:18px;border:1px solid var(--line)}.v29-data-list{display:grid;gap:8px}.v29-data-list span{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.07);color:var(--muted)}.v29-data-list b{color:var(--text);text-align:right}
.v29-sale-strip{display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(120deg,rgba(56,229,127,.12),rgba(228,191,103,.08))}.v29-sale-strip div{display:grid;gap:5px}.v29-sale-strip span{color:var(--muted);font-size:.84rem}
.v29-profit-preview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0 14px}.v29-profit-preview span{display:grid;gap:4px;padding:11px;border-radius:12px;border:1px solid rgba(228,191,103,.2);background:rgba(228,191,103,.05);font-size:.75rem;color:var(--muted)}.v29-profit-preview b{color:var(--text);font-size:1rem}.bad-text{color:var(--bad)!important}
.v29-design-summary{padding:12px 14px;margin-bottom:14px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.025)}.v29-option-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.v29-option{position:relative;padding:15px;border:1px solid rgba(228,191,103,.25);border-radius:18px;background:linear-gradient(150deg,rgba(13,42,30,.98),rgba(4,17,12,.98))}.v29-option-letter{position:absolute;right:12px;top:12px;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#f0d38a,#a87929);color:#231703;font-weight:950}.v29-layout{min-height:180px;margin:10px 0;border-radius:14px;overflow:hidden;background:#f4f1e9;border:1px solid rgba(255,255,255,.12)}.v29-layout svg{display:block;width:100%;height:auto;max-height:280px}.print-layout{max-height:none}.print-layout svg{max-height:360px}
.v29-option h3{padding-right:44px}.v29-option p{color:var(--muted)}
@media(max-width:1100px){.v29-option-grid{grid-template-columns:1fr 1fr}.v29-control-tower{grid-template-columns:1fr}.v29-profit-preview{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.v29-option-grid{grid-template-columns:1fr}.v29-quick-grid{grid-template-columns:1fr 1fr}.v29-sale-strip{align-items:stretch;flex-direction:column}.v29-profit-preview{grid-template-columns:1fr}.v29-product-card>img{aspect-ratio:4/3}.v29-control-tower{padding:15px}}
@media(max-width:520px){.v29-quick-grid{grid-template-columns:1fr}.v29-catalog{grid-template-columns:1fr}.topbar-actions .v28-date,.topbar-actions #v28Lang,.topbar-actions .pill:nth-of-type(2){display:none!important}}
@media print{#v29Proposal,#v29Proposal *{visibility:visible!important}#v29Proposal{position:absolute;inset:0;max-height:none;overflow:visible}}
.portal-body{min-height:100vh;padding:22px;background:radial-gradient(circle at 10% 0,rgba(56,229,127,.18),transparent 35%),var(--bg)}.portal-shell{width:min(1240px,100%);margin:auto}.portal-head{display:flex;align-items:center;gap:14px;padding:16px 4px 22px}.portal-head img{width:70px}.portal-head h1{margin:0}.portal-head p{margin:4px 0 0;color:var(--muted)}.portal-request{padding:15px;border-radius:16px;background:rgba(255,255,255,.025);border:1px solid var(--line);margin-bottom:16px}.portal-decision{display:grid;gap:12px;margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.portal-decision textarea,.portal-decision input,.portal-decision select{width:100%;padding:12px;border-radius:12px;border:1px solid var(--line);background:#04140d;color:var(--text)}.portal-success{text-align:center;padding:44px 20px}.portal-success h2{color:var(--green)}@media(max-width:600px){.portal-body{padding:10px}.portal-head img{width:54px}.portal-head h1{font-size:1.35rem}}
.v29-tower-metrics{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.v29-tower-metrics span{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);padding:7px 10px;border-radius:999px;font-size:.82rem}.v29-tower-metrics b{margin-left:5px;color:#e8c97b}
@media(max-width:720px){.v29-tower-metrics{display:grid;grid-template-columns:1fr 1fr}.v29-tower-metrics span{border-radius:10px}}
/* V29.1 design visualization and deposit verification */
.v29-visual-stack{display:grid;gap:10px;margin:10px 0}.v29-visual-stack figure{margin:0}.v29-visual-stack figcaption{padding:6px 2px;color:var(--v29-gold);font-size:.76rem;font-weight:850;letter-spacing:.03em}.v29-perspective{background:#17261f}.selected-option{border-color:var(--green)!important;box-shadow:0 0 0 2px rgba(56,229,127,.18),0 18px 40px rgba(0,0,0,.3)}.proposal-reference{max-height:300px;margin:12px 0}.portal-payment{margin-top:20px;padding:18px;border:1px solid rgba(228,191,103,.25);border-radius:16px;background:rgba(228,191,103,.045)}.portal-payment h3{margin:0}.portal-deposits{margin-top:18px;padding:16px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.02)}.portal-deposit-row{display:grid;grid-template-columns:1.2fr 1fr 1fr 1.4fr 1fr;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.portal-deposit-row:last-child{border-bottom:0}.portal-deposit-row span{overflow-wrap:anywhere}.portal-deposit-row .status{justify-self:start}
@media(max-width:800px){.portal-deposit-row{grid-template-columns:1fr 1fr}.portal-deposit-row b{grid-column:1/-1}.v29-visual-stack{gap:6px}.v29-layout{min-height:140px}}
@media print{.v29-visual-stack{grid-template-columns:1fr 1fr}.portal-decision,.modal-actions{display:none!important}}


/* ===== assets/control-v29.css ===== */
/* Tedy Abera Langano Furniture — V29 luxury control layer */
:root{
  --ctrl-gold:#d7b35a;--ctrl-gold2:#fff0a5;--ctrl-deep:#02110b;--ctrl-panel:#09281c;--ctrl-green:#23d97b;
}
body{background:radial-gradient(circle at 10% 0%,rgba(33,185,105,.12),transparent 28%),linear-gradient(180deg,#020d08,#04140d 42%,#020b07);}
.brand img,.login-card img,.login-art img{filter:drop-shadow(0 8px 24px rgba(215,179,90,.25))}
.brand h1{font-size:14px;line-height:1.35;letter-spacing:.01em}.brand small{color:#d9bc70}
.login-page{background:radial-gradient(circle at 18% 13%,rgba(34,217,123,.22),transparent 31%),#020e09}
.login-art:after{background:linear-gradient(90deg,rgba(2,17,11,.76),rgba(2,17,11,.12)),url('brand/dashboard-hero.jpg') center/cover no-repeat;opacity:1;filter:saturate(1.05) contrast(1.02)}
.login-card{border-color:rgba(215,179,90,.45);box-shadow:0 30px 90px rgba(0,0,0,.62),inset 0 1px rgba(255,255,255,.04)}
.sidebar{background:linear-gradient(180deg,#03150e,#061f16 46%,#020e09);border-right-color:rgba(215,179,90,.18)}
.nav-item.active{background:linear-gradient(90deg,rgba(35,217,123,.19),rgba(215,179,90,.10));border-color:rgba(215,179,90,.34)}
.topbar{background:rgba(2,16,10,.89);border-bottom-color:rgba(215,179,90,.16)}
.card{border-color:rgba(215,179,90,.18);background:linear-gradient(155deg,rgba(11,44,30,.97),rgba(3,19,12,.98));box-shadow:0 18px 55px rgba(0,0,0,.32)}
.btn.gold{background:linear-gradient(135deg,#f7df8b,#b88932);color:#1a1508;border-color:#f4d77c;font-weight:900}
.btn.primary{background:linear-gradient(135deg,#31e48a,#0d864d);border-color:#44ed96;color:#01150b;font-weight:900}
.ctrl-hero{min-height:330px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);padding:0;overflow:hidden;border-color:rgba(215,179,90,.45);background:radial-gradient(circle at 12% 15%,rgba(35,217,123,.2),transparent 34%),linear-gradient(135deg,#06271a,#03130d)}
.ctrl-hero-copy{padding:42px 38px;display:flex;flex-direction:column;justify-content:center;position:relative;z-index:2}
.ctrl-eyebrow{display:inline-flex;width:max-content;padding:7px 11px;border-radius:999px;border:1px solid rgba(215,179,90,.42);background:rgba(215,179,90,.1);color:#ffe7a2;font-size:11px;font-weight:850}
.ctrl-hero h1{font-size:clamp(32px,4.2vw,60px);line-height:1.05;margin:18px 0 12px;letter-spacing:-.03em}.ctrl-hero h1 span{color:#f2d47d;text-shadow:0 0 25px rgba(215,179,90,.16)}
.ctrl-hero p{max-width:650px;color:#c2ddcd;font-size:15px;line-height:1.8}.ctrl-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.ctrl-hero-photo{min-height:330px;background:linear-gradient(90deg,#06271a 0%,rgba(6,39,26,.18) 31%,rgba(0,0,0,.08)),linear-gradient(180deg,transparent 62%,rgba(1,13,8,.4)),url('brand/dashboard-hero.jpg') center/cover no-repeat;clip-path:polygon(13% 0,100% 0,100% 100%,0 100%)}
.ctrl-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:16px 0}.ctrl-kpi{min-height:126px;padding:17px;border-radius:20px;border:1px solid rgba(215,179,90,.2);background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.015));position:relative;overflow:hidden}.ctrl-kpi:after{content:"";position:absolute;width:82px;height:82px;border-radius:50%;right:-30px;top:-28px;background:rgba(35,217,123,.11)}.ctrl-kpi.warn:after{background:rgba(255,190,68,.18)}.ctrl-kpi span{display:block;color:#9fc7ad;font-size:11px;min-height:28px}.ctrl-kpi b{display:block;font-size:clamp(21px,2.3vw,32px);margin:9px 0 4px}.ctrl-kpi small{color:#7fa38d;font-size:10px}
.ctrl-quick-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:16px}.ctrl-quick-grid button{min-height:94px;border-radius:20px;border:1px solid rgba(215,179,90,.2);background:linear-gradient(145deg,#0b3021,#061b12);color:#edf8f1;cursor:pointer;box-shadow:0 14px 30px rgba(0,0,0,.22);transition:.18s}.ctrl-quick-grid button:hover{transform:translateY(-2px);border-color:rgba(215,179,90,.55)}.ctrl-quick-grid i{display:block;font-style:normal;font-size:25px;color:#e5c66d;margin-bottom:7px}.ctrl-quick-grid b{font-size:12px}
.ctrl-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.ctrl-alert-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ctrl-alert-list span{padding:13px;border:1px solid rgba(215,179,90,.15);border-radius:15px;background:rgba(0,0,0,.16)}.ctrl-alert-list b{font-size:22px;color:#efcf74;margin-right:5px}
.ctrl-lines{display:grid;gap:8px;margin-bottom:9px}.ctrl-line{display:grid;grid-template-columns:1.3fr 1fr .55fr .7fr auto;gap:7px}.ctrl-line select,.ctrl-line input{min-width:0;border:1px solid rgba(82,255,155,.2);background:#04140d;color:#eaf8ef;border-radius:11px;padding:10px}
.ctrl-progress-grid,.ctrl-task-grid,.ctrl-message-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.ctrl-progress-card img,.ctrl-task>img{width:100%;height:180px;object-fit:cover;border-radius:16px;margin:10px 0}.ctrl-progress-top{display:flex;justify-content:space-between;align-items:center}.ctrl-progress-top b{color:#efcf74;font-size:24px}.ctrl-progress-bar{height:10px;border-radius:999px;background:#03110b;overflow:hidden;margin:12px 0}.ctrl-progress-bar i{display:block;height:100%;background:linear-gradient(90deg,#18a85e,#38eb8c);border-radius:inherit}.ctrl-task{transition:.18s}.ctrl-task:hover{transform:translateY(-2px)}.ctrl-overdue{border-color:rgba(255,98,111,.5)!important}.ctrl-task small{color:#89ad97}.ctrl-message-list article{display:flex;flex-direction:column;gap:10px}.ctrl-message-list article .btn{margin-top:auto;width:max-content}
.ctrl-kiosk{max-width:760px;margin:auto;text-align:center;border-color:rgba(215,179,90,.44)}.ctrl-kiosk>img{width:92px}.ctrl-kiosk h2{font-size:30px;margin-bottom:6px}.ctrl-kiosk .form-grid{text-align:left;margin-top:18px}.ctrl-kiosk-actions{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:18px}.ctrl-kiosk-actions .btn{min-height:58px;font-size:18px}
.ctrl-readiness{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ctrl-readiness span{padding:10px 12px;border:1px solid rgba(215,179,90,.17);border-radius:12px;background:rgba(0,0,0,.13);font-size:12px}
@media(max-width:1300px){.ctrl-kpi-grid{grid-template-columns:repeat(3,1fr)}.ctrl-quick-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:1050px){.ctrl-hero{grid-template-columns:1fr}.ctrl-hero-photo{min-height:240px;clip-path:none}.ctrl-progress-grid,.ctrl-task-grid,.ctrl-message-list{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.ctrl-hero-copy{padding:25px 20px}.ctrl-hero{min-height:auto}.ctrl-hero-photo{min-height:210px;background-position:58% center}.ctrl-kpi-grid{grid-template-columns:repeat(2,1fr)}.ctrl-kpi{min-height:112px}.ctrl-quick-grid{grid-template-columns:repeat(3,1fr)}.ctrl-quick-grid button{min-height:82px}.ctrl-progress-grid,.ctrl-task-grid,.ctrl-message-list{grid-template-columns:1fr}.ctrl-alert-list{grid-template-columns:1fr}.ctrl-line{grid-template-columns:1fr 1fr}.ctrl-line button{grid-column:2}.ctrl-readiness{grid-template-columns:1fr}.ctrl-kiosk-actions{grid-template-columns:1fr}.ctrl-hero h1{font-size:34px}}
@media print{.ctrl-hero-actions,.ctrl-quick-grid{display:none!important}.ctrl-hero{display:block;min-height:auto}.ctrl-hero-photo{display:none}.ctrl-kpi-grid{grid-template-columns:repeat(3,1fr)}}


/* ===== assets/complete-repair-v29-2-10.css ===== */
/* TEDY ERP V29.2.10 mobile, form and production-readiness polish */
:root{--v2910-green:#064d31;--v2910-deep:#031b12;--v2910-gold:#d6b66a;--v2910-danger:#9e2f2f}
body{padding-bottom:max(84px,env(safe-area-inset-bottom))}
.v2910-status{position:fixed;left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));z-index:1600;display:flex;align-items:center;justify-content:center;gap:7px;min-height:28px;padding:5px 11px;border:1px solid rgba(214,182,106,.35);border-radius:999px;background:rgba(3,27,18,.92);backdrop-filter:blur(10px);color:#e8f4ed;font-size:11px;box-shadow:0 8px 25px rgba(0,0,0,.25);pointer-events:none}.v2910-status.with-bottom-nav{bottom:calc(67px + env(safe-area-inset-bottom))}.v2910-status .dot{width:7px;height:7px;border-radius:50%;background:#f2c94c}.v2910-status .dot.ok{background:#25d366}.v2910-status .dot.bad{background:#ff5e5e}.v2910-status .sep{opacity:.45}.v2910-status .queue{padding:2px 7px;border-radius:999px;background:#815f0d;color:#fff}
.select-search{display:grid;gap:6px}.select-filter{height:38px!important;font-size:14px!important;border-style:dashed!important}.sticky-form-actions{position:sticky;bottom:0;z-index:12;margin:12px -12px -12px!important;padding:12px!important;background:linear-gradient(180deg,rgba(3,27,18,.15),rgba(3,27,18,.98) 30%);border-top:1px solid rgba(214,182,106,.24);display:flex!important;gap:8px;flex-wrap:wrap}.sticky-form-actions .btn{flex:1;min-width:150px}
.form-error-summary{padding:12px 14px;border:1px solid #ff7b7b;border-radius:12px;background:rgba(158,47,47,.18);color:#ffe5e5}.form-error-summary ul{margin:7px 0 0;padding-left:22px}.order-live-balance,.purchase-total-preview{font-size:18px;font-weight:800;color:var(--v2910-gold);padding:12px;border:1px solid rgba(214,182,106,.3);border-radius:12px;background:rgba(214,182,106,.06)}.payroll-preview{max-height:240px;overflow:auto;padding:12px;border-radius:12px;background:#00150d;color:#b8e8cc;white-space:pre-wrap}
.toast-root{max-height:45vh;overflow:hidden}.toast{max-width:min(94vw,480px);word-break:break-word}
input:invalid:not(:placeholder-shown),select:invalid{border-color:#d55!important}.field input,.field select,.field textarea{scroll-margin-bottom:160px}
@media(max-width:780px){
 .v2910-table{overflow-x:auto;scrollbar-color:var(--v2910-gold) transparent;scrollbar-width:thin}.v2910-table:after{content:'← ለተጨማሪ መረጃ ወደጎን ይንሸራተቱ →';display:block;text-align:center;font-size:11px;color:#9db7a8;padding:6px}
 .v2910-table table,.v2910-table thead,.v2910-table tbody,.v2910-table tr,.v2910-table th,.v2910-table td{display:block;width:100%}.v2910-table thead{position:absolute;clip:rect(0 0 0 0)}.v2910-table tr{margin:0 0 12px;padding:10px;border:1px solid rgba(214,182,106,.2);border-radius:14px;background:rgba(255,255,255,.025)}.v2910-table td{display:grid;grid-template-columns:minmax(105px,38%) 1fr;gap:10px;padding:7px 3px!important;border:0!important;text-align:left!important;overflow-wrap:anywhere}.v2910-table td:before{content:attr(data-label);font-weight:700;color:#9ecab0}.v2910-table td:empty{display:none}
 .form-grid{grid-template-columns:1fr!important}.modal-card{width:calc(100vw - 12px)!important;max-height:94dvh!important}.modal-body{padding:12px!important}.btn{min-height:44px}.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.actions .btn{width:100%}.page-head{gap:8px}.page-head h1{font-size:21px}.kpi-value{font-size:22px!important}
 .bottom-nav{padding-bottom:env(safe-area-inset-bottom)}
}
@media(min-width:781px){.v2910-status{left:auto;right:18px;bottom:18px;width:auto}.v2910-table:after{display:none}}


/* ===== assets/v29-3-0-r2-furniture-intelligence.css ===== */
/* TEDY ERP V29.3.0-R2 luxury furniture intelligence layer */
:root{
  --r2-gold:#d8b56a;
  --r2-gold-soft:#f0d79a;
  --r2-emerald:#0b3b2c;
  --r2-emerald-deep:#041b13;
  --r2-panel:rgba(8,35,25,.88);
  --r2-line:rgba(216,181,106,.22);
  --r2-hero-image:url("brand/dashboard-hero-v29-4-0-4k.jpg");
}
html[data-r2-theme="obsidian"]{--r2-emerald:#181818;--r2-emerald-deep:#080808;--r2-panel:rgba(20,20,20,.9)}
html[data-r2-theme="ivory"]{--r2-emerald:#5a533f;--r2-emerald-deep:#2e2a21;--r2-panel:rgba(65,59,45,.92)}
body[data-r2="smart-furniture"] .app-shell{background:
  radial-gradient(circle at 12% 8%,rgba(216,181,106,.08),transparent 28%),
  radial-gradient(circle at 86% 12%,rgba(29,111,77,.09),transparent 30%),
  var(--bg,#061a12)}
body[data-r2="smart-furniture"] .sidebar{box-shadow:20px 0 70px rgba(0,0,0,.18)}
body[data-r2="smart-furniture"] .card{border-color:var(--r2-line);box-shadow:0 18px 50px rgba(0,0,0,.12)}
body[data-r2="smart-furniture"] .btn.primary{box-shadow:0 10px 24px rgba(13,83,57,.22)}
.r2-luxury-hero{position:relative;overflow:hidden;min-height:310px;background:linear-gradient(100deg,rgba(3,22,15,.97) 0%,rgba(3,22,15,.84) 44%,rgba(3,22,15,.1) 100%),var(--r2-hero-image) center/cover no-repeat!important;border:1px solid rgba(216,181,106,.28)!important}
.r2-luxury-hero .hero-art{background:none!important;min-height:290px}
.r2-luxury-hero .hero-copy{position:relative;z-index:2;max-width:720px}
.r2-luxury-hero .hero-copy h1{font-size:clamp(30px,4vw,56px);line-height:1.08;letter-spacing:-.02em;text-shadow:0 8px 28px rgba(0,0,0,.28)}
.r2-eyebrow{display:inline-block;font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--r2-gold-soft);font-weight:800;margin-bottom:8px}
.r2-smart-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px;background:linear-gradient(135deg,rgba(7,45,31,.96),rgba(4,26,18,.96));border:1px solid rgba(216,181,106,.28)}
.r2-smart-hero h2,.r2-result-head h2{margin:.15rem 0 .45rem;font-size:clamp(24px,3vw,38px)}
.r2-smart-hero p{max-width:850px;color:rgba(255,255,255,.72);line-height:1.75}
.r2-score{min-width:130px;min-height:112px;border-radius:22px;border:1px solid rgba(216,181,106,.3);background:rgba(216,181,106,.08);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.r2-score b{font-size:34px;color:var(--r2-gold-soft);line-height:1}.r2-score span{font-size:12px;color:rgba(255,255,255,.65);margin-top:8px}
.r2-feature-cards{margin:16px 0}.r2-feature-cards article{padding:22px;position:relative;overflow:hidden}.r2-feature-cards article:before{content:"";position:absolute;inset:0 0 auto;height:2px;background:linear-gradient(90deg,var(--r2-gold),transparent)}
.r2-feature-cards b{font-size:17px}.r2-feature-cards p{margin:.5rem 0 0;color:var(--muted,#9db1a8);line-height:1.6}
.r2-image-preview{min-height:90px;border:1px dashed rgba(216,181,106,.35);border-radius:18px;display:grid;place-items:center;overflow:hidden;background:rgba(255,255,255,.025)}
.r2-image-preview img{width:100%;max-height:360px;object-fit:cover;display:block}
.r2-result-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:22px 0 14px;padding:22px;border-radius:22px;background:linear-gradient(135deg,rgba(9,61,42,.98),rgba(3,25,17,.98));border:1px solid rgba(216,181,106,.25)}
.r2-result-head p{margin:0;color:rgba(255,255,255,.65)}
.r2-kpis{margin:12px 0}.r2-kpis .kpi{border:1px solid rgba(216,181,106,.18)}
.r2-kpis .kpi-value{font-size:clamp(17px,2vw,24px)}
.r2-intel-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:12px 0}.r2-intel{padding:15px;border-radius:16px;border:1px solid rgba(216,181,106,.16);background:rgba(255,255,255,.025);display:flex;flex-direction:column}.r2-intel b{font-size:23px;color:var(--r2-gold-soft)}.r2-intel span{font-size:11px;color:var(--muted,#9db1a8);margin-top:4px}
.r2-inner{padding:0;overflow:hidden}.r2-shortage td{background:rgba(180,95,30,.08)}.r2-shortage td:nth-child(5){color:#f0b36a}.r2-warn{color:#f0b36a;font-weight:700}
.r2-feature-strip{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.r2-feature-strip span{border:1px solid rgba(216,181,106,.22);background:rgba(216,181,106,.07);border-radius:999px;padding:8px 11px;font-size:12px;color:var(--r2-gold-soft)}
.r2-catalog{margin:14px 0;border:1px solid rgba(216,181,106,.14);border-radius:16px;padding:13px 15px;background:rgba(255,255,255,.018)}.r2-catalog summary{cursor:pointer;font-weight:700}.r2-catalog>div{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.r2-catalog span{font-size:11px;padding:7px 9px;border-radius:10px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.05)}
.r2-sticky-actions{position:sticky;bottom:10px;padding:12px;border-radius:16px;background:rgba(3,23,16,.92);backdrop-filter:blur(16px);border:1px solid rgba(216,181,106,.22);z-index:5}
.r2-owner-studio{margin-top:16px;background:linear-gradient(135deg,rgba(8,48,34,.96),rgba(4,25,18,.98));border:1px solid rgba(216,181,106,.28)}
.r2-card-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.r2-card-title h3{margin:0}.r2-dashboard-intel{margin-top:16px;border:1px solid rgba(216,181,106,.25)}
.r2-calc-result{margin-top:16px}.r2-calc-result .kpi{min-height:105px}
@media(max-width:900px){.r2-intel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.r2-smart-hero,.r2-result-head{align-items:flex-start}.r2-score{min-width:105px}}
@media(max-width:640px){.r2-smart-hero,.r2-result-head{flex-direction:column}.r2-score{width:100%;min-height:88px}.r2-intel-grid{grid-template-columns:1fr 1fr}.r2-sticky-actions{position:static}.r2-luxury-hero{min-height:360px;background:linear-gradient(180deg,rgba(3,22,15,.96) 0%,rgba(3,22,15,.78) 62%,rgba(3,22,15,.35) 100%),var(--r2-hero-image) center/cover no-repeat!important}.r2-luxury-hero .hero-copy h1{font-size:34px}.r2-feature-strip span{font-size:11px}}


/* ===== assets/r2-4-3-smart-estimator.css ===== */
/* TEDY ERP V29.3.0-R2.4.3 — Smart estimator mobile result */
.r243-est-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:12px 0}
.r243-est-summary span{padding:10px;border:1px solid rgba(82,255,155,.18);border-radius:12px;background:rgba(255,255,255,.025);font-size:11px;color:#9fc5ad}
.r243-est-summary b{display:block;color:#fff;font-size:18px;margin-bottom:2px}
.r243-est-lines{display:grid;gap:10px;margin:12px 0}
.r243-est-line{display:grid;grid-template-columns:1fr 2fr 1fr 1fr 1fr 1fr 1fr;gap:8px;padding:12px;border:1px solid rgba(82,255,155,.18);border-radius:14px;background:rgba(0,0,0,.16)}
.r243-est-line.warn{border-color:rgba(255,207,101,.42);background:rgba(255,207,101,.05)}
.r243-est-line>div{min-width:0}
.r243-est-line small{display:block;color:#8fb9a0;font-size:10px;margin-bottom:3px}
.r243-est-line b{display:block;overflow-wrap:anywhere}
.r243-est-line span{display:block;color:#91ad9c;font-size:10px;margin-top:2px}
.r243-est-actions{position:sticky;bottom:0;padding:10px 0;background:linear-gradient(180deg,transparent,#071b12 24%)}
@media(max-width:760px){
  .r243-est-summary{grid-template-columns:1fr 1fr}
  .r243-est-line{grid-template-columns:1fr 1fr;padding:12px 11px}
  .r243-est-line>div:nth-child(2){grid-column:1/-1}
  .r243-est-actions{position:static}
  .r243-est-actions .btn{width:100%}
}


/* ===== assets/final-v29-3-0-r2-6.css ===== */
/* TEDY ERP V29.3.0-R2.6 FINAL — mobile clarity + luxury material explorer */
:root{--tf-final-gold:#d7b866;--tf-final-line:rgba(128,214,163,.18);--tf-final-soft:rgba(255,255,255,.035)}
.tf-kicker{font-size:10px;letter-spacing:.13em;text-transform:uppercase;color:#d7b866;font-weight:800}
.tf-material-hero{display:flex;justify-content:space-between;gap:16px;align-items:end;padding:20px;border:1px solid var(--tf-final-line);border-radius:20px;background:linear-gradient(135deg,rgba(5,49,31,.94),rgba(4,24,16,.96));box-shadow:0 18px 50px rgba(0,0,0,.18);margin-bottom:12px}
.tf-material-hero h2{margin:5px 0 4px;font-size:clamp(20px,4vw,30px)}.tf-material-hero p{margin:0;color:#a8c8b4}.tf-material-actions{display:flex;gap:8px;flex-wrap:wrap}
.tf-mini-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:10px 0}.tf-mini-kpis>div{border:1px solid var(--tf-final-line);border-radius:14px;background:var(--tf-final-soft);padding:12px}.tf-mini-kpis b{display:block;font-size:22px}.tf-mini-kpis span{font-size:11px;color:#9cb5a5}
.tf-filter-card{display:grid!important;grid-template-columns:minmax(180px,2fr) repeat(3,minmax(130px,1fr)) auto;gap:8px;align-items:center;position:sticky;top:66px;z-index:5;backdrop-filter:blur(14px);background:rgba(4,27,18,.94)!important}
.tf-material-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tf-material-card{border:1px solid var(--tf-final-line);border-radius:17px;padding:14px;background:linear-gradient(180deg,rgba(8,43,29,.96),rgba(4,28,19,.98));box-shadow:0 10px 26px rgba(0,0,0,.12)}
.tf-material-card.is-low{border-color:rgba(235,184,82,.38)}.tf-material-card header{display:flex;justify-content:space-between;gap:10px;align-items:start}.tf-material-card h3{margin:5px 0 1px;font-size:16px;line-height:1.25}.tf-material-card header small{color:#8ea99a}.tf-code{font:700 11px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;color:#d7b866}
.tf-mat-chips,.tf-used{display:flex;gap:5px;flex-wrap:wrap}.tf-mat-chips{margin:10px 0}.tf-mat-chips span,.tf-used span{border:1px solid var(--tf-final-line);border-radius:999px;padding:4px 7px;font-size:10px;color:#b9d4c3;background:rgba(255,255,255,.025)}
.tf-mat-metrics{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:7px}.tf-mat-metrics>div{padding:9px;border-radius:11px;background:rgba(0,0,0,.15)}.tf-mat-metrics small{display:block;font-size:9px;color:#86a594;margin-bottom:3px}.tf-mat-metrics b{font-size:13px;overflow-wrap:anywhere}
.tf-stock-track{height:4px;border-radius:99px;background:rgba(255,255,255,.07);margin:10px 0;overflow:hidden}.tf-stock-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2de183,#d7b866)}
.tf-material-card footer{display:flex;align-items:end;justify-content:space-between;gap:8px}.tf-used{flex:1}
.tf-final-owner{margin-top:16px}.tf-owner-head{display:flex;justify-content:space-between;gap:12px;align-items:start}.tf-owner-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:12px}

/* Generic tables remain classic on desktop. */
.tf-final-responsive table{width:100%}

/* Forms and taps */
@media(max-width:760px){
  body{font-size:14px}
  .content{padding:10px!important}.card{border-radius:16px!important}
  .tf-material-hero{padding:14px;align-items:stretch;flex-direction:column}.tf-material-actions .btn{flex:1;min-height:43px}
  .tf-mini-kpis{grid-template-columns:1fr 1fr}.tf-mini-kpis>div{padding:10px}
  .tf-filter-card{top:56px;grid-template-columns:1fr 1fr;padding:10px!important}.tf-filter-card #tfMatSearch{grid-column:1/-1}.tf-filter-card .pill{grid-column:1/-1;justify-self:stretch;text-align:center}
  .tf-material-list{grid-template-columns:1fr}.tf-material-card{padding:13px}.tf-material-card h3{font-size:15px}
  .tf-mat-metrics{grid-template-columns:1fr 1fr}.tf-mat-metrics>div:first-child{grid-column:1/-1}
  .tf-material-card footer{align-items:stretch;flex-direction:column}.tf-material-card footer .btn{width:100%;min-height:40px}
  html[data-mobile-density="compact"] .tf-material-card{padding:10px}.tf-material-card header small{font-size:11px}
  html[data-mobile-density="compact"] .tf-mat-chips{margin:6px 0}.tf-material-card .status{white-space:nowrap}

  /* Convert every ordinary ERP table into readable stacked rows, better than horizontal tiny text. */
  .tf-final-responsive{overflow:visible!important}
  .tf-final-responsive table,.tf-final-responsive tbody,.tf-final-responsive tr,.tf-final-responsive td{display:block;width:100%}
  .tf-final-responsive thead{display:none}
  .tf-final-responsive tbody{display:grid;gap:9px}
  .tf-final-responsive tr{border:1px solid var(--tf-final-line);border-radius:14px;padding:8px 10px;background:rgba(4,34,23,.86);box-shadow:0 6px 18px rgba(0,0,0,.10)}
  .tf-final-responsive td{border:0!important;display:grid;grid-template-columns:minmax(105px,38%) minmax(0,1fr);align-items:start;gap:9px;padding:6px 2px!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere}
  .tf-final-responsive td::before{content:attr(data-label);color:#87a998;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}
  .tf-final-responsive td .btn{width:100%;min-height:38px}
  .form-grid{grid-template-columns:1fr!important}.field.full{grid-column:1!important}
  input,select,textarea,.search-input{font-size:16px!important;min-height:44px}
  .modal-card{width:min(96vw,680px)!important;max-height:94vh!important}
  .r2-kpis,.grid.g5{grid-template-columns:1fr 1fr!important}.r2-kpis .kpi:last-child{grid-column:1/-1}
}
@media(max-width:390px){.tf-mat-metrics{grid-template-columns:1fr}.tf-mat-metrics>div:first-child{grid-column:auto}.tf-mini-kpis{gap:6px}.r2-kpis,.grid.g5{grid-template-columns:1fr!important}}


/* ===== assets/r2-6-1-mobile-side-swipe.css ===== */
/* TEDY ERP V29.3.0-R2.6.1 — MOBILE SIDE-SWIPE REPAIR
   Fixes mobile pages where right-side values are visible but cannot be reached by swiping.
   No DB/SQL/auth/stock logic changes. */

@media (max-width:760px){
  .main-wrap,.content,.grid,.card{min-width:0!important}

  /* Real horizontal scroll container for all legacy/final ERP tables. */
  .table-wrap,
  .v2910-table,
  .tf-final-responsive{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
    touch-action:pan-x pan-y;
    scrollbar-width:thin;
    scrollbar-color:rgba(215,184,102,.8) rgba(255,255,255,.05);
    position:relative;
  }

  .table-wrap::-webkit-scrollbar,
  .v2910-table::-webkit-scrollbar,
  .tf-final-responsive::-webkit-scrollbar{height:7px}
  .table-wrap::-webkit-scrollbar-track,
  .v2910-table::-webkit-scrollbar-track,
  .tf-final-responsive::-webkit-scrollbar-track{
    background:rgba(255,255,255,.04);
    border-radius:99px
  }
  .table-wrap::-webkit-scrollbar-thumb,
  .v2910-table::-webkit-scrollbar-thumb,
  .tf-final-responsive::-webkit-scrollbar-thumb{
    background:linear-gradient(90deg,#39df83,#d7b866);
    border-radius:99px
  }

  /*
   * The R2.6 stacked-card layout remains readable, but gets a modest
   * minimum canvas width. On a phone this creates 140–220px of genuine
   * side travel instead of clipping the right value column.
   */
  .tf-final-responsive>table,
  .table-wrap>table.v35-mobile-cards{
    width:620px!important;
    min-width:620px!important;
    max-width:none!important;
  }

  .tf-final-responsive tbody,
  .tf-final-responsive tr,
  .table-wrap>table.v35-mobile-cards tbody,
  .table-wrap>table.v35-mobile-cards tr{
    width:100%!important;
    min-width:100%!important;
    max-width:none!important;
  }

  .tf-final-responsive td,
  .table-wrap>table.v35-mobile-cards td{
    grid-template-columns:minmax(125px,190px) minmax(280px,1fr)!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    overflow:visible!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }

  .tf-final-responsive td>*,
  .table-wrap>table.v35-mobile-cards td>*{
    min-width:0!important;
    max-width:none!important;
  }

  /* Small, non-blocking swipe cue. */
  .tf-final-responsive::before{
    content:"⇆ ወደ ጎን ያንሸራትቱ";
    display:block;
    position:sticky;
    left:0;
    width:max-content;
    max-width:calc(100vw - 44px);
    margin:0 0 7px;
    padding:5px 9px;
    border:1px solid rgba(215,184,102,.22);
    border-radius:999px;
    background:rgba(4,28,19,.92);
    color:#d7b866;
    font-size:10px;
    font-weight:800;
    z-index:2;
  }

  /* Chips can also be swiped sideways instead of becoming tiny. */
  .tf-mat-chips,.tf-used{
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-x;
    scrollbar-width:none;
    max-width:100%;
  }
  .tf-mat-chips::-webkit-scrollbar,.tf-used::-webkit-scrollbar{display:none}
  .tf-mat-chips span,.tf-used span{flex:0 0 auto}

  /* Forms/modals stay within the screen; only their table/list child scrolls. */
  .modal-card{max-width:96vw!important;overflow-x:hidden!important}
}

/* Very narrow phones: retain enough side travel while keeping labels readable. */
@media (max-width:390px){
  .tf-final-responsive>table,
  .table-wrap>table.v35-mobile-cards{
    width:590px!important;
    min-width:590px!important;
  }
  .tf-final-responsive td,
  .table-wrap>table.v35-mobile-cards td{
    grid-template-columns:minmax(118px,175px) minmax(265px,1fr)!important;
  }
}


/* ===== assets/r2-6-2-mobile-full-fit.css ===== */
/* TEDY ERP V29.3.0-R2.6.2 — MOBILE FULL-FIT / NO HORIZONTAL SCROLL
   Purpose:
   - Keep the clear R2.6 card UI.
   - Show ALL row/card values inside phone width.
   - No left/right page or table swipe required.
   - Does not change DB/Auth/Stock/BOM/Production logic.
*/

@media (max-width:760px){

  /* 1) Never allow the whole ERP page to drift sideways. */
  html,body,#app,.app,.app-shell,.main-wrap,.content,#main,
  .page,.card,.grid,.split,.toolbar,.actions,.page-head,
  .modal-root,.modal,.modal-card,.modal-body{
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
  html,body,#app,.app,.main-wrap,.content,#main{
    overflow-x:hidden!important;
  }

  /* 2) CANCEL R2.6.1 side-swipe behavior.
        The underlying R2.6 stacked-card layout becomes the only mobile layout. */
  .table-wrap,
  .table-responsive,
  .v2910-table,
  .tf-final-responsive{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    overflow-x:hidden!important;
    overflow-y:visible!important;
    overscroll-behavior-x:none!important;
    touch-action:pan-y!important;
    scrollbar-width:none!important;
  }
  .table-wrap::-webkit-scrollbar,
  .table-responsive::-webkit-scrollbar,
  .v2910-table::-webkit-scrollbar,
  .tf-final-responsive::-webkit-scrollbar{
    display:none!important;
    width:0!important;
    height:0!important;
  }

  /* Remove the previous "swipe sideways" cue. */
  .tf-final-responsive::before,
  .table-wrap::after{
    display:none!important;
    content:none!important;
  }

  /* 3) Critical root-cause fix:
        base styles.css has table{min-width:760px}; override it on phones. */
  table,
  table.v35-mobile-cards,
  .tf-final-responsive>table,
  .table-wrap>table,
  .table-responsive>table{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    table-layout:auto!important;
  }

  /* 4) Force all ordinary ERP tables into readable vertical record cards. */
  table.v35-mobile-cards thead,
  .tf-final-responsive thead{
    display:none!important;
  }

  table.v35-mobile-cards,
  table.v35-mobile-cards tbody,
  table.v35-mobile-cards tr,
  table.v35-mobile-cards td,
  .tf-final-responsive table,
  .tf-final-responsive tbody,
  .tf-final-responsive tr,
  .tf-final-responsive td{
    box-sizing:border-box!important;
    max-width:100%!important;
    min-width:0!important;
  }

  table.v35-mobile-cards,
  table.v35-mobile-cards tbody,
  table.v35-mobile-cards tr,
  .tf-final-responsive table,
  .tf-final-responsive tbody,
  .tf-final-responsive tr{
    display:block!important;
    width:100%!important;
  }

  table.v35-mobile-cards tbody,
  .tf-final-responsive tbody{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
  }

  table.v35-mobile-cards tr,
  .tf-final-responsive tr{
    padding:9px 10px!important;
    border:1px solid rgba(128,214,163,.18)!important;
    border-radius:14px!important;
    background:rgba(4,34,23,.88)!important;
    overflow:hidden!important;
  }

  table.v35-mobile-cards td,
  .tf-final-responsive td{
    display:grid!important;
    grid-template-columns:minmax(88px,34%) minmax(0,1fr)!important;
    gap:9px!important;
    width:100%!important;
    padding:7px 2px!important;
    border:0!important;
    border-bottom:1px dashed rgba(255,255,255,.07)!important;
    text-align:left!important;
    white-space:normal!important;
    overflow:visible!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
  }

  table.v35-mobile-cards td:last-child,
  .tf-final-responsive td:last-child{
    border-bottom:0!important;
  }

  table.v35-mobile-cards td::before,
  .tf-final-responsive td::before{
    content:attr(data-label)!important;
    min-width:0!important;
    color:#8fb39f!important;
    font-size:10px!important;
    line-height:1.35!important;
    font-weight:800!important;
    text-transform:uppercase!important;
    letter-spacing:.02em!important;
    overflow-wrap:anywhere!important;
  }

  /* Long IDs/codes/references MUST wrap instead of pushing the card wider. */
  table.v35-mobile-cards td *,
  .tf-final-responsive td *,
  .code,.nowrap,.reference,.material-code{
    min-width:0!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
  }

  table.v35-mobile-cards td .btn,
  .tf-final-responsive td .btn{
    width:100%!important;
    max-width:100%!important;
    min-height:40px!important;
  }

  /* 5) Raw Material Master: everything fits; chips wrap instead of side-scroll. */
  .tf-material-hero,
  .tf-material-list,
  .tf-material-card,
  .tf-mat-metrics,
  .tf-material-card header,
  .tf-material-card footer,
  .tf-used,.tf-mat-chips{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }

  .tf-mat-chips,.tf-used{
    display:flex!important;
    flex-wrap:wrap!important;
    overflow:visible!important;
    gap:5px!important;
    touch-action:pan-y!important;
  }
  .tf-mat-chips span,.tf-used span{
    flex:0 1 auto!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }

  .tf-material-card h3,
  .tf-material-card small,
  .tf-material-card b,
  .tf-code{
    max-width:100%!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }

  /* 6) Material filters: one clean full-width control per row on normal phones.
        This removes the clipped right-side Furniture filter seen in the video. */
  .tf-filter-card{
    display:grid!important;
    grid-template-columns:1fr!important;
    width:100%!important;
    max-width:100%!important;
    padding:10px!important;
    gap:8px!important;
  }
  .tf-filter-card>*,
  .tf-filter-card #tfMatSearch,
  .tf-filter-card select,
  .tf-filter-card input,
  .tf-filter-card .pill{
    grid-column:1!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }

  /* 7) Forms/modal controls cannot create horizontal overflow. */
  .form-grid{
    grid-template-columns:1fr!important;
    width:100%!important;
    max-width:100%!important;
  }
  .field,.field.full{
    grid-column:1!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  input,select,textarea,.search-input,
  .field input,.field select,.field textarea{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }

  /* Native select text: do not widen the form because of long names. */
  select{
    text-overflow:ellipsis!important;
  }

  /* 8) Header/actions: wrap inside the screen instead of creating X overflow. */
  .page-head,
  .page-head .actions,
  .tf-material-actions,
  .toolbar,
  .actions{
    max-width:100%!important;
    min-width:0!important;
    flex-wrap:wrap!important;
    overflow-x:hidden!important;
  }
  .page-head .actions .btn,
  .tf-material-actions .btn{
    max-width:100%!important;
  }

  /* 9) Status/footer must fit and must not hide the right side. */
  #v2910Status,.v2910-status{
    left:8px!important;
    right:8px!important;
    width:auto!important;
    max-width:calc(100vw - 16px)!important;
    min-width:0!important;
    padding:7px 9px!important;
    gap:5px!important;
    font-size:10px!important;
    line-height:1.25!important;
    white-space:normal!important;
    overflow:hidden!important;
    flex-wrap:wrap!important;
  }
  #v2910Status span,.v2910-status span{
    min-width:0!important;
    max-width:100%!important;
    white-space:normal!important;
  }

  /* Keep stock action buttons attractive and fully visible. */
  .grid.g2{
    min-width:0!important;
    max-width:100%!important;
  }
}

/* Very narrow phones: label gets a little less space, value still wraps. */
@media (max-width:370px){
  table.v35-mobile-cards td,
  .tf-final-responsive td{
    grid-template-columns:minmax(76px,31%) minmax(0,1fr)!important;
    gap:7px!important;
  }
  .tf-mini-kpis{
    grid-template-columns:1fr 1fr!important;
  }
}


/* ===== assets/r2-6-3-mobile-card-readability.css ===== */
/* TEDY ERP V29.3.0-R2.6.3 — MOBILE CARD READABILITY REPAIR
   Final residual mobile fixes after R2.6.2 video review.
   No SQL / DB / Auth / Stock transaction logic changes. */

@media (max-width:760px){

  /* Keep the page locked to phone width. */
  html,body,#app,.app,.app-shell,.main-wrap,.content,#main,.page,.card,.grid{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    overflow-x:hidden!important;
  }

  /* One field per vertical line: LABEL above VALUE.
     This guarantees long request/count/reference/material values remain visible
     without horizontal scrolling. */
  table.v35-mobile-cards td,
  .tf-final-responsive td{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:8px 4px!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
    box-sizing:border-box!important;
  }

  table.v35-mobile-cards td::before,
  .tf-final-responsive td::before{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    margin:0 0 4px!important;
    color:#8fb39f!important;
    font-size:10px!important;
    line-height:1.25!important;
    font-weight:800!important;
    letter-spacing:.03em!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }

  /* Direct descendants and common value classes can never force a wider row. */
  table.v35-mobile-cards td>*,
  .tf-final-responsive td>*,
  table.v35-mobile-cards .nowrap,
  .tf-final-responsive .nowrap,
  table.v35-mobile-cards .code,
  .tf-final-responsive .code,
  table.v35-mobile-cards .reference,
  .tf-final-responsive .reference,
  table.v35-mobile-cards .material-code,
  .tf-final-responsive .material-code{
    width:auto!important;
    max-width:100%!important;
    min-width:0!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
  }

  /* Status pills fit the card instead of extending to the right. */
  table.v35-mobile-cards .status,
  .tf-final-responsive .status,
  table.v35-mobile-cards .pill,
  .tf-final-responsive .pill,
  table.v35-mobile-cards .badge,
  .tf-final-responsive .badge{
    display:inline-flex!important;
    width:auto!important;
    max-width:100%!important;
    min-width:0!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    justify-content:flex-start!important;
  }

  /* ACTION cells: every action is visible. Multiple actions stack vertically. */
  table.v35-mobile-cards td .actions,
  .tf-final-responsive td .actions,
  table.v35-mobile-cards td .action-row,
  .tf-final-responsive td .action-row,
  table.v35-mobile-cards td .btn-row,
  .tf-final-responsive td .btn-row{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:7px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }

  table.v35-mobile-cards td button,
  table.v35-mobile-cards td .btn,
  .tf-final-responsive td button,
  .tf-final-responsive td .btn{
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:42px!important;
    margin:4px 0!important;
    padding:10px 12px!important;
    align-items:center!important;
    justify-content:center!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    box-sizing:border-box!important;
  }

  /* Raw Material filter controls: remove the one white/un-themed control seen in video. */
  .tf-filter-card input,
  .tf-filter-card select,
  .tf-filter-card textarea,
  .tf-filter-card .input,
  .tf-filter-card .select{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    background:#031f16!important;
    color:#e8fff2!important;
    border:1px solid rgba(50,211,127,.28)!important;
    border-radius:12px!important;
    min-height:48px!important;
    padding:10px 14px!important;
    appearance:auto;
  }
  .tf-filter-card input::placeholder,
  .tf-filter-card textarea::placeholder{
    color:#8aa698!important;
    opacity:1!important;
  }

  /* Long filter labels/chips wrap in the same screen. */
  .tf-used,.tf-mat-chips,.tf-filter-card{
    max-width:100%!important;
    min-width:0!important;
    overflow-x:hidden!important;
    flex-wrap:wrap!important;
  }

  /* Fixed bottom nav/status must not cover the last record/action button. */
  .main-wrap,.content,#main,.page{
    padding-bottom:150px!important;
  }

  #v2910Status,.v2910-status{
    left:8px!important;
    right:8px!important;
    width:auto!important;
    max-width:calc(100vw - 16px)!important;
    min-width:0!important;
    white-space:normal!important;
    overflow:hidden!important;
    flex-wrap:wrap!important;
    box-sizing:border-box!important;
  }
}

/* Extra-narrow phones: use more compact card typography but never crop data. */
@media (max-width:370px){
  table.v35-mobile-cards td,
  .tf-final-responsive td{
    padding:7px 3px!important;
    font-size:13px!important;
  }
}


/* ===== assets/r2-6-4-mobile-action-caption-fix.css ===== */
/* TEDY ERP V29.3.0-R2.6.4 — MOBILE ACTION CAPTION FIX
   Targeted repair for Physical Count / Material Request action buttons.
   No SQL, Auth, Stock-RPC, BOM, or business-data changes. */

@media (max-width:760px){

  /* Action cells must stay inside the same phone-width card. */
  table.v35-mobile-cards td[data-label="Action"],
  table.v35-mobile-cards td[data-label="Actions"],
  .tf-final-responsive td[data-label="Action"],
  .tf-final-responsive td[data-label="Actions"]{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
    padding:8px 4px!important;
    box-sizing:border-box!important;
  }

  /* Every raw action button is one full-width row. */
  td[data-label="Action"] > button,
  td[data-label="Actions"] > button,
  td[data-label="Action"] .btn,
  td[data-label="Actions"] .btn{
    position:relative!important;
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:46px!important;
    margin:6px 0!important;
    padding:10px 12px!important;
    box-sizing:border-box!important;
    transform:none!important;
    left:auto!important;
    right:auto!important;
    text-indent:0!important;
    text-align:center!important;
    white-space:normal!important;
    overflow:hidden!important;
    text-overflow:clip!important;
    line-height:1.25!important;
  }

  /*
   * Some legacy mobile CSS/browser combinations rendered the plain text node
   * against the far-right edge. Hide that text node visually and draw an
   * absolutely centered caption for the known ERP action controls.
   */
  button[data-apply-count],
  button[data-void-count],
  button[data-approve],
  button[data-reject],
  button[data-issue],
  button[data-cancel-request]{
    font-size:0!important;
    color:transparent!important;
  }

  button[data-apply-count]::after,
  button[data-void-count]::after,
  button[data-approve]::after,
  button[data-reject]::after,
  button[data-issue]::after,
  button[data-cancel-request]::after{
    position:absolute!important;
    inset:0!important;
    display:grid!important;
    place-items:center!important;
    padding:8px 10px!important;
    box-sizing:border-box!important;
    font-size:12px!important;
    line-height:1.25!important;
    font-weight:900!important;
    text-align:center!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    pointer-events:none!important;
  }

  button[data-apply-count]::after{content:"Apply Adjustment";color:#1b1202!important}
  button[data-void-count]::after{content:"Void";color:#ffd9dd!important}
  button[data-approve]::after{content:"Approve";color:#ecfff3!important}
  button[data-reject]::after{content:"Reject";color:#ffd9dd!important}
  button[data-issue]::after{content:"Issue";color:#1b1202!important}
  button[data-cancel-request]::after{content:"Cancel Remaining";color:#ffd9dd!important}

  /* Keep the row/card itself from clipping an action on narrow Android screens. */
  table.v35-mobile-cards tr,
  .tf-final-responsive tr{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
    padding-left:10px!important;
    padding-right:10px!important;
    box-sizing:border-box!important;
  }

  /* Ensure bottom status/nav never masks the last action. */
  .content,#main,.page,.main-wrap{
    padding-bottom:165px!important;
  }
}


/* ===== assets/r2-6-6-global-mobile-action-fix.css ===== */
/* TEDY ERP V29.3.0-R2.6.6 marker.
   Actual global mobile action-cell repair is injected by r2-6-3-mobile-card-runtime.js. */
@media (max-width:760px){
  body[data-tedy-release*="R2.6.6"] td.r266-action-cell{min-width:0!important}
}


/* ===== assets/r2-6-7-targeted-action-geometry-fix.css ===== */
/* TEDY ERP V29.3.0-R2.6.7 marker.
The action geometry fix is applied by r2-6-3-mobile-card-runtime.js so it runs on every V29 page. */
@media (max-width:760px){
  body[data-tedy-release*="R2.6.7"] .table-wrap{max-width:100%!important;overflow:hidden!important}
}


/* ===== assets/r2-6-8-smart-bom-data-readiness.css ===== */
/* TEDY ERP V29.3.0-R2.6.8 — Smart BOM Data Readiness */
.r268-readiness{margin-top:16px}
.r268-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:12px 0}
.r268-kpis>div{border:1px solid rgba(83,214,142,.22);border-radius:14px;padding:12px;background:rgba(4,28,19,.55)}
.r268-kpis>div.bad{border-color:rgba(255,95,108,.45)}
.r268-kpis>div.warn{border-color:rgba(239,199,98,.45)}
.r268-kpis b{display:block;font-size:1.35rem}
.r268-kpis span{display:block;opacity:.78;font-size:.78rem;margin-top:3px}
.r268-issue-list{display:grid;gap:8px;margin:12px 0}
.r268-issue-list article{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:10px 12px;background:rgba(0,0,0,.12)}
.r268-issue-list article>div{min-width:0}
.r268-issue-list b,.r268-issue-list small{display:block;overflow-wrap:anywhere}
.r268-issue-list article>span,.r268-issue-chip{border:1px solid rgba(239,199,98,.35);border-radius:999px;padding:4px 8px;font-size:.72rem;color:#f3d27a;white-space:normal}
.notice.ok{border-color:rgba(52,211,153,.38)}
@media(max-width:760px){
  .r268-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .r268-issue-list article{display:block}
  .r268-issue-list article>span{display:inline-block;margin-top:7px}
  #r268PhotoTypeGuard{font-size:.85rem;line-height:1.45}
}


/* ===== assets/r2-6-9-approve-auth-fix.css ===== */
/* TEDY ERP V29.3.0-R2.6.9 — targeted mobile Approve visibility repair.
   Frontend only. No SQL / no stock RPC / no BOM logic changes. */
@media (max-width:760px){
  /* R2.6.4 hid the legacy data-approve text and used ::after.
     R2.6.7 later disabled ::after globally, leaving this one button transparent.
     Restore the real label without changing the business action. */
  button[data-approve],
  td.r267-action-cell button[data-approve],
  td.r267-action-cell .r267-action-button[data-approve]{
    color:#ecfff3!important;
    font-size:13px!important;
    text-indent:0!important;
    opacity:1!important;
    visibility:visible!important;
  }
  button[data-approve]::after{content:none!important;display:none!important}

  /* V29.3.0 line-level approval button uses the primary style. */
  button[data-v30-approve],
  td.r267-action-cell button[data-v30-approve]{
    color:#03120b!important;
    font-size:13px!important;
    text-indent:0!important;
    opacity:1!important;
    visibility:visible!important;
  }
}


/* ===== assets/r2-6-10-final-luxury-hardening.css ===== */
/* TEDY ERP V29.3.0-R2.6.10 — Final Luxury Hardening
   Incremental mobile/luxury layer. No destructive layout resets.
*/
:root{
  --r2610-ink:#f7f3df;
  --r2610-muted:#a9c3b5;
  --r2610-green:#16d879;
  --r2610-green-2:#0bbf69;
  --r2610-deep:#03160e;
  --r2610-panel:#05271a;
  --r2610-panel-2:#073421;
  --r2610-gold:#edc75f;
  --r2610-gold-2:#c99d37;
  --r2610-danger:#6e1b2a;
  --r2610-line:rgba(91,207,145,.25);
  --r2610-shadow:0 18px 48px rgba(0,0,0,.28);
}

html,body{max-width:100%;overflow-x:hidden}
body{overscroll-behavior-x:none}
#app,.shell,.content,.main,#main,.card,.table-wrap,.modal,.modal-card{min-width:0;max-width:100%}

/* Release/luxury polish */
body[data-tedy-release*="R2.6.10"] .card,
body[data-tedy-release*="R2.6.10"] .kpi{
  box-shadow:var(--r2610-shadow);
  border-color:rgba(90,202,143,.22);
}
body[data-tedy-release*="R2.6.10"] .btn.primary{
  background:linear-gradient(135deg,#35e78b,#0cbd67);
  border-color:rgba(97,255,169,.55);
  color:#02160d;
  font-weight:800;
}
body[data-tedy-release*="R2.6.10"] .btn.gold{
  background:linear-gradient(135deg,#ffe489,#d5a83d);
  border-color:rgba(255,226,135,.68);
  color:#281d05;
  font-weight:800;
}
body[data-tedy-release*="R2.6.10"] .btn:focus-visible,
body[data-tedy-release*="R2.6.10"] input:focus,
body[data-tedy-release*="R2.6.10"] select:focus,
body[data-tedy-release*="R2.6.10"] textarea:focus{
  outline:2px solid rgba(44,234,135,.65);
  outline-offset:2px;
}

/* Global calculator quick action */
.r2610-calc-quick{
  width:44px;min-width:44px;height:44px;padding:0!important;
  display:inline-grid!important;place-items:center;
  border:1px solid rgba(237,199,95,.48)!important;
  background:linear-gradient(145deg,rgba(237,199,95,.16),rgba(10,83,50,.45))!important;
  font-size:22px;cursor:pointer;
}
.r2610-calc-quick:hover{transform:translateY(-1px);filter:brightness(1.08)}

/* Calculator: ERP-native, inspired by a familiar phone keypad workflow */
.r2610-calc-shell{
  width:min(100%,560px);margin:0 auto 18px;
  border:1px solid rgba(237,199,95,.3);
  border-radius:30px;
  padding:18px;
  background:
    radial-gradient(circle at 80% -15%,rgba(50,230,138,.18),transparent 42%),
    linear-gradient(165deg,#061d14,#03120c 68%);
  box-shadow:0 30px 70px rgba(0,0,0,.4),inset 0 1px rgba(255,255,255,.04);
}
.r2610-calc-display{
  position:relative;min-height:170px;margin-bottom:16px;padding:52px 12px 18px;
  display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end;
  overflow:hidden;border-bottom:1px solid rgba(255,255,255,.08);
}
.r2610-calc-mini-actions{position:absolute;top:6px;right:4px;display:flex;gap:8px}
.r2610-calc-mini-actions button{
  width:40px;height:40px;border-radius:50%;border:1px solid var(--r2610-line);
  background:rgba(5,48,31,.78);color:var(--r2610-muted);font-size:18px;cursor:pointer;
}
.r2610-calc-expr{
  width:100%;color:var(--r2610-ink);text-align:right;overflow-wrap:anywhere;
  font-size:clamp(32px,8vw,54px);font-weight:500;line-height:1.1;letter-spacing:-.02em;
}
.r2610-calc-result{min-height:30px;margin-top:12px;color:var(--r2610-green);font-size:clamp(20px,5vw,30px);font-weight:700}
.r2610-calc-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.r2610-calc-grid button{
  aspect-ratio:1/1;border:1px solid rgba(255,255,255,.055);border-radius:50%;
  background:linear-gradient(145deg,#143228,#091d15);color:#f7f5ec;
  font:700 clamp(21px,6vw,30px)/1 system-ui,sans-serif;cursor:pointer;
  box-shadow:inset 0 1px rgba(255,255,255,.04),0 8px 18px rgba(0,0,0,.18);
  transition:transform .08s ease,filter .12s ease,border-color .12s ease;
}
.r2610-calc-grid button:active{transform:scale(.94)}
.r2610-calc-grid button.op{color:#6af2ad;background:linear-gradient(145deg,#123c29,#08321f);border-color:rgba(65,238,148,.18)}
.r2610-calc-grid button.clear{color:#f0d979;background:linear-gradient(145deg,#413816,#251f0c)}
.r2610-calc-grid button.equals{color:#00160c;background:linear-gradient(145deg,#45ed91,#10bf6b);border-color:#55f4a0}
.r2610-calc-history{width:min(100%,560px);margin:0 auto}
.r2610-calc-history>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.r2610-history-row{
  width:100%;display:grid;gap:4px;text-align:right;padding:13px 14px;margin:8px 0;
  border:1px solid var(--r2610-line);border-radius:16px;background:rgba(4,39,25,.78);color:var(--r2610-ink);cursor:pointer;
}
.r2610-history-row span{color:var(--r2610-muted);font-size:13px}.r2610-history-row b{font-size:18px;color:#fff}

/* Searchable mobile select */
.r2610-native-select{ }
.r2610-select-trigger{display:none}
.r2610-select-backdrop{
  position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,.66);
  display:flex;align-items:flex-end;justify-content:center;padding:12px;
  backdrop-filter:blur(5px);
}
.r2610-select-sheet{
  width:min(100%,620px);max-height:min(82vh,760px);overflow:hidden;
  display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:12px;
  padding:16px;border:1px solid rgba(69,232,144,.34);border-radius:26px 26px 18px 18px;
  background:linear-gradient(165deg,#073321,#031a11);box-shadow:0 -18px 70px rgba(0,0,0,.5);
}
.r2610-select-sheet header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.r2610-select-sheet header small{color:var(--r2610-muted)}
.r2610-select-sheet header h3{margin:3px 0 0;color:#fff;font-size:19px}
.r2610-sheet-close{width:44px;height:44px;border-radius:14px;border:1px solid var(--r2610-line);background:#082a1d;color:#fff;font-size:19px}
.r2610-select-search{width:100%;height:52px;border-radius:16px!important;background:#02170e!important;border:1px solid rgba(83,213,145,.32)!important;color:#fff!important;padding:0 15px!important;font-size:16px!important}
.r2610-select-list{overflow:auto;overscroll-behavior:contain;padding:2px 2px 8px}
.r2610-select-list button{
  width:100%;min-height:54px;margin:7px 0;padding:11px 13px;text-align:left;white-space:normal;overflow-wrap:anywhere;
  border:1px solid rgba(83,213,145,.18);border-radius:15px;background:#08291c;color:#f4f7f4;font-weight:650;
}
.r2610-select-list button.active{border-color:rgba(237,199,95,.65);background:rgba(133,105,28,.25);color:#ffe28a}

/* Data clarity */
.r2610-new-badge{
  display:inline-flex;align-items:center;width:max-content;padding:4px 8px;margin:0 8px 5px 0;
  border:1px solid rgba(54,240,144,.48);border-radius:999px;background:rgba(20,208,111,.13);color:#5ff0a9;font-size:10px;font-weight:900;letter-spacing:.04em;
}
.r2610-newest-row{position:relative;background:linear-gradient(90deg,rgba(25,218,119,.08),transparent)!important}
.r2610-newest-row>td:first-child{box-shadow:inset 3px 0 #24d984}

/* Prevent action captions from being clipped by legacy card/table geometry */
@media (max-width:760px){
  body{padding-bottom:calc(138px + env(safe-area-inset-bottom,0px))!important}
  #main{padding-bottom:calc(48px + env(safe-area-inset-bottom,0px))}
  .table-wrap{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
  .table-wrap table{width:100%!important;max-width:100%!important;table-layout:fixed!important}
  .table-wrap th,.table-wrap td{max-width:100%;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word}
  .table-wrap td:last-child,.table-wrap th:last-child{overflow:visible!important}
  td .btn,.mobile-card .btn,.actions .btn,[data-mobile-card] .btn{
    max-width:100%!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.22!important;
  }
  .r2610-native-select{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important;overflow:hidden!important}
  .r2610-select-trigger{
    display:flex;width:100%;min-height:52px;align-items:center;justify-content:space-between;gap:10px;
    padding:11px 14px;border-radius:15px;border:1px solid rgba(73,211,139,.31);
    background:#042017;color:#f7fbf8;text-align:left;white-space:normal;overflow-wrap:anywhere;font-size:15px;
  }
  .r2610-select-trigger::after{content:'⌄';color:#7ee6ad;font-size:18px;flex:0 0 auto}
  .r2610-calc-shell{padding:14px;border-radius:24px;margin-top:4px}
  .r2610-calc-display{min-height:145px;padding-top:48px}
  .r2610-calc-grid{gap:9px}
  .r2610-calc-grid button{min-height:0}
  .bottom-nav,.mobile-bottom-nav{padding-bottom:env(safe-area-inset-bottom,0px)}
  .status-bar,.online-status,.release-status{max-width:calc(100vw - 22px)!important}
}

@media (max-width:390px){
  .r2610-calc-grid{gap:7px}.r2610-calc-shell{padding:11px}.r2610-calc-grid button{font-size:23px}
  .r2610-select-backdrop{padding:6px}.r2610-select-sheet{padding:12px}
}

@media (prefers-reduced-motion:reduce){.r2610-calc-grid button,.r2610-calc-quick{transition:none!important}}

@media (max-width:760px){
  .r2610-calc-quick{
    position:fixed!important;right:16px!important;bottom:calc(148px + env(safe-area-inset-bottom,0px))!important;
    z-index:9200!important;width:52px!important;height:52px!important;min-width:52px!important;
    border-radius:18px!important;background:linear-gradient(145deg,#1c8a51,#07502f)!important;
    box-shadow:0 14px 32px rgba(0,0,0,.42),inset 0 0 0 1px rgba(255,225,132,.25)!important;
  }
}


/* ===== assets/r2-final-production.css ===== */
/* TEDY ERP V29.3.0-R2 FINAL PRODUCTION — FINAL VISUAL HARDENING */
:root{--r2final-glow:rgba(48,230,139,.16);--r2final-gold:rgba(235,200,103,.68)}
body[data-tedy-release*="FINAL-PRODUCTION"] .card{box-shadow:0 12px 35px rgba(0,0,0,.16),inset 0 0 0 1px rgba(255,255,255,.018)}
body[data-tedy-release*="FINAL-PRODUCTION"] .btn:focus-visible{outline:2px solid #67efad!important;outline-offset:2px!important}
body[data-tedy-release*="FINAL-PRODUCTION"] input:focus,body[data-tedy-release*="FINAL-PRODUCTION"] select:focus,body[data-tedy-release*="FINAL-PRODUCTION"] textarea:focus{box-shadow:0 0 0 3px var(--r2final-glow)!important}
@media (max-width:760px){
  body[data-tedy-release*="FINAL-PRODUCTION"] .card{border-radius:20px}
  body[data-tedy-release*="FINAL-PRODUCTION"] #main{width:100%!important;max-width:100vw!important;padding-left:max(10px,env(safe-area-inset-left,0px))!important;padding-right:max(10px,env(safe-area-inset-right,0px))!important}
  body[data-tedy-release*="FINAL-PRODUCTION"] .table-wrap{max-width:100%!important;overflow-x:hidden!important}
  body[data-tedy-release*="FINAL-PRODUCTION"] td,body[data-tedy-release*="FINAL-PRODUCTION"] th{overflow-wrap:anywhere!important}
}


/* ===== assets/r2-6-11-luxury-ai-addon.css ===== */
/* TEDY ERP V29.3.0-R2.6.11 final luxury add-on. Prefixed / non-destructive. */
:root{--r2611-gold:#e5c26b;--r2611-gold-soft:rgba(229,194,107,.18);--r2611-emerald:#0b3d2d;--r2611-ink:#06130e;--r2611-glass:rgba(8,42,31,.72)}
body[data-r2611-luxury="1"]{background:radial-gradient(circle at 12% -5%,rgba(229,194,107,.08),transparent 28%),radial-gradient(circle at 96% 8%,rgba(41,180,119,.08),transparent 28%),#03130d}
body[data-r2611-luxury="1"] .card{border-color:rgba(229,194,107,.18);box-shadow:0 18px 50px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.025);background:linear-gradient(145deg,rgba(8,44,32,.94),rgba(4,28,20,.96))}
body[data-r2611-luxury="1"] .topbar{background:linear-gradient(180deg,rgba(3,25,18,.94),rgba(3,20,14,.82));backdrop-filter:blur(14px);border-bottom-color:rgba(229,194,107,.14)}
body[data-r2611-luxury="1"] .btn.primary{box-shadow:0 8px 24px rgba(40,214,132,.18)}
body[data-r2611-luxury="1"] .btn.gold{background:linear-gradient(135deg,#f0d789,#c99b36);color:#102116;border-color:#f1d98e;box-shadow:0 8px 24px rgba(218,174,68,.22)}
body[data-r2611-luxury="1"] input,body[data-r2611-luxury="1"] select,body[data-r2611-luxury="1"] textarea{background:rgba(2,23,16,.78);border-color:rgba(229,194,107,.18)}
.r2611-ai-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px;border:1px solid rgba(229,194,107,.28);border-radius:24px;background:linear-gradient(135deg,rgba(11,61,45,.94),rgba(4,29,21,.97)),radial-gradient(circle at 80% 10%,rgba(229,194,107,.2),transparent 36%);box-shadow:0 22px 55px rgba(0,0,0,.28);overflow:hidden;position:relative}
.r2611-ai-hero:after{content:"";position:absolute;width:220px;height:220px;right:-70px;top:-105px;border:1px solid rgba(229,194,107,.25);border-radius:50%;box-shadow:0 0 0 28px rgba(229,194,107,.035),0 0 0 58px rgba(229,194,107,.025)}
.r2611-ai-hero h2{font-size:clamp(24px,4vw,40px);margin:4px 0 8px;color:#fff}.r2611-ai-hero p{margin:0;color:rgba(255,255,255,.72);max-width:760px}
.r2611-eyebrow{display:inline-block;color:var(--r2611-gold);font-size:11px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.r2611-overall{width:110px;min-width:110px;height:110px;border-radius:50%;display:grid;place-items:center;text-align:center;background:conic-gradient(var(--r2611-gold) 0 78%,rgba(255,255,255,.08) 78%);box-shadow:inset 0 0 0 10px #08261b,0 12px 30px rgba(0,0,0,.24);z-index:1}.r2611-overall b{font-size:30px;color:#fff;line-height:1}.r2611-overall small{font-size:9px;color:#e8ddb9;display:block;margin-top:-20px}
.r2611-engine-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}.r2611-engine-card{padding:20px;border-radius:22px;border:1px solid rgba(229,194,107,.16);background:linear-gradient(160deg,rgba(9,50,37,.98),rgba(4,27,20,.98));box-shadow:0 16px 42px rgba(0,0,0,.23);position:relative;overflow:hidden}.r2611-engine-card:before{content:"";position:absolute;inset:0 0 auto 0;height:2px;background:linear-gradient(90deg,transparent,var(--r2611-gold),transparent);opacity:.55}.r2611-engine-head{display:flex;gap:14px;justify-content:space-between;align-items:flex-start}.r2611-engine-head h3{font-size:19px;margin:4px 0}.r2611-engine-head p{font-size:12px;color:rgba(255,255,255,.58);margin:0}.r2611-score-ring{width:72px;height:72px;min-width:72px;border-radius:50%;display:grid;place-items:center;background:rgba(229,194,107,.08);border:1px solid rgba(229,194,107,.3)}.r2611-score-ring b{font-size:24px}.r2611-score-ring small{font-size:9px;color:#c7b47c;margin-top:-16px}.r2611-engine-meta{margin:12px 0}.r2611-risk{display:inline-flex;padding:4px 9px;border-radius:999px;font-size:10px;font-weight:900;letter-spacing:.04em;background:rgba(60,220,145,.12);border:1px solid rgba(60,220,145,.22)}.r2611-risk.medium,.r2611-risk.high{background:rgba(238,184,65,.12);border-color:rgba(238,184,65,.28);color:#f1cf7b}.r2611-risk.critical{background:rgba(235,76,93,.14);border-color:rgba(235,76,93,.32);color:#ff9ca7}.r2611-issue-list{display:grid;gap:8px}.r2611-issue{display:grid;grid-template-columns:8px 1fr auto;gap:10px;align-items:center;padding:10px;border-radius:14px;background:rgba(0,0,0,.16);border:1px solid rgba(255,255,255,.04)}.r2611-issue b{font-size:12px}.r2611-issue small{display:block;color:rgba(255,255,255,.56);font-size:10px;margin-top:3px}.r2611-dot{width:7px;height:7px;border-radius:50%;background:#54d795}.r2611-dot.medium,.r2611-dot.high{background:#e6b64f}.r2611-dot.critical{background:#ee5262}.r2611-empty{padding:18px;border-radius:14px;background:rgba(255,255,255,.025);color:rgba(255,255,255,.58);font-size:12px}
.r2611-id-capture{padding:14px;border-radius:16px;border:1px dashed rgba(229,194,107,.32);background:rgba(229,194,107,.035)}.r2611-id-capture .btn{margin-top:10px}.r2611-review{display:flex;gap:10px;align-items:flex-start;padding:12px;border-radius:14px;background:rgba(42,177,112,.08);border:1px solid rgba(42,177,112,.18)}.r2611-review input{width:auto;margin-top:3px}.r2611-submit-evidence{min-height:50px;font-weight:900}.r2611-evidence-list{margin-top:16px}.r2611-section-head,.r2611-dashboard-ai{display:flex;align-items:center;justify-content:space-between;gap:14px}.r2611-dashboard-ai{margin-top:16px;padding:18px 20px;background:linear-gradient(120deg,rgba(8,54,38,.95),rgba(46,35,10,.55))!important;border-color:rgba(229,194,107,.3)!important}.r2611-dashboard-ai h3{margin:3px 0}.r2611-dashboard-ai p{margin:0;color:rgba(255,255,255,.62);font-size:12px}
@media(max-width:760px){.r2611-ai-hero{align-items:flex-start;padding:18px}.r2611-overall{width:84px;height:84px;min-width:84px}.r2611-overall b{font-size:24px}.r2611-engine-grid{grid-template-columns:1fr}.r2611-engine-card{padding:16px}.r2611-engine-head h3{font-size:17px}.r2611-score-ring{width:62px;height:62px;min-width:62px}.r2611-dashboard-ai{align-items:flex-start;flex-direction:column}.r2611-dashboard-ai .btn{width:100%}.r2611-section-head{align-items:flex-start}.r2611-no-receipt{width:100%}}
@media(prefers-reduced-motion:no-preference){.r2611-engine-card,.r2611-dashboard-ai{transition:transform .18s ease,border-color .18s ease}.r2611-engine-card:hover{transform:translateY(-2px);border-color:rgba(229,194,107,.34)}}


/* ===== assets/r2-complete-safe-ui.css ===== */
/* TEDY Furniture ERP V29/R2 COMPLETE SAFE UI — additive only, 2026-08-15 */
:root{
  --r2c-glass:rgba(7,29,20,.86);
  --r2c-glow:0 18px 55px rgba(0,0,0,.24),0 0 0 1px rgba(255,255,255,.025) inset;
  --r2c-fast:180ms;
  --r2c-slow:360ms;
}
html{scroll-behavior:smooth;scroll-padding-top:88px}
body{background-attachment:fixed}
.card,.kpi,.modal,.topbar,.sidebar,.mobile-bottom{transition:transform var(--r2c-fast) ease,box-shadow var(--r2c-fast) ease,border-color var(--r2c-fast) ease,background var(--r2c-slow) ease,color var(--r2c-fast) ease}
.card,.kpi{box-shadow:var(--r2c-glow)}
.card:hover{border-color:color-mix(in srgb,var(--green) 48%,var(--line));}
.btn{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.25!important;min-width:0!important;height:auto!important;min-height:42px;word-break:normal;overflow-wrap:anywhere}
.actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:stretch}
.actions>.btn,.actions>button,.actions>a.btn{max-width:100%}
.table-wrap{max-width:100%;overflow-x:auto!important;overflow-y:visible;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain;padding-bottom:3px}
table{min-width:max-content;max-width:none} th,td{vertical-align:middle} td .btn{max-width:180px}
.modal-backdrop{padding:12px!important;align-items:flex-start!important;overflow:auto!important}
.modal{width:min(100%,920px)!important;max-height:calc(100dvh - 24px)!important;overflow:hidden!important;margin:auto!important}
.modal-body{overflow:auto!important;-webkit-overflow-scrolling:touch;max-height:calc(100dvh - 130px)!important}
.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.field,.field input,.field select,.field textarea{min-width:0!important;max-width:100%!important;width:100%}
.topbar{backdrop-filter:blur(14px) saturate(1.15);-webkit-backdrop-filter:blur(14px) saturate(1.15)}
.topbar-actions{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;justify-content:flex-end}
.r2c-language-select,.r2c-compact-select{appearance:auto;background:var(--panel2);color:var(--text);border:1px solid var(--line2,var(--line));border-radius:14px;padding:9px 10px;font-weight:800;min-height:42px;max-width:190px}
.r2c-login-language{position:absolute;top:14px;right:14px;z-index:4}
.login-card{position:relative}
.r2c-settings-card{position:relative;overflow:hidden}
.r2c-settings-card:before{content:"";position:absolute;width:220px;height:220px;border-radius:50%;right:-120px;top:-120px;background:radial-gradient(circle,color-mix(in srgb,var(--green) 22%,transparent),transparent 70%);pointer-events:none}
.r2c-control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.r2c-control{padding:13px;border:1px solid var(--line);border-radius:16px;background:color-mix(in srgb,var(--panel2) 88%,transparent)}
.r2c-control b{display:block;margin-bottom:4px}.r2c-control small{color:var(--muted)}
.r2c-health-output{max-height:360px;overflow:auto;white-space:pre-wrap;word-break:break-word;background:rgba(0,0,0,.18);padding:12px;border-radius:14px;border:1px solid var(--line)}
.r2c-score{display:inline-grid;place-items:center;min-width:54px;height:30px;padding:0 9px;border-radius:999px;font-weight:900;background:color-mix(in srgb,var(--green) 28%,var(--panel));border:1px solid color-mix(in srgb,var(--green) 55%,var(--line))}
.r2c-score.warn{background:color-mix(in srgb,var(--warn) 22%,var(--panel))}.r2c-score.bad{background:color-mix(in srgb,var(--bad) 22%,var(--panel))}
.r2c-material-actions{display:flex;flex-wrap:wrap;gap:6px}.r2c-material-actions .btn{margin:0!important}
.r2c-beta{font-size:11px;color:var(--gold);font-weight:800}
.r2c-passkey-btn{width:100%;margin-top:10px}
.r2c-admin-auth table{width:100%}
.r2c-secret{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:13px;border:1px dashed var(--gold);border-radius:14px;background:rgba(0,0,0,.18)}
.r2c-secret code{font-size:16px;user-select:all;word-break:break-all}
.r2c-theme-preview{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-top:8px}.r2c-theme-preview span{height:18px;border-radius:999px;background:linear-gradient(90deg,var(--green),var(--gold))}
.r2c-offline-badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 10px;border:1px solid var(--line);font-size:12px;font-weight:800}

/* 10 conservative theme palettes; layout remains untouched. */
html[data-r2c-theme="emerald-gold"]{--bg:#03110b;--bg2:#061b12;--panel:#082319;--panel2:#0b2d20;--line:#174b36;--line2:#236649;--text:#eefbf4;--muted:#9ac4ae;--green:#16c784;--green2:#0ea96e;--gold:#e8c36a}
html[data-r2c-theme="obsidian-gold"]{--bg:#080908;--bg2:#11120f;--panel:#171814;--panel2:#202119;--line:#45412d;--line2:#6b613b;--text:#fffaf0;--muted:#c9c0aa;--green:#b59a52;--green2:#8f783d;--gold:#f2d37a}
html[data-r2c-theme="ivory-walnut"]{--bg:#17120e;--bg2:#211913;--panel:#2a2018;--panel2:#34281e;--line:#654b35;--line2:#866344;--text:#fff6e8;--muted:#d0baa3;--green:#9b7b4d;--green2:#7f623b;--gold:#e8c07d}
html[data-r2c-theme="midnight-blue"]{--bg:#040b17;--bg2:#081426;--panel:#0b1b31;--panel2:#102541;--line:#244b78;--line2:#326399;--text:#f2f7ff;--muted:#9db5d2;--green:#2ea6d7;--green2:#1985b2;--gold:#e1bf72}
html[data-r2c-theme="royal-purple"]{--bg:#0e0716;--bg2:#180d26;--panel:#221135;--panel2:#2c1745;--line:#59337d;--line2:#7449a1;--text:#fbf4ff;--muted:#c7abd8;--green:#a65ce0;--green2:#8847be;--gold:#e9c36d}
html[data-r2c-theme="graphite"]{--bg:#0b0e10;--bg2:#12171a;--panel:#192024;--panel2:#222b30;--line:#3b4a52;--line2:#52636d;--text:#f5f8f9;--muted:#a9b5ba;--green:#5fa98e;--green2:#478a72;--gold:#c7b47b}
html[data-r2c-theme="bronze"]{--bg:#120b07;--bg2:#1e120b;--panel:#2a1910;--panel2:#352117;--line:#70452c;--line2:#925a37;--text:#fff5eb;--muted:#d0b49e;--green:#c47c45;--green2:#a25e31;--gold:#edb66f}
html[data-r2c-theme="teal"]{--bg:#031213;--bg2:#061e20;--panel:#08292b;--panel2:#0b3538;--line:#176064;--line2:#218085;--text:#effdfc;--muted:#9bc8c5;--green:#19b8ad;--green2:#11978e;--gold:#e1c26d}
html[data-r2c-theme="ruby"]{--bg:#16070b;--bg2:#220b11;--panel:#301019;--panel2:#3b1620;--line:#743043;--line2:#984158;--text:#fff4f6;--muted:#d5a8b3;--green:#d65373;--green2:#b43d5c;--gold:#e8bf74}
html[data-r2c-theme="ocean"]{--bg:#031017;--bg2:#051a25;--panel:#082435;--panel2:#0b3044;--line:#1b5978;--line2:#25779d;--text:#f0faff;--muted:#9bc1d3;--green:#20a6c8;--green2:#1685a4;--gold:#e7c36e}

@media(max-width:760px){
  .form-grid{grid-template-columns:1fr!important}
  .topbar{align-items:flex-start!important;gap:8px!important}
  .topbar-actions{width:100%!important;justify-content:flex-start!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
  .topbar-actions>*{min-width:0!important;max-width:100%!important;width:100%!important}
  .topbar-actions .avatar{width:44px!important;justify-self:end!important}
  .r2c-language-select{grid-column:1/-1!important;max-width:none!important}
  .page-head{align-items:flex-start!important;gap:10px!important}.page-head>.actions{width:100%!important}.page-head>.actions>.btn{flex:1 1 140px!important}
  .actions>.btn,.actions>button,.actions>a.btn{flex:1 1 145px!important;width:auto!important}
  .r2c-control-grid{grid-template-columns:1fr}
  .r2c-theme-preview{grid-template-columns:repeat(2,1fr)}
  .content{padding-left:10px!important;padding-right:10px!important}
  .card{padding-left:13px!important;padding-right:13px!important}
  .modal-backdrop{padding:6px!important}.modal{max-height:calc(100dvh - 12px)!important}.modal-body{max-height:calc(100dvh - 112px)!important}
  td .btn{max-width:none!important;width:100%!important;display:block!important;margin:4px 0!important}
  .r2c-material-actions{min-width:150px}
}
@media(max-width:430px){
  .topbar-actions{grid-template-columns:1fr!important}.r2c-language-select{grid-column:1!important}.topbar-actions .avatar{justify-self:start!important;width:44px!important}
  .actions>.btn,.actions>button,.actions>a.btn{flex-basis:100%!important;width:100%!important}
  .btn.small{font-size:12px!important;padding:10px!important}
  .login-page{overflow-x:hidden}.login-card{padding-left:14px!important;padding-right:14px!important}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.card,.kpi,.modal,.topbar,.sidebar,.mobile-bottom{transition:none!important}}

/* ========================================================================== */
/* TEDY ERP V29/R2 COMPLETE SAFE — VIDEO VERIFIED FIX 2026-08-16             */
/* Additive only. Fixes mobile geometry, language consistency and summaries.  */
/* ========================================================================== */
html{--r2vf-safe-gap:10px}

/* The old complete overlay made the language control consume the whole mobile
   topbar. Keep it compact so the actual page title remains readable. */
@media(max-width:760px){
  .topbar{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:nowrap!important;padding-left:8px!important;padding-right:8px!important}
  .topbar-title{min-width:0!important;flex:1 1 auto!important;overflow:visible!important}
  .topbar-title h2{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.12!important;font-size:clamp(15px,4.2vw,19px)!important;max-width:100%!important}
  .topbar-title p{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
  .topbar-actions{display:flex!important;flex:0 0 auto!important;width:auto!important;max-width:47vw!important;justify-content:flex-end!important;align-items:center!important;gap:5px!important;flex-wrap:nowrap!important}
  .topbar-actions>*{width:auto!important;min-width:0!important;max-width:150px!important}
  .topbar-actions .avatar{width:42px!important;min-width:42px!important;max-width:42px!important;flex:0 0 42px!important}
  .r2c-language-select{grid-column:auto!important;width:clamp(112px,36vw,150px)!important;min-width:112px!important;max-width:150px!important;padding:8px 8px!important;font-size:13px!important}
}
@media(max-width:430px){
  .topbar-actions{display:flex!important;grid-template-columns:none!important;width:auto!important;max-width:46vw!important}
  .r2c-language-select{grid-column:auto!important;width:clamp(108px,34vw,140px)!important;min-width:108px!important;max-width:140px!important}
  .topbar-actions .avatar{justify-self:auto!important;width:40px!important;min-width:40px!important;max-width:40px!important}
}

/* Mobile action controls: never let approve/issue/acknowledge/edit buttons leak
   past the right side of cards/tables. */
.r2vf-action-cell,.r2vf-action-group{white-space:normal!important;overflow:visible!important;min-width:0!important;max-width:100%!important}
.r2vf-action-group{display:flex!important;flex-wrap:wrap!important;gap:7px!important;align-items:stretch!important}
.r2vf-action-button{white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;max-width:100%!important;min-width:0!important;height:auto!important;line-height:1.2!important}
@media(max-width:620px){
  td.nowrap,th.nowrap,.nowrap.r2vf-action-cell{white-space:normal!important;min-width:0!important;max-width:min(100%,calc(100vw - 34px))!important;overflow:visible!important}
  .r2vf-action-group{display:grid!important;grid-template-columns:1fr!important;width:100%!important;max-width:100%!important}
  .r2vf-action-group>.btn,.r2vf-action-group>button,.r2vf-action-group>a{width:100%!important;max-width:100%!important;margin:0!important;box-sizing:border-box!important;text-align:center!important}
  td .r2vf-action-button{display:block!important;width:100%!important;max-width:100%!important;margin:4px 0!important}
}

/* Product-profit POS modal. Older layers apply layout/position rules that can
   overlap fields on narrow screens; reset only this modal to normal flow. */
.r2vf-pos-profit-modal .modal-body{overflow:auto!important;padding-bottom:max(18px,env(safe-area-inset-bottom))!important}
.r2vf-pos-profit-modal #v29SaleForm{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;align-items:start!important;position:static!important;overflow:visible!important}
.r2vf-pos-profit-modal #v29SaleForm>.field{position:static!important;display:flex!important;flex-direction:column!important;gap:6px!important;min-width:0!important;width:100%!important;height:auto!important;margin:0!important;transform:none!important}
.r2vf-pos-profit-modal #v29SaleForm .field>label{position:static!important;display:block!important;transform:none!important;margin:0!important;line-height:1.25!important;white-space:normal!important;overflow:visible!important}
.r2vf-pos-profit-modal #v29SaleForm input,.r2vf-pos-profit-modal #v29SaleForm select,.r2vf-pos-profit-modal #v29SaleForm textarea{position:static!important;display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;margin:0!important;transform:none!important}
.r2vf-pos-profit-modal #v29ProfitPreview{grid-column:1/-1!important;position:static!important;width:100%!important;max-width:100%!important;margin:0!important;transform:none!important;overflow:visible!important}
.r2vf-pos-profit-modal .actions{grid-column:1/-1!important;position:static!important;width:100%!important;margin-top:4px!important}
@media(max-width:700px){
  .r2vf-pos-profit-modal #v29SaleForm{grid-template-columns:1fr!important;gap:10px!important}
  .r2vf-pos-profit-modal #v29SaleForm>.field,.r2vf-pos-profit-modal #v29ProfitPreview,.r2vf-pos-profit-modal .actions{grid-column:1!important}
  .r2vf-pos-profit-modal .modal-head{position:sticky!important;top:0!important;z-index:5!important;background:var(--panel,var(--bg2))!important}
}

/* Material cards and summary. */
.r2vf-alt-material-name{display:none!important}
.r2vf-catalog-note{display:block;margin-top:6px;color:var(--muted);font-size:12px;font-weight:750;line-height:1.35}
.r2vf-active-summary{border-color:color-mix(in srgb,var(--green) 45%,var(--line))!important}

/* Settings card should be readable on phone and never resemble a desktop grid
   squeezed into the viewport. */
#r2cSettings .r2c-control{min-width:0!important;overflow:hidden!important}
#r2cSettings .r2c-control input,#r2cSettings .r2c-control select,#r2cSettings .r2c-control button{max-width:100%!important;box-sizing:border-box!important}
#r2cSettings small{display:block;line-height:1.45;overflow-wrap:anywhere}
@media(max-width:620px){
  #r2cSettings .r2c-control-grid{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
  #r2cSettings .r2c-control{padding:12px!important;border-radius:14px!important}
  #r2cSettings .actions{display:grid!important;grid-template-columns:1fr!important;width:100%!important}
  #r2cSettings .actions .btn,#r2cSettings .r2c-control>button{width:100%!important;margin:4px 0!important}
}

/* Brand-safe hero fallback. Inline user-selected hero still wins. */
.hero-art.r2vf-default-furniture-hero{background-image:linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.34)),url("brand/dashboard-hero-v29-4-0-4k.jpg")!important;background-size:cover!important;background-position:center!important}

/* Small visual hardening without changing core component geometry. */
.card,.kpi{contain:paint}
.page-head,.card header{min-width:0}
#main{overflow-x:hidden}


/* ===== assets/r2-6-19-final-video-polish.css ===== */
/* TEDY Furniture ERP V29.3.0 / R2.6.19 — Final Video Polish
   Additive UI-only layer. No business-data writes. */
:root{
  --r2619-gold: color-mix(in srgb, #f1d37b 72%, #fff 28%);
  --r2619-green: #19d983;
  --r2619-panel: color-mix(in srgb, #082419 90%, transparent);
  --r2619-line: color-mix(in srgb, #d7bd6a 34%, transparent);
  --r2619-shadow: 0 18px 48px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.035);
}
html{scroll-behavior:smooth;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
body{background-attachment:fixed}
body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background:
 radial-gradient(900px 520px at 78% -12%,rgba(42,255,164,.08),transparent 66%),
 radial-gradient(760px 520px at -10% 45%,rgba(232,198,99,.07),transparent 63%)}
.card,.kpi,.modal,.login-card,.r2c-control{border-color:var(--r2619-line)!important;box-shadow:var(--r2619-shadow);backdrop-filter:saturate(112%) blur(3px)}
.card:hover,.kpi:hover{border-color:color-mix(in srgb,#dfc56f 48%,transparent)!important}
.btn{min-height:40px;line-height:1.2;white-space:normal;text-wrap:balance;overflow-wrap:anywhere;transition:transform .16s ease,filter .16s ease,border-color .16s ease,box-shadow .16s ease}
.btn:hover{transform:translateY(-1px);filter:brightness(1.06)}
.btn:active{transform:translateY(0)}
.btn.primary,.btn.gold{box-shadow:0 8px 24px rgba(24,213,127,.10)}
.actions,.page-head .actions,.toolbar,.r2vf-action-group{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.page-head,.topbar,.topbar-actions{min-width:0}
.page-head>*,.topbar>*,.topbar-actions>*{min-width:0}
h1,h2,h3,h4,.page-title,.topbar-title{overflow-wrap:anywhere;text-wrap:balance}
.table-wrap,.table-container,.data-table-wrap{max-width:100%;overflow-x:auto!important;overflow-y:visible;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain;scrollbar-gutter:stable}
.table-wrap table,.table-container table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}
td,th{vertical-align:middle;max-width:min(36vw,420px);overflow-wrap:anywhere}
td .btn,td button{max-width:100%}
.form-grid,.grid,.r2c-control-grid{min-width:0}
.field,.r2c-control{min-width:0}
input,select,textarea{max-width:100%;min-width:0}
.modal-backdrop{padding:max(12px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))!important}
.modal{width:min(960px,96vw)!important;max-width:96vw!important;max-height:92dvh!important;display:flex;flex-direction:column;overflow:hidden!important}
.modal-body{overflow:auto!important;overscroll-behavior:contain;padding-bottom:calc(18px + env(safe-area-inset-bottom))}
.modal-head,.modal-foot{flex:0 0 auto}.modal-foot{display:flex;flex-wrap:wrap;gap:8px}
.r2619-readiness{display:inline-flex;align-items:center;gap:7px;max-width:min(520px,88vw);padding:7px 11px;border:1px solid rgba(222,196,110,.35);border-radius:999px;background:rgba(4,27,18,.84);box-shadow:0 7px 26px rgba(0,0,0,.22);font-size:.78rem;line-height:1.2;color:#e9f5ec}
.r2619-readiness::before{content:"";width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#21df84;box-shadow:0 0 0 4px rgba(33,223,132,.09),0 0 14px rgba(33,223,132,.45)}
.r2619-readiness.pending::before{background:#e5c768;box-shadow:0 0 0 4px rgba(229,199,104,.09),0 0 14px rgba(229,199,104,.35)}
.r2619-readiness.bad::before{background:#ff6f76}.r2619-readiness strong{color:#f0d98a}
.r2619-secure-note{border:1px solid rgba(230,198,103,.27);border-radius:12px;padding:9px 11px;background:linear-gradient(135deg,rgba(230,198,103,.07),rgba(20,215,126,.04));font-size:.85rem}
.r2619-friendly-error{white-space:normal!important;overflow-wrap:anywhere!important}
.r2c-language-select,.r2c-compact-select{min-height:40px}
.statusbar{backdrop-filter:blur(10px) saturate(120%)}
.hero,.hero-art{overflow:hidden}
.hero-art{filter:saturate(1.07) contrast(1.02)}
@media(max-width:900px){
  .page-head{align-items:flex-start}.page-head>.actions{width:100%}
  .page-head>.actions>.btn{flex:1 1 150px}
  td,th{max-width:68vw}
}
@media(max-width:680px){
  :root{--r2619-shadow:0 10px 28px rgba(0,0,0,.24),inset 0 1px rgba(255,255,255,.03)}
  body{font-size:14px}.card,.kpi{border-radius:15px!important}
  .btn{min-height:44px;min-width:0;padding-inline:11px!important;font-size:.9rem}
  .btn.small{min-height:38px!important}
  .actions,.r2vf-action-group{width:100%}
  .r2vf-action-group>.btn,.actions>.btn{flex:1 1 132px}
  .table-wrap{margin-inline:0!important;padding-bottom:5px}
  .table-wrap table{font-size:.84rem}
  td,th{padding:10px 9px!important;max-width:76vw}
  .modal{width:97vw!important;max-width:97vw!important;border-radius:16px!important}
  .modal-body{padding-inline:12px!important}
  .form-grid{grid-template-columns:minmax(0,1fr)!important}
  .field.full{grid-column:1!important}
  .r2c-control-grid{grid-template-columns:minmax(0,1fr)!important}
  .r2619-readiness{border-radius:12px;white-space:normal}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.btn,.card,.kpi{transition:none!important}}


/* ===== TEDY ERP V29.3.0-R2 FINAL MASTER — LUXURY + MOBILE HARDENING ===== */

@font-face{font-family:'Tedy Ethiopic';src:url('fonts/noto-sans-ethiopic-ethiopic-wght-normal.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Tedy Ethiopic';src:url('fonts/noto-sans-ethiopic-latin-wght-normal.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
html,body,button,input,select,textarea{font-family:'Tedy Ethiopic','Noto Sans Ethiopic','Noto Sans',system-ui,-apple-system,'Segoe UI',Arial,sans-serif}
:root{--fm-gold:#f1c96a;--fm-gold2:#b8892f;--fm-green:#36e98a;--fm-deep:#020c08;--fm-panel:rgba(6,31,21,.92);--fm-line:rgba(241,201,106,.22);--fm-glow:0 22px 70px rgba(0,0,0,.38)}
html{background:#020c08}body{background:radial-gradient(circle at 88% -8%,rgba(56,229,127,.17),transparent 32%),radial-gradient(circle at 12% 2%,rgba(241,201,106,.11),transparent 28%),linear-gradient(180deg,#020d09,#03140e 45%,#020b08);letter-spacing:.005em}
.sidebar{background:linear-gradient(180deg,rgba(2,17,11,.985),rgba(1,9,6,.985));border-right:1px solid rgba(241,201,106,.15);box-shadow:18px 0 70px rgba(0,0,0,.22)}
.brand{border-bottom-color:rgba(241,201,106,.18)}.brand img{filter:drop-shadow(0 10px 22px rgba(54,233,138,.22))}.brand small{color:#f0ce79}
.nav-btn{border:1px solid transparent}.nav-btn:hover{background:linear-gradient(90deg,rgba(54,233,138,.10),rgba(241,201,106,.05));border-color:rgba(54,233,138,.12)}.nav-btn.active{background:linear-gradient(135deg,rgba(54,233,138,.18),rgba(241,201,106,.10));border-color:rgba(241,201,106,.28);box-shadow:inset 0 0 34px rgba(54,233,138,.05),0 8px 24px rgba(0,0,0,.16)}
.topbar{background:linear-gradient(180deg,rgba(3,17,11,.93),rgba(3,17,11,.83));border-bottom-color:rgba(241,201,106,.16);box-shadow:0 10px 35px rgba(0,0,0,.15)}
.card,.kpi,.login-card,.modal{background:linear-gradient(155deg,rgba(12,47,33,.94),rgba(4,22,15,.96));border-color:rgba(241,201,106,.16);box-shadow:var(--fm-glow),inset 0 1px rgba(255,255,255,.025)}
.card:after,.kpi:before{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:linear-gradient(125deg,rgba(255,255,255,.028),transparent 34%,rgba(241,201,106,.018));}
.hero{min-height:320px;border-color:rgba(241,201,106,.32);background:radial-gradient(circle at 18% 10%,rgba(54,233,138,.24),transparent 40%),linear-gradient(145deg,#0a3324,#04150e);box-shadow:0 28px 85px rgba(0,0,0,.42),inset 0 0 0 1px rgba(255,255,255,.025)}
.hero-art{height:300px;background:linear-gradient(90deg,rgba(3,16,11,.12),rgba(3,16,11,.02)),linear-gradient(180deg,transparent,rgba(2,12,8,.24)),url('brand/hero-showroom.webp') center 52%/cover no-repeat;border:1px solid rgba(241,201,106,.20);box-shadow:inset 0 0 70px rgba(0,0,0,.22),0 18px 46px rgba(0,0,0,.22)}
.hero-copy h1 span,.link{color:#f2d27c}.workflow span{background:rgba(1,13,8,.46);border-color:rgba(241,201,106,.18)}
.kpi{min-height:124px;border-color:rgba(54,233,138,.15)}.kpi .kpi-value{letter-spacing:-.025em;text-shadow:0 7px 30px rgba(0,0,0,.22)}
.btn{border-color:rgba(241,201,106,.18);background:linear-gradient(145deg,#0b3424,#071f16);box-shadow:inset 0 1px rgba(255,255,255,.03)}.btn:hover{border-color:rgba(241,201,106,.46);box-shadow:0 13px 32px rgba(0,0,0,.28),0 0 0 1px rgba(54,233,138,.05)}.btn.primary{background:linear-gradient(135deg,#47efa0,#0cad63);border-color:#69f4ad;color:#02120c}.btn.gold{background:linear-gradient(135deg,#ffe691,#c89736);border-color:#ffe6a1;color:#241804}
.table-wrap{border-color:rgba(241,201,106,.15);background:rgba(1,12,8,.32)}th{background:linear-gradient(180deg,#0a3021,#08271b);color:#dff8e8;border-bottom:1px solid rgba(241,201,106,.14)}tbody tr:hover{background:linear-gradient(90deg,rgba(54,233,138,.055),rgba(241,201,106,.025))}
.field input,.field select,.field textarea,.search-input{background:rgba(2,17,11,.84);border-color:rgba(241,201,106,.15)}.field input:focus,.field select:focus,.field textarea:focus,.search-input:focus{border-color:#49e995;box-shadow:0 0 0 3px rgba(54,233,138,.10),0 10px 25px rgba(0,0,0,.18)}
.login-page{background:radial-gradient(circle at 8% 12%,rgba(54,233,138,.18),transparent 35%),radial-gradient(circle at 80% 10%,rgba(241,201,106,.09),transparent 28%),#020c08}.login-art:after{background:linear-gradient(90deg,rgba(2,12,8,.12),rgba(2,12,8,.45)),url('brand/hero-showroom.webp') center/cover no-repeat;opacity:.65;filter:saturate(1.05) contrast(1.03)}
.r2fm-net{font-weight:800;white-space:nowrap}.r2fm-net i{width:8px;height:8px;border-radius:50%;background:#3af094;box-shadow:0 0 14px #3af094}.r2fm-net[data-source="offline-cache"] i,.r2fm-net[data-source="weak-network-cache"] i{background:#f3ca65;box-shadow:0 0 14px rgba(243,202,101,.75)}
.notice,td,.card,.code,pre{overflow-wrap:anywhere;word-break:break-word}.actions>.btn,td .btn,td button{white-space:normal!important;max-width:100%!important;min-width:0!important}
.product-card{border-color:rgba(241,201,106,.16);box-shadow:0 15px 38px rgba(0,0,0,.22)}.product-card img{filter:saturate(1.04) contrast(1.02)}
@media(max-width:900px){.content{padding:13px 12px calc(84px + env(safe-area-inset-bottom,0px))!important}.topbar{padding:10px 11px}.topbar-title h2{font-size:clamp(15px,4vw,18px);white-space:normal!important;line-height:1.15}.topbar-title small{display:none}.topbar-actions{gap:5px;max-width:52vw!important}.topbar-actions .branch-pill{max-width:115px!important}.r2fm-net{padding:7px 8px;font-size:10px}.hero{grid-template-columns:1fr;min-height:auto}.hero-art{height:230px}.g4,.g5{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-bottom{background:rgba(2,14,9,.965);border-top-color:rgba(241,201,106,.17);box-shadow:0 -14px 40px rgba(0,0,0,.28)}body{padding-bottom:0!important}.v2910-status{display:none!important}}
@media(max-width:640px){.content{padding-inline:9px!important}.page-head{gap:8px;margin-bottom:12px}.page-head h1{font-size:clamp(21px,6.5vw,29px)}.page-head p{font-size:12px}.page-head>.actions{width:100%;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.page-head>.actions>.btn{width:100%;min-width:0}.card{padding:13px;border-radius:17px}.kpi{min-height:104px;padding:13px}.kpi .kpi-value{font-size:clamp(20px,7vw,30px)}.g2,.g3,.g4,.g5{grid-template-columns:1fr 1fr;gap:9px}.grid.g2>.card{grid-column:1/-1}.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.table-wrap{overflow-x:auto!important;max-width:100%!important}.table-wrap table{min-width:680px!important;table-layout:auto!important}.table-wrap th,.table-wrap td{white-space:normal!important;overflow-wrap:anywhere!important;max-width:240px!important}.actions,.r2vf-action-group{display:grid!important;grid-template-columns:1fr!important;width:100%!important}.actions>.btn,.r2vf-action-group>.btn,td .btn,td button{width:100%!important;justify-content:center!important;text-align:center!important}.hero-copy{padding:5px}.hero-copy h1{font-size:clamp(28px,10vw,42px)}.hero-art{height:190px}.login-art{min-height:250px}.login-panel{padding:10px}.login-card{padding:19px;border-radius:21px}}
@media(max-width:390px){.g2,.g3,.g4,.g5{grid-template-columns:1fr}.topbar-actions>.pill:not(.r2fm-net),.topbar-actions>.topbar-profile.pill{display:none!important}.topbar-actions{max-width:46vw!important}.r2fm-net{max-width:112px;overflow:hidden;text-overflow:ellipsis}.gallery{grid-template-columns:1fr 1fr}.mobile-bottom button{font-size:9px}.mobile-bottom button b{font-size:18px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* STAGING MOBILE ROOT-CAUSE REPAIR 20260821 */
html{overflow-x:clip}body{overflow-x:clip;background-attachment:scroll}.content,#main,.card,.table-wrap,.modal-body{min-width:0}
@media (hover:none),(pointer:coarse){.card:hover,.kpi:hover,.btn:hover{transform:none!important;filter:none!important}}
@media (max-width:680px){
 html{scroll-behavior:auto!important}.topbar{min-width:0!important;overflow:visible!important;flex-wrap:nowrap!important}.topbar-title{min-width:0!important;flex:1 1 auto!important;overflow:hidden!important}.topbar-title h2{max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important}.topbar-actions{min-width:0!important;max-width:50vw!important;overflow:visible!important;flex:0 1 auto!important}.topbar-actions>*{min-width:0!important;max-width:100%!important}.topbar-actions #v28Lang,.topbar-actions .r2c-language-select{display:block!important;flex:0 1 auto!important;width:clamp(104px,32vw,148px)!important;min-width:0!important;max-width:148px!important;white-space:nowrap!important}
 .table-wrap{width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:visible!important;overscroll-behavior-x:contain!important}.table-wrap table{min-width:680px!important;max-width:none!important;width:max-content!important;table-layout:auto!important}.table-wrap th,.table-wrap td{max-width:52vw!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;line-height:1.3!important}.table-wrap td .btn,.table-wrap td button{white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;min-width:0!important;max-width:100%!important;line-height:1.25!important;padding-inline:8px!important}.table-wrap td.nowrap,.table-wrap th.nowrap{white-space:normal!important}
 .actions,.page-head>.actions,.r2vf-action-group{min-width:0!important;max-width:100%!important}.actions>.btn,.page-head>.actions>.btn,.r2vf-action-group>.btn{min-width:0!important;max-width:100%!important;overflow-wrap:anywhere!important}.mobile-bottom{grid-template-columns:repeat(5,minmax(0,1fr))!important;min-width:0!important;overflow:hidden!important;padding-left:3px!important;padding-right:3px!important}.mobile-bottom button{min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:normal!important;line-height:1.15!important;padding-inline:1px!important}.mobile-bottom button b{line-height:1!important}.modal{min-width:0!important;max-width:calc(100vw - 12px)!important}.modal-head h3,.modal-body,.modal-foot{min-width:0!important;overflow-wrap:anywhere!important}
}
@media (max-width:430px){.topbar-actions{max-width:50vw!important;gap:4px!important}.topbar-actions #v28Lang,.topbar-actions .r2c-language-select{width:clamp(100px,31vw,132px)!important;max-width:132px!important;font-size:12px!important;padding-inline:6px!important}.topbar-actions .avatar{width:38px!important;min-width:38px!important;max-width:38px!important}.table-wrap table{min-width:620px!important}}


/* V29.3.0-R2 MOBILE LUXURY REPAIR CANDIDATE V2 — authoritative late layer */
.startup-state{display:flex;align-items:center;gap:14px;min-height:112px;padding:22px;border:1px solid rgba(241,201,106,.28);border-radius:18px;background:linear-gradient(145deg,rgba(12,47,33,.96),rgba(4,22,15,.98));box-shadow:0 12px 34px rgba(0,0,0,.28)}
.startup-state strong,.startup-state small{display:block}.startup-state small{margin-top:5px;color:var(--muted)}.startup-spinner{width:26px;height:26px;flex:0 0 26px;border:3px solid rgba(241,201,106,.22);border-top-color:#f1c96a;border-radius:50%}
@media (max-width:760px){
  html{overflow-x:clip!important;scroll-behavior:auto!important}
  body{overflow-x:clip!important;background-attachment:scroll!important}
  body::before{display:none!important}
  #app,.app,.app-shell,.main-wrap,.content,#main,.page,.card,.grid,.table-wrap,.modal-body{min-width:0!important;max-width:100%!important}
  .content,#main,.page{padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))!important}
  .card,.kpi,.modal,.login-card,.r2c-control,.statusbar,.topbar{backdrop-filter:none!important}
  .card,.kpi{box-shadow:0 8px 24px rgba(0,0,0,.22)!important}
  .card:hover,.kpi:hover,.btn:hover,.nav-btn:hover{transform:none!important;filter:none!important;box-shadow:none!important}
  .table-wrap{overflow:visible!important;border:0!important;background:transparent!important;padding:0!important}
  .table-wrap table,.table-wrap table.v35-mobile-cards,.table-wrap table.tf-final-responsive{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:separate!important}
  .table-wrap thead{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
  .table-wrap tbody{display:block!important;width:100%!important;min-width:0!important}
  .table-wrap tr{display:block!important;width:100%!important;min-width:0!important;margin:0 0 12px!important;padding:9px 11px!important;border:1px solid rgba(241,201,106,.16)!important;border-radius:15px!important;background:rgba(1,12,8,.32)!important;overflow:visible!important}
  .table-wrap td{display:flex!important;align-items:flex-start!important;gap:8px!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:7px 0!important;border-bottom:1px solid rgba(82,255,155,.10)!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;word-break:break-word!important;line-height:1.35!important}
  .table-wrap td:last-child{border-bottom:0!important}
  .table-wrap td::before{content:attr(data-label)!important;display:block!important;flex:0 0 min(36%,132px)!important;width:auto!important;max-width:36%!important;margin:0!important;color:#9fc4ad!important;font-size:10px!important;font-weight:850!important;line-height:1.3!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important}
  .table-wrap td>*{flex:1 1 auto!important;width:auto!important;max-width:100%!important;min-width:0!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;word-break:break-word!important}
  .table-wrap td[data-label="Action"],.table-wrap td[data-label="Actions"],.table-wrap td[data-label="ተግባር"],.table-wrap td[data-label="ተግባሮች"]{display:block!important}
  .table-wrap td[data-label="Action"]::before,.table-wrap td[data-label="Actions"]::before,.table-wrap td[data-label="ተግባር"]::before,.table-wrap td[data-label="ተግባሮች"]::before{display:block!important;max-width:100%!important;margin-bottom:6px!important}
  .table-wrap td[data-label="Action"] .btn,.table-wrap td[data-label="Actions"] .btn,.table-wrap td[data-label="ተግባር"] .btn,.table-wrap td[data-label="ተግባሮች"] .btn,.table-wrap td button,.table-wrap td .btn{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:44px!important;height:auto!important;margin:6px 0!important;padding:10px 12px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;word-break:break-word!important;line-height:1.25!important}
  .actions,.page-head>.actions,.r2vf-action-group{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important;min-width:0!important;max-width:100%!important}
  .actions>.btn,.page-head>.actions>.btn,.r2vf-action-group>.btn{width:100%!important;min-width:0!important;min-height:44px!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important}
  .topbar{min-width:0!important;overflow:visible!important;flex-wrap:nowrap!important}
  .topbar-title{min-width:0!important;flex:1 1 auto!important;overflow:hidden!important}
  .topbar-title h2{max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.15!important}
  .topbar-actions{min-width:0!important;max-width:52vw!important;flex:0 1 auto!important;gap:4px!important;overflow:visible!important}
  .topbar-actions>*{min-width:0!important;max-width:100%!important}
  .topbar-actions .r2c-language-select,#v28Lang{width:clamp(104px,31vw,136px)!important;min-width:0!important;max-width:136px!important;font-size:12px!important;padding-inline:6px!important;white-space:nowrap!important}
  .mobile-bottom{height:auto!important;min-height:calc(64px + env(safe-area-inset-bottom,0px))!important;padding:6px 5px calc(6px + env(safe-area-inset-bottom,0px))!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:3px!important;overflow:visible!important;backdrop-filter:none!important;box-shadow:0 -8px 22px rgba(0,0,0,.28)!important}
  .mobile-bottom button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;min-width:0!important;min-height:52px!important;padding:5px 2px!important;font-size:11px!important;line-height:1.15!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;word-break:break-word!important}
  .mobile-bottom button b{font-size:20px!important;line-height:1!important;margin-bottom:3px!important}
  .sidebar{width:min(86vw,320px)!important;max-width:86vw!important;height:100dvh!important;padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))!important;overscroll-behavior:contain!important}
  .sidebar.open{left:0!important}
  .hero-art{height:220px!important;background-image:linear-gradient(90deg,rgba(3,16,11,.10),rgba(3,16,11,.02)),url('furniture/showroom.jpg')!important;background-position:center!important;background-size:cover!important}
  .login-art:after{background:linear-gradient(90deg,rgba(2,12,8,.18),rgba(2,12,8,.48)),url('furniture/showroom.jpg') center/cover no-repeat!important;opacity:.72!important;filter:saturate(1.05) contrast(1.03)!important}
}
@media (max-width:430px){
  .content,#main,.page{padding-inline:8px!important}
  .actions,.page-head>.actions,.r2vf-action-group{grid-template-columns:1fr!important}
  .topbar-actions{max-width:50vw!important}
  .topbar-actions .r2c-language-select,#v28Lang{width:clamp(100px,31vw,128px)!important;max-width:128px!important}
  .mobile-bottom button{font-size:10px!important}
}
@media (hover:none),(pointer:coarse){
  *,*:before,*:after{animation:none!important;transition:none!important}
  .toast{animation:none!important}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*:before,*:after{animation:none!important;transition:none!important}}


/* V29.3.0-R2 MOBILE LUXURY REPAIR CANDIDATE V3 — final furniture-only hero override */
.login-art::after {
  background: linear-gradient(90deg, rgba(2, 12, 8, .18), rgba(2, 12, 8, .48)), url('furniture/showroom.jpg') center / cover no-repeat !important;
  opacity: .72 !important;
  filter: saturate(1.05) contrast(1.03) !important;
}
.hero-art {
  background-image: linear-gradient(90deg, rgba(3, 16, 11, .10), rgba(3, 16, 11, .02)), url('furniture/showroom.jpg') !important;
  background-position: center !important;
  background-size: cover !important;
}


/* V29.3.0-R2 Candidate V4: authenticated dashboard hero and login touch-target repair. */
.r2c-login-language {
  min-height: 44px !important;
  height: 44px !important;
}
.login-card button.btn,
.login-card .btn {
  min-height: 44px !important;
  height: 44px !important;
}


/* V29.3.0-R2 MOBILE LUXURY REPAIR CANDIDATE V5 — shared overflow hardening */
/* CSS-only staging candidate. No business-data, API, or runtime behavior change. */
html,body,#app,.app,.app-shell,.main-wrap,.content,#main,.page{
  min-width:0!important;
  max-width:100%!important;
  overflow-x:clip!important;
}
body,button,input,select,textarea,.card,.kpi,.page-head,.page-head h1,.page-head p,
.topbar,.topbar-title,.topbar-title h2,.topbar-title small,.nav-btn,.nav-btn .label,
.notice,.empty,.code,.r2c-control,.r2c-control b,.r2c-control small,
.product-card,.product-card b,.product-card small,.v29-product-card,.v29-product-body,
.v29-product-body h3,.v29-product-body p,.v29-data-list span,.v29-data-list b,
.r2fm-net,.r2619-readiness,.r2619-secure-note{
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  hyphens:auto!important;
}

/* Shared flex rows must be able to reflow rather than push the page width. */
.actions,.page-head,.page-head>.actions,.toolbar,.topbar,.topbar-actions,
.workflow,.v29-sale-strip,.v29-price,.portal-head,.portal-decision,.modal-foot,
.r2c-material-actions,.r2c-secret,.r2610-calc-mini-actions,.r2610-calc-history>header{
  min-width:0!important;
  max-width:100%!important;
  flex-wrap:wrap!important;
}
.actions>*,.page-head>.actions>*,.toolbar>*,.topbar>*,.topbar-actions>*,
.workflow>*,.v29-sale-strip>*,.v29-price>*,.portal-head>*,.modal-foot>*,
.r2c-material-actions>*,.r2c-secret>*{
  min-width:0!important;
  max-width:100%!important;
}

/* Cards and nested grids occupy the available phone width. */
.card,.kpi,.r2c-control,.product-card,.v29-product-card,.v29-option,.v28-feature,
.v29-control-tower,.r2610-calc-shell,.r2610-calc-history,.r2c-settings-card,
.r2c-control-grid,.form-grid,.grid,.gallery,.g2,.g3,.g4,.g5{
  min-width:0!important;
  max-width:100%!important;
}
.field,.field>*{min-width:0!important;max-width:100%!important}
.card,.kpi,.r2c-control{overflow:visible!important}
.product-card,.v29-product-card{overflow:hidden}
.card img,.kpi img,.r2c-control img,.product-card img,.v29-product-card img,
svg,video,canvas{max-width:100%!important;height:auto}

/* Preserve readable long Amharic labels and never clip shared button text. */
.btn,button,.login-card .btn,.login-card button,.mobile-bottom button,
.nav-btn,.r2vf-action-button,.r2c-material-actions .btn,
.actions>.btn,.page-head>.actions>.btn,td .btn,td button{
  min-width:0!important;
  max-width:100%!important;
  min-height:44px!important;
  height:auto!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  line-height:1.25!important;
}
.btn.small,.mobile-bottom button{min-height:44px!important}

/* Table/card views: labels and values wrap; explicit table scrolling remains local. */
.table-wrap,.table-container,.data-table-wrap{
  min-width:0!important;
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  overscroll-behavior-inline:contain!important;
}
.table-wrap table,.table-container table,.data-table-wrap table{
  max-width:none!important;
}
.table-wrap th,.table-wrap td,.table-container th,.table-container td,
.data-table-wrap th,.data-table-wrap td{
  min-width:0!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  white-space:normal!important;
  text-overflow:clip!important;
}

/* The V4 material action minimum was wider than a narrow phone card. */
.r2c-material-actions{min-width:0!important;width:100%!important}
.r2fm-net{white-space:normal!important;max-width:100%!important;text-overflow:clip!important}

@media (max-width:680px){
  .content,#main,.page{padding-inline:8px!important}
  .card,.kpi,.r2c-control{padding-inline:12px!important}
  .topbar{align-items:flex-start!important;gap:7px!important;flex-wrap:wrap!important}
  .topbar-title{flex:1 1 100%!important;width:100%!important;overflow:visible!important}
  .topbar-title h2,.topbar-title small{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
  .topbar-actions{width:100%!important;max-width:100%!important;justify-content:flex-start!important;gap:6px!important;flex-wrap:wrap!important}
  .topbar-actions>*{flex:1 1 120px!important;width:auto!important;max-width:100%!important}
  .topbar-actions .avatar{flex:0 0 44px!important;width:44px!important;min-width:44px!important}
  .topbar-actions .r2c-language-select,.topbar-actions #v28Lang{
    flex:1 1 150px!important;width:auto!important;min-width:0!important;max-width:100%!important;
    min-height:44px!important;height:auto!important;white-space:normal!important;
  }
  .page-head{flex-wrap:wrap!important}
  .page-head>*.actions,.page-head>.actions{width:100%!important}
  .actions,.page-head>.actions,.r2vf-action-group{display:flex!important;flex-wrap:wrap!important;width:100%!important}
  .actions>.btn,.page-head>.actions>.btn,.r2vf-action-group>.btn{flex:1 1 150px!important;width:auto!important}
  .r2c-material-actions{display:flex!important;flex-wrap:wrap!important}
  .r2c-material-actions>.btn{flex:1 1 140px!important;width:auto!important}
  .table-wrap td::before{max-width:40%!important;flex-basis:min(40%,145px)!important;overflow-wrap:anywhere!important;word-break:normal!important}
  .table-wrap td>*{min-width:0!important;max-width:100%!important;overflow-wrap:anywhere!important;word-break:normal!important}
  .modal-backdrop{padding:6px!important}
  .modal{width:calc(100vw - 12px)!important;max-width:calc(100vw - 12px)!important}
  .modal-head,.modal-body,.modal-foot{min-width:0!important;max-width:100%!important}
  .modal-foot>*{flex:1 1 145px!important}
  .metric-row{grid-template-columns:minmax(0,1fr)!important;gap:7px!important}
  .v29-data-list span{display:block!important}
  .v29-data-list b{display:block!important;text-align:left!important;margin-top:4px!important}
}

@media (max-width:430px){
  .topbar{padding-inline:7px!important}
  .topbar-title{flex-basis:100%!important}
  .topbar-actions{flex-basis:100%!important}
  .topbar-actions>*{flex:1 1 100%!important}
  .topbar-actions .avatar{flex:0 0 44px!important}
  .topbar-actions .r2c-language-select,.topbar-actions #v28Lang{flex-basis:100%!important;width:100%!important}
  .actions>.btn,.page-head>.actions>.btn,.r2vf-action-group>.btn,.r2c-material-actions>.btn{flex-basis:100%!important}
  .table-wrap td{display:flex!important;flex-wrap:wrap!important;gap:5px!important}
  .table-wrap td::before{flex:1 1 100%!important;max-width:100%!important}
  .table-wrap td>*{flex:1 1 100%!important}
  .mobile-bottom{grid-template-columns:repeat(5,minmax(0,1fr))!important;min-width:0!important}
  .mobile-bottom button{min-height:52px!important;padding-inline:1px!important}
}

@media (max-width:390px){
  .content,#main,.page{padding-inline:6px!important}
  .card,.kpi,.r2c-control{padding-inline:10px!important}
  .r2610-calc-shell{padding:12px!important}
  .r2610-calc-mini-actions{position:static!important;justify-content:flex-end!important;flex-wrap:wrap!important}
  .r2610-calc-display{min-height:140px!important;padding:18px 8px 12px!important}
}

@media (prefers-reduced-motion:reduce),(hover:none),(pointer:coarse){
  *,*:before,*:after{animation:none!important;transition:none!important}
}


/* Candidate V5 follow-up: icon-only menu controls also meet the 44px hit area. */
@media (max-width:680px){
  .menu-toggle{width:44px!important;min-width:44px!important;max-width:44px!important;min-height:44px!important;height:44px!important;padding-inline:0!important}
}


/* V29.3.0-R2 VIDEO UI REPAIR CANDIDATE V6 — presentation-only */
.startup-state{display:flex;align-items:center;gap:14px;min-width:0;max-width:100%;padding:22px 4px;color:var(--text);overflow-wrap:anywhere}
.startup-state strong,.startup-state small{display:block;max-width:100%;overflow-wrap:anywhere;white-space:normal}
.startup-state small{margin-top:4px;color:var(--muted);line-height:1.5}
.startup-spinner{width:28px;height:28px;flex:0 0 28px;border:3px solid rgba(56,229,127,.2);border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.toast{width:min(390px,calc(100vw - 24px));max-width:calc(100vw - 24px);white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important;word-break:normal!important;line-height:1.45!important}
.temp-password{font-size:clamp(16px,4.5vw,24px)!important;line-height:1.45!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;word-break:break-word!important;letter-spacing:.04em!important;max-width:100%!important;overflow:auto!important;padding:14px!important;border-radius:12px!important}
.notice,.r2619-friendly-error,.r2c-friendly-error{white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;line-height:1.5!important}
@media(max-width:680px){
  .startup-state{padding:18px 2px;align-items:flex-start}
  .startup-spinner{width:24px;height:24px;flex-basis:24px}
  .toast-root{left:12px;right:12px;bottom:calc(72px + var(--safe-bottom));width:auto;max-width:none}
  .toast{width:100%;max-width:none;padding:12px 13px}
  .temp-password{font-size:18px!important;max-height:40vh!important}
}

/* V6.1 staging-only hero asset correction: showroom.jpg contains a visible person. */
html{--r2-hero-image:url("assets/furniture/showroom-green.jpg")!important}
/* V6.2 staging-only login hero correction: override the winning pseudo-element image. */
.login-art:after{background-image:linear-gradient(90deg,rgba(2,12,8,.18),rgba(2,12,8,.48)),url("furniture/showroom-green.jpg")!important}
