:root{--bg:#f5f7f4;--white:#fff;--ink:#1d302a;--muted:#76857e;--line:#e5eae6;--accent:#234d3f;--accent2:#ddf3b8;--soft:#ecf3eb;--danger:#a23f39;--shadow:0 9px 30px rgba(18,53,42,.05)}
*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}svg.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-definitions{position:absolute;width:0;height:0;overflow:hidden}
.app-shell{display:flex;min-height:100vh}.sidebar{width:258px;min-width:258px;background:#17352e;color:#dbe7e0;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;padding:30px 16px 16px}.brand{display:flex;gap:12px;align-items:center;padding:0 10px;margin-bottom:47px}.brand-mark{width:41px;height:41px;background:#d9efad;color:#204635;border-radius:13px;display:grid;place-items:center}.brand-mark .icon{width:26px;height:26px}.brand strong{font-size:18px;letter-spacing:.04em;color:white}.brand strong span{font-weight:400;color:#c8e899}.brand small{display:block;font-size:11px;color:#a9c3b6;margin-top:3px}.nav-label{color:#78998b;font-size:10px;font-weight:700;letter-spacing:.14em;padding:0 16px;margin-bottom:12px}.nav-menu{display:grid;gap:5px}.nav-item{border:0;display:flex;align-items:center;gap:14px;width:100%;background:none;color:#bbd0c4;padding:13px 15px;border-radius:11px;text-align:left;font-weight:550;font-size:14px}.nav-item:hover,.nav-item.active{background:#2c5041;color:#fff}.nav-item.active::after{content:"";background:#cfeba0;width:6px;height:6px;border-radius:50%;margin-left:auto}.sidebar-bottom{margin-top:auto}.privacy-mark{display:flex;align-items:flex-start;gap:9px;border-radius:12px;border:1px solid #365a4c;background:#214237;padding:13px;color:#c6d9c8;font-size:11px;line-height:1.55;margin-bottom:12px}.privacy-mark .icon{color:#cfe9a6;width:17px;height:17px}.side-utility{border:0;background:none;color:#b8d0c3;display:flex;align-items:center;gap:10px;width:100%;padding:11px 12px;font-size:12px;text-align:left}.side-utility:hover{color:white}.side-utility .icon{width:16px;height:16px}.user-badge{border-top:1px solid #375447;padding-top:16px;margin-top:12px;display:flex;align-items:center;gap:10px}.avatar{width:34px;height:34px;background:#e4efda;color:#285342;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:800}.user-badge strong{display:block;color:white;font-size:12px}.user-badge small{display:block;font-size:10px;margin-top:3px;color:#8fac9e}
.main-area{flex:1;min-width:0}.topbar{height:73px;background:white;border-bottom:1px solid var(--line);padding:0 clamp(20px,4.4vw,65px);display:flex;align-items:center;justify-content:space-between}.topbar-left,.topbar-right{display:flex;align-items:center;gap:13px}.topbar-left{font-size:13px}.breadcrumb,.breadcrumb-separator{color:#9daa9f}.topbar-right{font-size:12px;color:#7d8982}.prototype-tag{border:1px solid #e2e9de;background:#f6f9f4;color:#688067;padding:5px 9px;border-radius:6px;font-size:10px;letter-spacing:.09em;font-weight:700}.mobile-menu{display:none;border:0;background:none;font-size:24px}.main-content{padding:38px clamp(20px,4.4vw,65px) 75px;max-width:1550px;margin:0 auto}.eyebrow{text-transform:uppercase;letter-spacing:.13em;font-size:10px;font-weight:800;color:#7e9d7b}.heading-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.heading-row h1{font-size:clamp(26px,2.6vw,33px);line-height:1.2;margin:7px 0 5px;letter-spacing:-.04em;font-weight:740}.subtitle{margin:0;color:var(--muted);font-size:13px;line-height:1.6}.heading-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.btn{border:1px solid #dce6dc;background:#fff;color:var(--ink);padding:11px 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:9px;font-size:12px;font-weight:700;white-space:nowrap}.btn:hover{background:#f5f9f3}.btn-primary{color:#fff;background:#24533e;border-color:#24533e}.btn-primary:hover{background:#1b4231}.btn .icon{width:16px;height:16px}.btn-sm{padding:8px 11px;font-size:11px}.btn-ghost{background:none;border-color:transparent}.btn-danger{background:#fff5f3;color:#a23932;border-color:#f3dbd6}.btn-danger:hover{background:#ffece7}
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:24px}.stat-card{border:1px solid var(--line);background:#fff;border-radius:15px;padding:19px 20px;min-height:139px;box-shadow:var(--shadow)}.stat-top{display:flex;align-items:center;justify-content:space-between}.stat-icon{width:35px;height:35px;border-radius:11px;background:#eaf3e6;color:#4f7660;display:grid;place-items:center}.stat-icon.accent{background:#edf0db;color:#82913d}.stat-icon.gold{background:#f9efe1;color:#a37c45}.stat-icon.blue{background:#e7f0f5;color:#5e869b}.stat-icon .icon{width:18px;height:18px}.stat-caption{font-size:12px;color:#7d8a7f;margin-top:13px}.stat-value{font-size:29px;font-weight:750;margin-top:5px;letter-spacing:-.03em;line-height:1.2}.content-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(290px,1fr);gap:20px}.panel{background:#fff;border-radius:15px;border:1px solid var(--line);box-shadow:var(--shadow);overflow:hidden;margin-bottom:20px}.panel-heading{padding:21px 22px 17px;display:flex;justify-content:space-between;align-items:center;gap:10px}.panel-heading h2{font-size:15px;letter-spacing:-.02em;margin:0}.panel-heading small{font-size:11px;color:var(--muted);display:block;margin-top:5px}.inline-link{border:0;background:none;color:#3c7455;font-size:11px;font-weight:750;display:inline-flex;align-items:center;gap:5px}.inline-link:hover{text-decoration:underline}.inline-link .icon{width:14px;height:14px}.panel-inner{padding:0 22px 20px}.activity-item,.task-list-item{padding:14px 0;border-top:1px solid #eff2ef;display:flex;align-items:flex-start;gap:12px}.event-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;color:#477359;background:#edf5e9;flex-shrink:0}.event-icon.call{background:#eef1f8;color:#657eaa}.event-icon .icon{width:17px;height:17px}.activity-item strong,.task-list-item strong{font-size:12px}.activity-item p,.task-list-item p{font-size:11.5px;color:#7a8b80;margin:5px 0 0;line-height:1.5}.activity-date{font-size:10px;color:#98a59c;white-space:nowrap;margin-left:auto}.quick-section{background:#e7f0e1;border:1px solid #d7e7d1;border-radius:13px;padding:18px 20px;margin-top:7px}.quick-section h3{font-size:14px;margin:0 0 7px}.quick-section p{font-size:12px;color:#627763;line-height:1.6;margin:0 0 14px}.tag-list{display:flex;gap:8px;flex-wrap:wrap}.tag{display:inline-flex;align-items:center;gap:5px;background:#edf3ea;border:1px solid #e0e9dc;color:#49684c;border-radius:6px;padding:5px 8px;font-size:10px;font-weight:650}.tag.competitor{background:#fff0e9;color:#a76744;border-color:#f5e2d6}.tag.ours{background:#e8f3e7;color:#467957;border-color:#d7e8d9}.tag.inactive{background:#f1f3f1;color:#7b8980}.tag.priority{background:#f4f2e4;color:#8c793a}
.toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:15px}.search-wrap{position:relative;flex:1;min-width:230px}.search-wrap .icon{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#9aaa9f;width:17px;height:17px}.search-wrap input{padding-left:39px!important}.form-input,.form-select,.form-textarea{height:40px;width:100%;border:1px solid #dfe7e0;border-radius:9px;background:#fff;color:#284235;padding:0 12px;outline:none;font-size:12px;min-width:0}.form-input:focus,.form-select:focus,.form-textarea:focus{border-color:#79a483;box-shadow:0 0 0 3px rgba(70,128,77,.11)}.form-select{appearance:auto}.form-textarea{height:auto;min-height:90px;padding:11px 12px;resize:vertical}.toolbar .form-select{width:auto;max-width:180px}.filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.filter-count{font-size:11px;color:#8a998f;margin:5px 0 12px}.table-wrap{width:100%;overflow-x:auto}.data-table{width:100%;border-collapse:collapse;min-width:760px}.data-table th{text-align:left;font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:#91a094;font-weight:800;background:#f9fbf8;padding:13px 17px;border-bottom:1px solid #e8ede7}.data-table td{padding:14px 17px;font-size:12px;border-bottom:1px solid #edf0ed;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#f9fbf9}.client-name{font-size:12px;font-weight:750;color:#294b3b;text-align:left;border:0;background:none;padding:0}.client-name:hover{text-decoration:underline}.muted{color:var(--muted)}.small{font-size:11px}.result-title{padding:16px 19px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}.empty-state{padding:38px 20px;text-align:center;color:#86978d}.empty-state h3{margin:5px 0;font-size:14px;color:#3a5546}.empty-state p{font-size:12px;margin:5px 0 17px;line-height:1.6}.empty-state .icon{width:27px;height:27px;color:#8da896}.chip{border:0;background:#eff6eb;color:#507252;border-radius:7px;font-size:10px;font-weight:700;padding:5px 8px}.chip:hover{background:#d9ead4}.row-buttons{display:flex;gap:4px;justify-content:flex-end}
.backdrop,.modal-backdrop{position:fixed;inset:0;background:rgba(13,31,23,.46);z-index:15}.client-drawer{position:fixed;z-index:16;top:0;right:0;width:min(620px,100vw);height:100vh;background:#fff;box-shadow:-20px 0 50px rgba(5,26,18,.15);display:flex;flex-direction:column;overflow:hidden}.client-drawer[hidden],.backdrop[hidden],.modal-backdrop[hidden]{display:none}.drawer-header{padding:26px 29px 21px;border-bottom:1px solid var(--line)}.drawer-topline{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.drawer-kicker{font-size:10px;letter-spacing:.11em;color:#8c9e8f;font-weight:800}.icon-button{background:transparent;border:0;display:inline-grid;place-items:center;border-radius:8px;width:31px;height:31px;color:#63796a}.icon-button:hover{background:#eef3ee}.drawer-title{font-size:23px;margin:0 0 7px;letter-spacing:-.04em}.drawer-subtitle{font-size:12px;color:#87978d;display:flex;align-items:center;gap:7px}.drawer-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:17px}.drawer-tabs{display:flex;gap:19px;padding:0 29px;border-bottom:1px solid #e5ebe5}.drawer-tab{border:0;background:transparent;font-size:11px;padding:14px 0;color:#8c9b90;font-weight:700;border-bottom:2px solid transparent}.drawer-tab.active{color:#2d5e44;border-bottom-color:#407b54}.drawer-body{overflow:auto;padding:25px 29px 55px;flex:1}.section-label{font-size:12px;font-weight:800;margin:0 0 13px;display:flex;align-items:center;justify-content:space-between}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:24px}.detail-field label{display:block;font-size:10px;color:#94a397;margin-bottom:5px}.detail-field strong,.detail-field span{font-size:12px;color:#365142;font-weight:600;overflow-wrap:anywhere}.list-card{border:1px solid #e6ede5;border-radius:10px;padding:13px 15px;margin-bottom:10px}.list-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.list-card-title{font-weight:750;font-size:12px}.list-card-meta{font-size:11px;color:#96a59a;margin-top:5px}.list-card p{margin:10px 0 0;color:#607365;font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.list-card-actions{display:flex;gap:5px;align-items:center}.muted-block{color:#8f9d91;font-size:12px;padding:13px;background:#f8faf7;border-radius:9px}.drawer-body .btn{margin-bottom:10px}.modal-backdrop{z-index:30;display:grid;place-items:center;padding:20px;overflow:auto}.modal{width:min(580px,100%);background:#fff;border-radius:16px;box-shadow:0 20px 80px rgba(0,0,0,.19);overflow:hidden;max-height:calc(100vh - 40px);display:flex;flex-direction:column}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:22px 25px 17px;border-bottom:1px solid var(--line)}.modal-head h2{margin:0;font-size:18px;letter-spacing:-.03em}.modal-form{overflow:auto;padding:23px 25px 25px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-group{margin-bottom:15px}.form-group label{display:block;margin-bottom:7px;font-size:11px;color:#576e60;font-weight:700}.form-group .required{color:#c56754}.form-hint{font-size:10px;color:#8fa095;margin-top:6px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:9px}.form-separator{border:0;border-top:1px solid var(--line);margin:8px 0 20px}.check-line{display:flex;align-items:center;gap:9px;font-size:12px;color:#576e60}.check-line input{accent-color:#366f4e}.warning-text{color:#a96642;font-size:11px;line-height:1.6}
.planner-header{display:flex;align-items:center;gap:11px}.planner-week{font-size:13px;font-weight:750;white-space:nowrap}.week-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.day-column{background:white;border:1px solid var(--line);border-radius:13px;overflow:hidden;min-height:285px}.day-column.today{border-color:#89b17e;box-shadow:0 0 0 2px #e5f4d8}.day-head{padding:15px;border-bottom:1px solid var(--line);background:#fafcf9}.day-title{font-size:12px;font-weight:800}.day-date{color:#9aaa9c;font-size:10px;margin-top:5px}.day-tasks{padding:9px}.day-task{border:1px solid #e6eae4;background:#f9fbf8;border-radius:9px;padding:10px;margin-bottom:8px}.day-task.done{opacity:.6}.day-task-row{display:flex;align-items:flex-start;gap:7px}.task-check{accent-color:#2d6849;margin-top:2px}.day-task-title{font-size:11px;font-weight:800;line-height:1.45}.day-task small{font-size:10px;color:#829488;display:block;margin-top:5px;line-height:1.4}.day-task-actions{display:flex;justify-content:space-between;margin-top:9px;align-items:center}.day-task-actions .inline-link{font-size:10px}.empty-day{font-size:11px;color:#a1b0a3;text-align:center;padding:25px 4px}.weekend-row{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:13px}.weekend-row .day-column{min-height:125px}.weekend-row .day-head{padding:12px 15px}.weekend-row .day-tasks{padding:9px}.today-chip{font-size:9px;background:#dff1d7;color:#3b754e;border-radius:5px;padding:3px 6px;margin-left:5px}.task-type{display:inline-block;font-size:9px;color:#668570;background:#e6f1e4;padding:3px 6px;border-radius:5px;font-weight:750}.task-type.call{background:#e7eef8;color:#6680a6}.task-type.other{background:#f2ece5;color:#94734f}.products-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:20px}.help-card{background:#ebf2e7;border:1px solid #dbe8d7;border-radius:15px;padding:23px}.help-card h2{font-size:15px;margin:0 0 10px}.help-card p{font-size:12px;line-height:1.65;color:#637d68}.help-card ol{padding-left:18px;font-size:11px;line-height:1.8;color:#5b7964}.toast{position:fixed;bottom:25px;right:25px;z-index:70;background:#193c2c;color:white;border-radius:10px;padding:13px 16px;font-size:12px;box-shadow:0 12px 40px rgba(0,0,0,.17);transform:translateY(100px);opacity:0;transition:.25s;pointer-events:none;max-width:360px}.toast.show{transform:translateY(0);opacity:1}
@media (max-width:1180px){.stat-grid{grid-template-columns:repeat(2,1fr)}.week-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.content-grid{grid-template-columns:1fr}.products-layout{grid-template-columns:1fr}.help-card{display:none}}
@media (max-width:850px){.sidebar{position:fixed;z-index:50;transform:translateX(-100%);transition:transform .22s}.sidebar.open{transform:translateX(0)}.mobile-menu{display:block}.topbar{padding:0 19px}.main-content{padding:28px 17px 60px}.week-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.heading-row{align-items:flex-start}.topbar-right #today-label{display:none}}
@media (max-width:550px){.heading-row{display:block}.heading-actions{justify-content:flex-start;margin-top:17px}.stat-grid{gap:10px}.stat-card{padding:14px;min-height:124px}.stat-value{font-size:25px}.week-grid,.weekend-row{grid-template-columns:1fr}.day-column{min-height:0}.day-tasks{display:flex;flex-wrap:wrap;gap:8px}.day-task{margin:0;flex:1;min-width:180px}.detail-grid,.form-grid{grid-template-columns:1fr}.client-drawer{width:100vw}.drawer-header,.drawer-body{padding-left:19px;padding-right:19px}.drawer-tabs{padding:0 19px;gap:15px}.toolbar .form-select{flex:1;max-width:none;min-width:130px}.topbar-right .prototype-tag{display:none}.panel-heading{padding:16px}.panel-inner{padding:0 16px 17px}}
/* Lauko CRM v0.2 - extended UI */
.drawer-tabs{overflow-x:auto;white-space:nowrap;scrollbar-width:thin}.drawer-tab{flex-shrink:0}
.drawer-body{overscroll-behavior:contain}.data-table{min-width:850px}
.info-banner{padding:14px 16px;background:#f0f6eb;border:1px solid #d6e7cc;border-radius:12px;color:#365641;font-size:12px;line-height:1.6;margin-bottom:20px}
.warning-banner{background:#fff8e8;border-color:#f2dfb5;color:#6b562a}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.settings-card{overflow:hidden}.settings-list{padding:5px 18px 15px;max-height:440px;overflow:auto}
.settings-row{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}
.settings-row:last-child{border-bottom:0}.muted-archived{text-decoration:line-through;opacity:.55}
.settings-actions{display:flex;gap:3px;flex-shrink:0}.summary-sums{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}
.summary-box{background:#f4f8f2;padding:13px;border:1px solid #e4ece0;border-radius:10px}.summary-box label{display:block;font-size:11px;color:#71847a}.summary-box strong{display:block;font-size:20px;margin-top:7px}
.label-row{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:17px 0 9px}.label-row .section-label{margin:0}
.subtle-note{font-size:11px;color:#71837a;line-height:1.6;margin:8px 0}
.unit-heading{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;margin:15px 0 9px;color:#3e6051}
.raw-tag{font-size:10px;color:#995c12;background:#fff3da;border:1px solid #f0d7ab;padding:4px 7px;border-radius:6px;white-space:nowrap}
.small-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.small-controls select,.small-controls input{max-width:205px}
.inline-collection{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #eef0ed}
.inline-collection:last-child{border-bottom:0}.inline-collection p{margin:5px 0;font-size:12px;color:#77847c}
.panel-copy{padding:18px}.filters input[type=number]{width:104px}.filter-crop{min-width:155px}
@media(max-width:970px){.settings-grid{grid-template-columns:1fr}.summary-sums{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:570px){.summary-sums{grid-template-columns:1fr}.settings-card .panel-heading{flex-wrap:wrap}.heading-actions{justify-content:flex-start}}

/* Lauko CRM v0.3: segmentai, purškimai, masinis savaitės planavimas */
.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}
.spray-filter-panel{background:linear-gradient(125deg,#f1f8ef 0%,#f9fbf7 100%);border:1px solid #d6e5d2;border-radius:14px;padding:17px 19px;margin:17px 0 18px}
.filter-panel-title{display:flex;align-items:center;gap:9px;font-size:13px;margin-bottom:12px;flex-wrap:wrap}
.filter-panel-title .icon{width:17px;height:17px;color:#497456}
.spray-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(125px,1fr)) auto;gap:8px;align-items:center}
.spray-filter-grid .form-select{min-width:0;width:100%}
.bulk-panel{padding:12px 18px;border-bottom:1px solid #e5ebe4;background:#fcfdfb;display:flex;gap:14px;justify-content:space-between;align-items:center;flex-wrap:wrap}
.bulk-select{font-size:12px;font-weight:700;display:flex;gap:8px;align-items:center}.bulk-select input,.data-table input[type="checkbox"]{accent-color:#26704c;width:15px;height:15px}
.bulk-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.bulk-tools label{font-size:11px;color:#7a8f7f;font-weight:600}.bulk-tools .form-input{max-width:150px}.bulk-tools .form-select{max-width:135px}
.spray-group{border:1px solid #dfe9de;border-radius:12px;overflow:hidden;margin:13px 0 19px;background:#fff}
.spray-group-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 15px;background:#f2f7f1;border-bottom:1px solid #dfe9de;font-size:13px}
.spray-stage{padding:13px 16px;border-bottom:1px solid #e5ede4}.spray-stage:last-child{border-bottom:0}
.spray-stage-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:13px}
.spray-stage-head .row-buttons{flex-wrap:wrap}.spray-stage-head .btn{margin:0}
.spray-status{display:inline-block;margin:0 5px 6px;padding:5px 7px;border-radius:7px;background:#e9f0e8;color:#4b6d56;font-size:10px;font-weight:700}
.spray-status.unknown_products{background:#ffefe5;color:#a45535}.spray-status.partial{background:#fff5d5;color:#8e6d15}.spray-status.known{background:#e5f4e6;color:#3d784b}.spray-status.not_asked{background:#eef1f5;color:#647481}.spray-status.not_planned{background:#f1f1f1;color:#7c7c7c}
.spray-line{border-top:1px dashed #e7ece7;padding:11px 0 2px;display:flex;align-items:flex-start;justify-content:space-between;gap:8px;font-size:11px}
.spray-line>div:first-child{min-width:0;overflow-wrap:anywhere}.spray-line .row-buttons{flex-shrink:0}.spray-line .btn{margin:0}
.spray-line em{color:#b26846;font-style:normal;font-weight:700}
@media(max-width:1250px){.spray-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.spray-filter-grid .btn{width:100%}}
@media(max-width:580px){.spray-filter-grid{grid-template-columns:1fr}.bulk-tools{width:100%}.bulk-tools .form-input,.bulk-tools .form-select{flex:1}.spray-stage-head .row-buttons{width:100%;justify-content:flex-start}}

/* Serverinės v1.0 priedai */
[hidden]{display:none!important}
.auth-screen{position:fixed;inset:0;z-index:1000;background:linear-gradient(140deg,#103b2d,#183d36 55%,#e3efe9);display:grid;place-items:center;padding:20px}
.auth-card{width:min(420px,100%);padding:34px;background:#fff;border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.18)}
.auth-card h1{font-size:29px;margin:5px 0}.auth-card p{margin:4px 0 22px;color:#59716a}
.auth-logo{font-size:32px}.auth-form{display:grid;gap:18px;margin-bottom:18px}
.auth-form label{font-weight:600;display:grid;gap:7px;font-size:13px}.auth-form .btn{width:100%;min-height:44px}
.auth-error{color:#a81f1f;font-size:13px;min-height:18px}.auth-card>small{color:#5c7770}
body.crm-saving .app-shell{pointer-events:none;opacity:.75;cursor:progress}
body.crm-saving:after{content:'Saugoma serveryje…';position:fixed;z-index:1200;bottom:28px;right:24px;border-radius:10px;background:#17352e;color:white;padding:12px 20px;box-shadow:0 6px 20px #17352e33}

/* v1.2: privati kliento nuotraukų galerija ir vizitų priedai */
.photo-filters{margin:10px 0 18px}.photo-filter-active{background:#234d3f;color:#fff;border-color:#234d3f}.photo-filter-active:hover{background:#1b4231}
.photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:13px 0 20px}
.photo-card{overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#fff;min-width:0}
.photo-preview{display:block;width:100%;border:0;padding:0;cursor:zoom-in;background:#eff4ed;aspect-ratio:4/3;overflow:hidden}
.photo-preview img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .15s ease}
.photo-preview:hover img{transform:scale(1.035)}
.photo-card-body{padding:12px;display:grid;gap:6px}.photo-card-body strong{font-size:12px;overflow-wrap:anywhere}.photo-card-body .row-buttons{justify-content:flex-start}
.visit-photos{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:11px}
.photo-thumb{width:74px;height:60px;flex-shrink:0;border:1px solid #dfebdd;padding:0;background:#eff4ed;border-radius:8px;cursor:zoom-in;overflow:hidden}
.photo-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.photo-full{background:#f1f6f0;border-radius:10px;display:grid;place-items:center;max-height:min(65vh,620px);overflow:hidden}
.photo-full img{display:block;max-width:100%;max-height:min(65vh,620px);object-fit:contain}
.photo-file-input{height:auto;padding:10px}.form-hint{font-size:11px;color:#7c9085;margin-top:6px}
@media(min-width:750px){.photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:460px){.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-card-body .row-buttons{flex-wrap:wrap}}

/* Produkto kategorijos tvarkomos tiesiai kataloge */
.catalog-category-panel{margin-bottom:19px;padding:20px}
.catalog-category-panel .panel-heading{margin-bottom:13px;align-items:center}
.catalog-category-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:8px}
.catalog-category-row{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #e5ece5;padding:10px 12px;border-radius:10px;min-width:0}
.catalog-category-row b{font-size:12px;overflow-wrap:anywhere}
.catalog-category-row small{font-size:10px}
@media(max-width:620px){.catalog-category-list{grid-template-columns:1fr}}

/* v1.3 – lankstūs ūkio informacijos laukai */
.farm-field-header{flex-wrap:wrap;align-items:center}.farm-field-header .row-buttons{flex-wrap:wrap;justify-content:flex-start}.farm-field-header .btn{white-space:normal;text-align:center}
#farm-fields-settings{scroll-margin-top:20px}

/* v1.4 – pilno pločio kliento kortelė, nebe šoninis drawer */
.client-page{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--shadow);min-height:65vh}
.client-page .drawer-header{padding:26px clamp(20px,3vw,42px);background:linear-gradient(145deg,#f8fbf6,#fff)}
.client-page .drawer-title{font-size:clamp(28px,3vw,37px)}
.client-page .drawer-tabs{padding:0 clamp(20px,3vw,42px);gap:24px;position:relative;overflow-x:auto}
.client-page .drawer-tab{font-size:12px;padding:17px 0}
.client-page .drawer-body{overflow:visible;padding:34px clamp(20px,3vw,42px) 65px;min-height:280px}
.client-page .detail-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.client-page .drawer-actions{margin-top:22px}
.active-ingredient-panel{margin-bottom:20px}
.active-ingredient-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;padding:0 20px 16px}
.active-ingredient-row,.ingredient-composition-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 2px;border-bottom:1px solid var(--line)}
.active-ingredient-row b,.ingredient-composition-row b{font-size:12px}
.ingredient-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;background:#f7faf6;border:1px solid var(--line);border-radius:9px;padding:12px}
.ingredient-choice{display:flex;align-items:center;gap:7px;font-size:12px}
.ingredient-choice input{accent-color:#24533e}
.modal-actions-standalone{padding:15px 22px}
@media(max-width:850px){.client-page .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.active-ingredient-grid{grid-template-columns:1fr}}
@media(max-width:550px){.client-page{border-radius:12px}.client-page .detail-grid{grid-template-columns:1fr}.client-page .drawer-header,.client-page .drawer-tabs,.client-page .drawer-body{padding-left:16px;padding-right:16px}.ingredient-choices{grid-template-columns:1fr}.client-page .drawer-topline{gap:15px}}

/* v1.8: aiškus žinynų, kainynų ir technologijų išdėstymas */
.catalog-collapsible{display:flex;justify-content:space-between;align-items:center;gap:12px;cursor:pointer;padding:18px 21px;font-size:14px;font-weight:750;color:#284d3d;list-style:revert}
.catalog-collapsible .muted{font-weight:500;white-space:normal;text-align:right}
.catalog-category-panel{padding:0}
.catalog-category-panel .panel-heading{margin:0;padding-top:6px}
.catalog-category-panel .catalog-category-list{padding:0 18px 18px}
.catalog-category-row{min-width:0;align-items:flex-start;flex-wrap:wrap}
.catalog-category-row>div:first-child{min-width:0;flex:1 1 130px;overflow-wrap:normal;word-break:normal}
.catalog-category-row .row-buttons{flex:0 1 auto;flex-wrap:wrap;justify-content:flex-start}
.active-ingredient-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr))}
.active-ingredient-row{min-width:0;gap:10px;align-items:flex-start}
.active-ingredient-row>div:first-child{min-width:0;flex:1 1 200px;word-break:normal;overflow-wrap:break-word}
.active-ingredient-row .row-buttons{flex:0 1 auto;flex-wrap:wrap;gap:4px}
.active-ingredient-row .btn{padding:7px 8px;white-space:normal}
.nutrient-section{padding:18px 0 5px;margin-top:16px;border-top:1px solid var(--line)}
.nutrient-section h3{font-size:14px;margin:0 0 10px}
.nutrient-section .ingredient-composition-row>div:first-child{flex:1;min-width:0}
.wrap-text{white-space:normal;word-break:normal;overflow-wrap:break-word;line-height:1.55}
/* Lentelės turi slinkti horizontaliai, o ne suspausti žodžius į vieną raidę. */
.products-layout{grid-template-columns:minmax(0,1fr)}
.products-layout .help-card{display:none}
.products-layout .panel,.products-layout .table-wrap{min-width:0}
.table-wrap{overflow:auto;overscroll-behavior-x:contain}
.table-wrap .data-table{table-layout:auto;width:max-content;min-width:100%}
.table-wrap .data-table td,.table-wrap .data-table th{word-break:normal;overflow-wrap:normal;white-space:normal;min-width:84px}
.table-wrap .data-table td:first-child,.table-wrap .data-table th:first-child{min-width:34px}
.table-wrap .data-table td:has(.row-actions-menu){min-width:105px;vertical-align:top}
.row-actions-menu{position:relative}
.row-actions-menu summary{cursor:pointer;display:inline-block;border:1px solid var(--line);padding:7px 10px;border-radius:8px;font-size:11px;font-weight:700;white-space:nowrap}
.row-actions-menu[open]{min-width:150px}
.row-actions-menu .row-buttons{display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-start;max-width:280px;padding-top:7px}
.row-actions-menu .btn{min-width:32px}
.modal{width:min(650px,100%)}
.modal-form{min-width:0;overflow-x:hidden}
.modal .form-grid>*{min-width:0}
.modal .form-select{max-width:100%}
@media(max-width:820px){
 .catalog-collapsible{flex-wrap:wrap}
 .active-ingredient-grid{grid-template-columns:1fr}
 .active-ingredient-row{flex-wrap:wrap}
 .active-ingredient-row .row-buttons{width:100%;justify-content:flex-start}
 .row-actions-menu .row-buttons{max-width:200px}
}
@media(max-width:570px){
 .catalog-category-row{display:block}
 .catalog-category-row .row-buttons{margin-top:9px}
 .main-content{padding-left:12px;padding-right:12px}
 .panel-heading{align-items:flex-start;flex-wrap:wrap}
 .result-title{flex-wrap:wrap}
 .modal-backdrop{padding:8px}
 .modal{max-height:calc(100dvh - 16px)}
 .modal-head{padding:16px}
 .modal-form{padding:16px}
}
/* Spausdinama technologijos ataskaita. Naršyklėje pasirinkti „Išsaugoti kaip PDF“. */
#crm-print-view{display:none}
@media print{
 @page{size:A4 portrait;margin:15mm}
 html,body{background:#fff;color:#172b21;font:11pt Arial,sans-serif}
 .app-shell,.auth-screen,.modal-backdrop,.backdrop,#toast{display:none!important}
 #crm-print-view{display:block!important;position:static!important;color:#172b21}
 .pdf-sheet{max-width:100%;margin:0}
 .pdf-top{display:flex;justify-content:space-between;border-bottom:2px solid #214d3a;padding:0 0 13px;font-size:12px;color:#214d3a}
 .pdf-sheet h1{font-size:25px;margin:16px 0 8px}
 .pdf-sheet p{font-size:11px;color:#56695c}
 .pdf-sheet table{border-collapse:collapse;width:100%;table-layout:auto;font-size:10px;margin:20px 0}
 .pdf-sheet th,.pdf-sheet td{padding:10px 9px;border-bottom:1px solid #d6dfd7;text-align:left;vertical-align:top;word-break:normal;overflow-wrap:break-word}
 .pdf-sheet th{background:#ecf4ed;color:#214d3a;font-weight:700}
 .pdf-sheet small{font-size:8px;color:#667c70}
 .pdf-total{display:flex;justify-content:space-between;padding:15px;border:1px solid #c5dfc6;background:#f1f8ee;font-size:13px}
 .pdf-warning{color:#a14f21!important;font-weight:700}
 .pdf-note{margin-top:28px;max-width:85%}
 .pdf-sheet tr{break-inside:avoid}
}

/* v1.9 – grupuoti BBCH, kategorijų ir etapų suvestinės, ūkininkų likučiai */
.technology-table{width:100%;border-collapse:separate;border-spacing:0}
.technology-table .bbch-stage-row td{font-size:14px;font-weight:800;padding:15px 18px;color:#183f34;border-top:2px solid rgba(49,90,68,.12);border-bottom:1px solid rgba(49,90,68,.10)}
.bbch-group-price{float:right;font-size:12px;color:#1c493d}
.bbch-tone-0 td{background:#ebf5e8!important}.bbch-tone-1 td{background:#eef3fa!important}.bbch-tone-2 td{background:#fff5df!important}.bbch-tone-3 td{background:#f5ecfb!important}.bbch-tone-4 td{background:#e8f5f1!important}.bbch-tone-5 td{background:#fff0ed!important}
.tech-product-row td{border-bottom:1px solid #eef1ec!important}
.cat-tone-0 td:first-child{border-left:4px solid #739c50}.cat-tone-1 td:first-child{border-left:4px solid #74a4c1}.cat-tone-2 td:first-child{border-left:4px solid #ad85ca}.cat-tone-3 td:first-child{border-left:4px solid #d99e56}.cat-tone-4 td:first-child{border-left:4px solid #4daaa4}.cat-tone-5 td:first-child{border-left:4px solid #9f7a53}.cat-tone-6 td:first-child{border-left:4px solid #9c9cae}
.tech-subtotal-row td{background:#fafbf8;padding:12px 14px!important}
.tech-subtotal{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
.tech-total-item{padding:6px 10px;background:#eaf1ea;border:1px solid #d9e7db;border-radius:8px;color:#2f5541;font-size:11px;white-space:nowrap}
.tech-bottom-summary{padding:20px 22px;border-top:1px solid #e9eee8}
.tech-bottom-summary p{line-height:2}
.stock-technology{border-top:1px solid #e3ebe3;margin-top:20px;padding-top:16px}
.stock-table{min-width:760px}
.pdf-farmer .pdf-category-summary{padding:10px 0;border-top:1px solid #ddd;margin:10px 0}
.pdf-farmer .pdf-category-summary div{display:flex;gap:8px 16px;flex-wrap:wrap;margin-top:8px;font-size:11px}
@media(max-width:750px){.bbch-group-price{float:none;display:block;margin-top:8px}.tech-total-item{white-space:normal}}
@media print{
 .pdf-sheet .pdf-bbch td{font-size:14px;padding:11px 12px!important;break-inside:avoid}
 .pdf-bbch-cost{float:right;font-size:11px}
 .pdf-category-breakdown td{background:#f7faf6;color:#335844;padding:8px!important}
 .pdf-category-breakdown span{display:inline-block;margin-right:18px;padding:3px 0}
 .pdf-farmer table{font-size:10px}
 .pdf-farmer tr[class^="cat-tone-"] td:first-child{border-left:3px solid #83a49a}
 .pdf-farmer .pdf-category-summary{break-inside:avoid}
 .pdf-farmer .pdf-top{display:none!important}
}

.tech-total-group{background:#dcebe1;border-color:#aacbb6;font-weight:800}

/* v2.0 – filtrai ir greitas ne katalogo produktų įvedimas */
.tech-filter-line{padding:12px 20px;border-bottom:1px solid #e9eee8;background:#f8faf7}
.tech-filter-line .form-group{max-width:340px;margin:0}
#tech-catalog-fields[hidden],#tech-custom-fields[hidden]{display:none!important}
#tech-catalog-fields,#tech-custom-fields{border:1px solid #e1e9df;background:#f9fcf8;border-radius:10px;padding:14px;margin-bottom:14px}
.tech-product-row .raw-tag{display:inline-block;margin-left:8px;font-size:10px}
@media(max-width:600px){.tech-filter-line{padding:12px}}

/* v2.1: pasirinktinės kliento produktų normos. */
.usage-rate{margin-top:7px;color:#24573c;font-size:12px}
#usage-catalog-fields[hidden],#usage-custom-fields[hidden]{display:none!important}

/* Lauko CRM v2.2 – klientų segmentai, tiekėjų spalvos ir grupuotas produktų sąrašas. */
.client-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.client-product-chip{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap;border:1px solid #e0e9df;background:#f8faf7;border-radius:8px;padding:3px 6px;margin:2px;font-size:11px;max-width:240px}
.distributor-pill{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;border:1px solid transparent;padding:4px 9px;border-radius:999px;font-weight:700;font-size:11px;line-height:1.2}
.dist-sc{background:#dcfce7;color:#166534;border-color:#86efac}
.dist-ag{background:#dbeafe;color:#1d4ed8;border-color:#93c5fd}
.dist-la{background:#f3e8ff;color:#7e22ce;border-color:#d8b4fe}
.dist-ba{background:#ffedd5;color:#9a3412;border-color:#fdba74}
.dist-agrochema{background:#fce7f3;color:#9d174d;border-color:#f9a8d4}
.dist-agrodema{background:#ccfbf1;color:#115e59;border-color:#5eead4}
.dist-zvalguva{background:#fef9c3;color:#854d0e;border-color:#fde047}
.dist-other{background:#edf1f3;color:#455963;border-color:#d2dce1}
.usage-filter-row{display:flex;gap:12px;flex-wrap:wrap;padding:14px 0;border-bottom:1px solid #e3ebe2;margin-bottom:16px}
.usage-filter-row label{flex:1 1 180px;max-width:350px;min-width:0;font-size:12px;font-weight:700;display:grid;gap:6px}
.usage-filter-row select{width:100%;min-width:0}
.usage-category-group{margin:16px 0 22px}
.usage-category-group>h3{font-size:15px;padding:8px 0;border-bottom:2px solid #dce8dc;color:#234536;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.usage-category-group>h3 small{color:#637f6a;font-size:11px;font-weight:500}
.usage-distributor-group{margin:12px 0;padding:9px 12px 3px;border:1px solid #e2e9e0;border-left:4px solid #9baba0;border-radius:10px;background:#fdfefd}
.usage-distributor-header{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
.usage-distributor-group .usage-card{margin:6px 0 10px;min-width:0}
.dist-outline-sc{border-left-color:#22c55e;background:#f7fef9}
.dist-outline-ag{border-left-color:#3b82f6;background:#f8fbff}
.dist-outline-la{border-left-color:#a855f7;background:#fcfaff}
.dist-outline-ba{border-left-color:#f97316;background:#fffbf7}
.dist-outline-agrochema{border-left-color:#ec4899;background:#fff9fc}
.dist-outline-agrodema{border-left-color:#14b8a6;background:#f7fffd}
.dist-outline-zvalguva{border-left-color:#eab308;background:#fffef7}
.client-import-panel{margin:0 0 20px}
.client-import-panel .panel-inner{padding:16px 20px}
.client-import-panel .form-group{display:grid;gap:8px;max-width:480px;font-size:12px;font-weight:700}
.client-import-panel .form-group input{width:100%}
.client-import-table{max-height:410px;overflow:auto;border:1px solid #e2e9e0;border-radius:9px;margin:14px 0}
.client-import-table .data-table{min-width:760px}
.client-import-table td{font-size:11px;padding:9px}
.client-import-table th{position:sticky;top:0;background:#eef5ef;z-index:1}
.client-import-table .form-select{width:100%;font-size:11px;min-width:160px}
.import-conflict{color:#a45326;font-size:10px;margin-top:4px}
.import-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:15px}
@media(max-width:650px){.client-actions{width:100%}.client-actions .btn{flex:1}.usage-distributor-group{padding:8px}.client-import-panel .panel-inner{padding:12px}}


/* v2.9.1 – klientų sąrašo produktai: matomi visi, atskirti kableliais,
   automatiškai perkeliami į kitą eilutę, be išskleidžiamo sąrašo. */
.client-products-column{min-width:190px;max-width:350px}
.client-products-cell{min-width:0;max-width:100%;font-size:11px;line-height:1.4;color:#244d3a;white-space:normal;overflow-wrap:break-word;word-break:normal}
@media(max-width:700px){.client-products-column{max-width:250px}}

/* v2.4: paspaudžiamos stulpelių antraštės, filtrai ir klientų grupavimas. */
.client-table-controls{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:12px 19px;border-bottom:1px solid var(--line);background:#f9fbf8}
.client-table-controls label{font-size:12px;font-weight:750;display:flex;align-items:center;gap:10px;color:#294e39}
.client-table-controls .form-select{width:auto;min-width:190px;max-width:100%}
.client-segmentation-table{min-width:1280px}
.client-segmentation-table th{vertical-align:top;padding:11px 11px 9px;min-width:110px}
.client-segmentation-table th:first-child,.client-segmentation-table th:last-child{min-width:34px}
.client-th-wrap{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.client-sort-button{background:none;border:0;padding:2px 1px;text-align:left;color:#758e7f;font:inherit;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;display:flex;align-items:center;gap:5px;cursor:pointer;white-space:nowrap}
.client-sort-button:hover,.client-sort-button.is-active{color:#1f6645}
.client-sort-button:focus-visible{outline:2px solid #29814f;outline-offset:3px;border-radius:3px}
.client-sort-mark{font-size:13px;color:#28764a;line-height:1}
.client-column-select{display:block;width:100%;min-width:110px;max-width:170px;border:1px solid #dce8dc;border-radius:6px;background:#fff;color:#3a6650;font-family:inherit;font-weight:600;font-size:10px;padding:6px 5px;text-transform:none;letter-spacing:0;cursor:pointer}
.client-column-select:focus-visible{outline:2px solid #29814f;outline-offset:1px}
.client-group-heading td{background:#eaf3e9!important;border-top:2px solid #cedfce!important;padding:10px 16px!important}
.client-group-toggle{border:0;background:transparent;color:#215538;font-weight:800;cursor:pointer;text-align:left;font-size:12px;padding:0;display:flex;align-items:center;gap:10px;width:100%}
.client-group-toggle:hover{text-decoration:underline}
.client-group-toggle:focus-visible{outline:2px solid #29814f;outline-offset:3px;border-radius:3px}
.client-group-count{color:#688475;font-weight:500;font-size:11px}
@media(max-width:800px){.client-table-controls{align-items:stretch;gap:6px}.client-table-controls label{width:100%;justify-content:space-between}.client-table-controls .form-select{flex:1}.client-segmentation-table{min-width:1250px}}

/* v2.5 – kompaktiški klientų stulpeliai; mažesnis ekrano pločio poreikis. */
.client-segmentation-table{table-layout:fixed!important;width:100%!important;min-width:0!important}
.client-segmentation-table th,.client-segmentation-table td{min-width:0!important;padding:10px 6px!important;font-size:11px;overflow-wrap:anywhere}
.client-segmentation-table th:nth-child(1),.client-segmentation-table th:nth-child(10){width:3%}
.client-segmentation-table th:nth-child(2){width:17%}
.client-segmentation-table th:nth-child(3){width:7%}
.client-segmentation-table th:nth-child(4){width:18%}
.client-segmentation-table th:nth-child(5){width:12%}
.client-segmentation-table th:nth-child(6){width:9%}
.client-segmentation-table th:nth-child(7){width:10%}
.client-segmentation-table th:nth-child(8){width:12%}
.client-segmentation-table th:nth-child(9){width:9%}
.client-segmentation-table .client-products-column,.client-segmentation-table .client-products-cell{min-width:0!important;max-width:100%!important}
.client-segmentation-table .client-sort-button{white-space:normal;font-size:9px;line-height:1.25}
.client-segmentation-table .client-column-select{min-width:0;width:100%;max-width:100%;font-size:9px;padding:5px 1px}
.client-segmentation-table .client-name{font-size:11px;line-height:1.35}
.client-segmentation-table td span.small{white-space:normal;font-size:10px}
.client-table-scroll{overflow-x:auto}
.table-scroll-toolbar{display:flex;align-items:center;gap:8px;padding:7px 13px;border-bottom:1px solid #e4ebe2;background:#fbfdfb;position:sticky;top:0;z-index:2}
.table-scroll-toolbar .btn{padding:6px 9px}
.product-catalog-scroll{scrollbar-gutter:stable}
@media(max-width:1050px){.client-segmentation-table{min-width:875px!important}}

/* V2.5: produkto katalogo lentelė per visą ekraną, valdymas viršuje. */
.products-layout{grid-template-columns:minmax(0,1fr)!important;gap:18px!important}
.products-layout .help-card{max-width:none}
.product-catalog-scroll .data-table{width:100%!important;table-layout:fixed;min-width:980px!important}
.product-catalog-scroll .data-table th,.product-catalog-scroll .data-table td{min-width:0!important;padding:11px 8px!important;overflow-wrap:anywhere;font-size:11px}
.product-catalog-scroll .data-table th:nth-child(1){width:4%}
.product-catalog-scroll .data-table th:nth-child(2){width:19%}
.product-catalog-scroll .data-table th:nth-child(3){width:22%}
.product-catalog-scroll .data-table th:nth-child(4){width:11%}
.product-catalog-scroll .data-table th:nth-child(5){width:21%}
.product-catalog-scroll .data-table th:nth-child(6){width:9%}
.product-catalog-scroll .data-table th:nth-child(7){width:8%}
.product-catalog-scroll .data-table th:nth-child(8){width:6%}
@media(max-width:700px){.client-segmentation-table{min-width:875px!important}.product-catalog-scroll .data-table{min-width:960px!important}}

/* v2.5: spalvoti kategorijų trumpiniai prieš produkto pavadinimą. */
.technology-table td:first-child{min-width:230px}
.tech-product-cell{display:flex;align-items:flex-start;gap:10px;min-width:0}
.tech-product-info{min-width:0;flex:1;overflow-wrap:break-word}
.tech-category-badge{display:inline-flex;align-items:center;justify-content:center;min-width:38px;flex:0 0 auto;line-height:1.1;padding:5px 6px;border:1px solid transparent;border-radius:6px;font-size:10px;font-weight:700;letter-spacing:.035em;white-space:nowrap}
.tech-category-fun{background:#e3edff;color:#254f9b;border-color:#b9ceef}
.tech-category-her{background:#fce6e7;color:#993944;border-color:#edbfc5}
.tech-category-pam{background:#fff0d9;color:#8d5b1d;border-color:#edd1a4}
.tech-category-mik{background:#dbf3e8;color:#186345;border-color:#aee0c8}
.tech-category-reg{background:#ede7fa;color:#63469e;border-color:#d4c3ed}
.tech-category-ins{background:#e2f3f6;color:#1f687a;border-color:#b5dce6}
.tech-category-other{background:#eef1ee;color:#52665c;border-color:#d9e0d8}
.technology-table .tech-product-row td{vertical-align:top}
@media(max-width:680px){.tech-product-cell{gap:7px}.tech-category-badge{min-width:34px;font-size:9px;padding:4px 5px}}
@media print{.pdf-sheet .tech-product-cell{gap:5px}.pdf-sheet .tech-category-badge{font-size:8px;padding:3px 4px;min-width:27px;-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* Technologijos redagavimo apsauga */
.tech-locked-banner{margin-top:11px;border:1px solid #bdd4c7;background:#f0f8f3;color:#305944;padding:12px 14px;border-radius:9px;font-size:13px}
.tech-commands .btn:disabled,.technology-table .btn:disabled{opacity:.4;cursor:not-allowed;pointer-events:none}


/* v2.6 – technologijos eilutės įvedimas viena vertikalia seka. */
.tech-item-form{display:flex;flex-direction:column;gap:2px;min-width:0}
.tech-item-form > *, .tech-item-form .form-group, .tech-item-form .form-select, .tech-item-form .form-input, .tech-item-form .form-textarea{min-width:0;width:100%;max-width:100%}
.tech-item-form [hidden]{display:none!important}
.tech-item-form .tech-item-product-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:9px}
.tech-item-form .tech-item-product-head > span{font-size:12px;font-weight:700;color:#4d6858;white-space:nowrap;padding-bottom:7px}
.tech-item-form .tech-item-mode-control{width:min(260px,65%);display:flex;flex-direction:column;gap:5px;margin:0;font-size:11px;color:#597367;font-weight:600}
.tech-item-form .tech-item-mode-control .form-select{height:auto;min-height:42px}
.tech-item-form .tech-item-product-section{padding:0;min-width:0}
.tech-item-form .tech-item-product-section .form-group{margin-bottom:12px}
.tech-item-form .tech-item-product-section .subtle-note{margin:1px 0 14px}
.tech-item-form #tech-catalog-price .subtle-note{margin:-4px 0 13px}
@media(max-width:460px){.tech-item-form .tech-item-product-head{align-items:stretch;flex-direction:column;gap:3px}.tech-item-form .tech-item-mode-control{width:100%}}


/* v2.6 – mažiau paryškinimų, suskleidžiama kainų detalizacija. */
.tech-item-form .tech-item-entry-label{display:block;margin:0 0 12px;font-size:12px;color:#556e60;font-weight:500}
.tech-item-form .tech-item-entry-label select{display:block;width:100%;margin-top:8px}
.tech-item-form .form-group label,.tech-item-form .form-group{font-weight:500}
.tech-item-form .form-group label{font-size:12px}
.tech-item-form .subtle-note,.tech-item-form .form-hint{font-weight:400;font-size:11px;line-height:1.5;color:#72857a}
.tech-item-form .tech-item-product-section{background:transparent;border:0}
.tech-item-form #tech-catalog-fields,.tech-item-form #tech-custom-fields{background:transparent;border:0;padding:0;margin:0}
.technology-table .bbch-stage-row td{font-size:13px;font-weight:400;padding:13px 17px}
.technology-table .tech-bbch-heading{font-weight:500}
.technology-table .bbch-group-price{font-weight:400}
.technology-table .tech-product-info strong{font-weight:700}
.technology-table .tech-category-badge{font-weight:500}
.technology-table .tech-subtotal-row td{padding:9px 14px!important}
.tech-bottom-summary{padding:13px 20px}
.tech-bottom-summary p{line-height:1.6}
.tech-bottom-summary .tech-grand-total{margin:14px 0 2px;font-size:13px;font-weight:400}
.tech-bbch-details>summary,.tech-breakdown-details>summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;color:#476152;font-size:12px;font-weight:500;padding:4px 0}
.tech-bbch-details>summary::-webkit-details-marker,.tech-breakdown-details>summary::-webkit-details-marker{display:none}
.tech-bbch-details>summary::before,.tech-breakdown-details>summary::before{content:'▸';color:#62806a;font-size:14px;transition:transform .18s ease}
.tech-bbch-details[open]>summary::before,.tech-breakdown-details[open]>summary::before{transform:rotate(90deg)}
.tech-breakdown-details>summary{padding:11px 0;border-bottom:1px solid #e6ede5}
.tech-breakdown-details[open]>summary{margin-bottom:10px}
.tech-summary-count{font-size:10px;color:#8a9b91;font-weight:400}
.tech-breakdown{display:flex;flex-wrap:wrap;gap:10px 20px;padding:10px 0 3px}
.tech-breakdown-group{border-left:3px solid #b0cabc;padding:3px 0 3px 11px;min-width:170px;max-width:100%;font-size:12px;color:#385848}
.tech-breakdown-group-head{display:flex;align-items:center;gap:10px;justify-content:space-between;font-weight:500}
.tech-breakdown-children{display:flex;gap:5px 12px;flex-wrap:wrap;margin-top:7px;color:#647b6c}
.tech-breakdown-detail{font-size:11px;font-weight:400;white-space:nowrap}
.tech-breakdown-detail span{margin-left:3px}
@media (max-width:580px){.tech-breakdown-group{flex:1 1 100%}}

/* v2.6: visų išskleidžiamų sąrašų pilno teksto paieška. */
.crm-combo{position:relative;width:100%;min-width:0;max-width:100%}
.crm-combo .crm-combo-native{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;min-height:1px!important;max-width:1px!important;padding:0!important;pointer-events:none!important;overflow:hidden!important}
.crm-combo .crm-combo-input{box-sizing:border-box;width:100%;padding-right:40px!important;min-height:43px;font-size:13px;font-weight:400;background:#fff;cursor:text}
.crm-combo .crm-combo-input:focus{border-color:#568469;box-shadow:0 0 0 2px rgba(51,110,75,.11)}
.crm-combo-arrow{position:absolute;right:8px;top:4px;bottom:4px;width:29px;border:0;background:transparent;color:#526e5e;font-size:20px;cursor:pointer;line-height:1}
.crm-combo-arrow:focus-visible{outline:2px solid #4c8065;border-radius:5px}
.crm-combo-results{position:absolute;z-index:2200;top:calc(100% + 3px);left:0;right:0;border:1px solid #cddfd3;background:#fff;border-radius:9px;box-shadow:0 10px 30px rgba(19,52,39,.16);max-height:215px;overflow-y:auto;padding:4px;overscroll-behavior:contain}
.crm-combo-results[hidden]{display:none!important}
.crm-combo-option{display:block;text-align:left;width:100%;padding:9px 10px;border:0;border-radius:5px;background:transparent;color:#18392a;font:inherit;font-size:12px;font-weight:400;cursor:pointer;white-space:normal;word-break:break-word}
.crm-combo-option:hover,.crm-combo-option.active{background:#eef6ef}
.crm-combo-option.selected{color:#226044}
.crm-combo-message{font-size:11px;font-weight:400;color:#6f8477;padding:8px 10px;margin:0}
@media(max-width:560px){.crm-combo-results{max-height:190px}.crm-combo .crm-combo-input{font-size:12px}}

/* v2.7 – be dubliuotų PDF kategorijų ir naršyklės antraštės, kompaktiška ataskaita. */
@media print {
  /* Chrome nebededa datos / CRM puslapio pavadinimo, kai @page paraštės nulinės. */
  @page { size: A4 portrait; margin: 0; }
  html,body { margin:0!important; padding:0!important; }
  #crm-print-view { margin:0!important; padding:0!important; width:100%!important; }
  .pdf-farmer {box-sizing:border-box;width:100%;padding:12mm 13mm 11mm;font-family:Arial,sans-serif;color:#17382e}
  .pdf-farmer h1 {font-size:22px;margin:0 0 7px;font-weight:700}
  .pdf-farmer>p {font-size:11px;margin:0;color:#62766b}
  .pdf-farmer table {margin:18px 0 12px;font-size:10.2px;width:100%;border-collapse:collapse}
  .pdf-farmer th {background:#f3f7f2!important;color:#486757;font-weight:600;padding:9px 10px}
  .pdf-farmer td {padding:9px 10px;line-height:1.4}
  .pdf-farmer .pdf-bbch td {padding:10px 12px!important;font-size:12px;font-weight:600}
  .pdf-farmer .pdf-category-breakdown td {background:#f9faf7!important;padding:7px 10px!important}
  .pdf-farmer .pdf-stage-cats {display:flex;flex-wrap:wrap;align-items:center;gap:7px 16px;font-size:9.5px}
  .pdf-farmer .pdf-cat-chip {display:inline-flex;align-items:center;gap:5px;color:#415c50;white-space:nowrap}
  .pdf-farmer .pdf-mini-badge {font-size:8px;font-weight:600;color:#48665b;border:1px solid #d9e5df;padding:1px 4px;border-radius:3px}
  .pdf-farmer .pdf-stage-total {margin-left:auto;color:#1c4736;white-space:nowrap;font-weight:600}
  .pdf-farmer .pdf-category-summary {margin:12px 0;padding:12px 0;border-top:1px solid #dbe5dd}
  .pdf-farmer .pdf-category-summary h2 {font-size:12px;font-weight:600;margin:0 0 8px}
  .pdf-farmer .pdf-category-summary>div {display:flex;flex-wrap:wrap;gap:7px 17px;margin:0}
  .pdf-farmer .pdf-total {font-size:12px;background:#f2f8f2!important;border:1px solid #dae9dd;padding:12px 14px;font-weight:600}
  .pdf-farmer .pdf-warning {font-size:10px;color:#975629!important;margin:11px 0 0}
  .pdf-farmer .pdf-note {display:none!important}
  .pdf-bbch-cost {display:none!important}
}

/* v2.7 – klientų pagrindinė paieška lieka matoma, papildomi filtrai suskleidžiami. */
.client-advanced-details{margin:0 0 10px;border:1px solid #e2ebe2;border-radius:12px;background:#fff;overflow:hidden}
.client-advanced-details>summary,.spray-filter-panel>summary{list-style:none;cursor:pointer;user-select:none;display:flex;align-items:center;gap:9px;min-height:43px;padding:10px 14px;font-size:12px;color:#2a503c;font-weight:600}
.client-advanced-details>summary::-webkit-details-marker,.spray-filter-panel>summary::-webkit-details-marker{display:none}
.client-advanced-details>summary:hover,.spray-filter-panel>summary:hover{background:#f5faf5}
.client-collapse-title>.icon,.filter-panel-title>.icon{width:17px;height:17px;flex:none;color:#528163}
.client-active-filter-count{font-size:10px;color:#516a57;font-weight:550;background:#eaf2e7;padding:3px 8px;border-radius:6px;margin-left:5px}
.client-collapse-chevron{margin-left:auto;display:inline-flex;align-items:center;color:#728e7b}
.client-collapse-chevron .icon{width:15px;height:15px;transition:transform .2s}
.client-advanced-details[open] .client-collapse-chevron .icon,.spray-filter-panel[open] .client-collapse-chevron .icon{transform:rotate(180deg)}
.client-advanced-details>.filters{padding:6px 14px 14px;border-top:1px solid #edf2ec}
.client-advanced-details>.filters .form-select{width:auto;max-width:210px;min-width:145px;flex:1}
.spray-filter-panel{margin:0 0 17px;padding:0;overflow:hidden}
.spray-filter-panel>summary.filter-panel-title{margin:0;padding:12px 14px;flex-wrap:nowrap}
.spray-filter-panel>.spray-filter-grid{padding:6px 14px 12px;border-top:1px solid #e1ebde}
.spray-filter-panel>.subtle-note{padding:0 14px 14px;margin:0}
@media(max-width:700px){.client-advanced-details>.filters .form-select,.client-advanced-details>.filters .form-input{max-width:none;width:100%;flex-basis:100%}}

/* v2.7: keli produktai prie vieno BBCH. */
.tech-batch-row{border:1px solid #dce8dd;border-radius:12px;background:#fafcf9;padding:14px;margin:12px 0;display:grid;gap:12px}
.tech-batch-row-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.tech-batch-numbers{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tech-batch-row .form-group{margin:0;min-width:0}
@media(max-width:560px){.tech-batch-numbers{grid-template-columns:1fr}}

/* Viršuje išskirti dažniausiai naudojamus technologijos veiksmus. */
/* Pasirinkimų sąrašas turi išeiti už kortelės ribų ir neužsikirpti.
   Žemesnis už modalų foną (z-index 30), bet aukščiau vėlesnių kortelių. */
.tech-header-panel{display:flex;flex-direction:column;gap:8px;position:relative;z-index:4;overflow:visible}
.tech-header-panel .crm-combo-results{z-index:5;max-height:min(260px,50vh);overflow-y:auto;overscroll-behavior:contain}
.tech-header-panel>.tech-commands{order:-1;padding:12px 14px;margin:-18px -18px 13px;background:#eef6e9;border-bottom:1px solid #d9e8d3;border-radius:14px 14px 0 0;flex-wrap:wrap;gap:7px}
.tech-header-panel>.tech-commands .btn-primary{background:#275843;color:#fff}
.tech-header-panel>.tech-commands .btn{font-weight:550}

/* v2.8 – technologijos kategorijų kainos atskiroje dešinėje kortelėje. */
.tech-calc-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(245px,1fr);align-items:start;gap:17px}
.tech-calc-layout>.panel{min-width:0;margin-bottom:0}
.tech-category-sidebar{position:sticky;top:18px;overflow:hidden}
.tech-side-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:19px 18px 16px;border-bottom:1px solid #e8eee8}
.tech-side-heading h2{margin:0;font-size:15px;font-weight:700;letter-spacing:-.02em}
.tech-side-count{font-size:10px;color:#637969;background:#eef5ed;padding:5px 8px;border-radius:12px;white-space:nowrap}
.tech-side-body{padding:17px 18px 20px}
.tech-side-category{margin:0 0 18px}
.tech-side-category-line{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;font-size:12px;color:#314d3e;line-height:1.5}
.tech-side-category-line>span{flex:1;min-width:0}
.tech-side-category-line strong{font-size:12px;white-space:nowrap;color:#1d4836;font-weight:650}
.tech-side-progress{width:100%;height:7px;background:#edf1ec;overflow:hidden;border-radius:12px;margin:8px 0 5px}
.tech-side-progress-fill{display:block;height:100%;border-radius:12px;min-width:0}
.tech-side-protection{background:#d39a50}.tech-side-micro{background:#4eae93}.tech-side-fertilizer{background:#739bc2}.tech-side-other{background:#94a39b}
.tech-side-subcategories{display:grid;gap:5px;margin:8px 0 0;color:#73887b;font-size:10px}
.tech-side-subcategories>div{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.tech-side-subcategories>div span:last-child{white-space:nowrap}
.tech-side-total{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px;border-top:1px solid #dfe9de;padding:16px 0 7px;margin-top:6px;color:#234e3a}
.tech-side-total>span{font-size:13px;font-weight:700}.tech-side-total>strong{font-size:20px;font-weight:750;white-space:nowrap;letter-spacing:-.03em}
.tech-side-total>small{flex-basis:100%;text-align:right;color:#607969;font-size:11px}
.tech-side-warning{margin:10px 0 0;color:#a26338;font-size:11px;line-height:1.5}
.tech-side-body>.tech-breakdown-details,.tech-side-stages{margin-top:15px;padding-top:9px;border-top:1px solid #e8eee8}
.tech-side-stages>summary{font-size:12px;color:#476152;cursor:pointer;list-style:none;padding:10px 0}
.tech-side-stages>summary::-webkit-details-marker{display:none}
.tech-side-stages>summary::before{content:'▸';font-size:14px;color:#62806a;margin-right:8px}
.tech-side-stages[open]>summary::before{content:'▾'}
.tech-side-stages-body{display:grid;gap:8px}
.tech-side-stages-body>.tech-bbch-details{border-bottom:1px solid #edf1ed;padding:5px 0}
.tech-side-stages-body .tech-bbch-details>summary{display:flex;gap:5px;justify-content:space-between}
.tech-category-sidebar .tech-breakdown{display:grid;grid-template-columns:1fr;gap:9px;padding:10px 0}
.tech-category-sidebar .tech-breakdown-group{min-width:0;width:100%;padding-left:8px;font-size:11px}
.tech-category-sidebar .tech-breakdown-group-head{flex-wrap:wrap;gap:5px}
.tech-category-sidebar .tech-breakdown-children{gap:5px 9px}
@media(max-width:1240px){.tech-calc-layout{grid-template-columns:minmax(0,1fr)}.tech-category-sidebar{position:static}.tech-category-sidebar .tech-side-body{display:block}.tech-calc-layout>.panel{margin-bottom:0}}
@media print{.tech-calc-layout{display:none!important}}

/* v2.8.3 – sutraukta PDF lentelė: siaura centruota lentelė ir greta esantys skaitiniai stulpeliai. */
#crm-print-view.pdf-measuring{display:block!important;position:absolute!important;left:-200vw;top:0;width:210mm!important;margin:0!important;padding:0!important;visibility:hidden;z-index:-1}
#crm-print-view .pdf-sheet.pdf-farmer{box-sizing:border-box;width:calc(128mm / var(--pdf-fit-scale,1));margin:0 auto;padding:5mm 4mm 5mm;zoom:var(--pdf-fit-scale,1);font-family:Arial,sans-serif;color:#17382e;max-width:none}
#crm-print-view .pdf-farmer h1{font-size:18px;font-weight:700;margin:0 0 3px;line-height:1.15}
#crm-print-view .pdf-farmer>p{font-size:9px;margin:0;color:#62766b;line-height:1.2}
#crm-print-view .pdf-farmer table{width:100%;margin:7px 0 6px;border-collapse:collapse;table-layout:fixed;font-size:8.7px}
#crm-print-view .pdf-farmer th{padding:5px 5px;background:#f3f7f2!important;font-weight:650;color:#486757;border-bottom:1px solid #d6dfd7;text-align:left;line-height:1.15}
#crm-print-view .pdf-farmer td{padding:4px 5px;line-height:1.12;border-bottom:1px solid #d6dfd7;text-align:left;vertical-align:top;overflow-wrap:anywhere}
#crm-print-view .pdf-farmer .pdf-table-full .pdf-col-product{width:46%}
#crm-print-view .pdf-farmer .pdf-table-full .pdf-col-rate{width:12%}
#crm-print-view .pdf-farmer .pdf-table-full .pdf-col-price{width:14%}
#crm-print-view .pdf-farmer .pdf-table-full .pdf-col-cost{width:11%}
#crm-print-view .pdf-farmer .pdf-table-full .pdf-col-total{width:17%}
#crm-print-view .pdf-farmer .pdf-table-ha .pdf-col-product{width:70%}
#crm-print-view .pdf-farmer .pdf-table-ha .pdf-col-rate{width:15%}
#crm-print-view .pdf-farmer .pdf-table-ha .pdf-col-cost{width:15%}
/* v2.8.9: dviejų stulpelių technologija: produktas / norma, be individualių kainų. */
#crm-print-view .pdf-farmer .pdf-table-summary .pdf-col-product{width:82%}
#crm-print-view .pdf-farmer .pdf-table-summary .pdf-col-rate{width:18%}
#crm-print-view .pdf-farmer .pdf-num{text-align:right;white-space:nowrap;padding-left:2px;padding-right:2px}
#crm-print-view .pdf-farmer .pdf-bbch td{padding:5px 7px!important;font-size:9.9px;font-weight:650;background:#eef5e9!important;break-inside:avoid;line-height:1.15}
#crm-print-view .pdf-farmer .pdf-category-breakdown td{background:#f9faf7!important;padding:3px 6px!important}
#crm-print-view .pdf-farmer .pdf-stage-cats{display:flex;align-items:center;flex-wrap:wrap;gap:2px 8px;font-size:7.8px;line-height:1.15}
#crm-print-view .pdf-farmer .pdf-cat-chip{display:inline-flex;align-items:center;gap:3px;white-space:nowrap;color:#415c50;margin:0;padding:0}
#crm-print-view .pdf-farmer .pdf-mini-badge{font-size:6.9px;color:#48665b;border:1px solid #d9e5df;padding:1px 3px;border-radius:3px}
#crm-print-view .pdf-farmer .pdf-stage-total{margin-left:auto;color:#1c4736;white-space:nowrap;font-weight:650;padding-left:6px}
#crm-print-view .pdf-farmer .tech-product-cell{display:flex;gap:4px;align-items:flex-start}
#crm-print-view .pdf-farmer .tech-category-badge{font-size:6.8px;padding:2px 3px;min-width:22px;line-height:1.1;print-color-adjust:exact;-webkit-print-color-adjust:exact}
#crm-print-view .pdf-farmer .pdf-subline{font-size:7.2px;color:#67796b;margin-top:1px;line-height:1.12}
#crm-print-view .pdf-farmer .pdf-total{display:flex;justify-content:space-between;gap:10px;break-inside:avoid;font-size:10px;font-weight:650;padding:7px 9px;background:#f2f8f2!important;border:1px solid #dae9dd;line-height:1.15}
#crm-print-view .pdf-farmer .pdf-warning{font-size:8.5px;color:#975629!important;margin:6px 0 0}
#crm-print-view .pdf-farmer tr{break-inside:avoid}
@media print{
 @page{size:A4 portrait;margin:0}
 #crm-print-view{display:block!important;width:210mm!important;margin:0!important;padding:0!important}
 html,body{margin:0!important;padding:0!important}
}

/* v2.8.5 – nauja mikroelementų skiltis, stilistiškai vieninga su Lauko CRM. */
.micro-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:4px 0 18px}
.micro-stat{border:1px solid var(--line);border-radius:13px;background:#fff;padding:16px 18px;display:flex;flex-direction:column;gap:4px;box-shadow:var(--shadow)}
.micro-stat span{font-size:11px;color:#778b7e;font-weight:650}.micro-stat b{font-size:25px;line-height:1.3;letter-spacing:-.04em;color:#234d3f}.micro-stat small{font-size:10px;color:#96a79b}
.micro-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}.micro-tab{border:1px solid #d9e5da;background:#fff;color:#315144;border-radius:9px;padding:11px 17px;font-size:12px;font-weight:700}.micro-tab.active{background:#234d3f;border-color:#234d3f;color:#fff}.micro-tab:hover:not(.active){background:#edf5ed}
.micro-panel{border:1px solid #e2e9e2;border-radius:14px;overflow:hidden;background:#fff;box-shadow:var(--shadow)}
.micro-filters{display:grid;grid-template-columns:minmax(210px,2fr) repeat(3,minmax(145px,1fr));gap:10px;align-items:center;padding:18px;border-bottom:1px solid var(--line);background:#fcfdfb}
.micro-filters .search-wrap{min-width:0}.micro-filters select{height:40px;width:100%;max-width:none}.micro-list-heading{padding:12px 19px;font-size:11px;color:#6d8576;border-bottom:1px solid #e6eee6}
.micro-list-heading strong{color:#224a38;font-size:12px}
.micro-table-scroll{width:100%;overflow:auto}.micro-data-table{min-width:1190px;width:100%;table-layout:auto}
.micro-data-table th{padding:12px 13px;white-space:nowrap}.micro-data-table td{padding:11px 13px;vertical-align:middle;line-height:1.35}
.micro-product-name{font-size:12px;color:#214939;display:block;max-width:220px}.micro-small{font-size:10px;margin-top:5px;color:#859789}
.micro-owner{display:inline-block;font-size:9px;font-weight:700;border:1px solid #e1e9e2;border-radius:6px;padding:3px 6px;color:#647b6d;background:#f7faf7;white-space:nowrap}
.micro-owner-ours{background:#e6f5dd;color:#3d7449;border-color:#c9e5c5}.micro-owner-competitor{background:#f9eee7;color:#a36e40;border-color:#f0ddca}
.micro-group-pill{border-radius:6px;color:#466954;background:#eff5ef;font-weight:650;display:inline-block;padding:5px 7px;font-size:10px;max-width:170px}
.micro-nutrients{display:flex;flex-wrap:wrap;gap:4px;max-width:310px}.micro-nutrient{display:inline-flex;align-items:center;white-space:nowrap;gap:4px;padding:4px 6px;border:1px solid #dbeade;background:#f3faf2;border-radius:6px;color:#43634f;font-size:10px}.micro-nutrient b{color:#255641}.micro-more{font-size:10px;color:#6b8472;padding:4px 6px}
.micro-number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.micro-row-actions{display:flex;align-items:center;gap:4px;white-space:nowrap}.micro-row-actions .btn{min-height:29px;padding:5px 7px}
.micro-footnote{margin:0;padding:13px 18px;background:#f8fbf7;border-top:1px solid #e8ede6;color:#748778;font-size:11px;line-height:1.65}
.micro-compare-header{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;padding:20px 22px;border-bottom:1px solid #e7ede6}.micro-compare-header h2,.micro-source-intro h2{font-size:16px;margin:0 0 6px;letter-spacing:-.02em}.micro-compare-header p,.micro-source-intro p{font-size:12px;color:#7c8f82;margin:0;line-height:1.6}.micro-compare-actions{display:flex;gap:8px;flex-wrap:wrap}
.micro-preset-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;background:#f7faf5;border-bottom:1px solid #e7ede6;padding:12px 20px}.micro-preset-row label{font-size:11px;color:#637f69;font-weight:700}.micro-preset-row select{max-width:200px;min-width:140px}
.micro-compare-wrap{width:100%;overflow:auto;max-height:680px}.micro-compare-table{width:max-content;min-width:100%;font-size:11px;white-space:nowrap}.micro-compare-table th,.micro-compare-table td{min-width:88px;padding:11px 8px}.micro-compare-table th:nth-child(2),.micro-compare-table td:nth-child(2){min-width:280px;max-width:340px}.micro-compare-table thead{position:sticky;top:0;z-index:1}.micro-compare-table td:nth-child(2){white-space:normal}.micro-compare-product{width:100%;min-width:230px;max-width:330px}.micro-compare-table .crm-combo{min-width:230px}.micro-index{color:#9dad9e;font-weight:700}.micro-rate{display:flex;gap:5px;align-items:center}.micro-rate input{width:95px;min-width:80px}.micro-rate span{font-size:10px;color:#819384}.micro-totals td{background:#eaf5e7!important;color:#224a34;font-weight:800;border-top:2px solid #c9dec9}
.micro-edit-modal{width:min(950px,calc(100vw - 35px))}.micro-edit-modal .modal-form{max-height:calc(100vh - 120px)}.micro-field-heading{font-size:13px;font-weight:800;color:#315a41;margin:5px 0 13px}.micro-nutrient-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 13px}
.micro-source-intro{padding:24px 22px;border-bottom:1px solid var(--line)}.micro-source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:19px}.micro-source-card{border:1px solid #dfe9df;border-radius:11px;padding:14px;background:#fbfdfb;display:flex;flex-direction:column;gap:5px}.micro-source-card b{font-size:12px;color:#244e3a}.micro-source-card small{font-size:10px;color:#93a597}.micro-source-number{font-size:9px;color:#6a9474;font-weight:850;letter-spacing:.1em}
@media(max-width:1200px){.micro-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.micro-source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.micro-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.micro-filters{grid-template-columns:1fr}.micro-source-grid{grid-template-columns:1fr}.micro-nutrient-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.micro-compare-header{align-items:flex-start}}

/* v2.8.7 – aiškiai matomos cheminės formos ir veikiantys filtrai. */
.micro-filters{grid-template-columns:minmax(220px,1.8fr) repeat(4,minmax(130px,1fr))}
.micro-data-table{min-width:1290px}
.micro-chem-pill{display:inline-block;max-width:180px;padding:5px 8px;border-radius:7px;border:1px solid #d9e6d9;background:#f0f6ef;color:#25513c;font-size:10px;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
.micro-unlisted{font-size:10px;color:#899a8e;font-style:italic}
@media(max-width:1350px){.micro-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.micro-filters .search-wrap{grid-column:span 2}}
@media(max-width:800px){.micro-filters{grid-template-columns:1fr}.micro-filters .search-wrap{grid-column:auto}}
/* Ilgoje mikroelementų lentelėje Palyginti / Redaguoti mygtukai lieka pasiekiami net slenkant į šoną. */
.micro-table-scroll .micro-data-table th:last-child,
.micro-table-scroll .micro-data-table td:last-child{position:sticky;right:0;z-index:1;background:#fff;box-shadow:-6px 0 10px rgba(22,54,40,.055);min-width:155px}
.micro-table-scroll .micro-data-table thead th:last-child{z-index:2;background:#f7faf6}

/* v2.8.7 – kompaktūs kelių tiekėjų / produktų pasirinkimai ir neribota sudėtis. */
.micro-catalog-panel{overflow:visible}
.micro-catalog-panel .micro-filters{position:relative;z-index:5;grid-template-columns:minmax(200px,1.7fr) repeat(5,minmax(135px,1fr));gap:10px;border-radius:14px 14px 0 0}
.micro-multifilter{position:relative;min-width:0}
.micro-multi-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:40px;border:1px solid #dce6dc;border-radius:10px;padding:8px 12px;text-align:left;background:#fff;color:#2e5042;font-size:12px}
.micro-multi-toggle:hover,.micro-multi-toggle[aria-expanded="true"]{border-color:#8eb69c;background:#f5faf3}
.micro-multi-toggle.has-selections{font-weight:750;color:#22553a;border-color:#b6d6bc;background:#f2f9f0}
.micro-multi-chevron{font-size:18px;line-height:1;color:#597866}
.micro-multi-popup{position:absolute;top:calc(100% + 5px);left:0;width:max(310px,100%);max-width:min(430px,calc(100vw - 60px));border:1px solid #cfdfd1;border-radius:12px;background:#fff;box-shadow:0 15px 35px rgba(14,51,34,.16);z-index:20;overflow:hidden}
.micro-multi-popup[hidden]{display:none}
.micro-multi-search{padding:11px;border-bottom:1px solid #ebf1e9;background:#fbfdf9}
.micro-multi-search .form-input{width:100%;height:36px;font-size:12px}
.micro-multi-options{max-height:278px;overflow-y:auto;overscroll-behavior:contain;padding:5px 0}
.micro-multi-choice{display:flex;align-items:flex-start;gap:10px;padding:9px 12px;cursor:pointer;color:#274d3b;font-size:12px;line-height:1.35}
.micro-multi-choice:hover{background:#f0f7ee}
.micro-multi-choice[hidden]{display:none}
.micro-multi-choice input{flex-shrink:0;accent-color:#245a3e;width:15px;height:15px;margin:1px 0 0}
.micro-multi-option-label{min-width:0;overflow-wrap:anywhere}
.micro-multi-option-label small{display:block;font-size:10px;color:#849c89;margin-top:2px}
.micro-multi-bottom{border-top:1px solid #e9f0e8;background:#f9fcf8;padding:10px 12px;display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;color:#60776a}
.micro-multi-bottom>div{display:flex;gap:10px}
.micro-multi-bottom button,.micro-reset-filters{background:none;border:0;color:#255b3e;font-size:11px;font-weight:750;padding:3px;cursor:pointer}
.micro-multi-bottom button:hover,.micro-reset-filters:hover{text-decoration:underline}
.micro-list-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.micro-catalog-panel .micro-data-table{min-width:1190px}
.micro-catalog-panel .micro-data-table th:nth-child(6),.micro-catalog-panel .micro-data-table td:nth-child(6){min-width:310px;max-width:520px;width:38%}
.micro-catalog-panel .micro-nutrients{max-width:none;gap:5px;flex-wrap:wrap;align-items:flex-start}
.micro-catalog-panel .micro-nutrient{white-space:nowrap}
.micro-catalog-panel .micro-row-actions{justify-content:flex-end}
.micro-catalog-panel .micro-data-table th:last-child,.micro-catalog-panel .micro-data-table td:last-child{min-width:86px}
@media(max-width:1500px){.micro-catalog-panel .micro-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.micro-catalog-panel .micro-filters .search-wrap{grid-column:span 2}}
@media(max-width:820px){.micro-catalog-panel .micro-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.micro-catalog-panel .micro-filters .search-wrap{grid-column:span 2}}
@media(max-width:530px){.micro-catalog-panel .micro-filters{grid-template-columns:1fr}.micro-catalog-panel .micro-filters .search-wrap{grid-column:auto}.micro-multi-popup{width:100%}}

/* Aiškiai skaitomos katalogo kainų ir sudėties kolonos; likusi dalis slenkama horizontaliai. */
.micro-catalog-panel .micro-data-table{min-width:1460px}
.micro-catalog-panel .micro-data-table th:nth-child(1),.micro-catalog-panel .micro-data-table td:nth-child(1){min-width:165px}
.micro-catalog-panel .micro-data-table th:nth-child(2),.micro-catalog-panel .micro-data-table td:nth-child(2){min-width:130px}
.micro-catalog-panel .micro-data-table th:nth-child(3),.micro-catalog-panel .micro-data-table td:nth-child(3){min-width:160px}
.micro-catalog-panel .micro-data-table th:nth-child(4),.micro-catalog-panel .micro-data-table td:nth-child(4){min-width:130px}
.micro-catalog-panel .micro-data-table th:nth-child(5),.micro-catalog-panel .micro-data-table td:nth-child(5){min-width:155px}
.micro-catalog-panel .micro-data-table th:nth-child(6),.micro-catalog-panel .micro-data-table td:nth-child(6){min-width:340px;max-width:520px}
.micro-catalog-panel .micro-data-table th:nth-child(7),.micro-catalog-panel .micro-data-table td:nth-child(7),
.micro-catalog-panel .micro-data-table th:nth-child(8),.micro-catalog-panel .micro-data-table td:nth-child(8){min-width:100px}

/* v2.8.8 – kelių maisto elementų įvedimas viename produkto lange. */
.nutrient-batch-row{background:#fafcf9;border:1px solid #dce8dd;border-radius:12px;padding:13px 15px;margin:0 0 11px}
.nutrient-batch-row-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px;font-size:12px;color:#28503a}
.nutrient-batch-fields{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,.85fr);gap:9px 12px}
.nutrient-batch-fields .form-group{min-width:0;margin:0}
.nutrient-batch-custom{grid-column:1 / -1;grid-row:2}
.nutrient-batch-add{display:flex;justify-content:flex-start;margin:7px 0 19px}
.nutrient-batch-add .btn{white-space:normal}
@media(max-width:550px){.nutrient-batch-fields{grid-template-columns:1fr 1fr}.nutrient-batch-name,.nutrient-batch-custom{grid-column:1/-1}.nutrient-batch-custom{grid-row:auto}}

/* v2.9.0 – keli produktai vienu kartu kliento kortelėje. */
.usage-batch-modal{width:min(900px,calc(100vw - 28px))}
.usage-batch-modal .modal-form{overflow:auto;max-height:calc(100vh - 110px)}
.usage-batch-row{border:1px solid #dce9dd;border-radius:13px;padding:16px 16px 5px;margin:14px 0;background:#fbfdfb}
.usage-batch-row-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px;color:#244d39;font-size:13px}
.usage-batch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px;row-gap:0}
.usage-batch-grid .form-group{min-width:0}
.usage-batch-grid .usage-batch-catalog,.usage-batch-grid .usage-batch-custom{min-width:0}
.usage-batch-grid .usage-batch-notes{grid-column:1/-1}
.usage-batch-grid .usage-batch-custom:not([hidden]){display:grid;grid-template-columns:1fr;gap:0}
.usage-batch-add{margin:12px 0 16px}
@media(max-width:640px){.usage-batch-grid{grid-template-columns:1fr}.usage-batch-grid .usage-batch-notes{grid-column:auto}.usage-batch-row{padding:12px 12px 3px}}

/* v2.9.2 – kableliais atskirti kliento produktai paspaudžiami kaip filtras. */
.client-products-cell .client-product-filter-link{display:inline;color:inherit;background:transparent;border:0;border-radius:2px;margin:0;padding:0;line-height:inherit;font:inherit;text-align:left;cursor:pointer;white-space:normal;overflow-wrap:anywhere}
.client-products-cell .client-product-filter-link:hover{color:#1c6e49;text-decoration:underline;text-underline-offset:2px}
.client-products-cell .client-product-filter-link:focus-visible{outline:2px solid #248352;outline-offset:2px}

/* Aktyvus produktų filtras matomas net suskleidus papildomus filtrus. */
.client-product-active-filter{display:inline-flex;align-items:center;gap:6px;max-width:100%;border:1px solid #b9d9bd;background:#edf6ee;color:#245940;border-radius:9px;padding:8px 10px;font:inherit;font-size:12px;cursor:pointer;white-space:normal;overflow-wrap:anywhere}
.client-product-active-filter:hover{border-color:#4a9a70;background:#e1f1e5}
.client-product-active-filter:focus-visible{outline:2px solid #248352;outline-offset:2px}
.client-product-active-filter strong{font-weight:700}
