:root{
  --blue:#153d63;--blue-2:#0f2f4d;--blue-3:#1e527f;--yellow:#ffc627;--yellow-2:#ffd75d;--bg:#f4f7fb;--card:#ffffff;--muted:#667085;--border:#e5e7eb;--success:#15803d;--danger:#b42318;--warning:#b7791f;--info:#2563eb;--black:#111827;
}
*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--black)}a{color:inherit;text-decoration:none}input,select,textarea{width:100%;border:1px solid var(--border);border-radius:12px;padding:10px 12px;font:inherit;background:#fff}textarea{min-height:90px}.app{display:grid;grid-template-columns:286px 1fr;min-height:100vh}.sidebar{background:linear-gradient(180deg,var(--blue),var(--blue-2));color:#fff;padding:22px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;border-right:1px solid rgba(255,255,255,.12)}.sidebar-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.logo{display:flex;align-items:center}.logo img{width:205px;max-height:86px;object-fit:contain}.sidebar-close{display:none;background:rgba(255,255,255,.12);color:#fff;border:0;border-radius:12px;width:38px;height:38px;font-size:24px}.nav{display:flex;flex-direction:column;gap:4px}.nav a,.logout-link{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:14px;color:#eaf2fb;margin:1px 0;font-weight:700}.nav a:hover,.nav a.active,.logout-link:hover{background:rgba(255,198,39,.16);color:#fff}.logout-link{margin-top:auto;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#fff}.main{padding:28px 34px}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.topbar h1{margin:0;font-size:30px;color:var(--blue)}.userbox{color:var(--muted);font-size:14px}.grid{display:grid;gap:18px}.grid.cards{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:var(--card);border:1px solid var(--border);border-radius:22px;padding:20px;box-shadow:0 8px 24px rgba(15,23,42,.04)}.stat small{color:var(--muted)}.stat strong{display:block;font-size:28px;margin-top:8px;color:var(--blue)}.section-title{display:flex;justify-content:space-between;align-items:center;margin:26px 0 12px;gap:16px}.section-title h2{margin:0;color:var(--blue)}.section-title p{margin:6px 0 0}.table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid var(--border);border-radius:18px;overflow:hidden}.table th,.table td{padding:13px 14px;text-align:left;border-bottom:1px solid var(--border);font-size:14px;vertical-align:middle}.table th{background:#f8fafc;color:#475467;font-weight:800}.table tr:last-child td{border-bottom:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border-radius:12px;border:1px solid var(--border);background:#fff;color:#111827;cursor:pointer;font-weight:800}.btn.primary{background:var(--blue);color:#fff;border-color:var(--blue)}.btn.primary:hover{background:var(--blue-2)}.btn.gold{background:var(--yellow);color:#111827;border-color:var(--yellow)}.btn.danger{background:#fee4e2;color:var(--danger);border-color:#fecdca}.btn.small{padding:7px 10px;font-size:12px}.filters{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin-bottom:14px}.filters label{min-width:190px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.form-actions{display:flex;gap:10px;margin-top:18px}.badge{display:inline-flex;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:800}.badge.success{background:#dcfce7;color:#166534}.badge.danger{background:#fee2e2;color:#991b1b}.badge.warning{background:#fef3c7;color:#92400e}.badge.info{background:#dbeafe;color:#1e40af}.badge.muted{background:#f3f4f6;color:#4b5563}.alert{padding:12px 14px;border-radius:14px;margin-bottom:16px}.alert.success{background:#dcfce7;color:#166534}.alert.danger{background:#fee2e2;color:#991b1b}.muted{color:var(--muted)}.quote-total{font-size:30px;font-weight:900;color:var(--blue)}.quote-actions{display:flex;gap:10px;flex-wrap:wrap}.items-table input{min-width:80px}.items-table .name-input{min-width:360px}.auth-body{min-height:100vh;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at top,var(--blue-3),var(--blue-2))}.auth-card{width:min(440px,92vw);background:#fff;border-radius:28px;padding:32px;box-shadow:0 30px 70px rgba(0,0,0,.28)}.install-card{width:min(620px,92vw)}.brand-mark{width:58px;height:58px;border-radius:18px;background:var(--blue);color:var(--yellow);display:flex;align-items:center;justify-content:center;font-weight:900;font-size:22px;margin-bottom:18px}.brand-mark.logo-auth{width:180px;height:82px;border-radius:18px;background:var(--blue);padding:14px}.brand-mark.logo-auth img{width:100%;height:100%;object-fit:contain}.prefilled{background:#f8fafc;border-color:#cbd5e1}.auth-card h1{margin:0 0 10px;color:var(--blue)}.auth-card label{display:block;margin:14px 0}.auth-card button{width:100%;margin-top:10px}.public-link{word-break:break-all;color:var(--info)}.calc-rules-card{margin-top:18px;padding:18px;border:1px solid rgba(255,198,39,.45);background:linear-gradient(135deg,#fff9e8,#fff);border-radius:18px}.calc-rules-card.compact{margin-top:18px}.calc-rules-card h3{margin:0 0 6px;color:var(--blue)}.calc-rules-card p{margin:0 0 14px}.permission-panel{margin-top:20px;padding:18px;border-radius:18px;border:1px solid var(--border);background:#f8fafc}.permission-panel h3{margin:0 0 6px;color:var(--blue)}.permission-panel p{margin:0 0 14px}.permission-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.check-card,.check-line{display:flex;align-items:center;gap:10px;font-weight:800}.check-card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:12px}.check-card input,.check-line input{width:auto}.mobile-header{display:none}.mobile-menu-toggle{background:var(--yellow);border:0;border-radius:12px;width:44px;height:44px;font-size:24px;line-height:1;color:#111827;cursor:pointer}.mobile-menu-toggle.inline{display:none}.sidebar-backdrop{display:none}
@media(max-width:1000px){.mobile-header{display:flex;align-items:center;gap:14px;background:var(--blue);padding:12px 16px;position:sticky;top:0;z-index:50;box-shadow:0 10px 25px rgba(0,0,0,.14)}.mobile-header img{width:176px;max-height:58px;object-fit:contain}.app{display:block;min-height:calc(100vh - 74px)}.sidebar{position:fixed;left:0;top:0;width:min(86vw,320px);height:100vh;z-index:100;transform:translateX(-105%);transition:transform .22s ease;box-shadow:20px 0 60px rgba(15,23,42,.28)}body.sidebar-open .sidebar{transform:translateX(0)}.sidebar-close{display:block}.sidebar-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.46);z-index:90}body.sidebar-open .sidebar-backdrop{display:block}.grid.cards,.form-grid,.form-grid.three,.form-grid.four,.permission-grid{grid-template-columns:1fr}.main{padding:20px}.topbar{align-items:flex-start;gap:12px;flex-direction:column}.topbar h1{font-size:25px}.mobile-menu-toggle.inline{display:none}.table-wrap{overflow-x:auto}.items-table .name-input{min-width:240px}.section-title{align-items:flex-start;flex-direction:column}.grid[style]{grid-template-columns:1fr!important}}

