.customer-grid-mode main{max-width:none;padding:12px}.customer-grid-mode main>header h1{font-size:18px}.customer-grid-mode .notice{display:none}.customer-grid-mode .filters{padding:5px 0 8px}.customer-grid-head{display:flex;justify-content:space-between;align-items:center;margin:9px 0 5px;gap:10px}.customer-grid-head b{font-size:17px}.customer-grid-head button{font-size:11px;padding:6px 10px}.grid-count{font-size:11px;margin-left:9px;background:#e3f1dc;color:#32633c;padding:4px 8px;border-radius:20px}.grid-hint{font-size:11px;color:#6c806d;line-height:1.5;margin:5px 0 9px}.grid-toolbar{display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding:6px 0 9px}.grid-toolbar input,.grid-toolbar select,.grid-toolbar button{font-size:11px;padding:6px 8px;height:29px}.grid-toolbar input{width:210px}.grid-toolbar button.selected,.care-pane-tabs button.selected{background:#ddf0d4;border-color:#8fbc81;color:#145124}.grid-toolbar #gridSaveStatus{margin-left:auto;font-size:10px;color:#2d7637}.grid-bulk{display:flex;gap:8px;align-items:center;background:#e3f4da;border:1px solid #c8e4c0;padding:6px 9px;margin-bottom:8px;border-radius:5px;font-size:11px}.grid-bulk select,.grid-bulk button{font-size:11px;padding:4px 7px;max-width:160px}.customer-workspace{display:flex;align-items:stretch;gap:12px;min-width:0}.customer-main{min-width:0;flex:1}.customer-table-scroll{border:1px solid #d3e4d2;overflow:auto;max-height:calc(100vh - 256px);min-height:220px;border-radius:6px;background:white;scrollbar-width:thin}.customer-sheet{border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:var(--crm-font-size,11px);width:max-content;min-width:1400px}.customer-sheet th{position:sticky;top:0;background:#14622b;color:white;font-size:11px;padding:6px 4px;z-index:4;height:29px;border-right:1px solid #40834c;white-space:nowrap;text-align:left}.customer-sheet td{height:26px;padding:0 3px;border-right:1px solid #e0eadd;border-bottom:1px solid #dce7d7;background:white;font-size:var(--crm-font-size,11px);text-align:left;line-height:1.2}.customer-sheet tr:nth-child(even)>td{background:#f0f8ec}.customer-sheet tr.grid-row-active>td{background:#dff0d9}.customer-sheet tr:hover>td{background:#e6f2e0}.customer-sheet td:first-child,.customer-sheet th:first-child{position:sticky;left:0;z-index:3;text-align:center;width:29px}.customer-sheet th:first-child{z-index:6}.customer-sheet td:nth-child(2),.customer-sheet th:nth-child(2){position:sticky;left:29px;z-index:3}.customer-sheet td:nth-child(3),.customer-sheet th:nth-child(3){position:sticky;left:119px;z-index:3}.customer-sheet td:nth-child(4),.customer-sheet th:nth-child(4){position:sticky;left:259px;z-index:3;border-right:2px solid #b4cbb0}.customer-sheet th:nth-child(2),.customer-sheet th:nth-child(3),.customer-sheet th:nth-child(4){z-index:6}.customer-sheet input[type=checkbox]{width:13px;height:13px;accent-color:#246c32;margin:0;cursor:pointer}.customer-sheet .grid-input{font-family:var(--crm-font);font-size:var(--crm-font-size,11px);width:100%;height:25px;padding:3px 1px;color:#26432d;border:1px solid transparent;border-radius:3px;background:transparent;min-width:0;outline:none}.customer-sheet select.grid-input{padding-right:0;cursor:pointer}.customer-sheet .grid-input:focus{border-color:#2c813b;background:white;box-shadow:0 0 0 1px #2c813b}.customer-sheet td:nth-child(3) .grid-input{font-weight:600;color:#1c572b}.customer-sheet .grid-care-button{font-size:10px;padding:2px 6px;border-radius:3px;color:#1c692e;line-height:1.3;white-space:nowrap;background:#f6fff3;border-color:#b7d4ad}.grid-pagination{display:flex;justify-content:space-between;align-items:center;font-size:11px;padding:9px 2px;color:#57735d}.grid-pagination>div{display:flex;align-items:center;gap:8px}.grid-pagination button{font-size:15px;padding:3px 10px}.grid-pagination button:disabled{opacity:.4;cursor:default}.customer-care-pane{position:static;width:300px;height:auto;max-height:calc(100vh - 235px);overflow-y:auto;flex:0 0 300px;background:#fff;color:#23442c;padding:15px;border:1px solid #d4e4d1;border-radius:7px;display:block;box-shadow:0 2px 8px #254c2408}.care-pane-title{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e0e9dd;padding-bottom:8px;margin-bottom:12px}.care-pane-title h2{font-size:17px;color:#1e5f2c;margin:0}.care-pane-title button{border:0;font-size:23px;padding:0;background:none}.customer-care-pane h3{font-size:17px;margin:0 0 3px}.customer-care-pane>p{font-size:11px;margin:4px 0;color:#637e67}.care-counter{display:flex;gap:5px;flex-wrap:wrap;margin:10px 0}.care-counter span{font-size:10px;padding:5px 6px;background:#e4f3dc;border-radius:20px;color:#2a6332}.care-pane-tabs{display:flex;gap:4px;margin:10px 0}.care-pane-tabs button{font-size:10px;padding:5px 6px}.customer-care-pane form label{font-size:11px;margin:9px 0;color:#3e6245}.customer-care-pane form input,.customer-care-pane form select,.customer-care-pane form textarea{font-size:12px;padding:7px;width:100%;margin-top:5px}.customer-care-pane form textarea{resize:vertical;min-height:78px}.care-save-buttons{display:flex;gap:5px}.customer-care-pane button.primary{font-size:11px;padding:8px;flex:1}.care-save-buttons>button{font-size:11px}.customer-care-pane h4{font-size:13px;border-top:1px solid #e0eadd;padding-top:13px;margin:18px 0 10px}.care-pane-history>div{padding:0 0 12px 10px;border-left:2px solid #b9dcb0;margin-bottom:5px}.care-pane-history small{font-size:9px;color:#6d826e}.care-pane-history p{font-size:11px;line-height:1.5;margin:5px 0}.care-pane-history span{font-size:9px;color:#55795b}.customer-grid-mode .customer-sheet td .grid-input{font-size:var(--crm-font-size,11px)}.customer-sheet .column-resizer{border-right:1px solid #b2d5ad}
@media(max-width:1100px){.customer-care-pane{width:270px;flex-basis:270px;padding:12px}.grid-toolbar input{width:170px}}@media(max-width:760px){.customer-workspace{display:block}.customer-care-pane{position:fixed!important;right:0;top:0;bottom:0;z-index:50;width:min(92vw,350px);max-height:100vh;box-shadow:-5px 0 30px #163a2433}.customer-grid-head{flex-wrap:wrap}.customer-table-scroll{max-height:65vh}.grid-bulk{flex-wrap:wrap}.customer-grid-mode .filters{flex-wrap:wrap}}
.customer-sheet td:nth-child(2),.customer-sheet th:nth-child(2){left:var(--grid-date-left,29px)}.customer-sheet td:nth-child(3),.customer-sheet th:nth-child(3){position:sticky;left:var(--grid-name-left,119px);z-index:3}.customer-sheet td:nth-child(4),.customer-sheet th:nth-child(4){position:sticky;left:var(--grid-phone-left,259px);z-index:3;box-shadow:3px 0 4px #173f2810}.customer-sheet th:nth-child(2),.customer-sheet th:nth-child(3),.customer-sheet th:nth-child(4){z-index:6;background:#14622b}.customer-sheet tbody td:nth-child(-n+4){background:#fff}.customer-sheet tbody tr:nth-child(even) td:nth-child(-n+4){background:#f0f8ec}.customer-sheet tbody tr.grid-row-active td:nth-child(-n+4){background:#dff0d9}
.customer-sheet td.grid-action,.customer-sheet th.grid-action{position:sticky;right:0;z-index:3;box-shadow:-2px 0 4px #173f2810;text-align:center}.customer-sheet th.grid-action{z-index:6;background:#14622b}.customer-sheet td.grid-action{background:#f0f8ec}
/* Dense working view: reserve screen space for customer records. */
.customer-grid-mode main{padding:5px 9px}.customer-grid-mode main>header{padding:2px 0;margin:0;min-height:25px;gap:6px}.customer-grid-mode main>header small{display:none}.customer-grid-mode main>header h1{font-size:15px;margin:0;line-height:1.2}.customer-grid-mode main>header button{padding:3px 8px;font-size:11px;min-height:24px}.customer-grid-mode .filters{gap:6px;padding:3px 0;margin:0;align-items:end}.customer-grid-mode .filters label{font-size:10px;gap:1px;margin:0;line-height:1.1}.customer-grid-mode .filters input,.customer-grid-mode .filters select,.customer-grid-mode .filters button{font-size:11px;padding:2px 5px;height:24px;min-height:0;margin-top:1px}.customer-grid-mode .filters #year{width:64px}.customer-grid-mode .customer-grid-head{margin:3px 0 0;gap:5px}.customer-grid-mode .customer-grid-head b{font-size:13px}.customer-grid-mode .customer-grid-head button{padding:3px 7px;min-height:22px}.customer-grid-mode .grid-count{padding:1px 6px;font-size:10px}.customer-grid-mode .grid-hint{font-size:10px;line-height:1.1;margin:2px 0}.customer-grid-mode .grid-toolbar{padding:3px 0 4px;gap:5px}.customer-grid-mode .grid-toolbar input,.customer-grid-mode .grid-toolbar select,.customer-grid-mode .grid-toolbar button{height:24px;min-height:0;padding:2px 6px}.customer-grid-mode .customer-table-scroll{max-height:calc(100dvh - 157px);min-height:160px}.customer-grid-mode .customer-sheet th{height:23px;padding:3px 4px;line-height:1.1}.customer-grid-mode .customer-sheet td{height:24px;padding:0 3px;line-height:1.05;vertical-align:middle}.customer-grid-mode .customer-sheet .grid-input{height:23px;padding:1px 0;line-height:1.1}.customer-grid-mode .customer-sheet .grid-input[readonly]{color:#53715b;cursor:default;background:#eaf2e7}.customer-grid-mode .customer-sheet td.care-history-cell{padding:1px 4px!important;min-width:240px}.customer-grid-mode .care-history-cell .care-history-line{font-size:10px;line-height:12px;height:12px;max-height:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0;border:0;max-width:100%}.customer-grid-mode .care-history-all{font-size:9px;line-height:10px;height:12px;min-height:0;display:block;border:0;background:none;padding:0;color:#246834;text-decoration:underline;margin:0}.customer-grid-mode .grid-pagination{padding:3px 1px;font-size:10px}.customer-grid-mode .grid-pagination button{padding:0 7px;font-size:13px}.customer-grid-mode footer{padding:2px 0;font-size:10px;margin-top:2px}
.care-popup-backdrop{position:fixed;inset:0;background:#062c1d55;z-index:90}.customer-grid-mode .customer-workspace.pane-open .customer-main{width:100%;flex:1}.customer-grid-mode .customer-care-pane.care-popup{position:fixed;inset:auto;top:50%;left:50%;transform:translate(-50%,-50%);width:min(440px,calc(100vw - 24px));max-width:440px;height:auto;max-height:calc(100dvh - 20px);padding:12px 16px;box-sizing:border-box;overflow:hidden;background:#fff;border:1px solid #bcd7bd;border-radius:10px;box-shadow:0 18px 70px #07351d40;z-index:91;display:flex;flex-direction:column;gap:0;margin:0}.care-popup .care-pane-title{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dce9d9;padding:0 0 6px;margin:0}.care-popup .care-pane-title h2{font-size:17px;margin:0;line-height:24px}.care-popup #gridClosePane{font-size:21px;padding:0 6px;min-height:24px;border:0;background:transparent}.care-popup .care-popup-person{margin:6px 0 2px}.care-popup-person b{font-size:14px;display:block}.care-popup-person span{font-size:11px;color:#5c7862;display:block;line-height:16px}.care-popup-counter{font-size:10px;color:#57755f;line-height:15px}.care-popup .care-pane-tabs{margin:5px 0;gap:4px;display:flex;flex-wrap:wrap}.care-popup .care-pane-tabs button{font-size:10px;line-height:17px;padding:3px 6px;min-height:23px}.care-popup .care-form-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}.care-popup form label{display:block;margin:4px 0;font-size:11px;line-height:15px}.care-popup form input,.care-popup form select{margin-top:2px;padding:4px 7px;height:29px;min-height:0;font-size:12px;box-sizing:border-box}.care-popup form textarea{margin-top:2px;padding:5px 7px;font-size:12px;line-height:17px;height:72px;min-height:50px;max-height:90px;resize:none;box-sizing:border-box}.care-popup .care-save-buttons{border-top:1px solid #dce9d9;margin-top:6px;padding-top:8px;display:flex;gap:7px;flex-shrink:0}.care-popup .care-save-buttons button,.care-popup .care-save-buttons button.primary{font-size:12px;padding:6px 9px;min-height:31px;flex:1}.care-popup-history{overflow:auto;max-height:48dvh;min-height:80px}.care-popup-history article{padding:7px 0;border-bottom:1px solid #e0ebdc}.care-popup-history small{font-size:10px;color:#56795d}.care-popup-history p{font-size:12px;line-height:1.3;margin:3px 0;white-space:pre-wrap}@media(max-height:580px){.customer-grid-mode .customer-care-pane.care-popup{padding:6px 12px}.care-popup .care-popup-person{margin:2px 0}.care-popup .care-pane-tabs{margin:3px 0}.care-popup form label{margin:2px 0}.care-popup form textarea{height:52px;min-height:40px}.care-popup-counter{display:none}.care-popup .care-save-buttons{margin-top:3px;padding-top:4px}.care-popup .care-popup-person span{line-height:13px}}
.new-rows-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:5px 7px;background:#fff6dc;border:1px solid #e3cf91;font-size:11px}.new-rows-bar button{font-size:11px;padding:3px 8px}.new-rows-bar strong{color:#a53120}.customer-sheet .new-customer-row>td{background:#fffbea!important;border-bottom:1px solid #e0d8b8}.draft-row-label{font-size:9px;color:#8e6a15}.new-customer-row input[data-draft-field=name],.new-customer-row input[data-draft-field=phone]{border-bottom:1px dashed #d4ae50}.new-customer-row .grid-input:focus{background:#fff}
.customer-sheet .new-customer-row>td{overflow:hidden;box-sizing:border-box}.customer-sheet .new-customer-row>td.frozen-column{overflow:hidden;background:#fffbea!important}.new-customer-row input.grid-input,.new-customer-row select.grid-input{display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;height:23px;padding:1px 0;overflow:hidden;text-overflow:ellipsis}.new-customer-row input[type=date]{min-width:0;font-size:11px}.new-customer-row td.grid-action .tiny{font-size:9px;white-space:nowrap}.new-customer-row td[data-column-key=__history] .tiny{font-size:10px}.customer-sheet .new-customer-row td:nth-child(3) input{font-weight:600}
.care-popup .care-quick-dates{display:flex;gap:5px;margin:3px 0}.care-popup .care-quick-dates button{font-size:11px;line-height:17px;padding:2px 8px;min-height:23px;color:#216334;background:#f0f8ec;border:1px solid #bdd4b5;border-radius:4px}.care-popup .care-quick-dates button.selected{background:#d7edcb;border-color:#5b9c4d}.care-popup form label .care-quick-dates+input{margin-top:0}
.event-workspace{min-width:0}.event-toolbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:6px 0;font-size:12px}.event-toolbar button,.event-toolbar select,.event-toolbar input{font-size:11px;padding:4px 7px;height:29px}.event-toolbar select{max-width:430px}.event-toolbar #eventSearch{width:190px}.event-toolbar #eventSaveStatus{margin-left:auto;color:#397345;font-size:10px}.event-table-scroll{overflow:auto;max-height:calc(100dvh - 245px);border:1px solid #cde0c9;border-radius:5px;background:#fff}.event-sheet{width:max-content;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:var(--crm-font-size,11px)}.event-sheet th{position:sticky;top:0;background:#155e2d;color:#fff;text-align:left;line-height:1.15;padding:5px 4px;border-right:1px solid #5e8f62;z-index:4;white-space:normal;height:32px}.event-sheet td{height:26px;padding:1px 3px;border-right:1px solid #dfe9db;border-bottom:1px solid #dfe9db;font-size:var(--crm-font-size,11px);line-height:1.1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.event-sheet tr:nth-child(even){background:#eff7eb}.event-sheet input:not([type=checkbox]),.event-sheet select{display:block;width:100%;min-width:0;height:24px;box-sizing:border-box;border:1px solid transparent;background:transparent;border-radius:2px;padding:1px 0;font-size:inherit;color:#254c2c;outline:none}.event-sheet input:focus,.event-sheet select:focus{border-color:#38894a;background:#fff}.event-sheet input[type=checkbox]{accent-color:#217337;width:14px;height:14px;margin:0}.event-sheet .care-history-line{height:12px;line-height:12px;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.event-sheet .care-history-all{font-size:9px;border:0;padding:0;background:none;color:#246b37;text-decoration:underline;line-height:12px}.event-sheet .event-draft-row{background:#fffbea}.event-sheet th:nth-child(-n+3),.event-sheet td:nth-child(-n+3){position:sticky;z-index:2;background:#f4faf0}.event-sheet th:nth-child(-n+3){z-index:5;background:#155e2d}.event-sheet th:first-child,.event-sheet td:first-child{left:0}
