
*{box-sizing:border-box}
:root{
  --primary:#39aaf3;
  --primary-dark:#188ed9;
  --primary-soft:#e8f6ff;
  --nav:#0d1b2a;
  --nav-soft:#1b2a3a;
  --bg:#f5f7fb;
  --card:#ffffff;
  --ink:#101828;
  --muted:#667085;
  --line:#e4e9ef;
  --green:#14a06f;
  --green-soft:#e4f8ef;
  --yellow:#e2a30e;
  --yellow-soft:#fff6d9;
  --purple:#7f56d9;
  --purple-soft:#f1ecff;
  --danger:#dc3c36;
  --danger-soft:#fff0ef;
}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body{overflow-x:hidden}
button,input,select{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}
.app-shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:100vh}
.sidebar{position:sticky;top:0;height:100vh;background:linear-gradient(180deg,#102033,#091522);color:#fff;padding:0 14px 18px;display:flex;flex-direction:column;z-index:40}
.brand{margin:0 -14px 16px;padding:22px 22px 20px;background:linear-gradient(135deg,#45b7ff,#2197e2)}
.brand-mark{font-size:34px;line-height:1;font-weight:900;letter-spacing:-1.3px}
.brand-sub{font-size:16px;margin-top:4px}
.nav{display:grid;gap:7px}
.nav-item{border:0;background:transparent;color:#e8eef5;border-radius:11px;padding:12px 14px;display:flex;align-items:center;gap:12px;text-align:left;font-weight:750}
.nav-item:hover{background:rgba(255,255,255,.07)}
.nav-item.active{background:linear-gradient(90deg,#229be8,#45b7ff);color:#fff}
.nav-icon{width:22px;font-size:18px;text-align:center}
.nav-badge{margin-left:auto;min-width:24px;height:24px;border-radius:999px;background:rgba(255,255,255,.18);display:grid;place-items:center;padding:0 7px;font-size:12px;font-weight:900}
.office-card{margin-top:auto;background:rgba(255,255,255,.07);border-radius:14px;padding:15px;line-height:1.45}
.office-title{font-size:18px;font-weight:900;margin-bottom:5px}
.office-hours{margin-top:10px;color:#d2dbe5}

.main{min-width:0}
.topbar{position:sticky;top:0;z-index:30;height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px;padding:0 20px}
.menu-btn{border:0;background:#f2f4f7;border-radius:10px;width:42px;height:42px;font-size:23px}
.search-wrap{position:relative;flex:1;max-width:560px}
.search-icon{position:absolute;left:14px;top:9px;color:#98a2b3;font-size:21px}
.search-wrap input{width:100%;height:44px;border:1px solid #d9e0e7;border-radius:11px;background:#f9fafb;padding:0 14px 0 42px;outline:none}
.search-wrap input:focus{background:#fff;border-color:#79c9fa;box-shadow:0 0 0 3px rgba(57,170,243,.12)}
.bell-btn{margin-left:auto;position:relative;width:44px;height:44px;border:0;border-radius:50%;background:#f7f8fa;font-size:19px}
.bell-badge{position:absolute;right:-1px;top:-4px;background:#239be8;color:#fff;border-radius:999px;min-width:20px;height:20px;display:grid;place-items:center;font-size:11px;font-weight:900}
.operator{font-weight:800;white-space:nowrap}

.content{padding:22px}
.app-view{display:block}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:14px}
.page-heading h1{margin:0 0 6px;font-size:32px;line-height:1.05;letter-spacing:-.6px}
.page-heading p{margin:0;color:var(--muted)}
.mode-switch{display:flex;background:#e9edf2;border-radius:11px;padding:4px}
.mode-btn{border:0;background:transparent;color:#5c6676;border-radius:8px;padding:9px 16px;font-weight:850}
.mode-btn.active{background:#fff;color:#111827;box-shadow:0 2px 8px rgba(16,24,40,.08)}

.kpi-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:11px}
.kpi{background:#fff;border:1px solid var(--line);border-radius:12px;padding:11px 13px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.kpi span{color:#778191;font-size:13px}
.kpi strong{font-size:16px;white-space:nowrap}
.kpi-warn{background:#fffaf0}
.kpi-good{background:#eefbf5}

.status-tabs{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:10px}
.status-tab{border:0;border-radius:10px;padding:10px 15px;font-weight:850}
.status-tab span{margin-left:4px}
.status-tab.red{background:#e5f5ff;color:#0b70b4}
.status-tab.red.active{background:#43b3f8;color:#063c62}
.status-tab.amber{background:#fff2c6;color:#845700}
.status-tab.amber.active{background:#f5c84e;color:#5c3d00}
.status-tab.green{background:#dff7ec;color:#087553}
.status-tab.green.active{background:#14a06f;color:#fff}
.status-tab.gray{background:#e9edf2;color:#4f5968}
.status-tab.gray.active{background:#68758a;color:#fff}

.filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:13px;padding:9px;margin-bottom:14px}
.chip{border:1px solid #dfe4ea;background:#f7f8fa;color:#4f5968;border-radius:9px;padding:9px 13px;font-weight:800}
.chip.active{background:#102a44;border-color:#102a44;color:#fff}
.date-input,select{height:39px;border:1px solid #d9e0e7;border-radius:9px;background:#fff;padding:0 10px;color:#344054}
.date-sep{color:#98a2b3}

.workspace{display:grid;grid-template-columns:minmax(390px,.9fr) minmax(520px,1.1fr);gap:14px;align-items:start}
.orders-panel,.detail-panel{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 24px rgba(16,24,40,.04)}
.orders-panel{overflow:hidden}
.orders-list{display:grid}
.order-card{position:relative;display:grid;grid-template-columns:68px minmax(0,1fr) 108px;grid-template-areas:"thumb main side";gap:12px;padding:14px 46px 14px 14px;border-bottom:1px solid #edf0f3;align-items:center;min-height:98px;background:#fff}
.order-card:last-child{border-bottom:0}
.order-card:hover{background:#fbfdff}
.order-card.selected{background:linear-gradient(90deg,#edf8ff,#fff);box-shadow:inset 4px 0 0 var(--primary-dark)}
.thumb{grid-area:thumb;width:68px;height:68px;border-radius:13px;background:#e7f4ff;display:grid;place-items:center;font-size:29px}
.order-main{grid-area:main;min-width:0}
.order-top{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.order-id{font-weight:900;font-size:15px;line-height:1.15;overflow-wrap:anywhere}
.order-type{margin:4px 0 6px;font-weight:760;font-size:14px;line-height:1.3}
.order-client,.order-meta{color:#657080;font-size:12.5px;line-height:1.35}
.order-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.order-side{grid-area:side;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;gap:18px;align-self:stretch;text-align:right}
.order-date{font-size:11px;color:#7d8795;white-space:nowrap}
.order-total{font-size:16px;font-weight:900;white-space:nowrap}
.mini-status,.status-pill{display:inline-flex;align-items:center;border-radius:7px;padding:4px 7px;font-size:10px;font-weight:900;text-transform:uppercase}
.mini-status.new,.status-pill.new{background:#dff2ff;color:#086aa8}
.mini-status.working,.status-pill.working{background:#fff1c2;color:#8a5a00}
.mini-status.printed,.status-pill.printed{background:#eee8ff;color:#6941c6}
.mini-status.done,.status-pill.done{background:#dff7ec;color:#087553}

.payment-corner{position:absolute;right:9px;top:9px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;border:2px solid #fff;box-shadow:0 3px 10px rgba(16,24,40,.15);z-index:2}
.payment-corner.unpaid{background:#e64640}
.payment-corner.paid{background:#18a36f}
.bill-icon{position:relative;width:14px;height:10px;border-radius:2px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.07) inset}
.bill-icon:before,.bill-icon:after{content:"";position:absolute;width:14px;height:10px;border-radius:2px;background:rgba(255,255,255,.78);z-index:-1}
.bill-icon:before{left:-3px;top:2px}
.bill-icon:after{left:3px;top:-2px}
.bill-icon{background-image:radial-gradient(circle at center,rgba(0,0,0,.18) 0 1.5px,transparent 1.8px);background-repeat:no-repeat;background-position:center}

.empty-state,.detail-empty{padding:42px 18px;text-align:center;color:#7b8492}
.empty-state strong,.empty-state span{display:block}
.empty-state strong{color:#344054;margin:8px 0 4px}
.empty-icon{font-size:37px}

.detail-panel{padding:18px;min-height:320px}
.detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.detail-head>div:first-child{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.detail-head h2{margin:0;font-size:22px;line-height:1.2;overflow-wrap:anywhere}
.hybrid-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.btn{border:0;border-radius:10px;padding:10px 13px;font-weight:850;line-height:1.2}
.btn-primary{background:#1f9ce6;color:#fff}
.btn-light{background:#eef2f6;color:#283342}
.btn-danger{background:#fff0ef;color:#b42318;border:1px solid #efc6c3}
.btn:disabled{opacity:.45;cursor:not-allowed}

.hybrid-card,.analytics-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;margin-top:12px}
.section-title{font-size:17px;font-weight:900;line-height:1.25}
.section-title-line{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.section-title-line small{display:block;color:#7b8492;font-size:12px;line-height:1.4;margin-top:2px}

.status-flow{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}
.status-flow button{border:1px solid #e1e6ec;background:#f8fafc;border-radius:10px;min-height:66px;padding:9px;display:flex;align-items:center;gap:8px;text-align:left;color:#667085}
.status-flow button b{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#d9dee6;color:#fff;flex:0 0 auto}
.status-flow button span{display:grid;font-weight:850;line-height:1.15}
.status-flow button small{font-size:10.5px;font-weight:500;color:#98a2b3;margin-top:3px}
.status-flow button[data-set-status="new"].active{background:#e8f6ff;border-color:#70c7f8;color:#086aa8}
.status-flow button[data-set-status="new"].active b{background:#249ee8}
.status-flow button[data-set-status="working"].active{background:#fff7dc;border-color:#efcb62;color:#805500}
.status-flow button[data-set-status="working"].active b{background:#e2a30e}
.status-flow button[data-set-status="printed"].active{background:#f2edff;border-color:#b8a1ff;color:#6941c6}
.status-flow button[data-set-status="printed"].active b{background:#7f56d9}
.status-flow button[data-set-status="done"].active{background:#e9f9f1;border-color:#7bd8b4;color:#087553}
.status-flow button[data-set-status="done"].active b{background:#0f9f6e}

.payment-options{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}
.payment-options button{border:1px solid #e0e5ea;background:#fafbfc;border-radius:9px;min-height:42px;padding:8px;font-weight:800;color:#344054}
.payment-options button.active{border-color:#5cc0f8;background:#edf8ff;color:#0b70b4;box-shadow:0 0 0 1px #5cc0f8 inset}
.payment-badge{background:#eef5ff;color:#2671b8;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:900;white-space:nowrap}

.spec-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}
.spec-grid>div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;min-height:68px;display:grid;align-content:center;gap:4px}
.spec-grid span{font-size:10px;color:#98a2b3;letter-spacing:.03em}
.spec-grid strong{font-size:15px;line-height:1.3}
.money{color:#1286d1}

.client-grid{display:grid;margin-top:8px}
.client-grid>div{display:grid;grid-template-columns:145px minmax(0,1fr);gap:12px;padding:9px 2px;border-bottom:1px solid #edf0f3}
.client-grid>div:last-child{border-bottom:0}
.client-grid span{color:#8993a1;font-size:13px}
.client-grid strong{font-size:13px;overflow-wrap:anywhere}


.files-head{display:grid;grid-template-columns:1fr 1.8fr 55px;gap:10px;color:#7b8492;font-size:11px;margin:10px 2px 6px}
.files-list{display:grid;gap:7px}
.files-list>div:not(.more-files){display:grid;grid-template-columns:1fr 1.8fr 55px;gap:10px;align-items:center;border:1px solid #edf0f3;border-radius:10px;padding:9px 10px}
.file-original{font-size:12px}
.file-download{font-size:12px;color:#0b70b4;overflow-wrap:anywhere}
.file-copies{text-align:right;font-size:12px}
.more-files{text-align:center;padding:10px;color:#778191;background:#f9fafb;border:1px solid #edf0f3;border-radius:9px}

.calc-card #calcInfo{margin-top:8px}
.calc-card #calcInfo>div{display:flex;justify-content:space-between;gap:14px;padding:9px 2px;border-bottom:1px solid #edf0f3}
.calc-card #calcInfo>div:last-child{border-bottom:0}
.calc-card #calcInfo span{color:#667085}
.calc-total strong{color:#1286d1;font-size:19px}

.products-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}
.product-stat{border:1px solid var(--line);background:#fff;border-radius:13px;padding:14px;display:grid;gap:4px;text-align:left}
.product-stat.active{background:#edf8ff;border-color:#62c3f8}
.product-stat span{font-weight:850}
.product-stat strong{font-size:24px;color:#0b70b4}
.product-stat small{color:#667085}
.product-orders{display:grid;margin-top:10px}
.product-order-row{display:grid;grid-template-columns:1fr 1.4fr .65fr .9fr;gap:12px;align-items:center;padding:12px 2px;border-bottom:1px solid #edf0f3}
.product-order-row:last-child{border-bottom:0}
.product-order-row>div{display:grid;gap:3px}
.product-order-row span{font-size:12px;color:#667085}
.retention-badge{justify-self:end;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:850}
.retention-badge.available{background:#e4f8ef;color:#087553}
.retention-badge.expired{background:#f0f2f5;color:#667085}

.client-search-wrap{margin-bottom:14px}
.client-search-wrap input{width:100%;max-width:720px;height:46px;border:1px solid #d9e0e7;border-radius:11px;background:#fff;padding:0 14px;font-size:15px;outline:none}
.client-search-wrap input:focus{border-color:#67c4f8;box-shadow:0 0 0 3px rgba(57,170,243,.12)}
.clients-layout{display:grid;grid-template-columns:minmax(300px,.78fr) minmax(460px,1.22fr);gap:14px;align-items:start}
.clients-list,.client-history{background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden}
.client-card{width:100%;border:0;border-bottom:1px solid #edf0f3;background:#fff;padding:13px;display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:10px;align-items:center;text-align:left}
.client-card.active{background:#edf8ff;box-shadow:inset 3px 0 0 var(--primary-dark)}
.client-card:last-child{border-bottom:0}
.client-avatar{width:44px;height:44px;border-radius:50%;background:#dff2ff;color:#0b70b4;display:grid;place-items:center;font-weight:900}
.client-main{min-width:0;display:grid;gap:3px}
.client-main strong{font-size:14px}
.client-main span{font-size:12px;color:#667085;overflow-wrap:anywhere}
.client-count{font-size:11px;color:#0b70b4;font-weight:850;white-space:nowrap}
.client-history{padding:14px}
.client-profile{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.client-profile>div{background:#f8fafc;border:1px solid #edf0f3;border-radius:10px;padding:10px;display:grid;gap:4px}
.client-profile span{font-size:10.5px;color:#7b8492}
.client-profile strong{font-size:13px;overflow-wrap:anywhere}
.client-history-title{margin:15px 0 6px}
.client-order-row{display:grid;grid-template-columns:1fr 1.2fr .6fr .95fr;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #edf0f3}
.client-order-row:last-child{border-bottom:0}
.client-order-row>div{display:grid;gap:3px}
.client-order-row span{font-size:11px;color:#667085}
.client-empty{padding:42px 18px;text-align:center;color:#7b8492;display:grid;gap:5px}
.client-empty strong{color:#344054}
.client-empty-icon{font-size:28px}

.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.setting-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid #edf0f3}
.setting-row:last-child{border-bottom:0}
.setting-row>div:first-child{display:grid;gap:4px}
.setting-row strong{font-size:14px}
.setting-row span{font-size:12px;color:#667085;line-height:1.45}
.setting-row input[type=checkbox]{width:21px;height:21px;accent-color:#239be8}
.setting-row select{min-width:145px}
.setting-value.fixed{background:#edf8ff;color:#0b70b4;font-weight:900;border-radius:999px;padding:7px 10px;white-space:nowrap}
.settings-save{margin-top:12px;width:100%}

.modal-backdrop{position:fixed;inset:0;background:rgba(16,24,40,.48);z-index:100;display:grid;place-items:center;padding:20px}
.modal{width:min(460px,100%);background:#fff;border-radius:16px;padding:18px;box-shadow:0 22px 60px rgba(16,24,40,.25)}
.modal h3{margin:0 0 8px;font-size:20px}
.modal p{margin:0;color:#667085;line-height:1.5}
.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
.single-action .btn{min-width:140px}
.toast{position:fixed;right:18px;bottom:18px;z-index:120;background:#111827;color:#fff;border-radius:10px;padding:11px 14px;max-width:calc(100vw - 36px);box-shadow:0 10px 28px rgba(0,0,0,.2)}

.history-mode .status-tab[data-status="new"],
.history-mode .status-tab[data-status="work"]{display:none}

@media(max-width:1100px){
  .workspace{grid-template-columns:1fr}
  .clients-layout{grid-template-columns:1fr}
  .products-summary{grid-template-columns:repeat(2,1fr)}
  .product-order-row{grid-template-columns:1fr 1fr}
  .client-order-row{grid-template-columns:1fr 1fr}
}

@media(max-width:900px){
  .app-shell{display:block}
  .sidebar{position:fixed;left:-270px;top:0;width:250px;height:100dvh;transition:left .2s ease;box-shadow:0 18px 42px rgba(0,0,0,.24)}
  .sidebar.open{left:0}
  .brand{padding:18px 20px;text-align:left}
  .brand-mark{font-size:30px}
  .brand-sub{font-size:15px}
  .nav-item{justify-content:flex-start}
  .office-card{display:block}
  .topbar{height:66px;padding:0 12px;gap:8px}
  .operator{display:none}
  .search-wrap input{height:40px;font-size:13px}
  .search-icon{top:7px}
  .content{padding:12px}
  .page-heading{align-items:flex-start;flex-direction:column}
  .page-heading h1{font-size:29px}
  .mode-switch{width:100%}
  .mode-btn{flex:1}
  .kpi-row{grid-template-columns:1fr 1fr;gap:8px}
  .kpi{padding:11px}
  .status-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .status-tab{width:100%;min-height:43px}
  .filters{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
  .chip{width:100%;min-height:44px}
  .date-input,.date-sep,#typeFilter{display:none}

  .orders-panel{background:transparent;border:0;box-shadow:none;overflow:visible}
  .orders-list{gap:10px}
  .order-card{grid-template-columns:64px minmax(0,1fr);grid-template-areas:"thumb main" "thumb side";gap:7px 12px;padding:14px 46px 14px 14px;border:1px solid #e3e8ef;border-radius:16px;min-height:0;box-shadow:0 6px 18px rgba(16,24,40,.04)}
  .thumb{width:64px;height:64px}
  .order-main{align-self:start}
  .order-id{font-size:17px}
  .order-type{font-size:15px}
  .order-client,.order-meta{font-size:13px}
  .order-side{flex-direction:row;align-items:center;justify-content:space-between;gap:10px;text-align:left;align-self:auto}
  .order-date{font-size:12px}
  .order-total{font-size:18px}

  .detail-panel{padding:14px;margin-top:14px}
  .detail-head{flex-direction:column}
  .detail-head h2{font-size:21px}
  .hybrid-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .hybrid-actions #downloadOrderBtn{grid-column:1/-1}
  .hybrid-actions .btn{min-height:45px;text-align:center;white-space:normal}
  .status-flow{grid-template-columns:1fr 1fr}
  .payment-options{grid-template-columns:1fr 1fr}
  .spec-grid{grid-template-columns:1fr 1fr}
  .client-grid>div{grid-template-columns:110px minmax(0,1fr)}
    .files-head{display:none}
  .files-list>div:not(.more-files){grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"original copies" "download copies";gap:4px 10px;padding:10px}
  .file-original{grid-area:original;font-size:13px}
  .file-download{grid-area:download;font-size:12px}
  .file-copies{grid-area:copies;align-self:center}
  .product-order-row{grid-template-columns:1fr}
  .retention-badge{justify-self:start}
  .client-profile{grid-template-columns:1fr 1fr}
  .client-order-row{grid-template-columns:1fr}
  .clients-list{margin-bottom:12px}
  .settings-grid{grid-template-columns:1fr}
  .history-mode .status-tabs{grid-template-columns:1fr 1fr}
}

@media(max-width:520px){
  .content{padding:10px}
  .page-heading h1{font-size:28px}
  .kpi span{font-size:12px}
  .kpi strong{font-size:15px}
  .order-card{grid-template-columns:58px minmax(0,1fr);padding:12px 43px 12px 12px}
  .thumb{width:58px;height:58px;font-size:24px}
  .order-id{font-size:15px}
  .order-type{font-size:14px}
  .order-client,.order-meta{font-size:12px}
  .order-side{flex-wrap:wrap}
  .order-date{font-size:11px}
  .order-total{font-size:17px}
  .payment-corner{width:26px;height:26px}
  .status-flow button{min-height:69px;padding:8px}
  .payment-options button{min-height:46px}
  .client-grid>div{grid-template-columns:95px minmax(0,1fr)}
  .client-profile{grid-template-columns:1fr}
  .setting-row{align-items:flex-start}
  .setting-row select{min-width:126px;max-width:145px}
  .modal-actions{display:grid;grid-template-columns:1fr 1fr}
  .single-action{grid-template-columns:1fr}
  .single-action .btn{width:100%}
}


/* v21 — expand listă fișiere + test notificări */
.more-files{
  width:100%;
  border:1px solid #e1e6ec;
  background:#f8fafc;
  color:#667085;
  border-radius:10px;
  padding:11px 12px;
  font-weight:800;
  text-align:center;
}
.more-files:hover{background:#eef6fb;color:#0b70b4}
.settings-save + .settings-save{margin-top:8px}


/* v25 — PWA / notificări */
.notification-status{
  margin-top:9px;
  border-radius:10px;
  padding:10px 12px;
  font-size:12px;
  font-weight:800;
  background:#f2f4f7;
  color:#667085;
}
.notification-status.good{background:#e4f8ef;color:#087553}
.notification-status.warn{background:#fff6d9;color:#805500}
.notification-status.bad{background:#fff0ef;color:#b42318}
#installPwaBtn{border:1px solid #dce6ee}


/* v26 — securitate / passkey / 2FA */
.security-card{grid-column:1/-1}
.security-status{
  margin-top:10px;
  border-radius:10px;
  padding:10px 12px;
  font-size:12px;
  font-weight:850;
}
.security-status.neutral{background:#f2f4f7;color:#667085}
.security-status.good{background:#e8f7ef;color:#087553}

.password-form{display:grid;gap:10px;margin-top:14px}
.password-form label{display:grid;gap:5px}
.password-form label span{font-size:12px;color:#667085;font-weight:750}
.password-form input{
  width:100%;
  height:43px;
  border:1px solid #d9e0e7;
  border-radius:9px;
  padding:0 11px;
  outline:none;
}
.password-form input:focus{
  border-color:#67c4f8;
  box-shadow:0 0 0 3px rgba(57,170,243,.12);
}

@media(max-width:760px){
  .security-card{grid-column:auto}
  #changePasswordBtn{width:auto;min-width:135px}
}


/* v28 — alertă neachitată mai evidentă */
#unpaidModal.modal-backdrop{
  background:rgba(15,23,42,.68);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
  z-index:99999;
  padding:18px;
}
.unpaid-alert-modal{
  position:relative;
  width:min(520px,100%);
  border:2px solid #f59e0b;
  border-radius:20px;
  padding:24px 22px 20px;
  box-shadow:0 24px 80px rgba(15,23,42,.35), 0 0 0 6px rgba(245,158,11,.12);
  animation:stilcoAlertPop .18s ease-out;
}
.alert-modal-icon{
  width:58px;
  height:58px;
  border-radius:50%;
  display:grid;
  place-items:center;
  margin:-52px auto 12px;
  background:#fff3cd;
  border:4px solid #fff;
  box-shadow:0 8px 24px rgba(15,23,42,.18);
  color:#b26a00;
  font-size:34px;
  line-height:1;
  font-weight:950;
}
.alert-modal-copy{text-align:center}
.alert-kicker{
  display:inline-block;
  margin-bottom:6px;
  padding:4px 10px;
  border-radius:999px;
  background:#fff3cd;
  color:#9a5c00;
  font-size:11px;
  font-weight:950;
  letter-spacing:.08em;
}
.unpaid-alert-modal h3{
  margin:4px 0 10px;
  font-size:24px;
  line-height:1.18;
  color:#101828;
}
.unpaid-alert-modal p{
  margin:0;
  font-size:15px;
  line-height:1.55;
  color:#475467;
}
.unpaid-alert-modal .modal-actions{
  margin-top:20px;
}
.alert-confirm-btn{
  width:100%;
  min-height:50px;
  border-radius:12px;
  font-size:16px;
  font-weight:900;
  box-shadow:0 8px 22px rgba(57,170,243,.25);
}
@keyframes stilcoAlertPop{
  from{opacity:0;transform:translateY(10px) scale(.97)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
@media(max-width:600px){
  .unpaid-alert-modal{
    padding:23px 18px 18px;
    border-radius:18px;
  }
  .unpaid-alert-modal h3{font-size:22px}
  .unpaid-alert-modal p{font-size:15px}
  .alert-modal-icon{
    width:54px;height:54px;font-size:31px;margin-top:-50px;
  }
}


/* v29 — logout / login / timeout sesiune */
.sidebar-logout{
  padding:10px 18px 0;
}
.logout-nav{
  width:100%;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  color:#fff;
  cursor:pointer;
}
.logout-nav:hover{
  background:rgba(255,255,255,.11);
}
.logout-nav .nav-icon{
  font-size:22px;
  transform:rotate(180deg);
}

.login-screen{
  position:fixed;
  inset:0;
  z-index:200000;
  display:grid;
  place-items:center;
  padding:20px;
  background:linear-gradient(180deg,#43aef4 0%,#eef6fb 45%,#f7f9fc 100%);
}
.login-screen.hidden{display:none}
.login-card{
  width:min(420px,100%);
  background:#fff;
  border:1px solid #e4e7ec;
  border-radius:22px;
  padding:24px;
  box-shadow:0 30px 90px rgba(15,23,42,.20);
}
.login-logo-wrap{
  display:flex;
  justify-content:center;
  margin-bottom:12px;
}
.login-logo{
  width:76px;
  height:76px;
  border-radius:18px;
  box-shadow:0 10px 30px rgba(57,170,243,.20);
}
.login-card h1{
  margin:0 0 7px;
  text-align:center;
  font-size:26px;
}
.login-card > p{
  margin:0 0 18px;
  text-align:center;
  color:#667085;
  line-height:1.45;
}
.login-field{
  display:grid;
  gap:6px;
  margin-bottom:12px;
}
.login-field span{
  font-size:12px;
  font-weight:800;
  color:#475467;
}
.login-field input{
  height:46px;
  width:100%;
  border:1px solid #d8dee6;
  border-radius:10px;
  padding:0 12px;
  font-size:15px;
}
.login-submit,.login-passkey{
  width:100%;
  min-height:46px;
  margin-top:7px;
}
.login-note{
  margin-top:14px;
  font-size:11px;
  line-height:1.45;
  color:#98a2b3;
  text-align:center;
}
body.session-locked{
  overflow:hidden;
}


/* v30 — branding oficial + flux email parolă */
.official-login-logo{
  width:min(260px,78vw);
  height:auto;
  max-height:110px;
  object-fit:contain;
  border-radius:0;
  box-shadow:none;
}
.password-email-modal{max-width:500px}
.password-step-header{display:flex;gap:12px;align-items:flex-start;margin-bottom:16px}
.password-step-header h3{margin:0 0 5px}
.password-step-header p{margin:0;color:#667085;line-height:1.45}
.security-shield{
  flex:0 0 42px;width:42px;height:42px;border-radius:50%;
  display:grid;place-items:center;background:#e8f7ef;color:#087553;
  font-weight:950;font-size:20px;
}
.password-step{display:grid;gap:11px}
.password-step label{display:grid;gap:6px}
.password-step label span,.password-code-label span{font-size:12px;font-weight:850;color:#475467}
.password-step input{
  width:100%;height:48px;border:1px solid #d9e1e8;border-radius:11px;
  padding:0 12px;font-size:16px;outline:none;
}
.password-step input:focus{border-color:#39aaf3;box-shadow:0 0 0 3px rgba(57,170,243,.12)}
#passwordEmailCode{
  text-align:center;font-size:25px;font-weight:900;letter-spacing:.22em;
}
.security-info-box,.code-sent-box,.code-ok-box,.password-error{
  border-radius:11px;padding:11px 12px;font-size:13px;line-height:1.45;
}
.security-info-box{background:#f2f7fb;color:#475467}
.code-sent-box{background:#eef7ff;color:#126a9e}
.code-ok-box{background:#e8f7ef;color:#087553;font-weight:800}
.password-error{background:#fff0ef;color:#b42318;font-weight:750;margin-top:10px}
.password-main-btn{width:100%;min-height:48px;font-weight:900}
.password-resend-btn{width:100%;min-height:43px}


/* v31 — logout vizibil + modal ștergere în același stil */
.sidebar-logout{
  padding:8px 18px 0;
}
.logout-nav{
  width:100%;
  display:flex;
  align-items:center;
  gap:14px;
  min-height:54px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.07);
  color:#fff;
  cursor:pointer;
}
.logout-nav:hover,.logout-nav:focus{
  background:rgba(255,255,255,.14);
}
.logout-nav .nav-icon{
  font-size:22px;
  transform:rotate(180deg);
}
.delete-alert-modal{
  border-color:#e5484d;
  box-shadow:0 24px 80px rgba(15,23,42,.35),0 0 0 6px rgba(229,72,77,.12);
}
.delete-alert-icon{
  background:#fff0f0;
  color:#b42318;
}
.delete-kicker{
  background:#fff0f0;
  color:#b42318;
}
.delete-actions{
  display:grid;
  grid-template-columns:1fr 1.5fr;
  gap:10px;
  margin-top:20px;
}
.delete-confirm-btn{
  min-height:50px;
  border-radius:12px;
  font-size:15px;
  font-weight:900;
}
@media(max-width:600px){
  .delete-actions{grid-template-columns:1fr}
  .sidebar-logout{padding-left:14px;padding-right:14px}
}

/* v32 — 2FA real și modal de securitate deasupra loginului */
.security-modal-top{z-index:220000}
#passwordModal{z-index:220000}
#setting2FA:disabled{opacity:.55;cursor:not-allowed}
.login-passkey + .login-passkey{margin-top:7px}


/* v34 — login simplificat */
.forgot-password-link{
  display:block;
  margin:12px auto 2px;
  padding:4px 8px;
  border:0;
  background:transparent;
  color:#1d83bd;
  font-size:14px;
  font-weight:750;
  cursor:pointer;
  text-decoration:none;
}
.forgot-password-link:hover,
.forgot-password-link:focus{
  text-decoration:underline;
}
.login-note{
  margin-top:14px;
}


/* v37 — Passkey real */
.passkey-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.passkey-login-compact{
  display:block;
  width:100%;
  margin-top:8px;
  min-height:44px;
  border:1px solid #dce6ee;
  border-radius:10px;
  background:#f8fafc;
  color:#263548;
  font-size:14px;
  font-weight:850;
  cursor:pointer;
}
.passkey-login-compact.hidden{display:none}
@media(max-width:600px){
  .passkey-actions{width:100%;justify-content:stretch}
  .passkey-actions .btn{width:100%}
}
