:root{--g:#067a4f;--g2:#075b48;--a:#f7c948;--bg:#f4fbf7;--txt:#10201a;--mut:#64756d;--line:#dfeee7;--bad:#dc2626;--blue:#2563eb}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:Inter,system-ui,Segoe UI,Arial,sans-serif;color:var(--txt)}.login{min-height:100vh;display:grid;place-items:center;padding:18px;background:radial-gradient(circle at top left,#d6ffe9,#f6fbff 55%,#fff7dc)}.card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:16px;box-shadow:0 8px 28px #004d2b15}.login .card{width:min(430px,96vw);text-align:center;padding:24px 20px}.login .login-logo{display:block;width:min(250px,78vw);height:auto;max-width:100%;margin:2px auto 18px;object-fit:contain}.login .login-title{margin:0;color:#111;font-size:30px;line-height:1.15;font-weight:900}.login .login-tagline{margin:8px 0 20px;color:#c62828;font-size:17px;font-style:italic;font-weight:650}.layout{display:grid;grid-template-columns:280px 1fr;min-height:100vh}.side{background:linear-gradient(180deg,#043d35,#08634f);color:#fff;padding:16px;position:sticky;top:0;height:100vh;overflow:auto}.brand{display:flex;gap:10px;align-items:center;font-size:18px;font-weight:900;margin-bottom:14px}.brand img{width:154px;height:42px;object-fit:contain;background:#fff;border-radius:11px;padding:4px}.main{padding:18px;min-width:0}.nav{display:grid;gap:6px;margin-top:14px}.nav button{background:#ffffff12;color:#fff;border:1px solid #ffffff22;text-align:left}.nav button:hover{background:#ffffff28}.topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:14px}.grid{display:grid;grid-template-columns:repeat(4,minmax(145px,1fr));gap:12px}.grid2{display:grid;grid-template-columns:repeat(2,minmax(260px,1fr));gap:12px}.metric{border-left:5px solid var(--g)}.metric h2{margin:8px 0 0}.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:14px}.product img,.pimg{width:100%;height:160px;object-fit:contain;border-radius:14px;background:#f8fafc}.product:hover img{transform:scale(1.04)}.order-product{display:grid;grid-template-columns:64px 1fr;gap:10px;align-items:center}.order-product img{width:64px;height:64px;object-fit:contain;background:#f8fafc;border-radius:10px}.badge,.pill{display:inline-block;border-radius:99px;padding:5px 9px;font-size:12px;font-weight:800}.badge{background:#e9f8f0;color:var(--g)}.pill{background:#eef2ff;color:#3730a3}input,select,textarea,button{width:100%;padding:11px;border:1px solid #d8e8e1;border-radius:12px;margin:5px 0;background:#fff;font:inherit}textarea{min-height:78px}button{border:0;background:linear-gradient(135deg,var(--g),#0aa36a);color:#fff;font-weight:850;cursor:pointer}.btn2{background:var(--blue)}.btn3{background:#64748b}.danger{background:var(--bad)}.warn{background:var(--a);color:#172554}.small{font-size:12px;color:var(--mut)}.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0}.toolbar>*{width:auto;min-width:135px}.tablewrap{overflow:auto;border:1px solid var(--line);border-radius:16px;background:white}table{width:100%;border-collapse:collapse;font-size:14px}th,td{padding:10px;border-bottom:1px solid #edf5f1;text-align:left;vertical-align:top}th{background:#eaf8f1;white-space:nowrap}.modal{position:fixed;inset:0;background:#0008;display:grid;place-items:center;padding:14px;z-index:9}.box{background:#fff;border-radius:20px;padding:16px;width:min(980px,96vw);max-height:92vh;overflow:auto}.formgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.full{grid-column:1/-1}.notice{padding:12px;border-radius:16px;background:#fff8db;border:1px solid #f5d461;margin:10px 0}.ok{color:var(--g);font-weight:800}.bad{color:var(--bad);font-weight:800}@media(max-width:920px){.layout{grid-template-columns:1fr}.side{height:auto;position:relative}.main{padding:10px}.grid,.grid2,.formgrid{grid-template-columns:1fr}.toolbar>*{width:100%}.topbar{display:block}.nav{grid-template-columns:repeat(2,1fr)}table{font-size:12px}th,td{padding:8px}.product img{height:140px}}@media(max-width:520px){.nav{grid-template-columns:1fr}.card{padding:13px}.products{grid-template-columns:1fr}.side{padding:12px}.main{padding:8px}}

/* PRODUCTION IMAGE FIX + MOBILE PWA POLISH */
img{max-width:100%;height:auto}.product img,.pimg,.catalogue-img{width:100%!important;height:120px!important;max-height:120px!important;object-fit:contain!important;background:#f8fafc;border-radius:12px;padding:6px}.order-product img,.order-img{width:48px!important;height:48px!important;max-width:48px!important;max-height:48px!important;object-fit:contain!important;background:#f8fafc;border-radius:10px;padding:3px}.admin-product-thumb{width:54px!important;height:54px!important;object-fit:contain!important;border-radius:10px;background:#f8fafc;padding:3px}.hide{display:none!important}.map-link{color:#2563eb;font-weight:800;text-decoration:underline}.field-help{font-size:11px;color:#64756d;margin-top:-2px}.route-card{border-left:5px solid var(--g);cursor:pointer}.route-card.selected{outline:3px solid #f7c948}.party-card{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.party-distance{font-size:12px;font-weight:900;color:#065f46}.sticky-actions{position:sticky;bottom:0;background:#ffffffee;border-top:1px solid var(--line);padding:10px;backdrop-filter:blur(8px);z-index:5}.role-conditional{transition:.15s}.export-btn{background:#0f766e}.mapbox{height:360px;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#eaf8f1}.mapbox iframe{width:100%;height:100%;border:0}@media(max-width:520px){.product img,.pimg,.catalogue-img{height:95px!important;max-height:95px!important}.order-product{grid-template-columns:48px 1fr}.grid{grid-template-columns:repeat(2,1fr)}.metric h2{font-size:20px}.mapbox{height:300px}.side .nav{grid-template-columns:repeat(2,1fr)}.side .nav button{font-size:12px;padding:10px}}
.hidden{display:none!important}.formgrid.full{grid-column:1/-1}.export-menu{display:flex;gap:8px;align-items:center}.export-menu select{padding:10px;border-radius:10px;border:1px solid #cfe3dc;background:#fff}
/* MR submit call product multi-select patch */
.chipbox{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.selected-chip{background:#e8fff3;color:#066b46;border:1px solid #a8e8c8;border-radius:18px;padding:5px 8px;font-size:12px;font-weight:700}.selected-chip button{background:transparent;color:#066b46;padding:0 0 0 6px;box-shadow:none}.picklist{max-height:220px;overflow:auto;border:1px solid #d7eee4;border-radius:10px;background:#fff}.prod-option{display:flex;align-items:center;gap:10px;padding:8px 10px;border-bottom:1px solid #eef7f3;cursor:pointer}.prod-option:hover{background:#f3fff9}.prod-option img{width:36px;height:36px;object-fit:contain;border-radius:8px;background:#f6faf8}.prod-option span{flex:1}.prod-option b{font-size:18px;color:#07885d}
/* Admin/distributor patch UI fixes */
.hide{display:none!important}.checkbox-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;margin-top:10px}.product-card{display:flex;gap:14px;align-items:flex-start}.product-img,.order-img{width:72px!important;height:72px!important;max-width:72px!important;max-height:72px!important;object-fit:contain;border-radius:10px;background:#f5faf8;padding:4px;flex:none}.products{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:12px}.toolbar,.export-menu{display:flex;gap:8px;align-items:center;flex-wrap:wrap}@media(max-width:800px){.layout{display:block}.side{position:relative;width:100%;height:auto}.main{margin-left:0}.formgrid{grid-template-columns:1fr!important}.products{grid-template-columns:1fr}.tablewrap{overflow:auto}.card.product-card{display:block}.product-img{width:96px!important;height:96px!important}}
/* Admin access UI cleanup */
.access-box{border:1px solid #d7eee4;border-radius:14px;background:#fbfffd;padding:12px;margin-top:8px}.access-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:8px}.check-card{display:flex!important;align-items:center;gap:8px;padding:9px 10px;border:1px solid #d8e8e1;border-radius:10px;background:#fff;margin:0}.check-card input{width:auto;margin:0}.check-card span{font-size:13px;font-weight:650}.check-card:has(input:checked){background:#e8fff3;border-color:#0aa36a}.access-box .checkbox-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));}

/* Corporate HR patch small UI helpers */
.hide{display:none!important}.notice{background:#fff8e1;border-left:4px solid #f59e0b;padding:10px;margin:10px 0;border-radius:8px}.chipbox{display:flex;gap:6px;flex-wrap:wrap}.selected-chip{background:#e0f2fe;padding:5px 8px;border-radius:999px;font-size:12px}.picklist .prod-option{display:flex;gap:8px;align-items:center;padding:6px;border:1px solid #eee;border-radius:8px;margin:4px 0;cursor:pointer}.prod-option img{width:34px;height:34px;object-fit:contain}.catalogue-img,.order-img{max-width:70px;max-height:70px;object-fit:contain}.tablewrap{overflow:auto}.field-help{font-size:12px;color:#64748b}.full{grid-column:1/-1}
/* v3.2 notification UI */
.notifybar{display:flex;justify-content:flex-end;margin-bottom:10px}.notifybtn{background:#0f766e}.notifycount{display:inline-block;min-width:22px;padding:2px 6px;border-radius:999px;background:#ef4444;color:#fff;margin-left:6px}.notify-list{display:grid;gap:10px}.notify-item{border:1px solid #d7eee6;border-radius:14px;padding:12px;background:#fff}.notify-item.unread{border-left:5px solid #059669}.notify-item.read{opacity:.75}.notify-actions{margin-bottom:10px}.access-box{border:1px solid #cfe8df;border-radius:14px;padding:12px;background:#f8fffc}.access-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:8px}.checkbox-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.check-card{border:1px solid #d9eee7;border-radius:10px;padding:8px;background:#fff}

.order-submit-sticky{position:sticky;bottom:0;z-index:30;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;margin:12px 0;background:#fff;border:1px solid #ddd;border-radius:12px;box-shadow:0 6px 22px rgba(0,0,0,.12)}.order-submit-sticky button{min-width:150px}.report-actions{display:flex;gap:6px;flex-wrap:wrap}@media(max-width:700px){.order-submit-sticky{margin-left:-8px;margin-right:-8px}.order-submit-sticky button{min-width:130px}}

/* Android WebView mobile polish */
@media(max-width:720px){
  body{font-size:14px}
  .layout{display:block;min-height:100vh}
  .side{height:auto;position:sticky;top:0;z-index:20;padding:10px 12px;border-radius:0 0 18px 18px}
  .brand{margin-bottom:8px}.brand img{height:36px}
  .side>div:nth-child(2){display:none}
  .nav{display:flex;overflow-x:auto;gap:6px;margin-top:8px;padding-bottom:2px}
  .nav button{width:auto;white-space:nowrap;min-width:max-content;padding:9px 12px}
  .main{padding:10px}
  .topbar h1{font-size:20px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid2{grid-template-columns:1fr}
  .products{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .product{padding:10px}.product img{height:105px!important}
  .tablewrap{font-size:11px}
  .formgrid{grid-template-columns:1fr}
  .box{width:96vw;padding:12px}
}

/* ===== KUSMA MR UI V6.0 - mobile-first navigation redesign ===== */
:root{--primary:#087f61;--primary-dark:#045c4c;--soft:#eaf8f3;--shadow:0 10px 30px rgba(2,77,54,.08)}
.app-shell{min-height:100vh}.mobile-header,.mobile-bottom,.mobile-drawer,.drawer-backdrop{display:none}.desktop-topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;padding:4px 2px;color:#587168}.desktop-title{font-weight:900;color:#075d4d}.desktop-user{font-size:12px}.user-mini{padding:12px;border-radius:16px;background:#ffffff0d;margin-bottom:10px}.side-start{margin-top:6px!important;background:#f7c948!important;color:#123!important}.day-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-radius:22px;background:linear-gradient(135deg,#076b56,#0a9070);color:#fff;box-shadow:var(--shadow);margin:10px 0 14px}.day-card h2{margin:4px 0}.eyebrow{font-size:11px;font-weight:900;letter-spacing:1px;opacity:.75}.day-card .small{color:#e2fff5}.primary-action{width:auto;min-width:135px;background:#fff;color:#067357;border-radius:14px;padding:13px 18px}.quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}.quick-actions button{background:#fff;color:#123;border:1px solid var(--line);box-shadow:var(--shadow);text-align:left;padding:14px;border-radius:18px}.quick-actions button:first-letter{color:#087f61}.quick-actions b,.quick-actions small{display:block}.quick-actions b{margin-top:5px}.quick-actions small{color:var(--mut);font-size:11px}.call-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:16px 18px;margin-top:12px;box-shadow:var(--shadow)}.call-summary span,.call-summary small{display:block;color:var(--mut);font-size:12px}.call-summary b{display:block;font-size:28px;margin:3px 0}.call-summary button{width:auto;padding:10px 14px}
@media(max-width:700px){
 body{background:#f4fbf7;padding-bottom:74px}.layout{display:block;min-height:auto}.side{display:none}.main{padding:12px 12px 90px}.desktop-topbar{display:none}.mobile-header{display:flex;position:sticky;top:0;z-index:8;height:64px;background:linear-gradient(135deg,#045b4b,#087f61);color:#fff;align-items:center;justify-content:space-between;padding:8px 12px;border-radius:0 0 22px 22px;box-shadow:0 6px 20px rgba(2,77,54,.14)}.mobile-brand{display:flex;align-items:center;gap:7px;font-size:18px}.mobile-brand img{width:118px;height:32px;object-fit:contain;background:transparent;border-radius:0;padding:0}.icon-btn{width:42px!important;height:42px!important;padding:0!important;margin:0!important;background:#ffffff14!important;border:1px solid #ffffff25!important;border-radius:13px!important;color:#fff!important;font-size:21px!important}.mobile-bottom{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;left:0;right:0;bottom:0;height:72px;background:#fff;border-top:1px solid var(--line);z-index:20;box-shadow:0 -8px 25px rgba(2,77,54,.08)}.mobile-tab{background:transparent!important;color:#62756e!important;border-radius:0!important;margin:0!important;padding:7px 2px!important;border:0!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.mobile-tab span{font-size:21px;line-height:1}.mobile-tab small{font-size:10px;font-weight:800}.mobile-tab.active{color:#087f61!important}.mobile-drawer{display:block;position:fixed;top:0;bottom:0;left:-88%;width:min(330px,88vw);background:#fff;z-index:30;padding:18px 14px;overflow:auto;transition:left .22s ease;box-shadow:15px 0 35px rgba(0,0,0,.12)}.mobile-drawer.open{left:0}.drawer-backdrop{display:block;position:fixed;inset:0;background:#0007;z-index:29;opacity:0;pointer-events:none;transition:.22s}.drawer-backdrop.open{opacity:1;pointer-events:auto}.drawer-head{display:flex;justify-content:space-between;align-items:center;padding:8px 4px 16px;border-bottom:1px solid var(--line)}.drawer-head .icon-btn{background:var(--soft)!important;color:#075d4d!important;border-color:var(--line)!important}.drawer-start{display:flex;gap:12px;align-items:center;text-align:left;background:var(--soft);color:#075d4d;border:1px solid #cbeee1;margin:14px 0;padding:13px;border-radius:16px}.drawer-start span:last-child{display:flex;flex-direction:column}.drawer-start small{color:var(--mut);font-weight:500;margin-top:2px}.drawer-list{display:grid;gap:4px}.drawer-item{display:flex!important;justify-content:space-between!important;align-items:center!important;background:#fff!important;color:#18352c!important;border:0!important;border-bottom:1px solid #eef5f2!important;border-radius:10px!important;text-align:left!important;padding:13px 10px!important;margin:0!important}.drawer-item:hover{background:var(--soft)!important}.drawer-logout{background:#fee2e2!important;color:#b91c1c!important;margin-top:16px}.topbar{margin-top:8px}.topbar h1{font-size:25px;margin:6px 0}.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.dashboard-grid .metric{padding:13px;border-radius:17px}.dashboard-grid .metric h2{font-size:21px;margin-top:5px}.day-card{display:block;padding:17px;border-radius:20px}.primary-action{width:100%;margin-top:12px}.quick-actions{grid-template-columns:repeat(3,1fr);gap:7px}.quick-actions button{padding:11px 8px;font-size:12px}.quick-actions b{font-size:12px}.call-summary{padding:14px}.call-summary button{font-size:12px}.products{grid-template-columns:1fr}.card{border-radius:18px}.formgrid{grid-template-columns:1fr!important}.modal .box{width:96vw;padding:13px}.modal .topbar{display:flex}.modal .topbar h2{font-size:19px}.tablewrap{border-radius:12px}.nav{display:none!important}
}
@media(min-width:701px){.main{max-width:1500px}.quick-actions{max-width:760px}.day-card{max-width:900px}.call-summary{max-width:900px}}

/* V6.1 PROFESSIONAL UX POLISH */
:root{--g:#067a4f;--g2:#075b48;--bg:#f3faf7;--surface:#fff;--txt:#10201a;--mut:#667a72;--line:#dcece5;--shadow:0 10px 28px rgba(7,91,72,.08)}
body{background:linear-gradient(180deg,#f5fbf8 0,#eef8f4 100%);-webkit-tap-highlight-color:transparent}
.app-shell{min-height:100vh}.side{box-shadow:8px 0 28px rgba(2,61,53,.08);z-index:4}.brand{padding:4px 2px 14px}.nav{gap:5px}.nav button{display:flex;align-items:center;gap:10px;border-radius:13px;padding:11px 12px;transition:transform .15s,background .15s}.nav button:hover{transform:translateX(2px)}.nav-icon{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#ffffff14;font-style:normal;font-weight:900;flex:none}.main{max-width:1500px;width:100%;margin:auto}.desktop-topbar{position:sticky;top:0;z-index:3;background:#f3faf7ee;backdrop-filter:blur(12px);padding:7px 2px 12px;border-bottom:1px solid #dcece566}.desktop-title{font-weight:900;color:#075b48}.desktop-user{float:right;color:#667a72;font-size:13px}.mobile-header{background:linear-gradient(135deg,#043d35,#08795b);box-shadow:0 8px 25px rgba(0,77,43,.16);padding:12px 14px}.mobile-brand{gap:9px}.mobile-brand img{background:transparent;border-radius:0;padding:0}.mobile-bottom{box-shadow:0 -8px 28px rgba(0,0,0,.08);background:#fffffff2;backdrop-filter:blur(12px);padding:7px 8px calc(7px + env(safe-area-inset-bottom));border-top:1px solid #dcece5}.mobile-tab{border-radius:13px!important;background:transparent!important;color:#31544a!important;padding:7px 4px!important;margin:0!important}.mobile-tab.active,.mobile-tab:hover{background:#e8f7f0!important;color:#067a4f!important}.mobile-tab span{font-size:20px;display:block;line-height:1.1}.mobile-tab small{font-weight:800}.mobile-drawer{box-shadow:18px 0 45px rgba(0,0,0,.22);border-radius:0 22px 22px 0}.drawer-item{border-radius:12px!important}.drawer-item span:first-child{display:flex;align-items:center;gap:10px}.eyebrow{font-size:11px;letter-spacing:.12em;font-weight:900;color:#07885d}.topbar h1{margin:3px 0}.metric{box-shadow:var(--shadow);border-left-width:5px}.card{box-shadow:var(--shadow);border-color:#dcece5}.sticky-actions{box-shadow:0 -8px 20px rgba(7,91,72,.06)}button{min-height:42px;transition:transform .12s,filter .12s,box-shadow .12s}button:active{transform:scale(.98)}input:focus,select:focus,textarea:focus{outline:3px solid #067a4f22;border-color:#067a4f}.expense-flow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#eaf8f1;border:1px solid #ccebdd;border-radius:15px;padding:10px 12px;margin:10px 0 14px;color:#075b48}.expense-flow span{white-space:nowrap}.expense-form label{font-weight:750}.expense-form .notice{font-size:13px}.holiday-toolbar{align-items:flex-end}.holiday-legend{display:flex;gap:14px;flex-wrap:wrap;padding:10px 12px;background:#fff;border:1px solid var(--line);border-radius:15px;margin-bottom:14px;color:#48645a;font-size:12px;font-weight:750}.legend-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:5px;vertical-align:-1px}.holiday-year-grid{display:grid;grid-template-columns:repeat(3,minmax(260px,1fr));gap:14px}.holiday-month{background:#fff;border:1px solid var(--line);border-radius:18px;padding:12px;box-shadow:var(--shadow)}.holiday-month-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.holiday-month-head h3{margin:0;color:#075b48}.holiday-month-head span{font-size:11px;color:#667a72}.holiday-week,.holiday-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.holiday-week b{text-align:center;font-size:10px;color:#81938c;padding:4px 0}.holiday-day{min-height:55px;border-radius:10px;padding:4px;background:#f8fcfa;overflow:hidden}.holiday-day.empty{background:transparent}.holiday-day.is-holiday{background:#effaf5}.day-no{font-size:11px;font-weight:850;color:#536c62}.holiday-chip{display:block!important;width:100%!important;min-height:0!important;margin:2px 0!important;padding:3px 4px!important;border-radius:6px!important;font-size:8px!important;line-height:1.15!important;text-align:left!important;white-space:normal!important;overflow:hidden!important;color:#fff!important}.holiday-national{background:#067a4f!important}.holiday-festival{background:#7c3aed!important}.holiday-optional{background:#2563eb!important}.holiday-restricted{background:#ea580c!important}
@media(max-width:1000px){.holiday-year-grid{grid-template-columns:repeat(2,minmax(260px,1fr))}}
@media(max-width:700px){.desktop-topbar{display:none}.holiday-year-grid{grid-template-columns:1fr}.holiday-month{padding:10px}.holiday-day{min-height:48px}.holiday-toolbar .toolbar{margin-top:8px}.expense-flow{font-size:11px}.main{padding-bottom:78px}}

.header-actions{display:flex;gap:8px;align-items:center}
.header-actions .icon-btn{position:relative}
.notif-badge{display:none;position:absolute;top:-3px;right:-3px;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:#ef4444;color:#fff;font-size:9px;align-items:center;justify-content:center;font-weight:800}
.notification-list{display:grid;gap:10px}.notification-item{cursor:pointer}.notification-item.unread{border-left:4px solid #087a58;background:#f3fbf7}.notification-item p{margin:6px 0;color:#33433d}

/* V6.2.4 input/touch reliability: preserve normal text entry on Android WebView and browsers. */
input, textarea, select { pointer-events:auto!important; touch-action:manipulation; -webkit-user-select:text!important; user-select:text!important; -webkit-touch-callout:default; }
.login { position:relative; z-index:1; }
.login .card { position:relative; z-index:2; }

/* V6.2.5 INPUT STABILITY: preserve normal text editing/touch behavior in WebView. */
input, textarea, select {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
  touch-action: manipulation;
  pointer-events: auto;
}
input:disabled, textarea:disabled, select:disabled { pointer-events:auto; }

/* V6.2.9: top-left hamburger is redundant because More/drawer remains available. */
@media (max-width:900px){#OpenMenuBtn{display:none!important}.mobile-header{justify-content:space-between}.mobile-brand{margin-left:0}}
.metric-highlight{background:linear-gradient(135deg,#eafaf1,#ffffff);border:1px solid #cdeee0;border-left:5px solid var(--g)}
.metric-highlight h2{margin:6px 0 10px;font-size:26px}
.progress-bar{height:10px;border-radius:99px;background:#e3f3ea;overflow:hidden}
.progress-fill{height:100%;background:linear-gradient(90deg,var(--g),#0aa36a);border-radius:99px;transition:width .3s ease}
.badge-success{background:#dcfce7!important;color:#15803d!important;margin-left:6px}
.party-visited{opacity:.85;border-left:5px solid #22c55e}
.party-visited button{background:linear-gradient(135deg,#64748b,#94a3b8)}
.notice.danger{background:#fee2e2;border-color:#fca5a5;color:#7f1d1d}

/* V6.9.1 MOBILE SAFE-AREA + MODAL VISIBILITY FIX
   UI-only: preserves the existing navigation and submit flow. */
html,body{min-height:100%;}
body{padding-top:env(safe-area-inset-top,0px);}
@media(max-width:700px){
  .mobile-header{
    top:0;
    padding-top:8px;
    min-height:64px;
    height:auto;
  }
  .main{padding-bottom:calc(90px + env(safe-area-inset-bottom,0px));}
  .mobile-bottom{
    height:auto;
    min-height:72px;
    padding-bottom:env(safe-area-inset-bottom,0px);
  }
  .modal{
    z-index:1000;
    place-items:center;
    padding:calc(8px + env(safe-area-inset-top,0px)) 8px calc(8px + env(safe-area-inset-bottom,0px));
  }
  .modal .box{
    width:min(96vw,680px);
    max-width:100%;
    max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 16px);
    min-height:0;
    overflow:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    padding:12px;
  }
  .modal .topbar{
    position:sticky;
    top:0;
    z-index:2;
    background:#fff;
    padding-bottom:6px;
    margin-bottom:8px;
  }
  .modal .topbar button{width:auto;min-width:96px;}
  .modal .formgrid{grid-template-columns:1fr!important;}
  .modal .order-submit-sticky{
    position:sticky;
    bottom:0;
    z-index:5;
    margin:12px -1px -1px;
    padding:10px;
    padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));
    background:rgba(255,255,255,.98);
  }
  .modal .order-submit-sticky button{
    width:auto;
    min-width:145px;
  }
}
@media(min-width:701px){
  .modal{z-index:1000;}
}

#TrackingLeaflet{width:100%;height:100%;min-height:300px}.tracking-stats{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.tracking-stat{padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;font-weight:800;font-size:13px}


/* Attendance calendar */
.attendance-calendar-wrap{margin-top:14px}
.attendance-calendar-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.attendance-calendar-head h3{margin:0;color:#075b48;font-size:18px}
.attendance-month-btn{width:42px!important;min-width:42px!important;padding:8px!important;margin:0!important;background:#e8f7f0!important;color:#075b48!important;border:1px solid #ccebdd!important}
.attendance-week,.attendance-days{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.attendance-week b{text-align:center;font-size:10px;color:#81938c;padding:5px 0}
.attendance-day{position:relative;min-height:64px!important;margin:0!important;padding:7px 4px!important;background:#f8fcfa!important;color:#18352c!important;border:1px solid #e3f0ea!important;border-radius:12px!important;display:flex;flex-direction:column;align-items:center;justify-content:space-between}
.attendance-day.empty{visibility:hidden}
.attendance-day-no{font-size:12px;font-weight:900}
.attendance-code{font-size:11px;font-weight:900;color:#075b48;min-height:15px}
.attendance-day.recorded{background:#eaf8f1!important;border-color:#bfe5d3!important}
.attendance-day.leave{background:#eef2ff!important;border-color:#c7d2fe!important}
.attendance-day.holiday{background:#fff8db!important;border-color:#f5d461!important}
.attendance-day.halfday{background:#fff7ed!important;border-color:#fed7aa!important}
.attendance-day.today{outline:2px solid #067a4f;outline-offset:1px}
.attendance-dot{width:7px;height:7px;border-radius:50%;position:absolute;top:5px;right:5px}
.holiday-dot{background:#f59e0b}
.attendance-legend{display:flex;gap:8px;flex-wrap:wrap}
.attendance-legend span{background:#f4fbf7;border:1px solid #dfeee7;border-radius:999px;padding:5px 8px;font-size:11px;color:#48645a}
.attendance-legend b{color:#075b48}

@media(max-width:520px){
  .attendance-week,.attendance-days{gap:4px}
  .attendance-day{min-height:58px!important;padding:6px 3px!important;border-radius:10px!important}
  .attendance-day-no{font-size:11px}
  .attendance-code{font-size:10px}
  .attendance-calendar-head h3{font-size:16px}
  .attendance-month-btn{height:38px!important;min-height:38px!important}
}
