
:root{
  --navy:#002f5f;
  --navy-dark:#002347;
  --navy-soft:#064376;
  --gold:#f4c400;
  --gold-dark:#d9aa00;
  --ink:#142033;
  --muted:#667085;
  --line:#e6eaf0;
  --bg:#f3f6fa;
  --card:#ffffff;
  --blue:#0b5d98;
  --red:#b42318;
  --green:#0f766e;
  --shadow:0 16px 42px rgba(0,47,95,.12);
  --radius:18px;
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,Arial,Helvetica,sans-serif;background:var(--bg);color:var(--ink)}
a{color:var(--navy);text-decoration:none}a:hover{text-decoration:underline}
.site-header{background:#fff;color:var(--ink);padding:0 0 0;border-bottom:1px solid var(--line);box-shadow:0 8px 30px rgba(0,47,95,.08);position:sticky;top:0;z-index:10}
.utility-bar{background:var(--navy-dark);color:#fff;font-size:.78rem;padding:6px 28px;display:flex;align-items:center;justify-content:space-between;gap:14px}.utility-bar span{opacity:.96}.utility-bar a{color:#fff;text-decoration:none;font-weight:800}.utility-bar a:hover{text-decoration:underline}.utility-contact,.utility-status{display:flex;align-items:center;gap:6px}.utility-icon{font-size:.92rem;line-height:1}
.header-main{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 28px;background:#fff}
.brand{display:flex;align-items:center;gap:13px;color:var(--ink)}.brand:hover{text-decoration:none}.brand strong{display:block;font-size:1.22rem;letter-spacing:.02em;color:var(--navy);font-weight:900}.brand small{display:block;color:#475467;font-size:.78rem;font-weight:700;margin-top:2px}.logo-mark{width:98px;min-width:98px;height:72px;display:flex;align-items:center;justify-content:flex-start;background:transparent;border:0;box-shadow:none;overflow:visible}.logo-mark img,.site-logo-img{width:92px!important;height:72px!important;max-width:92px!important;max-height:72px!important;object-fit:contain;display:block}
.top-nav{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.top-nav a{color:var(--ink);padding:10px 12px;border-radius:999px;font-weight:800;font-size:.88rem}.top-nav a.active,.top-nav a:hover{background:#edf4fb;color:var(--navy);text-decoration:none}.top-nav a.logout{background:var(--gold);color:#111827}.top-nav a.logout:hover{background:var(--gold-dark);color:#111827}
.nav-menu{position:relative;display:inline-flex}.nav-menu-toggle{border:0;background:transparent;color:var(--ink);padding:10px 12px;border-radius:999px;font-weight:800;font-size:.88rem;cursor:pointer}.nav-menu.active .nav-menu-toggle,.nav-menu-toggle:hover{background:#edf4fb;color:var(--navy)}.nav-menu-list{display:none;position:absolute;right:0;top:calc(100% + 8px);min-width:210px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 44px rgba(0,47,95,.16);padding:8px;z-index:50}.nav-menu:hover .nav-menu-list,.nav-menu:focus-within .nav-menu-list{display:grid;gap:4px}.nav-menu-list a{display:block;border-radius:10px;padding:10px 12px;white-space:nowrap}.nav-menu-list a.active{background:#edf4fb;color:var(--navy)}
.page{width:min(1240px,calc(100% - 32px));margin:28px auto 56px}.site-footer{padding:34px 28px;background:var(--navy-dark);color:#dbeafe;display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;font-size:.9rem}.site-footer strong{color:#fff}.site-footer a{color:#fff;font-weight:800}.footer-help{text-align:right}.footer-left,.footer-help{line-height:1.55}
.hero{position:relative;overflow:hidden;background:linear-gradient(135deg,rgba(0,47,95,.98),rgba(0,47,95,.88)),radial-gradient(circle at 85% 20%,rgba(244,196,0,.35),transparent 34%);border:0;border-radius:22px;padding:34px;box-shadow:var(--shadow);display:grid;grid-template-columns:1.25fr .75fr;gap:24px;align-items:center;color:#fff}.hero:before{content:"";position:absolute;inset:auto -80px -120px auto;width:380px;height:380px;background:rgba(255,255,255,.06);border-radius:50%}.hero h1{font-size:2.25rem;margin:0 0 8px;color:#fff;line-height:1.06}.hero p{color:#dbeafe;font-size:1.05rem;line-height:1.55}.hero .login-card,.hero .card{position:relative}.eyebrow{display:inline-flex;gap:8px;align-items:center;color:var(--gold);font-weight:900;text-transform:uppercase;letter-spacing:.08em;font-size:.78rem;margin-bottom:8px}
.login-card,.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow)}.card h2,.card h3{color:var(--navy)}.grid{display:grid;gap:18px}.grid.cols-4{grid-template-columns:repeat(4,1fr)}.grid.cols-3{grid-template-columns:repeat(3,1fr)}.grid.cols-2{grid-template-columns:repeat(2,1fr)}.kpi{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:0 8px 24px rgba(0,47,95,.07);position:relative;overflow:hidden;display:block;color:var(--ink)}.kpi-link:hover{text-decoration:none;transform:translateY(-1px);box-shadow:0 12px 30px rgba(0,47,95,.11)}.kpi:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--gold)}.kpi span{color:var(--muted);font-size:.9rem;font-weight:700}.kpi strong{display:block;margin-top:8px;font-size:2rem;color:var(--navy)}.toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin:0 0 18px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:8px;padding:11px 16px;background:var(--gold);color:#111827;font-weight:900;cursor:pointer;box-shadow:0 8px 18px rgba(244,196,0,.25)}.btn:hover{text-decoration:none;background:var(--gold-dark)}.btn.secondary{background:var(--navy);color:#fff;box-shadow:0 8px 18px rgba(0,47,95,.22)}.btn.secondary:hover{background:var(--navy-dark)}.btn.light{background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:none}.btn.small{padding:7px 10px;font-size:.85rem}input,select,textarea{width:100%;border:1px solid #d0d5dd;border-radius:12px;padding:11px 12px;font:inherit;background:#fff}input:focus,select:focus,textarea:focus{outline:3px solid #dbeafe;border-color:var(--blue)}input[type="checkbox"]{width:auto;display:inline-block;vertical-align:middle;margin:0 8px 0 0}.check-label{display:flex;align-items:center;gap:8px;margin:0 0 12px 0}.check-label input[type="checkbox"]{margin:0;flex:0 0 auto}textarea{min-height:120px;resize:vertical}label{display:block;font-weight:900;margin-bottom:6px;color:#243047}.form-row{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-bottom:16px}.form-row.three{grid-template-columns:repeat(3,1fr)}.form-actions{display:flex;gap:10px;flex-wrap:wrap}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(0,47,95,.06)}table{width:100%;border-collapse:collapse}th,td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}th{background:#f8fafc;font-size:.82rem;letter-spacing:.04em;text-transform:uppercase;color:#475467}tr:hover td{background:#f8fbff}.badge{display:inline-block;border-radius:999px;padding:5px 9px;font-size:.78rem;font-weight:900}.badge.open{background:#dcfce7;color:#166534}.badge.closed{background:#e5e7eb;color:#374151}.badge.pending{background:#fef3c7;color:#92400e}.badge.red{background:#fee2e2;color:#991b1b}.muted{color:var(--muted)}.filters{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:10px;margin-bottom:14px}.flash{padding:14px 16px;border-radius:14px;margin-bottom:18px;font-weight:800}.flash.success{background:#dcfce7;color:#166534}.flash.error{background:#fee2e2;color:#991b1b}.flash.info{background:#dbeafe;color:#1e40af}.profile{display:flex;align-items:center;gap:10px;color:#fff}.mini{font-size:.82rem;color:var(--muted)}.chart-bar{height:14px;border-radius:99px;background:#e5e7eb;overflow:hidden}.chart-bar span{display:block;height:100%;background:linear-gradient(90deg,var(--navy),var(--gold))}.note-list{display:grid;gap:10px}.note{border-left:4px solid var(--gold);background:#fffdf0;border-radius:12px;padding:12px}.notice{background:#fff8d6;border:1px solid #f7df99;color:#7a5a00;border-radius:16px;padding:14px;margin-bottom:16px}.role-pill{font-size:.78rem;font-weight:900;background:#edf4fb;color:var(--navy);border-radius:99px;padding:5px 9px}.danger-zone{border-color:#fecaca;background:#fff1f2}
.section-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.section-title-row h2{margin:0}.recent-more-text{font-size:1rem;line-height:1.45;color:var(--ink);font-weight:800;margin:14px 0 0}.recent-more-text a{color:var(--navy)}
@media(max-width:900px){.hero{grid-template-columns:1fr}.grid.cols-4,.grid.cols-3,.grid.cols-2,.form-row,.form-row.three,.filters{grid-template-columns:1fr}.header-main{align-items:flex-start;flex-direction:column}.top-nav{width:100%}.top-nav a{background:#f3f6fa}.utility-bar{padding:6px 16px}.page{width:min(100% - 20px,1240px)}}

.password-wrap{display:flex;gap:8px}.password-wrap input{flex:1}.password-toggle{border:1px solid var(--line);background:#fff;border-radius:12px;padding:0 12px;font-weight:900;cursor:pointer}.chart-bar{display:block}
.form-row.two{grid-template-columns:repeat(2,1fr)}
code{background:#f8fafc;border:1px solid var(--line);border-radius:6px;padding:2px 5px}
hr{border:0;border-top:1px solid var(--line);margin:18px 0}.stacked{display:block}.priority{display:inline-block;border-radius:999px;padding:5px 9px;font-size:.78rem;font-weight:900;background:#eef2ff;color:#3730a3}.priority.urgent{background:#ffedd5;color:#9a3412}.priority.deadline-sensitive{background:#fef3c7;color:#92400e}.priority.critical{background:#fee2e2;color:#991b1b}.priority.normal{background:#e5e7eb;color:#374151}.filters{grid-template-columns:repeat(6,minmax(140px,1fr))}.table-wrap td .badge{margin-top:4px}.card table .priority{white-space:nowrap}
@media print{.site-header,.site-footer,.toolbar .form-actions,.btn{display:none!important}.page{width:100%;margin:0}.card,.table-wrap{box-shadow:none}}

.audit-details{margin:8px 0 8px 18px;padding:0;color:var(--text);font-size:.92rem;line-height:1.45}
.audit-details li{margin:2px 0}


/* Dashboard refinement v11 */
.dashboard-greeting{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px;font-size:1.28rem;font-weight:900;color:var(--navy);line-height:1.25}
.dashboard-greeting .role-pill{font-size:.78rem;color:var(--navy)}
.dashboard-top-grid{display:grid;grid-template-columns:minmax(520px,1.05fr) minmax(320px,.95fr);gap:18px;align-items:stretch}
.kpi-compact-grid{display:grid;grid-template-columns:repeat(4,minmax(115px,1fr));gap:12px}
.kpi-compact{min-height:112px;padding:16px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}
.kpi-compact:before{top:0;left:0;right:0;bottom:auto;width:auto;height:5px}
.kpi-compact span{font-size:.78rem;text-transform:uppercase;letter-spacing:.03em;line-height:1.25}
.kpi-compact strong{font-size:2rem;margin-top:6px}
.quote-card{background:linear-gradient(135deg,var(--navy),var(--navy-dark));color:#fff;border-radius:18px;padding:20px 24px;box-shadow:var(--shadow);border:1px solid rgba(255,255,255,.12);position:relative;overflow:hidden;min-height:112px;display:flex;flex-direction:column;justify-content:center}
.quote-card:after{content:"";position:absolute;right:-70px;bottom:-100px;width:230px;height:230px;border-radius:50%;background:rgba(244,196,0,.14)}
.quote-label{display:inline-flex;color:var(--gold);font-size:.76rem;text-transform:uppercase;letter-spacing:.08em;font-weight:900;margin-bottom:6px}
.quote-card blockquote{margin:0;position:relative;font-size:1.12rem;font-weight:900;line-height:1.35;max-width:780px}
.quote-card p{margin:8px 0 0;color:#dbeafe;font-weight:700;font-size:.92rem;position:relative}
.dashboard-main-grid{display:grid;grid-template-columns:2fr 1fr;gap:18px;align-items:start}
.recent-card table th,.recent-card table td{padding:11px 12px;white-space:nowrap}
.aging-card{min-height:unset}.aging-card h2{margin-top:0}
@media(max-width:1100px){.dashboard-top-grid,.dashboard-main-grid{grid-template-columns:1fr}.kpi-compact-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.kpi-compact-grid{grid-template-columns:1fr}.dashboard-greeting{font-size:1.08rem}.quote-card blockquote{font-size:1rem}}


/* Dashboard quote card refinement v12 */
.quote-card{background:linear-gradient(135deg,#002347 0%,#002f5f 52%,#064376 100%);border:1px solid rgba(244,196,0,.35);box-shadow:0 18px 48px rgba(0,47,95,.20);padding:24px 28px 22px 30px;isolation:isolate}
.quote-card:before{content:"\201C";position:absolute;left:18px;top:-20px;font-size:7rem;line-height:1;color:rgba(244,196,0,.22);font-family:Georgia,serif;font-weight:900;z-index:-1}
.quote-card:after{right:-52px;bottom:-80px;width:235px;height:235px;background:radial-gradient(circle,rgba(244,196,0,.28),rgba(244,196,0,.06) 58%,transparent 60%)}
.quote-label{background:rgba(244,196,0,.14);border:1px solid rgba(244,196,0,.28);border-radius:999px;padding:6px 10px;width:max-content;margin-bottom:10px}
.quote-card blockquote{font-size:1.22rem;letter-spacing:.01em;text-shadow:0 1px 0 rgba(0,0,0,.12)}
.quote-card p{font-size:.96rem;color:#eef6ff;margin-top:12px}
.quote-meta{display:inline-flex;margin-top:12px;color:var(--gold);font-weight:900;font-size:.78rem;letter-spacing:.03em;text-transform:uppercase}
@media(max-width:640px){.quote-card blockquote{font-size:1.05rem}.quote-card{padding:20px}}

/* v13 dashboard aging refinements */
.dashboard-main-grid{align-items:stretch}
.dashboard-main-grid>.card{height:100%}
.aging-card{display:flex;flex-direction:column;min-height:100%}
.aging-intro{margin-top:-4px;margin-bottom:16px;line-height:1.45}
.aging-list{display:grid;gap:14px;flex:1;align-content:start}
.aging-row{display:block;border:1px solid var(--line);border-radius:14px;padding:14px;background:#fff;color:var(--ink);box-shadow:0 6px 18px rgba(0,47,95,.05)}
.aging-row:hover{text-decoration:none;transform:translateY(-1px);box-shadow:0 10px 24px rgba(0,47,95,.10)}
.aging-row-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.aging-row-top strong{color:var(--navy)}
.aging-row-top em{font-style:normal;font-weight:900;color:var(--muted);white-space:nowrap}
.aging-row .chart-bar{display:block;height:12px}
.dropdown-editor{min-height:180px;font-family:inherit;line-height:1.45}.notice-box{background:#fff7d6;border:1px solid #f5d45c;border-radius:14px;padding:14px;margin:10px 0 18px;color:#1d2736}

/* v28 dropdown manager drag-and-drop sorting */
.dropdown-sort-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border-bottom:1px solid var(--line);background:#f8fafc;min-width:720px}
.dropdown-sort-toolbar p{margin:4px 0 0}.dropdown-sort-table th,.dropdown-sort-table td{vertical-align:middle}.dropdown-sort-row{transition:background .15s ease,opacity .15s ease}.dropdown-sort-row.dragging{opacity:.45;background:#fff8d6}.drag-handle{font-size:1.25rem;font-weight:900;text-align:center;cursor:grab;color:var(--navy);user-select:none}.drag-handle:active{cursor:grabbing}.dropdown-active-label{margin:0}.btn.danger{background:#fee2e2;color:#991b1b;border:1px solid #fecaca;box-shadow:none}.btn.danger:hover{background:#fecaca;color:#7f1d1d}
@media(max-width:760px){.dropdown-sort-toolbar{align-items:flex-start;flex-direction:column;min-width:640px}}

/* Interactive guided tour */
.tour-nav-btn{border:1px solid var(--navy);background:var(--navy);color:#fff;border-radius:999px;padding:9px 14px;font-weight:900;cursor:pointer;box-shadow:0 3px 10px rgba(0,47,95,.16)}.tour-nav-btn:hover{background:#073b73;color:#fff}.tour-settings-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 4px}.tour-reset-note{margin-top:8px}
.tour-overlay{position:fixed;inset:0;background:rgba(15,23,42,.62);z-index:9998;display:none}.tour-overlay.active{display:block}.tour-highlight{position:fixed;border:3px solid var(--gold);border-radius:16px;box-shadow:0 0 0 9999px rgba(15,23,42,.62),0 12px 32px rgba(0,0,0,.25);z-index:9999;pointer-events:none;transition:all .2s ease}.tour-card{position:fixed;z-index:10000;width:min(420px,calc(100vw - 32px));background:#fff;color:var(--ink);border-radius:18px;box-shadow:0 22px 60px rgba(0,0,0,.28);padding:20px;border:1px solid var(--line)}.tour-card h3{margin:0 0 8px;color:var(--navy);font-size:1.18rem}.tour-card p{margin:0 0 14px;line-height:1.45}.tour-progress{font-size:.82rem;font-weight:900;color:var(--muted);margin-bottom:8px;text-transform:uppercase;letter-spacing:.04em}.tour-actions{display:flex;gap:8px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-top:14px}.tour-actions-left,.tour-actions-right{display:flex;gap:8px;flex-wrap:wrap}.tour-card .btn{box-shadow:none}.tour-card .btn.linklike{background:transparent;color:var(--navy);border:0;padding:8px;box-shadow:none}.tour-card .btn.linklike:hover{text-decoration:underline;background:transparent}.tour-center{top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important}.tour-page-link{display:inline-flex;margin-top:4px;font-weight:900;color:var(--navy)}
@media (max-width:700px){.tour-highlight{display:none}.tour-card{left:16px!important;right:16px!important;top:auto!important;bottom:16px!important;transform:none!important;width:auto}.tour-nav-btn{width:100%;justify-content:center}}
.check-row{display:flex;align-items:center;gap:10px;font-weight:800;margin:14px 0}.check-row input{width:auto;min-width:18px;height:18px}.mini{font-size:.88rem;color:var(--muted)}


/* v32 page-specific tour chooser */
.tour-choice-modal{position:fixed;inset:0;background:rgba(15,23,42,.58);z-index:10002;display:flex;align-items:center;justify-content:center;padding:18px}
.tour-choice-card{width:min(460px,100%);background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.28);padding:22px}
.tour-choice-card h3{margin:0 0 8px;color:var(--navy)}.tour-choice-card p{margin:0 0 16px;line-height:1.45;color:var(--muted)}.tour-choice-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.tour-choice-actions .btn.linklike{background:transparent;color:var(--navy);border:0;box-shadow:none}

/* v33 admin hub and restored admin cards */
.nav-menu{align-items:center;background:transparent;border-radius:999px}.nav-menu-main{display:inline-flex!important;align-items:center;border-top-right-radius:0!important;border-bottom-right-radius:0!important;margin-right:0}.nav-menu-toggle{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-5px;padding-left:8px;padding-right:10px}.nav-menu.active .nav-menu-main,.nav-menu-main.active{background:#edf4fb;color:var(--navy)}
.admin-tools-toolbar{margin-bottom:18px}.admin-tools-grid{display:grid;grid-template-columns:repeat(2,minmax(260px,1fr));gap:16px;margin-bottom:18px}.admin-tool-card{display:flex;align-items:flex-start;gap:14px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:0 10px 28px rgba(0,47,95,.08);color:var(--ink);min-height:132px}.admin-tool-card:hover{text-decoration:none;transform:translateY(-2px);box-shadow:0 16px 36px rgba(0,47,95,.13);border-color:#d6e5f2}.admin-tool-icon{width:48px;height:48px;min-width:48px;border-radius:16px;background:#edf4fb;display:flex;align-items:center;justify-content:center;font-size:1.55rem}.admin-tool-content strong{display:block;color:var(--navy);font-size:1.08rem;margin-bottom:6px}.admin-tool-content em{display:block;font-style:normal;color:var(--muted);line-height:1.42;font-size:.94rem}.admin-help-card{margin-top:4px}.invite-layout{display:grid;grid-template-columns:minmax(320px,420px) minmax(0,1fr);gap:18px;align-items:start}.invite-form-card h2,.invite-log-card h2{margin-top:0}.invite-log-card .table-wrap{box-shadow:none}.notice a{font-weight:900;color:var(--navy);word-break:break-all}
@media(max-width:900px){.admin-tools-grid,.invite-layout{grid-template-columns:1fr}.nav-menu{width:auto}.nav-menu-list{left:0;right:auto}.nav-menu-main{background:#f3f6fa}}

/* v34 admin menu hover stability fix */
.nav-menu{padding-bottom:10px;margin-bottom:-10px}
.nav-menu-list{top:100%;margin-top:0;padding-top:12px}
.nav-menu-list::before{content:"";position:absolute;left:0;right:0;top:-10px;height:10px;background:transparent}
@media(max-width:900px){.nav-menu{padding-bottom:0;margin-bottom:0}}

/* v35 admin restoration */
.status-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 10px;font-weight:800;font-size:.82rem;white-space:nowrap;border:1px solid transparent}
.status-open{background:#dcfce7;color:#166534;border-color:#bbf7d0}.status-used{background:#e5e7eb;color:#374151;border-color:#d1d5db}.status-sent{background:#dbeafe;color:#1d4ed8;border-color:#bfdbfe}.status-logged{background:#fef3c7;color:#92400e;border-color:#fde68a}
.actions-cell{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.inline-action-form{display:inline;margin:0}.responsive-inline-form{display:grid;grid-template-columns:2fr 1fr auto;gap:14px;align-items:end}.responsive-inline-form p{margin:0}.align-end{align-self:end}.table-inline-form{margin:0}.table-wrap td form{margin:0}.invite-log-card table th,.invite-log-card table td{vertical-align:middle}.invite-log-card form{margin:0}.btn.small.secondary{padding:7px 10px}
@media(max-width:760px){.responsive-inline-form{grid-template-columns:1fr}.actions-cell{align-items:flex-start;flex-direction:column}}


/* v36 admin polish fixes */
.user-silhouette-icon{font-size:1.8rem;line-height:1}
.representative-manager-table{border-collapse:collapse}
.representative-manager-table th,.representative-manager-table td{border-bottom:1px solid var(--line)}
.representative-manager-table .actions-cell{display:table-cell;vertical-align:middle;white-space:nowrap}
.action-buttons{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.action-buttons form{margin:0}
.representative-manager-table .status-badge{vertical-align:middle}
@media(max-width:760px){.action-buttons{align-items:flex-start;flex-direction:column}.representative-manager-table .actions-cell{white-space:normal}}

/* v37 Tour Manager */
.tour-manager-form .card{overflow:visible}.tour-step-editor-list{display:grid;gap:14px;margin-top:14px}.tour-step-editor-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px;box-shadow:0 8px 22px rgba(0,47,95,.06);transition:opacity .15s ease,background .15s ease,box-shadow .15s ease}.tour-step-editor-card.dragging{opacity:.55;background:#fff8d6;box-shadow:0 14px 30px rgba(0,47,95,.13)}.tour-step-editor-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}.tour-step-editor-head strong{color:var(--navy);margin-right:auto}.tour-step-editor-card label{display:block;margin:10px 0}.tour-step-editor-card textarea{width:100%;resize:vertical}.locked-target{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:12px;padding:10px;margin:12px 0 0;color:var(--muted);font-size:.9rem}.locked-target code{color:var(--navy);font-weight:800;white-space:normal;word-break:break-word}.switch-row{display:inline-flex;align-items:center;gap:8px;font-weight:900;color:var(--navy)}.switch-row input{width:auto;min-width:18px;height:18px}.switch-row.compact{margin:0}.sticky-save-actions{position:sticky;bottom:10px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px;margin-top:16px;box-shadow:0 10px 30px rgba(0,47,95,.10)}
@media(max-width:760px){.tour-step-editor-head{align-items:flex-start;flex-direction:column}.tour-step-editor-head strong{margin-right:0}.sticky-save-actions{position:static}}

/* v38 Tour Manager page selector cleanup */
.tour-page-selector-card{margin-bottom:18px}
.tour-page-select-form{max-width:620px;margin-top:14px}
.tour-page-select-form label{margin-bottom:8px}
.tour-page-select-form select{font-weight:800;color:var(--navy);background:#fff}
.tour-page-summary{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:14px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#f8fafc;color:var(--ink)}
.tour-page-summary strong{color:var(--navy)}

.login-card h2{color:var(--navy);margin-top:0}.footer-status-pill{display:inline-flex;align-items:center;justify-content:center;background:#16a34a;color:#fff;border-radius:999px;padding:3px 9px;margin:0 6px;font-size:.78rem;font-weight:900;line-height:1.2}


/* v25.3 header/footer visibility fixes */
.utility-bar{justify-content:space-between!important;}
.utility-contact{margin-left:auto;}
.utility-contact,.utility-contact a,.utility-contact a:visited,.utility-status{color:#ffffff!important;}
.utility-contact a{font-weight:900;text-decoration:none;}
.utility-contact a:hover{text-decoration:underline;}
.footer-left{font-weight:800;color:#dbeafe;}
.footer-help a,.footer-help a:visited{color:#ffffff!important;font-weight:900;}
@media(max-width:700px){.utility-bar{align-items:flex-start;flex-direction:column}.utility-contact{margin-left:0}.footer-help{text-align:left}}

/* v25.4 login/header/footer email/date style refinements */
.utility-contact a,
.utility-contact a:visited,
.footer-help a,
.footer-help a:visited{
  color:var(--gold)!important;
  font-weight:400!important;
}
.utility-contact a:hover,
.footer-help a:hover{
  color:var(--gold)!important;
  text-decoration:underline;
}
.footer-left{
  font-size:1.22rem!important;
  font-weight:900;
  color:#ffffff;
}
@media(max-width:700px){.footer-left{font-size:1.08rem!important}}

/* v25.6 case document manager */
.document-upload-box,.document-upload-form{background:#f8fafc;border:1px solid var(--line);border-radius:16px;padding:16px;margin:18px 0}.document-upload-box h2,.documents-card h2{margin-top:0}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.section-head h2{margin:0 0 4px}.documents-table th,.documents-table td{vertical-align:middle}.doc-thumb{width:58px;height:58px;border:1px solid var(--line);border-radius:12px;background:#f8fafc;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;color:var(--navy);font-weight:900;font-size:.78rem;box-shadow:0 5px 14px rgba(0,47,95,.07);text-decoration:none}.doc-thumb:hover{text-decoration:none;border-color:#bfd7ef}.doc-thumb.image img{width:100%;height:100%;object-fit:cover;display:block}.doc-thumb-pdf{background:#fff1f2;color:#991b1b}.doc-thumb-doc,.doc-thumb-docx{background:#dbeafe;color:#1d4ed8}.doc-thumb-xls,.doc-thumb-xlsx{background:#dcfce7;color:#166534}.doc-thumb-txt,.doc-thumb-csv{background:#fef3c7;color:#92400e}.doc-actions{display:flex;gap:8px;flex-wrap:wrap}.paperclip-indicator{display:inline-flex;align-items:center;gap:2px;border:1px solid #f3d24d;background:#fff8d6;color:#5c4400;border-radius:999px;padding:2px 7px;font-size:.78rem;font-weight:900;margin-left:6px;white-space:nowrap}.other-document-wrap{margin-top:0}@media(max-width:900px){.section-head{flex-direction:column}.documents-table th,.documents-table td{white-space:normal}.doc-actions{flex-direction:column}}

/* v25.7 case view notes/documents layout */
.case-notes-docs-grid{
  display:grid;
  grid-template-columns:minmax(280px,1fr) minmax(0,2fr);
  gap:18px;
  align-items:start;
}
.case-notes-docs-grid .documents-card{min-width:0;}
.case-notes-docs-grid .dated-notes-card{min-width:0;}
@media(max-width:1000px){
  .case-notes-docs-grid{grid-template-columns:1fr;}
}

/* v25.9 Invitation list width cleanup */
.invitation-log-table th,.invitation-log-table td{white-space:nowrap}.invitation-log-table th:first-child,.invitation-log-table td:first-child{min-width:230px}.role-under-name,.invitee-role-small{display:block!important;clear:both!important;margin-top:3px!important;font-size:10px!important;line-height:1.1!important;color:var(--muted)!important;font-weight:400!important;text-transform:none!important}.invitee-name{display:block!important;font-weight:700!important;line-height:1.2!important}.invitee-cell{white-space:normal!important;vertical-align:middle!important}
@media(max-width:1100px){.invitation-log-table th,.invitation-log-table td{white-space:normal}.invitation-log-table th:nth-child(2),.invitation-log-table td:nth-child(2){word-break:break-word}}


/* v25.14 - Invitation log role size correction */
.invitation-log-table .invitee-cell {
  white-space: normal !important;
  vertical-align: middle !important;
}
.invitation-log-table .invitee-cell .invitee-name {
  display: block !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
}
.invitation-log-table .invitee-cell .invitee-role-small {
  display: block !important;
  clear: both !important;
  width: 100% !important;
  margin-top: 2px !important;
  font-size: 8px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  color: #6b7280 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}


/* v25.15 - Force invitation role value to be considerably smaller and on its own line */
.invitation-log-table td.invitee-cell .invitee-role-small,
table.invitation-log-table .invitee-cell div.invitee-role-small {
  display: block !important;
  clear: both !important;
  width: 100% !important;
  margin-top: 2px !important;
  font-size: 7px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  color: #6b7280 !important;
  text-transform: none !important;
}


/* v25.16 - Invitation log compact layout */
.invitation-log-table th:nth-child(2),
.invitation-log-table td:nth-child(2),
.invitation-log-table th:nth-child(3),
.invitation-log-table td:nth-child(3){
  width:105px;
}
.invitation-log-table td.invitee-cell,
table.invitation-log-table .invitee-cell{
  white-space:nowrap !important;
  min-width:260px !important;
}
.invitation-log-table .invitee-cell .invitee-name{
  display:block !important;
  white-space:nowrap !important;
  font-size:14px !important;
  line-height:1.15 !important;
  font-weight:700 !important;
}
.invitation-log-table td.invitee-cell .invitee-role-small,
table.invitation-log-table .invitee-cell div.invitee-role-small{
  display:block !important;
  width:100% !important;
  margin-top:2px !important;
  font-size:10px !important;
  line-height:1.05 !important;
  font-weight:400 !important;
  color:#6b7280 !important;
  white-space:nowrap !important;
  text-transform:none !important;
}
@media(max-width:900px){
  .invitation-log-table td.invitee-cell,
  table.invitation-log-table .invitee-cell,
  .invitation-log-table .invitee-cell .invitee-name,
  table.invitation-log-table .invitee-cell div.invitee-role-small{
    white-space:normal !important;
  }
}


/* v25.17 - Invitation log forced invitee layout */
.invitation-log-table-fixed{
  table-layout:auto !important;
  min-width:760px !important;
}
.invitation-log-table-fixed .invitee-col{width:240px !important;}
.invitation-log-table-fixed .date-col{width:95px !important;}
.invitation-log-table-fixed .status-col{width:105px !important;}
.invitation-log-table-fixed .actions-col{width:125px !important;}
.invitation-log-table-fixed th,
.invitation-log-table-fixed td{padding:10px 12px !important;}
.invitation-log-table-fixed td.invitee-cell{
  min-width:240px !important;
  white-space:nowrap !important;
}
.invitation-log-table-fixed .invitee-name{
  display:block !important;
  white-space:nowrap !important;
  font-size:14px !important;
  line-height:1.15 !important;
  font-weight:700 !important;
}
.invitation-log-table-fixed .invitee-role-small{
  display:block !important;
  white-space:nowrap !important;
  font-size:9.25px !important;
  line-height:1.05 !important;
  font-weight:400 !important;
  color:#6b7280 !important;
  margin-top:2px !important;
}

/* v25.20 Case Documents full-row layout, document delete controls, and letter thumbnails */
.case-documents-full{width:100%;}
.case-notes-logs-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:18px;
  align-items:start;
}
.document-bulk-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin:0 0 12px;
  flex-wrap:wrap;
}
.documents-table-wide{
  table-layout:auto;
  min-width:920px;
}
.documents-table-wide th,.documents-table-wide td{vertical-align:middle;}
.documents-table-wide .doc-check-col{width:60px;text-align:center;}
.documents-table-wide .doc-preview-col{width:78px;}
.documents-table-wide .doc-type-col{min-width:240px;width:28%;}
.documents-table-wide .doc-short-col{min-width:260px;width:32%;}
.documents-table-wide .doc-date-col{width:95px;}
.documents-table-wide .doc-file-col{width:85px;}
.documents-table-wide .doc-actions-col{width:140px;}
.documents-table-wide input[type="checkbox"]{width:18px;height:18px;accent-color:var(--navy);}
.doc-thumb{
  width:48px!important;
  height:66px!important;
  border-radius:6px!important;
  background:#fff!important;
  position:relative;
  box-shadow:0 7px 16px rgba(0,47,95,.12)!important;
}
.doc-thumb:before{
  content:"";
  position:absolute;
  inset:7px 8px auto 8px;
  height:2px;
  background:#d1d5db;
  box-shadow:0 8px 0 #e5e7eb,0 16px 0 #e5e7eb,0 24px 0 #e5e7eb;
  opacity:.85;
}
.doc-thumb span{position:relative;z-index:1;margin-top:35px;font-size:.7rem;line-height:1;font-weight:900;}
.doc-thumb.image img{width:100%;height:100%;object-fit:cover;display:block;position:relative;z-index:2;}
.doc-thumb.image:before{display:none;}
.doc-thumb-pdf{border-color:#fecdd3!important;color:#991b1b!important;}
.doc-thumb-doc,.doc-thumb-docx{border-color:#bfdbfe!important;color:#1d4ed8!important;}
.doc-thumb-xls,.doc-thumb-xlsx{border-color:#bbf7d0!important;color:#166534!important;}
.doc-thumb-txt,.doc-thumb-csv{border-color:#fde68a!important;color:#92400e!important;}
.doc-top-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end;}
/* v25.21 - Keep Dated Case Notes and Activity Log together on the same row on normal screens */
.case-notes-logs-grid{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  gap:18px !important;
  align-items:start !important;
}
.case-notes-logs-grid > .card{
  min-width:0 !important;
  width:auto !important;
}
@media(max-width:1000px){
  .documents-table-wide{min-width:840px;}
}
@media(max-width:760px){
  .case-notes-logs-grid{grid-template-columns:1fr !important;}
  .document-bulk-actions{justify-content:flex-start;}
}

/* v25.22 - document type dropdown manager + portrait document thumbnails */
.documents-table .doc-thumb.doc-thumb-letter,
.documents-table-wide .doc-thumb.doc-thumb-letter{
  width:52px!important;
  min-width:52px!important;
  max-width:52px!important;
  height:72px!important;
  min-height:72px!important;
  max-height:72px!important;
  aspect-ratio:8.5 / 11!important;
  border-radius:6px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.documents-table .doc-thumb.doc-thumb-letter.image img,
.documents-table-wide .doc-thumb.doc-thumb-letter.image img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
}


/* v25.24 representative profile manager */
.representative-profile-form{grid-template-columns:repeat(6,minmax(130px,1fr)) auto}
.representative-manager-table input,.representative-manager-table select{min-width:0;width:100%}
.representative-manager-table .mini{display:block;margin-top:3px;font-size:.68rem;color:#64748b}
@media(max-width:1100px){.representative-profile-form{grid-template-columns:repeat(2,minmax(180px,1fr))}.representative-profile-form .align-end{grid-column:1/-1}}
@media(max-width:680px){.representative-profile-form{grid-template-columns:1fr}}

/* v25.27 - Protected member contact fields */
.protected-contact {
  display: inline-block;
  min-width: 90px;
  letter-spacing: 2px;
  color: #4b5563;
  font-weight: 700;
}

/* v25.32 role and committee foundation */
.role-editor-form .permissions-details,
.permissions-details{border:1px solid var(--line);border-radius:14px;background:#f8fafc;padding:12px;margin:10px 0}.permissions-details summary{cursor:pointer;font-weight:900;color:var(--navy)}.permissions-grid{display:grid;grid-template-columns:repeat(2,minmax(260px,1fr));gap:8px;margin-top:12px}.permissions-grid label{display:grid;grid-template-columns:auto 1fr;gap:8px 10px;align-items:start;border:1px solid #e5edf5;background:#fff;border-radius:12px;padding:10px;font-weight:800}.permissions-grid input{margin-top:2px}.permissions-grid em{grid-column:2;color:var(--muted);font-style:normal;font-size:.76rem;font-weight:700}.permissions-grid.compact{grid-template-columns:1fr;max-height:300px;overflow:auto}.permissions-details.compact{padding:8px;margin:0}.role-manager-table textarea{width:100%;min-width:240px;border:1px solid var(--line);border-radius:10px;padding:8px;font-family:inherit}.rep-roles-cell select{min-width:190px}.rep-extra-roles{margin-top:6px}.rep-extra-roles summary{cursor:pointer;color:var(--navy);font-weight:800;font-size:.84rem}.rep-role-checks{display:flex;flex-direction:column;gap:6px}.small-check{display:block;margin:5px 0;font-size:.84rem;font-weight:700;color:var(--ink)}.small-check input{width:auto;min-width:14px;margin-right:5px}.representative-manager-table .mini{display:block;margin-top:4px}.form-row.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.role-manager-table input,.role-manager-table select,.representative-manager-table input,.representative-manager-table select{min-width:0}
@media(max-width:900px){.permissions-grid,.form-row.three{grid-template-columns:1fr}}


/* v25.33 - Representative profile cards and clearer permission reference */
.rep-profile-list-card .dropdown-sort-toolbar{align-items:flex-start}
.rep-profile-card-list{display:flex;flex-direction:column;gap:14px;margin-top:14px}
.rep-profile-card{border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 8px 22px rgba(0,47,95,.06);overflow:hidden}
.rep-profile-summary{display:grid;grid-template-columns:minmax(220px,1.2fr) minmax(220px,1fr) minmax(220px,1fr) auto;gap:14px;align-items:center;padding:14px 16px;cursor:pointer;list-style:none}
.rep-profile-summary::-webkit-details-marker{display:none}
.rep-profile-summary::before{content:'▸';font-weight:900;color:var(--gold);font-size:1.1rem}
.rep-profile-card[open] .rep-profile-summary::before{content:'▾'}
.rep-summary-main strong{display:block;color:var(--navy);font-size:1.02rem;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rep-summary-main em{display:block;font-style:normal;color:var(--muted);font-size:.82rem;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rep-summary-contact span{display:block;color:var(--ink);font-size:.84rem;line-height:1.25;word-break:break-word}
.rep-summary-roles{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.role-chip{display:inline-flex;align-items:center;border-radius:999px;background:#edf4fb;color:var(--navy);font-weight:900;font-size:.72rem;padding:4px 8px;border:1px solid #d9e8f5}
.muted-chip{background:#f3f4f6;color:var(--muted);border-color:#e5e7eb}
.rep-profile-edit-form{border-top:1px solid var(--line);padding:16px;background:#fbfdff}
.rep-profile-edit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.rep-profile-edit-grid p{margin:0}.rep-profile-edit-grid input,.rep-profile-edit-grid select{width:100%;min-width:0}
.rep-profile-roles-panel{margin-top:16px;border:1px solid #e5edf5;border-radius:14px;background:#fff;padding:12px}
.rep-profile-roles-panel>label{display:block;font-weight:900;color:var(--navy);margin-bottom:8px}
.rep-profile-check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 14px}
.rep-profile-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:14px}
.rep-profile-actions.secondary-actions{border-top:1px solid var(--line);background:#fff;padding:12px 16px;margin-top:0}
.rep-profile-actions .btn:disabled{opacity:.45;cursor:not-allowed}
.permission-reference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.permission-reference-group{border:1px solid var(--line);border-radius:16px;background:#fbfdff;padding:14px}
.permission-reference-group h3{margin:0 0 10px;color:var(--navy);font-size:1rem}
.permission-reference-item{border-top:1px solid #e7eef6;padding:10px 0;display:grid;gap:4px}.permission-reference-item:first-of-type{border-top:0;padding-top:0}
.permission-reference-item strong{color:var(--ink);font-size:.9rem}.permission-reference-item code{font-size:.76rem;background:#eef4fb;color:var(--navy);padding:3px 6px;border-radius:8px;display:inline-block;width:max-content}.permission-reference-item span{color:var(--muted);font-size:.82rem;line-height:1.35}
.permissions-grid label small{grid-column:2;color:var(--muted);font-size:.76rem;line-height:1.3;font-weight:600}
@media(max-width:1050px){.rep-profile-summary{grid-template-columns:1fr;gap:8px}.rep-profile-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rep-profile-check-grid,.permission-reference-grid{grid-template-columns:1fr}.rep-summary-main strong,.rep-summary-main em{white-space:normal}}
@media(max-width:650px){.rep-profile-edit-grid{grid-template-columns:1fr}}


/* v25.34 - Clean Representative Profile Manager cards */
.rep-profile-card-list{gap:8px;margin-top:12px}
.rep-airport-heading{margin:18px 0 8px;padding:8px 12px;border-radius:12px;background:#eef4fb;color:var(--navy);font-weight:900;letter-spacing:.04em;text-transform:uppercase;font-size:.78rem;border:1px solid #d8e6f2}
.rep-profile-card{border-radius:14px;box-shadow:0 4px 14px rgba(0,47,95,.05)}
.rep-profile-summary{display:block !important;padding:12px 16px !important;cursor:pointer;list-style:none;background:#fff}
.rep-profile-summary::-webkit-details-marker{display:none !important}.rep-profile-summary::marker{display:none !important}
.rep-profile-summary::before,.rep-profile-card[open] .rep-profile-summary::before{content:none !important;display:none !important}
.rep-summary-main strong{font-size:1rem;line-height:1.25;white-space:normal;overflow:visible;text-overflow:clip}
.rep-profile-card[open] .rep-profile-summary{border-bottom:1px solid var(--line);background:#fbfdff}
.rep-profile-quick-info{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 14px;padding:14px 16px;border-bottom:1px solid var(--line);background:#fff;color:var(--ink);font-size:.86rem}
.rep-profile-quick-info span{min-width:0;overflow-wrap:anywhere}.rep-profile-quick-info strong{color:var(--navy)}
.rep-profile-edit-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.rep-profile-actions.secondary-actions{justify-content:flex-start;background:#fbfdff}
@media(max-width:900px){.rep-profile-quick-info,.rep-profile-edit-grid{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.rep-profile-quick-info,.rep-profile-edit-grid{grid-template-columns:1fr}}

/* v25.35 - Representative Profile Manager cleanup */
.rep-profile-card-list{
  gap:10px !important;
}
.rep-airport-heading{
  display:block !important;
  width:100% !important;
  margin:22px 0 10px !important;
  padding:10px 14px !important;
  text-align:center !important;
  border-radius:12px !important;
  background:#eef2f6 !important;
  color:var(--navy) !important;
  border:1px solid #dfe7ef !important;
  font-weight:900 !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
  font-size:.86rem !important;
}
.rep-profile-card{
  border:1px solid var(--line) !important;
  border-radius:14px !important;
  background:#fff !important;
  box-shadow:0 4px 14px rgba(0,47,95,.045) !important;
  overflow:hidden !important;
}
.rep-profile-summary,
.rep-profile-toggle{
  appearance:none !important;
  -webkit-appearance:none !important;
  display:block !important;
  width:100% !important;
  border:0 !important;
  margin:0 !important;
  padding:13px 16px !important;
  background:#fff !important;
  color:var(--navy) !important;
  text-align:center !important;
  cursor:pointer !important;
  list-style:none !important;
  font-family:inherit !important;
}
.rep-profile-summary::before,
.rep-profile-summary::after,
.rep-profile-toggle::before,
.rep-profile-toggle::after,
.rep-profile-summary::-webkit-details-marker,
.rep-profile-summary::marker{
  content:none !important;
  display:none !important;
}
.rep-profile-summary strong{
  display:block !important;
  color:var(--navy) !important;
  font-size:1.02rem !important;
  line-height:1.25 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
.rep-profile-card.open .rep-profile-summary,
.rep-profile-card.open .rep-profile-toggle{
  background:#fbfdff !important;
  border-bottom:1px solid var(--line) !important;
}
.rep-profile-body{
  display:none;
}
.rep-profile-card.open .rep-profile-body{
  display:block;
}
.rep-profile-info-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  padding:16px;
  background:#fff;
  border-bottom:1px solid var(--line);
}
.rep-profile-info-grid>div{
  min-width:0;
  padding:10px 12px;
  border:1px solid #e5edf5;
  border-radius:12px;
  background:#f8fbfe;
  color:var(--ink);
  overflow-wrap:anywhere;
}
.rep-profile-info-grid .info-label{
  display:block;
  margin-bottom:3px;
  color:var(--muted);
  font-size:.72rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.rep-profile-info-grid strong,
.rep-profile-info-grid a,
.rep-profile-info-grid em{
  font-size:.9rem;
  line-height:1.25;
  font-weight:800;
  font-style:normal;
}
.rep-profile-edit-form{
  border-top:0 !important;
  padding:16px !important;
  background:#fbfdff !important;
}
.rep-profile-edit-grid{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
}
.rep-profile-actions.secondary-actions{
  padding:12px 16px !important;
  margin-top:0 !important;
  background:#fff !important;
  border-top:1px solid var(--line) !important;
}
@media(max-width:1050px){
  .rep-profile-info-grid,
  .rep-profile-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media(max-width:650px){
  .rep-profile-info-grid,
  .rep-profile-edit-grid{grid-template-columns:1fr !important;}
}


/* v25.36 - Representative Profile Manager approved clean dropdown layout */
.rep-profile-card-list{
  display:flex !important;
  flex-direction:column !important;
  gap:8px !important;
  margin-top:14px !important;
}
.rep-airport-heading{display:none !important;}
.rep-profile-card{
  border:1px solid var(--line) !important;
  border-radius:14px !important;
  background:#fff !important;
  box-shadow:0 4px 14px rgba(0,47,95,.045) !important;
  overflow:hidden !important;
}
.rep-profile-summary,
.rep-profile-toggle{
  appearance:none !important;
  -webkit-appearance:none !important;
  display:block !important;
  width:100% !important;
  border:0 !important;
  margin:0 !important;
  padding:13px 16px !important;
  background:#fff !important;
  color:var(--navy) !important;
  text-align:center !important;
  cursor:pointer !important;
  list-style:none !important;
  font-family:inherit !important;
}
.rep-profile-summary::before,
.rep-profile-summary::after,
.rep-profile-toggle::before,
.rep-profile-toggle::after,
.rep-profile-summary::-webkit-details-marker,
.rep-profile-summary::marker{
  content:none !important;
  display:none !important;
}
.rep-profile-summary strong{
  display:block !important;
  color:var(--navy) !important;
  font-size:1.02rem !important;
  line-height:1.25 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
.rep-profile-card.open .rep-profile-summary,
.rep-profile-card.open .rep-profile-toggle{
  background:#fbfdff !important;
  border-bottom:1px solid var(--line) !important;
}
.rep-profile-body{display:none !important;}
.rep-profile-card.open .rep-profile-body{display:block !important;}
.rep-profile-info-grid,
.rep-profile-quick-info{display:none !important;}
.rep-profile-edit-form{
  border-top:0 !important;
  padding:16px !important;
  background:#fbfdff !important;
}
.rep-profile-edit-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:14px !important;
}
.rep-profile-edit-grid p{margin:0 !important;}
.rep-profile-edit-grid input,
.rep-profile-edit-grid select{width:100% !important;min-width:0 !important;}
.rep-profile-actions.secondary-actions{
  padding:12px 16px !important;
  margin-top:0 !important;
  background:#fff !important;
  border-top:1px solid var(--line) !important;
}
@media(max-width:1050px){.rep-profile-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}}
@media(max-width:650px){.rep-profile-edit-grid{grid-template-columns:1fr !important;}}

/* v25.38 representative/user profile pages */
.profile-page-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:18px;align-items:start}
.profile-photo-card{text-align:center}.profile-avatar-large{width:180px;height:180px;border-radius:50%;overflow:hidden;margin:0 auto 16px;border:6px solid #edf4fb;box-shadow:0 12px 34px rgba(0,47,95,.14);background:#edf4fb}.profile-avatar-large img{width:100%;height:100%;object-fit:cover;display:block}.profile-photo-card h2{margin:8px 0 4px}.profile-role-list{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin-top:12px}.profile-main-card h2{margin-top:0}.profile-committee-box{border:1px solid var(--line);border-radius:16px;background:#f8fafc;padding:16px;margin:16px 0}.profile-committee-box h3{margin:0 0 10px}.profile-committee-list,.profile-committee-checks{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:10px}.profile-committee-list span{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px;font-weight:800;color:var(--navy)}.profile-committee-checks label{display:flex;gap:8px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin:0}.profile-committee-checks input{margin-top:2px;min-width:16px}.profile-link-status{margin-top:18px;border-top:1px solid var(--line);padding-top:16px;text-align:left}.profile-link-status strong{color:var(--navy)}.profile-link-status p{line-height:1.45}.rep-profile-actions .btn.light{box-shadow:none}
@media(max-width:900px){.profile-page-layout{grid-template-columns:1fr}.profile-committee-list,.profile-committee-checks{grid-template-columns:1fr}.profile-photo-card{text-align:left}.profile-avatar-large{margin-left:0}}

/* v25.39 - My Profile refinements */
.profile-avatar-large{
  width:150px !important;
  height:150px !important;
  border-width:5px !important;
}
.profile-case-counters{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:16px;
}
.profile-case-counter{
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 10px;
  text-align:center;
}
.profile-case-counter span{
  display:block;
  color:var(--muted);
  font-size:.78rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.profile-case-counter strong{
  display:block;
  margin-top:5px;
  color:var(--navy);
  font-size:1.65rem;
  line-height:1;
}
@media(max-width:900px){
  .profile-avatar-large{width:150px !important;height:150px !important;}
  .profile-case-counters{max-width:320px;}
}

/* v25.40 - My Profile photo and top summary polish */
.profile-summary-card{
  text-align:left !important;
}
.profile-top-summary{
  display:flex !important;
  align-items:center !important;
  gap:16px !important;
}
.profile-summary-card .profile-avatar-large{
  width:150px !important;
  height:150px !important;
  max-width:150px !important;
  max-height:150px !important;
  min-width:150px !important;
  min-height:150px !important;
  flex:0 0 150px !important;
  margin:0 !important;
  border-radius:50% !important;
  overflow:hidden !important;
}
.profile-summary-card .profile-avatar-large img{
  width:150px !important;
  height:150px !important;
  max-width:150px !important;
  max-height:150px !important;
  object-fit:cover !important;
  display:block !important;
}
.profile-identity-block h2{
  margin:0 0 4px !important;
  line-height:1.15 !important;
}
.profile-subline{
  margin:0 0 10px !important;
  font-weight:800 !important;
}
.profile-summary-card .profile-role-list{
  justify-content:flex-start !important;
  margin-top:0 !important;
}
.profile-case-counters-polished{
  margin-top:18px !important;
}
.profile-case-counters-polished .profile-case-counter{
  background:linear-gradient(180deg,#ffffff,#f8fafc) !important;
  border:1px solid #dbe3ee !important;
  box-shadow:0 8px 18px rgba(0,47,95,.06) !important;
  padding:14px 10px !important;
}
.profile-case-counters-polished .profile-case-counter strong{
  font-size:1.9rem !important;
}
@media(max-width:900px){
  .profile-top-summary{align-items:flex-start !important;}
}
@media(max-width:560px){
  .profile-top-summary{display:block !important;text-align:center !important;}
  .profile-summary-card .profile-avatar-large{margin:0 auto 14px !important;}
  .profile-summary-card .profile-role-list{justify-content:center !important;}
}


/* v25.41 first-time profile setup and clickable avatar upload */
.profile-avatar-upload-form{margin:0;padding:0;display:block;flex:0 0 auto}
.profile-avatar-clickable{position:relative;cursor:pointer;overflow:hidden;border-radius:18px;background:#f8fafc;border:1px solid var(--line);box-shadow:0 8px 22px rgba(0,47,95,.10)}
.profile-avatar-clickable img{border-radius:18px}
.profile-avatar-file{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
.profile-avatar-overlay{position:absolute;left:0;right:0;bottom:0;padding:8px 6px;background:rgba(0,47,95,.82);color:#fff;font-size:.76rem;font-weight:800;text-align:center;opacity:0;transition:opacity .18s ease}
.profile-avatar-clickable:hover .profile-avatar-overlay,.profile-avatar-clickable:focus-within .profile-avatar-overlay{opacity:1}
.profile-avatar-clickable:focus-within{outline:3px solid rgba(255,204,51,.55);outline-offset:3px}
@media(max-width:700px){.profile-avatar-overlay{opacity:1}}

/* v25.42 - My Profile avatar-only upload and cleaner top summary */
.profile-summary-card{
  padding:26px !important;
}
.profile-summary-row{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:24px !important;
  width:100% !important;
}
.profile-left-summary{
  display:flex !important;
  align-items:center !important;
  gap:18px !important;
  min-width:0 !important;
}
.profile-summary-card .profile-avatar-upload-form{
  width:150px !important;
  height:150px !important;
  flex:0 0 150px !important;
  margin:0 !important;
  padding:0 !important;
}
.profile-summary-card .profile-avatar-large,
.profile-summary-card .profile-avatar-clickable{
  width:150px !important;
  height:150px !important;
  max-width:150px !important;
  max-height:150px !important;
  min-width:150px !important;
  min-height:150px !important;
  flex:0 0 150px !important;
  margin:0 !important;
  border-radius:50% !important;
  overflow:hidden !important;
  display:block !important;
}
.profile-summary-card .profile-avatar-large img,
.profile-summary-card .profile-avatar-clickable img{
  width:150px !important;
  height:150px !important;
  max-width:150px !important;
  max-height:150px !important;
  object-fit:cover !important;
  display:block !important;
}
.profile-avatar-overlay{display:none !important;}
.profile-summary-row .profile-case-counters{
  margin-top:0 !important;
  display:grid !important;
  grid-template-columns:repeat(2,minmax(160px,1fr)) !important;
  gap:16px !important;
  width:min(420px,42%) !important;
  flex:0 0 min(420px,42%) !important;
}
.profile-summary-row .profile-case-counter{
  min-height:110px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:center !important;
  border-radius:18px !important;
}
.profile-summary-row .profile-case-counter span{
  font-size:.82rem !important;
}
.profile-summary-row .profile-case-counter strong{
  font-size:2.35rem !important;
}
@media(max-width:900px){
  .profile-summary-row{align-items:flex-start !important;}
  .profile-summary-row .profile-case-counters{width:320px !important;flex:0 0 320px !important;grid-template-columns:1fr !important;}
}
@media(max-width:700px){
  .profile-summary-row{display:block !important;text-align:center !important;}
  .profile-left-summary{display:block !important;text-align:center !important;}
  .profile-summary-card .profile-avatar-upload-form,
  .profile-summary-card .profile-avatar-large{margin:0 auto 14px !important;}
  .profile-summary-card .profile-role-list{justify-content:center !important;}
  .profile-summary-row .profile-case-counters{width:100% !important;max-width:none !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;margin-top:18px !important;}
}


/* v25.43 - My Profile final top-card correction */
.profile-summary-card{display:block !important; width:100% !important; box-sizing:border-box !important;}
.profile-summary-card .profile-summary-row{display:flex !important; align-items:center !important; justify-content:space-between !important; gap:28px !important; width:100% !important;}
.profile-summary-card .profile-left-summary{display:flex !important; align-items:center !important; gap:20px !important; min-width:0 !important;}
.profile-summary-card .profile-avatar-upload-form{width:150px !important; height:150px !important; flex:0 0 150px !important; overflow:hidden !important; line-height:0 !important;}
.profile-summary-card .profile-avatar-large,
.profile-summary-card .profile-avatar-clickable,
.profile-summary-card .profile-avatar-large img,
.profile-summary-card .profile-avatar-clickable img{width:150px !important; height:150px !important; min-width:150px !important; max-width:150px !important; min-height:150px !important; max-height:150px !important;}
.profile-summary-card .profile-avatar-file,
#profile_photo_input{display:none !important; visibility:hidden !important; width:0 !important; height:0 !important; opacity:0 !important; position:absolute !important; left:-9999px !important;}
.profile-summary-card .profile-case-counters{margin-top:0 !important; display:grid !important; grid-template-columns:repeat(2,minmax(180px,1fr)) !important; gap:18px !important; width:min(460px,44%) !important; flex:0 0 min(460px,44%) !important;}
.profile-summary-card .profile-case-counter{min-height:120px !important; display:flex !important; flex-direction:column !important; align-items:center !important; justify-content:center !important; text-align:center !important;}
@media(max-width:900px){
  .profile-summary-card .profile-summary-row{align-items:flex-start !important;}
  .profile-summary-card .profile-case-counters{width:320px !important; flex:0 0 320px !important; grid-template-columns:1fr !important;}
}
@media(max-width:700px){
  .profile-summary-card .profile-summary-row{display:block !important; text-align:center !important;}
  .profile-summary-card .profile-left-summary{display:block !important; text-align:center !important;}
  .profile-summary-card .profile-avatar-upload-form,
  .profile-summary-card .profile-avatar-large{margin:0 auto 14px !important;}
  .profile-summary-card .profile-role-list{justify-content:center !important;}
  .profile-summary-card .profile-case-counters{width:100% !important; max-width:none !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; margin-top:18px !important;}
}

/* v25.44 - My Profile summary card shadow spacing fix */
.profile-summary-card{
  margin-bottom:32px !important;
  overflow:visible !important;
  position:relative !important;
  z-index:2 !important;
}
.profile-main-card{
  position:relative !important;
  z-index:1 !important;
}


/* v25.45 - My Profile avatar shadow clipping fix */
.profile-summary-card .profile-avatar-upload-form{
  width:166px !important;
  height:166px !important;
  flex:0 0 166px !important;
  padding:8px !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}
.profile-summary-card .profile-avatar-large,
.profile-summary-card .profile-avatar-clickable{
  width:150px !important;
  height:150px !important;
  overflow:visible !important;
  box-shadow:0 12px 30px rgba(0,47,95,.18) !important;
}
.profile-summary-card .profile-avatar-large img,
.profile-summary-card .profile-avatar-clickable img{
  width:150px !important;
  height:150px !important;
  object-fit:cover !important;
  border-radius:50% !important;
  border:5px solid #edf4fb !important;
  box-sizing:border-box !important;
}


/* v25.46 - Profile committee affiliations as clean text lists */
.profile-affiliation-list{
  list-style:none;
  padding:0;
  margin:10px 0 0;
  display:block;
}
.profile-affiliation-list li{
  display:block;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  padding:2px 0 !important;
  margin:0 0 3px !important;
  font-weight:700;
  color:var(--ink);
  line-height:1.35;
}
.profile-affiliation-list li::before{
  content:'– ';
  color:var(--navy);
  font-weight:900;
}
.profile-affiliation-list.compact{
  margin-top:8px;
}
.profile-affiliation-list.compact li{
  font-size:.92rem;
  font-weight:700;
}
.profile-committee-list{
  display:block !important;
}
.profile-committee-list span{
  background:transparent !important;
  border:0 !important;
  padding:2px 0 !important;
  color:var(--ink) !important;
  font-weight:700 !important;
}

/* v25.48 - Role & Committee Manager cleanup */
.permission-reference-collapsible{padding:0;overflow:hidden}
.permission-reference-collapsible details{display:block}
.permission-reference-collapsible summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none;padding:20px 22px;background:#fff;border-radius:18px;color:var(--navy)}
.permission-reference-collapsible summary::-webkit-details-marker{display:none}
.permission-reference-collapsible summary::marker{content:"";display:none}
.permission-reference-collapsible summary strong{display:block;font-size:1.16rem;letter-spacing:.01em}
.permission-reference-collapsible summary em{display:block;margin-top:3px;font-size:.9rem;font-style:normal;color:var(--muted);font-weight:500}
.permission-reference-collapsible summary:hover{background:#f8fbff}
.permission-reference-collapsible .permission-reference-intro{padding:0 22px;margin:0 0 12px}
.permission-reference-collapsible .permission-reference-grid{padding:0 22px 22px;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
.permission-reference-collapsible .permission-reference-group{min-height:auto}
.permission-reference-collapsible .permission-reference-item{grid-template-columns:minmax(150px,.85fr) minmax(130px,.7fr) minmax(220px,1.45fr);align-items:start;column-gap:12px;padding:9px 0}
.permission-reference-collapsible .permission-reference-item strong{font-size:.84rem;line-height:1.25}
.permission-reference-collapsible .permission-reference-item code{font-size:.72rem;white-space:nowrap;width:auto;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.permission-reference-collapsible .permission-reference-item span{font-size:.78rem;line-height:1.3}
@media(max-width:1250px){.permission-reference-collapsible .permission-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.permission-reference-collapsible .permission-reference-item{grid-template-columns:1fr;gap:4px}}
@media(max-width:760px){.permission-reference-collapsible .permission-reference-grid{grid-template-columns:1fr}.permission-reference-collapsible summary{padding:16px 18px}.permission-reference-collapsible .permission-reference-intro,.permission-reference-collapsible .permission-reference-grid{padding-left:18px;padding-right:18px}}

/* v25.49 - Role & Committee Manager layout cleanup */
.permission-reference-collapsible .permission-reference-columns{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  gap:16px !important;
  padding:0 22px 22px !important;
  align-items:start !important;
}
.permission-reference-collapsible .permission-reference-column{
  display:flex !important;
  flex-direction:column !important;
  gap:14px !important;
  min-width:0 !important;
}
.permission-reference-collapsible .permission-reference-group{
  margin:0 !important;
  width:100% !important;
}
.permission-reference-collapsible .permission-reference-grid{display:none !important;}
.permission-reference-collapsible .permission-reference-item{
  display:grid !important;
  grid-template-columns:minmax(130px,.8fr) minmax(120px,.65fr) minmax(180px,1.3fr) !important;
  align-items:start !important;
  column-gap:12px !important;
  padding:9px 0 !important;
}
.role-manager-table{
  table-layout:fixed !important;
  width:100% !important;
}
.role-manager-table th,.role-manager-table td{
  vertical-align:top !important;
}
.role-manager-table th:nth-child(1),.role-manager-table td:nth-child(1){width:18% !important;}
.role-manager-table th:nth-child(2),.role-manager-table td:nth-child(2){width:14% !important;}
.role-manager-table th:nth-child(3),.role-manager-table td:nth-child(3){width:24% !important;}
.role-manager-table th:nth-child(4),.role-manager-table td:nth-child(4){width:26% !important;}
.role-manager-table th:nth-child(5),.role-manager-table td:nth-child(5){width:8% !important;}
.role-manager-table th:nth-child(6),.role-manager-table td:nth-child(6){width:10% !important;}
.role-manager-table .actions-cell{
  min-width:92px !important;
  white-space:normal !important;
  padding-top:12px !important;
}
.role-manager-table .actions-cell .inline-action-form{
  display:block !important;
  margin:0 0 8px 0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  line-height:1 !important;
}
.role-manager-table .actions-cell .btn{
  display:block !important;
  width:74px !important;
  text-align:center !important;
  margin:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
}
.role-manager-table .check-label{
  display:flex !important;
  align-items:center !important;
  gap:6px !important;
  white-space:nowrap !important;
  margin-top:2px !important;
}
.role-manager-table .permissions-details.compact summary{
  white-space:nowrap !important;
}
@media(max-width:1250px){
  .permission-reference-collapsible .permission-reference-item{grid-template-columns:1fr !important;gap:4px !important;}
}
@media(max-width:900px){
  .permission-reference-collapsible .permission-reference-columns{grid-template-columns:1fr !important;padding-left:18px !important;padding-right:18px !important;}
}

/* v25.50 - Role & Committee Manager permission reference and action cleanup */
.permission-reference-collapsible .permission-reference-two-col{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  gap:16px !important;
  padding:0 22px 22px !important;
  align-items:start !important;
}
.permission-reference-collapsible .permission-reference-col{
  display:flex !important;
  flex-direction:column !important;
  gap:14px !important;
  min-width:0 !important;
}
.permission-reference-collapsible .permission-reference-group{
  border:1px solid var(--line) !important;
  border-radius:16px !important;
  background:#fbfdff !important;
  padding:14px !important;
  margin:0 !important;
  width:100% !important;
  box-sizing:border-box !important;
}
.permission-reference-collapsible .permission-reference-group h3{
  margin:0 0 10px !important;
  color:var(--navy) !important;
  font-size:1rem !important;
}
.permission-reference-collapsible .permission-reference-item{
  display:grid !important;
  grid-template-columns:minmax(135px,.85fr) minmax(135px,.7fr) minmax(190px,1.35fr) !important;
  align-items:start !important;
  column-gap:12px !important;
  border-top:1px solid #e7eef6 !important;
  padding:9px 0 !important;
}
.permission-reference-collapsible .permission-reference-item:first-of-type{border-top:0 !important;padding-top:0 !important;}
.permission-reference-collapsible .permission-reference-item strong{font-size:.84rem !important;line-height:1.25 !important;color:var(--ink) !important;}
.permission-reference-collapsible .permission-reference-item code{font-size:.72rem !important;white-space:nowrap !important;width:auto !important;max-width:100% !important;overflow:hidden !important;text-overflow:ellipsis !important;}
.permission-reference-collapsible .permission-reference-item span{font-size:.78rem !important;line-height:1.3 !important;color:var(--muted) !important;}
.permission-reference-collapsible .permission-reference-grid,
.permission-reference-collapsible .permission-reference-columns{display:none !important;}
.role-manager-table .actions-cell{
  text-align:left !important;
  vertical-align:top !important;
  padding:12px 10px !important;
  width:90px !important;
}
.role-manager-table .actions-cell .inline-action-form{
  display:block !important;
  margin:0 0 8px 0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.role-manager-table .actions-cell .inline-action-form:last-child{margin-bottom:0 !important;}
.role-manager-table .actions-cell .btn.small{
  display:block !important;
  width:64px !important;
  min-width:64px !important;
  text-align:center !important;
  margin:0 !important;
  padding:7px 8px !important;
}
@media(max-width:1250px){
  .permission-reference-collapsible .permission-reference-item{grid-template-columns:1fr !important;gap:4px !important;}
}
@media(max-width:900px){
  .permission-reference-collapsible .permission-reference-two-col{grid-template-columns:1fr !important;padding-left:18px !important;padding-right:18px !important;}
}

/* v25.51 - Role & Committee Manager layout correction */
.permission-reference-collapsible .role-permission-layout{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  gap:16px !important;
  padding:0 22px 22px !important;
  align-items:start !important;
}
.permission-reference-collapsible .role-permission-left,
.permission-reference-collapsible .role-permission-right{
  display:flex !important;
  flex-direction:column !important;
  gap:14px !important;
  min-width:0 !important;
}
.permission-reference-collapsible .permission-reference-group{
  display:block !important;
  border:1px solid var(--line) !important;
  border-radius:16px !important;
  background:#fbfdff !important;
  padding:14px !important;
  margin:0 !important;
  width:100% !important;
  box-sizing:border-box !important;
}
.permission-reference-collapsible .permission-reference-item{
  display:block !important;
  border-top:1px solid #e7eef6 !important;
  padding:9px 0 !important;
}
.permission-reference-collapsible .permission-reference-item:first-of-type{
  border-top:0 !important;
  padding-top:0 !important;
}
.permission-reference-collapsible .permission-reference-item strong{
  display:block !important;
  color:var(--ink) !important;
  font-size:.86rem !important;
  line-height:1.25 !important;
}
.permission-reference-collapsible .permission-reference-item code{
  display:inline-block !important;
  margin:3px 0 !important;
  font-size:.72rem !important;
  line-height:1.2 !important;
  background:#eef4fb !important;
  color:var(--navy) !important;
  padding:3px 6px !important;
  border-radius:8px !important;
  width:auto !important;
  white-space:nowrap !important;
}
.permission-reference-collapsible .permission-reference-item span{
  display:block !important;
  color:var(--muted) !important;
  font-size:.79rem !important;
  line-height:1.35 !important;
}
.permission-reference-collapsible .permission-reference-grid,
.permission-reference-collapsible .permission-reference-columns{
  display:none !important;
}
.role-manager-table{
  table-layout:fixed !important;
  width:100% !important;
  border-collapse:separate !important;
  border-spacing:0 !important;
}
.role-manager-table th,.role-manager-table td{
  vertical-align:top !important;
}
.role-manager-table .role-actions-cell{
  width:86px !important;
  min-width:86px !important;
  padding:12px 8px !important;
  text-align:center !important;
  border-left:0 !important;
}
.role-actions-stack{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  gap:8px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.role-action-form{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  line-height:1 !important;
  width:auto !important;
}
.role-actions-stack .btn.small{
  display:block !important;
  width:66px !important;
  min-width:66px !important;
  margin:0 !important;
  padding:7px 0 !important;
  text-align:center !important;
  line-height:1.1 !important;
}
@media(max-width:780px){
  .permission-reference-collapsible .role-permission-layout{
    grid-template-columns:1fr !important;
    padding-left:18px !important;
    padding-right:18px !important;
  }
}

/* v25.52 - hard reset Role & Committee Manager permission reference layout */
.permission-reference-collapsible .permission-reference-fixed-layout{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  gap:16px !important;
  padding:0 22px 22px !important;
  align-items:start !important;
}
.permission-reference-collapsible .permission-reference-fixed-left,
.permission-reference-collapsible .permission-reference-fixed-right{
  display:flex !important;
  flex-direction:column !important;
  gap:14px !important;
  min-width:0 !important;
}
.permission-reference-collapsible .permission-reference-fixed-card{
  display:block !important;
  border:1px solid var(--line) !important;
  border-radius:16px !important;
  background:#fbfdff !important;
  padding:14px !important;
  margin:0 !important;
  width:100% !important;
  box-sizing:border-box !important;
}
.permission-reference-collapsible .permission-reference-fixed-item:first-of-type{border-top:0 !important;padding-top:0 !important;}
.role-manager-table .role-actions-cell,
.role-manager-table td.role-actions-cell{
  width:92px !important;
  min-width:92px !important;
  text-align:center !important;
  vertical-align:top !important;
  padding:12px 8px !important;
  border-left:0 !important;
  background:#fff !important;
}
.role-manager-table .role-action-form,
.role-manager-table .role-actions-stack{
  border:0 !important;
  box-shadow:none !important;
  background:transparent !important;
}
@media(max-width:900px){
  .permission-reference-collapsible .permission-reference-fixed-layout{
    grid-template-columns:1fr !important;
    padding-left:18px !important;
    padding-right:18px !important;
  }
}


/* v25.53 - Role & Committee Manager actions column cleanup */
.role-manager-table td.role-actions-cell,
.role-manager-table .role-actions-cell{
  border-bottom:0 !important;
  border-left:0 !important;
  background:#fff !important;
  vertical-align:middle !important;
  padding:12px 8px !important;
  box-shadow:none !important;
}
.role-manager-table th:last-child{
  text-align:center !important;
}
.role-manager-table td.role-actions-cell::before,
.role-manager-table td.role-actions-cell::after{
  content:none !important;
  display:none !important;
}
.role-manager-table td.role-actions-cell form,
.role-manager-table td.role-actions-cell .role-action-form{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  outline:0 !important;
}
.role-manager-table .role-actions-stack{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  margin:0 !important;
  padding:0 !important;
  min-height:58px !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.role-manager-table .role-actions-stack .btn.small{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:66px !important;
  min-width:66px !important;
  height:30px !important;
  margin:0 !important;
  padding:0 !important;
  line-height:1 !important;
}

/* v25.54 - Rebuilt Role & Committee Manager role rows as cards to remove table/action-line artifacts */
.permission-reference-collapsible summary,
.permission-reference-collapsible summary span{
  list-style:none !important;
}
.permission-reference-collapsible summary::-webkit-details-marker{
  display:none !important;
}
.role-section-card .table-wrap,
.role-manager-table{
  display:none !important;
}
.role-card-list{
  display:flex !important;
  flex-direction:column !important;
  gap:14px !important;
  margin-top:12px !important;
}
.role-edit-card{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 86px !important;
  gap:16px !important;
  align-items:start !important;
  border:1px solid #e1e8f0 !important;
  border-radius:16px !important;
  background:#fff !important;
  padding:16px !important;
  box-shadow:none !important;
}
.role-edit-main{
  display:grid !important;
  grid-template-columns:minmax(180px,1fr) minmax(150px,.75fr) minmax(260px,1.35fr) minmax(260px,1.35fr) minmax(110px,.55fr) !important;
  gap:14px !important;
  align-items:start !important;
  min-width:0 !important;
}
.role-field{min-width:0 !important;}
.role-field label{
  display:block !important;
  margin-bottom:6px !important;
  font-size:.78rem !important;
  line-height:1.2 !important;
  text-transform:uppercase !important;
  letter-spacing:.04em !important;
  color:#5b677a !important;
  font-weight:900 !important;
}
.role-field input,
.role-field select,
.role-field textarea{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
}
.role-description-field textarea{min-height:76px !important;}
.role-permissions-field .permissions-details.compact{
  margin:0 !important;
  padding:8px 10px !important;
  border-radius:12px !important;
}
.role-status-field .check-label{
  margin-top:8px !important;
  display:flex !important;
  align-items:center !important;
  gap:6px !important;
  white-space:nowrap !important;
  font-weight:800 !important;
}
.role-edit-actions{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  gap:8px !important;
  padding-top:22px !important;
  margin:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.role-edit-actions .btn.small{
  width:100% !important;
  min-width:0 !important;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  height:32px !important;
  padding:0 !important;
  margin:0 !important;
  line-height:1 !important;
}
.role-system-note{
  display:block !important;
  text-align:center !important;
  color:#7a8494 !important;
  font-size:.72rem !important;
  font-weight:800 !important;
  padding:8px 0 !important;
}
@media(max-width:1200px){
  .role-edit-main{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  .role-description-field,.role-permissions-field{grid-column:span 2 !important;}
}
@media(max-width:760px){
  .role-edit-card{grid-template-columns:1fr !important;}
  .role-edit-main{grid-template-columns:1fr !important;}
  .role-description-field,.role-permissions-field{grid-column:auto !important;}
  .role-edit-actions{padding-top:0 !important;max-width:220px !important;}
}

/* v25.57 - Compact case list sections */
.case-list-sections{display:grid;gap:30px;margin-top:22px}.case-list-section{padding:20px 22px}.case-list-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:12px}.case-list-section-head h2{margin:0;color:var(--navy)}.case-list-section-head p{margin:4px 0 0}.case-count-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#edf4fb;color:var(--navy);border:1px solid #d8e8f6;padding:6px 11px;font-weight:900;font-size:.82rem;white-space:nowrap}.case-list-filters{grid-template-columns:repeat(4,minmax(150px,1fr));align-items:end}.case-table-wrap{box-shadow:none;border-radius:14px;overflow-x:auto}.cases-compact-table{table-layout:fixed;min-width:920px}.cases-compact-table th,.cases-compact-table td{padding:13px 14px;vertical-align:middle;white-space:normal}.cases-compact-table th{font-size:.78rem}.cases-compact-table .col-rep{width:18%}.cases-compact-table .col-member{width:18%}.cases-compact-table .col-type{width:15%}.cases-compact-table .col-docs{width:7%;text-align:center}.cases-compact-table .col-status{width:14%}.cases-compact-table .col-opened{width:10%}.cases-compact-table .col-action{width:6%;text-align:center}.case-rep-cell{line-height:1.2}.case-rep-name{display:block;font-weight:800;color:var(--ink)}.case-rep-meta{display:block;margin-top:4px;font-size:.72rem;line-height:1.1;text-transform:uppercase;color:#475467;font-weight:800;letter-spacing:.02em}.case-member-cell{font-weight:700}.case-docs-cell{text-align:center}.case-docs-cell .paperclip-indicator{margin-left:0;gap:5px}.case-list-pager{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:12px;color:var(--muted);font-weight:800}.empty-state{border:1px dashed #cbd5e1;background:#f8fafc;border-radius:14px;padding:16px;color:var(--muted);font-weight:700}
@media(max-width:900px){.case-list-filters{grid-template-columns:1fr}.case-list-section-head{flex-direction:column}.cases-compact-table{min-width:760px}}

/* v25.60 - Case list card spacing and centered pagination */
.case-list-sections{
  display:block !important;
  margin-top:22px !important;
}
.case-list-section{
  margin:0 0 42px 0 !important;
  padding:20px 22px 24px !important;
}
.case-list-section:last-child{
  margin-bottom:0 !important;
}
.case-list-section-head{
  margin-bottom:12px !important;
}
.case-table-wrap{
  margin-bottom:0 !important;
}
.case-list-pager{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  gap:12px !important;
  width:100% !important;
  margin:22px auto 0 !important;
  padding-top:16px !important;
  color:var(--muted) !important;
  font-weight:800 !important;
  text-align:center !important;
  border-top:1px solid #edf2f7 !important;
}
.case-list-pager .btn{
  margin:0 !important;
}
@media(max-width:900px){
  .case-list-section{margin-bottom:30px !important;}
}


/* v25.61 - Case list table should fit inside cards without horizontal scrolling */
.case-list-section{
  overflow:visible !important;
}
.case-list-section .case-table-wrap{
  overflow-x:visible !important;
  overflow-y:visible !important;
  width:100% !important;
  max-width:100% !important;
}
.case-list-section .cases-compact-table{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  table-layout:fixed !important;
}
.case-list-section .cases-compact-table th,
.case-list-section .cases-compact-table td{
  padding:12px 10px !important;
  word-break:normal !important;
  overflow-wrap:anywhere !important;
}
.case-list-section .cases-compact-table .col-rep{width:19% !important;}
.case-list-section .cases-compact-table .col-member{width:17% !important;}
.case-list-section .cases-compact-table .col-type{width:13% !important;}
.case-list-section .cases-compact-table .col-docs{width:6% !important;text-align:center !important;}
.case-list-section .cases-compact-table .col-status{width:16% !important;}
.case-list-section .cases-compact-table .col-opened{width:10% !important;}
.case-list-section .cases-compact-table .col-action{width:6.33% !important;text-align:center !important;}
.case-list-section .cases-compact-table td:nth-last-child(-n+3),
.case-list-section .cases-compact-table th:nth-last-child(-n+3){
  text-align:center !important;
  white-space:nowrap !important;
  overflow-wrap:normal !important;
}
.case-list-section .cases-compact-table .btn.small{
  padding:7px 9px !important;
  min-width:48px !important;
}
.case-list-section .case-rep-name,
.case-list-section .case-rep-meta{
  overflow-wrap:normal !important;
  word-break:normal !important;
}
.case-list-pager{
  margin-top:24px !important;
  padding-top:18px !important;
}
@media(max-width:760px){
  .case-list-section .case-table-wrap{overflow-x:auto !important;}
  .case-list-section .cases-compact-table{min-width:760px !important;}
}


/* v25.62 - Case list action buttons combined into one column */
.case-list-section .case-table-wrap{
  overflow-x:visible !important;
  overflow-y:visible !important;
}
.case-list-section .cases-compact-table{
  width:100% !important;
  min-width:0 !important;
  table-layout:fixed !important;
}
.case-list-section .cases-compact-table .col-rep{width:20% !important;}
.case-list-section .cases-compact-table .col-member{width:18% !important;}
.case-list-section .cases-compact-table .col-type{width:15% !important;}
.case-list-section .cases-compact-table .col-docs{width:6% !important;text-align:center !important;}
.case-list-section .cases-compact-table .col-status{width:13% !important;}
.case-list-section .cases-compact-table .col-opened{width:9% !important;}
.case-list-section .cases-compact-table .col-actions{width:19% !important;text-align:center !important;white-space:nowrap !important;}
.case-list-section .case-actions-cell{
  text-align:center !important;
  white-space:nowrap !important;
  overflow-wrap:normal !important;
}
.case-list-section .case-actions-inline{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  flex-wrap:nowrap !important;
  white-space:nowrap !important;
}
.case-list-section .case-actions-inline .btn.small{
  min-width:0 !important;
  padding:6px 8px !important;
  font-size:.72rem !important;
  line-height:1.1 !important;
}
.case-list-section .case-delete-inline{
  display:inline-flex !important;
  margin:0 !important;
  padding:0 !important;
}
.case-list-section .case-docs-cell .paperclip-indicator{
  display:inline-flex !important;
  align-items:center !important;
  gap:6px !important;
  white-space:nowrap !important;
}
.case-list-section + .case-list-section{
  margin-top:32px !important;
}
.case-list-pager{
  margin-top:22px !important;
  padding-top:16px !important;
  justify-content:center !important;
}
@media(max-width:760px){
  .case-list-section .case-table-wrap{overflow-x:auto !important;}
  .case-list-section .cases-compact-table{min-width:760px !important;}
}


/* v25.63 - Keep case action buttons on one row without changing other table layout */
.case-list-section .case-actions-cell{
  white-space:nowrap !important;
  text-align:center !important;
  min-width:165px !important;
  overflow:visible !important;
}
.case-list-section .case-actions-inline{
  display:inline-flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  flex-wrap:nowrap !important;
  white-space:nowrap !important;
  min-width:max-content !important;
}
.case-list-section .case-actions-inline .btn.small,
.case-list-section .case-actions-inline .case-action-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 auto !important;
  padding:5px 8px !important;
  font-size:12px !important;
  line-height:1 !important;
  min-width:42px !important;
  white-space:nowrap !important;
}
.case-list-section .case-actions-inline .btn.danger{
  min-width:52px !important;
}
.case-list-section .case-delete-inline{
  display:inline-flex !important;
  flex:0 0 auto !important;
  width:auto !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  vertical-align:middle !important;
}
.case-list-section .cases-compact-table .col-actions{
  width:20% !important;
}
.case-list-section .cases-compact-table .col-status{
  width:12% !important;
}

/* v26.04 Required acknowledgments */
.required-ack-overlay{position:fixed;inset:0;background:rgba(15,23,42,.66);z-index:9999;display:flex;align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(2px)}
.required-ack-modal{width:min(760px,100%);max-height:calc(100vh - 48px);background:#fff;border:1px solid #cfd8e3;border-radius:18px;box-shadow:0 28px 80px rgba(0,0,0,.34);padding:24px;display:flex;flex-direction:column;gap:14px}
.required-ack-head{display:flex;align-items:center;gap:18px}.required-ack-logo{width:78px;height:78px;object-fit:contain;flex:0 0 auto}.required-ack-head h1{margin:0;color:var(--navy);font-size:1.78rem;line-height:1.05}.required-ack-head h2{margin:4px 0 4px;color:#1f2937;font-size:1.02rem;font-weight:800}.required-ack-head p{margin:0;color:#667085;font-weight:800}.required-ack-divider{height:3px;background:linear-gradient(90deg,var(--navy),#c1121f,var(--gold));border-radius:999px}.required-ack-scroll{height:min(440px,48vh);overflow:auto;border:1px solid #d0d5dd;border-radius:12px;padding:16px 18px;background:#fff;line-height:1.45;color:#101828}.required-ack-scroll p{margin:0 0 12px}.required-ack-scroll .ack-terms-heading{font-weight:900;color:var(--navy);font-size:1.02rem}.required-ack-notice{border:1px solid #f6c76a;background:#fff8e1;color:#7a4b00;border-radius:10px;padding:10px 12px;font-weight:900}.required-ack-notice.ready{border-color:#86efac;background:#dcfce7;color:#166534}.required-ack-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:2px}.required-ack-logout{border-color:#fca5a5!important;color:#b42318!important}.required-ack-submit-wrap{display:grid;gap:6px;justify-items:end}.required-ack-submit-wrap small{color:#667085;font-weight:800}.required-ack-submit-wrap button:disabled{background:#a7abb3!important;color:#fff!important;cursor:not-allowed;box-shadow:none!important}.acknowledgement-admin-card .section-title-row{align-items:flex-start}.acknowledgement-table th,.acknowledgement-table td{white-space:nowrap}.acknowledgement-table th:nth-child(2),.acknowledgement-table td:nth-child(2){min-width:220px;white-space:normal}.ack-select-col{width:44px;text-align:center}.ack-row-pending td{background:#fff7df}.ack-row-accepted td{background:#f8fff9}@media(max-width:700px){.required-ack-modal{padding:18px}.required-ack-head{align-items:flex-start}.required-ack-logo{width:62px;height:62px}.required-ack-head h1{font-size:1.38rem}.required-ack-actions{flex-direction:column;align-items:stretch}.required-ack-submit-wrap{justify-items:stretch}.required-ack-scroll{height:46vh}}
@media print{.no-print,.site-header,.site-footer{display:none!important}.ack-select-col{display:none!important}.acknowledgement-table th,.acknowledgement-table td{white-space:normal}.ack-row-pending td,.ack-row-accepted td{background:#fff!important}}

/* v26.05 Popup Notice Manager */
.popup-notice-manager-card table th,.popup-notice-manager-card table td{vertical-align:middle}.popup-notice-manager-card table th:nth-child(1),.popup-notice-manager-card table td:nth-child(1){min-width:220px}.popup-notice-manager-card table th:nth-child(7),.popup-notice-manager-card table td:nth-child(7){min-width:190px}.row-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.popup-notice-form .form-grid{display:grid;gap:16px;margin-bottom:14px}.popup-notice-form .form-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.popup-notice-form .form-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.popup-notice-form .check-row{display:flex;flex-wrap:wrap;gap:14px;border:1px solid #d0d5dd;border-radius:12px;padding:11px 12px;background:#fff}.popup-notice-form .check-row label{margin:0;font-weight:800}.popup-notice-form textarea{min-height:300px}.popup-preview-card{background:#f3f6fa}.popup-notice-preview-mode{position:relative;inset:auto;background:rgba(15,23,42,.12);padding:24px;border-radius:18px;backdrop-filter:none}.popup-notice-preview-mode .popup-notice-modal{margin:auto}.popup-notice-modal .required-ack-head h1{font-size:1.62rem}.popup-notice-scroll{height:min(380px,45vh)}@media(max-width:760px){.popup-notice-form .form-grid.cols-2,.popup-notice-form .form-grid.cols-3{grid-template-columns:1fr}.popup-notice-manager-card table{min-width:880px}.popup-notice-preview-mode{padding:12px}}

/* v26.06 Popup Notice Manager compact list, editor and webmaster delete controls */
.popup-notice-manager-card table th:nth-child(1),.popup-notice-manager-card table td:nth-child(1){min-width:300px}.popup-notice-manager-card table th:nth-child(5),.popup-notice-manager-card table td:nth-child(5){min-width:220px}.popup-notice-manager-card .small-text{font-size:.82rem}.popup-rich-editor-field{margin:0 0 16px}.popup-rich-editor-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border:1px solid var(--line);border-bottom:0;border-radius:14px 14px 0 0;background:#f8fafc;padding:10px}.popup-rich-editor-toolbar .btn{box-shadow:none}.popup-editor-color-label{display:inline-flex;align-items:center;gap:8px;margin:0;background:#fff;border:1px solid var(--line);border-radius:8px;padding:7px 10px;font-size:.85rem;font-weight:900;color:var(--ink)}.popup-editor-color-label input[type="color"]{width:34px;height:28px;min-width:34px;border:0;border-radius:6px;padding:0;background:transparent}.popup-rich-editor{min-height:300px;border:1px solid #d0d5dd;border-radius:0 0 14px 14px;background:#fff;padding:14px;overflow:auto;line-height:1.5}.popup-rich-editor:focus{outline:3px solid #dbeafe;border-color:var(--blue)}.popup-rich-editor p{margin:0 0 12px}.popup-rich-editor ul,.popup-rich-editor ol{margin:8px 0 12px 22px}.popup-rich-editor-source{display:none}.btn.danger.outline{background:#fff;color:#991b1b;border:1px solid #fecaca;box-shadow:none}.btn.danger.outline:hover{background:#fee2e2}

/* v26.07 Popup Notice Quill editor and upload support */
.popup-quill-editor-field{margin:1rem 0}.popup-quill-editor-field>label{display:block;font-weight:800;margin-bottom:.45rem;color:#0f2745}.popup-quill-toolbar.ql-toolbar{border:1px solid #cfd8e3;border-radius:14px 14px 0 0;background:#f8fafc;padding:9px 10px}.popup-quill-toolbar .ql-formats{margin-right:10px}.popup-quill-toolbar button#popup_image_upload_btn,.popup-quill-toolbar button#popup_document_upload_btn{width:auto;min-width:48px;font-size:.78rem;font-weight:800;color:#003b7a}.popup-quill-toolbar .ql-picker.ql-header{width:122px}.popup-quill-editor{min-height:300px;background:#fff;border:1px solid #cfd8e3;border-top:0;border-radius:0 0 14px 14px}.popup-quill-editor .ql-editor{min-height:300px;font-size:1rem;line-height:1.55}.popup-quill-editor-source{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}.popup-editor-upload-status{margin-top:.35rem;min-height:1.15rem;font-size:.88rem}.popup-editor-upload-status.error{color:#b5121b;font-weight:800}.popup-notice-scroll h1,.popup-preview-card h1{font-size:1.45rem;line-height:1.2;color:#003b7a;margin:.25rem 0 .75rem}.popup-notice-scroll h2,.popup-preview-card h2{font-size:1.18rem;line-height:1.25;color:#b5121b;margin:.25rem 0 .65rem}.popup-notice-scroll p{margin:.45rem 0}.popup-notice-scroll ul,.popup-notice-scroll ol{margin:.5rem 0 .75rem 1.5rem}.popup-notice-scroll .ql-align-center{text-align:center}.popup-notice-scroll .ql-align-right{text-align:right}.popup-notice-scroll .ql-align-justify{text-align:justify}.popup-notice-inline-image,.popup-notice-scroll img{display:block;max-width:100%;height:auto;margin:.75rem auto;border-radius:12px;border:1px solid #e5e7eb}.popup-notice-attachment-link,.popup-notice-scroll a{font-weight:800;color:#003b7a;text-decoration:underline}.popup-quill-editor-fallback{padding:16px;min-height:300px;line-height:1.55}

/* v26.07 revised Popup Notice Quill toolbar: compact professional editor row */
.popup-quill-toolbar,
.popup-quill-toolbar.ql-toolbar{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:0!important;
  border:1px solid #cfd8e3!important;
  border-radius:14px 14px 0 0!important;
  background:#f8fafc!important;
  padding:8px!important;
}
.popup-quill-toolbar .ql-formats{
  display:inline-flex!important;
  align-items:center!important;
  gap:3px!important;
  margin:0 8px 0 0!important;
  padding-right:8px!important;
  border-right:1px solid #d9e2ec!important;
}
.popup-quill-toolbar .ql-formats:last-child{border-right:0!important;margin-right:0!important;padding-right:0!important}
.popup-quill-toolbar select,
.popup-quill-toolbar .ql-picker{
  width:auto!important;
  min-width:42px!important;
  max-width:170px!important;
  height:32px!important;
  margin:0!important;
  flex:0 0 auto!important;
}
.popup-quill-toolbar .ql-picker.ql-header{width:138px!important}
.popup-quill-toolbar .ql-picker.ql-color,
.popup-quill-toolbar .ql-picker.ql-background{width:38px!important}
.popup-quill-toolbar button{
  width:32px!important;
  height:32px!important;
  min-width:32px!important;
  padding:4px!important;
  margin:0!important;
  border:1px solid transparent!important;
  border-radius:6px!important;
  background:transparent!important;
  color:#003b7a!important;
  box-shadow:none!important;
}
.popup-quill-toolbar button:hover,
.popup-quill-toolbar .ql-picker-label:hover{
  background:#eaf2fb!important;
  border-color:#b9cce3!important;
}
.popup-quill-toolbar button.ql-active,
.popup-quill-toolbar .ql-picker-label.ql-active{
  background:#dbeafe!important;
  border-color:#8bb5e7!important;
}
.popup-quill-toolbar button#popup_image_upload_btn,
.popup-quill-toolbar button#popup_document_upload_btn{
  width:auto!important;
  min-width:58px!important;
  padding:5px 9px!important;
  font-size:.82rem!important;
  font-weight:900!important;
  line-height:1!important;
  border:1px solid #cfd8e3!important;
  background:#fff!important;
  color:#003b7a!important;
}
.popup-quill-toolbar button#popup_image_upload_btn:hover,
.popup-quill-toolbar button#popup_document_upload_btn:hover{background:#eaf2fb!important;border-color:#8bb5e7!important}
.popup-quill-editor{border-top:0!important}
@media(max-width:760px){
  .popup-quill-toolbar .ql-formats{margin-bottom:5px!important}
  .popup-quill-toolbar .ql-picker.ql-header{width:128px!important}
}

/* v26.09 - Login Diagnostics: Reps Not Signed Up attention card */
.not-signed-up-card{border:3px solid #c62828!important;background:#fff8f8!important;padding:0!important;overflow:hidden!important;margin-top:18px!important;margin-bottom:30px!important;box-shadow:0 12px 30px rgba(198,40,40,.12)!important}
.not-signed-up-head{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#c62828;color:#fff;padding:16px 20px;flex-wrap:wrap}.not-signed-up-head h2{margin:0;color:#fff;font-size:1.35rem}.not-signed-up-head p{margin:3px 0 0;color:#ffe1e1;font-weight:800}.not-signed-up-count{display:inline-flex;align-items:center;justify-content:center;background:#fff;color:#c62828;border-radius:999px;padding:7px 12px;font-weight:900;white-space:nowrap}.not-signed-up-body{padding:16px 18px 18px}.not-signed-up-note{margin:0 0 13px;color:#7a1d1d;font-weight:800;line-height:1.45}.not-signed-up-table-wrap{box-shadow:none;border-color:#e0b6b6}.not-signed-up-table{min-width:1040px}.not-signed-up-table th{background:#f1dede;color:#7a1d1d}.not-signed-up-table td{background:#fff}.not-signed-up-table tr:hover td{background:#fffdfd}.pending-days-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#fde7e7;color:#7a1d1d;border:1px solid #c62828;padding:5px 9px;font-weight:900;white-space:nowrap}.pending-days-pill:empty{display:none}@media(max-width:760px){.not-signed-up-head{align-items:flex-start}.not-signed-up-count{width:100%}.not-signed-up-table{min-width:980px}}

/* v26.10 - Ensure Reps Not Signed Up card remains visually separated from diagnostics table */
.not-signed-up-card + .card{margin-top:30px!important}
.not-signed-up-card .not-signed-up-head{background:#c62828!important;color:#fff!important}
.not-signed-up-card .not-signed-up-head h2{color:#fff!important}
.not-signed-up-card .not-signed-up-head p{color:#ffe1e1!important}
.not-signed-up-card .not-signed-up-body{background:#fff8f8!important}


/* v26.13 Training Video page and Tour Manager toggle */
.training-video-toggle-card {
  border-left: 6px solid #003b7a;
}
.training-video-toggle-form {
  margin-top: 12px;
}
.training-video-toolbar .form-actions,
.training-video-toggle-form .form-actions {
  align-items: center;
}
.training-video-page-card {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.training-video-frame {
  background: #0f172a;
  border-radius: 18px;
  border: 1px solid #d7dee8;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  padding: 10px;
}
.training-video-player {
  display: block;
  width: 100%;
  max-height: 72vh;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
}
.training-video-note {
  margin-top: 14px;
}
@media (max-width: 760px) {
  .training-video-page-card {
    margin-left: 0;
    margin-right: 0;
  }
  .training-video-frame {
    border-radius: 12px;
    padding: 6px;
  }
  .training-video-player {
    border-radius: 8px;
  }
}
