@import url('/fonts.css');
:root{--ink:#172c28;--muted:#77827d;--green:#174a3e;--accent:#daf278;--line:#e6eae4;--bg:#f6f7f3;--font:Inter,Arial,sans-serif}*{box-sizing:border-box}body{margin:0;font-family:var(--font);background:var(--bg);color:var(--ink);font-size:14px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #89ac55;outline-offset:3px}[hidden]{display:none!important}.brand{display:flex;align-items:center;gap:12px;font-weight:650;font-size:16px;letter-spacing:-.3px}.brand small{display:block;font-size:9px;letter-spacing:1.8px;font-weight:500;margin-top:6px;color:#a8bbb3}.mark{background:var(--accent);color:#174035;border-radius:11px;font-weight:800;font-size:29px;width:44px;height:44px;display:grid;place-content:center;position:relative}.mark span{font-size:13px;position:absolute;bottom:8px;right:6px}.eyebrow{font-size:10px;letter-spacing:1.4px;font-weight:700;color:#688575}.login-shell{min-height:100dvh;display:grid;place-items:center;background:radial-gradient(ellipse at 20% 10%,#e4eadb,transparent 50%),var(--bg);padding:24px}.login-card{background:white;border:1px solid var(--line);border-radius:20px;padding:44px;width:min(100%,480px);box-shadow:0 16px 70px #183f2510}.login-card .brand{margin-bottom:48px}.login-card .brand small{color:var(--muted)}.login-card h1{font-size:32px;line-height:1.2;letter-spacing:-1px;margin:16px 0}.login-card p{color:var(--muted);line-height:1.65;margin-bottom:30px}.login-card .primary{width:100%;margin-top:6px}.login-footer{border-top:1px solid var(--line);padding-top:20px;margin-top:26px;color:var(--muted);font-size:12px}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--accent);margin-right:8px}.login-footer .dot{background:var(--green)}.error{color:#ad3a32!important;margin:12px 0 0!important}.workspace{display:grid;grid-template-columns:240px 1fr;min-height:100dvh}.sidebar{background:#163f35;color:#f6f9f2;padding:31px 24px;position:sticky;top:0;height:100dvh;display:flex;flex-direction:column}.sidebar .brand{font-size:14px;gap:10px}.sidebar-label{font-size:9px;color:#a5b9ad;letter-spacing:1.4px;margin:54px 0 14px 8px}.nav-active{padding:14px 13px;border:1px solid #577462;background:#355b46;border-radius:8px;font-size:12px;display:flex;align-items:center;gap:11px;color:#ecf7d6}.nav-active span{font-size:19px;color:var(--accent)}.sidebar-bottom{margin-top:auto;color:#b6c7bf;font-size:11px;padding:16px 8px}.sidebar-bottom p{color:#edf2eb;font-size:13px;margin:20px 0 8px}.sidebar-logout{background:none;border:0;padding:5px 0;color:#b6c7bf;font-size:11px}.topbar{height:74px;display:flex;justify-content:space-between;align-items:center;padding:0 42px;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted);background:#fcfdf9}.slash{margin:0 12px;color:#c3cbc1}.main-content{padding:39px 42px;max-width:1560px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.page-heading h1{font-size:30px;font-weight:600;letter-spacing:-1.1px;margin:12px 0;line-height:1.2}.heading-dot{color:#82a245}.page-heading p{color:var(--muted);font-size:12px;margin:0;line-height:1.6}.refresh{display:flex;align-items:center;gap:8px;border:1px solid #d5dcd1;background:#fff;border-radius:7px;padding:11px 14px;font-size:12px;white-space:nowrap}.refresh:first-letter{font-size:16px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:12px;background:#fff;margin-bottom:18px;overflow:hidden}.metric{padding:23px 26px;border-right:1px solid var(--line)}.metric:last-child{border:0}.metric>span{font-size:11px;color:#65766a}.metric strong{font-size:33px;font-weight:500;letter-spacing:-1px;display:block;margin:12px 0 6px}.metric small{font-size:10px;color:#8a968c}.sync-message{font-size:11px;color:var(--muted);min-height:30px;padding:4px 2px 16px}.sync-message.error-state{color:#a35a22}.queue-panel{border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}.queue-top{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:18px 20px 0}.tabs{display:flex;gap:18px}.tabs button{border:0;background:none;color:#7c877e;font-size:11px;padding:12px 0 18px;position:relative;white-space:nowrap}.tabs button.active{color:var(--green);font-weight:700}.tabs button.active:after{content:'';position:absolute;height:2px;background:var(--green);bottom:0;left:0;right:0}.search{display:flex;gap:8px;align-items:center;border:1px solid var(--line);border-radius:7px;padding:7px 10px;margin:0 0 14px;color:var(--muted)}.search span{font-size:20px;line-height:1}.search input{border:0!important;outline:none;background:transparent;width:205px;padding:0!important;font-size:11px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}thead{background:#f7f9f4;color:#8b958b}th{padding:13px 20px;font-size:10px;font-weight:500;border-top:1px solid var(--line);border-bottom:1px solid var(--line);white-space:nowrap}td{padding:19px 20px;border-bottom:1px solid #f0f2ee;vertical-align:middle}tbody tr{cursor:pointer}tbody tr:hover{background:#fafcf6}td strong{display:block;font-weight:600;font-size:12px}td small{display:block;color:#869089;font-size:10px;margin-top:6px;line-height:1.5}.customer-cell{display:flex;align-items:center;gap:11px}.avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#eff2e8;color:#6d8352;font-size:11px;flex-shrink:0}.badge{display:inline-block;font-size:10px;padding:5px 8px;border-radius:5px;background:#f0f3ed;color:#6f7f6b;white-space:nowrap}.badge.new{background:#e9f3dd;color:#517834}.badge.contacted{background:#edf1fc;color:#6078a1}.badge.awaiting_reply{background:#fff3da;color:#a7823e}.badge.callback{background:#f3eafc;color:#8562a0}.badge.not_interested{background:#f0f0f0;color:#777}.badge.paid{background:#daf0e6;color:#306f56}.badge.unknown{background:#fff0df;color:#986739}.open{border:1px solid #e0e6dc;background:white;padding:7px 10px;border-radius:6px;color:var(--green);font-size:11px;white-space:nowrap}.queue-footer{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#879285;padding:17px 20px;background:#fdfefa}.footnote{color:#8c978c;font-size:10px;margin-top:18px}.empty{text-align:center;padding:55px 20px;color:var(--muted)}.empty>div{font-size:26px;color:#8aa16a}.empty h2{font-size:16px;font-weight:500;color:var(--ink);margin:15px 0 10px}.empty p{font-size:12px;line-height:1.6}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}dialog{margin:0 0 0 auto;height:100dvh;max-height:100dvh;width:min(580px,100vw);border:0;border-left:1px solid var(--line);padding:28px 32px;background:#fff;color:var(--ink);overflow-y:auto}dialog::backdrop{background:#102a2459;backdrop-filter:blur(2px)}.drawer-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.close{border:1px solid var(--line);border-radius:50%;width:32px;height:32px;background:white;color:var(--muted);font-size:24px;line-height:1}#contact-title{font-size:27px;letter-spacing:-.7px;margin:0 0 10px}.contact-number{font-size:15px;color:var(--muted);margin:0 0 8px}.contact-email{color:var(--muted);font-size:12px}.contact-actions{display:flex;gap:8px;margin:24px 0}.action-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;padding:11px 17px;border-radius:7px;font-size:12px;color:var(--green);border:1px solid #d8e1d1;background:#f5f8ee}.action-link.call{background:var(--green);color:white;border-color:var(--green)}.case-card{padding:18px;border-radius:9px;background:#f6f8f2;border:1px solid #e6ecdd;margin:12px 0}.case-card .case-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.case-card strong{font-size:12px}.case-card .case-meta{font-size:11px;color:var(--muted);line-height:1.7;margin:10px 0 0}.case-card details{margin-top:12px;font-size:11px}.case-card summary{cursor:pointer;color:#658347}.case-card details p{white-space:pre-wrap;line-height:1.6;color:#68746a}.section-heading{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:28px;padding-top:23px}.section-heading h3{font-size:15px;font-weight:600;margin:0 0 20px}.section-heading span{font-size:10px;color:#8a958a;margin-bottom:20px}label{display:block;font-size:11px;font-weight:600;margin-bottom:18px}input,select,textarea{width:100%;border:1px solid #dce3d6;border-radius:7px;padding:11px 12px;background:white;color:var(--ink);outline:none;margin-top:8px}input:focus,select:focus,textarea:focus{border-color:#839e63;box-shadow:0 0 0 3px #dbecc240}textarea{resize:vertical;line-height:1.6}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.optional{font-weight:400;color:var(--muted);font-size:10px;margin-left:5px}.checkbox-label{display:flex;align-items:center;gap:9px;font-weight:400;color:#6f7b6d}.checkbox-label input{width:15px;height:15px;margin:0;accent-color:var(--green)}.primary{border:0;background:var(--green);border-radius:7px;color:white;padding:13px 17px;display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:12px;font-weight:500}.save-row{display:flex;justify-content:space-between;align-items:center;gap:15px}.save-row>span{font-size:11px;color:#7b8c6c;line-height:1.5}.activity-item{position:relative;padding:0 0 24px 18px;border-left:1px solid #e2e8dd;margin-left:5px}.activity-item:before{content:'';width:7px;height:7px;background:#9cac8b;border-radius:50%;position:absolute;left:-4px;top:4px}.activity-item strong{font-size:11px;font-weight:600}.activity-item small{font-size:10px;color:var(--muted);margin-left:10px}.activity-item p{font-size:12px;line-height:1.6;color:#6c796a;white-space:pre-wrap;margin:8px 0 0}.no-activity{font-size:12px;color:var(--muted);line-height:1.6}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--green);color:white;border-radius:8px;padding:13px 22px;font-size:12px;box-shadow:0 5px 20px #0002;z-index:3}
@media(min-width:1600px){.main-content{padding-top:48px}.page-heading h1{font-size:36px}td{padding-top:23px;padding-bottom:23px}}@media(max-width:1200px){.workspace{grid-template-columns:195px 1fr}.sidebar{padding:25px 15px}.sidebar .brand{font-size:12px}.main-content{padding:30px 25px}.topbar{padding:0 25px}.queue-top{flex-direction:column;align-items:stretch}.tabs{justify-content:space-between;gap:10px}.search{width:100%;margin-bottom:14px}.search input{width:100%}.page-heading h1{font-size:25px}td,th{padding-left:14px;padding-right:14px}}@media(max-width:800px){.workspace{display:block}.sidebar{position:relative;height:auto;flex-direction:row;align-items:center;justify-content:space-between;padding:16px 20px}.sidebar-label,.nav-active,.sidebar-bottom>.dot,.sidebar-bottom>p{display:none}.sidebar-bottom{margin:0;padding:0;font-size:0}.sidebar-logout{font-size:11px}.sidebar .brand{font-size:13px}.sidebar .brand small{font-size:8px}.sidebar .mark{height:36px;width:36px;font-size:25px}.topbar{height:50px;font-size:10px;padding:0 20px}.main-content{padding:25px 16px}.page-heading{align-items:flex-start;flex-direction:column;margin-bottom:22px;gap:18px}.page-heading h1{font-size:28px;max-width:360px}.eyebrow{font-size:9px;letter-spacing:1px}.metrics{border-radius:9px}.metric{padding:17px 12px}.metric>span{font-size:10px;line-height:1.5;display:block;min-height:30px}.metric strong{font-size:29px;margin:6px 0}.metric small{font-size:9px;line-height:1.5;display:block}.tabs{overflow-x:auto;justify-content:flex-start;gap:19px}.tabs button{font-size:11px}.queue-top{padding:12px 14px 0}table{min-width:780px}.queue-footer{flex-direction:column;padding:14px}.footnote{font-size:10px;line-height:1.6}.login-card{padding:32px 26px}.login-card h1{font-size:30px}dialog{padding:23px}.form-grid{gap:12px}.contact-actions{flex-wrap:wrap}}

/* Keep long customer-entered names contained, with readable cards on phones. */
@media(min-width:801px){table{table-layout:fixed}th:nth-child(1){width:25%}th:nth-child(2){width:23%}th:nth-child(3){width:14%}th:nth-child(4){width:15%}th:nth-child(5){width:15%}th:nth-child(6){width:8%}td:last-child{padding-left:0}.customer-cell>div:last-child{min-width:0}.customer-cell strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}td strong,td small{overflow-wrap:anywhere}}
@media(max-width:800px){.table-scroll{overflow:visible}table{display:block;min-width:0}thead{display:none}tbody{display:block}tbody tr{display:grid;grid-template-columns:1fr 1fr;padding:15px 14px;border-top:1px solid var(--line);gap:5px 12px}td{display:block;border:0;padding:5px 0;font-size:11px;min-width:0;overflow-wrap:anywhere}td:nth-child(1),td:nth-child(2){grid-column:1/-1}.customer-cell{margin-bottom:6px}.customer-cell strong{font-size:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}td:nth-child(2){padding-left:45px;margin-bottom:10px}td:nth-child(3):before{content:"Completed";display:block;color:var(--muted);font-size:9px;margin-bottom:6px}td:nth-child(5):before{content:"Next callback";display:block;color:var(--muted);font-size:9px;margin-bottom:6px}td:nth-child(6){display:flex;justify-content:flex-end;align-items:center}.open{padding:10px 17px}.queue-top,.tabs{min-width:0}}
