.crop-plan{max-width:none;margin:auto}
.crop-version{display:inline-block;margin:0 0 8px;padding:4px 8px;border-radius:5px;background:#31563a;color:#e5f5dc;font-size:.75rem;font-weight:800;letter-spacing:.03em}
.crop-lead{background:#203a27;color:#dbeada;border-radius:12px;padding:13px 16px;font-size:.92rem;line-height:1.5;margin:0 0 14px}
.crop-apia-status{color:#d4e6d3;background:#253a29;border:1px solid #49674f;border-radius:8px;padding:9px 12px;font-size:.81rem;line-height:1.5}
.crop-rule-status{color:#191307;background:#ffe071;border:2px solid #ffad17;border-radius:8px;padding:12px 14px;margin-top:8px;font-size:.92rem;font-weight:750;line-height:1.5;box-shadow:0 0 0 3px #54410d}
.crop-rule-status[hidden]{display:none}
.crop-table tbody tr td.crop-rule-cell{background:#ffcf38;color:#1c1607;border:2px solid #ff6a00}
.crop-table td.crop-rule-cell select.crop-rule-conflict{border:2px solid #5c2400;background:#fff6d6;color:#1b160b;font-weight:800}
.crop-rule-mark{display:block;color:#4c1800;font-size:.75rem;letter-spacing:.03em;margin-bottom:3px}
.crop-apia-name,.crop-personal-name{display:block;max-width:290px;overflow:hidden;text-overflow:ellipsis}
.crop-apia-name{color:#bde4bd;font-size:.79rem}.crop-personal-name{font-size:.83rem}
.crop-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:10px 0}
.crop-toolbar label{display:grid;gap:5px;font-size:.79rem;color:#bbd8c2;font-weight:700;flex:1 1 220px}
.crop-toolbar input,.crop-table input,.crop-table select{box-sizing:border-box;width:100%;min-height:34px;background:#111d15;border:1px solid #49674f;color:#f1f7ed;padding:5px 7px;border-radius:6px;font:inherit}
.crop-toolbar button{min-height:38px}
.crop-status{min-height:24px;color:#a5e4ac;font-size:.81rem;margin:8px 0}
.crop-status.crop-error{color:#ffb3a5}
.crop-table-wrap,.crop-summary-wrap{overflow:auto;max-width:100%;border:1px solid #45604a;border-radius:10px;scrollbar-color:#78987c #17251b}
.crop-table-wrap{max-height:68vh}
.crop-table,.crop-summary{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:.79rem}
.crop-table th,.crop-table td,.crop-summary th,.crop-summary td{border-right:1px solid #38513c;border-bottom:1px solid #38513c;padding:6px 7px;text-align:left;background:#17251b;white-space:nowrap}
.crop-table tbody tr:nth-child(even)>*,.crop-summary tbody tr:nth-child(even)>*{background:#1d2c20}
.crop-table thead th,.crop-summary thead th{position:sticky;z-index:4;background:#29422e;color:#edf7ed;font-weight:700;text-align:center}
.crop-table thead tr:first-child th,.crop-summary thead tr:first-child th{top:0;height:39px}
.crop-table thead tr:nth-child(2) th,.crop-summary thead tr:nth-child(2) th{top:39px;height:32px;background:#233a28}
.crop-table thead tr:first-child th:nth-child(1),.crop-table tbody td:nth-child(1){min-width:40px;width:40px;max-width:40px}
.crop-table thead tr:first-child th:nth-child(2),.crop-table tbody th:nth-child(2){min-width:220px;width:220px;max-width:220px;overflow:hidden;text-overflow:ellipsis}
.crop-table thead tr:first-child th:nth-child(3),.crop-table tbody td:nth-child(3){min-width:110px;width:110px}
.crop-table thead tr:first-child th:nth-child(-n+3),.crop-table tbody tr>*:nth-child(-n+3){position:sticky;z-index:3}
.crop-table thead tr:first-child th:nth-child(-n+3){z-index:8}
.crop-table thead tr:first-child th:nth-child(1),.crop-table tbody tr>*:nth-child(1){left:0}
.crop-table thead tr:first-child th:nth-child(2),.crop-table tbody tr>*:nth-child(2){left:40px}
.crop-table thead tr:first-child th:nth-child(3),.crop-table tbody tr>*:nth-child(3){left:260px;box-shadow:3px 0 5px #0d1a10}
.crop-table td input,.crop-table td select{width:128px;min-height:31px;font-size:.78rem}
.crop-table td input[data-field=parcelNumber]{width:96px}
.crop-table td.crop-apia-cell{background:#263a2a}
.crop-table td.crop-apia-cell input,.crop-table td.crop-apia-cell select{border-color:#83aa77}
.crop-table td.crop-excel-cell{background:#2b3025}
.crop-import ul{padding-left:20px;max-height:180px;overflow:auto;line-height:1.6}
.crop-table th input[data-field=name]{width:100%;min-width:180px}
.crop-table .crop-number{text-align:right;font-variant-numeric:tabular-nums}
.crop-table td input.crop-parcel-pending{border-color:#c8a75b;background:#332c19}
.crop-table td input[data-field=ha]{width:68px;text-align:right}
.crop-table td input[data-field=measure]{width:66px;text-transform:uppercase}
.crop-table td select[data-field=measure]{width:105px;min-width:105px}
.crop-table input:focus-visible,.crop-table select:focus-visible{outline:2px solid #addfa8;outline-offset:0}
.crop-table tfoot th,.crop-table tfoot td,.crop-summary .crop-total-row>*{background:#28442e!important;color:#f1f8ed;font-weight:700}
.crop-table tfoot th{position:sticky;left:0;z-index:3;min-width:370px;box-shadow:3px 0 5px #0d1a10}
.crop-table tfoot td{text-align:right}
.crop-summary-title{font-size:1.05rem;margin:23px 0 6px;color:#e8f2e9}
.crop-summary-note{font-size:.78rem;color:#bbcfbb;line-height:1.5;margin:6px 0 11px}
.crop-summary-wrap{max-height:48vh}
.crop-summary thead tr:first-child th:first-child,.crop-summary tbody th:first-child{position:sticky;left:0;min-width:146px;z-index:3;box-shadow:3px 0 5px #0d1a10}
.crop-summary thead tr:first-child th:first-child{z-index:8}
.crop-summary td{min-width:80px;text-align:right;font-variant-numeric:tabular-nums}
.crop-summary td.crop-sum-value{background:#203925;font-weight:700}
.crop-import{margin:16px 0 0;padding:12px;border:1px solid #45604a;border-radius:10px;background:#17251b;font-size:.83rem}
.crop-import summary{cursor:pointer;font-weight:700;color:#daf0db}
.crop-import input{display:block;margin:10px 0}
@media(max-width:780px){
  .crop-table-wrap{max-height:64vh}
  .crop-toolbar button{flex:1 1 160px}
  .crop-table thead tr:first-child th:nth-child(n+3){left:auto;box-shadow:none}
  .crop-table tbody tr>*:nth-child(n+3){position:static;box-shadow:none}
  .crop-table thead tr:first-child th:nth-child(2),.crop-table tbody th:nth-child(2){width:138px;min-width:138px;max-width:138px}
  .crop-table thead tr:first-child th:nth-child(3),.crop-table tbody td:nth-child(3){width:100px;min-width:100px}
  .crop-table tfoot th{min-width:178px}
  .crop-summary thead tr:first-child th:first-child,.crop-summary tbody th:first-child{min-width:110px}
}

/* Antetul cu doua randuri se fixeaza ca un singur bloc, fara suprapunere la zoom. */
.crop-table-wrap,.crop-summary-wrap{position:relative;isolation:isolate}
.crop-table thead,.crop-summary thead{position:sticky;top:0;z-index:20;background:#29422e}
.crop-table thead th,.crop-summary thead th{position:relative;top:auto!important;background:#29422e}
.crop-table thead tr:nth-child(2) th,.crop-summary thead tr:nth-child(2) th{background:#233a28}
.crop-table thead tr:first-child th:nth-child(-n+3),.crop-summary thead tr:first-child th:first-child{position:sticky;z-index:21}
.crop-table thead{box-shadow:0 2px 0 #78987c}