/* v5 refinements */
.public-link-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}.copy-feedback{font-weight:800;color:var(--success);font-size:13px}.public-link-row .public-link{display:inline-flex;max-width:100%;word-break:break-all;background:#f8fafc;border:1px solid var(--border);border-radius:12px;padding:8px 10px;color:var(--info)}
@media(max-width:1000px){.mobile-header{box-shadow:none}.sidebar{box-shadow:none}body.sidebar-open .sidebar-backdrop{background:rgba(15,23,42,.18)}}

/* v6 client types */
.company-fields{margin-top:18px;padding:18px;border:1px solid var(--border);border-radius:18px;background:#f8fafc}.company-fields h3{margin:0 0 14px;color:var(--blue)}
.table .muted{font-size:12px}

/* v7 refinements */
.quote-number-link{color:var(--blue);text-decoration:underline;text-decoration-color:rgba(255,198,39,.85);text-underline-offset:3px}.notes-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.note-item{border:1px solid var(--border);border-radius:14px;background:#f8fafc;padding:12px;margin:10px 0}.note-item p{margin:8px 0 0}.card h3{margin:0 0 10px;color:var(--blue);font-size:16px}
@media(max-width:1000px){.notes-columns{grid-template-columns:1fr}}

/* v8 refinements */
.auth-card{width:min(560px,92vw)}
.brand-mark.logo-auth{width:100%;height:104px;border-radius:24px;margin:0 auto 28px;padding:18px 28px;background:var(--blue)}
.brand-mark.logo-auth img{max-width:310px;width:100%;height:100%;object-fit:contain;margin:auto;display:block}
.auth-card h1{font-size:34px;line-height:1.12;margin-bottom:12px}
.auth-card .muted{font-size:18px;line-height:1.35}
.quote-client-topline{grid-template-columns:1.2fr .9fr .9fr}
@media(max-width:700px){.auth-card{padding:26px;border-radius:24px}.brand-mark.logo-auth{height:88px;padding:14px 20px}.auth-card h1{font-size:28px}.auth-card .muted{font-size:16px}}

/* v9 exports and login refinements */
.export-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.export-card{display:flex;flex-direction:column;justify-content:space-between;gap:18px}.export-card h3{margin:0 0 8px;color:var(--blue)}.export-card p{margin:0;line-height:1.45}.export-card .btn{align-self:flex-start}.export-info{border-left:4px solid var(--yellow)}
.auth-card .muted{max-width:100%;}
@media(max-width:1000px){.export-grid{grid-template-columns:1fr}}

/* v10 status colors */
.badge.custom{border:1px solid currentColor;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
.status-color-panel{margin-top:18px;padding:18px;border:1px solid var(--border);border-radius:18px;background:#f8fafc}
.status-color-panel h3{margin:0 0 6px;color:var(--blue)}
.status-color-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.status-color-row{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid var(--border);border-radius:14px;padding:12px}
.status-color-row input[type="color"]{width:46px;height:38px;min-width:46px;padding:3px;border-radius:10px;cursor:pointer}
@media(max-width:1000px){.status-color-grid{grid-template-columns:1fr}.status-color-row{align-items:center}}

/* v11 quote generation preview */
.diameter-preview-card{margin-top:18px;padding:18px;border:1px solid var(--border);border-radius:18px;background:#fff}
.diameter-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.diameter-preview-head h3{margin:0 0 6px;color:var(--blue)}
.diameter-preview-head p{margin:0}
.diameter-preview-head strong{background:var(--blue);color:#fff;border-radius:999px;padding:7px 12px;white-space:nowrap}
.compact-preview{max-height:340px;overflow:auto;border:1px solid var(--border);border-radius:18px}
.compact-preview .table{border:0;border-radius:0}
.compact-preview .table th,.compact-preview .table td{font-size:13px;padding:10px 12px}
.diameter-preview-empty{padding:12px 14px;background:#fff8e6;border-left:4px solid var(--yellow);border-radius:12px;margin:10px 0 0}
@media(max-width:1000px){.diameter-preview-head{flex-direction:column}.compact-preview{max-height:280px}}

/* v13: oferta editabila inainte de creare, arhivare/cos si surse lead */
.create-items-table input{min-width:86px}.create-items-table .name-input{min-width:360px}.row-disabled{opacity:.42;background:#f8fafc}.row-disabled input:not([type="checkbox"]){text-decoration:line-through}.inline-form{display:inline-flex;margin:0}.danger-zone{margin-top:18px;padding:16px;border:1px solid #fecdca;background:#fff5f5;border-radius:18px}.danger-zone h3{margin:0 0 10px;color:var(--danger)}.danger-zone .form-actions{flex-wrap:wrap}.view-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.view-tabs a{padding:9px 12px;border-radius:999px;border:1px solid var(--border);background:#fff;font-weight:800}.view-tabs a.active{background:var(--blue);border-color:var(--blue);color:#fff}.source-select-plus{display:grid;grid-template-columns:1fr;gap:8px}.mini-help{font-size:12px;color:var(--muted);margin-top:6px}.archive-badge{background:#fef3c7;color:#92400e}.trash-badge{background:#fee2e2;color:#991b1b}
@media(max-width:1000px){.create-items-table .name-input{min-width:260px}.danger-zone .form-actions{flex-direction:column;align-items:stretch}.inline-form,.inline-form .btn{width:100%}}

/* v14: produse mai lizibile + salvare fara reincarcare */
.product-prices-table{table-layout:auto;min-width:1180px}
.product-prices-table .product-name-col{width:48%}
.product-prices-table .product-unit-col{width:9%}
.product-prices-table .product-price-col{width:14%}
.product-prices-table .product-qty-col{width:14%}
.product-prices-table .product-active-col{width:6%;text-align:center}
.product-prices-table .product-action-col{width:9%}
.product-prices-table .product-name-cell input,
.product-prices-table .product-name-input{min-width:520px;font-size:15px;font-weight:700;line-height:1.35;padding:12px 14px}
.product-prices-table .product-unit-input{min-width:82px;max-width:100px;text-align:center}
.product-prices-table .product-price-input,
.product-prices-table .product-qty-input{min-width:110px;max-width:140px}
.product-prices-table .product-active-input{width:auto;min-width:0;transform:scale(1.08)}
.product-save-cell{white-space:nowrap;vertical-align:middle}.product-save-btn[disabled]{opacity:.65;cursor:wait}.save-feedback{display:inline-flex;margin-left:8px;font-size:12px;font-weight:900;vertical-align:middle}.save-feedback.ok{color:var(--success)}.save-feedback.error{color:var(--danger)}
.create-items-table{min-width:1120px;table-layout:auto}.create-items-table .create-product-name-col{width:48%}.create-items-table .create-small-col{width:9%}.create-items-table .create-price-col{width:14%}.create-items-table .create-value-col{width:14%}.create-items-table .create-remove-col{width:6%}.create-items-table .create-name-input{min-width:540px;font-size:15px;font-weight:700;line-height:1.35;padding:12px 14px}.create-items-table .create-unit-input{min-width:80px;max-width:95px;text-align:center}.create-items-table .create-qty-input,.create-items-table .create-price-input{min-width:110px;max-width:140px}
@media(max-width:1000px){.product-prices-table{min-width:1060px}.product-prices-table .product-name-cell input,.product-prices-table .product-name-input{min-width:430px}.create-items-table{min-width:1040px}.create-items-table .create-name-input{min-width:430px}}


/* v15: cantitati fara .00, feedback vizibil si editare oferta mai lizibila */
.product-qty-input,.create-qty-input,.edit-qty-input{font-variant-numeric:tabular-nums}
.product-save-cell{display:flex;align-items:center;gap:8px;min-width:180px}
.save-feedback{min-width:112px;background:#ecfdf3;border:1px solid #abefc6;border-radius:999px;padding:5px 9px;line-height:1.1}
.save-feedback:empty{display:none!important}
.save-feedback.error{background:#fef3f2;border-color:#fecdca}
.edit-items-table{min-width:1120px;table-layout:auto}
.edit-items-table .edit-product-name-col{width:50%}
.edit-items-table .edit-small-col{width:9%}
.edit-items-table .edit-price-col{width:13%}
.edit-items-table .edit-value-col{width:13%}
.edit-items-table .edit-remove-col{width:6%}
.edit-items-table .edit-name-input{min-width:560px;font-size:15px;font-weight:700;line-height:1.35;padding:12px 14px}
.edit-items-table .edit-unit-input{min-width:80px;max-width:95px;text-align:center}
.edit-items-table .edit-qty-input,.edit-items-table .edit-price-input{min-width:110px;max-width:140px}
@media(max-width:1000px){.edit-items-table{min-width:1040px}.edit-items-table .edit-name-input{min-width:430px}.product-save-cell{min-width:170px}}

/* v16: autosave pentru produse si preturi */
.product-prices-table tr.autosave-dirty td{background:#fffbeb}
.product-prices-table tr.autosave-saving td{background:#eff6ff}
.product-prices-table tr.autosave-saved td{background:#f0fdf4;transition:background .25s ease}
.product-prices-table tr.autosave-error td{background:#fff1f2}
.save-feedback.dirty{background:#fff7ed;border-color:#fed7aa;color:#9a3412}
.save-feedback.saving{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}
.product-save-cell .btn.small{white-space:nowrap}
.autosave-note{margin-top:8px;color:var(--muted);font-size:13px}

/* v18: parteneri, recomandari si evidenta comisioane */
.referral-partner-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);gap:18px;align-items:center;margin:14px 0 16px;padding:16px 18px;border:1px solid rgba(255,198,39,.65);border-left:5px solid var(--yellow);border-radius:18px;background:#fffaf0}
.referral-partner-card[hidden]{display:none!important}.referral-partner-card h3{margin:0 0 5px;color:var(--blue)}.referral-partner-card p{margin:0}
.partner-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.partner-summary-grid.profile-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}.metric-card{padding:18px}.metric-card small{display:block;color:var(--muted);font-weight:800;margin-bottom:8px}.metric-card strong{display:block;color:var(--blue);font-size:24px;line-height:1.15}.metric-card.highlight{background:var(--blue);border-color:var(--blue)}.metric-card.highlight small,.metric-card.highlight strong{color:#fff}
.partners-table{min-width:1260px}.partner-profile-grid{grid-template-columns:.85fr 1.15fr}.partner-commission-inline{display:flex;flex-direction:column;gap:5px;margin:12px 0;padding:10px 12px;border-radius:12px;background:#fff8e6;border-left:4px solid var(--yellow);font-size:13px}.partner-commission-inline a{color:var(--blue);text-decoration:underline}.text-danger{color:var(--danger)}.text-success{color:var(--success)}.compact-title{margin-bottom:16px}
@media(max-width:1200px){.partner-summary-grid,.partner-summary-grid.profile-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px){.referral-partner-card{grid-template-columns:1fr}.partner-profile-grid{grid-template-columns:1fr!important}.partners-table{min-width:1120px}}
@media(max-width:620px){.partner-summary-grid,.partner-summary-grid.profile-metrics{grid-template-columns:1fr 1fr}.metric-card strong{font-size:19px}}

/* v19 - portal partener si comisioane */
.partner-portal-settings{margin-top:22px;padding:20px;border:1px solid rgba(21,61,99,.16);border-left:5px solid var(--yellow);border-radius:18px;background:linear-gradient(135deg,#f8fbff,#fff)}
.partner-portal-settings h3,.partner-portal-admin-card h3{margin:0 0 6px;color:var(--blue)}
.partner-portal-settings>.check-line{margin:16px 0}
.portal-security-note{display:flex;flex-direction:column;justify-content:center;gap:5px;padding:14px;border-radius:14px;background:#fff8e6;border:1px solid rgba(255,198,39,.5)}
.portal-security-note strong{color:var(--blue)}
.portal-security-note span{color:var(--muted);font-size:13px}
.portal-remove-password{align-self:end;min-height:70px}
.partner-portal-admin-card{margin-top:18px;border-left:5px solid var(--yellow)}
.partner-portal-admin-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.portal-admin-status{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.portal-admin-actions{margin-top:16px}.portal-last-access{margin:14px 0 0}.portal-link-row{margin-top:18px}
.portal-eyebrow{display:block;color:#8a6300;font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;margin-bottom:5px}
.portal-commission-state{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:900;white-space:nowrap}
.portal-commission-state.eligible{background:#dcfce7;color:#166534}.portal-commission-state.potential{background:#fef3c7;color:#92400e}.portal-commission-state.inactive{background:#f3f4f6;color:#6b7280}

.partner-portal-body{min-height:100vh;background:linear-gradient(145deg,#eef4f9 0%,#f8fafc 48%,#fff8e8 100%);color:#111827}
.partner-portal-shell{width:min(1440px,calc(100% - 32px));margin:0 auto;padding:28px 0 42px}.partner-portal-shell.narrow{width:min(520px,calc(100% - 28px));padding-top:8vh}
.portal-brand-bar{background:var(--blue);border-radius:24px 24px 0 0;padding:20px 26px;display:flex;justify-content:center}.portal-brand-bar img{width:230px;max-height:76px;object-fit:contain}
.portal-auth-card{background:#fff;border:1px solid var(--border);border-radius:0 0 24px 24px;padding:30px;box-shadow:0 28px 70px rgba(21,61,99,.15)}.portal-auth-card h1{margin:12px 0 8px;color:var(--blue)}.portal-auth-card label{display:block;margin:18px 0}.portal-full-button{width:100%;margin-top:4px}.portal-small-note{font-size:12px;color:var(--muted);margin:18px 0 0;line-height:1.5}.portal-contact-box{display:flex;flex-direction:column;gap:8px;margin-top:20px;padding:15px;border-radius:14px;background:#f8fafc}.portal-contact-box a{color:var(--blue);font-weight:800}
.portal-security-pill{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;background:#fff8e6;border:1px solid rgba(255,198,39,.55);color:#735400;font-size:12px;font-weight:900}
.partner-portal-header{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:22px;background:var(--blue);color:#fff;padding:22px 26px;border-radius:24px;box-shadow:0 18px 42px rgba(21,61,99,.18)}.portal-logo-wrap{width:230px}.portal-logo-wrap img{width:100%;max-height:76px;object-fit:contain}.portal-partner-heading h1{margin:2px 0 5px;font-size:30px}.portal-partner-heading p{margin:0;color:#dce8f3}.portal-partner-heading .portal-eyebrow{color:var(--yellow)}.portal-header-actions{display:flex;flex-direction:column;align-items:flex-end;gap:10px}.portal-logout{background:transparent;color:#fff;border-color:rgba(255,255,255,.28)}
.portal-metrics-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;margin:18px 0}.portal-metric{background:#fff;border:1px solid var(--border);border-radius:18px;padding:16px;box-shadow:0 8px 22px rgba(15,23,42,.035)}.portal-metric small{display:block;color:var(--muted);font-weight:800;margin-bottom:8px}.portal-metric strong{display:block;color:var(--blue);font-size:21px;line-height:1.2}.portal-metric.potential{border-top:4px solid #f59e0b}.portal-metric.eligible{border-top:4px solid #16a34a}.portal-metric.paid{border-top:4px solid #2563eb}.portal-metric.outstanding{background:var(--blue);border-color:var(--blue)}.portal-metric.outstanding small,.portal-metric.outstanding strong{color:#fff}
.portal-info-banner{display:flex;gap:12px;align-items:flex-start;padding:15px 18px;border-radius:16px;background:#fff8e6;border:1px solid rgba(255,198,39,.5);line-height:1.5}.portal-info-banner strong{color:var(--blue);white-space:nowrap}.portal-info-banner span{color:#475467}
.portal-section{margin-top:20px;background:#fff;border:1px solid var(--border);border-radius:22px;padding:22px;box-shadow:0 10px 28px rgba(15,23,42,.035)}.portal-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:16px}.portal-section-title h2{margin:0;color:var(--blue)}.portal-table-wrap{overflow-x:auto}.partner-portal-table{min-width:1020px}.portal-mobile-list{display:none}
.portal-payment-list{display:flex;flex-direction:column;gap:10px}.portal-payment-row{display:grid;grid-template-columns:220px 1fr;gap:20px;align-items:center;padding:14px 16px;border:1px solid var(--border);border-radius:15px;background:#f8fafc}.portal-payment-row>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.portal-payment-row strong{color:var(--blue);font-size:18px}.portal-payment-row span{color:var(--muted);font-size:13px}.portal-payment-row p{margin:0;color:#475467}
.partner-portal-footer{display:flex;justify-content:space-between;gap:24px;margin-top:20px;padding:20px 24px;border-radius:18px;background:var(--blue);color:#fff;line-height:1.6}.partner-portal-footer a{color:#fff}.partner-portal-footer span{color:#dce8f3}

@media(max-width:1280px){.portal-metrics-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.partner-summary-grid.profile-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.partner-portal-admin-head{flex-direction:column}.portal-admin-status{justify-content:flex-start}.partner-portal-header{grid-template-columns:1fr;text-align:center}.portal-logo-wrap{margin:0 auto}.portal-header-actions{align-items:center}.portal-metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-info-banner{flex-direction:column}.portal-info-banner strong{white-space:normal}.portal-desktop-only{display:none}.portal-mobile-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.portal-quote-card{border:1px solid var(--border);border-radius:16px;padding:15px;background:#f8fafc}.portal-quote-card-head{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:12px}.portal-quote-card-head strong{color:var(--blue);font-size:14px}.portal-quote-card h3{margin:10px 0;font-size:16px}.portal-quote-values{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.portal-quote-values span{display:flex;flex-direction:column;gap:4px;color:var(--muted);font-size:12px}.portal-quote-values b{color:#111827;font-size:14px}.portal-section-title{align-items:flex-start;flex-direction:column}.partner-summary-grid.profile-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.partner-portal-shell{width:min(100% - 20px,1440px);padding-top:12px}.partner-portal-shell.narrow{width:min(100% - 20px,520px);padding-top:5vh}.portal-brand-bar{padding:15px}.portal-brand-bar img{width:200px}.portal-auth-card{padding:22px}.partner-portal-header{padding:20px;border-radius:20px}.portal-logo-wrap{width:195px}.portal-partner-heading h1{font-size:24px}.portal-metrics-grid{grid-template-columns:1fr 1fr;gap:9px}.portal-metric{padding:13px}.portal-metric strong{font-size:17px}.portal-section{padding:16px}.portal-mobile-list{grid-template-columns:1fr}.portal-payment-row{grid-template-columns:1fr;gap:8px}.portal-payment-row>div{justify-content:flex-start}.partner-portal-footer{flex-direction:column}.partner-summary-grid.profile-metrics{grid-template-columns:1fr 1fr}.portal-admin-actions .btn,.portal-admin-actions form{width:100%}.portal-admin-actions form .btn{width:100%}}


/* v21 - produsele cu cantitate 0 rămân vizibile în generator, dar sunt marcate discret */
.create-items-table tr.row-zero-quantity td {
  background: #f8fafc;
}
.create-items-table tr.row-zero-quantity .create-name-input {
  color: #475569;
}
.create-items-table tr.row-zero-quantity [data-line-total] {
  color: #94a3b8;
}
