@font-face{font-family:LocalArabic;src:local('Segoe UI')}
*{box-sizing:border-box}
body{margin:0;background:#f3f7fd;color:#183b58;font-family:LocalArabic,Tahoma,Arial,sans-serif;font-size:14px;line-height:1.7}
button,input,textarea,select{font:inherit}
button,a,input,select,textarea{outline-offset:4px}
button,a{touch-action:manipulation}
button{cursor:pointer}
button:disabled{opacity:.55;cursor:wait}
a{color:#087b98;text-decoration:none}
h1,h2,h3,h4,p{margin:0}
h1{font-size:28px;line-height:1.5;letter-spacing:-.7px}
h2{font-size:20px}
h3{font-size:16px}
small,.muted{color:#60758b}
small{font-size:12px}
.boot{padding:90px;text-align:center}
.icon{width:20px;height:20px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:middle}
.layout{display:grid;grid-template-columns:258px minmax(0,1fr);min-height:100vh}
.sidebar{background:linear-gradient(165deg,#155aaa 0%,#104684 55%,#123d70 100%);color:#d5e5fa;padding:26px 21px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;z-index:30;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#5d91c7 transparent}
.brand{display:flex;gap:13px;align-items:center;color:#fff;margin:0 3px 26px;flex-shrink:0}
.brand img{width:64px;height:76px;object-fit:contain;object-position:center;background:#fff;padding:6px;border-radius:12px;flex-shrink:0;box-shadow:0 4px 18px #0a31502b}
.brand b{font-size:27px;letter-spacing:-1px}
.brand small{display:block;font-size:10px;color:#d6e6fa;letter-spacing:.1px;line-height:1.8}
.nav-label{font-size:10px;letter-spacing:.7px;color:#bdd6f3;margin:17px 14px 10px}
.nav-item{display:flex;align-items:center;gap:12px;color:#e0ecfb;padding:12px 14px;border-radius:9px;margin:4px 0;font-size:14px;font-weight:600}
.nav-item:hover{background:#ffffff17;color:#fff}
.nav-item.active{background:#ffffff22;color:#fff;box-shadow:inset -3px 0 #ffc45b}
.nav-item.active .icon{color:#ffd174}
.nav-item .count{margin-inline-start:auto;font-size:11px;background:#ffffff12;padding:0 7px;border-radius:5px}
.sidebar-bottom{margin-top:auto;padding-top:24px}
.secure-note{border:1px solid #6ca3dc70;border-radius:12px;padding:14px;font-size:12px;line-height:1.9;color:#d6e7fc}
.secure-note .icon{color:#ffd174;margin-bottom:7px}
.secure-note strong{display:block;color:#fff}
.user-card{display:flex;align-items:center;gap:10px;margin-top:24px;padding-top:20px;border-top:1px solid #78a7dc55}
.avatar{width:37px;height:37px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#e5eeeb;color:#397469;font-weight:700}
.user-card .avatar{background:#fff1d0;color:#8c5b00}
.user-card b{color:#fff;font-size:12px}
.user-card small{color:#d5e6fb;display:block;font-size:10px}
.logout{border:0;background:none;color:#d5e6fb;margin-inline-start:auto;padding:6px}
.workspace{min-width:0}
.topbar{height:86px;background:#fff;border-bottom:1px solid #e4eaeb;padding:0 38px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.breadcrumbs{color:#61788e;font-size:12px;display:flex;gap:10px;align-items:center}
.breadcrumbs strong{color:#24435e;font-weight:500}
.top-actions{display:flex;gap:14px;align-items:center}
.date{font-size:12px;color:#5a728b;display:flex;align-items:center;gap:8px}
.online{font-size:11px;color:#08795e;border:1px solid #b6e8d8;padding:4px 11px;border-radius:6px;background:#ecfbf5}
.online:before{content:'';display:inline-block;width:6px;height:6px;background:#08a57c;border-radius:50%;margin-inline-end:6px}
.menu-btn{display:none}
.main{padding:31px 38px 50px;max-width:1800px;margin:auto}
.page-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:26px}
.eyebrow{color:#587692;font-size:11px;margin-bottom:3px;letter-spacing:.6px}
.page-heading p{font-size:13px;color:#5f768c;margin-top:5px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #dce5e5;background:#fff;color:#39535b;border-radius:8px;padding:10px 17px;white-space:nowrap;font-weight:600;font-size:12px;min-height:41px}
.button:hover{background:#eef6ff;border-color:#bdcfe6}
.button.primary{background:#087e99;border-color:#087e99;color:#fff;box-shadow:0 4px 10px #087e9926}
.button.primary:hover{background:#066b84;border-color:#066b84}
.button.dark{background:#185ba5;border-color:#185ba5;color:#fff}
.button.danger{color:#b13c45;border-color:#efc6cc}
.button.small{padding:5px 10px;font-size:11px;min-height:31px}
.button .icon{width:17px;height:17px}
.button.ghost{border-color:transparent;background:transparent}
.actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.welcome{background:linear-gradient(115deg,#08738f 0%,#087694 32%,#1459ad 100%);padding:27px 31px;border-radius:14px;display:flex;justify-content:space-between;gap:30px;color:#fff;margin-bottom:25px;position:relative;overflow:hidden}
.welcome:after{content:'';position:absolute;width:240px;height:240px;border:1px solid #ffffff12;border-radius:50%;left:90px;top:-130px;box-shadow:0 0 0 35px #ffffff03,0 0 0 70px #ffffff03;pointer-events:none}
.welcome h2{font-size:23px;margin-bottom:6px}
 .welcome p{font-size:13px;color:#fff;max-width:650px}
.welcome .eyebrow{color:#fff1cc;letter-spacing:1px;font-size:10px;margin-bottom:10px}
.welcome-side{display:flex;align-items:center;justify-content:center;min-width:100px;position:relative;z-index:1}
.welcome-side .icon{width:66px;height:66px;color:#fff1cc;stroke-width:.9}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:26px}
.stat{background:#fff;border:1px solid #dbe6f5;border-radius:12px;padding:21px 22px;position:relative;min-width:0;box-shadow:0 4px 16px #22486f06}
.stat-head{display:flex;justify-content:space-between;align-items:center;color:#5c758c;font-size:12px;margin-bottom:18px;gap:7px}
.stat-icon{width:34px;height:34px;background:#e5f4ff;color:#176cc1;display:grid;place-items:center;border-radius:9px}
.stat:nth-child(2) .stat-icon{background:#fff1ce;color:#8c6200}
.stat:nth-child(3) .stat-icon{background:#e7f7f4;color:#087b70}
.stat:nth-child(4){border-color:#b7e5df;background:#f0fcf9}
.stat:nth-child(4) .stat-icon{background:#c9f2e9;color:#08715b}
.stat-value{display:flex;gap:7px;align-items:baseline;flex-wrap:wrap;font-size:25px;font-weight:700;direction:rtl;line-height:1.4;font-variant-numeric:tabular-nums;letter-spacing:-.6px}
.stat-value small{font-size:10px;font-weight:400;letter-spacing:0}
.stat-foot{font-size:10px;color:#617c83;margin-top:10px}
.grid-two{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(280px,1fr);gap:22px}
.panel{background:#fff;border:1px solid #dce7f3;border-radius:12px;overflow:hidden;margin-bottom:22px}
.panel-head{padding:20px 23px;border-bottom:1px solid #eef1f1;display:flex;align-items:center;justify-content:space-between;gap:12px}
.panel-head p{font-size:11px;color:#60778e;margin-top:3px}
.panel-body{padding:23px}
.panel-head h2,.panel-head h3{font-size:15px}
.filters{display:flex;gap:12px;flex-wrap:wrap;padding:18px 23px;border-bottom:1px solid #edf1f1}
.search{position:relative;flex:1;min-width:200px}
.search .icon{position:absolute;right:12px;top:12px;color:#65809a;width:17px;height:17px}
.search input{padding-inline-start:39px!important}
.filters select{max-width:170px}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;text-align:right;white-space:nowrap}
th{font-size:11px;font-weight:500;color:#516e89;background:#f3f8fe;padding:14px 20px;border-bottom:1px solid #e9eeee}
td{padding:17px 20px;font-size:12px;border-bottom:1px solid #eef2f2}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover{background:#f6faff}
.td-main{font-weight:600;color:#274b69}
.td-sub{font-size:10px;color:#647d93;margin-top:4px;max-width:260px;overflow:hidden;text-overflow:ellipsis}
.num{font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:isolate;display:inline-block;font-family:LocalArabic,Tahoma,sans-serif}
.code{font-size:11px;color:#607a93}
.tag{font-size:10px;border-radius:5px;padding:4px 9px;display:inline-flex;gap:5px;align-items:center;background:#e4f8ef;color:#176f52}
.tag.active:before,.tag.approved:before{content:'';width:5px;height:5px;border-radius:50%;background:#139a68}
.tag.draft,.tag.suspended{background:#fff3d8;color:#815b0e}
.tag.void,.tag.archived{background:#fff0f1;color:#ad3b4b}
.tag.completed{background:#edf0ff;color:#525eac}
.empty{text-align:center;padding:45px 25px;color:#647b90}
.empty .empty-icon{margin:0 auto 16px;width:65px;height:65px;border:1px solid #e4ece9;border-radius:18px;background:#f4f8f6;display:grid;place-items:center;color:#207f9f}
.empty .icon{width:29px;height:29px;stroke-width:1.3}
.empty h3{color:#3c5d77;font-weight:600;font-size:15px;margin-bottom:6px}
.empty p{font-size:12px;max-width:370px;margin:0 auto 18px}
.quick-item{display:flex;gap:13px;align-items:center;padding:17px 22px;border-bottom:1px solid #f0f3f2}
.quick-item:last-child{border:0}
.quick-icon{width:38px;height:38px;border-radius:9px;display:grid;place-items:center;background:#eaf4ff;color:#2572be}
.quick-item b{font-size:12px;color:#32566f}
.quick-item p{font-size:10px;color:#607b92}
.quick-item>.icon{margin-inline-start:auto;color:#b4c0c3;width:14px}
.info-callout{border:1px solid #c6e6f4;border-radius:10px;background:#f0faff;padding:17px 20px;display:flex;align-items:flex-start;gap:11px;color:#466f87;font-size:12px;margin-bottom:20px}
.info-callout .icon{color:#1184a3;flex-shrink:0;margin-top:3px}
.info-callout b{color:#196484;display:block;margin-bottom:3px}
.info-callout.warning{background:#fffaf0;border-color:#eee1c1;color:#83672d}
.info-callout.warning b{color:#805e16}
.footer{margin-top:24px;display:flex;flex-wrap:wrap;justify-content:space-between;font-size:10px;color:#637c92;gap:8px 16px}
.tabs{display:flex;gap:22px;border-bottom:1px solid #dfe7e7;overflow:auto;margin-bottom:24px;white-space:nowrap}
.tab{border:0;border-bottom:2px solid transparent;background:transparent;color:#607b92;font-size:12px;padding:13px 2px;margin-bottom:-1px}
.tab.active{border-bottom-color:#087e99;color:#08728c;font-weight:700}
.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 30px}
.detail-grid dt{font-size:11px;color:#637c92}
.detail-grid dd{margin:4px 0 0;color:#2e4f6c;font-size:13px;overflow-wrap:anywhere}
.detail-grid .full{grid-column:1/-1}
.balance-row{display:flex;justify-content:space-between;gap:20px;padding:13px 0;border-bottom:1px solid #eef2ef;font-size:12px}
.balance-row:last-child{border-bottom:0;font-size:16px;font-weight:700;color:#087a68}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 20px}
.field{display:flex;flex-direction:column;gap:7px}
.field>span,.field>label{font-size:12px;font-weight:600;color:#456680}
.field input,.field textarea,.field select,input,select,textarea{border:1px solid #dce5e5;background:#fff;color:#2c4c67;border-radius:7px;padding:10px 12px;min-width:0;width:100%;min-height:42px}
.field small{font-weight:400;font-size:10px}
.field textarea{resize:vertical;min-height:80px}
.full{grid-column:1/-1}
.form-section{grid-column:1/-1;border-bottom:1px solid #e7ecec;padding-bottom:8px;margin-top:5px;font-size:13px;font-weight:700;color:#176a8d}
.checkbox{display:flex;align-items:center;gap:9px;font-size:12px;color:#476d80;cursor:pointer}
.checkbox input{width:17px;height:17px;min-height:0;accent-color:#087e99;margin:0}
.checkbox-card{border:1px solid #e2e9e6;border-radius:9px;padding:13px}
.checkbox-card:has(input:checked){border-color:#72bdcf;background:#effafd}
.check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.error{color:#af3344;background:#fff2f4;border:1px solid #f0dede;border-radius:7px;padding:10px 14px;font-size:12px;margin-bottom:15px}
.error:empty{display:none}
.success{color:#157c61}
dialog{border:1px solid #dce5e2;border-radius:14px;padding:0;max-width:850px;width:calc(100% - 32px);max-height:92vh;box-shadow:0 25px 100px #0b303b33;color:inherit}
dialog::backdrop{background:#142c3c66;backdrop-filter:blur(3px)}
.modal-head{padding:20px 25px;border-bottom:1px solid #e7eceb;display:flex;justify-content:space-between;align-items:center;background:#fff;position:sticky;top:0;z-index:2}
.modal-head h2{font-size:18px}
.modal-head p{font-size:11px;color:#657c92}
.modal-body{padding:24px 25px}
.modal-actions{padding:17px 25px;border-top:1px solid #e7eeeb;display:flex;justify-content:flex-start;gap:10px;background:#f6faff;position:sticky;bottom:0}
.close{background:none;border:0;font-size:24px;color:#5b7b96;line-height:1;padding:6px}
.qr-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:30px}
.qr-preview{border:1px solid #e2e8e5;border-radius:12px;background:#f6faff;padding:23px;text-align:center;align-self:start}
.qr-preview img{width:210px;max-width:100%;display:block;margin:0 auto 16px;border:1px solid #e7ece8;border-radius:9px}
.qr-preview h3{font-size:14px}
.qr-preview p{font-size:11px;color:#5c7c8c;margin:8px 0 15px}
.qr-placeholder{border:2px dashed #dde8e2;border-radius:10px;padding:36px;margin-bottom:20px;color:#547f94}
.qr-placeholder .icon{width:75px;height:75px;stroke-width:.7}
.qr-link{direction:ltr;overflow-wrap:anywhere;font-size:9px;line-height:1.6;background:#eaf4fa;padding:9px;border-radius:6px;margin:13px 0}
.auth-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}
.auth-art{background:linear-gradient(155deg,#165caf 0%,#08738f 100%);padding:70px;color:white;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}
.auth-art:after{content:'';width:460px;height:460px;border:1px solid #65817a44;border-radius:50%;position:absolute;bottom:-220px;right:-170px;box-shadow:0 0 0 60px #496e6512,0 0 0 120px #496e6512}
.auth-art .brand{margin:0}
.auth-art h1{font-size:40px;max-width:450px;line-height:1.65;font-weight:600;margin-bottom:20px}
.auth-art p{color:#fff;max-width:420px;font-size:15px;line-height:2}
.auth-art .eyebrow{color:#fff1cc;margin-bottom:17px}
.auth-art small{color:#fff}
.auth-form-wrap{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 45px;background:linear-gradient(140deg,#fff 45%,#f1f8ff)}
.auth-form{width:100%;max-width:410px}
.auth-form h2{font-size:26px;margin-bottom:8px}
.auth-form>p{color:#60788f;font-size:13px;margin-bottom:29px}
.auth-form .field{margin-bottom:18px}
.auth-form .button{width:100%;margin-top:8px}
.auth-form>small{display:block;margin-top:19px;font-size:11px;line-height:1.9;color:#5e7990}
.auth-form .mark{display:block;width:114px;height:130px;object-fit:contain;background:#fff;padding:8px;border:1px solid #e3ebf5;border-radius:14px;margin-bottom:20px;box-shadow:0 8px 24px #155baa0d}
#toast{position:fixed;bottom:28px;left:28px;max-width:430px;background:#0b7b68;color:white;border-radius:10px;padding:13px 22px;box-shadow:0 8px 24px #163e3622;font-size:13px;z-index:100;display:none}
#toast.show{display:block}
#toast.bad{background:#ac3e51}
.public-shell{max-width:1000px;margin:auto;padding:28px 22px}
.public-brand{display:flex;gap:14px;align-items:center;border-bottom:1px solid #dfe8e5;padding-bottom:22px;margin-bottom:25px}
.public-brand img{width:68px;height:78px;object-fit:contain;background:#fff;padding:5px;border:1px solid #e1e9f3;border-radius:12px;flex-shrink:0}
.public-brand small{display:block}
.public-shell .page-heading{margin-bottom:22px}
.audit-details{max-width:580px;white-space:normal;font-size:11px;color:#657e90}
.audit-details summary{cursor:pointer}
.audit-details pre{white-space:pre-wrap;direction:rtl;overflow-wrap:anywhere}
.certificate{background:white;color:#17282c;padding:30px 35px;border:1px solid #dce4e3;max-width:1000px;margin:20px auto;font-size:12px;line-height:1.65}
.cert-header{display:flex;justify-content:space-between;align-items:center;text-align:center;padding-bottom:18px;border-bottom:3px solid #294e53;margin-bottom:13px;gap:15px}
.cert-header h1{font-size:21px}
.cert-header h2{font-size:12px}
.cert-header .org{font-weight:700;font-size:16px;max-width:230px}
.cert-meta{display:flex;justify-content:space-between;font-size:10px;margin-bottom:15px}
.certificate table{white-space:normal;table-layout:fixed;margin-bottom:12px}
.certificate th,.certificate td{padding:5px 9px;border:1px solid #becbca;font-size:11px;overflow-wrap:anywhere}
.certificate th{background:#e9efec;color:#253f43;font-weight:700}
.certificate h3{font-size:12px;background:#dde7e3;padding:5px 10px;border:1px solid #becbca;border-bottom:0}
.cert-split{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.cert-text{font-size:12px;margin:17px 0;line-height:2.1}
.cert-signatures{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #bac9c6;margin-top:17px}
.cert-signatures>div{padding:10px 12px;border-inline-end:1px solid #bac9c6}
.cert-signatures>div:last-child{border:0}
.cert-signatures b{display:block;text-align:center;background:#edf2ef;margin:-10px -12px 8px;padding:5px}
.cert-signatures p{font-size:11px;margin:7px 0}
.cert-footer{margin-top:14px;display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:8px;color:#7e9594;overflow-wrap:anywhere}
.cert-qr{width:78px;height:78px}
.cert-void{border:2px solid #bd5d5d;color:#ad4242;padding:12px;text-align:center;margin-bottom:15px;font-size:20px}
.help-list{line-height:2.2;font-size:13px;padding-inline-start:20px;color:#53738b}
.loading{opacity:.5;pointer-events:none}
.no-wrap{white-space:nowrap}
.count-pill{display:inline-block;background:#eaf3fc;color:#55768f;padding:1px 8px;border-radius:5px;font-size:10px;margin-inline-start:5px}
.text-btn{border:0;background:none;color:#087a98;font:inherit;cursor:pointer;padding:0}
.radio-row{display:flex;gap:18px;align-items:center}
.chart-track{background:#ecf1ef;height:7px;border-radius:5px;overflow:hidden;margin-top:9px}
.chart-track progress{width:100%;height:100%;accent-color:#087f9a}
.report-table td{font-size:11px}
.export-actions{margin-bottom:15px}
.print-hint{font-size:11px;color:#60798e}

/* Shared identity and readable interactions. */
:root{--focus:#087e99;--motion-ease:cubic-bezier(.2,.75,.25,1)}

:focus-visible{outline:3px solid var(--focus);outline-offset:3px}

.sidebar :focus-visible,.auth-art :focus-visible{outline-color:#ffd174}

input:focus,textarea:focus,select:focus{border-color:#168aa8;box-shadow:0 0 0 3px #0d8ca018}

input::placeholder,textarea::placeholder{color:#73869a;opacity:1}

.button,.nav-item,.quick-item,.tab,.text-btn,.logout{transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease}

.button:active{transform:translateY(0)}

.secure-note{background:#ffffff08}

.auth-art>*{position:relative;z-index:1}

.auth-art:after{pointer-events:none}

.auth-art .brand img{width:76px;height:88px;padding:7px}

.copyright{width:100%;margin:24px 0 0;padding-top:15px;border-top:1px solid #dce6f2;text-align:center;font-size:10px;font-weight:400;line-height:1.9;color:#526e88;overflow-wrap:anywhere}

.footer .copyright{margin-top:8px}

.auth-form-wrap>.copyright{max-width:410px;margin-top:28px}

.cert-issuer{display:flex;align-items:center;gap:10px;flex-shrink:0}

.cert-logo{width:58px;height:64px;object-fit:contain;background:#fff;flex-shrink:0}

.cert-copyright{margin-top:9px;padding-top:6px;border-top:1px solid #dbe3e7;color:#526675;font-size:8px;font-weight:400;text-align:center;line-height:1.7;break-inside:avoid}

/* Comfortable Arabic reading and clear controls on every screen. */
@media screen{
body{font-size:15px;color:#183750}
small,.muted{color:#4e657a}
.page-heading p,.panel-head p,.modal-head p,.auth-form>p{color:#4e657a;font-size:13px;line-height:1.9}
.page-heading h1{font-weight:700;letter-spacing:-.35px}
.eyebrow{color:#466580;font-size:12px;letter-spacing:0}
.panel{border-color:#d2dfec;box-shadow:0 4px 20px #244b7410}
.panel-head{background:linear-gradient(110deg,#fff,#f5faff);border-bottom-color:#dce7f1}
.panel-head h2,.panel-head h3{font-size:17px;color:#214761}
.button{font-size:13px;min-height:44px;border-color:#bdcddd;border-radius:9px}
.button.small{font-size:12px;min-height:36px}
.button.primary{background:linear-gradient(120deg,#087b96,#086681);border-color:#08758d;box-shadow:0 4px 12px #087e9925}
.button.primary:hover{background:linear-gradient(120deg,#086e87,#075b73)}
.button.dark{background:#195da9}
.button:disabled{opacity:.65}
.button:active:not(:disabled){transform:scale(.98)}
.field{gap:8px}
.field>span,.field>label{font-size:14px;color:#274b65;line-height:1.7}
.field small{font-size:12px;color:#50697e;line-height:1.8}
input,select,textarea,.field input,.field select,.field textarea{font-size:15px;min-height:46px;border-color:#b5c8d9;color:#173a55;transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease}
input::placeholder,textarea::placeholder{color:#63778a}
input:hover,select:hover,textarea:hover{border-color:#819fb9}
input:focus,select:focus,textarea:focus{border-color:#087c9a;background-color:#fbfeff;box-shadow:0 0 0 3px #0789ac20}
input[readonly],textarea[readonly]{background:#edf4fa;border-color:#c5d5e4;color:#34556e}
.field input[type=date],.field input[type=number]{direction:ltr;text-align:right;font-variant-numeric:tabular-nums}
.form-section{font-size:15px;color:#165879;border-bottom-color:#cbdce9;padding-bottom:11px;margin-top:12px}
.checkbox{font-size:14px;color:#33556d;line-height:1.8}
.checkbox-card{border-color:#c6d6e4;padding:14px}
.checkbox-card:has(input:checked){border-color:#16879e;background:#effbfc;box-shadow:inset -3px 0 #16879e}
.tab{font-size:14px;padding:14px 5px;color:#4b657b;border-bottom-width:3px}
.tab.active{color:#086a82}
.table-wrap th{font-size:12px;color:#3c5972;font-weight:700;background:#edf5fd;border-bottom-color:#cfdeec}
.table-wrap td{font-size:13px;color:#284a64;line-height:1.85}
.td-sub{font-size:12px;color:#526e85}
.code{font-size:12px;color:#48637b}
.tag{font-size:12px;font-weight:600;padding:4px 10px}
.detail-grid dt{font-size:13px;color:#536c81}
.detail-grid dd{font-size:15px;line-height:1.85;color:#1f405a}
.balance-row{font-size:14px}
.balance-row:last-child{font-size:18px}
.stat-head{font-size:13px;color:#4d6880;margin-bottom:15px}
.stat-value{font-size:27px;letter-spacing:0;color:#173e5d}
.stat-value small{font-size:11px;color:#526c7e}
.stat-foot{font-size:12px;color:#506b7f;line-height:1.8}
.stat:nth-child(4) .stat-value{color:#08674f}
.quick-item b{font-size:14px;color:#244962}
.quick-item p{font-size:12px;color:#506b82}
.info-callout{font-size:14px;line-height:1.85;color:#365d75;border-color:#acd6e9}
.info-callout b{color:#145371}
.info-callout.warning{color:#72500b;border-color:#e6cf94}
.empty h3{font-size:17px;color:#31536c}
.empty p{font-size:14px;color:#526b80;line-height:1.9}
.error{font-size:14px;line-height:1.8;border-inline-start:4px solid #b2324b}
.modal-actions{gap:12px;flex-wrap:wrap;border-top-color:#cadce9}
.modal-head p{margin-top:4px}
.audit-details{font-size:12px;color:#4e687e}
.qr-preview p,.print-hint{font-size:12px;color:#49657b}
.qr-link{font-size:11px;color:#2c4e69}
.help-list{font-size:14px;color:#3e607b}
.footer{color:#4f6880}
}

/* One continuous project journey, from initial entry to the certificate. */
.project-wizard{--wizard-accent:#087b96;--wizard-soft:#e8f8fc;--wizard-border:#d0e0ed}
.wizard-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}
.wizard-intro h1,.wizard-intro h2{color:#173f5d}
.wizard-intro p{max-width:780px;color:#4d687f;font-size:14px;line-height:1.9;margin-top:6px}
.wizard-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0 0 18px;padding:0;list-style:none;counter-reset:wizard-step}
.wizard-step{position:relative;display:flex;align-items:center;gap:10px;padding:15px 13px;border:1px solid #cbdbe9;border-radius:12px;background:#fff;color:#506b81;min-width:0;transition:border-color .25s ease,background-color .25s ease,box-shadow .25s ease,transform .25s ease}
.wizard-step-number{width:34px;height:34px;border-radius:50%;flex:0 0 34px;display:grid;place-items:center;background:#eaf1f7;color:#4a667d;font-size:15px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.wizard-step-number .icon{width:18px;height:18px}
.wizard-step-label{font-size:13px;font-weight:700;line-height:1.8;overflow-wrap:anywhere}
.wizard-step-copy{min-width:0}
.wizard-step-copy small{display:block;font-size:11px;margin-top:1px;color:#587185}
.wizard-step[aria-current=step]{background:linear-gradient(130deg,#effbff,#e7f7fd);border-color:#087b96;box-shadow:0 4px 14px #087b9618,inset 0 -3px #087b96;color:#075e77}
.wizard-step[aria-current=step] .wizard-step-number{background:linear-gradient(135deg,#0a91ac,#08718d);color:#fff;box-shadow:0 3px 9px #087b9626}
.wizard-step[aria-current=step] .wizard-step-copy small{color:#176780}
.wizard-step.done{border-color:#94d3c2;background:#f1fcf7;color:#176b50}
.wizard-step.done .wizard-step-number{background:#d3f3e7;color:#096c49}
.wizard-progress{display:block;width:100%;height:6px;border:0;border-radius:9px;overflow:hidden;background:#dce8f0;margin:0 0 22px;accent-color:#0c8f98}
.wizard-progress::-webkit-progress-bar{background:#dce8f0;border-radius:9px}
.wizard-progress::-webkit-progress-value{background:linear-gradient(90deg,#2cbea5,#087c9c);border-radius:9px;transition:width .35s var(--motion-ease)}
.wizard-progress::-moz-progress-bar{background:linear-gradient(90deg,#2cbea5,#087c9c);border-radius:9px}
.wizard-progress>span{display:block;height:100%;background:linear-gradient(90deg,#2cbea5,#087c9c);border-radius:9px;transition:width .35s var(--motion-ease)}
.wizard-project-summary{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 20px;padding:17px 21px;margin-bottom:22px;border:1px solid #9ad7c8;border-inline-start:4px solid #0b9272;border-radius:11px;background:linear-gradient(110deg,#fff,#edfbf6);color:#245b4c;font-size:14px}
.wizard-project-summary>div{min-width:0}
.wizard-project-summary strong,.wizard-project-summary b{font-weight:700;overflow-wrap:anywhere}
.wizard-project-summary .num,.wizard-project-summary .code{font-size:14px;font-weight:700;letter-spacing:.5px;color:#075d4d;background:#d8f3e9;border:1px solid #aadccb;padding:3px 10px;border-radius:6px}
.wizard-project-summary small{font-size:12px;color:#3e6d5f;line-height:1.8}
.wizard-saved-status{display:inline-flex;align-items:center;gap:7px;color:#087255;font-size:12px;font-weight:600}
.wizard-saved-status .icon{width:17px;height:17px}
.wizard-panel{background:#fff;border:1px solid var(--wizard-border);border-radius:14px;overflow:hidden;box-shadow:0 5px 22px #264b7110;margin-bottom:20px}
.wizard-panel>.panel-body{padding:27px}
.wizard-panel .panel-head{padding:22px 27px}
.wizard-panel .form-grid{gap:22px 24px}
.wizard-panel .form-section:first-child{margin-top:0}
.wizard-panel h2{font-size:21px}
.wizard-panel .panel{box-shadow:none}
.wizard-step-content{min-width:0}
.wizard-step-content>p{color:#506b80;font-size:14px;line-height:1.9;margin-bottom:20px}
.wizard-finance-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px;padding:7px;background:#edf4fa;border:1px solid #d4e3ef;border-radius:11px}
.wizard-finance-tabs .tab{flex:1;min-width:110px;white-space:nowrap;padding:11px 16px;border:1px solid transparent;border-radius:8px;margin:0;font-weight:600;color:#375975;transition:background-color .2s ease,color .2s ease,box-shadow .2s ease}
.wizard-finance-tabs .tab.active{background:#fff;color:#086e87;border-color:#a5cddd;box-shadow:0 2px 5px #173f5d0d}
.wizard-finance-tabs .tab:hover{background:#fff}
.wizard-actions{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px 20px;padding:19px 24px;background:#f2f8fd;border:1px solid #c8ddeb;border-radius:12px;margin:22px 0 0;box-shadow:0 4px 15px #244b7408}
.wizard-actions .actions{gap:10px}
.wizard-actions>.button.primary{margin-inline-start:auto}
.wizard-actions .button{min-height:46px;padding:11px 20px}
.wizard-actions p,.wizard-actions small{color:#496b81;font-size:12px;line-height:1.8}
.wizard-checklist{padding:0;margin:0;list-style:none;display:grid;gap:12px}
.wizard-checklist li{display:flex;align-items:flex-start;gap:10px;padding:14px 16px;border:1px solid #cfe3ec;background:#f5fbff;border-radius:9px;color:#2c536d;font-size:14px;line-height:1.9}
.wizard-checklist li>.icon{color:#087b79;margin-top:3px}
.wizard-checklist strong,.wizard-checklist b{color:#244a65}
.wizard-checklist small{display:block;color:#4e6c81;font-size:12px}

@media(max-width:1200px){.wizard-steps{gap:8px}
.wizard-step{padding:13px 10px;gap:8px;align-items:flex-start}
.wizard-step-label{font-size:12px}
.wizard-step-number{width:30px;height:30px;flex-basis:30px;font-size:13px}
}
@media(max-width:900px){.wizard-step{flex-direction:column;align-items:center;text-align:center;gap:8px}
.wizard-step-copy small{font-size:10px}
}
@media(max-width:600px){.wizard-intro{display:block;margin-bottom:18px}
.wizard-steps{gap:6px}
.wizard-step{padding:10px 4px;border-radius:8px;gap:6px}
.wizard-step-label{font-size:11px;line-height:1.65}
.wizard-step-number{width:27px;height:27px;flex-basis:27px;font-size:12px}
.wizard-step-copy small{display:none}
.wizard-project-summary{padding:14px 16px;gap:10px;align-items:flex-start}
.wizard-project-summary .num,.wizard-project-summary .code{font-size:13px}
.wizard-panel>.panel-body,.wizard-panel .panel-head{padding:20px 17px}
.wizard-panel h2{font-size:18px}
.wizard-panel .form-grid{gap:20px}
.wizard-finance-tabs{gap:5px;padding:5px}
.wizard-finance-tabs .tab{min-width:calc(50% - 5px);padding:9px 10px;font-size:13px}
.wizard-actions{padding:15px;gap:12px}
.wizard-actions .button{white-space:normal;min-height:46px;flex:1;font-size:13px;padding:10px 14px}
.wizard-actions>.actions{width:100%;flex-wrap:wrap}
.wizard-actions>small,.wizard-actions>p{width:100%}
.wizard-checklist li{padding:13px;font-size:13px}
}

@keyframes page-slide{from{opacity:0;transform:translateY(12px)}
to{opacity:1;transform:translateY(0)}
}

@keyframes auth-slide{from{opacity:0;transform:translateX(18px)}
to{opacity:1;transform:translateX(0)}
}

@keyframes dialog-slide{from{opacity:0;transform:translateY(18px)}
to{opacity:1;transform:translateY(0)}
}

.main,.public-shell{animation:page-slide .32s var(--motion-ease)}

.auth-form,.auth-art>div{animation:auth-slide .45s var(--motion-ease)}

dialog[open]{animation:dialog-slide .24s var(--motion-ease)}

#toast.show{animation:page-slide .22s var(--motion-ease)}

@keyframes card-arrive{from{opacity:0;transform:translateY(14px)}
to{opacity:1;transform:translateY(0)}
}

@keyframes wizard-arrive{from{opacity:0;transform:translateX(-16px)}
to{opacity:1;transform:translateX(0)}
}

@media screen and (prefers-reduced-motion:no-preference){
.stats .stat{animation:card-arrive .42s var(--motion-ease) backwards}
.stats .stat:nth-child(2){animation-delay:.06s}
.stats .stat:nth-child(3){animation-delay:.12s}
.stats .stat:nth-child(4){animation-delay:.18s}
.welcome{animation:card-arrive .4s var(--motion-ease) backwards}
.grid-two>.panel,.grid-two>div>.panel:first-child{animation:card-arrive .42s var(--motion-ease) backwards;animation-delay:.1s}
.wizard-step-content{animation:wizard-arrive .3s var(--motion-ease) backwards}
.wizard-project-summary{animation:card-arrive .32s var(--motion-ease) backwards}
.wizard-step[aria-current=step] .wizard-step-number{animation:card-arrive .28s var(--motion-ease) backwards}
}

@media(hover:hover) and (pointer:fine){.button:not(:disabled):hover{transform:translateY(-1px)}
.nav-item:hover{transform:translateX(-2px)}
.quick-item:hover{background:#f1f8ff}
.stat{transition:transform .2s var(--motion-ease),box-shadow .2s ease,border-color .2s ease}
.stat:hover{transform:translateY(-3px);box-shadow:0 9px 23px #244b7417;border-color:#adcadf}
}

@media(min-width:1600px){.main{padding:38px 48px}
.stats{gap:23px}
.stat{padding:25px}
}

@media(max-width:1200px){.layout{grid-template-columns:220px minmax(0,1fr)}
.sidebar{padding:25px 14px}
.main{padding:26px}
.topbar{padding:0 26px}
.stats{gap:12px}
.stat{padding:17px}
.stat-value{font-size:22px}
.grid-two{grid-template-columns:1fr}
.qr-layout{grid-template-columns:240px 1fr}
}

@media(max-width:850px){.layout{display:block}
.sidebar{position:fixed;right:-270px;width:258px;transition:right .28s var(--motion-ease);height:100dvh;box-shadow:none}
.sidebar.open{right:0;box-shadow:-20px 0 60px #16323a33}
.topbar{height:68px;padding:0 19px}
.menu-btn{display:inline-flex;border:0;background:transparent;color:#25679b;padding:4px}
.main{padding:22px 19px}
.date{display:none}
.stats{grid-template-columns:repeat(2,minmax(0,1fr))}
.auth-art{padding:35px}
.auth-art h1{font-size:30px}
.auth-form-wrap{padding:30px}
.page-heading h1{font-size:24px}
.welcome{padding:25px}
.welcome h2{font-size:20px}
.welcome-side{min-width:65px}
.qr-layout{grid-template-columns:1fr}
.qr-preview{max-width:300px;width:100%;margin:auto}
.tabs{gap:18px}
.certificate{padding:20px}
.cert-split{gap:8px}
}

@media(max-width:600px){body{font-size:14px}
.top-actions{gap:5px}
.online{font-size:9px;padding:3px 6px}
.breadcrumbs{font-size:10px;gap:5px}
.page-heading{align-items:flex-start;flex-direction:column;gap:14px}
.page-heading>.actions{width:100%}
.page-heading h1{font-size:23px}
.page-heading p{font-size:13px}
.welcome-side{display:none}
.welcome{padding:24px 21px}
.welcome h2{font-size:20px}
.welcome p{font-size:13px}
.stat{padding:16px 14px}
.stat-head{font-size:12px;margin-bottom:13px}
.stat-icon{width:28px;height:28px}
.stat-icon .icon{width:15px;height:15px}
.stat-value{font-size:21px;letter-spacing:-.5px;gap:3px}
.stat-foot{font-size:11px}
.panel-head{padding:17px}
.filters{padding:15px;gap:8px}
.filters select{max-width:100%}
.search{min-width:100%}
.panel-body{padding:18px}
.form-grid,.detail-grid,.check-grid{grid-template-columns:1fr}
.full{grid-column:auto}
.form-section{grid-column:auto}
.modal-head,.modal-body,.modal-actions{padding:18px}
.modal-head h2{font-size:16px}
.auth-page{grid-template-columns:1fr}
.auth-art{display:none}
.auth-form-wrap{padding:35px 25px;min-height:100vh}
.footer{display:block}
.footer span{display:block}
.qr-layout{gap:20px}
td{padding:14px}
.public-shell{padding:20px 15px}
.certificate{overflow:auto;padding:15px;min-width:640px}
.certificate-scroll{overflow:auto}
.cert-header h1{font-size:17px}
.topbar .date{display:none}
.actions .button{font-size:12px;padding:8px 11px}
.balance-row{font-size:13px}
}

@media(max-width:600px){.auth-form .mark{width:102px;height:116px;margin-bottom:17px}
.public-brand{gap:12px}
.public-brand h2{font-size:18px}
.public-brand img{width:58px;height:68px}
.copyright{font-size:9px;margin-top:20px}
.auth-form-wrap>.copyright{margin-top:24px}
.sidebar .brand img{width:64px;height:76px}
#toast{left:16px;right:16px;bottom:16px;max-width:none}
}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

@page{size:A4;margin:12mm}

@media print{body{background:white;color:black}
.sidebar,.topbar,.page-heading,.tabs,.footer,.copyright,.no-print,dialog,#toast{display:none!important}
.layout,.workspace,.main,.public-shell{display:block!important;padding:0!important;margin:0!important;max-width:none!important}
.certificate{border:0;margin:0;padding:0;max-width:none;min-width:0;font-size:10px;overflow:visible}
.certificate-scroll{overflow:visible}
.certificate th,.certificate td{font-size:9px;padding:4px 6px}
.certificate table{margin-bottom:8px}
.cert-meta{margin-bottom:10px}
.cert-header{margin-bottom:10px;padding-bottom:12px}
.cert-header h1{font-size:18px}
.cert-header .org{font-size:12px}
.cert-logo{width:56px;height:64px}
.cert-copyright{font-size:7px;margin-top:6px;padding-top:5px}
.cert-signatures,.cert-text,.cert-footer,tr{break-inside:avoid}
.cert-text{font-size:10px;margin:10px 0}
.certificate h3{font-size:10px}
.cert-signatures p{font-size:9px;margin:5px 0}
.cert-footer{font-size:7px;margin-top:10px;break-after:avoid}
.panel{break-inside:avoid;box-shadow:none}
.stat{break-inside:avoid}
a{color:inherit}
.public-shell .info-callout{display:none}
.public-shell .stats{grid-template-columns:repeat(4,1fr)}
.public-shell .stat-value{font-size:17px}
*{-webkit-print-color-adjust:exact;print-color-adjust:exact}
*,*::before,*::after{animation:none!important;transition:none!important;transform:none!important;box-shadow:none!important}
}

