:root{color-scheme:light;--ink:#202d26;--muted:#738078;--green:#206c3e;--green2:#338e56;--dark:#172e28;--bg:#f6f8f5;--edge:#e3e9e3;--shadow:0 8px 32px rgba(15,48,27,.055);--r:17px;--safe:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.45 'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{text-decoration:none;color:var(--green)}svg.ico{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.muted{color:var(--muted)}.small{font-size:12px}.ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nowrap{white-space:nowrap}
.shell{display:flex;min-height:100dvh}.sidebar{width:254px;background:linear-gradient(180deg,#1d362e,#13261f);color:#d8e6dc;flex:none;position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;overflow:hidden}.brand{padding:29px 24px 26px;background:linear-gradient(145deg,#fff,#edf6eb);color:#1a3d25;min-height:125px}.brand-name{font-weight:800;letter-spacing:-1.5px;font-size:24px;line-height:1.1}.brand-name span{color:#369247}.brand-line{height:7px;width:136px;margin:7px 0 4px 18px;background:linear-gradient(115deg,#a2d844,#287a42);border-radius:20px 90% 10% 20px;transform:skew(-28deg)}.brand-caption{letter-spacing:.12em;font-size:10px;color:#628068;font-weight:800;text-transform:uppercase}.nav{padding:22px 12px;display:grid;gap:5px}.nav-btn{width:100%;border:0;background:transparent;color:#d2dfd6;display:flex;align-items:center;gap:12px;text-align:left;padding:13px 16px;border-radius:12px;font-weight:600}.nav-btn:hover{background:#ffffff12}.nav-btn.active{background:#3a8650;color:white;box-shadow:0 3px 15px #00000016}.sidebar-foot{margin-top:auto;padding:20px 22px 27px;line-height:1.55;color:#a6bdb0;border-top:1px solid #ffffff1f;font-size:12px}.sidebar-foot strong{color:#edf5ed;font-size:14px}.main{flex:1;min-width:0}.topbar{height:90px;background:linear-gradient(115deg,#fafdfa 0%,#f3f8f0 65%,#e1eed8);border-bottom:1px solid #dae8dc;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 34px;position:sticky;top:0;z-index:10}.app-title{display:flex;align-items:center;gap:17px;min-width:0}.app-title:before{content:'';display:block;background:#2e8e43;width:4px;height:52px;border-radius:5px;flex:none}.abm{font-size:39px;font-weight:800;letter-spacing:-1.8px;line-height:1.05}.abm-sub{font-weight:700;font-size:13px;color:#607364}.top-right{display:flex;align-items:center;gap:13px}.search-wrap{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--edge);height:42px;width:min(330px,31vw);padding:0 13px;border-radius:11px;color:#7a8a81}.search-wrap input{border:0;outline:0;min-width:0;width:100%;background:transparent;font-size:13px;color:var(--ink)}.search-wrap input::placeholder{color:#a2aca4}.profile{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:700}.avatar{background:#286e3c;color:#fff;border-radius:50%;width:37px;height:37px;display:grid;place-items:center;font-size:12px;font-weight:800}.icon-btn{background:#fff;border:1px solid var(--edge);border-radius:11px;width:41px;height:41px;display:grid;place-items:center;color:#4c6255}.content{max-width:1610px;padding:29px 34px 55px;margin:auto}.page-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:24px}.page-top h1{margin:0;font-size:30px;line-height:1.2;letter-spacing:-.9px;font-weight:800}.page-top p{color:var(--muted);font-size:14px;margin:6px 0 0}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.12em;font-weight:800;color:var(--green)}.toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.btn{border:1px solid transparent;border-radius:11px;padding:10px 15px;background:#fff;color:var(--ink);display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;min-height:43px;white-space:nowrap}.btn .ico{width:17px;height:17px}.btn.primary{background:#277e43;color:white;box-shadow:0 5px 14px #1e713329}.btn.primary:hover{background:#1e6f37}.btn.light{background:#fff;border-color:#dce5dd}.btn.soft{background:#edf6ed;color:#2b7341}.btn.danger{background:#fff1ef;color:#a03930}.btn.ghost{background:transparent;color:var(--green);padding:7px 4px;min-height:32px}.btn.sm{padding:7px 12px;min-height:34px;font-size:12px;border-radius:9px}.btn.wide{width:100%}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:19px}.metric{background:white;border:1px solid var(--edge);border-radius:var(--r);padding:19px 18px;box-shadow:var(--shadow);display:flex;gap:14px;align-items:flex-start;min-height:114px}.metric-icon{width:48px;height:48px;background:#edf8ed;border-radius:13px;color:#267c40;display:grid;place-items:center;flex:none}.metric-icon .ico{width:25px;height:25px}.metric-label{font-size:12px;color:#55675b;font-weight:700}.metric-value{font-size:28px;font-weight:800;line-height:1.2;letter-spacing:-.8px;margin:6px 0 0}.metric-help{font-size:11px;color:#819187}.dashboard-grid{display:grid;grid-template-columns:1.25fr .95fr 1fr;gap:16px}.card{border:1px solid var(--edge);border-radius:var(--r);background:white;box-shadow:var(--shadow);padding:19px;min-width:0}.card-title{font-size:16px;font-weight:800;display:flex;align-items:center;gap:10px;margin-bottom:16px;letter-spacing:-.3px}.card-title .ico{color:var(--green)}.data-row{display:flex;align-items:center;gap:11px;padding:12px 0;border-bottom:1px solid #edf1ec;min-width:0}.data-row:last-child{border-bottom:0}.data-row>div:nth-child(2){flex:1;min-width:0}.supplier-chip{width:38px;height:38px;background:#edf3ee;border-radius:11px;display:grid;place-items:center;font-size:16px;font-weight:800;color:#35684a;flex:none}.name{font-size:13px;font-weight:800}.status{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:100px;font-size:11px;font-weight:800;white-space:nowrap}.status.good{color:#227143;background:#e9f8ec}.status.warn{color:#94621d;background:#fff3db}.status.bad{color:#a64435;background:#fff0e9}.status.neutral{color:#536f85;background:#eff4f7}.status .ico{width:12px;height:12px}.panel-foot{margin-top:12px;border-top:1px solid #eff2ee;padding-top:10px}.feature{background:linear-gradient(135deg,#fdfefe,#ebf6ed);overflow:hidden;position:relative;min-height:300px}.feature:after{content:'';position:absolute;width:220px;height:220px;border:36px solid #e2f1d9;border-radius:50%;right:-132px;bottom:-136px;pointer-events:none}.feature h2{font-size:23px;letter-spacing:-.5px;margin:18px 0 10px}.feature p{color:#65786b;max-width:260px;margin:0 0 25px;line-height:1.65}.feature .big-icon{height:48px;width:48px;display:grid;place-items:center;background:#e7f6e7;color:var(--green);border-radius:13px}.feature .big-icon .ico{height:26px;width:26px}.w-span-2{grid-column:span 2}.bottom-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:16px;margin-top:16px}.table-scroll{overflow-x:auto}.table{border-collapse:collapse;width:100%;min-width:500px;font-size:12px}.table th{background:#f6f8f6;color:#627365;font-size:11px;text-align:left;padding:10px 11px;font-weight:800;white-space:nowrap}.table th:first-child{border-radius:9px 0 0 9px}.table th:last-child{border-radius:0 9px 9px 0}.table td{padding:12px 11px;border-bottom:1px solid #ecf0eb;vertical-align:middle}.table tbody tr:last-child td{border-bottom:none}.table tbody tr:hover{background:#f9fcf8}.table .link{color:#267341;font-weight:800;cursor:pointer;text-decoration:underline;text-decoration-color:#bddcbe;text-underline-offset:3px}.list-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.field,.select,.textarea{background:white;border:1px solid #dbe4db;color:var(--ink);border-radius:10px;padding:11px 12px;min-height:43px;width:100%;outline:0}.field:focus,.select:focus,.textarea:focus{border-color:#53a866;box-shadow:0 0 0 3px #e1f3e4}.field::placeholder,.textarea::placeholder{color:#a0aaa2}.textarea{resize:vertical;min-height:90px}.field-label{display:block;font-size:12px;font-weight:800;color:#536559;margin-bottom:6px}.filter-field{max-width:250px}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.form-block{padding:17px;border:1px solid #e5ede4;border-radius:14px;background:#fbfdfb}.form-block h3{margin:0 0 17px;font-size:16px}.form-row{display:flex;gap:10px;align-items:end}.form-row .grow{flex:1;min-width:0}.form-stack{display:grid;gap:14px}.quote-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(260px,.75fr);gap:17px;align-items:start}.summary-card{position:sticky;top:112px}.price-xl{font-size:34px;font-weight:800;letter-spacing:-1px;color:#1a643b}.summary-list{display:grid;gap:12px;margin:16px 0}.summary-item{display:flex;justify-content:space-between;gap:10px;align-items:center;border-bottom:1px solid #e8eee7;padding-bottom:11px}.summary-item:last-child{border:none}.note{padding:12px 14px;background:#f2f7f0;border-radius:10px;color:#5e7962;font-size:12px}.quote-product{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px 0;border-bottom:1px solid #eef1ed}.quote-product:last-child{border-bottom:0}.quote-product h4{margin:0;font-size:13px}.quote-product p{font-size:12px;color:#7d8980;margin:4px 0}.quote-line{display:grid;grid-template-columns:1fr 75px 103px 30px;gap:9px;align-items:center}.quote-line .field{padding:8px;min-height:38px;font-size:12px}.product-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.product-card{background:white;border:1px solid var(--edge);border-radius:15px;overflow:hidden}.product-visual{height:100px;background:linear-gradient(125deg,#e9f4e6,#f8faf4);display:flex;align-items:center;justify-content:center;color:#72ae6e}.product-visual .ico{width:40px;height:40px;stroke-width:1.35}.product-body{padding:15px}.product-body h3{font-size:14px;margin:8px 0;line-height:1.3;min-height:37px}.product-meta{font-size:12px;color:#728078}.product-price{font-size:19px;font-weight:800;margin:11px 0}.product-actions{display:flex;gap:7px;flex-wrap:wrap}.empty{text-align:center;padding:48px 20px;color:#829086}.empty .ico{width:43px;height:43px;color:#9bb7a0;margin-bottom:10px}.empty h3{color:#41574a;margin:0 0 7px}.alert{border:1px solid #f0e3bf;background:#fff9e9;color:#826d33;padding:12px 15px;border-radius:10px;font-size:12px;margin-bottom:17px}.alert.info{background:#edf7ef;border-color:#cde4d2;color:#3c7350}.demo-mark{background:#f1f0dc;color:#716934;font-size:10px;border-radius:5px;padding:4px 6px;font-weight:800;letter-spacing:.08em}.modal-layer{position:fixed;inset:0;background:#102b1c8c;display:grid;place-items:center;padding:20px;z-index:80}.modal{background:white;box-shadow:0 15px 85px #0003;border-radius:20px;padding:24px;width:min(600px,100%);max-height:92dvh;overflow:auto}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.modal-head h2{margin:0;font-size:21px}.modal .modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.toast{position:fixed;right:24px;bottom:24px;background:#1b4f34;color:white;padding:13px 20px;border-radius:12px;font-weight:700;z-index:100;box-shadow:0 10px 35px #123b2840;max-width:90vw}.mobilebar{display:none}.desktop-only{display:block}.card .section-muted{color:#849389;font-size:11px}.card-interactive{cursor:pointer}.card-interactive:hover{border-color:#a9cdb1;transform:translateY(-1px)}.quick-action{display:flex;gap:12px;align-items:center;background:white;border:1px solid var(--edge);border-radius:14px;padding:15px;cursor:pointer}.quick-action .ico{width:23px;height:23px;color:var(--green)}.quick-action .name{font-size:14px}.quick-action .muted{font-size:12px}.quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.settings-box{display:grid;gap:14px}.footnote{margin-top:12px;color:#819087;font-size:11px}.quote-print{display:none}
@media(max-width:1200px){.sidebar{width:215px}.content{padding:24px}.topbar{padding:0 24px}.dashboard-grid{grid-template-columns:1fr 1fr}.dashboard-grid .feature{grid-column:span 2;min-height:200px}.metric{padding:16px 12px;gap:10px}.metric-icon{height:42px;width:42px}.metric-value{font-size:25px}.product-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:930px){.sidebar{width:75px}.brand{padding:16px 9px;min-height:90px;text-align:center}.brand-name{font-size:15px;letter-spacing:-1px}.brand-line{width:43px;margin:7px auto}.brand-caption{font-size:8px;letter-spacing:0}.nav{padding:18px 8px}.nav-btn{justify-content:center;padding:13px;gap:0}.nav-btn span{display:none}.sidebar-foot{display:none}.topbar{height:78px}.abm{font-size:33px}.metric-grid{grid-template-columns:repeat(2,1fr)}.quote-layout{grid-template-columns:1fr}.summary-card{position:static}.product-cards{grid-template-columns:repeat(2,1fr)}.quick-actions{grid-template-columns:repeat(2,1fr)}}
@media(max-width:660px){body{font-size:14px}.sidebar{display:none}.topbar{position:sticky;top:0;height:75px;padding:0 16px;background:#f9fcf9}.app-title{gap:10px}.app-title:before{height:39px;width:3px}.abm{font-size:30px}.abm-sub{font-size:10px;white-space:nowrap}.top-right{gap:7px}.profile .avatar{width:33px;height:33px}.profile>span{display:none}.search-wrap{display:none}.topbar .icon-btn{height:35px;width:35px}.content{padding:22px 15px 107px}.page-top{align-items:flex-start;margin-bottom:18px;flex-direction:column}.page-top h1{font-size:25px}.page-top p{font-size:12px}.page-top .toolbar{width:100%;display:flex}.page-top .toolbar .btn{flex:1}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric{min-height:112px;display:block;padding:12px}.metric-icon{height:33px;width:33px;border-radius:9px;margin-bottom:7px}.metric-icon .ico{width:18px;height:18px}.metric-value{font-size:25px}.metric-label{font-size:11px;line-height:1.2}.metric-help{font-size:10px}.dashboard-grid,.bottom-grid{display:grid;grid-template-columns:1fr;gap:12px}.dashboard-grid .feature,.w-span-2{grid-column:auto}.feature{min-height:225px}.card{padding:15px}.card-title{font-size:15px;margin-bottom:12px}.product-cards{grid-template-columns:1fr 1fr;gap:9px}.product-visual{height:75px}.product-body{padding:11px}.product-body h3{font-size:12px}.product-price{font-size:17px}.product-actions .btn{font-size:11px;padding:8px}.list-head{flex-direction:column;align-items:stretch}.filters{width:100%}.filter-field{max-width:none;flex:1}.form-block{padding:12px}.grid-2,.grid-3{grid-template-columns:1fr}.quote-line{grid-template-columns:1fr 48px 80px 27px;gap:4px}.quote-line .field{padding:7px 4px;font-size:12px}.quick-actions{grid-template-columns:1fr 1fr}.quick-action{padding:11px;gap:8px}.quick-action .ico{width:18px}.quick-action .name{font-size:12px}.quick-action .muted{font-size:10px}.mobilebar{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:40;background:#fff;border-top:1px solid #e1e9e1;justify-content:space-around;padding:7px 2px calc(5px + var(--safe));box-shadow:0 -5px 25px #1f473016}.mobilebar button{min-width:50px;display:grid;place-items:center;gap:3px;color:#8a988c;background:transparent;border:0;padding:4px;font-weight:700;font-size:10px}.mobilebar button .ico{width:21px;height:21px}.mobilebar button.active{color:#20713e}.mobilebar button.active .ico{stroke-width:2.5}.modal-layer{align-items:end;padding:0}.modal{border-radius:22px 22px 0 0;max-height:92dvh;padding:23px 17px calc(18px + var(--safe));width:100%}.toast{bottom:86px;left:16px;right:16px;text-align:center}.desktop-only{display:none}}
@media print{body{background:#fff;color:#15221c;font-size:11pt}.sidebar,.topbar,.content,.mobilebar,.modal-layer,.toast{display:none!important}.quote-print{display:block!important;padding:22mm 18mm;font-family:Arial,'DejaVu Sans',sans-serif}.print-header{display:flex;justify-content:space-between;border-bottom:3px solid #24793d;padding-bottom:18px;margin-bottom:25px}.print-logo{font-weight:900;font-size:19pt;color:#207441}.print-title{font-size:23pt;font-weight:800;margin:15px 0}.print-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin-bottom:35px}.print-box{font-size:10pt;line-height:1.65}.print-table{width:100%;border-collapse:collapse;margin:16px 0}.print-table th{background:#edf5ed;padding:9px;text-align:left;font-size:10pt}.print-table td{padding:10px;border-bottom:1px solid #ddd;font-size:10pt}.print-total{text-align:right;font-size:18pt;font-weight:bold;margin-top:25px;color:#176638}.print-footer{margin-top:40px;border-top:1px solid #ddd;padding-top:12px;font-size:8pt;color:#57685e}button{display:none!important}@page{size:A4;margin:0}}

/* ABM Cloud 0.2: prihlasovanie a stav synchronizácie */
.cloud-status{font-size:11px;padding:7px 9px;border-radius:8px;white-space:nowrap;font-weight:750;border:1px solid #d0dfd3;color:#235b3e;background:#e8f4e9}
.cloud-status.saving{background:#fff7e2;color:#8a6422;border-color:#efe0b5}
.cloud-status.error{background:#fff0ef;color:#a4362f;border-color:#f1c9c6}
.auth-page{min-height:100dvh;display:grid;place-items:center;padding:22px;background:radial-gradient(circle at 20% 20%,#dbeedb,transparent 32%),linear-gradient(130deg,#edf3ed,#f9fbf9)}
.auth-box{width:min(440px,100%);background:white;border:1px solid #dfeade;border-radius:22px;box-shadow:0 22px 65px #183b2421;padding:32px;display:grid;gap:12px}
.auth-logo{font-weight:900;color:#202f28;font-size:21px}.auth-logo span{color:#267e3c}
.auth-name{font-size:52px;line-height:1;font-weight:950;letter-spacing:-2px;color:#1f5934;margin-top:8px}
.auth-box p{margin:0 0 12px;color:#6c7f70;font-weight:600}.auth-box h2{font-size:18px;margin:6px 0 8px;color:#22392b}
.auth-box .field-label{margin-top:5px}
.auth-info{color:#405e47;background:#f0f7ef;border:1px solid #d3e6d1;padding:15px;border-radius:12px;font-size:13px;line-height:1.65;overflow-wrap:anywhere}
.auth-warning{background:#fff0ee;color:#9c3931;padding:13px;border-radius:10px;font-size:12px}
.auth-footer{text-align:center;font-size:11px;color:#819389;margin-top:10px;line-height:1.6}
.auth-buttons{display:flex;gap:10px}
@media(max-width:660px){.cloud-status{font-size:0;padding:5px;border-radius:50%;height:12px;width:12px;border:0}.cloud-status.saving{background:#e8ab46}.cloud-status.saved{background:#52a46e}.cloud-status.error{background:#cc524d}.auth-box{padding:26px 20px}.auth-name{font-size:46px}}
