/* Jarvis reference: compact cabinet navigation and operational work surfaces.
   The AI workspace retains the independent Haiku-inspired layout. */
.erp-mode{--sidebar:218px;background:#f6f7f5}
.erp-mode .sidebar{background:#203d35;color:#ecf2e9;border-right:0;padding:25px 12px 15px}
.erp-mode .brand-name{color:#fff}.erp-mode .brand-mark{background:#d8bd83;color:#203d35}
.erp-mode .mode-switch{background:#183229}.erp-mode .mode-switch .button{color:#c1d0c4}
.erp-mode .mode-switch .selected{color:#fff;background:#3c5847;box-shadow:none}
.erp-mode .workspace-label{color:#90a89b;text-transform:uppercase;font-size:9px;letter-spacing:1.1px;padding-top:23px}
.erp-mode .nav-button{color:#c8d6ce;border-radius:5px;font-size:12px;padding:10px 12px}
.erp-mode .nav-button:hover{background:#2c4a3e;color:#fff}.erp-mode .nav-button.active{background:#dce7d4;color:#203d35;font-weight:600}
.erp-mode .nav-more>summary,.erp-mode .profile .icon-button{color:#c8d6ce}
.erp-mode .sidebar-bottom{border-color:#3a5145}.erp-mode .profile{color:#fff}.erp-mode .profile small{color:#a9bfb0}
.erp-mode .profile .avatar{background:#b8c9ad;color:#203d35}
.erp-mode .topbar{height:62px;padding:0 30px;border-bottom:1px solid #e0e6de;gap:20px}
.erp-mode .topbar-right{flex:1;gap:12px}.erp-mode .topbar-right .date-label{display:none}
.erp-mode .topbar-right .global-search{order:-1;flex:1;max-width:520px;justify-content:flex-start;border:1px solid #e4e8e1;background:#f6f8f3;border-radius:6px;padding:9px 13px;color:#809080}
.erp-mode .global-search kbd{margin-left:auto}.erp-mode .breadcrumb{font-size:11px;flex-shrink:0}
.erp-mode .breadcrumb>span,.erp-mode .breadcrumb>svg{display:none}
.erp-mode .content{padding:30px;max-width:1800px}.erp-mode .page-header{margin-bottom:18px}
.erp-mode .page-header h1{font-size:26px;font-weight:560;letter-spacing:-.65px}.erp-mode .page-header p{font-size:12px;margin-top:5px;color:#7b867c}
.erp-mode .panel{border:1px solid #dfe5dc;border-radius:7px;background:white;box-shadow:0 2px 4px #213b2c02}
.erp-mode .panel-head{padding:17px 19px;border-bottom:1px solid #edf0e9;margin-bottom:0;min-height:56px;gap:10px}
.erp-mode .panel-head h2{font-size:12px;letter-spacing:.05px}.erp-mode .panel-head .text-button{font-size:11px}
.erp-mode .panel-content{padding:18px 20px}.erp-mode .table-wrap th{background:#f7f9f5;color:#758373;padding:13px 17px;font-size:10px;font-weight:500;white-space:nowrap}
.erp-mode .table-wrap td{padding:15px 17px;border-color:#edf0e9;font-size:12px}
.erp-mode .table-wrap tbody tr:hover{background:#fafcf8}.erp-mode .cell-title{display:block;margin-bottom:4px;font-weight:550;font-size:12px}
.erp-mode .table-wrap td .text-button{font-size:11px;text-align:left;max-width:280px;white-space:normal}
.erp-mode .numeric{font-variant-numeric:tabular-nums;white-space:nowrap}
.erp-mode .tabs{border-bottom:1px solid #dce3d7;margin:0 0 22px;gap:24px}.erp-mode .tab{border-radius:0;padding:13px 0;color:#7a8779;font-size:12px}
.erp-mode .tab.active{background:transparent;color:#21483f;box-shadow:none;border-bottom:2px solid #21483f}
.erp-mode .module-tabs{background:transparent;border:0;border-bottom:1px solid #dce3d7;border-radius:0;padding:0 0 8px;gap:5px;margin-bottom:24px}
.erp-mode .module-tabs button{font-size:11px;border-radius:5px}.erp-mode .module-tabs .selected{background:#e5ecdf;box-shadow:none;color:#274b3a}
.erp-mode .record-card{border-radius:6px}.erp-mode .workspace-footer{margin-top:35px;opacity:.65}
.erp-create,.timer-launch{display:none}.erp-mode .erp-create,.erp-mode .timer-launch{display:block}
.erp-mode .timer-launch{padding:8px;min-width:35px;min-height:35px;line-height:1;background:transparent;border:1px solid #e0e5dc}
.erp-mode .timer-launch.running{color:#21483f;background:#dcebd2;border-color:#a6bf96}
.erp-menu{position:relative;font-size:12px}.erp-menu>summary{display:flex;align-items:center;gap:7px;cursor:pointer;padding:9px 12px;border:1px solid #dce3d7;border-radius:6px;background:#fff;list-style:none;white-space:nowrap}
.erp-menu>summary::-webkit-details-marker{display:none}.erp-menu>summary svg{width:15px;height:15px}
.erp-menu-items{position:absolute;right:0;top:calc(100% + 7px);width:235px;padding:9px;background:#fff;border:1px solid #dce3d7;box-shadow:0 9px 30px #16312315;border-radius:7px;z-index:35;display:grid;gap:3px}
.erp-menu-items .button{justify-content:flex-start;border:0;background:transparent;color:#314936}
.erp-menu-items .button:hover{background:#f0f5ea}.erp-menu-items label{display:flex;gap:10px;align-items:center;padding:8px;cursor:pointer}
.erp-menu-items input[type=checkbox]{width:15px;min-height:15px;height:15px}.erp-menu-items small{padding:5px 8px;color:#85917d}
.erp-overview{display:flex;gap:25px;padding-bottom:26px;font-size:12px;color:#7e897c}.erp-overview strong{font-weight:600;color:#3d5444;margin-right:4px}
.erp-dashboard{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:21px;align-items:stretch}
.erp-widget{min-width:0;overflow:hidden;border-top:3px solid #b7c7a5!important}.erp-widget.widget-times{border-top-color:#d4bd8a!important}
.erp-widget.widget-cases{border-top-color:#859e89!important}.erp-widget.widget-timer{border-top-color:#c3b597!important}
.erp-widget.widget-tasks{grid-column:span 2;border-top-color:#8ca590!important}
.erp-widget .panel-head{padding:16px 18px;flex-wrap:wrap}.erp-widget-body{padding:20px}
.erp-empty{text-align:center;min-height:160px;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;padding:24px;color:#84917d;font-size:12px}
.erp-empty>svg{width:25px;height:25px;color:#b0bd9f}.erp-empty .text-button{font-size:11px}
.erp-recent-cases{padding:5px 17px 10px}.recent-case{display:flex;align-items:center;gap:10px;padding:14px 0;border:0;border-bottom:1px solid #edf0e9;background:transparent;text-align:left;cursor:pointer;width:100%;color:#324939}
.recent-case:last-child{border-bottom:0}.recent-case>span:nth-child(2){flex:1;min-width:0}.recent-case strong{font-weight:500;font-size:11px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.recent-case small{font-size:10px;color:#8a9680;margin-top:5px;display:block}.recent-case>svg{width:12px;color:#91a186;flex-shrink:0}.folder-symbol{color:#a5b592}.folder-symbol svg{width:18px}
.erp-event-list{padding:2px 18px}.erp-event-row{display:flex;align-items:center;gap:12px;padding:17px 0;border-bottom:1px solid #edf0e9}.erp-event-row:last-child{border-bottom:0}
.erp-event-date{width:38px;flex-shrink:0;border-right:1px solid #e1e7d9;display:flex;flex-direction:column;gap:2px;color:#5d7450}.erp-event-date strong{font-size:22px;font-weight:400}.erp-event-date small{font-size:10px}
.erp-event-copy{display:flex;min-width:0;flex:1;flex-direction:column;align-items:flex-start;gap:6px}.erp-event-copy>.text-button:first-child{font-size:11px;color:#324936;max-width:100%;text-align:left;line-height:1.4}
.erp-event-copy>span{font-size:10px;color:#778d68}.erp-event-copy>.text-button:last-child{font-size:10px;color:#8b9980;text-align:left;max-width:100%;line-height:1.4}
.event-location{display:none}.chart-total{display:flex;flex-direction:column;gap:4px}.chart-total strong{font-size:28px;letter-spacing:-1px;font-weight:450;font-variant-numeric:tabular-nums}.chart-total span{font-size:10px;color:#93a185}
.time-chart{height:172px;display:flex;gap:11px;margin-top:20px;justify-content:space-between}.time-day{display:flex;flex:1;flex-direction:column;align-items:center;gap:7px;min-width:0;font-size:9px;color:#90a17f}
.time-bar-track{flex:1;width:100%;max-width:22px;display:flex;align-items:flex-end}.time-bar{width:100%;background:#b5c4a3;border-radius:3px 3px 0 0;min-height:2px}.time-day:last-child .time-bar{background:#496c45}.time-day small{font-size:9px}
.erp-timer{padding:24px 22px;display:flex;align-items:flex-start;flex-direction:column;gap:13px}.timer-context{font-size:11px;color:#7d8d71;line-height:1.6}.timer-digits{font-size:38px;font-weight:350;letter-spacing:-1.2px;font-variant-numeric:tabular-nums;color:#345134}
.erp-timer .subtle{font-size:11px}.erp-timer .button-row{margin-top:6px;flex-wrap:wrap}.erp-timer>small{font-size:10px;color:#88957b}
.erp-task-list{padding:2px 20px 13px}.erp-task-list .task-row{padding:18px 0;gap:13px}.erp-task-list .task-copy{font-size:12px}.erp-task-list .task-copy small{font-size:10px;color:#8e9b82;margin-top:7px}
.widget-tasks .erp-task-list{max-height:320px;overflow:auto;scrollbar-width:thin}.erp-task-list .task-row.overdue:not(.done) .task-copy small{color:#a26348}
.erp-task-list input[type=checkbox]{appearance:auto;width:15px;height:15px;min-height:15px;accent-color:#4c713c}
.erp-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:14px;justify-content:space-between;margin:0 0 20px;font-size:12px}
.erp-toolbar select{min-width:150px;max-width:280px;min-height:36px;font-size:12px;border:1px solid #dce3d7;border-radius:6px;background:#fff;padding:8px 12px;color:#344d39}.erp-toolbar .button-row{gap:10px}.erp-toolbar .search-field{flex:1;min-width:200px}
.erp-toolbar .search-field input{width:100%;min-height:39px;font-size:12px}.erp-toolbar .subtle{font-size:11px}
.erp-segment{display:flex;border:1px solid #dae2d1;background:#fff;border-radius:6px;padding:3px;gap:2px}.erp-segment .button{border:0;min-height:29px;padding:5px 12px;background:transparent;font-size:11px}.erp-segment .selected{background:#e7edde;color:#345034}
.calendar-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:#fff;border:1px solid #dfe5dc;border-radius:7px;overflow:hidden;margin-bottom:24px;min-height:340px}
.calendar-day{min-width:0;border-right:1px solid #e7ebdf}.calendar-day:last-child{border:0}.calendar-day>header{display:flex;flex-direction:column;align-items:center;gap:7px;border-bottom:1px solid #e7ebdf;padding:16px 5px;color:#8c9980;font-size:10px}
.calendar-day>header strong{font-size:24px;color:#5a6f4d;font-weight:400}.calendar-day.today>header{background:#edf2e6}.calendar-day.today>header strong{color:#21483f;font-weight:600}
.calendar-day-items{padding:8px;display:grid;gap:7px}.calendar-entry{display:flex;flex-direction:column;align-items:flex-start;text-align:left;width:100%;padding:10px 9px;background:#eaf0e3;border:0;border-left:2px solid #81a162;border-radius:3px;cursor:pointer;color:#425a39;gap:7px;overflow-wrap:anywhere}
.calendar-entry>span{display:flex;align-items:center;gap:5px;font-size:10px}.calendar-entry svg{width:12px;height:12px}.calendar-entry strong{font-size:11px;line-height:1.5;font-weight:500}.calendar-entry small{font-size:9px;line-height:1.5;color:#7b8b6c}
.calendar-entry.task{background:#f7f3e9;border-left-color:#c6ad71;color:#7d6b3f}.agenda-list{padding:5px 20px}.agenda-list>div{display:flex;align-items:center;gap:25px;padding:15px 0;border-bottom:1px solid #edf0e9}.agenda-list-date{font-size:12px;min-width:65px}
.activity-filters{display:grid;grid-template-columns:140px 140px minmax(160px,1fr) minmax(150px,1fr) auto;align-items:end;gap:14px;margin-bottom:25px}
.activity-filters .field{margin:0;min-width:0}.activity-filters label{font-size:10px;color:#819174}.activity-filters input,.activity-filters select{font-size:12px;min-height:37px;height:37px;padding:8px 10px;width:100%;min-width:0}.activity-filters .button{height:37px}
.activity-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));background:#fff;border:1px solid #dfe5dc;border-radius:7px;overflow:hidden;margin-bottom:25px}
.activity-metric{padding:20px 17px;border-right:1px solid #edf0e9;display:flex;flex-direction:column;gap:14px;min-width:0}.activity-metric:last-child{border:0}.activity-metric span{font-size:10px;color:#819174}.activity-metric strong{font-size:24px;font-weight:400;letter-spacing:-.6px;white-space:nowrap;color:#395434}
.activity-table{overflow:hidden}.billing-summary{display:flex;gap:30px;align-items:center;padding:0 0 27px;font-size:11px;color:#8e9a81;flex-wrap:wrap}.billing-summary strong{display:block;font-weight:450;font-size:24px;color:#3d5837;margin-top:7px}.billing-summary small{margin-left:auto;font-size:10px}
.erp-hint{font-size:11px;color:#7f8c73;line-height:1.7;margin:-7px 0 20px}.erp-billing input[type=checkbox]{width:15px;min-height:15px;height:15px;accent-color:#456d36}
.billing-confirm{margin:22px 0;background:#f7f9f4;border:1px solid #e0e7d7;border-radius:7px;padding:12px 18px}.billing-confirm>div{display:flex;justify-content:space-between;gap:15px;padding:12px 0;font-size:12px}.billing-confirm-total{border-top:1px solid #d8e2cb}
.erp-mode .detail-grid{gap:20px}.erp-mode .details-list dt{font-size:11px;color:#8b987e}.erp-mode .details-list dd{font-size:13px}.erp-mode .ai-card{background:#eaf0e2;border:1px solid #dbe5d0;border-radius:7px}
@media(min-width:761px) and (max-width:1150px){.erp-mode{--sidebar:195px}.erp-mode .content{padding:24px}.erp-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}.widget-cases{grid-column:1}.widget-timer{grid-column:2;grid-row:2}.erp-mode .topbar-right .demo-pill{display:none}.activity-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.activity-metric:nth-child(-n+3){border-bottom:1px solid #edf0e9}.activity-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.calendar-day-items{padding:4px}.calendar-entry{padding:8px 5px}}
@media(max-width:760px){.erp-mode .shell{margin-left:0}.erp-mode .sidebar{width:250px}.erp-mode .topbar{padding:0 15px;gap:10px}.erp-mode .topbar-right{justify-content:flex-end;gap:8px}.erp-mode .topbar-right .global-search{flex:0;min-width:32px;padding:7px;background:transparent;border:0;max-width:32px;font-size:0}.erp-mode .global-search kbd,.erp-mode .topbar-right>.avatar,.erp-mode .topbar-right .demo-pill{display:none}.erp-mode .content{padding:24px 17px}.erp-mode .page-header{gap:17px;align-items:flex-start}.erp-mode .page-header h1{font-size:24px}.erp-mode .page-header .header-actions{gap:7px;flex-wrap:wrap}.erp-overview{gap:10px;flex-wrap:wrap;font-size:10px;padding-bottom:20px}.erp-dashboard{grid-template-columns:minmax(0,1fr);gap:18px}.erp-widget.widget-tasks{grid-column:auto}.erp-widget .panel-head{padding:15px 17px}.erp-menu>summary{padding:8px 10px;font-size:11px}.erp-menu-items{right:0;max-width:calc(100vw - 35px)}.erp-toolbar{gap:12px}.erp-toolbar .button-row{gap:6px;flex-wrap:wrap}.erp-toolbar select{max-width:100%;width:100%}.calendar-week{grid-template-columns:1fr}.calendar-day{display:grid;grid-template-columns:65px minmax(0,1fr);border-right:0;border-bottom:1px solid #e5ebdd;min-height:78px}.calendar-day>header{border-bottom:0;border-right:1px solid #e5ebdd;font-size:9px;padding:12px 4px}.calendar-day>header strong{font-size:21px}.calendar-day-items{padding:9px}.calendar-entry{padding:9px 11px}.activity-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.activity-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.activity-metric{padding:17px 14px;border-bottom:1px solid #edf0e9}.activity-metric strong{font-size:23px}.activity-metric:nth-child(even){border-right:0}.activity-metric:nth-last-child(-n+2){border-bottom:0}.erp-mode .table-wrap{max-width:100%;overflow:auto}.erp-mode .tabs{gap:20px;overflow:auto}.billing-summary{gap:25px}.billing-summary strong{font-size:21px}.billing-summary small{width:100%;margin-left:0}.erp-mode .module-tabs{max-width:100%;overflow:auto;flex-wrap:nowrap}.erp-mode .module-tabs button{white-space:nowrap;flex-shrink:0}.erp-mode .workspace-footer{font-size:9px}.timer-digits{font-size:42px}}
