:root{font:15px/1.55 system-ui,-apple-system,sans-serif;color:#142b36;background:#f3f6f5;--green:#06244a;--muted:#63777f}*{box-sizing:border-box}body{margin:0}header{background:#fff;border-bottom:1px solid #dce6e1;display:flex;justify-content:space-between;align-items:center;padding:22px 5vw}.brand{font-size:23px;font-weight:750;display:flex;gap:12px;align-items:center}.brand small{display:block;font-size:9px;letter-spacing:2px;color:var(--muted)}.mark{background:var(--green);color:white;border-radius:13px;padding:6px 17px;font-size:28px}#connection{color:var(--green);font-size:13px}main{max-width:1400px;margin:44px auto;padding:0 5vw}h1{font-size:clamp(30px,4vw,46px);line-height:1.15;letter-spacing:-1.8px;margin:12px 0}h2{font-size:19px;margin:0 0 10px}h3{margin:0;font-size:16px}p{color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:2.5px;color:var(--green);font-weight:800}.panel{padding:26px;background:#fff;border:1px solid #e0e8e4;border-radius:18px}#login{max-width:700px}#login form{max-width:420px;margin:30px 0}label{display:block;font-size:12px;color:var(--muted);font-weight:650}input{display:block;margin:6px 0 16px;padding:12px;border:1px solid #c9d7d0;border-radius:9px;width:100%;font:inherit;color:#142b36;background:#fff}button{border:0;border-radius:9px;background:var(--green);color:#fff;padding:12px 18px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}button:hover{filter:brightness(.93)}button:disabled{opacity:.5;cursor:wait}.secondary{background:#e6eee9;color:var(--green)}.toolbar,.tools,.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px}.toolbar{align-items:end;margin-bottom:26px}.tools{flex-wrap:wrap;justify-content:end}.tools input{margin:5px 0 0;padding:8px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:22px 0 34px}.stat{padding:20px;background:white;border:1px solid #e0e8e4;border-radius:13px}.stat b{font-size:30px;display:block;letter-spacing:-1px}.stat span{font-size:12px;color:var(--muted)}.split{display:grid;grid-template-columns:1fr 1.15fr;gap:24px}.section-title{margin-bottom:14px}.section-title span{font-size:11px;color:var(--muted)}.person{width:100%;text-align:left;background:white;color:#142b36;border:1px solid #dce6e1;border-radius:14px;margin-bottom:10px;padding:18px;display:grid;grid-template-columns:40px 1fr auto;gap:12px;align-items:center}.person.selected{border:2px solid var(--green);padding:17px}.avatar{background:#e2eee7;color:var(--green);width:39px;height:39px;border-radius:50%;display:grid;place-items:center}.person small{display:block;color:var(--muted);font-weight:400;margin-top:4px}.badge{font-size:10px;border-radius:20px;background:#e9f4ec;color:#226347;padding:5px 9px;white-space:nowrap}.badge.stale{color:#9d5810;background:#fff0db}.detail{align-self:start;min-height:350px}.detail a{color:var(--green)}.metadata{background:#f3f7f4;padding:14px;border-radius:10px;margin:18px 0;font-size:12px;color:var(--muted)}.timeline{padding-left:16px;margin:20px 0;border-left:2px solid #dae7df}.event{padding:0 0 22px 12px;position:relative}.event:before{content:'';position:absolute;left:-22px;top:6px;width:9px;height:9px;background:var(--green);border-radius:50%;border:2px solid #fff}.event time{font-size:11px;color:var(--muted)}.event strong{display:block;font-size:13px}.event p{font-size:12px;margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere}.follow{background:#f7f8f4;border-radius:8px;padding:12px;margin-top:9px;font-size:12px}.overdue{color:#b84c35}#error,#loginError{color:#a53629;white-space:pre-wrap;font-size:13px;margin-top:12px}footer{max-width:1400px;margin:35px auto;padding:0 5vw;font-size:11px;color:var(--muted)}a{color:var(--green)}[hidden]{display:none!important}.empty{padding:22px;color:var(--muted);background:white;border-radius:12px}@media(max-width:1000px){.toolbar{display:block}.tools{justify-content:start;margin-top:20px}.split{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}header{padding:18px 5vw}#connection{max-width:130px;text-align:right}}@media(prefers-reduced-motion:no-preference){button{transition:filter .15s}}

#map{height:370px;border-radius:11px;z-index:0;background:#e6ede7}.map-panel{margin-bottom:26px}.map-panel p{font-size:11px;margin-bottom:0}.leaflet-popup-content{font-family:system-ui,sans-serif}.leaflet-popup-content b{display:block}.map-panel .section-title{flex-wrap:wrap}

.person,.detail,.follow{overflow-wrap:anywhere;min-width:0}.person>div{min-width:0}

.company-logo{width:80px;height:66px;object-fit:contain;background:transparent}@media(max-width:500px){.company-logo{width:64px;height:55px}.brand{font-size:20px;gap:7px}}

.workspace-tabs{display:flex;gap:16px;margin:0 0 34px;padding:0;background:none;width:100%;max-width:820px}.workspace-tabs button{display:flex;align-items:center;gap:14px;flex:1;min-width:0;text-align:left;border:1px solid #dce4ec;border-radius:16px;padding:18px 22px;background:#fff;color:#52677a;box-shadow:0 3px 9px #06244a05;font-size:14px;font-weight:750}.workspace-tabs svg{width:26px;height:26px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.workspace-tabs small{display:block;font-size:10px;font-weight:500;color:#7c8d9c;margin-top:4px}.workspace-tabs button[aria-selected="true"]{background:#06244a;border-color:#06244a;color:#fff;box-shadow:0 7px 16px #06244a1c}.workspace-tabs button[aria-selected="true"] small{color:#c6d2e1}.workspace-tabs button[aria-selected="true"] svg{color:#d8b16b}.workspace-tabs button:focus-visible{outline:3px solid #c39547;outline-offset:4px}.customer-filters{display:grid;grid-template-columns:2fr 1fr;gap:18px;margin-bottom:18px}select,textarea{display:block;width:100%;padding:12px;margin:6px 0 16px;border:1px solid #c9d7d0;border-radius:9px;background:white;font:inherit;color:#142b36}textarea{min-height:95px;resize:vertical}.customer-card{display:block;width:100%;text-align:left;background:white;color:#142b36;border:1px solid #dce6e1;border-radius:14px;padding:20px;margin-bottom:12px;overflow-wrap:anywhere}.customer-card.selected{border:2px solid #06244a;padding:19px}.customer-card p{margin:5px 0 12px;font-size:13px;font-weight:400}.customer-profile{display:grid;grid-template-columns:120px 1fr;gap:8px;font-size:13px;margin:24px 0}.customer-profile dt{color:#63777f}.customer-profile dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.follow p{white-space:pre-wrap}.customer-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}dialog{border:1px solid #dce6e1;border-radius:20px;padding:28px;max-width:760px;width:calc(100% - 28px);max-height:90vh;overflow:auto;color:#142b36}dialog::backdrop{background:#06244a88}#customerError,#customerSaveError{color:#a53629;margin:10px 0;font-size:13px}@media(max-width:600px){.customer-filters,.customer-fields{grid-template-columns:1fr}.customer-profile{grid-template-columns:95px 1fr}dialog{padding:18px}}

.role-guide{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:26px}.role-guide article{background:#fff;border:1px solid #e0e8ee;border-top:3px solid #c39a55;border-radius:12px;padding:18px 20px}.role-guide strong{color:#06244a;font-size:14px}.role-guide p{font-size:12px;margin-bottom:0}.user-search{max-width:420px}.users-list{display:grid;gap:12px}.user-row{display:grid;grid-template-columns:minmax(180px,1.2fr) 1fr auto;gap:18px;align-items:center;background:#fff;border:1px solid #e0e8ee;border-radius:14px;padding:20px 24px}.user-username{font-size:12px;color:#63777f;margin-top:3px}.user-status{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.user-actions{display:flex;gap:10px}.role-admin{color:#65431a;background:#f9efdc}.role-manager{color:#244e80;background:#eaf0f8}.status-active,.status-disabled{font-size:11px}.status-active{color:#226347}.status-disabled{color:#a53629}.danger-button{background:#fff0ed;color:#a53629}.fineprint{font-size:12px}.check-label{display:flex;align-items:center;gap:10px}.check-label input{width:auto;margin:0}.import-table{width:100%;border-collapse:collapse;font-size:12px;margin:18px 0}.import-table th,.import-table td{text-align:left;padding:10px;border-bottom:1px solid #e2e8ee;overflow-wrap:anywhere}.import-table th{background:#f0f4f7;color:#06244a}.import-table td{max-width:220px}#importPreview{max-height:350px;overflow:auto}#importSummary{font-size:13px;margin:18px 0}#usersError,#userSaveError,#importError{font-size:13px;color:#a53629;margin:12px 0}.customer-split{margin-top:18px}#customersWorkspace .toolbar{align-items:start}#customersWorkspace .tools{max-width:650px}
@media(max-width:700px){.role-guide{grid-template-columns:1fr}.user-row{grid-template-columns:1fr}.workspace-tabs{gap:10px}.workspace-tabs button{padding:14px 8px;flex-direction:column;text-align:center;gap:8px;font-size:12px}.workspace-tabs small{display:none}.workspace-tabs svg{width:23px;height:23px}.user-actions{flex-wrap:wrap}}

/* Keep the selected customer's profile beside the list while the page scrolls. */
.workspace-tabs{max-width:1040px}.workspace-tabs button{padding:18px;gap:12px}
.customer-split{align-items:start;position:relative}#customerDetail{position:sticky;top:20px;min-height:0;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-margin-top:20px}#customerDetail:focus-visible{outline:3px solid #c39547;outline-offset:4px}.profile-back{display:none}
.zoho-state{display:flex;gap:20px;align-items:center;margin-bottom:24px}.zoho-state h2{display:inline-block;margin-right:12px}.zoho-state p{font-size:14px;margin-bottom:0}.zoho-mark{display:grid;place-items:center;flex-shrink:0;width:62px;height:62px;border-radius:17px;background:#eef3fa;color:#06244a}.zoho-mark svg{width:31px;height:31px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.pending-badge{background:#fcf1da;color:#805c26}.sales-placeholder-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:26px}.sales-placeholder{padding:24px;background:#fff;border:1px solid #e0e8ee;border-radius:16px}.sales-placeholder span{display:block;color:#63777f;font-size:13px}.sales-placeholder strong{display:block;font-size:34px;line-height:1.5;color:#8a9aaa}.sales-placeholder small{font-size:11px;color:#63777f}.future-reports{min-height:180px}.future-reports p{font-size:14px}.home-shortcuts{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
@media(max-width:1000px){#customerDetail{position:static;max-height:none;overflow:visible;scrollbar-gutter:auto}.customer-split.has-selection #customerDetail{order:-1}.profile-back{display:inline-block;margin-bottom:18px}.sales-placeholder-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.workspace-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.workspace-tabs button{padding:14px 12px;flex-direction:row;text-align:left;gap:12px}.zoho-state{align-items:flex-start;padding:20px;gap:14px}.zoho-mark{width:44px;height:44px;border-radius:12px}.zoho-state h2{display:block}.sales-placeholder-grid{gap:12px}.sales-placeholder{padding:18px}.sales-placeholder span{font-size:12px}.sales-placeholder small{font-size:10px}.home-shortcuts{display:grid;grid-template-columns:1fr}}

.workspace-tabs{max-width:none;flex-wrap:wrap}.workspace-tabs button{flex:1 1 150px;padding:16px 14px;font-size:13px}.workspace-tabs small{font-size:10px}.shipment-filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:18px}.shipment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:20px}.shipment-card{min-width:0;overflow-wrap:anywhere}.shipment-card h2{margin-top:16px}.shipment-card h3{font-weight:600;color:#63777f}.shipment-card small{display:block;font-size:11px;color:#63777f}.shipment-card button{margin-top:16px}.shipment-note{white-space:pre-wrap;font-size:13px}#shipmentError,#shipmentSaveError{color:#a53629;margin:12px 0;font-size:13px}@media(max-width:800px){.shipment-filters,.shipment-grid{grid-template-columns:1fr}.workspace-tabs button{padding:14px 12px}}@media(max-width:700px){.workspace-tabs{display:grid}}

/* Compact customer meeting rows expand through native, keyboard-accessible controls. */
.customer-visit{border:1px solid #dbe5e2;border-radius:14px;margin:12px 0;background:#fff;overflow:hidden}
.customer-visit summary{cursor:pointer;padding:16px;color:#123b45;font-weight:700;line-height:1.6;overflow-wrap:anywhere}
.customer-visit summary:hover{background:#f2f7f5}
.customer-visit summary:focus-visible{outline:3px solid #387c70;outline-offset:-3px}
.customer-visit summary .badge{margin-left:10px;white-space:normal}
.customer-visit[open] summary{border-bottom:1px solid #dbe5e2;background:#f2f7f5}
.visit-meeting{padding:0 18px 18px;overflow-wrap:anywhere}
.visit-meeting p,.visit-meeting .follow{white-space:pre-wrap}

.visit-client{display:block;font-weight:500;color:#63777f;margin:4px 0 0 18px}

.shipment-table-scroll{width:100%;max-width:100%;overflow:auto;margin:18px 0;border:1px solid #d5e1df;border-radius:12px;background:white;max-height:70vh;overscroll-behavior:contain}
.shipment-table{border-collapse:separate;border-spacing:0;min-width:1600px;width:100%;font-size:13px;text-align:left}
.shipment-table caption{padding:14px;text-align:left;font-weight:700;color:#123b45;background:#f0f5f3}
.shipment-table th,.shipment-table td{padding:11px 12px;border-right:1px solid #e0e8e5;border-bottom:1px solid #e0e8e5;vertical-align:top;min-width:110px;max-width:240px;overflow-wrap:anywhere}
.shipment-table thead{position:sticky;top:0;z-index:1;background:#e9f1ee}
.shipment-table tbody tr:nth-child(even){background:#f7faf9}.shipment-table tbody tr:hover{background:#edf5f1}
.shipment-table th{font-weight:700}.shipment-table .table-sort{font:inherit;color:#123b45;background:transparent;padding:0;border:0;white-space:nowrap;box-shadow:none}
.shipment-column-filters input{min-width:100px;padding:8px;font-size:12px;border-radius:6px;width:100%}
.shipment-table-note{white-space:pre-wrap;min-width:220px!important}
.shipment-table-actions{min-width:160px!important;white-space:nowrap}.shipment-table-actions button{padding:8px 12px;margin-right:6px;font-size:12px}
button.danger{color:#9e3026;background:#fbe9e6;border:1px solid #ecc9c4}
.shipment-table-scroll:focus-visible{outline:3px solid #387c70;outline-offset:2px}

.shipment-filters{grid-template-columns:2fr 1fr 1fr 1fr}@media(max-width:900px){.shipment-filters{grid-template-columns:1fr 1fr}}@media(max-width:600px){.shipment-filters{grid-template-columns:1fr}}
