@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;450;500;600;700&display=swap');
:root{--navy:#122d3a;--green:#126a56;--mint:#e5f3ed;--gold:#bd9554;--ink:#19333c;--muted:#70818a;--border:#e2e9e9;--bg:#f4f7f7}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px 'IBM Plex Sans Arabic',Tahoma,Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button,input,select,textarea{border-radius:9px}button{border:1px solid var(--border);background:white;color:var(--ink);padding:9px 16px;font-weight:500}button:hover{background:#edf4f1}button.primary{background:var(--green);color:white;border-color:var(--green)}button.danger{color:#b54444}button.small{padding:5px 10px;font-size:12px}input,select,textarea{border:1px solid #d8e1e1;background:white;padding:10px 12px;color:var(--ink);min-width:0;width:100%}input:focus,select:focus,textarea:focus{outline:2px solid #70b5a4;outline-offset:1px}input[type=checkbox]{width:auto;accent-color:var(--green)}label{display:block;font-size:12px;color:#61757d;margin-bottom:6px}h1,h2,h3,p{margin-top:0}h1{font-size:29px;margin-bottom:6px;letter-spacing:-.6px}h2{font-size:18px;margin-bottom:6px}h3{font-size:15px}p{line-height:1.9}.muted{color:var(--muted)}.tiny{font-size:12px}.shell{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--navy);color:white;padding:29px 19px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;padding:0 10px 28px;border-bottom:1px solid #ffffff1a}.mark{height:43px;width:43px;display:grid;place-items:center;background:#d7b67c;color:#193640;border-radius:13px;font-size:26px;font-weight:700;transform:rotate(-7deg)}.brand strong{font-size:26px;line-height:1}.brand small{display:block;font-size:10px;letter-spacing:.6px;color:#a9bec4;margin-top:7px}.navlabel{font-size:10px;color:#89a4af;margin:27px 13px 12px}.nav{display:flex;flex-direction:column;gap:7px}.nav button{text-align:right;background:transparent;border:0;color:#b8cbd1;padding:12px 14px;display:flex;gap:12px;align-items:center}.nav button.active{background:#284651;color:white;box-shadow:inset -3px 0 #d8b478}.nav .icon{font-size:18px;width:20px}.sidebarfoot{margin-top:auto;border-top:1px solid #ffffff1a;padding:20px 8px 0;color:#9bb3bc;font-size:11px;line-height:1.9}.sidebarfoot b{color:#d8e5e8}.main{min-width:0}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--border);padding:0 34px;display:flex;align-items:center;justify-content:space-between;gap:18px}.breadcrumb{color:var(--muted);font-size:12px}.breadcrumb b{color:var(--ink);margin-right:10px}.profile{display:flex;gap:12px;align-items:center}.profile select{width:145px;border:0;background:#f3f6f5;padding:7px}.avatar{border-radius:50%;background:var(--mint);color:var(--green);width:35px;height:35px;display:grid;place-items:center;font-weight:bold}.content{padding:30px 34px 40px;max-width:1800px;margin:auto}.pagehead{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:25px}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.eyebrow{font-size:11px;letter-spacing:.5px;color:var(--green);margin-bottom:9px;font-weight:600}.pill{display:inline-flex;align-items:center;gap:5px;border-radius:6px;padding:4px 9px;background:var(--mint);color:var(--green);font-size:11px;white-space:nowrap}.pill.gold{background:#faf2e3;color:#987031}.pill.gray{background:#edf1f3;color:#667a82}.hero{background:var(--navy);color:white;border-radius:16px;padding:27px 30px;display:flex;justify-content:space-between;gap:24px;margin-bottom:22px;position:relative;overflow:hidden}.hero:after{content:'';position:absolute;width:200px;height:200px;border:35px solid #ffffff05;border-radius:50%;left:10px;top:-100px;pointer-events:none}.hero p{color:#b6cbd2;margin-bottom:0;max-width:590px;font-size:13px}.hero h2{font-size:24px;color:#fff}.hero-stat{border-right:1px solid #ffffff20;padding-right:32px;min-width:185px;align-self:center}.hero-stat strong{display:block;font-size:36px;font-weight:500;color:#e5c795}.hero-stat span{font-size:12px;color:#b6cbd2}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:22px}.stat{background:white;border:1px solid var(--border);border-radius:12px;padding:18px 20px}.stat-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px}.stat strong{display:block;font-size:27px;margin-top:7px;font-weight:500}.stat small{font-size:10px;color:var(--muted)}.card{background:white;border:1px solid var(--border);border-radius:13px;margin-bottom:20px;overflow:hidden}.cardhead{padding:19px 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);gap:14px}.cardhead p{margin:0;font-size:12px;color:var(--muted)}.cardbody{padding:22px}.toolbar{display:flex;gap:12px;padding:17px 22px;border-bottom:1px solid var(--border);align-items:center;flex-wrap:wrap}.search{max-width:350px;flex:1;min-width:160px}.toolbar select{width:160px}.segmented{display:flex;gap:3px;background:#eef3f2;padding:4px;border-radius:9px}.segmented button{border:0;background:transparent;padding:6px 18px;font-size:12px;color:var(--muted)}.segmented button.active{background:#fff;color:var(--green);box-shadow:0 2px 5px #122d3a0c}.tablewrap{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;text-align:right}th{background:#f8faf9;font-weight:500;color:#7a8b92;font-size:11px;padding:13px 18px;border-bottom:1px solid var(--border)}td{border-bottom:1px solid #edf1f1;padding:15px 18px;font-size:13px}tbody tr:hover{background:#fcfefd}td.name{font-weight:500;min-width:160px}td .sub{display:block;font-size:10px;color:#8c9a9e;margin-top:4px;font-weight:400}.num{font-variant-numeric:tabular-nums;direction:ltr;display:inline-block}.price{font-weight:600}.code{color:#758b93;font-family:Consolas,monospace;font-size:12px}.green{color:var(--green)}.tablefoot{display:flex;justify-content:space-between;padding:14px 22px;font-size:11px;color:var(--muted)}.notice{padding:12px 17px;background:#fff4dd;border:1px solid #ebd5a6;color:#8b6726;border-radius:10px;font-size:12px;display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.notice.blue{background:#eaf1f4;border-color:#d7e5eb;color:#476a7b}.grid2{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}.fields{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.fields.two{grid-template-columns:repeat(2,1fr)}.field.full{grid-column:1/-1}.summary{padding:23px}.summary h2{margin-bottom:24px}.sumrow{display:flex;justify-content:space-between;gap:15px;margin:14px 0;font-size:13px}.sumrow.total{border-top:1px dashed #d5dfdf;padding-top:20px;margin-top:22px;font-size:15px;align-items:center}.sumrow.total strong{font-size:25px;color:var(--green)}.summary .primary{width:100%;margin-top:15px}.summary p{font-size:11px;color:var(--muted);margin-bottom:0}.lineqty{width:80px;padding:7px}.lineoffer{width:155px;padding:7px;font-size:11px}.empty{padding:48px;text-align:center;color:var(--muted)}.empty span{font-size:30px;display:block;margin-bottom:12px}.section-title{font-size:11px;color:var(--green);font-weight:600;padding-bottom:10px;border-bottom:1px solid var(--border);margin:24px 0 15px}.formfooter{display:flex;gap:10px;margin-top:24px}.dialogback{position:fixed;inset:0;background:#0b273c66;z-index:30;display:grid;place-items:center;padding:24px;backdrop-filter:blur(3px)}.dialog{background:white;border-radius:16px;width:720px;max-width:100%;max-height:92vh;overflow:auto;box-shadow:0 25px 100px #09233133}.dialogheader{display:flex;justify-content:space-between;align-items:center;padding:19px 25px;border-bottom:1px solid var(--border)}.dialogheader h2{margin:0}.dialogbody{padding:22px 25px}.close{border:0;background:#f0f4f3;padding:5px 11px;font-size:20px}.footer{padding-top:18px;display:flex;justify-content:space-between;border-top:1px solid var(--border);color:#8b9ba1;font-size:10px}.tabsline{display:flex;gap:8px;margin-bottom:18px}.quote-paper{background:white;padding:32px;border-radius:12px;border:1px solid var(--border)}.quoteheader{display:flex;justify-content:space-between;gap:20px;border-bottom:3px solid var(--green);padding-bottom:20px;margin-bottom:20px}.quoteheader h1{color:var(--green)}.quotemeta{display:flex;justify-content:space-between;gap:20px;line-height:2.2;margin-bottom:20px}.quote-paper .summary{max-width:380px;margin-right:auto}.watermark{color:#b28d51;font-size:13px}.local-tag{font-size:10px;background:#f5eddb;color:#907033;padding:4px 9px;border-radius:6px}#toast{position:fixed;bottom:25px;left:25px;background:var(--navy);color:white;padding:13px 23px;border-radius:10px;z-index:100;box-shadow:0 8px 30px #0002;display:none}.batch-preview{background:#f4f8f6;border-radius:10px;padding:16px;margin-top:18px}.print-only{display:none}@media(max-width:1150px){.grid2{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.content{padding:24px}.topbar{padding:0 24px}.sidebar{padding:25px 12px}.shell{grid-template-columns:200px 1fr}.pagehead{align-items:start}.hero-stat{min-width:140px}}@media(max-width:760px){.shell{display:block}.sidebar{position:relative;height:auto;padding:16px}.brand{padding-bottom:14px}.brand small,.navlabel,.sidebarfoot{display:none}.nav{flex-direction:row;margin-top:14px;overflow:auto}.nav button{white-space:nowrap;font-size:12px;padding:8px}.nav .icon{display:none}.topbar{height:65px;padding:0 15px}.breadcrumb{display:none}.content{padding:20px 14px}.pagehead{flex-direction:column}.hero{padding:22px}.hero-stat{display:none}.fields{grid-template-columns:1fr 1fr}.stats{gap:10px}.stat{padding:14px}.cardhead{padding:16px}.toolbar{padding:14px}.profile{width:100%;justify-content:space-between}.quote-paper{padding:16px}.quotemeta{flex-direction:column}}@media print{@page{size:A4 landscape;margin:12mm}body{background:white;font-size:11px}.sidebar,.topbar,.pagehead,.hero,.stats,.toolbar,.tablefoot,.footer,.notice,.no-print,.dialogback,#toast,button{display:none!important}.shell,.main,.content,.grid2{display:block;padding:0;margin:0;max-width:none}.card,.quote-paper{border:0;box-shadow:none;overflow:visible}.tablewrap{overflow:visible}th,td{padding:8px;font-size:10px;white-space:normal}.print-only{display:block;margin-bottom:14px}.summary{break-inside:avoid}.cardhead{padding:12px 0}.quoteheader{break-inside:avoid}.quote-paper .summary{max-width:350px}.summary .sumrow{margin:8px 0}.cardhead .actions{display:none}input,select{border:0;padding:0;appearance:none}.lineqty{width:45px}a{color:inherit}}
.brand strong{font-size:17px;line-height:1.7;display:block}.brand small{font-size:9px;line-height:1.6;letter-spacing:0;direction:ltr}.brand{align-items:flex-start}.mark{flex-shrink:0;font-family:Georgia,serif}.quoteheader h1{margin-top:12px}

.official-logo{width:58px;height:58px;object-fit:contain;background:white;padding:4px;border-radius:9px;flex-shrink:0}.brand{gap:9px}.quotation-letterhead{display:block;width:100%;max-height:150px;object-fit:contain;margin-bottom:24px}.quotation-company-footer{display:block;width:100%;margin-top:30px}.official-print-header>img,.official-print-footer>img{width:100%;height:auto}.official-print-footer{border-top:1px solid var(--border);padding-top:14px;margin-top:24px}@media print{body:has(.quote-paper) .official-print-header,body:has(.quote-paper) .official-print-footer{display:none}.quotation-letterhead{max-height:95px;margin-bottom:14px}.quotation-company-footer{break-inside:avoid}.official-print-header{break-inside:avoid}.official-print-header h2{font-size:15px;margin-top:12px}}

/* Business quotation layout */
.business-letterhead{text-align:center;display:flex;flex-direction:column;align-items:center;gap:5px;margin:0 auto 24px;max-width:100%}.business-letterhead img{width:78px;height:78px;object-fit:contain}.business-letterhead h2{font-size:22px;margin:0;color:#126a56}.business-letterhead p{margin:0;font-size:12px;color:#5b7079}.business-footer{text-align:center;border-top:1px solid #bad0c7;padding-top:12px;margin:28px auto 0;font-size:10px;line-height:1.8;color:#47616d;width:100%}.quoteheader h1{font-size:26px;margin:0 0 4px}.quote-paper .quoteheader{align-items:center;padding-bottom:16px;margin-bottom:20px;border-bottom:2px solid var(--green)}.quote-paper td.num{display:table-cell}.quote-paper table{white-space:normal;table-layout:fixed}.quote-paper th,.quote-paper td{padding:12px 8px;overflow-wrap:anywhere;font-size:12px}.quote-paper th:nth-child(1){width:10%}.quote-paper th:nth-child(2){width:22%}.quote-paper th:nth-child(3){width:10%}.quote-paper th:nth-child(4){width:9%}.quote-paper th:nth-child(5){width:13%}.quote-paper th:nth-child(6){width:10%}.quote-paper th:nth-child(7){width:12%}.quote-paper th:nth-child(8){width:14%}.quote-paper .summary{background:#f5f9f7;border-radius:10px;margin-top:20px}.quote-paper .quotemeta{font-size:13px}
@media print{@page{size:A4 portrait;margin:12mm 12mm 26mm}html,body{font-family:'IBM Plex Sans Arabic',Tahoma,Arial,sans-serif!important;font-size:11pt!important;color:#163c35!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.quote-paper{padding:0!important}.quote-paper .business-letterhead{margin-bottom:7mm}.business-letterhead img{width:22mm;height:22mm}.business-letterhead h2{font-size:17pt}.business-letterhead p{font-size:9pt}.quote-paper .quoteheader{margin-bottom:5mm}.quote-paper .quoteheader h1{font-size:20pt}.quote-paper .quotemeta{display:flex;flex-direction:row;font-size:10pt;margin-bottom:6mm}.quote-paper th,.quote-paper td{font-size:9pt!important;padding:3mm 1.5mm!important;line-height:1.65;vertical-align:middle}.quote-paper thead{display:table-header-group}.quote-paper tr{break-inside:avoid}.quote-paper .tablewrap{overflow:visible}.quote-paper .summary{max-width:90mm;padding:4mm 5mm!important;break-inside:avoid}.quote-paper .sumrow{font-size:10pt!important;margin:2.5mm 0!important}.quote-paper .sumrow.total strong{font-size:16pt!important}.quote-paper .notice.blue{display:block!important;font-size:9pt;break-inside:avoid}.business-footer{position:fixed;bottom:-19mm;left:0;right:0;width:100%;font-size:8pt;line-height:1.6;border-top:1px solid #91b7a8;padding-top:3mm;margin:0;background:white;text-align:center;break-inside:avoid}.official-print-footer{margin:0!important;padding:0!important;border:0!important}body:has(.quote-paper) .official-print-header,body:has(.quote-paper) .official-print-footer{display:none!important}.quote-paper .summary+.business-footer{margin:0}}
@media print{@page{size:A4 portrait;margin:12mm 12mm 16mm}.business-footer{position:static!important;bottom:auto!important;left:auto!important;right:auto!important;margin:8mm auto 0!important;padding-top:3mm!important;width:100%;break-inside:avoid}}
.quote-paper table:has(th:nth-child(9)) th:nth-child(1){width:8%}.quote-paper table:has(th:nth-child(9)) th:nth-child(2){width:20%}.quote-paper table:has(th:nth-child(9)) th:nth-child(3){width:10%}.quote-paper table:has(th:nth-child(9)) th:nth-child(4){width:8%}.quote-paper table:has(th:nth-child(9)) th:nth-child(5){width:12%}.quote-paper table:has(th:nth-child(9)) th:nth-child(6){width:8%}.quote-paper table:has(th:nth-child(9)) th:nth-child(7){width:11%}.quote-paper table:has(th:nth-child(9)) th:nth-child(8){width:11%}.quote-paper table:has(th:nth-child(9)) th:nth-child(9){width:12%}
.alternate-offer{display:table;margin-top:7px;background:#e5f3ed;color:#126a56;font-size:11px;line-height:1.8}.numeric-value,.num,.code,input[type=number],.lineqty,.stat strong,.hero-stat strong{font-weight:700!important}
#announcementCountdown{font-weight:700}select,option{font-variant-numeric:tabular-nums}
