:root{--gray:#575756;--gray-dark:#3f3f3e;--gray-light:#8a8a89;--yellow:#fec708;--yellow-dark:#e0b400;--yellow-text:#5c4900;--bg:#f5f5f4;--card:#fff;--border:#e4e4e3;--text:#2b2b2a;--text-muted:#6d6d6c;--green:#1f9d55;--amber:#c98a12;--red:#c0392b;--radius:10px;--navy:var(--gray-dark);--navy-light:var(--gray);--accent:var(--yellow);--accent-dark:var(--yellow-text)}*{box-sizing:border-box}body,html{padding:0;margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}a{color:var(--accent-dark);text-decoration:none}a:hover{text-decoration:underline}.topbar{background:var(--navy);color:#fff;padding:14px 28px;display:flex;align-items:center;justify-content:space-between}.admin-layout{display:flex;align-items:stretch;min-height:100vh}.sidebar{width:232px;flex-shrink:0;background:var(--gray-dark);color:#fff;display:flex;flex-direction:column;position:-webkit-sticky;position:sticky;top:0;height:100vh;overflow-y:auto}.sidebar-brand{display:flex;align-items:center;justify-content:flex-start;padding:22px 20px;border-bottom:1px solid hsla(0,0%,100%,.1)}.sidebar-nav{flex:1 1;padding:14px 12px;display:flex;flex-direction:column;gap:2px}.sidebar-link{color:hsla(0,0%,100%,.75);font-size:14px;font-weight:600;padding:11px 14px;border-radius:8px}.sidebar-link:hover{color:#fff;background:hsla(0,0%,100%,.07);text-decoration:none}.sidebar-link.active{color:var(--gray-dark);background:var(--yellow)}.sidebar-bottom-nav{padding:0 12px 44px}.sidebar-footer{padding:16px 20px;border-top:1px solid hsla(0,0%,100%,.1);display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px}.sidebar-footer .sidebar-user{color:hsla(0,0%,100%,.85);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-main{flex:1 1;min-width:0}.brand{gap:10px;font-weight:700;font-size:18px;letter-spacing:.3px}.brand,.brand-mark{display:flex;align-items:center}.brand-mark{width:30px;height:30px;border-radius:8px;background:var(--yellow);justify-content:center;font-weight:800;color:var(--gray-dark);font-size:14px}.brand-logo{height:28px;width:auto;max-width:100%;display:block}.topbar-right{display:flex;gap:16px}.btn,.topbar-right{align-items:center;font-size:14px}.btn{display:inline-flex;justify-content:center;gap:6px;padding:10px 18px;border-radius:8px;border:none;background:var(--yellow);color:var(--gray-dark);font-weight:700;cursor:pointer;transition:background .15s ease}.btn:hover{background:var(--yellow-dark);text-decoration:none}.btn.secondary{background:transparent;color:var(--text);border:1px solid var(--border);font-weight:600}.btn.secondary:hover{background:#fff;text-decoration:none}.btn.ghost{background:transparent;color:#fff;border:1px solid hsla(0,0%,100%,.35)}.btn.ghost:hover{background:hsla(0,0%,100%,.1);text-decoration:none}.btn.danger{background:transparent;color:var(--red);border:1px solid #f5c6c0;font-weight:600}.btn.danger:hover{background:#fdecea;text-decoration:none}.btn:disabled{opacity:.6;cursor:not-allowed}.page{max-width:1100px;margin:0 auto;padding:32px 24px 64px}.page.narrow{max-width:460px}.admin-main .page{max-width:100%;margin:0;padding:32px 32px 64px}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:24px;box-shadow:0 1px 2px rgba(16,36,62,.04)}.card+.card{margin-top:20px}h1{font-size:24px;margin:0 0 6px}h2{font-size:18px;margin:0 0 16px}.subtitle{color:var(--text-muted);margin:0 0 24px;font-size:14px}.field{margin-bottom:16px}.field label{display:block;font-size:13px;font-weight:600;margin-bottom:6px;color:var(--text)}.field input,.field select,.field textarea{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:8px;font-size:14px;font-family:inherit;background:#fff;color:var(--text)}.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--yellow-dark);box-shadow:0 0 0 3px rgba(254,199,8,.25)}.field .hint{font-size:12px;color:var(--text-muted);margin-top:4px}.row{display:flex;flex-wrap:wrap;gap:16px}.row>.field{flex:1 1}.row>.field.field-price{flex:0 0 160px}.row-subhead{font-size:12px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.02em;margin:0 0 6px}.compact-form .card{padding:18px}.compact-form .card+.card{margin-top:14px}.compact-form h1{font-size:20px}.compact-form h2{font-size:15px;margin:0 0 12px}.compact-form .subtitle{font-size:12.5px;margin:0 0 18px}.compact-form .field{margin-bottom:12px}.compact-form .field label{font-size:11.5px;margin-bottom:4px}.compact-form .field input,.compact-form .field select,.compact-form .field textarea{padding:7px 10px;font-size:12.5px}.compact-form .row{gap:12px}.compact-form .row>.field.field-price{flex:0 0 128px}.compact-form .row-subhead{font-size:11px;margin-bottom:4px}.compact-form .item-card-header h3{font-size:14px}.compact-form .item-section-divider{font-size:11px}.compact-form .widget-row{padding:7px 0;font-size:12px}.compact-form .item-summary-row{padding:8px 13px;margin-bottom:12px}.compact-form .item-summary-col{font-size:12px;padding:0 16px}.compact-form .btn{padding:9px 16px;font-size:13px}.compact-form .hint{font-size:11px}.compact-form .client-result{padding:8px 10px;font-size:12.5px;margin-bottom:6px}.compact-form .client-result-detail{font-size:11.5px;gap:3px 16px;margin-top:5px}.compact-form .item-grid{gap:8px}.compact-form .item-grid .field label{font-size:10px;margin-bottom:2px}.compact-form .item-grid .field input,.compact-form .item-grid .field select{font-size:11px;padding:5px 7px}.error-banner{background:#fdecea;border:1px solid #f5c6c0;color:var(--red);padding:10px 14px;border-radius:8px;font-size:14px;margin-bottom:16px}.hurt-approval-box{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fdf3da;border:1px solid var(--yellow-dark);border-radius:8px;padding:12px 16px;margin-bottom:16px;font-size:13px}.hurt-approval-box .hint{color:var(--text-muted);font-size:12px;margin-top:2px}.hurt-approval-box.approved{background:#e9f7ee;border-color:var(--green)}.hurt-approval-box button{white-space:nowrap}.success-banner{background:#e9f7ee;border:1px solid #b9e3c6;color:var(--green);padding:10px 14px;border-radius:8px;font-size:14px;margin-bottom:16px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:14px}td,th{text-align:left;padding:10px 12px;border-bottom:1px solid var(--border);vertical-align:top}th{font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted);font-weight:600}tr:last-child td{border-bottom:none}.badge{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}.badge.status-nowe{background:#fff3cc;color:var(--accent-dark)}.badge.status-oferta-przygotowana,.badge.status-oferta-wyslana{background:#fdf3da;color:var(--amber)}.badge.status-zaakceptowana{background:#fff3cc;color:var(--accent-dark)}.badge.status-wyslane{background:#dbeafe;color:#1e40af}.badge.status-w-realizacji{background:#fff3cc;color:var(--accent-dark)}.badge.status-zrealizowana,.badge.status-zrealizowane{background:#e9f7ee;color:var(--green)}.badge.status-anulowana,.badge.status-anulowane{background:#fdecea;color:var(--red)}.badge.category{background:var(--bg);color:var(--gray-dark);border:1px solid var(--border);margin:4px 0}.badge.kind-oferta{background:#fdf3da;color:var(--amber)}.badge.kind-zamowienie{background:#dbeafe;color:#1e40af}.badge.kind-klient{background:var(--bg);color:var(--gray-dark);border:1px solid var(--border)}.empty-state{text-align:center;padding:40px 20px;color:var(--text-muted)}.grid-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));grid-gap:16px;gap:16px;margin-bottom:24px}.stat-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:18px}.stat-card .num{font-size:26px;font-weight:700;color:var(--navy)}.stat-card .label{font-size:13px;color:var(--text-muted);margin-top:4px}.tabs{display:flex;gap:8px;margin-bottom:20px;border-bottom:1px solid var(--border)}.tab{padding:10px 4px;margin-right:20px;font-size:14px;font-weight:600;color:var(--text-muted);cursor:pointer;border-bottom:2px solid transparent}.tab.active{color:var(--navy);border-bottom-color:var(--accent)}select.status-select{padding:6px 8px;font-size:13px;border-radius:6px;border:1px solid var(--border)}input.status-select-search{padding:6px 8px;font-size:13px;border-radius:6px;border:1px solid var(--yellow-dark)}input.status-select-search:focus{outline:none;border-color:var(--yellow-dark);box-shadow:0 0 0 2px rgba(254,199,8,.25)}.widget-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));grid-gap:20px;gap:20px}.widget-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:20px}.widget-card h2{display:flex;justify-content:space-between;align-items:center}.widget-card h2 a{font-size:12px;font-weight:600}.widget-row{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:10px 0;border-bottom:1px solid var(--border);font-size:13.5px}.widget-row:last-child{border-bottom:none}.widget-row .w-title{font-weight:600}.widget-row .w-meta{color:var(--text-muted);font-size:12px;margin-top:2px}.widget-row .w-right{text-align:right;white-space:nowrap}.center-loading{text-align:center;padding:60px 0;color:var(--text-muted)}.section-subhead{font-size:16px;margin:28px 0 12px}.pulpit-header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.search-box{position:relative;width:260px}.search-box .search-icon{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:var(--text-muted);pointer-events:none}.search-box input{width:100%;padding:10px 12px 10px 34px;border:1px solid var(--border);border-radius:8px;font-size:14px;background:var(--card);color:var(--text)}.search-box input:focus{outline:none;border-color:var(--yellow-dark)}.search-dropdown{position:absolute;top:calc(100% + 6px);left:0;right:0;background:var(--card);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.12);max-height:360px;overflow-y:auto;z-index:20}.search-dropdown-empty{padding:16px;text-align:center;color:var(--text-muted);font-size:13px}.search-result-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--border);color:inherit}.search-result-row:last-child{border-bottom:none}.search-result-row:hover{background:var(--bg);text-decoration:none}.search-result-row .badge{flex-shrink:0}.search-result-body{min-width:0}.search-result-title{font-weight:600;font-size:13.5px}.search-result-subtitle{color:var(--text-muted);font-size:12px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.landing-hero{text-align:center;padding:80px 20px}.landing-hero h1{font-size:34px;margin-bottom:12px}.landing-hero p{color:var(--text-muted);font-size:16px;max-width:520px;margin:0 auto 28px}.landing-actions{display:flex;gap:12px;justify-content:center}.item-card{border:1px solid var(--border);border-radius:var(--radius);padding:18px;margin-bottom:16px;background:#fbfcfe;position:relative}.item-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.item-card-header h3{margin:0;font-size:15px}.item-grid{display:grid;grid-template-columns:repeat(5,1fr);grid-gap:10px;gap:10px}.item-grid .field{margin-bottom:0}.item-grid .field label{font-size:11px;margin-bottom:3px}.item-grid .field input,.item-grid .field select{font-size:12px;padding:6px 8px}.item-grid input[readonly]{background:var(--bg);color:var(--text-muted);cursor:default}.item-section-divider{margin:22px 0 14px;padding-top:18px;border-top:1px dashed var(--border);font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted)}.btn-remove{background:transparent;border:none;color:var(--red);font-size:13px;cursor:pointer;font-weight:600}.btn-remove:hover{text-decoration:underline}.btn.add-item{background:transparent;border:2px dashed var(--yellow-dark);color:var(--yellow-text);width:100%;padding:12px}.btn.add-item:hover{background:#fff8e0}.item-summary-row{justify-content:space-between;gap:12px;border:1px solid var(--border);border-radius:var(--radius);padding:10px 16px;margin-bottom:16px;background:#fbfcfe}.item-summary-cols,.item-summary-row{display:flex;flex-wrap:wrap;align-items:center}.item-summary-cols{flex:1 1 320px;min-width:0;row-gap:6px}.item-summary-col{font-size:13.5px;line-height:1.5;padding:0 20px;border-right:1px solid var(--border);white-space:nowrap}.item-summary-col:first-child{padding-left:0}.item-summary-col:last-child{border-right:none;padding-right:0}.item-summary-col strong,.item-summary-num{font-weight:700}.item-summary-actions{display:flex;gap:14px;align-items:center;flex:0 0 auto}.client-picker-toggle{display:flex;gap:8px;margin-bottom:16px}.client-picker-toggle .pill{padding:8px 16px;border-radius:999px;border:1px solid var(--border);font-size:13px;font-weight:600;cursor:pointer;color:var(--text-muted);background:#fff}.client-picker-toggle .pill.active{background:var(--navy);color:#fff;border-color:var(--navy)}.client-result{padding:10px 12px;border:1px solid var(--border);border-radius:8px;cursor:pointer;margin-bottom:8px;font-size:14px}.client-result:hover{border-color:var(--yellow-dark);background:#fffaeb}.client-result.selected{border-color:var(--yellow-dark);background:#fff3cc}.client-result .name{font-weight:600}.client-result .meta{font-size:12px;color:var(--text-muted)}.client-result-detail{display:flex;flex-wrap:wrap;width:100%;gap:4px 22px;margin-top:6px;font-size:13px}.client-result-detail .pair{display:flex;gap:5px;white-space:nowrap}.client-result-detail .pair .label{font-weight:600;color:var(--text-muted)}.doc-flag-group{display:flex;gap:6px;flex-wrap:wrap}.doc-flag-btn{padding:5px 10px;border-radius:6px;border:1px solid var(--border);background:#fff;color:var(--text);font-size:12px;font-weight:700;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease}.doc-flag-btn:hover{background:var(--bg)}.doc-flag-btn.active-client{background:#dcfce7;border-color:#86efac;color:#166534}.doc-flag-btn.active-client:hover{background:#c9f6db}.doc-flag-btn.active-production{background:#fee2e2;border-color:#fca5a5;color:#991b1b}.doc-flag-btn.active-production:hover{background:#fdd0cf}select.status-select.status-nowe{background:#fff;border-color:var(--border);color:var(--text)}select.status-select.status-wyslane{background:#dbeafe;border-color:#93c5fd;color:#1e40af}select.status-select.status-realizacja{background:#dcfce7;border-color:#86efac;color:#166534}select.status-select.status-zrealizowane{background:#fef9c3;border-color:#fde047;color:#854d0e}.card-accent{border-color:var(--yellow-dark)}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));grid-gap:16px;gap:16px}.product-card{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:#fff}.product-photo{width:100%;aspect-ratio:1/1;background:#eef1f5 50%/cover no-repeat;display:flex;align-items:center;justify-content:center;color:var(--text-muted);font-size:12px}.product-photo img{width:100%;height:100%;object-fit:cover}.product-card-body{padding:12px 14px}.product-card-body .pname{font-weight:700;font-size:14px;margin-bottom:4px}.product-card-body .pprice{color:var(--accent-dark);font-weight:700;font-size:14px}.product-card-body .pdesc{font-size:12px;color:var(--text-muted);margin:6px 0;min-height:32px}.product-card-actions{display:flex;gap:8px;padding:0 14px 14px}.product-card-actions button{flex:1 1;font-size:12px;padding:7px 10px}.category-tiles{display:grid;grid-template-columns:repeat(5,1fr);grid-gap:14px;gap:14px;margin-bottom:24px}.category-tile{cursor:pointer;border:2px solid transparent;border-radius:var(--radius);overflow:hidden;background:var(--bg);transition:border-color .15s ease,transform .1s ease}.category-tile:hover{transform:translateY(-1px)}.category-tile.active{border-color:var(--yellow);background:#fffaeb}.category-tile-photo{position:relative;height:90px;background:#eef1f5 50%/cover no-repeat;display:flex;align-items:center;justify-content:center}.category-tile-placeholder{font-size:11px;color:var(--text-muted)}.category-tile-upload{position:absolute;left:0;right:0;bottom:0;background:rgba(63,63,62,.75);color:#fff;font-size:11px;text-align:center;padding:4px;cursor:pointer;opacity:0;transition:opacity .15s ease}.category-tile-photo:hover .category-tile-upload{opacity:1}.category-tile-label{text-align:center;font-weight:700;font-size:13px;padding:8px 6px;color:var(--gray-dark)}@media (max-width:900px){.category-tiles{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}}.photo-upload{display:flex;align-items:center;gap:14px}.photo-preview{width:90px;height:90px;border-radius:8px;background:#eef1f5 50%/cover no-repeat;border:1px solid var(--border);flex-shrink:0}.detail-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px;flex-wrap:wrap;gap:12px}.detail-header .meta-line{color:var(--text-muted);font-size:14px;margin-top:4px}.action-bar{display:flex;gap:10px;flex-wrap:wrap}.spec-table td,.spec-table th{font-size:13px}.spec-table th{white-space:nowrap}.print-page{max-width:860px;margin:0 auto;background:#fff;padding:48px}.print-toolbar{max-width:860px;margin:16px auto;display:flex;justify-content:flex-end;gap:10px}.print-header{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:3px solid var(--navy);padding-bottom:20px;margin-bottom:28px}.print-brand{font-size:22px;font-weight:800;color:var(--gray-dark)}.print-brand span{color:var(--yellow-text)}.print-doc-title{text-align:right}.print-doc-title h1{margin:0;font-size:20px}.print-doc-title .num{color:var(--text-muted);font-size:13px;margin-top:4px}.print-section{margin-bottom:26px}.print-section h2{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);border-bottom:1px solid var(--border);padding-bottom:6px;margin-bottom:12px}.print-parties{display:flex;gap:40px}.print-parties .party{flex:1 1}.print-parties .party .label{font-size:11px;text-transform:uppercase;color:var(--text-muted);margin-bottom:4px}.print-parties .party .line{font-size:14px;margin-bottom:2px}.print-item{border:1px solid var(--border);border-radius:8px;padding:14px 16px;margin-bottom:12px}.print-item-title{font-weight:700;font-size:14px;margin-bottom:8px;display:flex;justify-content:space-between}.print-spec-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:6px 18px;gap:6px 18px;font-size:12.5px}.print-spec-grid .spec-label{color:var(--text-muted)}.print-total{display:flex;justify-content:flex-end;gap:30px;font-size:16px;font-weight:700;border-top:2px solid var(--navy);padding-top:14px;margin-top:6px}.print-footer{margin-top:40px;font-size:12px;color:var(--text-muted);border-top:1px solid var(--border);padding-top:16px}@media print{.no-print{display:none!important}.print-page{padding:0;max-width:none}body{background:#fff}}html[data-theme] body{font-family:Manrope,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background-attachment:fixed;min-height:100vh}html[data-theme] .btn{border-radius:12px}html[data-theme] .btn:not(.secondary):not(.ghost):not(.danger):not(.add-item){box-shadow:0 10px 24px -12px rgba(214,167,0,.75)}html[data-theme] .card,html[data-theme] .stat-card,html[data-theme] .widget-card{border-radius:16px}html[data-theme] .sidebar{width:250px}html[data-theme] .sidebar-brand{padding:26px 22px;border-bottom:none}html[data-theme] .sidebar-link{border-radius:12px}html[data-theme] .sidebar-link.active{color:#1c1c1b;background:var(--yellow);box-shadow:0 10px 26px -10px rgba(254,199,8,.6)}html[data-theme] .category-tile-label,html[data-theme] .stat-card .num,html[data-theme] .tab.active{color:var(--text)}.logo-for-light,html[data-theme=light] .sidebar .logo-for-dark{display:none!important}html[data-theme=light] .sidebar .logo-for-light{display:block!important}html[data-theme] .print-page{--text:#2b2b2a;--text-muted:#6d6d6c;--border:#e4e4e3;--card:#fff;--bg:#f5f5f4;color:#2b2b2a;background:#fff}@media print{html[data-theme] body{background:#fff!important;color:#000}}html[data-theme=dark]{color-scheme:dark;--bg:#30363c;--card:#3a4047;--border:hsla(0,0%,100%,.12);--text:#f2f3f5;--text-muted:#c9ced4;--yellow-text:#fec708;--green:#6fcf8f;--amber:#f5c46b;--red:#f3a9a2;background:#2a2f35}html[data-theme=dark] body{background:radial-gradient(1200px 600px at 75% -10%,#5a616a 0,#383e45 45%,#2a2f35 100%) #2a2f35}html[data-theme=dark] .sidebar{background:rgba(0,0,0,.14);border-right:1px solid hsla(0,0%,100%,.06)}html[data-theme=dark] .sidebar-link{color:#c3c9d0}html[data-theme=dark] .sidebar-footer{border-top-color:hsla(0,0%,100%,.08)}html[data-theme=dark] .card,html[data-theme=dark] .stat-card,html[data-theme=dark] .widget-card{background:linear-gradient(160deg,hsla(0,0%,100%,.09),hsla(0,0%,100%,.03));border-color:hsla(0,0%,100%,.1);box-shadow:0 24px 50px -26px rgba(0,0,0,.6),inset 0 1px 0 hsla(0,0%,100%,.1)}html[data-theme=dark] .card-accent{border-color:rgba(254,199,8,.55)}html[data-theme=dark] .field input,html[data-theme=dark] .field select,html[data-theme=dark] .field textarea,html[data-theme=dark] .search-box input,html[data-theme=dark] input.status-select-search,html[data-theme=dark] select.status-select{background:rgba(0,0,0,.2);border-color:hsla(0,0%,100%,.16);color:#f2f3f5}html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#9aa3ad}html[data-theme=dark] option{background:#383e45;color:#f2f3f5}html[data-theme=dark] .item-grid input[readonly]{background:rgba(0,0,0,.12);color:var(--text-muted)}html[data-theme=dark] .btn.secondary{color:var(--text)}html[data-theme=dark] .btn.secondary:hover{background:hsla(0,0%,100%,.08)}html[data-theme=dark] .btn.danger{border-color:hsla(5,77%,79%,.5)}html[data-theme=dark] .btn.danger:hover{background:rgba(230,90,80,.14)}html[data-theme=dark] .btn.add-item:hover{background:rgba(254,199,8,.08)}html[data-theme=dark] .search-dropdown{background:#3a4047;box-shadow:0 16px 40px rgba(0,0,0,.5)}html[data-theme=dark] .search-result-row:hover{background:hsla(0,0%,100%,.06)}html[data-theme=dark] .error-banner{background:rgba(230,90,80,.15);border-color:rgba(230,90,80,.45);color:#f3a9a2}html[data-theme=dark] .success-banner{background:rgba(80,190,120,.15);border-color:rgba(80,190,120,.45);color:#9fe0b5}html[data-theme=dark] .hurt-approval-box{background:rgba(254,199,8,.1)}html[data-theme=dark] .hurt-approval-box.approved{background:rgba(80,190,120,.14)}html[data-theme=dark] .badge.status-nowe,html[data-theme=dark] .badge.status-w-realizacji,html[data-theme=dark] .badge.status-zaakceptowana{background:rgba(254,199,8,.16);color:#fec708}html[data-theme=dark] .badge.kind-oferta,html[data-theme=dark] .badge.status-oferta-przygotowana,html[data-theme=dark] .badge.status-oferta-wyslana{background:rgba(240,170,60,.18);color:#f5c46b}html[data-theme=dark] .badge.kind-zamowienie,html[data-theme=dark] .badge.status-wyslane{background:rgba(120,170,230,.18);color:#b9d4f5}html[data-theme=dark] .badge.status-zrealizowana,html[data-theme=dark] .badge.status-zrealizowane{background:rgba(80,190,120,.18);color:#9fe0b5}html[data-theme=dark] .badge.status-anulowana,html[data-theme=dark] .badge.status-anulowane{background:rgba(230,90,80,.18);color:#f3a9a2}html[data-theme=dark] .badge.category,html[data-theme=dark] .badge.kind-klient{background:hsla(0,0%,100%,.08);color:#dde1e5}html[data-theme=dark] .client-picker-toggle .pill{background:transparent}html[data-theme=dark] .client-picker-toggle .pill.active{background:var(--yellow);color:#1c1c1b;border-color:var(--yellow)}html[data-theme=dark] .client-result:hover{background:rgba(254,199,8,.08)}html[data-theme=dark] .client-result.selected{background:rgba(254,199,8,.14)}html[data-theme=dark] .doc-flag-btn{background:hsla(0,0%,100%,.05);color:var(--text)}html[data-theme=dark] .doc-flag-btn:hover{background:hsla(0,0%,100%,.1)}html[data-theme=dark] .doc-flag-btn.active-client{background:rgba(80,190,120,.2);border-color:rgba(80,190,120,.55);color:#9fe0b5}html[data-theme=dark] .doc-flag-btn.active-production{background:rgba(230,90,80,.2);border-color:rgba(230,90,80,.55);color:#f3a9a2}html[data-theme=dark] select.status-select.status-nowe{background:rgba(0,0,0,.2);color:var(--text)}html[data-theme=dark] select.status-select.status-wyslane{background:rgba(120,170,230,.2);border-color:rgba(120,170,230,.5);color:#b9d4f5}html[data-theme=dark] select.status-select.status-realizacja{background:rgba(80,190,120,.2);border-color:rgba(80,190,120,.5);color:#9fe0b5}html[data-theme=dark] select.status-select.status-zrealizowane{background:rgba(254,199,8,.16);border-color:rgba(254,199,8,.5);color:#fec708}html[data-theme=dark] .item-card,html[data-theme=dark] .item-summary-row{background:rgba(0,0,0,.12)}html[data-theme=dark] .product-card{background:var(--card)}html[data-theme=dark] .category-tile-photo,html[data-theme=dark] .photo-preview,html[data-theme=dark] .product-photo{background-color:#30363c}html[data-theme=dark] .category-tile{background:hsla(0,0%,100%,.05)}html[data-theme=dark] .category-tile.active{background:rgba(254,199,8,.1)}html[data-theme=light]{color-scheme:light;--bg:#eef0f3;--card:#fff;--border:#dde1e6;--text:#2a2f35;--text-muted:#5a636d;--gray-dark:#383e45;background:#e2e6ea}html[data-theme=light] body{background:radial-gradient(1200px 600px at 75% -10%,#fff 0,#eef0f3 45%,#e2e6ea 100%) #e2e6ea}html[data-theme=light] .sidebar{background:hsla(0,0%,100%,.55);border-right:1px solid #dde1e6;color:#2a2f35}html[data-theme=light] .sidebar-link{color:#3a4048}html[data-theme=light] .sidebar-link:hover{color:#1f2329;background:rgba(56,62,69,.07)}html[data-theme=light] .sidebar-footer{border-top-color:#dde1e6}html[data-theme=light] .sidebar-footer .sidebar-user{color:#3a4048}html[data-theme=light] .sidebar .btn.ghost{color:#2a2f35;border-color:#c9ced4}html[data-theme=light] .sidebar .btn.ghost:hover{background:rgba(56,62,69,.07)}html[data-theme=light] .card,html[data-theme=light] .stat-card,html[data-theme=light] .widget-card{border-color:#dde1e6;box-shadow:0 22px 40px -30px rgba(42,47,53,.45),0 1px 2px rgba(42,47,53,.05)}html[data-theme=light] .field input,html[data-theme=light] .field select,html[data-theme=light] .field textarea{border-color:#d3d8de}html[data-theme=light] .item-card,html[data-theme=light] .item-summary-row{background:#f6f7f9}html[data-theme=light] .client-picker-toggle .pill.active{background:#383e45;border-color:#383e45}html[data-theme=light] .badge.category,html[data-theme=light] .badge.kind-klient{color:#383e45}.theme-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));grid-gap:14px;gap:14px}.theme-option{display:flex;flex-direction:column;gap:10px;text-align:left;cursor:pointer;padding:14px;border-radius:14px;border:2px solid var(--border);background:transparent;color:var(--text);font:inherit}.theme-option.active{border-color:var(--yellow);box-shadow:0 0 0 3px rgba(254,199,8,.25)}.theme-option .theme-preview{height:88px;border-radius:10px;display:flex;gap:8px;padding:10px}.theme-option .theme-preview .tp-side{width:26%;border-radius:6px}.theme-option .theme-preview .tp-main{flex:1 1;display:flex;flex-direction:column;gap:6px}.theme-option .theme-preview .tp-card{flex:1 1;border-radius:6px}.theme-option .theme-name{font-weight:800;font-size:14px}.theme-option .theme-desc{font-size:12px;color:var(--text-muted)}html[data-theme=dark]{--logo-ink:#fff}html[data-theme=light]{--logo-ink:#383e45}html[data-theme] .sidebar-brand{padding:30px 22px 24px}html[data-theme] .sidebar-brand:hover{text-decoration:none}.rv-logo{display:block;width:190px;max-width:100%;height:auto;overflow:visible}.rv-letters,.rv-v{fill:var(--logo-ink,#fff)}.rv-bar{fill:#fec708;transform-box:fill-box;transform-origin:left center}.rv-letters,.rv-v{transform-box:fill-box;transform-origin:center}.rv-glint{animation:rvGlint 9s ease-in-out 3.2s infinite}html[data-theme=dark] .rv-logo{filter:drop-shadow(0 8px 22px rgba(254,199,8,.16))}.rv-intro .rv-letters{animation:rvIn .8s cubic-bezier(.2,.7,.2,1) both}.rv-intro .rv-v{animation:rvDrop .9s cubic-bezier(.3,1.45,.5,1) .35s both}.rv-intro .rv-bar{animation:rvBar 1.6s cubic-bezier(.6,0,.2,1) .6s both}.sidebar-brand:hover .rv-bar{animation:rvBarAgain 1.2s cubic-bezier(.6,0,.2,1)}@keyframes rvIn{0%{opacity:0;transform:translateY(6px);filter:blur(2px)}to{opacity:1;transform:none;filter:none}}@keyframes rvDrop{0%{opacity:0;transform:translateY(-26px)}55%{opacity:1}to{opacity:1;transform:none}}@keyframes rvBar{0%{transform:scaleX(0)}50%{transform:scaleX(8.15)}to{transform:scaleX(1)}}@keyframes rvBarAgain{0%{transform:scaleX(1)}50%{transform:scaleX(8.15)}to{transform:scaleX(1)}}@keyframes rvGlint{0%{transform:translateX(0)}20%{transform:translateX(300px)}to{transform:translateX(300px)}}@media (prefers-reduced-motion:reduce){.rv-logo *{animation:none!important}}.mail-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:16px}.mail-toolbar .grow{flex:1 1}.mail-toolbar input[type=search]{min-width:220px;padding:9px 12px;border:1px solid var(--border);border-radius:10px;background:var(--card);color:var(--text)}.mail-tabs{display:flex;gap:6px;flex-wrap:wrap}.mail-tab{padding:8px 14px;border-radius:999px;border:1px solid var(--border);background:transparent;color:var(--text);cursor:pointer;font-size:14px;font-weight:600}.mail-tab.on{background:var(--yellow);border-color:var(--yellow);color:#1c1c1b}.mail-tab .count{display:inline-block;min-width:20px;margin-left:6px;padding:0 6px;border-radius:999px;background:rgba(0,0,0,.12);font-size:12px;text-align:center}.mail-grid{display:grid;grid-template-columns:minmax(280px,400px) 1fr;grid-gap:16px;gap:16px;align-items:start}.mail-list{padding:0!important;overflow:hidden}.mail-item{display:block;width:100%;text-align:left;padding:12px 14px;border:0;border-bottom:1px solid var(--border);background:transparent;color:var(--text);cursor:pointer;border-radius:0!important;box-shadow:none!important}.mail-item:hover{background:hsla(0,0%,50%,.08)}.mail-item.sel{background:rgba(254,199,8,.16)}.mail-item.unseen .mi-subject{font-weight:800}.mi-top{display:flex;justify-content:space-between;gap:8px;font-size:13px;color:var(--text-muted)}.mi-from{font-weight:700;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mi-subject{font-size:14px}.mi-preview,.mi-subject{margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mi-preview{font-size:12px;color:var(--text-muted)}.mi-badges{margin-top:6px;display:flex;gap:6px;flex-wrap:wrap}.mail-pager{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;font-size:13px;color:var(--text-muted)}.mail-detail h2{margin:0 0 6px;font-size:20px}.mail-meta{font-size:13px;color:var(--text-muted);line-height:1.6}.mail-body{white-space:pre-wrap;word-break:break-word;font-size:14px;line-height:1.55;margin-top:14px;padding-top:14px;border-top:1px solid var(--border);max-height:520px;overflow:auto}.mail-kv{display:grid;grid-template-columns:150px 1fr;grid-gap:6px 14px;gap:6px 14px;font-size:14px}.mail-kv dt{color:var(--text-muted)}.mail-kv dd{margin:0;font-weight:600}.mail-log{white-space:pre-wrap;font-size:13px;color:var(--text-muted);background:hsla(0,0%,50%,.08);border-radius:10px;padding:10px 12px}.mail-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.mail-composer textarea{min-height:240px;font-family:inherit;line-height:1.5}.mail-empty{padding:40px 20px;text-align:center;color:var(--text-muted)}.st{display:inline-block;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;background:hsla(0,0%,50%,.15);color:var(--text)}.st.nowa,.st.nowe{background:#fff3cc;color:#5c4900}.st.oferta_gotowa{background:#dbeafe;color:#1e40af}.st.do_sprawdzenia{background:#fde68a;color:#7c4a03}.st.odpowiedziano,.st.wyslano,.st.wysłana{background:#dcfce7;color:#166534}.st.pominiete{background:hsla(0,0%,50%,.15);color:var(--text-muted)}.tpl-fields{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:12px;color:var(--text-muted);margin:6px 0 14px}.tpl-fields code{cursor:pointer}.doc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));grid-gap:14px;gap:14px}.doc-card{border:1px solid var(--border);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:8px}.doc-card .doc-ico{width:42px;height:52px;border-radius:6px;background:linear-gradient(160deg,#fec708,#e0b400);position:relative}.doc-card .doc-ico:after{content:"PDF";position:absolute;bottom:6px;left:0;right:0;text-align:center;font-size:11px;font-weight:800;color:#1c1c1b}.doc-card h3{margin:4px 0 0;font-size:15px}.doc-card .hint{font-size:12px;color:var(--text-muted)}.switch-row{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-bottom:1px solid var(--border)}.switch-row:last-child{border-bottom:0}.switch-row input[type=checkbox]{width:18px;height:18px;margin-top:2px;flex:0 0 auto}.switch-row .t{font-weight:700}.switch-row .d{font-size:13px;color:var(--text-muted)}.acct-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--border);flex-wrap:wrap}.acct-row:last-child{border-bottom:0}.ok-text{color:var(--green)}.err-text{color:var(--red)}@media (max-width:900px){.mail-grid,.mail-kv{grid-template-columns:1fr}}.awaiting-card{margin-bottom:20px;border:1px solid rgba(254,199,8,.55)!important}.rules-table input{width:100%;min-width:80px;padding:7px 9px;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--text)}.rules-table td,.rules-table th{padding:6px 8px;text-align:left}.settings-tiles{display:grid;grid-template-columns:repeat(auto-fill,330px);grid-gap:16px;gap:16px}.settings-tile{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:20px;min-width:0}html[data-theme=dark] .settings-tile{background:linear-gradient(160deg,hsla(0,0%,100%,.09),hsla(0,0%,100%,.03));border-color:hsla(0,0%,100%,.1);box-shadow:0 24px 50px -26px rgba(0,0,0,.6),inset 0 1px 0 hsla(0,0%,100%,.1)}html[data-theme=light] .settings-tile{box-shadow:0 22px 40px -30px rgba(42,47,53,.45),0 1px 2px rgba(42,47,53,.05)}.settings-tile .st-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}.settings-tile .st-head h2{margin:0;font-size:18px}.settings-tile .st-ico{width:34px;height:34px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;background:var(--yellow);color:#1c1c1b;font-weight:800;font-size:16px;flex:0 0 auto}.settings-tile .st-sub{font-size:14px;margin:16px 0 4px}.settings-tile .st-links .widget-row{padding:10px 0}.settings-tile .st-kv{display:grid;grid-template-columns:auto 1fr;grid-gap:6px 12px;gap:6px 12px;font-size:14px;margin:0 0 14px}.settings-tile .st-kv dt{color:var(--text-muted)}.settings-tile .st-kv dd{margin:0;font-weight:600;overflow-wrap:anywhere}.theme-options.compact{grid-template-columns:1fr 1fr;gap:10px}.theme-options.compact .theme-preview{height:64px}@media (max-width:700px){.settings-tiles{grid-template-columns:1fr}}.settings-tile .hint{font-size:13px;color:var(--text-muted);margin:0 0 12px}.settings-tile.tile-fixed{height:240px;padding:16px 18px;display:flex;flex-direction:column;cursor:pointer;transition:transform .15s ease,border-color .15s ease}.settings-tile.tile-fixed:hover{transform:translateY(-2px);border-color:rgba(254,199,8,.55)}.settings-tile .st-head{position:relative}.settings-tile .st-expand{margin-left:auto;width:30px;height:30px;padding:0;border-radius:8px!important;font-size:15px;line-height:1;opacity:.6;background:transparent!important;border:1px solid var(--border)!important;color:var(--text)!important;box-shadow:none!important}.settings-tile .st-expand:hover{opacity:1}.settings-tile .st-body{flex:1 1;min-height:0;overflow:hidden}.settings-tile.is-overflow .st-body{-webkit-mask-image:linear-gradient(180deg,#000 72%,transparent);mask-image:linear-gradient(180deg,#000 72%,transparent)}.settings-tile .st-more{align-self:flex-start;margin-top:8px;padding:4px 0;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--yellow-text,var(--yellow))!important;font-weight:700;font-size:13px;cursor:pointer}html[data-theme=light] .settings-tile .st-more{color:#8a6a00!important}.settings-full{width:100%}.settings-tile-full{padding:26px 28px}.settings-tile-full .st-head h2{font-size:22px}.settings-tile-full .theme-options.compact{grid-template-columns:repeat(2,minmax(0,260px))}.settings-tile-full .theme-options.compact .theme-preview{height:110px}.settings-tile.tile-fixed .st-head{margin-bottom:8px}.settings-tile.tile-fixed .st-head h2{font-size:16px}.settings-tile.tile-fixed .st-ico{width:30px;height:30px;font-size:14px}.settings-tile.tile-fixed .theme-options.compact .theme-preview{height:52px}.cat-tiles{display:grid;grid-template-columns:repeat(auto-fill,330px);grid-gap:16px;gap:16px;margin-top:20px}@media (max-width:700px){.cat-tiles{grid-template-columns:1fr}}.cat-tile{height:420px;display:flex;flex-direction:column;border-radius:16px;overflow:hidden;cursor:pointer;background:var(--card);border:1px solid var(--border);transition:transform .15s ease,border-color .15s ease}.cat-tile:hover{transform:translateY(-2px);border-color:rgba(254,199,8,.55)}html[data-theme=dark] .cat-tile{background:linear-gradient(160deg,hsla(0,0%,100%,.09),hsla(0,0%,100%,.03));border-color:hsla(0,0%,100%,.1);box-shadow:0 24px 50px -26px rgba(0,0,0,.6)}html[data-theme=light] .cat-tile{box-shadow:0 22px 40px -30px rgba(42,47,53,.45)}.cat-tile-photo{position:relative;flex:1 1;min-height:0;background-size:cover;background-position:50%;background-color:hsla(0,0%,50%,.12);display:flex;align-items:center;justify-content:center}.cat-tile-placeholder{color:var(--text-muted);font-size:13px}.cat-tile-upload{position:absolute;right:10px;bottom:10px;padding:6px 10px;border-radius:8px;font-size:12px;font-weight:700;background:rgba(0,0,0,.55);color:#fff;cursor:pointer}.cat-tile-upload:hover{background:rgba(0,0,0,.75)}.cat-tile-body{padding:14px 16px 16px}.cat-tile-name{font-size:18px;font-weight:800}.cat-tile-meta{font-size:13px;color:var(--text-muted);margin-top:2px}.cat-tile-more{font-size:13px;font-weight:700;margin-top:10px;color:#8a6a00}html[data-theme=dark] .cat-tile-more{color:var(--yellow)}.cat-full-head{display:flex;align-items:center;gap:14px;margin-bottom:18px;flex-wrap:wrap}.cat-full-thumb{position:relative;width:56px;height:72px;border-radius:10px;background-size:cover;background-position:50%;background-color:hsla(0,0%,50%,.15)}.cat-full-thumb .cat-tile-upload{right:-6px;bottom:-6px;padding:3px 6px;font-size:10px}