:root { --bg:#f8f7f3; --surface:#fff; --ink:#171f2a; --muted:#5f6470; --charcoal:#2d2a26; --green:#2c5c37; --green-dark:#20472a; --orange:#df7d23; --line:#dccdb8; --cream:#fbf8f0; --highlight:#ffdda9; }
* { box-sizing:border-box; }
html { font-size:15px; }
body { margin:0; color:var(--ink); background:var(--bg); font-family:"Segoe UI Variable Text","Segoe UI",Arial,sans-serif; }
button,input,select,textarea { font:inherit; }
button,a { -webkit-tap-highlight-color:transparent; }
.topbar { min-height:82px; padding:0 2.5rem; display:flex; align-items:center; gap:2.2rem; color:#fff; background:var(--charcoal); }
.brand { width:195px; height:56px; display:block; overflow:hidden; flex:0 0 auto; }
.brand img { width:195px; height:56px; object-fit:cover; object-position:center; }
.primary-nav,.secondary-nav { display:flex; align-items:stretch; min-height:82px; gap:.2rem; }
.secondary-nav { margin-left:auto; align-items:center; }
.nav-menu { position:relative; display:flex; align-items:stretch; }
.nav-item { min-height:82px; padding:0 .9rem; border:0; border-radius:0; display:flex; align-items:center; gap:.45rem; color:#fff; background:transparent; font-weight:750; cursor:pointer; box-shadow:inset 0 0 0 transparent; }
.nav-item span { color:#fff; font-size:1.05rem; }
.nav-item i { margin-left:.1rem; color:#c9c1b7; font-size:.72rem; font-style:normal; transition:transform .16s ease; }
.nav-item[aria-expanded="true"] i { transform:rotate(180deg); }
.nav-item:hover { background:rgba(255,255,255,.04); }
.nav-item.active { box-shadow:inset 0 -4px var(--orange); }
.nav-item.active span { color:var(--orange); }
.nav-item.compact { padding-inline:.75rem; }
.dropdown { position:absolute; top:calc(100% - 4px); left:0; z-index:80; width:290px; padding:.35rem; display:none; border:1px solid #c9b99f; border-top:3px solid var(--orange); border-radius:0 0 6px 6px; background:#fff; box-shadow:0 14px 35px rgba(38,32,26,.2); }
.dropdown.open { display:grid; }
.right-menu .dropdown { left:auto; right:0; }
.dropdown button { width:100%; min-height:49px; padding:.5rem .65rem; border:0; border-bottom:1px solid #eee6da; display:grid; gap:.12rem; text-align:left; color:var(--ink); background:#fff; cursor:pointer; }
.dropdown button:last-child { border-bottom:0; }
.dropdown button:hover,.dropdown button:focus { outline:0; background:#f7f1e7; box-shadow:inset 3px 0 var(--orange); }
.dropdown button:not(:has(small)) { font-weight:800; }
.dropdown button { font-weight:800; }
.dropdown small { color:#6f6a63; font-size:.68rem; font-weight:500; }
.demo-chip { padding:.2rem .45rem; border:1px solid #776f65; border-radius:999px; color:#d9d3cb; font-size:.62rem; font-weight:900; letter-spacing:.08em; }
.icon-nav { width:36px; height:36px; border:0; border-radius:50%; display:grid; place-items:center; color:#fff; background:transparent; text-decoration:none; cursor:pointer; font-size:1.2rem; }
.icon-nav:hover { background:rgba(255,255,255,.08); }
main { width:100%; padding:1rem 1.3rem 2rem; }
.view { display:none; }
.view.active { display:block; }
.time-clock { min-height:86px; margin-bottom:1rem; padding:1rem; display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:.75rem; border:1px solid var(--line); border-left:4px solid var(--green); border-radius:6px; background:var(--surface); }
.time-clock div { display:grid; gap:.15rem; }
.time-clock strong { font-size:1rem; }
.time-clock span { color:#626874; font-size:.78rem; }
.button,.mini-button { min-height:38px; padding:.5rem .85rem; border:1px solid var(--line); border-radius:5px; color:var(--ink); background:#fff; font-weight:750; cursor:pointer; }
.button.primary { color:#fff; border-color:var(--green); background:var(--green); }
.button.primary:hover,.add-strip:hover,.start-button:hover,.row-actions button:hover { background:var(--green-dark); }
.button.ghost:hover,.mini-button:hover { border-color:#b9a384; }
.add-strip { width:100%; min-height:39px; margin:0 0 1rem; border:0; border-radius:5px; color:#fff; background:var(--green); font-weight:850; cursor:pointer; }
.section-card { margin-bottom:1.5rem; padding:.9rem 1rem; border:1px solid var(--line); border-radius:6px; background:#fff; }
.section-title { min-height:34px; padding:0 0 .55rem .7rem; display:flex; align-items:center; gap:.7rem; border-bottom:1px solid #e7ddd0; position:relative; }
.section-title::before,.page-title::before { content:""; position:absolute; left:0; width:4px; height:22px; border-radius:4px; background:var(--orange); }
.section-title h2 { margin:0; font-size:1rem; }
.section-title.split { justify-content:space-between; }
.section-title.split span { font-size:.8rem; }
.mini-button { min-height:31px; padding:.3rem .55rem; font-size:.72rem; }
.collapse-toggle { width:30px; height:30px; margin-left:auto; border:0; border-radius:4px; color:var(--green); background:transparent; font-weight:900; cursor:pointer; transition:transform .16s ease,background .16s ease; }
.collapse-toggle:hover { background:#f2ede4; }
.collapse-toggle[aria-expanded="false"] { transform:rotate(180deg); }
.collapsible.collapsed { display:none; }
.dense-list { display:grid; gap:.35rem; padding-top:.55rem; }
.dense-row { min-height:46px; padding:.35rem .5rem; display:grid; grid-template-columns:minmax(180px,1fr) minmax(260px,2fr) auto auto 36px; align-items:center; gap:.55rem; border:1px solid var(--line); border-radius:5px; background:#fffefa; }
.dense-row.highlight { background:var(--highlight); border-color:var(--orange); }
.row-customer { color:#075628; font-size:.86rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.row-description { color:#4b5461; font-size:.74rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.row-status { display:flex; align-items:center; justify-content:flex-end; gap:.55rem; white-space:nowrap; font-size:.72rem; }
.row-status b { font-weight:800; }
.count-pill,.status-pill { padding:.12rem .4rem; border:1px solid #e4d8c8; border-radius:999px; color:#121b27; background:#f8f3e9; font-weight:850; }
.priority-dot { width:30px; height:30px; display:grid; place-items:center; border-radius:50%; color:#fff; background:#788191; font-weight:800; }
.priority-dot.high { background:#d77b1f; }
.start-button,.row-actions button { min-height:32px; padding:.35rem .65rem; border:0; border-radius:5px; color:#fff; background:var(--green); font-size:.7rem; font-weight:800; cursor:pointer; white-space:nowrap; }
.folder-button,.delete-button { width:34px; height:32px; border:1px solid var(--line); border-radius:5px; color:#4b4c4d; background:#fff; cursor:pointer; }
.delete-button { color:#c75d13; border-color:#e3ad83; }
.row-actions { display:flex; gap:.3rem; }
.work-row { grid-template-columns:minmax(210px,1.1fr) minmax(300px,2fr) auto auto 36px; }
.deal-row { grid-template-columns:minmax(170px,1fr) minmax(260px,2fr) auto 36px; }
.page-title { position:relative; margin:0 0 1rem; padding-left:1rem; min-height:46px; display:flex; align-items:center; }
.page-title h1 { margin:0; font-size:2rem; line-height:1; }
.page-action { margin:0 0 1.4rem; }
.search-tools { margin-bottom:.6rem; display:flex; align-items:center; gap:.55rem; }
.search-tools input { width:min(420px,45vw); min-height:36px; padding:.45rem .65rem; border:1px solid var(--line); border-radius:5px; background:#fff; }
.filter-pills { display:flex; gap:.35rem; flex-wrap:wrap; }
.pill { min-height:33px; padding:.3rem .65rem; border:1px solid var(--line); border-radius:5px; background:#fff; font-size:.72rem; font-weight:750; cursor:pointer; }
.pill.active { color:#fff; border-color:var(--green); background:var(--green); }
.workorder-page-list { padding-top:0; }
.sales-dashboard { padding-bottom:.8rem; }
.sales-dashboard > .add-strip { margin-top:.65rem; }
.sales-columns { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-top:.2rem; }
.inline-title { margin-top:.1rem; }
.inline-title h2 { white-space:nowrap; }
.open-deals-button,.lead-button { margin-left:auto; width:240px; min-height:52px; border:0; border-radius:5px; color:#fff; background:#2f8043; font-weight:850; cursor:pointer; }
.lead-button { background:#4262ed; box-shadow:0 8px 20px rgba(66,98,237,.2); }
.compact-search { margin:.5rem 0 0; align-items:flex-start; }
.compact-search input { width:180px; }
.empty-copy { margin:.8rem 0; color:#70675e; }
.calendar-card { padding:.75rem 1rem 1rem; }
.calendar-heading { min-height:38px; display:flex; align-items:center; justify-content:space-between; font-size:.78rem; }
.calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(120px,1fr)); gap:.45rem; }
.calendar-day { min-height:145px; border:1px solid #cfd6e0; border-radius:6px; background:#fcfaf5; overflow:hidden; }
.calendar-day.today { border-color:var(--orange); background:#fff7eb; }
.calendar-day div { padding:.65rem; display:flex; justify-content:space-between; border-bottom:1px solid var(--line); }
.calendar-day div strong { font-size:.92rem; }
.calendar-day div b { font-size:.72rem; color:#695747; }
.calendar-day p { margin:0; padding:.65rem; color:#725439; font-size:.72rem; }
.full-calendar .calendar-day { min-height:170px; }
dialog { width:min(560px,calc(100% - 30px)); padding:0; border:1px solid var(--line); border-radius:7px; box-shadow:0 25px 70px rgba(20,20,20,.28); }
dialog::backdrop { background:rgba(28,26,23,.55); }
#recordForm { padding:1rem; display:grid; gap:.75rem; }
.dialog-heading { display:flex; justify-content:space-between; align-items:center; padding-bottom:.5rem; border-bottom:1px solid var(--line); }
.dialog-heading h2 { margin:0; font-size:1.25rem; }
.icon-button { border:0; background:transparent; font-size:1.5rem; cursor:pointer; }
#recordForm label { display:grid; gap:.25rem; font-size:.74rem; font-weight:800; }
#recordForm input,#recordForm select,#recordForm textarea { width:100%; padding:.55rem .6rem; border:1px solid #cdbb9f; border-radius:5px; background:#fff; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:.7rem; }
.dialog-actions { display:flex; justify-content:flex-end; gap:.5rem; }
.toast { position:fixed; right:22px; bottom:22px; z-index:50; padding:.75rem 1rem; border-radius:5px; color:#fff; background:#27241f; font-size:.8rem; font-weight:750; box-shadow:0 10px 30px rgba(0,0,0,.2); opacity:0; transform:translateY(20px); pointer-events:none; transition:.18s ease; }
.toast.show { opacity:1; transform:none; }
@media (max-width:1250px) { .topbar{padding-inline:1rem;gap:.7rem}.brand{width:165px}.brand img{width:165px}.nav-item{padding-inline:.55rem}.dense-row,.work-row{grid-template-columns:minmax(160px,1fr) minmax(220px,1.5fr) auto auto 34px}.row-actions button{font-size:0;width:34px}.row-actions button::first-letter{font-size:.8rem}.sales-columns{grid-template-columns:1fr}.calendar-grid{grid-template-columns:repeat(4,1fr)} }
@media (max-width:820px) { .topbar{min-height:auto;flex-wrap:wrap;padding:.5rem}.brand{display:none}.primary-nav{min-height:54px;width:100%;overflow:visible;flex-wrap:wrap}.nav-menu{position:static}.nav-item{min-height:54px}.dropdown{top:54px;left:.5rem!important;right:.5rem!important;width:auto;position:fixed}.secondary-nav{min-height:42px;margin-left:0}.secondary-nav .compact{display:none}main{padding:.65rem}.dense-row,.work-row,.deal-row{grid-template-columns:1fr auto;padding:.65rem}.row-description{grid-column:1/-1;grid-row:2;white-space:normal}.row-status{grid-column:1}.start-button,.row-actions,.folder-button,.delete-button{grid-column:auto}.time-clock{grid-template-columns:1fr auto}.time-clock .button.ghost{display:none}.calendar-grid{grid-template-columns:repeat(2,1fr)}.open-deals-button,.lead-button{width:auto;padding-inline:1rem}.search-tools{align-items:stretch;flex-direction:column}.search-tools input{width:100%}.form-row{grid-template-columns:1fr} }
