/* C STORE DELIVERY | 2026 branded visual refresh
   Visual-only theme: no changes to API, permissions, evaluation or storage. */
:root {
 --purple:#792d92; --pink:#f61780; --pale:#fff0f7; --bg:#fff8fb;
 --white:#fff; --ink:#251629; --muted:#806b80; --line:#f0dce8;
 --shadow:0 15px 44px rgba(99,30,74,.07); --success:#087c51; --danger:#b51f42;
 --brand-hot:#f61780; --brand-dark:#161018; --brand-soft:#ffe5f0;
 font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}
html{scroll-behavior:smooth}
body{background:radial-gradient(ellipse 70% 40% at 14% 0%,#ffe5f1 0%,transparent 85%),#fff8fb;color:var(--ink)}
button,input,select,textarea{font-family:inherit}
button,.nav-btn,.mode-tab,.card,.stat{transition:background .18s ease,box-shadow .18s ease,transform .18s ease,border-color .18s ease}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #fb80b8;outline-offset:2px}
.button{background:linear-gradient(128deg,#ef126e,#fa298e);color:white;border:0;border-radius:13px;box-shadow:0 8px 17px #ed16712b;font-weight:800;letter-spacing:0;min-height:44px}
.button:hover:not(:disabled){filter:none;transform:translateY(-1px);box-shadow:0 11px 23px #ed16713d}
.button.secondary{background:#fff0f6;color:#bd175e;box-shadow:none}
.button.outline{background:white;color:#b91e67;border:1px solid #f4bad2;box-shadow:none}
.button.danger{background:#fff0f2;color:#b21f40;box-shadow:none}
.button:active:not(:disabled){transform:translateY(0)}
.input{border:1px solid #ecd8e5;border-radius:12px;height:47px;background:#fff;color:#241627}
.input:focus{border-color:#f61780;box-shadow:0 0 0 4px #f617801c}
.input::placeholder{color:#ad9baa}
.auth-shell{grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);background:#fffafb}
.auth-shell .hero{background:radial-gradient(circle at 22% 85%,#ff4a9d80,transparent 38%),linear-gradient(150deg,#160e19 0%,#481d47 48%,#e51b77 100%);position:relative;overflow:hidden;isolation:isolate;padding:64px clamp(30px,5vw,82px)}
.auth-shell .hero:before{content:"";position:absolute;width:480px;height:480px;border:1px solid #ffffff26;border-radius:50%;left:-140px;top:25%;z-index:-1;box-shadow:0 0 0 60px #fff1,0 0 0 120px #ffffff08}
.auth-shell .hero:after{content:"";position:absolute;inset:auto 0 0;height:7px;background:linear-gradient(90deg,#fa1787 0%,#fff 55%,#f61780 100%)}
.auth-shell .hero .mark{background:#ffffff12;border:1px solid #ffffff47;backdrop-filter:blur(8px);border-radius:22px;align-self:flex-start;padding:8px 17px 8px 8px;font-size:17px;letter-spacing:.6px}
.auth-shell .hero .mark .brand-hero-logo{width:58px;height:58px;border-radius:50%;object-fit:contain;filter:drop-shadow(0 5px 12px #0004)}
.auth-shell .hero h1{font-size:clamp(55px,6vw,86px);font-weight:900;line-height:1.06;letter-spacing:-2px;text-shadow:0 8px 22px #08040955}
.auth-shell .hero h2{font-size:clamp(25px,2.7vw,40px);font-weight:800;line-height:1.55;max-width:550px}
.auth-shell .hero p{font-size:15px;color:#fff0f7}
.auth-shell .hero .overline{color:#ffc7e0;letter-spacing:3px;margin-bottom:18px}
.auth-panel{background:radial-gradient(circle at 100% 0%,#ffeff6 0%,transparent 54%),#fffafb}
.auth-content{background:#fff;border:1px solid #f8e3ed;border-radius:27px;padding:34px;max-width:525px;box-shadow:0 20px 65px #8f37631a;width:min(100%,515px)}
.auth-content h2{font-size:31px;letter-spacing:-.6px}
.auth-content .hint{color:#766476}
.mode-tabs{gap:12px}
.mode-tab{border:1px solid #f3d8e5;border-radius:17px;background:#fff;padding:19px 8px;min-height:108px;font-size:14px;color:#493447}
.mode-tab svg{width:26px;height:26px;display:block;margin:0 auto 8px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mode-tab.active{background:#fff0f6;border-color:#f61780;color:#b5125f;box-shadow:inset 0 0 0 1px #f61780,0 8px 18px #ff198319}
.mode-tab:hover{border-color:#f68bbb}
.chip{background:#fce6f0;color:#ad1556;border-radius:999px}
.chip.green{background:#e4f7eb;color:#0a8054}
.chip.orange{background:#fff2df;color:#8b5400}
.shell{background:transparent}
.sidebar{width:276px;background:#fff;border-left:1px solid #f0dce8;padding:21px 14px 19px;box-shadow:-8px 0 24px #421d3910;gap:20px;z-index:5}
.brand{padding:12px 11px 17px;border-bottom:1px solid #f3e3ed;align-items:center;gap:12px}
.brand .brand-logo{width:56px;height:56px;object-fit:contain;border-radius:50%;background:#130d15;box-shadow:0 5px 16px #ee17603d;flex:none}
.brand strong{font-size:22px;letter-spacing:-.2px;color:#211626}
.brand small{color:#b01b64;letter-spacing:1.3px;font-size:9px}
.nav-section{color:#b297aa;font-size:10px;text-transform:uppercase;letter-spacing:1.1px}
.nav-list{gap:4px}
.nav-btn{padding:11px 13px;min-height:46px;border-radius:14px;color:#5c4458;font-size:13px}
.nav-btn:hover{background:#fff1f7;color:#b51e64;transform:translateX(-2px)}
.nav-btn.active{background:linear-gradient(90deg,#fff4f9,#fde4ef);color:#bd145d;border-right:3px solid #f61780;box-shadow:0 4px 14px #e81a7911}
.nav-icon{width:34px;height:34px;flex:none;border-radius:11px;display:inline-grid;place-items:center;background:#fff0f6;color:#c02b74}
.nav-icon svg{display:block;width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav-btn.active .nav-icon{color:#fff;background:linear-gradient(145deg,#ed1471,#f83b96);box-shadow:0 4px 10px #ee16742e}
.sidebar-user{background:linear-gradient(140deg,#fff5f9,#ffe8f1);border:1px solid #f7d6e5;border-radius:18px;padding:17px}
.sidebar-user b{color:#a21e5b}
.topbar{background:#fff;min-height:90px;height:auto;border-bottom:1px solid #f4e3ec;padding:20px clamp(19px,3vw,46px);box-shadow:0 3px 10px #942d5810}
.topbar h1{font-weight:900;font-size:24px;color:#2a1729}
.topbar p{color:#a08b9b}
.content{padding:31px clamp(20px,3vw,43px)}
.intro h2{font-weight:900;color:#2d1728;font-size:25px}
.intro p{color:#8a7185}
.stat,.card{border:1px solid #f0deea;border-radius:22px;box-shadow:var(--shadow)}
.stat{position:relative;overflow:hidden}
.stat:after{content:"";position:absolute;top:0;right:0;width:48%;height:4px;border-radius:0 0 0 8px;background:linear-gradient(90deg,#f61780,#fa87b5)}
.stat .v{font-size:35px;color:#2a182d}
.stat .k{color:#8c7285}
.card-header h3{color:#2a182e;font-weight:900}
.iconbox{background:#fff0f6;color:#c11d67;border-radius:12px}
.blank{border-color:#f2cede;background:#fffbfd;border-radius:17px}
.blank strong{color:#ea197d}
.data th{background:#fff2f8;color:#6e4b65;font-weight:800}
.data td{border-bottom-color:#f4e8ef}
.data tbody tr:hover{background:#fff5f9}
.role-pill{background:#fff0f6;color:#a11b60;border-radius:9px}
.branch-card{border-color:#f1dfe9;border-radius:19px;box-shadow:0 8px 23px #8f37630b}
.modal-layer{background:#211020a8;backdrop-filter:blur(3px)}
.modal{border-radius:24px;border:1px solid #f2d8e7;box-shadow:0 20px 90px #2110204d}
.modal-header h3{font-weight:900}
.close{color:#ab1d63;background:#fff0f6}
.info{background:#fff0f7;color:#6e4e69;border-radius:14px}
.danger-box{background:#fff0f2;color:#b4223e}
.salary-total{background:linear-gradient(125deg,#b81867,#f72485)}
.timeline-item:before{background:#f61780}
.portal-layout{background:radial-gradient(ellipse at top,#ffeaf3,transparent 65%),#fff8fb}
.portal-header{background:linear-gradient(120deg,#201121,#92265c 50%,#f61780);border-bottom:4px solid #f62d88;padding:20px max(22px,calc((100vw - 1090px)/2))}
.portal-header .portal-branding{display:flex;align-items:center;gap:13px}
.portal-header .portal-branding img{width:63px;height:63px;object-fit:contain;border-radius:50%;background:#110a0e}
.portal-header .portal-branding b{letter-spacing:.1px}
.portal-main{max-width:1090px}
.portal-grid .stat:after{width:42%}
.history-track{background:#ffe4ef}
.history-fill{background:linear-gradient(90deg,#dc1267,#fa3898)}
#toast{background:#211521;border:1px solid #e9308a;border-radius:14px}
/* Modal dialogs and dropdowns on smaller screens */
@media(max-width:1100px){.sidebar{width:245px}}
@media(max-width:760px){
 .auth-shell{display:flex;flex-direction:column}
 .auth-shell .hero{min-height:auto;padding:19px 21px 24px;gap:10px}
 .auth-shell .hero .mark .brand-hero-logo{width:40px;height:40px}
 .auth-shell .hero .mark{padding:6px 11px 6px 6px;border-radius:14px;font-size:12px}
 .auth-shell .hero h1{font-size:34px;margin:0}
 .auth-shell .hero h2{font-size:18px;margin:5px 0 0}
 .auth-shell .hero .overline{font-size:9px;margin-bottom:5px}
 .auth-panel{padding:18px 15px 30px;align-items:start}
 .auth-content{padding:25px 19px;border-radius:22px;box-shadow:0 10px 34px #a4436d18}
 .auth-content h2{font-size:24px}
 .mode-tab{min-height:92px;padding:13px 5px}
 .sidebar{display:none}
 .mobile-top{background:#fff;padding:10px 15px;min-height:65px;box-shadow:0 4px 18px #a4436d16}
 .mobile-brand{display:flex;align-items:center;gap:8px;color:#ac1c61}
 .mobile-brand img{width:39px;height:39px;border-radius:50%;background:#140d14}
 .topbar{padding:15px 17px}
 .content{padding:20px 15px}
 .intro h2{font-size:21px}
 .nav-mobile{border-top:1px solid #f0cfdf;background:#fffafd;box-shadow:0 -5px 18px #a4436d11}
 .nav-mobile button{color:#81647a}
 .nav-mobile button.active{color:#be175f}
 .nav-mobile button svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 .grid-branch{grid-template-columns:1fr}
 .portal-header{padding:15px}
 .portal-header .portal-branding img{width:48px;height:48px}
 .portal-grid{grid-template-columns:repeat(2, minmax(0,1fr))}
 .card{padding:16px}
 .modal{padding:18px}
}
@media(max-width:390px){.portal-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
@media print{.cstore-splash{display:none!important}}
/* One-shot opening sequence on initial launch of web / Android WebView. */
.cstore-splash{position:fixed;inset:0;z-index:99999;background:radial-gradient(circle at 50% 42%,#2b1528,#0d0b10 72%);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;overflow:hidden;animation:cstore-splash-out .35s ease 3.1s forwards}
.cstore-splash[hidden]{display:none!important}
.cstore-splash:after{content:"";position:absolute;inset:auto 0 0;height:4px;background:linear-gradient(90deg,#fa1c7b,#ffe4f0,#f61a85)}
.cstore-splash img{display:block;width:min(70vw,370px);height:auto;object-fit:contain;filter:drop-shadow(0 12px 34px #ff20852e)}
.cstore-splash .intro-text{font-size:14px;color:#f8b6d6;letter-spacing:1.6px;font-weight:800;text-align:center}
.cstore-splash .intro-skip{background:transparent;border:1px solid #ffffff5c;color:#fff;border-radius:999px;padding:7px 21px;min-height:34px;box-shadow:none;font-size:12px;position:absolute;bottom:32px;left:25px}
.cstore-splash .intro-skip:hover{background:#ffffff24}
@keyframes cstore-splash-out{to{opacity:0;visibility:hidden;pointer-events:none}}
@media(prefers-reduced-motion:reduce){.cstore-splash{animation:cstore-splash-out .15s .25s forwards}.cstore-splash img{display:none}}

/* Stage 12: exact user-provided C STORE character and animation; no backdrop square or generated drop shadow. */
.cstore-splash{background:#fffafb;gap:0}
.cstore-splash:after{display:none}
.cstore-splash picture{display:block;width:min(78vw,430px);max-width:100%;line-height:0}
.cstore-splash picture img{width:100%;height:auto;object-fit:contain;filter:none!important;box-shadow:none!important;image-rendering:auto}
.cstore-splash .intro-text{display:none!important}
@media (max-width:600px){.cstore-splash picture{width:min(88vw,360px)}}
/* Stage 13: compact employee file, tree, checklists and printable clearance */
.s13-sections{display:grid;gap:16px}
.s13-sections .card{min-width:0}
.s13-sections .card h3{margin:0 0 16px;color:#8c235c}
.s13-info{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:11px}
.s13-info>div{border:1px solid #f2deea;border-radius:13px;padding:12px;background:#fffafd;display:flex;flex-direction:column;gap:6px;min-width:0}
.s13-info small{color:#776272;font-size:11px}
.s13-info b{overflow-wrap:anywhere;font-size:14px}
.s13-check{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 10px;border-bottom:1px solid #f1e2eb}
.s13-org{padding:clamp(16px,3vw,28px)}
.s13-chain{display:flex;flex-direction:column;align-items:center;gap:8px;margin:0 auto 24px;max-width:370px;text-align:center}
.s13-chain>div{width:100%;padding:15px;border:1px solid #f5cbdc;border-radius:14px;background:linear-gradient(120deg,#fff7fb,#ffedf5);display:grid;gap:8px}
.s13-chain>span{color:#e0277e;font-weight:900;font-size:20px}
.s13-person{border-radius:11px;padding:9px 12px;background:#fff;display:grid;gap:4px;box-shadow:0 2px 7px #931a6111}
.s13-person small{display:block;font-size:11px;color:#695466}
.s13-branches{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,265px),1fr));gap:14px}
.s13-branch{background:#fffafa;border:1px solid #f0d5e3;border-radius:16px;padding:16px;min-width:0}
.s13-branch h3{margin:0 0 15px;color:#ad195b;font-size:16px}
.s13-branch-sub{display:grid;gap:8px}
.s13-branch-sub>b{font-size:12px;color:#60465a}
.s13-staff{display:grid;gap:6px;max-height:320px;overflow:auto}
.s13-staff .s13-person{font-size:12px}
.s13-command{background:#261728;color:#fff;border-radius:12px;padding:16px;overflow-wrap:anywhere;margin:16px 0;font-family:monospace}
#s13-print{display:none}
@media(max-width:720px){.s13-info{grid-template-columns:repeat(2,minmax(0,1fr))}.s13-branches{grid-template-columns:1fr}.s13-check{align-items:flex-start}}
@media print{
 body.s13-printmode{background:#fff!important;color:#111!important}
 body.s13-printmode> :not(#s13-print){display:none!important}
 body.s13-printmode #s13-print{display:block!important}
 .s13-certificate{max-width:800px;margin:35px auto;font-family:Tahoma,Arial,sans-serif;direction:rtl;line-height:1.75}
 .s13-certificate h1,.s13-certificate h2{text-align:center;color:#a81656}
 .s13-certificate>img{display:block;margin:0 auto}
 .s13-certificate table{border-collapse:collapse;width:100%}
 .s13-certificate th,.s13-certificate td{border:1px solid #bba8b1;padding:8px;text-align:right}
 .s13-stamps{margin-top:55px;display:flex;justify-content:space-between}
 .certificate-warning{padding:10px;border:1px solid #aaa;font-size:12px}
 .s13-org{break-inside:avoid}
 .sidebar,.nav-mobile,.topbar,.intro .button{display:none!important}
 .main{width:100%!important;margin:0!important;padding:0!important}
}
