:root{--ink:#124c49;--muted:#6f8985;--line:#dcebe6;--purple:#12ad84;--bg:#f4faf8}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:13px Arial,sans-serif}a{text-decoration:none;color:inherit}
.shell{display:flex;min-height:100vh}.sidebar{width:235px;padding:25px 16px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column}.content{min-width:0;flex:1}.brand{display:flex;gap:10px;align-items:center;padding:0 10px 36px}.brand strong{font-size:20px}.brand strong span{color:var(--purple)}.brand small,.profile small,.team-card p{display:block;color:var(--muted);font-size:10px;margin-top:4px}.brand-mark,.avatar{display:grid;place-items:center;background:var(--purple);color:#fff;border-radius:10px;width:34px;height:34px;font-weight:bold}
.workspace-label,.eyebrow{color:#aaa5b2;font-size:9px;letter-spacing:1.2px;font-weight:bold}.workspace-label{padding:0 10px 10px}.nav-list{display:grid;gap:4px}.nav-item,.settings-link{display:flex;gap:11px;align-items:center;padding:11px 12px;border-radius:8px;color:#77717f;font-size:11px}.nav-item.active{background:#f0edff;color:#087e6b;font-weight:bold}.nav-count{margin-left:auto;background:#eeeaff;padding:3px 6px;border-radius:5px;font-size:9px}.sidebar-spacer{flex:1}.team-card{margin:18px 5px;padding:13px;border:1px solid #e7e1ff;border-radius:10px;background:#faf9ff}.profile{display:flex;gap:8px;align-items:center;border-top:1px solid var(--line);padding:15px 8px 0}.profile strong{font-size:10px}.profile .dots{margin-left:auto}
.topbar{height:70px;padding:0 42px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.breadcrumbs,.top-actions{display:flex;gap:10px;align-items:center;color:#aaa5b2;font-size:11px}.breadcrumbs strong{color:#4a4352}.role-chip,.icon-button,.help-button{padding:7px 10px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#77717f;font-size:10px}.page-wrap{max-width:1180px;margin:auto;padding:40px}.hero-row,.page-title-row{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:28px}.hero-row h1,.page-title-row h1{font-size:27px;margin:8px 0}.hero-copy{color:#96909d;font-size:12px}.hero-actions{display:flex;gap:8px}.primary-button,.secondary-button{display:inline-block;border:1px solid #ddd8e5;border-radius:7px;padding:10px 14px;font-size:11px;font-weight:bold;background:#fff}.primary-button{color:#fff;background:var(--purple);border-color:var(--purple)}.notice{padding:12px;margin-bottom:15px;border-radius:8px;background:#e9f9f2;color:#168361;font-size:11px}.notice.error{background:#fff0f2;color:#bd536a}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:36px}.stat-card,.panel,.table-panel,.add-card,.report-card{background:#fff;border:1px solid var(--line);border-radius:11px}.stat-card{min-height:118px;padding:18px;display:flex;gap:12px}.stat-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px}.purple{background:#e3f7ef;color:#087e6b}.green{background:#e4f8ef;color:#0b956f}.amber{background:#fff3df;color:#bd812d}.pink{background:#ffedf0;color:#cc687d}.stat-card span,.stat-card small{display:block;color:#9993a0;font-size:10px}.stat-card strong{display:block;font-size:21px;margin:6px 0}
.chart-grid,.lower-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:13px}.lower-grid{grid-template-columns:1fr 1.4fr;margin-top:13px}.panel{padding:20px}.panel-heading{display:flex;justify-content:space-between;margin-bottom:20px}.panel h3{font-size:13px;margin:0 0 5px}.panel-heading p,.report-card p{color:#aaa4b0;font-size:10px;margin:0}.progress-row{margin:14px 0}.progress-row>div:first-child{display:flex;justify-content:space-between;font-size:10px}.progress-track{height:6px;background:#f0edf3;border-radius:5px;margin-top:7px;overflow:hidden}.progress-track div{height:100%;background:#8978ef;border-radius:5px}.chart-legend{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:14px;color:#88818f;font-size:10px}
.category-visual{display:flex;gap:20px;align-items:center}.donut{width:120px;height:120px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#24b788 0 38%,#e0a24d 38% 76%,#ed718a 76%)}.donut>div{z-index:1;text-align:center}.donut strong,.donut span{display:block}.donut strong{font-size:23px}.donut span{font-size:9px;color:#aaa}.category-list{display:grid;gap:12px;flex:1}.category-row{display:flex;gap:8px;align-items:center}.category-tag{width:20px;height:20px;border-radius:6px;display:grid;place-items:center;color:#fff;font-size:9px;font-weight:bold}.category-A{background:#24b788}.category-B{background:#e0a24d}.category-C{background:#ed718a}.category-row div{flex:1}.category-row strong,.category-row small{display:block;font-size:10px}.category-row small{color:#aaa;font-size:9px;margin-top:3px}.panel-link,.text-button,.table-link{color:var(--purple);font-size:11px;font-weight:bold}
.activity-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid #f1eef3;padding:10px 0}.activity-row>div:nth-child(2){flex:1}.activity-row strong,.activity-row span,.activity-row small{display:block;font-size:10px}.activity-row span,.activity-row small{color:#aaa;font-size:9px;margin-top:4px}.activity-icon{width:28px;height:28px;border-radius:8px;background:#eeeaff;color:var(--purple);display:grid;place-items:center}.filter-bar{display:flex;gap:8px;margin-bottom:14px}.search-wrap{flex:1;display:flex;align-items:center;padding:0 11px;border:1px solid var(--line);border-radius:8px;background:#fff}.search-wrap input{border:0;outline:0;width:100%;padding:11px;font-size:11px}.inline-select,.roi-select,.compact-form input,.compact-form select,.compact-form textarea{border:1px solid #e4e0e8;border-radius:7px;background:#fff;padding:10px;font-size:11px;color:#575060}
.table-panel{overflow:hidden}.table-toolbar,.table-footer{display:flex;justify-content:space-between;padding:16px 19px;color:#aaa;font-size:10px}.table-toolbar{border-bottom:1px solid var(--line)}.table-footer{border-top:1px solid var(--line)}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;min-width:760px}th,td{padding:13px;border-bottom:1px solid #f1eef3;text-align:left;font-size:10px;color:#716b79;white-space:nowrap}th{color:#9c96a3;background:#fcfbfd;font-size:9px;text-transform:uppercase}.doctor-cell{display:flex;gap:8px;align-items:center}.doctor-avatar{width:29px;height:29px;border-radius:8px;display:grid;place-items:center;background:#eeeaff;color:#087e6b;font-size:9px;font-weight:bold}.doctor-cell strong,.doctor-cell small{display:block}.doctor-cell small,.table-muted{color:#aaa;font-size:9px;margin-top:4px}.roi-select{font-weight:bold;width:58px}.roi-A{color:#189871;background:#e7f9f2}.roi-B{color:#b17b2d;background:#fff2dc}.roi-C{color:#cc687d;background:#ffedf0}.empty-state{text-align:center;padding:45px;color:#888}.add-card{display:grid;grid-template-columns:220px 1fr;gap:20px;padding:20px;margin-top:15px}.add-card h2{margin:7px 0;font-size:18px}.add-card p:not(.eyebrow){color:#999;font-size:11px}.compact-form{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.compact-form textarea{min-height:40px;grid-column:span 2}
.login-page{min-height:100vh;display:grid;place-items:center;background:#f8f7fa}.login-card{width:min(390px,calc(100% - 32px));padding:34px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 20px 50px #124c4914}.login-card .brand-mark{margin-bottom:20px}.login-card h1{margin:10px 0 8px;font-size:25px}.login-card h1 span{color:var(--purple)}.login-card p{color:var(--muted);font-size:12px}.login-card form{display:grid;gap:13px;margin:25px 0 15px}.login-card label{display:grid;gap:6px;color:#6f6878;font-size:10px;font-weight:bold}.login-card input{border:1px solid #e4e0e8;border-radius:7px;padding:11px;font-size:12px}.login-card .primary{border:0;border-radius:7px;padding:11px;color:#fff;background:var(--purple);font-weight:bold}.login-card small{color:#aaa;font-size:10px}.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:13px}.title-count{display:inline-grid;place-items:center;min-width:25px;height:20px;padding:0 6px;border-radius:7px;color:var(--purple);background:#eeeaff;font-size:10px;vertical-align:3px}.live-chip{color:#77727f;font-size:9px;border:1px solid var(--line);border-radius:10px;padding:4px 7px;margin-left:8px;font-weight:normal}.live-chip i{display:inline-block;width:5px;height:5px;margin-right:4px;border-radius:50%;background:#2abd8e}.legend-dot{display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:var(--purple)}.insight-strip{display:flex;align-items:center;gap:12px;margin-top:13px;padding:16px 18px;border:1px solid #d7eee7;border-radius:10px;background:#e9f8f3}.insight-strip>div:nth-child(2){flex:1}.insight-strip strong{font-size:11px;color:#0b7366}.insight-strip p{margin:4px 0;color:#5f8881;font-size:10px}.insight-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:#d8f1e8;color:var(--purple)}.activity-list{padding:20px}.reports-intro{padding:25px;margin-bottom:15px;background:#124c49;color:#fff;border-radius:11px}.reports-intro h1{margin:8px 0;font-size:22px}.reports-intro p{color:#b5aebd;font-size:11px}.report-kicker{color:#9ee4cf}.report-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}.report-card{padding:20px;display:flex;gap:12px}.report-card h3{margin:0 0 8px;font-size:12px}.report-card strong{font-size:20px}.report-icon{width:35px;height:35px;padding:10px;border-radius:9px;background:#e3f7ef;color:var(--purple)}.inline-form{margin:0}.lock-note{display:block;color:#aaa;font-size:9px;margin-top:4px}.nav-icon{font-size:17px}.team-card-top{font-size:10px;color:#0b7366;font-weight:bold}.avatar-stack{display:flex}@media(max-width:850px){.sidebar{width:65px;padding:20px 8px}.brand>div:last-child,.workspace-label,.nav-item:not(.active),.team-card,.settings-link,.profile>div:not(.avatar){display:none}.brand{padding:0 7px 30px}.nav-item.active{font-size:0;justify-content:center}.topbar{padding:0 18px}.page-wrap{padding:25px 18px}.stat-grid{grid-template-columns:repeat(2,1fr)}.chart-grid,.lower-grid,.add-card{grid-template-columns:1fr}.compact-form{grid-template-columns:1fr}.compact-form textarea{grid-column:auto}.hero-row,.page-title-row{display:block}.hero-actions,.page-title-row>a{margin-top:16px}.report-grid{grid-template-columns:1fr}}.filter-grid{display:grid;grid-template-columns:minmax(220px,1.8fr) repeat(3,minmax(110px,1fr));align-items:center;flex-wrap:wrap}.filter-grid input,.filter-grid select{min-width:0}.metric-row{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #f1eef3;font-size:11px}.mini-tags{display:flex;gap:5px}.mini-tags i{padding:5px 6px;border-radius:5px;color:#fff;font-size:9px;font-style:normal}.blue{background:#e8f3ff;color:#3d8bc9}.tiny-note{display:block;width:92px;margin-top:4px;padding:4px 5px;border:1px solid var(--line);border-radius:5px;font-size:9px;color:#777}.danger-inline{display:inline}.link-danger{border:0;background:transparent;color:#ca657a;font:inherit;font-size:10px;cursor:pointer;padding:0}.page-link{display:inline-grid;place-items:center;min-width:22px;height:22px;margin-left:3px;border-radius:5px;color:#777;font-size:10px}.page-link.current{background:#eeeaff;color:var(--purple);font-weight:bold}.profile-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:13px}.profile-card{background:#fff;border:1px solid var(--line);border-radius:11px;padding:22px}.profile-card h2{margin:7px 0;font-size:22px}.profile-card p{color:#999;font-size:11px}.profile-details{display:grid;grid-template-columns:repeat(2,1fr);gap:13px;margin-top:18px}.profile-details span,.profile-details strong{display:block}.profile-details span{color:#aaa;font-size:9px;text-transform:uppercase;letter-spacing:.6px}.profile-details strong{font-size:11px;margin-top:4px}.timeline-panel{margin-top:13px}.timeline{position:relative;margin-top:18px}.timeline:before{content:"";position:absolute;left:11px;top:5px;bottom:5px;width:1px;background:#e6e1ee}.timeline-item{position:relative;display:flex;gap:14px;padding:0 0 22px}.timeline-marker{width:23px;height:23px;flex:0 0 23px;display:grid;place-items:center;border-radius:50%;background:#eeeaff;color:var(--purple);font-size:10px;z-index:1}.timeline-body{flex:1;padding-bottom:13px;border-bottom:1px solid #f1eef3}.timeline-body strong,.timeline-body span,.timeline-body small{display:block}.timeline-body strong{font-size:11px}.timeline-body span{color:#777;font-size:10px;margin-top:4px}.timeline-body small{color:#aaa;font-size:9px;margin-top:5px}.roi-text-A{color:#198f70}.roi-text-B{color:#b17b2d}.roi-text-C{color:#c8667d}.type-form{display:flex;gap:8px;grid-column:2}.type-form input{flex:1;border:1px solid #e4e0e8;border-radius:7px;padding:10px;font-size:11px}.report-selector{margin-top:13px}.report-tabs{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.report-tab{display:block;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fcfbfd}.report-tab strong,.report-tab span{display:block}.report-tab strong{font-size:10px}.report-tab span{color:#aaa;font-size:9px;line-height:1.4;margin-top:5px}.report-tab.active{border-color:#9edecb;background:#e9f8f3}.report-tab.active strong{color:#087e6b}.report-table{margin-top:13px}.light-button{background:#fff;color:#d8d0e5;border-color:#77707f}.reports-intro .primary-button{background:#fff;color:#087e6b;border-color:#fff}.reports-intro .secondary-button{color:#fff;border-color:#70687c;background:transparent}@media(max-width:850px){.filter-grid{grid-template-columns:1fr 1fr}.filter-grid .search-wrap{grid-column:1/-1}.profile-grid{grid-template-columns:1fr}.report-tabs{grid-template-columns:1fr 1fr}.type-form{grid-column:auto}}.brand{flex-direction:column;align-items:flex-start;gap:9px}.brand-logo{display:block;width:190px;height:56px;object-fit:contain;object-position:left center}.brand-copy strong{display:block;color:var(--ink);font-size:14px;letter-spacing:.2px}.brand-copy small{font-size:9px;text-transform:uppercase;letter-spacing:.7px}.login-logo{display:block;width:265px;max-width:100%;height:auto;margin-bottom:20px;object-fit:contain;object-position:left center}.reports-intro{background:#124c49}.nav-item.active{background:#e3f7ef;color:#087e6b}.role-chip{color:#087e6b;background:#f2fbf7}.stat-icon.purple{background:#e3f7ef;color:#087e6b}.insight-strip{border-color:#d7eee7;background:#e9f8f3}.insight-strip strong{color:#0b7366}.report-icon{background:#e3f7ef;color:#087e6b}@media(max-width:850px){.brand{align-items:center}.brand-logo{width:40px;height:40px;object-fit:cover;object-position:left center}.brand-copy{display:none}.login-logo{width:235px}}.filter-panel{margin-bottom:15px;padding:16px 18px;background:rgba(255,255,255,.86);border:1px solid var(--line);border-radius:13px;box-shadow:0 8px 24px rgba(18,76,73,.04)}.filter-panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.filter-panel-heading h3{margin:4px 0 0;color:var(--ink);font-size:13px}.live-search-status{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:999px;background:#e9f8f3;color:#087e6b;font-size:10px;font-weight:bold}.filter-panel .filter-bar{margin-bottom:0}.filter-panel .search-wrap{border-color:#c9e6dc;box-shadow:0 0 0 3px rgba(18,173,132,.05)}.filter-panel .search-wrap:focus-within{border-color:#12ad84;box-shadow:0 0 0 3px rgba(18,173,132,.13)}.filter-panel .secondary-button{min-height:38px}.filter-panel input::placeholder{color:#91aaa5}@media(max-width:650px){.filter-panel-heading{display:block}.live-search-status{margin-top:10px}.filter-panel .filter-grid{grid-template-columns:1fr}.filter-panel .search-wrap{grid-column:auto}}.filter-panel-actions{display:flex;align-items:center;gap:10px}.filter-reset{color:#087e6b;font-size:10px;font-weight:bold;padding:6px 2px}.filter-panel .filter-grid{gap:9px}.filter-panel .filter-grid input:not([type="hidden"]),.filter-panel .filter-grid select{width:100%;min-width:0;height:38px;padding:0 10px;border:1px solid #c9e6dc;border-radius:8px;background:#fff;color:#476d68;font:11px Arial,sans-serif}.filter-panel .filter-grid input:not([type="hidden"]):focus,.filter-panel .filter-grid select:focus{outline:0;border-color:#12ad84;box-shadow:0 0 0 3px rgba(18,173,132,.13)}.filter-panel .filter-grid input[type="date"]{color:#476d68;color-scheme:light}.filter-panel .filter-grid input[type="date"]::-webkit-calendar-picker-indicator{opacity:.65;cursor:pointer}.filter-panel .filter-grid .search-wrap{height:38px}.filter-panel .filter-grid .search-wrap input{height:36px;border:0;box-shadow:none;padding:0 8px}.filter-panel .filter-grid .search-wrap input:focus{box-shadow:none}@media(max-width:650px){.filter-panel-actions{justify-content:space-between;margin-top:10px}.filter-panel .filter-grid{gap:8px}}body.drawer-open{overflow:hidden}.drawer-backdrop[hidden],.doctor-drawer[hidden]{display:none}.drawer-backdrop{position:fixed;inset:0;z-index:80;background:rgba(18,76,73,.2);backdrop-filter:blur(2px);opacity:0;transition:opacity .22s ease}.drawer-backdrop.open{opacity:1}.doctor-drawer{position:fixed;top:0;right:0;z-index:81;width:min(620px,100vw);height:100vh;display:flex;flex-direction:column;background:var(--bg);box-shadow:-18px 0 50px rgba(18,76,73,.18);transform:translateX(100%);transition:transform .25s ease}.doctor-drawer.open{transform:translateX(0)}.doctor-drawer-header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;background:#fff;border-bottom:1px solid var(--line)}.doctor-drawer-header strong{display:block;margin-top:4px;color:var(--ink);font-size:16px}.doctor-drawer-close{width:32px;height:32px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font-size:22px;line-height:1;cursor:pointer}.doctor-drawer-close:hover{background:#e9f8f3;color:#087e6b}.doctor-drawer-body{flex:1;overflow:auto;padding:18px}.doctor-drawer .profile-grid{display:block}.doctor-drawer .profile-card,.doctor-drawer .timeline-panel{width:100%;margin:0}.doctor-drawer .timeline-panel{margin-top:13px}.drawer-loading{display:grid;place-items:center;min-height:180px;padding:30px;color:#6f8985;font-size:12px;text-align:center}.doctor-drawer .profile-card h2{font-size:20px}.doctor-drawer .details-list{grid-template-columns:repeat(2,1fr)}@media(max-width:520px){.doctor-drawer-body{padding:12px}.doctor-drawer-header{padding:16px}.doctor-drawer .details-list{grid-template-columns:1fr}.doctor-drawer .drawer-stats{grid-template-columns:1fr 1fr 1fr}}
/* Doctor drawer content layout */
.drawer-identity{display:flex;align-items:center;gap:14px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.doctor-drawer .doctor-avatar.large{width:48px;height:48px;border-radius:14px;font-size:12px}
.drawer-identity h2{margin:0 0 5px;color:var(--ink);font-size:20px;line-height:1.15}
.drawer-identity p{margin:0;color:var(--muted);font-size:11px;line-height:1.4}
.drawer-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0}
.drawer-stats>div{padding:12px;border:1px solid #d7eee7;border-radius:10px;background:#f7fcfa}
.drawer-stats span{display:block;color:#7d9993;font-size:9px;text-transform:uppercase;letter-spacing:.7px}
.drawer-stats strong{display:block;margin-top:6px;color:var(--ink);font-size:13px;line-height:1.25}
.drawer-stats .roi-text-A{color:#0b956f}
.drawer-stats .roi-text-B{color:#b17b2d}
.drawer-stats .roi-text-C{color:#c8667d}
.drawer-section{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.drawer-section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:13px}
.drawer-section-title h3{margin:0;color:var(--ink);font-size:13px;line-height:1.3}
.drawer-section-title span{color:var(--muted);font-size:9px;white-space:nowrap}
.details-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.details-list>div{min-width:0;padding:10px 11px;border:1px solid #e0eee9;border-radius:9px;background:#fbfefd}
.details-list span{display:block;color:#7b9892;font-size:9px;text-transform:uppercase;letter-spacing:.6px;line-height:1.2}
.details-list b{display:block;margin-top:5px;color:#245d57;font-size:11px;line-height:1.35;overflow-wrap:anywhere}
.doctor-drawer .timeline-panel{padding:20px}
.doctor-drawer .timeline-panel .panel-heading{margin-bottom:14px}
.timeline-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:7px}
.timeline-meta span{color:#7b9892;font-size:10px}
.timeline-meta b{color:#087e6b;font-size:12px;line-height:1.2}
.timeline-body>strong{color:var(--ink);font-size:12px;line-height:1.3}
.timeline-body p{margin:8px 0;color:#4c736d;font-size:11px;line-height:1.45}
.timeline-body a{display:inline-block;margin-top:9px}
.doctor-drawer .empty-state{padding:30px 12px}.timeline-panel .empty-state strong,.timeline-panel .empty-state span{display:block}.timeline-panel .empty-state span{margin-top:6px}
@media(max-width:520px){.drawer-stats{grid-template-columns:1fr!important}.details-list{grid-template-columns:1fr!important}.drawer-section-title{align-items:flex-start;flex-direction:column;gap:4px}.drawer-section-title span{white-space:normal}}
/* Dashboard overview polish */
.hero-row{position:relative;overflow:hidden;align-items:center;margin-bottom:20px;padding:26px 28px;border:1px solid #d5ece5;border-radius:18px;background:linear-gradient(135deg,#f1fbf7 0%,#ffffff 58%,#effaf6 100%);box-shadow:0 14px 34px rgba(18,76,73,.06)}
.hero-row:after{content:"";position:absolute;right:-48px;top:-70px;width:220px;height:220px;border:28px solid rgba(18,173,132,.08);border-radius:50%}
.hero-row>div{position:relative;z-index:1}
.hero-row h1{margin:9px 0 7px;color:var(--ink);font-size:30px;letter-spacing:-.7px;line-height:1.12}
.hero-row h1 span{color:#12ad84;font-size:24px}
.hero-row .hero-copy{max-width:620px;margin:0;color:#6e8984;font-size:12px}
.hero-actions{display:flex;align-items:center;gap:8px}
.live-chip{display:inline-flex;align-items:center;gap:6px;margin-left:8px;padding:5px 9px;border:1px solid #d8eee7;border-radius:999px;background:rgba(255,255,255,.75);color:#5d8880;font-size:9px;letter-spacing:.25px;vertical-align:middle}
.live-chip i{width:6px;height:6px;border-radius:50%;background:#12ad84;box-shadow:0 0 0 3px rgba(18,173,132,.12)}
.stat-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:38px}
.stat-card{position:relative;overflow:hidden;min-height:126px;padding:19px;border:1px solid #d8eee8;border-radius:14px;background:linear-gradient(145deg,#ffffff 0%,#fbfefd 100%);box-shadow:0 8px 22px rgba(18,76,73,.045);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.stat-card:after{content:"";position:absolute;right:-22px;bottom:-28px;width:82px;height:82px;border-radius:50%;background:rgba(18,173,132,.045)}
.stat-card:hover{transform:translateY(-2px);border-color:#bfe4d9;box-shadow:0 14px 28px rgba(18,76,73,.09)}
.stat-card>div:last-child{position:relative;z-index:1}
.stat-card span{color:#78948e;font-size:10px;letter-spacing:.15px}
.stat-card strong{margin:7px 0 5px;color:var(--ink);font-size:23px;letter-spacing:-.3px}
.stat-card small{color:#8aa29d;font-size:9px}
.stat-icon{position:relative;z-index:1;width:36px;height:36px;border-radius:11px;font-size:14px;font-weight:bold;box-shadow:0 4px 10px rgba(18,76,73,.06)}
.section-heading{align-items:center;margin-bottom:15px;padding:0 2px}
.section-heading h2{margin:6px 0 0;color:var(--ink);font-size:21px;letter-spacing:-.25px}
.chart-grid,.lower-grid{gap:16px}
.panel{border:1px solid #d8eee8;border-radius:15px;background:#fff;box-shadow:0 8px 22px rgba(18,76,73,.04)}
.panel-heading{margin-bottom:17px;padding-bottom:12px;border-bottom:1px solid #edf5f2}
.panel-heading h3{color:var(--ink);font-size:13px;letter-spacing:.05px}
.panel-heading p{color:#8aa29d;font-size:9px}
.category-visual{min-height:150px;gap:24px}
.donut{width:136px;height:136px;background:conic-gradient(#20b68a 0 38%,#e3a648 38% 76%,#ec718b 76%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.4),0 10px 18px rgba(18,76,73,.08)}
.donut:after{content:"";position:absolute}
.donut strong{color:var(--ink);font-size:25px}
.donut span{color:#86a09a;font-size:9px}
.category-list{gap:13px}
.category-row{padding:3px 0}
.category-row strong{color:#285e58;font-size:10px}
.category-row small{color:#91a8a3;font-size:9px}
.category-row>b{color:var(--ink);font-size:13px}
.progress-row{margin:16px 0}
.progress-row>div:first-child{color:#4b756e;font-size:10px}
.progress-row>div:first-child b{color:var(--ink)}
.progress-track{height:7px;margin-top:8px;background:#edf5f2;border-radius:999px}
.progress-track div{background:linear-gradient(90deg,#18b789,#6c8ded);box-shadow:0 2px 7px rgba(18,173,132,.2)}
.metric-row{padding:13px 0;border-bottom-color:#edf4f1}
.metric-row strong{color:#285e58;font-size:11px}
.mini-tags{display:flex;gap:5px}
.mini-tags i{min-width:27px;padding:4px 5px;border-radius:6px;font-size:9px;text-align:center;font-style:normal;font-weight:bold}
.activity-row{padding:12px 0;border-bottom-color:#edf4f1}
.activity-row strong{color:#245d57;font-size:10px}
.activity-row span,.activity-row small{color:#8ba39e;font-size:9px}
.activity-row>div:last-child{color:var(--ink);font-weight:bold}
.panel-link{display:inline-block;margin-top:12px}
.insight-strip{min-height:150px;margin-top:0;padding:22px;border-radius:15px;box-shadow:0 8px 22px rgba(18,76,73,.04)}
.insight-strip strong{font-size:12px}
.insight-strip p{max-width:410px;line-height:1.5}
.insight-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#d9f4eb;color:#0b9d78;box-shadow:0 5px 12px rgba(18,173,132,.12)}
@media(max-width:1120px){.stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.hero-row{display:block;padding:22px}.hero-actions{margin-top:18px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:30px}.category-visual{align-items:flex-start;flex-direction:column}.donut{margin:0 auto}.insight-strip{min-height:0}}
@media(max-width:480px){.hero-row h1{font-size:25px}.live-chip{display:flex;width:max-content;margin:10px 0 0}.stat-grid{grid-template-columns:1fr}.stat-card{min-height:108px}.section-heading{align-items:flex-start;gap:10px;flex-direction:column}.category-row{gap:8px}}
/* Dashboard chart row spacing */
.chart-grid + .chart-grid{margin-top:16px}
/* Dashboard category total clarity */
.category-visual{min-width:0;gap:28px}
.donut{position:relative;flex:0 0 136px}
.donut>div{width:78px;height:78px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:50%;background:#fff;box-shadow:0 3px 12px rgba(18,76,73,.08)}
.donut strong{font-size:27px;line-height:1;color:var(--ink);letter-spacing:-.6px}
.donut span{margin-top:4px;color:#78948e;font-size:9px;line-height:1}
.category-list{min-width:0}
/* ROI dropdown polish */
select.roi-select{-webkit-appearance:none;appearance:none;width:58px;height:36px;padding:0 22px 0 12px;border:1px solid #d4e8e1;border-radius:9px;background-repeat:no-repeat;background-position:calc(100% - 11px) 47%,calc(100% - 7px) 47%;background-size:4px 4px,4px 4px;box-shadow:0 3px 8px rgba(18,76,73,.05);cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
select.roi-select.roi-A{background-color:#e7f9f2;background-image:linear-gradient(45deg,transparent 50%,#0b956f 50%),linear-gradient(135deg,#0b956f 50%,transparent 50%)}
select.roi-select.roi-B{background-color:#fff2dc;background-image:linear-gradient(45deg,transparent 50%,#b17b2d 50%),linear-gradient(135deg,#b17b2d 50%,transparent 50%)}
select.roi-select.roi-C{background-color:#ffedf0;background-image:linear-gradient(45deg,transparent 50%,#c8667d 50%),linear-gradient(135deg,#c8667d 50%,transparent 50%)}
select.roi-select:hover{border-color:#9edecb;transform:translateY(-1px);box-shadow:0 5px 11px rgba(18,76,73,.1)}
select.roi-select:focus-visible{outline:0;border-color:#12ad84;box-shadow:0 0 0 3px rgba(18,173,132,.14)}
/* Sidebar and topbar polish */
.sidebar{position:relative;flex:0 0 235px;transition:flex-basis .24s ease,width .24s ease,padding .24s ease;z-index:25}
.brand-logo{transition:width .24s ease,height .24s ease,object-position .24s ease}
.settings-link{transition:background .16s ease,color .16s ease}
.settings-link:hover{background:#f2fbf7;color:#087e6b}
.settings-icon{display:inline-grid;place-items:center;width:18px;font-size:13px}
.settings-label{white-space:nowrap}
.nav-item{transition:background .16s ease,color .16s ease,transform .16s ease}
.nav-item:hover{background:#f4fbf8;color:#087e6b;transform:translateX(2px)}
.nav-item.active{box-shadow:0 6px 14px rgba(18,173,132,.1)}
.topbar{position:sticky;top:0;z-index:30;height:72px;padding:0 38px;background:rgba(255,255,255,.94);box-shadow:0 5px 18px rgba(18,76,73,.045);backdrop-filter:blur(12px)}
.topbar-start{display:flex;align-items:center;gap:14px;min-width:0}
.sidebar-toggle{width:34px;height:34px;display:grid;place-items:center;border:1px solid #d9ebe5;border-radius:10px;background:#f5fbf8;color:#087e6b;font-size:22px;line-height:1;cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .16s ease}
.sidebar-toggle:hover{border-color:#9edecb;background:#e3f7ef;transform:translateX(-1px)}
.sidebar-toggle:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(18,173,132,.15)}
.breadcrumbs{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.role-chip{padding:8px 12px;border-color:#cfe9df;border-radius:999px;background:#f0fbf7;color:#087e6b;font-weight:bold;box-shadow:0 3px 8px rgba(18,76,73,.04)}
.icon-button,.help-button{width:32px;height:32px;display:grid;place-items:center;padding:0;border-radius:10px;transition:background .16s ease,border-color .16s ease,color .16s ease}
.icon-button:hover,.help-button:hover{border-color:#9edecb;background:#f0fbf7;color:#087e6b}
.shell.sidebar-collapsed .sidebar{width:78px;flex-basis:78px;padding:24px 10px}
.shell.sidebar-collapsed .brand{align-items:center;padding:0 0 34px}
.shell.sidebar-collapsed .brand-logo{width:42px;height:42px;object-fit:cover;object-position:left center;border-radius:12px}
.shell.sidebar-collapsed .brand-copy,.shell.sidebar-collapsed .workspace-label,.shell.sidebar-collapsed .team-card,.shell.sidebar-collapsed .settings-label,.shell.sidebar-collapsed .profile>div:not(.avatar){display:none}
.shell.sidebar-collapsed .nav-item{justify-content:center;gap:0;padding:12px 8px;font-size:0}
.shell.sidebar-collapsed .nav-item .nav-icon{font-size:18px}
.shell.sidebar-collapsed .nav-item:hover{transform:none}
.shell.sidebar-collapsed .nav-count{display:none}
.shell.sidebar-collapsed .settings-link{justify-content:center;padding:11px 8px;font-size:0}
.shell.sidebar-collapsed .settings-icon{font-size:15px}
.shell.sidebar-collapsed .profile{justify-content:center;padding:15px 0 0}
.shell.sidebar-collapsed .profile .dots{margin:0;font-size:15px}
@media(max-width:850px){.topbar{height:64px;padding:0 18px}.shell.sidebar-collapsed .sidebar{width:0;flex-basis:0;padding:0;border-right:0;overflow:hidden}.shell.sidebar-collapsed .sidebar>*{visibility:hidden;opacity:0}.topbar-start{gap:10px}.top-actions{gap:6px}.role-chip{padding:7px 9px}}
@media(max-width:520px){.breadcrumbs span,.breadcrumbs b{display:none}.topbar{padding:0 13px}.top-actions .icon-button,.top-actions .help-button{display:none}.sidebar-toggle{width:32px;height:32px}}
/* Live workspace card polish */
.team-card{margin:18px 4px;padding:15px;border:1px solid #d9e9ff;border-radius:13px;background:linear-gradient(145deg,#fbfcff 0%,#f7f5ff 100%);box-shadow:0 8px 20px rgba(91,83,180,.07)}
.team-card-top{display:flex;align-items:center;gap:7px;color:#087e6b;font-size:10px;font-weight:bold;letter-spacing:.15px}
.team-card-top i{width:7px;height:7px;border-radius:50%;background:#12ad84;box-shadow:0 0 0 4px rgba(18,173,132,.12)}
.team-card-top b{margin-left:auto;padding:3px 6px;border:1px solid #cdeee1;border-radius:999px;background:#e8f9f2;color:#0b956f;font-size:8px;letter-spacing:.6px}
.team-card p{display:grid;gap:3px;margin:14px 0 13px}
.team-card p strong{color:#285e58;font-size:11px;font-weight:bold}
.team-card p span{color:#78948e;font-size:9px}
.avatar-stack{display:flex;align-items:center;min-height:30px}
.avatar-stack span{width:28px;height:28px;display:grid;place-items:center;margin-left:-6px;border:2px solid #fff;border-radius:50%;background:#12ad84;color:#fff;font-size:9px;font-weight:bold;box-shadow:0 3px 7px rgba(18,76,73,.12)}
.avatar-stack span:first-child{margin-left:0;background:#087e6b}
.avatar-stack span:nth-child(3n){background:#8b7aee}
.avatar-stack span:nth-child(4n){background:#e0a24d}
.avatar-stack .avatar-more{background:#e9f8f3;color:#087e6b;box-shadow:none}
/* Topbar widget polish */
.icon-button,.help-button{overflow:hidden;text-decoration:none}
.icon-button{border-color:#cfe9df;background:#f2fbf7;color:#087e6b}
.help-button{border-color:#eedfca;background:#fffaf3;color:#b77b2e}
.icon-button span,.help-button span{display:grid;place-items:center;font-size:14px;font-weight:bold;line-height:1;transition:transform .16s ease}
.icon-button span{font-size:15px}
.icon-button:hover span,.help-button:hover span{transform:scale(1.12)}
.help-button:hover{border-color:#e3bd7b;background:#fff4df;color:#a86514}
/* Logout control polish */
.profile .logout-link{width:30px;height:30px;display:grid;place-items:center;margin-left:auto;border:1px solid #f0d9dc;border-radius:9px;background:#fff7f8;color:#c45e72;font-size:18px;line-height:1;text-decoration:none;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}
.profile .logout-link span{display:block;transform:translateX(1px)}
.profile .logout-link:hover{border-color:#e8aeb8;background:#ffedf0;color:#b4435d;transform:translateY(-1px)}
.profile .logout-link:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(196,94,114,.16)}
.shell.sidebar-collapsed .profile .logout-link{margin:0}
/* Table action controls */
.action-group{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.action-form{display:inline-flex;margin:0}
.action-link{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:29px;padding:6px 9px;border:1px solid #d7ebe4;border-radius:8px;background:#f6fcf9;color:#087e6b;font:700 10px Arial,sans-serif;text-decoration:none;cursor:pointer;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease}
.action-glyph{font-size:11px;line-height:1}
.action-link:hover{transform:translateY(-1px);box-shadow:0 4px 9px rgba(18,76,73,.09)}
.action-view{border-color:#ccebe0;background:#effbf6;color:#087e6b}
.action-view:hover{border-color:#8bd3bb;background:#e0f7ed;color:#056b5d}
.action-edit{border-color:#d9d0f6;background:#f5f1ff;color:#7062b1}
.action-edit:hover{border-color:#b8a9ed;background:#ede7ff;color:#5d4ba4}
.action-archive{border-color:#f2d2d8;background:#fff5f6;color:#c05e72}
.action-archive:hover{border-color:#e6a8b4;background:#ffebee;color:#a9465c}.action-trash{border-color:#f0cfa9;background:#fff9ee;color:#a46a25}.action-trash:hover{border-color:#e2b776;background:#fff1d9;color:#80501c}
.table-panel td:last-child{white-space:nowrap}

/* Doctor and activity form polish */
.add-card{position:relative;overflow:hidden;align-items:start;margin-top:16px;padding:25px;border-color:#d5ebe4;border-radius:17px;background:linear-gradient(145deg,#ffffff 0%,#f8fcfa 100%);box-shadow:0 12px 28px rgba(18,76,73,.06)}
.add-card:before{content:"";position:absolute;right:-55px;top:-75px;width:190px;height:190px;border:24px solid rgba(18,173,132,.07);border-radius:50%;pointer-events:none}
.add-card>*{position:relative;z-index:1}
.add-card .form-copy{padding:4px 2px}
.add-card .form-copy h2{margin:8px 0 8px;color:var(--ink);font-size:21px;letter-spacing:-.25px}
.add-card .form-copy p:not(.eyebrow){max-width:210px;color:#78948e;font-size:11px;line-height:1.55}
.compact-form{gap:11px;align-items:stretch}
.compact-form input,.compact-form select,.compact-form textarea{min-height:40px;border:1px solid #d8e9e3;border-radius:9px;background:rgba(255,255,255,.9);color:#3f6861;box-shadow:0 3px 9px rgba(18,76,73,.025);transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
.compact-form input,.compact-form select{padding:0 12px}
.compact-form textarea{min-height:78px;padding:11px 12px;resize:vertical;line-height:1.4}
.compact-form input::placeholder,.compact-form textarea::placeholder{color:#8ba39e}
.compact-form input:focus,.compact-form select:focus,.compact-form textarea:focus{outline:0;border-color:#12ad84;background:#fff;box-shadow:0 0 0 3px rgba(18,173,132,.12)}
.compact-form .primary-button{min-height:40px;width:100%;border-radius:9px;box-shadow:0 7px 14px rgba(18,173,132,.16)}
.compact-form .secondary-button{min-height:40px;text-align:center;border-radius:9px}
.add-card .type-form{align-items:center;grid-column:2;padding-top:13px;border-top:1px solid #e1eee9}
.add-card .type-form input{height:40px;border-color:#d8e9e3;border-radius:9px;background:#fff}
.add-card .type-form button{min-height:40px;border-radius:9px}
@media(max-width:850px){.add-card .type-form{grid-column:auto}}
@media(max-width:560px){.action-link{min-height:28px;padding:6px 7px;font-size:9px}.action-glyph{font-size:10px}.add-card{padding:19px;border-radius:14px}.add-card .form-copy p:not(.eyebrow){max-width:none}.add-card .type-form{align-items:stretch;flex-direction:column}.add-card .type-form input,.add-card .type-form button{width:100%}}

/* Classy toast notifications */
.toast-stack{position:fixed;top:88px;right:24px;z-index:120;width:min(390px,calc(100vw - 32px));pointer-events:none}
.toast{display:flex;align-items:center;gap:12px;margin:0;padding:13px 14px 13px 16px;border:1px solid #cdeee1;border-radius:12px;background:rgba(255,255,255,.96);box-shadow:0 14px 34px rgba(18,76,73,.16);color:#087e6b;pointer-events:auto;animation:toast-in .22s ease both}
.toast.notice{margin:0}
.toast.error{border-color:#f1cdd4;background:rgba(255,247,248,.97);color:#bd536a}
.toast>span{flex:1;line-height:1.4}
.toast-close{width:24px;height:24px;display:grid;place-items:center;border:0;border-radius:7px;background:transparent;color:inherit;font-size:17px;line-height:1;cursor:pointer}
.toast-close:hover{background:rgba(18,76,73,.08)}
.toast-hide{animation:toast-out .22s ease both}
@keyframes toast-in{from{opacity:0;transform:translate3d(18px,-8px,0)}to{opacity:1;transform:none}}
@keyframes toast-out{from{opacity:1;transform:none}to{opacity:0;transform:translate3d(18px,-8px,0)}}

/* Consistent select chevrons */
select:not(.roi-select){-webkit-appearance:none;appearance:none;padding-right:40px!important;background-color:#fff;background-image:url(data:image/svg+xml,%3Csvg%20xmlns=%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width=%2216%22%20height=%2216%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%230b8175%22%20stroke-width=%222.4%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Cpath%20d=%22m6%209%206%206%206-6%22%2F%3E%3C%2Fsvg%3E);background-repeat:no-repeat;background-position:right 12px center;background-size:14px 14px;cursor:pointer}
select:not(.roi-select):hover{border-color:#9edecb}
select:not(.roi-select):focus-visible{outline:0;border-color:#12ad84;box-shadow:0 0 0 3px rgba(18,173,132,.13)}
.sort-link{display:inline-flex;align-items:center;gap:4px;color:inherit}
.sort-link:hover{color:#087e6b}
@media(max-width:650px){.toast-stack{top:76px;right:16px;width:calc(100vw - 32px)}}
/* Reliable filter chevrons */
select:not(.roi-select){background-image:linear-gradient(45deg,transparent 50%,#0b8175 50%),linear-gradient(135deg,#0b8175 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat}
/* Visible select wrapper chevrons */
.select-wrap{position:relative;display:block;min-width:0;width:100%}
.select-wrap>select{width:100%!important;background-image:none!important;padding-right:38px!important}
.select-wrap::after{content:"⌄";position:absolute;right:12px;top:50%;z-index:2;transform:translateY(-58%);color:#0b8175;font-size:17px;font-weight:700;line-height:1;pointer-events:none}
.select-wrap:focus-within::after{color:#087e6b}

/* Top-bar logout */
.logout-topbar{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border:1px solid #f0d9dc;border-radius:10px;background:#fff7f8;color:#b4435d;font-size:10px;font-weight:700;text-decoration:none;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}
.logout-topbar>span:first-child{font-size:16px;line-height:1}
.logout-topbar:hover{border-color:#e8aeb8;background:#ffedf0;color:#9e3049;transform:translateY(-1px)}
.logout-topbar:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(196,94,114,.16)}
@media(max-width:520px){.logout-topbar{padding:7px 9px}.logout-topbar>span:last-child{display:none}}
/* Polished select chevrons */
.select-wrap::before,.select-wrap::after{content:"";position:absolute;top:50%;z-index:2;width:7px;height:2px;border-radius:99px;background:#0b8175;pointer-events:none;transition:background .16s ease,transform .16s ease}
.select-wrap::before{right:13px;transform:translateY(-50%) rotate(45deg)}
.select-wrap::after{right:8px;transform:translateY(-50%) rotate(-45deg)}
.select-wrap:focus-within::before{background:#087e6b;transform:translateY(-50%) rotate(38deg)}
.select-wrap:focus-within::after{background:#087e6b;transform:translateY(-50%) rotate(-38deg)}
/* ROI-style select chevrons */
.select-wrap::before{display:none}
.select-wrap::after{content:"";position:absolute;right:4px;top:50%;z-index:2;width:16px;height:16px;transform:translateY(-50%);border:0;border-radius:0;background-color:transparent;background-image:linear-gradient(45deg,transparent 50%,#0b956f 50%),linear-gradient(135deg,#0b956f 50%,transparent 50%);background-position:2px 6px,7px 6px;background-size:4px 4px,4px 4px;background-repeat:no-repeat;pointer-events:none}
.select-wrap:focus-within::after{background-color:transparent;background-image:linear-gradient(45deg,transparent 50%,#087e6b 50%),linear-gradient(135deg,#087e6b 50%,transparent 50%);transform:translateY(-50%)}
/* Custom select controls */
.select-wrap.custom-select{position:relative;display:block;min-width:0;width:100%}
.select-wrap.custom-select::before,.select-wrap.custom-select::after{display:none}
.select-wrap.custom-select>select{position:absolute!important;left:0;top:0;width:1px!important;height:1px!important;opacity:0;pointer-events:none;padding:0!important}
.select-button{position:relative;width:100%;min-height:38px;padding:0 38px 0 10px;border:1px solid #c9e6dc;border-radius:8px;background:#fff;color:#476d68;font:11px Arial,sans-serif;text-align:left;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease}
.select-button::before,.select-button::after{content:"";position:absolute;right:13px;top:50%;width:7px;height:2px;border-radius:99px;background:#0b956f;pointer-events:none}
.select-button::before{transform:translateY(-50%) rotate(45deg)}
.select-button::after{right:8px;transform:translateY(-50%) rotate(-45deg)}
.select-wrap.custom-select.open .select-button,.select-button:focus-visible{outline:0;border-color:#12ad84;box-shadow:0 0 0 3px rgba(18,173,132,.13)}
.select-wrap.custom-select.open .select-button::before{transform:translateY(-50%) rotate(-45deg)}
.select-wrap.custom-select.open .select-button::after{transform:translateY(-50%) rotate(45deg)}
.select-menu{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:150;max-height:230px;overflow:auto;padding:4px;border:1px solid #c9e6dc;border-radius:9px;background:#fff;box-shadow:0 14px 28px rgba(18,76,73,.16)}
.select-menu[hidden]{display:none}
.select-option{display:block;width:100%;padding:8px 9px;border:0;border-radius:6px;background:transparent;color:#476d68;font:11px Arial,sans-serif;text-align:left;cursor:pointer}
.select-option:hover,.select-option.selected{background:#e9f8f3;color:#087e6b;font-weight:700}
/* Hide native select duplicate */
.filter-panel .select-wrap.custom-select>select,.compact-form .select-wrap.custom-select>select,.select-wrap.custom-select>select{display:none!important;visibility:hidden!important}
/* Viewport-anchored select menu */
/* Keep custom menus anchored to their field. */
/* Archived doctor records */
.archive-panel{margin-top:16px;padding:22px 24px;border:1px solid #d5ebe4;border-radius:17px;background:linear-gradient(145deg,#ffffff 0%,#f7fcfa 100%);box-shadow:0 12px 28px rgba(18,76,73,.05)}
.archive-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:16px;border-bottom:1px solid #e4f0ec}.archive-panel-heading h2{margin:7px 0 5px;color:var(--ink);font-size:19px}.archive-panel-heading p:not(.eyebrow){margin:0;color:#78948e;font-size:11px;line-height:1.5}.archive-badge{padding:6px 9px;border-radius:999px;background:#fff4e5;color:#b17b2d;font-size:9px;font-weight:bold;white-space:nowrap}.archive-jump .title-count{margin-left:4px}.archive-list{display:grid;gap:9px;margin-top:15px}.archive-row{display:grid;grid-template-columns:minmax(220px,1fr) minmax(170px,.8fr) auto;align-items:center;gap:14px;padding:12px 13px;border:1px solid #e2eee9;border-radius:11px;background:#fff}.archive-row .doctor-cell{min-width:0}.archive-avatar{background:#fff2dc;color:#b17b2d}.archive-row .doctor-cell strong{color:var(--ink);font-size:11px}.archive-meta{display:grid;gap:4px;color:#4c766f;font-size:10px}.archive-meta small{color:#9aaea9;font-size:9px}.archive-row-action{margin:0}.archive-restore{display:inline-flex;align-items:center;gap:5px;color:#087e6b;border-color:#bfe8d8;background:#effbf6;white-space:nowrap}.archive-restore:hover{border-color:#79cfb1;background:#e3f7ef}.archive-empty{display:flex;align-items:center;gap:12px;margin-top:15px;padding:15px;border:1px dashed #cfe5dd;border-radius:11px;background:#fbfefd;color:#6c8982}.archive-empty-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#e9f8f3;color:#087e6b;font-weight:bold}.archive-empty strong{display:block;color:var(--ink);font-size:11px}.archive-empty p{margin:4px 0 0;font-size:10px}.archive-panel .title-count{margin-left:4px}@media(max-width:700px){.archive-row{grid-template-columns:1fr}.archive-row-action{justify-self:start}.archive-panel-heading{display:block}.archive-badge{display:inline-block;margin-top:12px}}
/* Logged-in user greeting */
.user-greeting{display:inline-flex;align-items:center;gap:4px;color:#7a918c;font-size:10px;white-space:nowrap}.user-greeting strong{color:var(--ink);font-size:11px}.user-greeting:before{content:"";width:6px;height:6px;border-radius:50%;background:#12ad84;box-shadow:0 0 0 3px #e3f7ef}@media(max-width:850px){.user-greeting{display:none}}
/* Header greeting and doctor action alignment */
.user-greeting{gap:8px;padding-left:3px}.page-title-row .hero-actions .archive-jump,.page-title-row .hero-actions .primary-button{height:38px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}.page-title-row .hero-actions .archive-jump .title-count{height:18px;min-width:22px}
/* Permanent deletion is available only inside the archived area */
.archive-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.archive-row-actions .archive-row-action{margin:0}.archive-purge{border-color:#f0cfd6;background:#fff6f7;color:#b4435d;white-space:nowrap}.archive-purge:hover{border-color:#e3a9b5;background:#ffedf0;color:#9e3049}@media(max-width:700px){.archive-row-actions{justify-content:flex-start}}
/* Reports selector readability */
.report-selector{padding:25px 22px;border-color:#cfe8df;background:linear-gradient(145deg,#ffffff 0%,#fbfefd 100%);box-shadow:0 10px 24px rgba(18,76,73,.055)}.report-selector .section-heading{margin-bottom:17px;padding:0 2px}.report-selector .section-heading .eyebrow{font-size:10px;letter-spacing:1.35px;color:#6d9690}.report-selector .section-heading h2{margin:7px 0 0;color:#064f50;font-size:25px;line-height:1.15;font-weight:800;letter-spacing:-.35px}.report-selector .section-heading .table-muted{color:#6d8984;font-size:10px}.report-tabs{gap:10px}.report-tab{min-height:86px;padding:15px 14px;display:flex;flex-direction:column;justify-content:center;border-color:#d5e8e2;border-radius:10px;background:#fbfefd;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease}.report-tab:hover{border-color:#9edecb;background:#f1fbf7;box-shadow:0 6px 14px rgba(18,173,132,.1);transform:translateY(-2px)}.report-tab strong{color:#164f4d;font-size:11px;line-height:1.3}.report-tab span{margin-top:7px;color:#718b87;font-size:10px;line-height:1.5}.report-tab.active{border-color:#75d1b3;background:#e8f8f2;box-shadow:0 6px 14px rgba(18,173,132,.08)}.report-tab.active strong{color:#067561;font-size:11px}@media(max-width:700px){.report-selector{padding:21px 17px}.report-selector .section-heading h2{font-size:22px}.report-selector .section-heading .table-muted{line-height:1.45}.report-tabs{grid-template-columns:1fr 1fr}}@media(max-width:480px){.report-tabs{grid-template-columns:1fr}.report-tab{min-height:74px}}
/* Admin user management */
.user-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:15px}.user-summary-card{display:flex;align-items:center;gap:12px;padding:16px 18px;border:1px solid #d5ebe4;border-radius:13px;background:#fff;box-shadow:0 8px 20px rgba(18,76,73,.04)}.user-summary-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:#eeeaff;color:#7062b1;font-size:16px}.user-summary-icon-green{background:#e3f7ef;color:#087e6b}.user-summary-card small,.user-summary-card strong,.user-summary-card div>span{display:block}.user-summary-card small{color:#78948e;font-size:10px}.user-summary-card strong{margin:3px 0;font-size:20px;color:var(--ink)}.user-summary-card div>span{color:#9aaba7;font-size:9px}.user-management-grid{display:grid;grid-template-columns:minmax(360px,.8fr) minmax(0,1.2fr);gap:15px;align-items:start}.user-form-card{display:block;margin-top:0}.user-form-card .form-copy p:not(.eyebrow){max-width:260px}.user-form{grid-template-columns:1fr}.user-form .primary-button{width:100%}.account-directory{padding:22px 20px}.account-directory .section-heading{margin-bottom:15px}.account-directory .section-heading h2{font-size:19px}.account-list{display:grid;gap:9px}.account-row{display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:12px;padding:13px;border:1px solid #dfeee9;border-radius:11px;background:#fff}.account-row.account-inactive{background:#fbfbfb;opacity:.82}.account-identity{display:flex;align-items:center;gap:9px;min-width:0}.account-avatar{flex:0 0 34px;background:#eeeaff;color:#7062b1}.account-identity strong,.account-identity span,.account-identity small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-identity strong{color:var(--ink);font-size:11px}.account-identity span{margin-top:3px;color:#66827d;font-size:10px}.account-identity small{margin-top:4px;color:#9aaba7;font-size:9px}.account-status{align-self:start;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:bold;white-space:nowrap}.status-active{background:#e7f9f2;color:#087e6b}.status-inactive{background:#fff0f2;color:#b4435d}.account-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:7px;padding-top:10px;border-top:1px solid #edf4f1}.account-action-form,.account-reset-form{display:flex;align-items:center;gap:6px;margin:0}.account-reset-form input{width:135px;height:31px;padding:0 9px;border:1px solid #d8e9e3;border-radius:8px;color:#476d68;font-size:10px}.account-reset-form input:focus{outline:0;border-color:#12ad84;box-shadow:0 0 0 3px rgba(18,173,132,.1)}.account-action{min-height:31px;padding:7px 9px;border:1px solid #d8e9e3;border-radius:8px;background:#fff;color:#087e6b;font:700 10px Arial,sans-serif;cursor:pointer}.account-disable{border-color:#f0d2d8;background:#fff7f8;color:#b4435d}.account-enable{border-color:#bfe8d8;background:#effbf6;color:#087e6b}.account-reset{border-color:#d9d0f6;background:#f5f1ff;color:#7062b1}.account-action:hover{transform:translateY(-1px);box-shadow:0 4px 9px rgba(18,76,73,.08)}@media(max-width:900px){.user-management-grid{grid-template-columns:1fr}}@media(max-width:600px){.user-summary-grid{grid-template-columns:1fr}.account-row{grid-template-columns:1fr}.account-status{justify-self:start}.account-actions{justify-content:flex-start;flex-wrap:wrap}.account-reset-form input{width:125px}}
/* Automatic doctor engagement statuses */
.engagement-badge{display:inline-flex;align-items:center;max-width:170px;padding:6px 8px;border-radius:7px;font-size:9px;font-weight:700;line-height:1.25;white-space:normal}.engagement-meta{display:block;margin-top:4px;color:#9aaea9;font-size:9px}.engagement-high{color:#087e6b}.engagement-badge.engagement-high,.engagement-summary-card.engagement-high{background:#e7f9f2;border-color:#bfe8d8}.engagement-attention{color:#b17b2d}.engagement-badge.engagement-attention,.engagement-summary-card.engagement-attention{background:#fff4e2;border-color:#f0ddb4}.engagement-none{color:#b4435d}.engagement-badge.engagement-none,.engagement-summary-card.engagement-none{background:#fff0f2;border-color:#f0cfd6}.engagement-overview{margin:0 0 30px;padding:20px 22px;border-color:#d5ebe4;background:linear-gradient(145deg,#ffffff 0%,#f7fcfa 100%)}.engagement-overview .panel-heading{margin-bottom:15px}.engagement-overview .panel-heading h3{margin:5px 0 4px;color:var(--ink);font-size:17px}.engagement-overview .panel-heading p:not(.eyebrow){margin:0;color:#78948e;font-size:10px}.engagement-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.engagement-summary-card{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px;border:1px solid;border-radius:10px}.engagement-summary-card strong{font-size:20px}.engagement-summary-card span{font-size:10px;font-weight:700;text-align:right}.profile-card .drawer-stats .engagement-high,.profile-card .drawer-stats .engagement-attention,.profile-card .drawer-stats .engagement-none{background:transparent;border:0;padding:0}.profile-card .drawer-stats strong.engagement-high{color:#087e6b}.profile-card .drawer-stats strong.engagement-attention{color:#b17b2d}.profile-card .drawer-stats strong.engagement-none{color:#b4435d}@media(max-width:700px){.engagement-summary{grid-template-columns:1fr}.engagement-summary-card{justify-content:flex-start}.engagement-summary-card span{text-align:left}}@media(min-width:521px){.doctor-drawer .drawer-stats{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* Clear affordance for interactive controls */
a,button,select,[role="button"],summary,input[type="submit"],input[type="button"],input[type="date"]{cursor:pointer}
/* Clear date-range labels in live filter panels */
.filter-panel .filter-grid .date-filter{display:flex;align-items:center;gap:7px;width:100%;min-width:0;height:38px;padding:0 10px;border:1px solid #c9e6dc;border-radius:8px;background:#fff;color:#476d68;box-sizing:border-box}.filter-panel .filter-grid .date-filter:focus-within{border-color:#12ad84;box-shadow:0 0 0 3px rgba(18,173,132,.13)}.filter-panel .filter-grid .date-filter>span{color:#78948e;font-size:9px;font-weight:700;white-space:nowrap}.filter-panel .filter-grid .date-filter input{flex:1;width:auto;min-width:0;height:34px;padding:0;border:0;background:transparent;box-shadow:none;color:#476d68}.filter-panel .filter-grid .date-filter input:focus{outline:0;border:0;box-shadow:none}.filter-panel .filter-grid .date-filter input::-webkit-calendar-picker-indicator{opacity:.65;cursor:pointer}@media(max-width:650px){.filter-panel .filter-grid .date-filter{width:100%}}
/* Compact date-range picker used by the portfolio and activity filters */
.filter-panel .filter-grid .date-range-picker{position:relative;width:100%;min-width:0}
.filter-panel .filter-grid .date-range-trigger{display:flex;align-items:center;gap:9px;width:100%;height:38px;padding:0 11px;border:1px solid #c9e6dc;border-radius:8px;background:#fff;color:#476d68;font:11px Arial,sans-serif;text-align:left;cursor:pointer;box-sizing:border-box}
.filter-panel .filter-grid .date-range-trigger:hover,.filter-panel .filter-grid .date-range-trigger:focus{outline:0;border-color:#12ad84;box-shadow:0 0 0 3px rgba(18,173,132,.13)}
.date-range-icon{color:#087e6b;font-size:13px;line-height:1}
.date-range-value{flex:1;min-width:0;overflow:hidden;color:#476d68;white-space:nowrap;text-overflow:ellipsis}
.date-range-chevron{position:relative;width:22px;height:18px;flex:0 0 22px}.date-range-chevron::before,.date-range-chevron::after{content:"";position:absolute;right:8px;top:50%;width:7px;height:2px;border-radius:99px;background:#0b956f;pointer-events:none}.date-range-chevron::before{transform:translateY(-50%) rotate(45deg)}.date-range-chevron::after{right:3px;transform:translateY(-50%) rotate(-45deg)}.date-range-trigger[aria-expanded="true"] .date-range-chevron::before{transform:translateY(-50%) rotate(-45deg)}.date-range-trigger[aria-expanded="true"] .date-range-chevron::after{transform:translateY(-50%) rotate(45deg)}
.date-range-menu[hidden]{display:none}
.date-range-menu{position:absolute;top:calc(100% + 8px);left:0;z-index:60;width:min(360px,calc(100vw - 32px));padding:14px;background:#fff;border:1px solid #c9e6dc;border-radius:12px;box-shadow:0 18px 38px rgba(18,76,73,.16);box-sizing:border-box}
.date-range-menu-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px;color:var(--ink);font-size:11px}
.date-range-clear{padding:3px 5px;border:0;background:transparent;color:#087e6b;font:700 10px Arial,sans-serif;cursor:pointer}
.date-range-clear[hidden]{display:none}
.date-range-inputs{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.date-range-inputs label{display:grid;gap:5px;color:#78948e;font-size:9px;font-weight:700}
.filter-panel .filter-grid .date-range-picker .date-range-inputs input[type="date"]{width:100%;height:36px;padding:0 8px;border:1px solid #c9e6dc;border-radius:7px;background:#f9fcfb;color:#476d68;color-scheme:light;box-sizing:border-box}
.filter-panel .filter-grid .date-range-picker .date-range-inputs input[type="date"]:focus{outline:0;border-color:#12ad84;box-shadow:0 0 0 3px rgba(18,173,132,.12)}
.date-range-menu-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:13px;padding-top:11px;border-top:1px solid #edf4f1}
.date-range-menu-actions button{min-height:32px;padding:0 11px;font-size:10px}
@media(max-width:650px){.date-range-menu{position:fixed;top:auto;right:16px;bottom:16px;left:16px;width:auto}.date-range-inputs{grid-template-columns:1fr 1fr}}
/* Activity-form dropdown sizing */
.add-card .select-menu{max-height:170px}
.add-card .compact-form{position:relative;z-index:2}
.add-card .type-form{position:relative;z-index:1}

/* Searchable activity-entry selects */
.activity-entry-form .select-menu{padding:7px;max-height:210px}
.activity-entry-form .select-search,.doctor-pdf-export .select-search{display:block;width:100%;height:auto;margin:0 0 8px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}.activity-entry-form .select-search input,.doctor-pdf-export .select-search input{display:block;width:100%;height:36px;margin:0;padding:0 34px 0 12px;border:1px solid #c7e7dd;border-radius:9px;background:#f8fcfb;color:#174f4b;font:12px Arial,sans-serif;outline:0;box-sizing:border-box;box-shadow:inset 0 1px 2px rgba(18,76,73,.04)}.activity-entry-form .select-search input:focus,.doctor-pdf-export .select-search input:focus{border-color:#12ad84;box-shadow:0 0 0 3px rgba(18,173,132,.12),inset 0 1px 2px rgba(18,76,73,.04)}.doctor-pdf-export .select-search input::placeholder{color:#78948e}.doctor-pdf-export .select-search input::-webkit-search-cancel-button{width:14px;height:14px;cursor:pointer}
.activity-entry-form .select-search:focus{border-color:#12ad84;box-shadow:0 0 0 3px rgba(18,173,132,.12)}
.activity-entry-form .select-option[hidden],.doctor-pdf-export .select-option[hidden]{display:none}
/* Doctor PDF export panel */
.doctor-pdf-export{margin-top:13px;padding:18px 20px;background:linear-gradient(135deg,#ffffff 0%,#f1fbf7 100%);border:1px solid #cfe9df;border-radius:13px;box-shadow:0 8px 20px rgba(18,76,73,.04)}
.doctor-pdf-export .section-heading{align-items:flex-start;margin-bottom:14px}.doctor-pdf-export h2{margin:5px 0;font-size:16px;color:var(--ink)}.doctor-pdf-export .table-muted{display:block;max-width:540px;margin-top:5px;line-height:1.5}.admin-only-badge{padding:6px 9px;border-radius:999px;background:#fff3df;color:#a87325;font-size:9px;font-weight:700;white-space:nowrap}.doctor-pdf-form{display:flex;align-items:flex-end;gap:10px}.doctor-pdf-form label{display:grid;gap:6px;flex:1;color:#78948e;font-size:9px;font-weight:700}.doctor-pdf-form select{width:100%;height:40px;padding:0 38px 0 11px;border:1px solid #c9e6dc;border-radius:8px;background:#fff;color:#476d68;font:11px Arial,sans-serif}.doctor-pdf-form .primary-button{height:40px;white-space:nowrap}@media(max-width:650px){.doctor-pdf-form{display:grid;grid-template-columns:1fr}.doctor-pdf-form .primary-button{width:100%}}

/* Searchable dropdown feedback */
.select-menu .select-no-results{padding:10px 9px;color:#8aa09b;font:11px Arial,sans-serif;text-align:center}.select-menu .select-search{position:sticky;top:0;z-index:1;background:#f8fcfb}

/* Viewport-pinned sidebar */
.sidebar{position:sticky;top:0;align-self:flex-start;height:100vh;min-height:100vh;max-height:100vh;overflow-y:auto;overflow-x:hidden;flex:0 0 235px}
@media(max-width:850px){.sidebar{flex-basis:65px}}

/* Financial year spend dashboard section */
.financial-year-overview{margin:16px 0 30px;padding:20px 22px;border-color:#d5ebe4;background:linear-gradient(145deg,#ffffff 0%,#f7fcfa 100%);box-shadow:0 12px 28px rgba(18,76,73,.05)}.financial-year-overview .panel-heading{align-items:flex-start;margin-bottom:14px}.financial-year-overview .panel-heading h3{margin:5px 0 4px;color:var(--ink);font-size:17px}.financial-year-overview .panel-heading p:not(.eyebrow){margin:0;color:#78948e;font-size:10px}.financial-year-total{min-width:150px;padding:11px 13px;border:1px solid #bfe8d8;border-radius:11px;background:#e9f8f3;text-align:right}.financial-year-total span,.financial-year-total strong,.financial-year-total small{display:block}.financial-year-total span{color:#6d9690;font-size:9px;text-transform:uppercase;letter-spacing:.6px}.financial-year-total strong{margin:4px 0;color:#087e6b;font-size:22px}.financial-year-total small{color:#5f8881;font-size:9px}.financial-year-meta{display:flex;justify-content:space-between;gap:12px;padding:9px 0 4px;color:#78948e;font-size:9px}.financial-year-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:30px;row-gap:0}.financial-month{padding:10px 0;border-bottom:1px solid #edf4f1}.financial-month-head{display:flex;justify-content:space-between;gap:10px;color:#476d68;font-size:10px}.financial-month-head b{color:var(--ink)}.financial-month .progress-track{height:6px;margin-top:7px;background:#eaf3ef}.financial-month .progress-track div{background:linear-gradient(90deg,#12ad84,#5d8fe7)}@media(max-width:700px){.financial-year-overview .panel-heading{display:block}.financial-year-total{margin-top:14px;text-align:left}.financial-year-meta{display:block;line-height:1.6}.financial-year-meta span{display:block}.financial-year-grid{grid-template-columns:1fr}}

/* Financial year report actions */
.financial-year-report-actions{display:flex;align-items:center;gap:8px;margin:-2px 0 9px}.financial-year-report-actions .primary-button,.financial-year-report-actions .secondary-button{min-height:34px;padding:9px 12px}@media(max-width:700px){.financial-year-report-actions{flex-wrap:wrap}.financial-year-report-actions a{flex:1 1 180px;text-align:center}}

/* Financial year row spacing */
.financial-year-grid{row-gap:12px}.financial-month{padding:10px 11px;border:1px solid #edf4f1;border-radius:8px;background:rgba(255,255,255,.72)}
/* Custom filtered exports */
.custom-report-export{margin-top:13px;padding:22px 20px;border-color:#cfe8df;background:linear-gradient(145deg,#ffffff 0%,#f4fbf8 100%);box-shadow:0 9px 22px rgba(18,76,73,.045)}.custom-report-export .section-heading{align-items:flex-start;margin-bottom:17px}.custom-report-export .section-heading h2{margin:5px 0 4px;color:var(--ink);font-size:18px}.custom-report-export .section-heading .table-muted{max-width:620px;line-height:1.5}.custom-export-badge{padding:6px 9px;border-radius:999px;background:#e9f8f3;color:#087e6b;font-size:9px;font-weight:bold;white-space:nowrap}.custom-export-form{display:flex;align-items:flex-end;gap:10px}.custom-export-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;flex:1}.custom-export-field{display:grid;gap:6px;color:#6d9690;font-size:9px;font-weight:bold}.custom-export-field select{width:100%;height:40px;padding:0 36px 0 11px;border:1px solid #c9e6dc;border-radius:8px;background:#fff;color:#476d68;font:11px Arial,sans-serif;cursor:pointer}.custom-export-field select:focus{outline:0;border-color:#12ad84;box-shadow:0 0 0 3px rgba(18,173,132,.12)}.custom-export-actions{display:flex;gap:8px;flex:0 0 auto}.custom-export-actions .primary-button,.custom-export-actions .secondary-button{height:40px;padding:0 12px;white-space:nowrap}.custom-export-actions .secondary-button{border-color:#d8d0e8;background:#fff;color:#66569b}@media(max-width:850px){.custom-export-form{display:grid;grid-template-columns:1fr}.custom-export-actions{justify-content:flex-start}.custom-export-actions button{flex:1}}@media(max-width:600px){.custom-report-export{padding:19px 16px}.custom-report-export .section-heading{display:block}.custom-export-badge{display:inline-block;margin-top:10px}.custom-export-fields{grid-template-columns:1fr}.custom-export-actions{display:grid;grid-template-columns:1fr}.custom-export-actions button{width:100%}}/* Reports header summary layout */
.reports-intro{display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:26px;align-items:stretch}.reports-intro-copy{display:flex;flex-direction:column;justify-content:center}.reports-intro .report-grid{display:grid;grid-template-columns:1fr;gap:9px;margin:0}.reports-intro .report-card{min-height:76px;padding:14px 15px;align-items:center;border:1px solid rgba(255,255,255,.2);border-radius:10px;background:rgba(255,255,255,.08)}.reports-intro .report-card h3{margin:0 0 6px;color:#fff;font-size:11px}.reports-intro .report-card strong{color:#fff;font-size:19px}.reports-intro .report-card p{margin:4px 0 0;color:#b5d8d1;font-size:9px}.reports-intro .report-icon{flex:0 0 35px;background:#e3f7ef;color:#087e6b}@media(max-width:850px){.reports-intro{grid-template-columns:1fr;gap:18px}.reports-intro .report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.reports-intro .report-grid{grid-template-columns:1fr}}
/* Custom export ROI-style dropdown arrows */
.custom-export-field select{-webkit-appearance:none;appearance:none;background-color:#fff;background-image:linear-gradient(45deg,transparent 50%,#0b956f 50%),linear-gradient(135deg,#0b956f 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat}
.custom-export-field select:focus{background-image:linear-gradient(45deg,transparent 50%,#087e6b 50%),linear-gradient(135deg,#087e6b 50%,transparent 50%)}
/* Security & Audit Log page */
.audit-page-title{align-items:flex-start;margin-bottom:20px}
.audit-page-title h1{margin:7px 0 8px;color:var(--ink);font-size:28px;line-height:1.15;letter-spacing:-.45px}
.audit-page-title .hero-copy{max-width:690px;line-height:1.5}
.audit-page-title .admin-only-badge{margin-top:10px}
.audit-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}
.audit-summary-card{display:flex;align-items:center;gap:13px;min-height:96px;padding:16px 18px;border:1px solid #d5ebe4;border-radius:14px;background:linear-gradient(145deg,#ffffff 0%,#f8fcfa 100%);box-shadow:0 8px 20px rgba(18,76,73,.045)}
.audit-summary-icon{display:grid;place-items:center;flex:0 0 39px;width:39px;height:39px;border-radius:12px;background:#eeeaff;color:#7062b1;font-size:17px;font-weight:700}
.audit-summary-icon-green{background:#e3f7ef;color:#087e6b}
.audit-summary-icon-gold{background:#fff2dc;color:#b17b2d}
.audit-summary-card small,.audit-summary-card strong,.audit-summary-card div>span{display:block}
.audit-summary-card small{color:#78948e;font-size:10px}
.audit-summary-card strong{margin:4px 0 3px;color:var(--ink);font-size:21px;line-height:1.1}
.audit-summary-card div>span{color:#9aaba7;font-size:9px;line-height:1.35}
.audit-filter-panel{margin-top:0;padding:22px 20px;border-color:#d5ebe4;border-radius:16px;background:linear-gradient(145deg,#ffffff 0%,#fbfefd 100%);box-shadow:0 10px 24px rgba(18,76,73,.05)}
.audit-filter-panel .section-heading{align-items:flex-start;margin-bottom:17px;padding:0 1px}
.audit-filter-panel .section-heading h2{margin:6px 0 5px;color:var(--ink);font-size:20px;letter-spacing:-.2px}
.audit-filter-panel .section-heading .table-muted{line-height:1.45}
.audit-retention-note{padding:7px 10px;border:1px solid #cfe9df;border-radius:999px;background:#f0fbf7;color:#087e6b;font-size:9px;font-weight:700;white-space:nowrap}
.audit-filter-form{display:grid;grid-template-columns:1.35fr repeat(2,minmax(0,1fr));gap:11px 10px;align-items:end}
.audit-filter-form label{display:grid;gap:6px;min-width:0}
.audit-filter-form label>span{color:#6d9690;font-size:9px;font-weight:700;letter-spacing:.15px}
.audit-filter-form input[type=search],.audit-filter-form input[type=date],.audit-filter-form select{width:100%;height:40px;min-width:0;padding:0 11px;border:1px solid #c9e6dc;border-radius:9px;background:#fff;color:#476d68;font:11px Arial,sans-serif;box-sizing:border-box}
.audit-filter-form input[type=search]::placeholder{color:#8ba39e}
.audit-filter-form input:focus,.audit-filter-form select:focus{outline:0;border-color:#12ad84;box-shadow:0 0 0 3px rgba(18,173,132,.12)}
.audit-filter-form .select-wrap.custom-select{min-height:40px}
.audit-filter-form .select-wrap.custom-select .select-button{min-height:40px;border-radius:9px}
.audit-filter-form .audit-search-field input{padding-left:13px}
.audit-filter-actions{display:flex;align-items:center;gap:8px;grid-column:1/-1;padding-top:2px}
.audit-filter-actions .primary-button,.audit-filter-actions .secondary-button{min-height:38px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center}
.audit-export-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:16px;padding:21px 20px;border-color:#d5ebe4;border-radius:16px;background:linear-gradient(145deg,#ffffff 0%,#f5fbf8 100%);box-shadow:0 10px 24px rgba(18,76,73,.045)}
.audit-export-panel h2{margin:6px 0 5px;color:var(--ink);font-size:20px;letter-spacing:-.2px}
.audit-export-panel .table-muted{line-height:1.45}
.audit-export-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.audit-export-actions .primary-button,.audit-export-actions .secondary-button{min-height:38px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.audit-table-panel{margin-top:16px;overflow:hidden;border-color:#d5ebe4;border-radius:16px;box-shadow:0 10px 24px rgba(18,76,73,.045)}
.audit-table-panel .table-toolbar{min-height:50px;padding:0 18px;border-bottom:1px solid #e3efeb;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#8a9f9a;font-size:10px}
.audit-table-panel .table-toolbar b{color:#476d68;font-weight:700}
.audit-table-panel table{width:100%;border-collapse:collapse;table-layout:fixed}
.audit-table-panel th{padding:12px 13px;border-bottom:1px solid #e4f0ec;background:#fbfefd;color:#78948e;font-size:9px;font-weight:700;letter-spacing:.55px;text-align:left;text-transform:uppercase}
.audit-table-panel td{padding:13px;border-bottom:1px solid #edf4f1;color:#476d68;font-size:10px;line-height:1.4;vertical-align:top}
.audit-table-panel tbody tr:hover{background:#fbfefd}
.audit-table-panel tbody tr:last-child td{border-bottom:0}
.audit-table-panel th:nth-child(1),.audit-table-panel td:nth-child(1){width:15%}
.audit-table-panel th:nth-child(2),.audit-table-panel td:nth-child(2){width:13%}
.audit-table-panel th:nth-child(3),.audit-table-panel td:nth-child(3){width:18%}
.audit-table-panel th:nth-child(4),.audit-table-panel td:nth-child(4){width:13%}
.audit-table-panel th:nth-child(5),.audit-table-panel td:nth-child(5){width:12%}
.audit-table-panel th:nth-child(6),.audit-table-panel td:nth-child(6){width:8%}
.audit-table-panel th:nth-child(7),.audit-table-panel td:nth-child(7){width:21%}
.audit-table-panel td:first-child strong{color:var(--ink);font-weight:700}
.audit-role-badge,.audit-event-badge{display:inline-flex;align-items:center;min-height:24px;padding:4px 8px;border:1px solid #d8e9e3;border-radius:7px;background:#f7fcfa;color:#5d8079;font-size:9px;font-weight:700;line-height:1.2}
.audit-role-badge{border-color:#d9d0f6;background:#f5f1ff;color:#7062b1}
.audit-event-badge{border-color:#bfe8d8;background:#effbf6;color:#087e6b}.audit-role-badge{max-width:100%;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere}.audit-event-badge{white-space:nowrap}
.audit-table-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 18px;border-top:1px solid #e3efeb;color:#8a9f9a;font-size:9px;line-height:1.4}
.audit-table-footer .pagination{margin-left:auto}
.audit-empty{padding:32px 16px}
@media(max-width:900px){.audit-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}.audit-filter-form .audit-search-field{grid-column:1/-1}.audit-export-panel{align-items:flex-start;flex-direction:column}.audit-export-actions{justify-content:flex-start}}
@media(max-width:650px){.audit-page-title{display:block}.audit-page-title .admin-only-badge{display:inline-block;margin-top:12px}.audit-summary-grid{grid-template-columns:1fr}.audit-filter-panel{padding:19px 16px}.audit-filter-form{grid-template-columns:1fr}.audit-filter-form .audit-search-field{grid-column:auto}.audit-filter-actions{grid-column:auto;flex-wrap:wrap}.audit-filter-actions a,.audit-filter-actions button{flex:1}.audit-export-panel{padding:19px 16px}.audit-export-actions{display:grid;grid-template-columns:1fr;width:100%}.audit-export-actions a{width:100%}.audit-table-panel .table-toolbar{padding:12px 14px;align-items:flex-start;flex-direction:column}.audit-table-footer{align-items:flex-start;flex-direction:column;padding:12px 14px}.audit-table-footer .pagination{margin-left:0}.audit-table-panel .table-scroll{overflow-x:auto}.audit-table-panel table{min-width:760px}}
/* Dashboard spend-by-zone division filter */
.dashboard-category-filter{display:flex;align-items:flex-end;margin:0}.dashboard-category-filter label{display:grid;gap:5px;min-width:142px;color:#78948e;font-size:9px;font-weight:700}.dashboard-category-filter select{min-width:142px}.dashboard-bottom-grid-single{grid-template-columns:1fr}.dashboard-zone-heading{align-items:flex-start}
.dashboard-zone-filter{display:flex;align-items:flex-end;margin:0}
.dashboard-zone-filter label{display:grid;gap:5px;min-width:142px;color:#78948e;font-size:9px;font-weight:700}
.dashboard-zone-filter select{width:100%;height:32px;padding:0 30px 0 10px;border:1px solid #c9e6dc;border-radius:8px;background:#f8fcfa;color:#476d68;font:10px Arial,sans-serif}
.dashboard-zone-filter select:hover{border-color:#9edecb}
.dashboard-zone-filter select:focus{outline:0;border-color:#12ad84;box-shadow:0 0 0 3px rgba(18,173,132,.12)}
.dashboard-zone-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:115px;padding:18px;text-align:center}
.dashboard-zone-empty strong{color:var(--ink);font-size:11px}
.dashboard-zone-empty span{margin-top:5px;color:#8a9f9a;font-size:10px}
@media(max-width:560px){.dashboard-zone-heading{display:block}.dashboard-zone-filter{margin-top:12px}.dashboard-zone-filter label{min-width:160px}}
/* Dashboard spend-by-zone custom dropdown and in-place update */
.dashboard-zone-filter .select-wrap.custom-select{min-width:142px}
.dashboard-zone-filter .select-button{min-height:32px;padding-right:34px;background:#f8fcfa;font-size:10px}
.dashboard-zone-filter .select-menu{min-width:142px}
.dashboard-zone-panel{transition:opacity .18s ease}
.dashboard-zone-panel.is-loading{opacity:.62}
.dashboard-zone-panel[aria-busy=true] .dashboard-zone-filter .select-button{cursor:wait}
/* Financial year trend graph */
.financial-year-chart{margin-top:4px;padding:15px 14px 13px;border:1px solid #e0eee9;border-radius:12px;background:#fbfefd}
.financial-chart-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 2px 3px;color:#78948e;font-size:9px}
.financial-chart-topline span{display:inline-flex;align-items:center;gap:6px;font-weight:700;letter-spacing:.15px}
.financial-chart-topline b{color:#087e6b;font-size:9px}
.financial-chart-live-dot{width:6px;height:6px;border-radius:50%;background:#12ad84;box-shadow:0 0 0 3px #e3f7ef}
.financial-chart-plot{height:220px;width:100%}
.financial-chart-plot svg{display:block;width:100%;height:100%;overflow:visible}
.financial-chart-grid line{stroke:#e4f0ec;stroke-width:1;stroke-dasharray:3 5}
.financial-chart-grid .financial-chart-baseline{stroke:#cfe4dc;stroke-dasharray:none}
.financial-chart-grid text{fill:#9aaba7;font:9px Arial,sans-serif}
.financial-chart-area{stroke:none}
.financial-chart-line{fill:none;stroke:#0caa81;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 3px 3px rgba(18,173,132,.14))}
.financial-chart-point circle{fill:#fff;stroke:#0caa81;stroke-width:3;transition:r .15s ease}
.financial-chart-point .financial-chart-point-core{fill:#0caa81;stroke:none}
.financial-chart-point.peak circle:first-child{fill:#fff2dc;stroke:#e3a647}
.financial-chart-point.peak .financial-chart-point-core{fill:#e3a647}
.financial-chart-point text{fill:#5f8881;font:700 9px Arial,sans-serif}
.financial-chart-key{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin-top:7px}
.financial-chart-key-item{display:flex;align-items:center;gap:7px;min-width:0;padding:7px 8px;border:1px solid #e7f1ed;border-radius:8px;background:#fff}
.financial-chart-key-item>i{flex:0 0 7px;width:7px;height:7px;border:2px solid #0caa81;border-radius:50%;background:#fff}
.financial-chart-key-item>div{display:flex;justify-content:space-between;align-items:center;gap:5px;min-width:0;width:100%}
.financial-chart-key-item small{overflow:hidden;color:#78948e;font-size:9px;white-space:nowrap;text-overflow:ellipsis}
.financial-chart-key-item strong{color:var(--ink);font-size:9px;white-space:nowrap}
.financial-chart-key-item.peak{border-color:#f0d9ac;background:#fffaf0}
.financial-chart-key-item.peak>i{border-color:#e3a647;background:#fff2dc}
@media(max-width:850px){.financial-chart-key{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.financial-chart-topline{display:block;line-height:1.7}.financial-chart-topline b{display:block}.financial-chart-plot{height:190px}.financial-chart-key{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Dashboard post-cleanup layout */
.dashboard-recent-grid{margin-top:16px}
.dashboard-recent-grid + .dashboard-bottom-grid{margin-top:16px}
.dashboard-bottom-grid>.panel{min-height:100%}
@media(max-width:850px){.dashboard-recent-grid + .dashboard-bottom-grid{margin-top:13px}}
/* Sales User division identity */
.division-workspace-banner{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:-8px 0 24px;padding:18px 22px;border:1px solid #d5ebe4;border-radius:18px;background:linear-gradient(135deg,#effaf6 0%,#ffffff 62%,#f6fbff 100%);box-shadow:0 10px 24px rgba(18,76,73,.05)}
.division-workspace-copy{min-width:0}.division-workspace-copy h2{margin:6px 0 5px;color:var(--ink);font-size:21px;letter-spacing:-.3px}.division-workspace-copy p:not(.eyebrow){margin:0;color:#6e8984;font-size:11px}.division-workspace-copy span{display:inline-flex;margin-top:10px;padding:5px 9px;border:1px solid #cfe9df;border-radius:999px;background:#f8fffc;color:#087e6b;font-size:9px;font-weight:700}.division-logo-frame{display:flex;align-items:center;justify-content:center;flex:0 0 255px;height:94px;padding:9px 15px;border:1px solid #e1ece8;border-radius:13px;background:#fff;box-shadow:0 5px 14px rgba(18,76,73,.06)}.division-logo-frame img{display:block;width:100%;height:76px;object-fit:contain;object-position:center}
@media(max-width:600px){.division-workspace-banner{align-items:flex-start;flex-direction:column;margin-top:-4px;padding:17px}.division-logo-frame{width:100%;flex-basis:auto;height:82px}.division-logo-frame img{height:64px}}
/* Sales User dashboard keeps only division-scoped views */
.sales-user-category-grid,.sales-user-bottom-grid{grid-template-columns:1fr}


/* Admin-controlled maintenance mode */
.maintenance-control-panel{margin:0 0 15px;padding:20px 22px;border-color:#cfe8df;background:linear-gradient(145deg,#ffffff 0%,#f2fbf7 100%);box-shadow:0 10px 24px rgba(18,76,73,.05)}
.maintenance-control-panel .section-heading{align-items:flex-start;margin-bottom:16px}.maintenance-control-panel h2{margin:6px 0 5px;color:var(--ink);font-size:19px}.maintenance-control-panel .table-muted{max-width:680px;line-height:1.5}.maintenance-status{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-size:9px;font-weight:700;white-space:nowrap}.maintenance-status i,.maintenance-note i{display:block;width:7px;height:7px;border-radius:50%}.maintenance-on{background:#fff0f2;color:#b4435d}.maintenance-on i{background:#d4556b;box-shadow:0 0 0 3px #ffe0e5}.maintenance-off{background:#e7f9f2;color:#087e6b}.maintenance-off i{background:#12ad84;box-shadow:0 0 0 3px #d7f3e8}.maintenance-control-body{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:15px;border-top:1px solid #e3efeb}.maintenance-control-body>div{display:grid;gap:5px}.maintenance-control-body strong{color:var(--ink);font-size:11px}.maintenance-control-body span,.maintenance-control-body small{color:#78948e;font-size:10px;line-height:1.45}.maintenance-control-body small{color:#9aaba7;font-size:9px}.maintenance-control-body form{margin:0;flex:0 0 auto}.maintenance-toggle{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:38px;padding:0 14px;border:1px solid;border-radius:9px;font:700 10px Arial,sans-serif;cursor:pointer}.maintenance-toggle i{font-style:normal;font-size:14px}.maintenance-toggle-on{border-color:#12ad84;background:#12ad84;color:#fff;box-shadow:0 7px 14px rgba(18,173,132,.16)}.maintenance-toggle-off{border-color:#bfe8d8;background:#effbf6;color:#087e6b}.maintenance-toggle:hover{transform:translateY(-1px);box-shadow:0 7px 16px rgba(18,76,73,.12)}
.maintenance-page{min-height:100vh;background:radial-gradient(circle at 20% 10%,#ffffff 0,#f4faf8 42%,#eaf7f2 100%);color:var(--ink)}.maintenance-shell{min-height:100vh;display:grid;place-items:center;padding:28px}.maintenance-card{position:relative;width:min(560px,100%);padding:42px 46px;text-align:center;border:1px solid #cfe8df;border-radius:24px;background:rgba(255,255,255,.94);box-shadow:0 24px 60px rgba(18,76,73,.13);overflow:hidden}.maintenance-card:before{content:"";position:absolute;right:-90px;top:-100px;width:250px;height:250px;border:30px solid rgba(18,173,132,.08);border-radius:50%;pointer-events:none}.maintenance-logo{position:relative;z-index:1;display:block;width:210px;height:auto;margin:0 auto 30px;object-fit:contain}.maintenance-icon{position:relative;z-index:1;display:grid;place-items:center;width:58px;height:58px;margin:0 auto 20px;border:1px solid #bfe8d8;border-radius:18px;background:#e7f9f2;color:#087e6b;font-size:28px}.maintenance-card .eyebrow{position:relative;z-index:1;color:#6d9690}.maintenance-card h1{position:relative;z-index:1;margin:10px 0 12px;color:var(--ink);font-size:30px;letter-spacing:-.5px}.maintenance-copy{position:relative;z-index:1;max-width:420px;margin:0 auto;color:#6f8985;font-size:12px;line-height:1.7}.maintenance-note{position:relative;z-index:1;display:inline-flex;align-items:center;gap:8px;margin:22px auto 0;padding:10px 13px;border:1px solid #d5ebe4;border-radius:999px;background:#f4fbf8;color:#476d68;font-size:10px}.maintenance-note i{background:#12ad84;box-shadow:0 0 0 3px #d7f3e8}.maintenance-user{position:relative;z-index:1;margin:22px 0 12px;color:#9aaba7;font-size:10px}.maintenance-user strong{color:var(--ink)}.maintenance-logout{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 14px;border-radius:9px;color:#087e6b;border-color:#bfe8d8;background:#fff}@media(max-width:650px){.maintenance-control-panel .section-heading{display:block}.maintenance-status{margin-top:10px}.maintenance-control-body{display:grid}.maintenance-control-body form,.maintenance-toggle{width:100%}.maintenance-card{padding:34px 24px;border-radius:20px}.maintenance-logo{width:180px}.maintenance-card h1{font-size:25px}}

/* Keep maintenance toggle labels readable against their state colors */
.maintenance-toggle-on span{color:#fff}.maintenance-toggle-off span{color:#087e6b}

/* Non-admin screenshot traceability and context-menu deterrent */
.security-watermark{position:fixed;right:16px;bottom:14px;z-index:70;max-width:calc(100vw - 32px);padding:7px 10px;border:1px solid rgba(18,173,132,.24);border-radius:999px;background:rgba(255,255,255,.9);box-shadow:0 6px 16px rgba(18,76,73,.08);color:#6d9690;font-size:8px;letter-spacing:.25px;line-height:1.2;pointer-events:none;user-select:none}.security-watermark span{display:block;white-space:nowrap}@media(max-width:600px){.security-watermark{right:10px;bottom:10px;max-width:calc(100vw - 20px)}.security-watermark span{overflow:hidden;text-overflow:ellipsis}}

/* Financial year spend division filter */
.financial-year-heading-actions{display:flex;align-items:flex-start;gap:12px}.financial-year-filter{display:flex;align-items:flex-end;margin:0}.financial-year-filter label{display:grid;gap:5px;min-width:142px;color:#78948e;font-size:9px;font-weight:700}.financial-year-filter .select-wrap.custom-select{min-width:142px}.financial-year-filter .select-button{min-height:32px;padding-right:34px;background:#f8fcfa;font-size:10px}.financial-year-filter .select-menu{min-width:142px}.dashboard-financial-year-panel{transition:opacity .18s ease}.dashboard-financial-year-panel.is-loading{opacity:.62}.dashboard-financial-year-panel[aria-busy=true] .financial-year-filter .select-button{cursor:wait}@media(max-width:700px){.financial-year-heading-actions{display:block}.financial-year-filter{margin-top:12px}.financial-year-filter label,.financial-year-filter .select-wrap.custom-select{min-width:160px}.financial-year-total{margin-top:14px}}

/* Branded archive and Trash confirmation modal */
.confirm-modal-backdrop{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:20px;background:rgba(10,45,43,.32);backdrop-filter:blur(5px);opacity:0;transition:opacity .18s ease}.confirm-modal-backdrop[hidden]{display:none!important}.confirm-modal-backdrop.open{opacity:1}.confirm-modal{position:relative;width:min(440px,calc(100vw - 32px));padding:25px;border:1px solid #cfe8df;border-radius:22px;background:linear-gradient(145deg,#ffffff 0%,#f5fcf9 100%);box-shadow:0 24px 70px rgba(9,55,50,.22);transform:translateY(10px) scale(.98);transition:transform .18s ease}.confirm-modal-backdrop.open .confirm-modal{transform:translateY(0) scale(1)}.confirm-modal-icon{display:grid;place-items:center;width:48px;height:48px;margin-bottom:16px;border:1px solid #f0d9ac;border-radius:16px;background:#fff6e7;color:#a46a25;font-size:22px;font-weight:700;box-shadow:0 7px 16px rgba(164,106,37,.12)}.confirm-modal-copy h2{margin:5px 0 8px;color:var(--ink);font-size:19px;letter-spacing:-.2px}.confirm-modal-copy p:not(.eyebrow){margin:0;color:#68837e;font-size:11px;line-height:1.65}.confirm-modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:23px}.confirm-modal-actions button{min-height:36px;padding:0 15px;cursor:pointer}.confirm-modal .confirm-cancel{border-color:#d9e7e2;background:#fff;color:#567570}.confirm-modal .confirm-continue{border-color:#d99a56;background:#d99a56;color:#fff;box-shadow:0 7px 15px rgba(217,154,86,.2)}.confirm-modal .confirm-continue:hover{border-color:#bd7e3b;background:#bd7e3b;transform:translateY(-1px)}.confirm-modal-backdrop[data-kind=archive] .confirm-modal-icon{border-color:#c8e8dc;background:#eaf9f3;color:#087e6b;box-shadow:0 7px 16px rgba(18,173,132,.12)}.confirm-modal-backdrop[data-kind=archive] .confirm-continue{border-color:#12ad84;background:#12ad84;box-shadow:0 7px 15px rgba(18,173,132,.2)}.confirm-modal-backdrop[data-kind=archive] .confirm-continue:hover{border-color:#087e6b;background:#087e6b}@media(max-width:520px){.confirm-modal{padding:21px;border-radius:18px}.confirm-modal-actions{display:grid;grid-template-columns:1fr 1fr}.confirm-modal-actions button{width:100%}}
/* Login refresh */
.login-page{min-height:100vh;display:grid;place-items:center;padding:28px;background:radial-gradient(circle at 12% 10%,#e7f8f2 0,#f8fbfa 36%,#f7f6fb 100%)}
.login-shell{width:min(940px,100%);display:grid;grid-template-columns:1fr 390px;overflow:hidden;border:1px solid #d5ebe4;border-radius:24px;background:#fff;box-shadow:0 24px 70px rgba(18,76,73,.12)}
.login-brand-panel{position:relative;padding:54px 46px;background:linear-gradient(145deg,#0f514e 0%,#115d59 60%,#087e6b 100%);color:#fff;overflow:hidden}.login-brand-panel:after{content:"";position:absolute;width:300px;height:300px;right:-120px;bottom:-150px;border:42px solid rgba(255,255,255,.09);border-radius:50%}.login-brand-panel .login-logo{width:245px;margin:0 0 46px;background:#fff;border-radius:12px;padding:10px}.login-brand-panel .eyebrow{color:#aee8d7}.login-brand-panel h1{position:relative;z-index:1;max-width:390px;margin:12px 0;color:#fff;font-size:31px;line-height:1.12;letter-spacing:-.6px}.login-brand-panel>p:not(.eyebrow){position:relative;z-index:1;max-width:390px;color:#c8eee4;font-size:13px;line-height:1.7}.login-brand-points{position:relative;z-index:1;display:grid;gap:11px;margin-top:34px}.login-brand-points span{display:flex;align-items:center;gap:9px;color:#effff9;font-size:11px;font-weight:700}.login-brand-points i{display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#22bb91;color:#fff;font-style:normal}.login-card{width:auto;margin:0;padding:44px 38px;border:0;border-radius:0;box-shadow:none}.login-card-heading h2{margin:8px 0 6px;color:var(--ink);font-size:25px}.login-card-heading p:not(.eyebrow){margin:0;color:var(--muted);font-size:12px}.login-card form{margin:30px 0 13px}.login-card .primary{display:flex;align-items:center;justify-content:center;gap:8px;background:#12ad84;border-radius:9px;cursor:pointer}.login-card .primary:hover{background:#087e6b}.login-security-note{display:block;color:#8ba09c;font-size:10px;line-height:1.55}
/* Table controls */
.table-toolbar-controls{display:flex;align-items:center;gap:14px}.table-toolbar-controls label{display:flex;align-items:center;gap:6px;color:#8b9b98;font-size:10px}.table-toolbar-controls .select-wrap.custom-select{min-width:62px}.table-toolbar-controls .select-button{min-height:27px;padding:0 25px 0 9px;border-radius:7px;font-size:10px}.table-toolbar-controls .select-menu{min-width:62px}.pagination{display:flex;align-items:center;gap:3px}.page-link{transition:color .15s ease,background .15s ease,transform .15s ease}.page-link:hover{background:#e9f8f3;color:#087e6b;transform:translateY(-1px)}.page-link.page-arrow{font-size:16px;line-height:1}.page-link.disabled{pointer-events:none;opacity:.35}.sort-link{cursor:pointer;text-decoration:none}.reports-financial-year-filter{gap:8px}.reports-financial-year-filter label{min-width:132px}.reports-financial-year-filter .select-wrap.custom-select{min-width:132px}.reports-financial-year-filter .select-button{min-height:34px;padding-right:30px;background:#f8fcfa;font-size:10px}
@media(max-width:760px){.login-page{padding:16px}.login-shell{grid-template-columns:1fr}.login-brand-panel{padding:30px 28px}.login-brand-panel .login-logo{width:210px;margin-bottom:28px}.login-brand-panel h1{font-size:25px}.login-brand-points{margin-top:22px}.login-card{padding:30px 26px}.table-toolbar{align-items:flex-start;gap:12px;flex-direction:column}.table-toolbar-controls{width:100%;justify-content:space-between}.reports-financial-year-filter{display:grid;grid-template-columns:1fr 1fr}}
@media(max-width:460px){.reports-financial-year-filter{grid-template-columns:1fr}.table-toolbar-controls{align-items:flex-start;flex-direction:column}}
/* Final interaction and admin data controls */
.select-button{cursor:pointer}
.select-button:disabled{cursor:not-allowed}
.phone-field{display:flex;align-items:center;min-width:0;border:1px solid #c9e6dc;border-radius:8px;background:#fff;overflow:hidden}
.phone-field:focus-within{border-color:#12ad84;box-shadow:0 0 0 3px rgba(18,173,132,.13)}
.phone-field>span{display:grid;place-items:center;align-self:stretch;padding:0 10px;border-right:1px solid #e4f0ec;background:#f1faf6;color:#087e6b;font-size:11px;font-weight:bold}
.phone-field>input{min-width:0;width:100%;height:38px;padding:0 10px;border:0!important;outline:0;background:transparent!important;box-shadow:none!important;font:11px Arial,sans-serif;color:#476d68}
.admin-data-tools{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:14px 0;padding:16px 18px;background:#f8fcfa}
.admin-data-tools h3{margin:4px 0;color:var(--ink);font-size:13px}
.admin-data-tools p:not(.eyebrow){max-width:560px;margin:0;color:#7d9993;font-size:10px;line-height:1.45}
.admin-data-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.admin-data-actions form{display:flex;align-items:center;gap:8px;margin:0}
.file-picker{display:flex;align-items:center;gap:7px;min-height:34px;padding:0 9px;border:1px dashed #b8ded2;border-radius:8px;background:#fff;color:#087e6b;font-size:10px;font-weight:bold;cursor:pointer}
.file-picker input{max-width:130px;font-size:9px;color:#6e8984;cursor:pointer}
.account-delete{color:#c65e73;border-color:#f0c8d0;background:#fff6f8;cursor:pointer}
.report-pagination-footer{align-items:center;gap:12px}
.report-pagination-controls{display:flex;align-items:center;gap:12px}
.report-pagination-controls label{display:flex;align-items:center;gap:6px}
.report-pagination-controls .custom-select{min-width:62px}
@media(max-width:760px){.admin-data-tools{display:block}.admin-data-actions{justify-content:flex-start;margin-top:12px}.admin-data-actions form{flex-wrap:wrap}.report-pagination-footer{display:block}.report-pagination-controls{justify-content:space-between;margin-top:10px}}
/* Reports financial-year panel updates without a page jump */
.financial-year-report.is-loading{opacity:.62;transition:opacity .18s ease}


/* Audit Log readability and pagination: a restrained +1px pass for easier scanning. */
.audit-page-title .hero-copy{font-size:13px}
.audit-summary-card small{font-size:11px}
.audit-summary-card div>span{font-size:10px}
.audit-filter-panel .table-muted{font-size:10px}
.audit-filter-form label>span{font-size:10px}
.audit-filter-form input[type="search"],.audit-filter-form input[type="date"],.audit-filter-form .select-button{font-size:12px}
.audit-table-panel .table-toolbar{font-size:11px}
.audit-table-panel th{font-size:10px}
.audit-table-panel td{font-size:11px}
.audit-role-badge,.audit-event-badge{font-size:10px}
.audit-table-footer{font-size:10px}
.audit-pagination-wrap{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-left:auto}
.audit-pagination-label{color:#8a9f9a;font-size:10px;line-height:1.4;white-space:nowrap}
.audit-pagination{display:flex;align-items:center;gap:3px;margin-left:0}
.audit-pagination .page-link{min-width:26px;height:26px;margin-left:0;border:1px solid transparent;border-radius:8px;font-size:11px}
.audit-pagination .page-link.current{border-color:#d7cff4;background:#eeeaff;color:#7062b1;box-shadow:0 3px 8px rgba(112,98,177,.12)}
.audit-pagination .page-link:not(.disabled):hover{border-color:#bde5d7;background:#e9f8f3;color:#087e6b;transform:translateY(-1px)}
.audit-pagination .page-link.page-arrow{font-size:18px;line-height:1}
@media(max-width:650px){.audit-pagination-wrap{width:100%;justify-content:space-between;margin-left:0}.audit-pagination-label{font-size:10px}}
/* Global readability pass: modestly larger interface copy without changing layout sizing. */
body{font-size:14px}
.brand small,.profile small,.team-card p{font-size:11px}
.workspace-label,.eyebrow{font-size:10px}
.nav-item,.settings-link{font-size:12px}
.profile strong{font-size:11px}
.breadcrumbs,.top-actions{font-size:12px}
.role-chip,.icon-button,.help-button{font-size:11px}
.hero-copy{font-size:13px}
.primary-button,.secondary-button{font-size:12px}
.notice{font-size:12px}
.stat-card span,.stat-card small{font-size:11px}
.panel-heading p,.report-card p{font-size:11px}
.progress-row>div:first-child,.chart-legend{font-size:11px}
.panel-link,.text-button,.table-link{font-size:12px}
.activity-row strong{font-size:11px}
.activity-row span,.activity-row small{font-size:10px}
.search-wrap input,.inline-select,.roi-select,.compact-form input,.compact-form select,.compact-form textarea{font-size:12px}
.table-toolbar,.table-footer{font-size:11px}
th{font-size:10px}
td{font-size:11px}
.doctor-cell small,.table-muted{font-size:10px}
.filter-panel-heading h3{font-size:14px}
.live-search-status,.filter-reset{font-size:11px}
.filter-panel .filter-grid input:not([type="hidden"]),.filter-panel .filter-grid select{font-size:12px}
.filter-panel .filter-grid .date-filter>span{font-size:10px}
.select-wrap.custom-select .select-button{font-size:12px}
.table-toolbar-controls label{font-size:11px}
.table-toolbar-controls .select-button{font-size:11px}
.page-link{font-size:11px}
.report-tab strong{font-size:12px}
.report-tab span{font-size:10px}/* Admin authenticator-app 2FA */
.admin-2fa-panel{margin:0 0 15px;padding:20px 22px;background:linear-gradient(145deg,#fff 0%,#f5fcf9 100%);border-color:#cfe8df}.admin-2fa-panel .section-heading{align-items:flex-start;margin-bottom:16px}.admin-2fa-panel h2{margin:6px 0 5px;color:var(--ink);font-size:19px}.admin-2fa-panel .table-muted{max-width:690px;line-height:1.5}.two-factor-status{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;font-size:10px;font-weight:700;white-space:nowrap}.two-factor-status i{width:7px;height:7px;border-radius:50%}.two-factor-enabled{background:#e7f9f2;color:#087e6b}.two-factor-enabled i{background:#12ad84;box-shadow:0 0 0 3px #d7f3e8}.two-factor-disabled{background:#fff5e6;color:#a46a25}.two-factor-disabled i{background:#d99a56;box-shadow:0 0 0 3px #ffead0}.admin-2fa-panel-body{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:15px;border-top:1px solid #e3efeb}.admin-2fa-panel-body>div{display:grid;gap:5px}.admin-2fa-panel-body strong{color:var(--ink);font-size:12px}.admin-2fa-panel-body span{color:#78948e;font-size:11px;line-height:1.45}.account-status-group{display:flex;align-items:center;align-content:flex-start;align-self:start;gap:7px;justify-content:flex-end;flex-wrap:wrap;min-height:28px}.account-status-group .account-status{align-self:auto;display:inline-flex;align-items:center;justify-content:center;min-height:28px;box-sizing:border-box}.account-2fa-badge{display:inline-flex;align-items:center;justify-content:center;min-height:28px;box-sizing:border-box;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:700;white-space:nowrap}.account-2fa-badge.enabled{border:1px solid #bfe8d8;background:#effbf6;color:#087e6b}.account-2fa-badge.disabled{border:1px solid #f2dfbf;background:#fff9ef;color:#a46a25}.account-2fa-reset{color:#9065ba;border-color:#ded1f3;background:#fbf8ff}.auth-setup-card,.auth-recovery-card{max-width:760px;margin:0 auto;padding:26px 28px;background:linear-gradient(145deg,#fff 0%,#f4fbf8 100%)}.auth-setup-intro{display:flex;align-items:flex-start;gap:14px}.auth-step{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:14px;background:#e3f7ef;color:#087e6b;font-size:12px;font-weight:700}.auth-setup-intro h2{margin:6px 0;color:var(--ink);font-size:20px}.auth-setup-intro p:not(.eyebrow){max-width:580px;margin:0;color:#6f8985;font-size:12px;line-height:1.65}.auth-key-card{display:grid;gap:7px;margin:24px 0;padding:20px;border:1px solid #cfe8df;border-radius:15px;background:#f8fdfb}.auth-key-label{color:#7b9892;font-size:10px;text-transform:uppercase;letter-spacing:.7px}.auth-key-card strong{color:var(--ink);font-size:13px;margin-bottom:7px}.auth-key-card code{display:inline-block;width:max-content;max-width:100%;padding:11px 13px;border:1px solid #bfe8d8;border-radius:10px;background:#fff;color:#0b7366;font:700 16px/1.3 Consolas,monospace;letter-spacing:1.3px;word-break:break-word}.auth-key-card small{color:#78948e;font-size:10px;line-height:1.5}.auth-uri-link{width:max-content;margin-top:7px}.auth-setup-divider{display:flex;align-items:center;gap:10px;color:#8da49f;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.7px}.auth-setup-divider:before,.auth-setup-divider:after{content:"";height:1px;flex:1;background:#e3efeb}.auth-verify-form{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-top:18px}.auth-verify-form>div{display:grid;gap:7px;flex:1}.auth-verify-form label{color:#476d68;font-size:11px;font-weight:700}.auth-verify-form input{height:40px;max-width:260px;padding:0 12px;border:1px solid #c9e6dc;border-radius:9px;background:#fff;color:var(--ink);font:12px Arial,sans-serif;letter-spacing:2px}.auth-verify-form input:focus{outline:0;border-color:#12ad84;box-shadow:0 0 0 3px rgba(18,173,132,.13)}.auth-recovery-banner{display:flex;align-items:flex-start;gap:12px;padding:15px;border:1px solid #bfe8d8;border-radius:13px;background:#eaf9f3}.auth-recovery-banner>span{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#12ad84;color:#fff;font-weight:700}.auth-recovery-banner strong,.auth-recovery-banner small{display:block}.auth-recovery-banner strong{color:#087e6b;font-size:13px}.auth-recovery-banner small{margin-top:4px;color:#5f8881;font-size:10px;line-height:1.5}.recovery-code-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin:22px 0}.recovery-code-grid code{padding:12px;border:1px solid #d8ebe5;border-radius:9px;background:#fff;color:var(--ink);font:700 14px Consolas,monospace;text-align:center;letter-spacing:1px}.recovery-copy-button{margin-bottom:12px}.auth-recovery-warning{margin:0;color:#8d6b47;font-size:10px;line-height:1.55}.two-factor-login-shell{grid-template-columns:1fr 390px}.two-factor-challenge-form{margin-top:25px!important}.two-factor-challenge-form input{font-size:17px!important;letter-spacing:3px;text-align:center}.two-factor-help{margin:0;color:#8ba09c;font-size:10px;line-height:1.5}.two-factor-back-link{display:inline-block;margin-top:18px;color:#087e6b;font-size:11px;font-weight:700;text-decoration:none}.two-factor-back-link:hover{text-decoration:underline}@media(max-width:760px){.admin-2fa-panel .section-heading{display:block}.two-factor-status{margin-top:10px}.admin-2fa-panel-body,.auth-verify-form{display:grid;align-items:stretch}.auth-verify-form input{max-width:none}.auth-verify-form .primary-button{width:100%}.auth-setup-card,.auth-recovery-card{padding:22px 18px}.recovery-code-grid{grid-template-columns:1fr}.two-factor-login-shell{grid-template-columns:1fr}}
/* Audit table spacing and long-detail wrapping */
.audit-table-panel th,.audit-table-panel td{padding-left:16px;padding-right:16px}
.audit-table-panel td{white-space:normal;overflow-wrap:break-word}
.audit-table-panel td:nth-child(-n+6){white-space:nowrap}
.audit-table-panel td:nth-child(7){min-width:0;overflow-wrap:anywhere;word-break:break-word}
.audit-table-panel .audit-role-badge,.audit-table-panel .audit-event-badge{white-space:normal;text-align:left}
/* Audit instant filtering and spacing refinement */
.audit-content{display:block}
.audit-filter-panel{padding:24px 22px}
.audit-filter-actions{justify-content:space-between;align-items:center}
.audit-live-filter-note{color:#6d9690;font-size:10px;font-weight:700}
.audit-content.is-loading{opacity:.62;pointer-events:none;transition:opacity .18s ease}
.audit-table-panel .table-scroll{overflow-x:auto;overflow-y:hidden}
.audit-table-panel table{min-width:980px;table-layout:auto}
.audit-table-panel th,.audit-table-panel td{padding:14px 16px}
.audit-table-panel td:last-child{min-width:240px;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
.audit-detail-list{display:grid;gap:5px;min-width:0}.audit-detail-list span{display:block;padding:4px 0;color:#476d68;line-height:1.45;overflow-wrap:anywhere}.audit-detail-list span+span{border-top:1px solid #edf4f1;padding-top:5px}
@media(max-width:650px){.audit-filter-panel{padding:20px 16px}.audit-live-filter-note{font-size:9px}}
/* Secure password controls */
.password-control{display:grid;gap:7px;min-width:0}.password-control>input{width:100%;box-sizing:border-box}.password-control-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.password-control-actions .account-action{min-height:29px;padding:6px 8px;font-size:9px}.password-generate{border-color:#bfe8d8;background:#effbf6;color:#087e6b}.password-toggle{border-color:#d8e9e3;background:#fff;color:#476d68}.password-copy{border-color:#d9d0f6;background:#f5f1ff;color:#7062b1}.account-reset-form .password-control{width:100%;min-width:210px}.account-reset-form .password-control>input{height:31px;padding:0 9px;border:1px solid #d8e9e3;border-radius:8px;color:#476d68;font-size:10px}.account-reset-form .password-control-actions{justify-content:flex-start}.account-reset-form .password-control-actions .account-action{min-height:28px;padding:5px 7px}@media(max-width:600px){.password-control-actions .account-action{flex:1}.account-reset-form .password-control{min-width:0;width:100%}}
/* Aligned password actions */
.password-control-actions .account-action{white-space:nowrap}.account-reset-form{align-items:flex-end;flex:1 1 360px;min-width:0}.account-reset-form .account-password-control{flex:1 1 215px;min-width:215px}.account-reset-form .account-reset{align-self:flex-end;white-space:normal;min-width:76px}.account-actions .account-action-form{flex:0 0 auto}@media(max-width:1050px){.account-actions{justify-content:flex-start}.account-reset-form{flex-basis:100%;margin-left:0}}@media(max-width:600px){.account-reset-form{display:grid;grid-template-columns:1fr auto;align-items:end;flex-basis:100%}.account-reset-form .account-password-control{min-width:0}.account-reset-form .account-reset{width:78px}}
/* Account action layout */
.account-actions{display:grid;grid-template-columns:minmax(165px,.72fr) minmax(360px,1.28fr);align-items:end;gap:14px;padding-top:12px}.account-access-actions{display:flex;align-items:center;justify-content:flex-start;gap:7px;flex-wrap:wrap;min-height:31px}.account-access-actions .account-action-form{flex:0 0 auto}.account-reset-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;min-width:0;width:100%}.account-reset-form .account-password-control{min-width:0}.account-reset-form .password-control-actions{align-items:center}.account-reset-form .account-reset{align-self:end;min-height:32px}.account-actions .account-action{white-space:nowrap}@media(max-width:900px){.account-actions{grid-template-columns:1fr;gap:10px}.account-reset-form{max-width:520px}}@media(max-width:600px){.account-reset-form{grid-template-columns:1fr auto}.account-reset-form .account-reset{min-width:84px}.account-access-actions{justify-content:flex-start}}

/* Inline password visibility and aligned reset controls */
.password-field-wrap{position:relative;min-width:0}
.password-field-wrap>input{width:100%;box-sizing:border-box;padding-right:40px!important}
.account-reset-form .password-field-wrap>input{height:31px;padding:0 40px 0 9px;border:1px solid #d8e9e3;border-radius:8px;color:#476d68;font-size:10px;background:#fff}
.password-field-wrap>input:focus{outline:0;border-color:#12ad84;box-shadow:0 0 0 3px rgba(18,173,132,.1)}
.password-field-wrap .password-visibility{position:absolute;top:50%;right:7px;display:grid;place-items:center;width:27px;height:27px;transform:translateY(-50%);padding:0;border:0;border-radius:7px;background:transparent;color:#5d807a;cursor:pointer}
.password-field-wrap .password-visibility:hover,.password-field-wrap .password-visibility.is-visible{background:#eaf7f2;color:#087e6b}
.password-field-wrap .password-visibility svg{width:16px;height:16px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.account-reset-form{grid-template-columns:minmax(0,1fr) auto;gap:14px}
.account-reset-form .account-password-control{min-width:0;width:100%}
/* Keep the custom password eye as the only visibility control. */
.password-field-wrap input[type=password]::-ms-reveal,.password-field-wrap input[type=password]::-ms-clear{display:none!important}
.password-field-wrap input[type=password]::-webkit-credentials-auto-fill-button{visibility:hidden;pointer-events:none}
/* Password eye states and compact reset actions */
.password-field-wrap .password-eye{display:block}
.password-field-wrap .password-visibility .eye-closed{display:none}
.password-field-wrap .password-visibility.is-visible .eye-open{display:none}
.password-field-wrap .password-visibility.is-visible .eye-closed{display:block}
.account-reset-form{display:block!important;width:100%;min-width:0}
.account-reset-form .password-control-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.account-reset-form .account-reset{min-width:104px;white-space:nowrap}
/* Duplicate doctor confirmation modal: scoped so legacy dialogs stay unchanged */
.confirm-modal-close{position:absolute;top:12px;right:13px;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:9px;background:transparent;color:#6d8984;font-size:23px;line-height:1;cursor:pointer}.confirm-modal-close:hover{background:#eaf7f2;color:#087e6b}.confirm-modal-backdrop[data-kind=duplicate] .confirm-modal{position:relative}
.confirm-modal-backdrop[data-kind=duplicate] .confirm-modal-close{position:absolute;top:12px;right:13px;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:9px;background:transparent;color:#6d8984;font-size:23px;line-height:1;cursor:pointer}
.confirm-modal-backdrop[data-kind=duplicate] .confirm-modal-close:hover{background:#eaf7f2;color:#087e6b}
.confirm-modal-backdrop[data-kind=duplicate] .confirm-modal-icon{border-color:#f1cdd4;background:#fff0f2;color:#bd536a;box-shadow:0 7px 16px rgba(189,83,106,.12)}
.confirm-modal-backdrop[data-kind=duplicate] .confirm-continue{border-color:#12ad84;background:#12ad84;box-shadow:0 7px 15px rgba(18,173,132,.2)}
.confirm-modal-backdrop[data-kind=duplicate] .confirm-continue:hover{border-color:#087e6b;background:#087e6b}
/* Desktop shell and page width behavior */
html,body{max-width:100%;overflow-x:hidden}
.shell{width:100%;max-width:100%;min-width:0;align-items:stretch}
.shell>.sidebar{position:fixed;top:0;left:0;bottom:0;width:235px;min-width:235px;height:100vh;max-height:none;flex:0 0 235px;overflow-y:auto;overflow-x:hidden}
.shell>.content{flex:0 0 calc(100% - 235px);width:calc(100% - 235px);max-width:calc(100% - 235px);min-width:0;margin-left:235px}
.shell>.content>.topbar{min-width:0}
.shell>.content>.page-wrap,.page-wrap{width:100%;max-width:1260px;min-width:0;margin-left:auto;margin-right:auto;box-sizing:border-box}
.shell.sidebar-collapsed>.sidebar{width:78px;min-width:78px;flex-basis:78px}
.shell.sidebar-collapsed>.content{flex-basis:calc(100% - 78px);width:calc(100% - 78px);max-width:calc(100% - 78px);margin-left:78px}
@media(max-width:850px){.shell>.sidebar{width:65px;min-width:65px;flex-basis:65px}.shell>.content{flex-basis:calc(100% - 65px);width:calc(100% - 65px);max-width:calc(100% - 65px);margin-left:65px}.shell.sidebar-collapsed>.sidebar{width:0;min-width:0;flex-basis:0}.shell.sidebar-collapsed>.content{flex-basis:100%;width:100%;max-width:100%;margin-left:0}.page-wrap{max-width:100%;}}
/* ROI controls: keep the category selector compact without changing other controls. */
table .roi-form{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
table .roi-form select.roi-select{display:block;flex:0 0 34px;width:48px;min-width:48px;height:34px;min-height:34px;box-sizing:border-box;padding:0 17px 0 10px;border-radius:10px;line-height:1}
table .roi-form .tiny-note{box-sizing:border-box;margin:0;width:92px;height:21px;min-height:21px;padding:2px 5px;border-radius:6px}
table span.roi-select{display:inline-flex;align-items:center;justify-content:center;width:48px;min-width:48px;height:34px;box-sizing:border-box;border-radius:10px}/* Confirmation modal CTA alignment: only the archive, trash, and duplicate-profile buttons. */
.confirm-modal-actions .secondary-button,
.confirm-modal-actions .primary-button,
.confirm-modal-actions .confirm-continue{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:38px;min-height:38px;padding:0 16px;line-height:1.2;text-align:center;vertical-align:middle;white-space:nowrap}
/* Additive CRM feature UI. Scoped to new feature components only. */
.global-doctor-search{position:relative;display:flex;align-items:center;gap:0;margin-right:10px;border:1px solid #cfe8e2;border-radius:999px;background:#fff;overflow:visible;box-shadow:0 2px 8px rgba(18,89,79,.04)}.global-doctor-search input{width:150px;height:32px;padding:0 10px;border:0;outline:0;background:transparent;color:#124c49;font-size:12px}.global-doctor-search input::placeholder{color:#89a29f}.global-doctor-search button{width:30px;height:32px;padding:0;border:0;border-radius:0 999px 999px 0;background:#eaf7f2;color:#079c7c;font-size:15px;cursor:pointer}.global-doctor-search button:hover{background:#d6f1e8}.quick-search-results{position:absolute;top:calc(100% + 8px);right:0;z-index:140;width:320px;max-width:calc(100vw - 32px);padding:6px;border:1px solid #cfe8e2;border-radius:12px;background:#fff;box-shadow:0 14px 30px rgba(18,76,73,.16)}.quick-search-result{display:flex;flex-direction:column;gap:3px;padding:10px 11px;border-radius:8px;color:#174f4b;text-decoration:none}.quick-search-result:hover,.quick-search-result:focus-visible{background:#e9f8f3;outline:0}.quick-search-result strong{font-size:12px}.quick-search-result small{color:#78948e;font-size:10px}.quick-search-empty{padding:12px;color:#78948e;font-size:11px;text-align:center}
.admin-tools-content{display:flex;flex-direction:column;gap:18px}
.admin-tools-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.admin-tool-card,.admin-tool-section{border:1px solid #d5ebe5;border-radius:18px;background:#fff;box-shadow:0 10px 24px rgba(18,89,79,.04);padding:20px}
.admin-tool-card h3,.admin-tool-section h2{margin:0;color:#124c49}
.admin-tool-card p,.admin-tool-section p{color:#718b87;font-size:12px}
.admin-tool-stat{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.admin-tool-stat strong{display:block;font-size:25px;line-height:1.1;color:#087e6b}
.admin-tool-stat span{font-size:11px;color:#718b87}
.admin-tool-status{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;background:#e9f8f2;color:#087e6b;font-size:11px;font-weight:700;white-space:nowrap}
.admin-tool-status.bad{background:#fff1f2;color:#bd536a}
.admin-tool-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.admin-tools-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #dcece8;border-radius:12px;overflow:hidden;font-size:12px}
.admin-tools-table th,.admin-tools-table td{padding:11px 12px;text-align:left;border-bottom:1px solid #e5f0ed;vertical-align:middle}
.admin-tools-table th{background:#f7fbfa;color:#6f8985;font-size:10px;letter-spacing:.08em;text-transform:uppercase}
.admin-tools-table tr:last-child td{border-bottom:0}.admin-tools-table td:first-child strong,.admin-tools-table td:first-child small{display:block}.admin-tools-table td:first-child small{margin-top:4px;color:#718b87;white-space:normal}
.admin-inline-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.admin-inline-form input,.admin-inline-form select,.admin-schedule-form input,.admin-schedule-form select{height:36px;padding:0 10px;border:1px solid #cfe6df;border-radius:9px;background:#fff;color:#124c49;font:inherit;font-size:12px}
.admin-inline-form input:focus,.admin-inline-form select:focus,.admin-schedule-form input:focus,.admin-schedule-form select:focus{outline:2px solid rgba(18,173,132,.22);border-color:#12ad84}
.admin-schedule-form{display:grid;grid-template-columns:1.4fr 1.4fr 1fr 1.2fr auto;gap:9px;align-items:end;margin-bottom:14px}
.admin-schedule-form label{display:flex;flex-direction:column;gap:5px;color:#718b87;font-size:11px}
.admin-schedule-list{display:grid;gap:8px}
.admin-schedule-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid #dcece8;border-radius:11px;background:#fbfefd}
.admin-schedule-row small{display:block;color:#718b87;margin-top:3px}
.dashboard-reminders{margin-top:18px}
.reminder-form{display:grid;grid-template-columns:1.1fr 1.3fr 1fr 1.5fr auto;gap:9px;align-items:end;margin-bottom:14px}
.reminder-form label{display:flex;flex-direction:column;gap:5px;color:#718b87;font-size:11px}
.reminder-form input,.reminder-form select{height:36px;padding:0 10px;border:1px solid #cfe6df;border-radius:9px;background:#fff;color:#124c49;font:inherit;font-size:12px}
.reminder-form textarea{min-height:36px;height:36px;padding:9px 10px;border:1px solid #cfe6df;border-radius:9px;resize:vertical;color:#124c49;font:inherit;font-size:12px}
.reminder-list{display:grid;gap:8px}
.reminder-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px;border:1px solid #dcece8;border-radius:11px;background:#fbfefd}
.reminder-row strong{color:#124c49;font-size:13px}.reminder-row small{display:block;color:#718b87;margin-top:3px}
.reminder-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.import-preview-panel{margin-top:16px}.import-preview-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.import-preview-heading h2{margin:3px 0;color:#124c49}.import-preview-heading p:not(.eyebrow){color:#718b87;font-size:12px}
.import-preview-table{overflow:auto;border:1px solid #dcece8;border-radius:12px}.import-preview-table table{width:100%;min-width:680px;border-collapse:collapse;font-size:12px}.import-preview-table th,.import-preview-table td{padding:10px 11px;text-align:left;border-bottom:1px solid #e5f0ed}.import-preview-table th{background:#f7fbfa;color:#6f8985;font-size:10px;text-transform:uppercase;letter-spacing:.08em}.import-preview-table tr:last-child td{border-bottom:0}.import-error{color:#bd536a;font-weight:600}.import-ok{color:#087e6b;font-weight:600}.import-preview-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:14px}
@media(max-width:1000px){.admin-tools-grid{grid-template-columns:1fr 1fr}.admin-schedule-form{grid-template-columns:1fr 1fr}.reminder-form{grid-template-columns:1fr 1fr}.global-doctor-search input{width:110px}}
@media(max-width:700px){.admin-tools-grid{grid-template-columns:1fr}.admin-schedule-form,.reminder-form{grid-template-columns:1fr}.admin-tool-section-heading{flex-direction:column}.reminder-row{align-items:flex-start;flex-direction:column}.global-doctor-search{display:none}}/* Layout rules for the feature components rendered by admin_tools.php and reminders.php. */
.admin-tools-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.admin-tools-hero h1{margin:0;color:#124c49}.admin-tools-hero p:not(.eyebrow){max-width:680px;color:#718b87;font-size:13px}
.admin-quality-list,.admin-health-list,.admin-status-lines{display:grid;gap:8px;margin-top:14px}.admin-quality-list a{display:flex;justify-content:space-between;gap:10px;padding:9px 10px;border:1px solid #dcece8;border-radius:9px;color:#124c49;text-decoration:none}.admin-quality-list a:hover{background:#f2fbf7}.admin-quality-list small,.admin-status-lines span{color:#718b87;font-size:11px}.admin-status-lines span{display:flex;justify-content:space-between;gap:12px}.admin-status-lines b{color:#124c49;text-align:right}.admin-tool-note{margin-top:14px!important}.admin-health-list>div{display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid #e5f0ed;color:#124c49;font-size:12px}.admin-health-list>div:last-child{border-bottom:0}.admin-health-list b{font-size:11px;color:#718b87;font-weight:500}.health-ok,.health-bad{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;font-weight:700}.health-ok{background:#e6f8f1;color:#087e6b}.health-bad{background:#fff0f2;color:#bd536a}.admin-inline-form label{display:flex;align-items:center;gap:7px;font-size:11px;color:#718b87}.admin-inline-form label span{white-space:nowrap}.admin-table-wrap{overflow:auto}.admin-schedule-form{margin-bottom:14px}.admin-schedule-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid #dcece8;border-radius:11px;background:#fbfefd}.admin-schedule-list small{display:block;color:#718b87;margin-top:3px}.admin-schedule-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.admin-health-ok{margin-top:14px;padding:10px 12px;border-radius:10px;background:#eaf8f3;color:#087e6b;font-size:12px}.dashboard-reminders .dashboard-reminder-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.dashboard-reminders .dashboard-reminder-heading h2{margin:0;color:#124c49}.dashboard-reminders .dashboard-reminder-heading p:not(.eyebrow){color:#718b87;font-size:12px}.reminder-badge{padding:6px 10px;border-radius:999px;background:#eaf8f3;color:#087e6b;font-size:11px;font-weight:700;white-space:nowrap}.reminder-list>article{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px;border:1px solid #dcece8;border-radius:11px;background:#fbfefd}.reminder-list>article strong{color:#124c49;font-size:13px}.reminder-list>article small,.reminder-list>article span{display:block;color:#718b87;margin-top:3px;font-size:11px}.completed-reminders{margin-top:14px;border-top:1px solid #e5f0ed;padding-top:12px;color:#124c49;font-size:12px}.completed-reminders>div{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #edf4f2}.completed-reminders small{color:#718b87}.file-picker{display:inline-flex;align-items:center;gap:8px}.file-picker input{max-width:190px}
/* Import preview-only controls */
.import-preview-guidance{margin-right:auto;align-self:center;color:#bd536a;font-size:12px;font-weight:600}
.import-preview-pagination{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:14px;font-size:12px}
.import-preview-pagination a,.import-preview-pagination span{padding:7px 11px;border:1px solid #dce2ee;border-radius:8px;color:#124c49;text-decoration:none}
.import-preview-pagination a:hover{border-color:#12ad84}
.import-preview-pagination span[aria-disabled="true"]{opacity:.45}
.import-preview-pagination strong{color:#718b87;font-weight:600}.import-preview-reference{display:block;margin-top:3px;color:#718b87;font-size:10px;font-weight:500}
/* Scoped bulk archive/trash controls */
.bulk-action-form{display:inline-flex;align-items:center;gap:6px;margin:0}.bulk-action-label{color:#78948e;font-size:10px;font-weight:700;white-space:nowrap}.bulk-action-form .action-link{min-height:29px;padding:6px 8px}.bulk-select-column{width:42px;text-align:center}.bulk-checkbox{width:15px;height:15px;margin:0;accent-color:#12ad84;cursor:pointer}.doctor-id-cell{color:#78948e;font-variant-numeric:tabular-nums;white-space:nowrap}
/* Scoped controls for bulk selection, maintenance visibility, and dashboard data quality. */
.bulk-action-form .action-link:disabled{opacity:.45;cursor:not-allowed;pointer-events:none}
.bulk-checkbox.bulk-select-all{vertical-align:middle}
.topbar-maintenance{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #f0ddb4;border-radius:999px;background:#fff7e8;color:#b17b2d;font-size:10px;font-weight:700;white-space:nowrap}
.topbar-maintenance i{width:7px;height:7px;border-radius:50%;background:#d99a45;box-shadow:0 0 0 3px #fff0d1}
.data-quality-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;color:#78948e;font-size:9px}
.dashboard-quality-panel{margin-bottom:30px}
.dashboard-quality-panel .panel-heading{margin-bottom:12px}
.dashboard-quality-panel .panel-heading h3{margin:5px 0 4px;color:var(--ink);font-size:17px}
.dashboard-quality-panel .panel-heading p:not(.eyebrow){margin:0;color:#78948e;font-size:10px}
.dashboard-quality-panel .admin-quality-list a{min-height:38px}
@media(max-width:850px){.topbar-maintenance{padding:6px 8px;font-size:9px}}
.topbar-maintenance.is-inactive{background:#eef8f4;border-color:#c9ebe0;color:#147b66}
.topbar-maintenance.is-inactive i{background:#12ad84;box-shadow:0 0 0 3px #dff5ed}

/* Scoped user-management and data-quality refinements */
.data-quality-footer{flex-wrap:wrap;line-height:1.4}
.data-quality-pagination{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.data-quality-pagination a,.data-quality-pagination strong,.data-quality-pagination span{display:inline-flex;align-items:center;min-height:26px;padding:0 9px;border:1px solid #d8e9e3;border-radius:8px;background:#fff;color:#087e6b;text-decoration:none;font-size:10px}
.data-quality-pagination strong{border-color:#c9d8f4;background:#f2f3ff;color:#7062b1}
.data-quality-pagination span[aria-disabled="true"]{opacity:.45}
.user-role-stats{grid-template-columns:repeat(5,minmax(0,1fr))}
.user-role-stat{padding:12px 14px}
.account-directory-filters{display:grid;grid-template-columns:minmax(0,1fr) 190px auto auto;gap:8px;align-items:end;margin:-2px 0 8px;padding:12px;border:1px solid #e5f0ed;border-radius:10px;background:#fbfefd}
.account-directory-filters label{display:grid;gap:5px;color:#78948e;font-size:10px}
.account-directory-filters input,.account-directory-filters select{height:34px;padding:0 10px;border:1px solid #d8e9e3;border-radius:8px;color:#476d68;background:#fff;font:10px Arial,sans-serif}
.account-directory-filters button,.account-directory-filters a{height:34px;display:inline-flex;align-items:center;justify-content:center;padding:0 11px;border:1px solid #d8e9e3;border-radius:8px;background:#fff;color:#087e6b;text-decoration:none;font:700 10px Arial,sans-serif;cursor:pointer}
.account-filter-result{margin:0 0 10px}
.account-role-editor{padding:9px 0 0;border-top:1px solid #edf4f1}
.account-role-form{display:flex;align-items:end;gap:7px;flex-wrap:wrap;margin:0}
.account-role-form label{display:grid;gap:4px;color:#78948e;font-size:9px}
.account-role-form select{min-width:125px;height:31px;padding:0 8px;border:1px solid #d8e9e3;border-radius:8px;background:#fff;color:#476d68;font:10px Arial,sans-serif}
.account-role-form select[name="division"]{min-width:135px}
.account-save-role{min-height:31px;padding:7px 9px;border:1px solid #bfe8d8;border-radius:8px;background:#effbf6;color:#087e6b;font:700 10px Arial,sans-serif;cursor:pointer}
.account-current-note{padding:7px 9px;color:#78948e;font-size:10px}
@media(max-width:1100px){.user-role-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.account-directory-filters{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.user-role-stats{grid-template-columns:1fr}.account-directory-filters{grid-template-columns:1fr}.account-directory-filters button,.account-directory-filters a{width:100%}}
/* Targeted account directory, audit filter, and data-quality pager fixes */
.user-role-stats{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.account-directory .account-directory-filters{grid-template-columns:minmax(0,1fr) 190px auto auto;gap:8px;align-items:end}
.account-directory .account-row{grid-template-columns:minmax(220px,1fr) auto;align-items:start}
.account-directory .account-actions{display:grid!important;grid-template-columns:minmax(165px,.72fr) minmax(360px,1.28fr);gap:8px 12px;align-items:end}
.account-directory .account-role-editor{grid-column:1/-1;min-width:0}
.account-directory .account-role-form{display:grid;grid-template-columns:minmax(130px,1fr) minmax(150px,1fr) auto;gap:8px;align-items:end}
.account-directory .account-access-actions{grid-column:1;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.account-directory .account-reset-form{grid-column:2;display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end;width:100%!important;min-width:0}
.account-directory .account-reset-form .account-password-control{width:100%;min-width:0}
.account-directory .account-reset-form .password-control-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.data-quality-footer{display:flex!important;align-items:center;justify-content:space-between;gap:14px!important;flex-wrap:wrap;line-height:1.4}
.data-quality-pagination{display:flex!important;align-items:center;gap:8px!important;flex-wrap:wrap;white-space:nowrap}
.data-quality-pagination>*{margin:0!important}
.audit-filter-form input[name="audit_q"]{min-width:0}
@media(max-width:1100px){
  .user-role-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .account-directory .account-actions{grid-template-columns:1fr}
  .account-directory .account-reset-form,.account-directory .account-access-actions{grid-column:1}
}
@media(max-width:700px){
  .user-role-stats{grid-template-columns:1fr!important}
  .account-directory .account-directory-filters{grid-template-columns:1fr}
  .account-directory .account-role-form{grid-template-columns:1fr}
  .account-directory .account-reset-form{grid-template-columns:1fr}
}
/* Scoped user-management UI polish */
.account-directory .account-directory-filters{
  grid-template-columns:minmax(220px,1fr) 210px auto auto;
  gap:10px;
  margin:0 0 12px;
  padding:14px;
  border:1px solid #dceee9;
  border-radius:14px;
  background:linear-gradient(135deg,#fbfffd 0%,#f4fbf8 100%);
}
.account-directory .account-directory-filters label{
  gap:6px;
  color:#6c8983;
  font-size:10px;
  font-weight:700;
}
.account-directory .account-directory-filters input,
.account-directory .account-directory-filters select,
.account-directory .account-role-form select{
  height:38px;
  min-width:0;
  padding:0 34px 0 12px;
  border:1px solid #cfe6df;
  border-radius:11px;
  background:#fff;
  color:#245c56;
  font-size:11px;
  transition:border-color .15s,box-shadow .15s,background .15s;
}
.account-directory .account-directory-filters select,
.account-directory .account-role-form select{
  cursor:pointer;
  appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,#12a985 50%),linear-gradient(135deg,#12a985 50%,transparent 50%);
  background-position:calc(100% - 16px) 16px,calc(100% - 11px) 16px;
  background-size:5px 5px,5px 5px;
  background-repeat:no-repeat;
}
.account-directory .account-directory-filters input:focus,
.account-directory .account-directory-filters select:focus,
.account-directory .account-role-form select:focus{
  outline:0;
  border-color:#12ad84;
  box-shadow:0 0 0 3px rgba(18,173,132,.1);
}
.account-directory .account-directory-filters button,
.account-directory .account-directory-filters a{
  height:38px;
  padding:0 14px;
  border-radius:11px;
}
.account-directory .account-list{gap:12px}
.account-directory .account-row{
  padding:16px 18px;
  gap:14px;
  border-color:#d7ebe5;
  border-radius:14px;
  box-shadow:0 7px 18px rgba(18,76,73,.035);
}
.account-directory .account-status-group{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:wrap;
}
.account-directory .account-actions{
  padding-top:14px;
  gap:12px 16px;
}
.account-directory .account-role-editor{padding:12px 0 0}
.account-directory .account-role-form{gap:10px}
.account-directory .account-role-form label{
  gap:5px;
  font-size:10px;
  font-weight:700;
}
.account-directory .account-role-form label:first-of-type{min-width:150px}
.account-directory .account-role-form label:nth-of-type(2){min-width:165px}
.account-directory .account-role-form select{width:100%}
.account-directory .account-save-role{
  height:38px;
  padding:0 15px;
  border-radius:11px;
}
.account-directory .account-reset-form{gap:10px}
.account-directory .account-reset-form .password-field-wrap{height:38px}
.account-directory .account-reset-form .password-field-wrap>input{
  height:38px;
  padding-left:12px;
  border-radius:11px;
  font-size:11px;
}
.account-directory .account-reset-form .password-control-actions{gap:7px}
.account-directory .account-access-actions{gap:8px}
.account-directory .account-action{min-height:32px;padding:7px 11px;border-radius:10px}
@media(max-width:1100px){
  .account-directory .account-directory-filters{grid-template-columns:minmax(0,1fr) 190px auto auto}
  .account-directory .account-actions{grid-template-columns:1fr}
  .account-directory .account-reset-form,.account-directory .account-access-actions{grid-column:1}
}
@media(max-width:700px){
  .account-directory .account-directory-filters{grid-template-columns:1fr}
  .account-directory .account-role-form{grid-template-columns:1fr}
  .account-directory .account-role-form label:first-of-type,
  .account-directory .account-role-form label:nth-of-type(2){min-width:0}
  .account-directory .account-reset-form{grid-template-columns:1fr}
}
/* Scoped workspace-account filter and card alignment */
.account-directory .account-directory-filters{grid-template-columns:minmax(0,1fr) minmax(180px,220px) auto auto;align-items:end;gap:10px;margin-bottom:14px}
.account-directory .account-directory-filters label{min-width:0;gap:6px}
.account-directory .account-directory-filters .select-wrap.custom-select{width:100%;min-width:0}
.account-directory .account-directory-filters .select-button{min-height:38px;padding:0 38px 0 12px;border-radius:11px;font-size:12px;font-weight:600}
.account-directory .account-directory-filters .select-menu{top:calc(100% + 6px);max-height:220px;padding:5px;border-radius:13px;box-shadow:0 16px 30px rgba(18,76,73,.14)}
.account-directory .account-directory-filters .select-option{margin:2px 0;padding:9px 11px;border:1px solid transparent;border-radius:9px;font-size:12px;line-height:1.2}
.account-directory .account-directory-filters .select-option:hover,.account-directory .account-directory-filters .select-option.selected{border-color:#cde9df;background:#eaf8f3;color:#087e6b;font-weight:700}
.account-directory .account-directory-filters .account-filter-submit,.account-directory .account-directory-filters .account-filter-reset{height:38px;padding:0 15px;border-radius:11px}
.account-directory .account-filter-empty{padding:18px 4px;text-align:center}.account-directory .account-row.account-filter-hidden,.account-directory .account-filter-empty.account-filter-hidden{display:none!important}
.account-directory .account-row{grid-template-columns:minmax(0,1fr) auto;gap:0 20px;padding:16px 18px;border-radius:14px}
.account-directory .account-status-group{justify-content:flex-end;align-self:start;min-width:120px}
.account-directory .account-actions{grid-column:1/-1;display:grid!important;grid-template-columns:minmax(190px,.75fr) minmax(360px,1.25fr);gap:12px 18px;align-items:end;margin-top:14px;padding-top:14px;border-top:1px solid #e2efeb}
.account-directory .account-role-editor{grid-column:1/-1;padding:0}
.account-directory .account-role-form{grid-template-columns:minmax(170px,1fr) minmax(190px,1fr) auto;gap:10px;align-items:end}
.account-directory .account-role-form label{min-width:0}
.account-directory .account-role-form label:first-of-type,.account-directory .account-role-form label:nth-of-type(2){min-width:0}
.account-directory .account-role-form .select-wrap.custom-select{width:100%;min-width:0}
.account-directory .account-role-form .select-button{min-height:38px;border-radius:11px;font-size:12px}
.account-directory .account-role-form .select-menu{top:calc(100% + 6px);padding:5px;border-radius:13px}
.account-directory .account-role-form .select-option{margin:2px 0;padding:9px 11px;border-radius:9px;font-size:12px}
.account-directory .account-access-actions{grid-column:1;display:flex;flex-wrap:wrap;gap:8px;align-items:end}
.account-directory .account-reset-form{grid-column:2;display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;width:100%!important;min-width:0}
.account-directory .account-reset-form .password-field-wrap{height:38px}
.account-directory .account-reset-form .password-control-actions{gap:7px}
.account-directory .account-reset-form .account-action{min-height:32px}
@media(max-width:900px){.account-directory .account-directory-filters{grid-template-columns:minmax(0,1fr) minmax(160px,1fr)}.account-directory .account-directory-filters .account-filter-submit,.account-directory .account-directory-filters .account-filter-reset{width:100%}.account-directory .account-actions{grid-template-columns:1fr}.account-directory .account-reset-form{grid-column:1}}
@media(max-width:600px){.account-directory .account-directory-filters{grid-template-columns:1fr}.account-directory .account-row{grid-template-columns:1fr}.account-directory .account-status-group{justify-content:flex-start;margin-top:10px}.account-directory .account-role-form{grid-template-columns:1fr}.account-directory .account-access-actions,.account-directory .account-reset-form{grid-column:1}.account-directory .account-reset-form{grid-template-columns:1fr}}/* Simple workspace account cards */
.account-directory .account-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 20px;padding:14px 18px;border-radius:14px}
.account-directory .account-identity{min-width:0;align-self:start}
.account-directory .account-status-group{display:flex;justify-content:flex-end;align-items:flex-start;gap:7px;min-width:120px;align-self:start}
.account-directory .account-actions{display:grid!important;grid-column:1/-1;grid-template-columns:minmax(0,1fr) minmax(300px,1.2fr);gap:12px 18px;margin-top:13px;padding-top:13px;border-top:1px solid #e2efeb;align-items:end}
.account-directory .account-role-editor{grid-column:1/-1;min-width:0;padding:0;border:0}
.account-directory .account-role-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:10px;align-items:end}
.account-directory .account-role-form label{min-width:0}
.account-directory .account-role-form select{width:100%;min-width:0;height:38px;padding:0 12px;border-radius:11px;font-size:12px}
.account-directory .account-save-role{height:38px;padding:0 15px;border-radius:11px;white-space:nowrap}
.account-directory .account-access-actions{grid-column:1;display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.account-directory .account-reset-form{grid-column:2;display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:10px;width:100%!important;min-width:0;align-items:end}
.account-directory .account-reset-form .account-password-control{min-width:0;width:100%}
.account-directory .account-reset-form .password-field-wrap{height:38px}
.account-directory .account-reset-form .password-field-wrap>input{height:38px;border-radius:11px;font-size:12px}
.account-directory .account-reset-form .password-control-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.account-directory .account-reset-form .account-action{min-height:32px}
@media(max-width:900px){.account-directory .account-actions{grid-template-columns:1fr;gap:10px}.account-directory .account-access-actions,.account-directory .account-reset-form{grid-column:1}.account-directory .account-reset-form{grid-template-columns:minmax(0,1fr) auto}}
@media(max-width:600px){.account-directory .account-row{grid-template-columns:1fr;padding:14px}.account-directory .account-status-group{justify-content:flex-start;margin-top:9px}.account-directory .account-role-form{grid-template-columns:1fr}.account-directory .account-access-actions,.account-directory .account-reset-form{grid-column:1}.account-directory .account-reset-form{grid-template-columns:1fr}}

/* User-management password controls: keep the field and actions on one row. */
.account-directory .account-reset-form{display:block!important;width:100%!important;min-width:0}
.account-directory .account-reset-form .account-password-control{display:flex;align-items:center;gap:8px;width:100%;min-width:0}
.account-directory .account-reset-form .password-field-wrap{flex:1 1 auto;min-width:0}
.account-directory .account-reset-form .password-control-actions{flex:0 0 auto;display:flex;align-items:center;gap:7px;flex-wrap:nowrap}
.account-directory .account-reset-form .password-control-actions .account-action{flex:0 0 auto;white-space:nowrap}
@media(max-width:600px){.account-directory .account-reset-form{grid-template-columns:none}.account-directory .account-reset-form .account-password-control{min-width:0}.account-directory .account-reset-form .password-control-actions{gap:5px}.account-directory .account-reset-form .password-control-actions .account-action{padding-left:6px;padding-right:6px;font-size:9px}}

/* User-management account rows: role, password, divider, then access actions. */
.account-directory .account-actions{
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-areas:"role" "password" "access";
  gap:0!important;
  align-items:stretch;
}
.account-directory .account-role-editor{grid-area:role}
.account-directory .account-reset-form{
  grid-area:password;
  margin-top:10px;
}
.account-directory .account-access-actions{
  grid-area:access;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid #e2efeb;
}
@media(max-width:600px){
  .account-directory .account-actions{grid-template-areas:"role" "password" "access"}
  .account-directory .account-reset-form{margin-top:10px}
  .account-directory .account-access-actions{margin-top:12px}
}
