:root{--paper: #edf0ea;--sheet: #f8f9f6;--ink: #1d2621;--ink-2: #56615a;--line: #d3d9d1;--product: #2f6b4e;--labor: #3355c9;--energy: #d9921a;--other: #b5442f;--display: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif;--body: "IBM Plex Sans Arabic", system-ui, sans-serif}@media(prefers-color-scheme:dark){:root{--paper: #151a17;--sheet: #1c231f;--ink: #e6ebe5;--ink-2: #9aa59d;--line: #2f3833;--product: #6fbf93;--labor: #7c97ff;--energy: #f0b04a;--other: #e07a63}}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.6 var(--body)}button,input,select,textarea{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--labor);outline-offset:2px}.muted{color:var(--ink-2)}.error{color:var(--other)}.ok{color:var(--product)}input,select,textarea{width:100%;padding:7px 10px;border:1px solid var(--line);border-radius:4px;background:var(--sheet)}input:focus,select:focus,textarea:focus{border-color:var(--product);outline:none}.btn{padding:7px 14px;border:1px solid var(--ink);border-radius:4px;background:transparent;cursor:pointer;text-decoration:none;white-space:nowrap}.btn:hover{background:var(--ink);color:var(--paper)}.btn.primary{background:var(--product);border-color:var(--product);color:#fff}.btn.primary:hover{filter:brightness(1.1)}.btn.danger{border-color:var(--other);color:var(--other)}.btn.danger:hover{background:var(--other);color:#fff}.btn.small{padding:3px 10px;font-size:13px}.link{background:none;border:0;padding:0;cursor:pointer;color:var(--ink-2);font-size:13px}.link:hover{color:var(--ink);text-decoration:underline}.link.danger:hover{color:var(--other)}.login{max-width:340px;margin:18vh auto;display:flex;flex-direction:column;gap:14px;padding:0 16px}.login h1{font:700 40px var(--display);color:var(--product);margin:0}.login label{display:flex;flex-direction:column;gap:4px}.shell{display:grid;grid-template-columns:300px 1fr;min-height:100vh}.rail{background:var(--sheet);border-inline-end:1px solid var(--line);padding:18px;display:flex;flex-direction:column;gap:18px}.brand{display:flex;justify-content:space-between;align-items:center}.brand b{font:700 22px var(--display);color:var(--product)}.rail-head{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid var(--ink);padding-bottom:4px}.rail-head h2{font:700 17px var(--display);margin:0}.rail ul{list-style:none;padding:0;margin:6px 0}.rail li>button,.cat-row>button:first-child{width:100%;text-align:start;background:none;border:0;padding:6px 8px;border-radius:4px;cursor:pointer;display:flex;justify-content:space-between;gap:8px}.cat-row{display:flex;align-items:center;gap:8px}.cat-row>button:first-child{flex:1}.rail li>button:hover,.cat-row>button:first-child:hover{background:var(--paper)}.rail button.active{background:var(--product)!important;color:#fff}.rail small{color:inherit;opacity:.7}.plist{overflow:auto}.empty{padding:6px 8px;font-size:13px}.inline{display:flex;gap:6px}.main{padding:28px 36px 80px;min-width:0}.placeholder{max-width:520px;margin-top:12vh}.placeholder h1{font:700 30px/1.3 var(--display)}.editor{max-width:980px}.editor-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.editor-head h1{font:700 40px/1.2 var(--display);margin:0;color:var(--product)}.actions{display:flex;gap:8px;flex-wrap:wrap}.fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0}.fields label{display:flex;flex-direction:column;gap:4px;font-weight:500}.fields .wide{grid-column:1 / -1}.block{background:var(--sheet);border:1px solid var(--line);border-radius:6px;padding:16px 18px;margin-bottom:20px}.block-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.block-head h2{font:700 19px var(--display);margin:0}.sum{font-weight:600;font-variant-numeric:tabular-nums}.sum.good{color:var(--product)}.sum.bad{color:var(--other)}.comps{width:100%;border-collapse:collapse}.comps th{text-align:start;font-size:13px;font-weight:500;color:var(--ink-2);padding:4px 6px}.comps td{padding:4px 6px;border-top:1px solid var(--line)}.comps td:first-child{width:160px;border-inline-start:4px solid var(--product)}.comps tr.k-labor td:first-child{border-inline-start-color:var(--labor)}.comps tr.k-energy td:first-child{border-inline-start-color:var(--energy)}.comps tr.k-other td:first-child{border-inline-start-color:var(--other)}.comps td:nth-child(3){width:170px}.comps td:last-child{width:50px}.pct{display:flex;align-items:center;gap:4px}.pct input{width:90px}.pct em{font-size:12px;font-style:normal;color:var(--ink-2);border:1px solid var(--line);border-radius:8px;padding:0 6px}.add-row{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.hint{font-size:13px;color:var(--ink-2);margin:10px 0 0}.chips{list-style:none;padding:0;margin:0 0 10px;display:flex;flex-wrap:wrap;gap:6px}.chips li{display:flex;align-items:center;gap:6px;padding:3px 4px 3px 10px;border:1px solid var(--line);border-radius:14px;background:var(--paper)}.chips button{border:0;background:none;cursor:pointer;font-size:16px;line-height:1;color:var(--ink-2)}.block .inline{max-width:420px}@media(max-width:820px){.shell{grid-template-columns:1fr}.rail{border-inline-end:0;border-bottom:1px solid var(--line)}.plist{max-height:240px}.main{padding:20px 16px 60px}.fields{grid-template-columns:1fr}.comps,.comps tbody,.comps tr,.comps td{display:block;width:100%!important}.comps thead{display:none}.comps tr{border-top:1px solid var(--line);padding:6px 0}.comps td{border:0}}
