: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}}
