/* The look: calm, light, deep green and white. Layout rules stay in app.css; this file only restyles. */
@media screen{
:root{--green:#002d1e;--accent:#0b5d41;--soft:#eef4f1;--line:#e6eae8;--ink:#111915;--grey:#5d6a64;--bg:#f6f7f6;--r:16px;--shadow:0 1px 2px rgba(16,32,24,.04),0 4px 16px rgba(16,32,24,.04)}
html{-webkit-text-size-adjust:100%;accent-color:var(--accent)}
body{background:var(--bg);color:var(--ink);font:15px/1.55 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased}
a{color:var(--accent);text-underline-offset:3px}
h1{font-size:24px;font-weight:700;letter-spacing:-.02em}h2{font-weight:650;letter-spacing:-.005em}
.muted,.stats span,.stats small{color:var(--grey)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
main{padding:28px clamp(16px,3vw,36px) 48px;gap:16px;max-width:1360px}

section,.panel,.stats>div,.company-card,.people .one,.aday,.kpis>div,.offers details{border-color:var(--line);border-radius:var(--r)}
section,.panel,.stats>div,.company-card{box-shadow:var(--shadow)}
section,.panel{padding:20px}section.box{padding:0}
.panel.due,.panel.today{margin-bottom:0}
.kpis>div,.cash .sum>div,.today-facts>div,.earned,.said,.timer-row,.due-row,.approve{border-radius:12px}
.box:not(.open):hover{border-color:#bcd0c6;box-shadow:0 6px 20px rgba(16,32,24,.08)}
.box.open{border-color:#c3d6cc}.box-title{color:var(--ink);font-weight:650}.box-head{padding:16px 42px 16px 18px;min-height:78px;border-radius:var(--r)}
.box-head::after{color:var(--grey);font-weight:300}.box-body{padding:14px 18px 18px}

button{font-family:inherit;border-radius:11px;background:var(--green);border-color:var(--green);transition:background-color .15s,border-color .15s,transform .05s}
button:hover:not(:disabled){background:#0a4632}button:active:not(:disabled){transform:scale(.98)}
button.small{min-height:38px;padding:0 14px;background:#fff;color:var(--green);border-color:#d3ddd8;font-weight:600}
button.small:hover:not(:disabled){background:var(--soft);border-color:#b7cbc1}
button.small.done{background:var(--green);border-color:var(--green);color:#fff}button.small.done:hover:not(:disabled){background:#0a4632}
.box-head,.box-head:hover:not(:disabled){background:transparent}
a.createlead{border-radius:11px;background:var(--green)}
.mark-post>summary,.item .act a.open,.due-row .act a.open,.timer-row a.open{border-color:#d3ddd8;border-radius:11px;color:var(--green)}
.timer-row a.open{display:inline-flex;align-items:center;min-height:38px;padding:0 14px;border:1px solid #d3ddd8;background:#fff;font-weight:600;text-decoration:none}
.mark-post.done>summary{background:var(--green);color:#fff}
input,select,textarea{min-height:44px;border-color:#d8e0dc;border-radius:11px;color:var(--ink);transition:border-color .15s,box-shadow .15s}
input:focus,select:focus,textarea:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px rgba(11,93,65,.14)}
fieldset{border-color:var(--line);border-radius:12px}
summary{color:var(--accent);font-weight:500}

th{font-size:11.5px;text-transform:uppercase;letter-spacing:.04em;color:var(--grey);font-weight:600}th,td{padding:12px 10px;border-bottom-color:#eef1ef}
tbody tr:last-child>td{border-bottom:0}
.doc th{text-transform:none;letter-spacing:0}.doc td,.doc th{padding:9px 8px;border-bottom:1px solid #333}

.pill{background:var(--soft);color:var(--green);font-size:13px;font-weight:600;letter-spacing:0;vertical-align:middle;padding:2px 12px}
.msg{border-radius:12px}.msg.toast{bottom:20px;border-radius:99px;padding:12px 22px}
.alert{background:#fff;border:1px solid var(--line);border-left:4px solid #e0a800;border-radius:12px}
#alerts{box-shadow:var(--shadow);font-size:14px}#alerts li{margin:2px 0}
.panel.timers{border:1px solid #c3d6cc;border-top:4px solid var(--green)}
.timer-row{border-left-width:5px}
.panel.today.on,.panel.lunch.on{border:1px solid #e5c77a;border-top:4px solid #c98f00}
.bar,.box-bar,.meter{background:#e8edea;border-radius:99px;overflow:hidden}.bar i,.box-bar i,.meter i{background:var(--accent);border-radius:99px}
.filters a{border-color:#d3ddd8;color:var(--green)}.filters a.on{background:var(--green);border-color:var(--green)}
dialog{border-radius:20px;padding:22px;box-shadow:0 24px 60px rgba(0,20,12,.25)}
.company-card b{color:var(--ink)}

/* menu: white side bar on computers */
.ico{width:19px;height:19px;flex:none}
.shell>nav{width:232px;background:#fff;border-right:1px solid var(--line);padding:18px 12px;gap:6px}
.shell>nav .brand{color:var(--green);font-size:19px;letter-spacing:-.02em;padding:2px 10px 12px}
nav .links{display:flex;flex-direction:column;gap:2px;padding-bottom:16px}
.shell>nav a{display:flex;align-items:center;gap:11px;flex:none;color:#33413a;font-size:14.5px;font-weight:500;padding:9px 11px;border-radius:11px}
.shell>nav a:hover{background:var(--soft)}
.shell>nav a.on{background:var(--green);color:#fff}
.shell>nav a .label{flex:1;min-width:0}
.shell>nav a .count{float:none;margin:0;background:var(--soft);color:var(--green)}.shell>nav a.on .count{background:rgba(255,255,255,.18);color:#fff}
.shell>nav .bell{background:var(--soft);color:var(--green);font-weight:600;border-radius:11px}.shell>nav .bell:hover{background:#e2ede8}
.shell>nav .bell .num{background:#fff;color:var(--green)}.shell>nav .bell .num.new{background:#d93025;color:#fff}
.tabs,.menu-shade{display:none}

/* sign-in */
body:has(> .login){background:linear-gradient(180deg,var(--green) 0 42vh,var(--bg) 42vh) fixed}
.login{border-color:var(--line);border-radius:22px;padding:32px 28px;box-shadow:0 20px 50px rgba(0,20,12,.18);margin:12vh auto}
.login h1{color:var(--green)}.login button{min-height:48px}

/* client dashboard */
.portal{gap:14px}.portal header{background:var(--green);color:#fff;border-radius:20px;padding:22px}.portal header .muted{color:#b9d0c6}.portal header a{color:#fff}
}

/* phones */
@media screen and (max-width:700px){
body{font-size:15px}
input,select,textarea{font-size:16px}
.shell{display:block}
main{padding:14px 12px calc(96px + env(safe-area-inset-bottom));gap:12px}
h1{font-size:22px}
section,.panel{padding:16px}section.box{padding:0}
button,button.small{min-height:44px}
.shell>nav,.admin-bar .shell>nav{width:100%;height:auto;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-right:0;border-bottom:1px solid var(--line);overflow:visible;position:sticky;background:#fff}
.shell>nav .brand{display:block;padding:0;font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.shell>nav .bell{width:auto;margin:0;flex:none}
/* every page, in a sheet that slides up */
nav .links{position:fixed;left:0;right:0;bottom:calc(66px + env(safe-area-inset-bottom));z-index:41;max-height:68vh;overflow-y:auto;background:#fff;border-radius:22px 22px 0 0;box-shadow:0 -12px 40px rgba(0,20,12,.18);padding:14px 12px;display:none;grid-template-columns:1fr 1fr;gap:8px}
body.menu-open nav .links{display:grid}
.shell>nav .links a{min-height:48px;background:var(--bg);font-size:13.5px;white-space:normal;line-height:1.25}.shell>nav .links a.on{background:var(--green)}
.shell>nav{z-index:40}
.menu-shade{position:fixed;inset:0;z-index:30;background:rgba(0,20,12,.4)}body.menu-open .menu-shade{display:block}
.tabs{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;position:fixed;left:0;right:0;bottom:0;z-index:45;background:#fff;border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom))}
.tabs a,.tabs button,.tabs button:hover:not(:disabled){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:52px;padding:0 2px;background:transparent;border:0;border-radius:12px;color:var(--grey);font-size:11.5px;font-weight:600;text-decoration:none;line-height:1.2}
.tabs .ico{width:22px;height:22px}
.tabs a.on,body.menu-open .tabs button{color:var(--green);background:var(--soft)}
.msg.toast{bottom:calc(84px + env(safe-area-inset-bottom));border-radius:14px}
.timer-row{gap:6px 12px}.timer-row .digits{font-size:28px}
.panel.timers .panel-head p{display:flex;flex-wrap:wrap;gap:6px}
.stack tr{background:#fff;border-color:var(--line);border-radius:14px;padding:12px 14px}.stack td{padding:5px 0}
.box{scroll-margin-top:76px}
.login{margin:8vh 16px;padding:26px 22px}
.portal{padding:12px}
}
/* on a phone the alerts box stays short: the Notifications button holds the full list */
@media print{.tabs,.menu-shade,.ico{display:none}}
/* compact timers on a phone */
@media screen and (max-width:700px){
.panel.timers{padding:12px}.timers .panel-head{margin-bottom:8px;flex-wrap:nowrap}.timers .panel-head p{justify-content:flex-end}.timers .panel-head button{min-height:36px;font-size:12.5px;padding:0 10px}
.timer-row{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:9px 10px;gap:2px 10px;margin-bottom:6px}.timer-row .clock{margin:0}.timer-row .digits{font-size:22px}.timer-row .clock .muted{font-size:11.5px}.timer-row .info b{font-size:14px}.timer-row .info>.muted{font-size:12px}.timer-row .warn{font-size:12.5px}
.timer-row a.open,.timer-row .ticks{grid-column:1/-1}.timer-row a.open{justify-content:center}.timer-row a.open{min-height:34px}
}

/* notifications gate */
#pushgate { position: fixed; inset: 0; z-index: 10000; background: rgba(0, 20, 14, .9); display: flex; align-items: center; justify-content: center; padding: 20px; }
#pushgate[hidden] { display: none; }
#pushgate .gate-card { background: #fff; color: #111; border-radius: 16px; padding: 24px; max-width: 420px; width: 100%; text-align: center; }
#pushgate .gate-card button { margin: 6px 4px 0; }
body.gated { overflow: hidden; }
.push-offer { grid-column: 1 / -1; margin-bottom: 6px; }
details.done-box > summary { font-weight: 600; }
.timer-row form { margin: 0; }

/* daily checklist */
.duty-date { font-weight: 600; margin: 0 0 10px; }
.duty-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(0, 45, 30, .1); }
.duty-row form { margin: 0; flex: 0 0 auto; }
.duty-row button { white-space: nowrap; width: auto; }
.duty-row.done b { opacity: .55; }
.duty-total progress { width: 100%; height: 10px; accent-color: #002d1e; }
.duty-person { margin-bottom: 12px; }
.duty-person > summary { background: #fff; border-radius: 12px; padding: 14px; cursor: pointer; }
.duty-row.call > div { flex: 1; min-width: 0; }
.duty-row.call textarea { width: 100%; }

/* easier to scan: menu sections, one-line alerts, short timers, small number tiles */
@media screen{
.nav-head{grid-column:1/-1;font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--grey);padding:12px 11px 3px}
.push-offer[hidden]{display:none}
.page-hint{margin:-8px 0 0;color:var(--grey);font-size:13.5px}
.punch-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff6dc;border:1px solid #e5c77a;border-radius:12px;padding:8px 8px 8px 14px;color:var(--ink);text-decoration:none;font-weight:600}
.punch-strip b{background:var(--green);color:#fff;border-radius:9px;padding:7px 14px;white-space:nowrap}
.alert-box{padding:0;overflow:hidden}
.alert-box>summary{cursor:pointer;padding:10px 38px 10px 14px;position:relative;list-style:none;color:var(--ink)}
.alert-box>summary::-webkit-details-marker{display:none}
.alert-box>summary::after{content:'+';position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:20px;color:var(--grey)}
.alert-box[open]>summary::after{content:'\2212'}
.alert-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.alert-peek{display:block;font-weight:400;color:var(--grey);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.alert-box[open] .alert-peek{display:none}
.alert-box>form{padding:0 14px}#alerts.alert-box>ul{margin:6px 0;padding:0 14px 6px 32px;max-height:45vh;overflow-y:auto}
}
@media screen and (max-width:700px){
.timer-row a.open{grid-column:1;justify-self:start;min-height:34px;padding:0 14px;justify-content:center}
.timer-row form{grid-column:2;justify-self:end}
.stats{gap:8px}.stats>div{padding:10px 12px;min-width:0}.stats span{font-size:12px;line-height:1.3}.stats b{font-size:19px;line-height:1.25;overflow-wrap:anywhere}.stats small{font-size:11.5px}
}

/* a new client password stays until closed */
.msg.keep{white-space:pre-line;overflow-wrap:anywhere;user-select:text;text-align:left}
.msg.toast.keep{cursor:auto;width:min(480px,92vw);border-radius:14px;padding:16px}
.keep-actions{display:flex;gap:8px;margin-top:10px;white-space:normal}
.login-box { border: 1px solid rgba(0, 45, 30, .15); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.login-box > p, .login-box form { margin: 6px 0; }
.login-ticks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.login-ticks form { margin: 0; }
.login-box button { width: auto; }
.login-box button:disabled { opacity: .5; }
.login-box .link { overflow-wrap: anywhere; }
.login-one { border-top: 1px solid rgba(0, 45, 30, .1); padding: 10px 0; }
.login-one > summary { cursor: pointer; }
