/* SHABAB NOVA ERP 1.2.0 — Theme Studio + Print Studio + 360° search / reports + ⓘ hints + Help Center + emergency access. Strict CSP: classes only.
   With nothing saved in Theme Studio none of the --side* / --fs variables are set, so every fallback below = the NOVA look exactly as before. */
body { font-size: var(--fs, 14px); }
.sidebar { background: var(--sidebg, var(--side)); border-inline-end-color: var(--sideline, var(--line)); }
.sidebar .brand { color: var(--sidebrand, var(--ink)); } .sidebar .brand small, .sidebar .foot { color: var(--sidemuted, var(--muted)); } .sidebar .foot { border-top-color: var(--sideline, var(--line)); }
.nav .ngrp { color: var(--sidemuted, var(--muted)); } .nav a:hover { background: var(--sidehover, var(--soft)); }
:root[data-studio] a { color: var(--link, var(--a1)); } :root[data-studio] .nav a, :root[data-studio] .btn, :root[data-studio] .kpi { color: inherit; } :root[data-studio] .nav a { color: var(--sideink); } :root[data-studio] .nav a.on { color: var(--btn-ink, #fff); }
:root[data-studio] .btn:not(.ghost):not(.danger) { color: var(--btn-ink, #fff); } :root[data-studio] .main { background: var(--dash-bg, transparent); }
/* look & feel (per user) */
:root[data-feel="ios"] { --radius: 14px; } :root[data-feel="ios"] body { background: #F2F2F7; } :root[data-feel="ios"][data-theme="dark"] body { background: #000; }
:root[data-feel="ios"] .card, :root[data-feel="ios"] .kpi { box-shadow: none; border-color: rgba(60,60,67,.12); border-radius: 14px; } :root[data-feel="ios"] .btn { border-radius: 10px; box-shadow: none; } :root[data-feel="ios"] .nav a { border-radius: 10px; }
:root[data-feel="android"] { --radius: 24px; } :root[data-feel="android"] .card, :root[data-feel="android"] .kpi { border-radius: 24px; border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.08); } :root[data-feel="android"] .btn { border-radius: 99px; box-shadow: none; } :root[data-feel="android"] .nav a { border-radius: 99px; }
.m0 { margin: 0; }
/* find in menu */
.navq { position: relative; margin: 0 4px 8px; } .navq svg { position: absolute; inset-inline-start: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; opacity: .55; color: var(--sideink, var(--muted)); }
.navq input { width: 100%; padding: 8px 10px 8px 32px; border-radius: 10px; border: 1px solid var(--sideline, var(--line)); background: var(--sidehover, var(--soft)); color: var(--sideink, var(--ink)); font-size: 13px; } html[dir="rtl"] .navq input { padding: 8px 32px 8px 10px; }
/* 360° search results */
.sres .sgrp { padding: 8px 12px 2px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.sres a.on { background: var(--soft); } .sres a.x360l { display: inline-flex; margin: -4px 12px 4px; padding: 2px 8px; font-size: 11px; border-radius: 99px; background: var(--soft); color: var(--a1); width: auto; }
/* ⓘ hints */
.hi-dot { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-inline-start: 5px; border-radius: 50%; font: italic 700 10.5px/1 Georgia, serif; color: #fff; background: var(--a1); opacity: .78; cursor: help; vertical-align: middle; flex: 0 0 16px; user-select: none; }
.hi-dot:hover, .hi-dot:focus { opacity: 1; outline: 2px solid var(--a2); outline-offset: 1px; }
.tool .hi-dot, .vw .hi-dot, .mat .hi-dot, .btn .hi-dot, .tabs a .hi-dot { width: 13px; height: 13px; font-size: 9px; flex-basis: 13px; }
.tool { position: relative; } .tool .hi-dot { position: absolute; top: 3px; inset-inline-end: 3px; margin: 0; }
.hintpop p { margin: 0 0 9px; line-height: 1.55; } .hintpop .hex, .hch .hex { background: var(--soft); border-radius: 10px; padding: 8px 10px; } .hintpop .hq { border-inline-start: 3px solid var(--a2); padding-inline-start: 8px; }
@media print { .hi-dot, .x360btn, .xprint, .navq, .em-band, .em-note { display: none !important; } }
/* help center */
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; } .hcard2 { display: block; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); font-weight: 600; color: var(--ink); }
details.hd { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 0 0 8px; } details.hd summary { cursor: pointer; font-weight: 600; } details.hd[open] summary { margin-bottom: 8px; } details.hd.hl { border-color: var(--a1); box-shadow: 0 0 0 2px var(--a1); }
.hch ol li, .hch ul li { margin: 4px 0; } .pagehead .in { min-width: 220px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
@media print { .hch, details.hd { break-inside: avoid; } }
/* 360° */
.x360s { break-inside: avoid; } .age { display: flex; flex-wrap: wrap; gap: 8px; } .age span { padding: 6px 10px; border-radius: 10px; background: var(--soft); font-size: 12.5px; } .age b { margin-inline-start: 4px; }
.life { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; } .lstep { flex: 1 1 120px; min-width: 120px; border: 1px dashed var(--line); border-radius: 12px; padding: 8px 10px; opacity: .6; } .lstep.on { opacity: 1; border-style: solid; border-color: var(--a1); }
.lstep b { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); } .lstep small { display: block; color: var(--muted); }
.bars12 { display: flex; align-items: flex-end; gap: 6px; height: 140px; } .b12 { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: 10.5px; color: var(--muted); } .b12 i { display: block; width: 70%; background: var(--grad); border-radius: 6px 6px 0 0; min-height: 2px; }
/* emergency */
.em-band { background: #B91C1C; color: #fff; text-align: center; padding: 7px 12px; font-weight: 700; font-size: 13px; } .em-note { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; background: #FEF3C7; color: #78350F; padding: 8px 12px; font-size: 13px; }
.em-link { margin-top: 10px; width: 100%; opacity: .8; font-size: 12px; }
/* Theme Studio */
.look-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; } @media (max-width: 1100px) { .look-grid { grid-template-columns: 1fr; } }
.ts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; } .ts-grp { margin: 12px 0 6px; font-weight: 700; font-size: 12.5px; color: var(--muted); }
.ts-card { position: relative; display: flex; flex-direction: column; gap: 6px; text-align: start; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); cursor: pointer; color: var(--ink); }
.ts-card.on { border-color: var(--a1); box-shadow: 0 0 0 2px var(--a1); } .ts-card small { color: var(--muted); font-size: 11.5px; } .ts-card b { font-size: 12.5px; } .ts-card[disabled] { cursor: default; opacity: .85; }
.ts-bar { display: flex; height: 22px; border-radius: 8px; overflow: hidden; } .ts-bar i { flex: 1; } .ts-dn { display: flex; gap: 4px; } .ts-dn span { flex: 1; text-align: center; font-size: 10.5px; border-radius: 6px; padding: 2px 0; border: 1px solid var(--line); }
.ts-on { position: absolute; top: 6px; inset-inline-end: 8px; color: var(--a1); font-weight: 800; }
.ts-feel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } @media (max-width: 700px) { .ts-feel { grid-template-columns: 1fr; } }
.fmock { display: flex; gap: 4px; height: 38px; } .fmock i { flex: 1; border-radius: 8px; background: var(--soft); } .feel-ios .fmock i { border-radius: 12px; background: #E5E5EA; } .feel-android .fmock i { border-radius: 99px; background: #E8DEF8; }
.ts-pres { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; } .ts-pres button { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; font-size: 12.5px; }
.ts-sw { display: flex; } .ts-sw i { width: 14px; height: 14px; border-radius: 50%; margin-inline-end: -4px; border: 2px solid var(--card); }
.ts-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; } .ts-col { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; } .ts-col input[type=color] { width: 34px; height: 26px; border: 0; padding: 0; background: none; } .ts-col code { margin-inline-start: auto; font-size: 10.5px; color: var(--muted); }
.ts-bgs { display: flex; flex-wrap: wrap; gap: 8px; } .ts-bgs button { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; } .ts-bgs button.on { border-color: var(--a1); box-shadow: 0 0 0 2px var(--a1); }
.seg { display: flex; gap: 6px; }
.mocks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tmock { position: relative; display: flex; height: 150px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--m-bg); color: var(--m-ink); font-size: 10px; }
.tm-side { width: 36%; background: var(--m-sidebg); color: var(--m-sideink); padding: 8px 6px; display: flex; flex-direction: column; gap: 4px; } .tm-side b { font-size: 9.5px; margin-bottom: 4px; } .tm-side i { font-style: normal; padding: 3px 5px; border-radius: 6px; } .tm-side i.on { background: linear-gradient(135deg, var(--m-a1), var(--m-a2)); color: #fff; }
.tm-main { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 8px; } .tm-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .tm-kpis div { background: var(--m-card); border-radius: 8px; padding: 6px; } .tm-kpis small { display: block; color: var(--m-muted); } .tm-kpis b { font-size: 11px; }
.tm-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; } .tm-btn { background: linear-gradient(135deg, var(--m-a1), var(--m-a2)); color: #fff; border-radius: 6px; padding: 3px 8px; } .tm-mode { color: var(--m-muted); }
/* Print Studio */
.ps-top { align-items: flex-end; flex-wrap: wrap; } .ps-top .field { min-width: 220px; margin: 0; } .ps-parts { flex-wrap: wrap; } .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; } @media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } }
.ps-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; } .ps-pic { border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; } .ps-pic img { max-width: 100%; max-height: 70px; object-fit: contain; } .ps-nopic { height: 50px; display: flex; align-items: center; color: var(--muted); }
.ps-prev-w { background: #E5E7EB; border-radius: 12px; padding: 12px; overflow: auto; max-height: 820px; } .pvsheet { background: #fff; color: #111; padding: 12mm; min-height: 200mm; font-size: 11px; position: relative; box-shadow: 0 6px 20px rgba(0,0,0,.15); width: 100%; max-width: 210mm; margin: 0 auto; }
.pvsheet.paper-A5 { max-width: 148mm; min-height: 150mm; } .pvsheet.paper-80 { max-width: 80mm; padding: 4mm; min-height: 0; }
.pvsheet table.t { font-size: 10.5px; } .pvsheet .totals { margin-inline-start: auto; max-width: 340px; }
/* Print Studio styles on a print (#pv) and on the preview: --ps-c / --ps-a set on the element; NO class = the NOVA print as before */
.psd { position: relative; } .psd .lh.ps-head { border-image: none; border-bottom: 3px solid var(--ps-c); } .psd .lh .dt b { color: var(--ps-c); } .psd table.t th { background: color-mix(in srgb, var(--ps-c) 12%, #fff) !important; color: #111; }
.psd .totals .grand { color: var(--ps-c); border-top: 2px solid var(--ps-a); }
.ps-classic .lh.ps-head { border-bottom: 1px solid #333; } .ps-classic table.t th { background: #fff !important; border-bottom: 2px solid #333; } .ps-classic table.t td { border-bottom: 1px solid #ddd; }
.ps-bold .lh.ps-head { background: var(--ps-c); color: #fff; padding: 10px 12px; border-radius: 8px; border: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; } .ps-bold .lh.ps-head .co span, .ps-bold .lh.ps-head .dt b { color: #fff; } .ps-bold table.t th { background: var(--ps-c) !important; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ps-minimal .lh.ps-head { border-bottom: 0; } .ps-minimal table.t th { background: #fff !important; color: #666; font-weight: 600; } .ps-minimal .lh .dt b { color: #111; }
.ps-head.pos-center { flex-direction: column; text-align: center; } .ps-head.pos-center .dt { text-align: center; } .ps-head.pos-right { flex-direction: row-reverse; } .ps-head.pos-right .dt { text-align: start; }
.ps-logo.sz-S { height: 40px !important; } .ps-logo.sz-M { height: 64px !important; } .ps-logo.sz-L { height: 90px !important; }
.ps-lhbg { position: absolute; inset: 0 0 auto 0; width: 100%; height: auto; z-index: 0; pointer-events: none; } .psd > *:not(.ps-lhbg):not(.ps-wm) { position: relative; z-index: 1; }
.ps-lhspace { height: 40mm; } .lh .dt.solo, .dt.solo { text-align: end; margin-bottom: 10px; } .dt.solo b { display: block; font-size: 18px; color: var(--ps-c); }
.ps-htext { font-size: 11px; color: #444; margin: -6px 0 10px; } .ps-terms, .ps-bank { margin-top: 8px; }
.ps-recv { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; font-size: 11px; flex-wrap: wrap; } .ps-sign { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 18px; min-height: 60px; } .ps-sig { max-height: 60px; } .ps-stamp { max-height: 90px; opacity: .9; } .ps-line { color: #555; }
.ps-wm { position: absolute; top: 40%; left: 0; right: 0; text-align: center; font-size: 90px; font-weight: 800; color: rgba(200,0,0,.08); transform: rotate(-20deg); pointer-events: none; z-index: 0; }
.paper-80 { font-size: 10px; } .paper-80 .cols2 { display: block; } .paper-80 .lh { flex-direction: column; align-items: flex-start; } .paper-80 .c-war, .paper-80 table.t th:nth-child(7), .paper-80 table.t td:nth-child(7) { display: none; }
.printpage-view.paper-A5, #pv.paper-A5 { max-width: 148mm; } #pv.paper-80 { max-width: 80mm; }
@page a5 { size: A5; margin: 8mm; } @page r80 { size: 80mm 297mm; margin: 3mm; }
@media print { #pv.paper-A5 { page: a5; } #pv.paper-80 { page: r80; } .psd .ps-lhbg { position: absolute; } }
.cv-logo { display: block; max-height: 60px; margin-bottom: 10px; }
