/* Starkwood ONE HUB v2.3.0-H5.4 — Manage Access v49 visual parity */
html[data-sw-h54-access-ready="1"] body{background:#f4f6fb}
.sw-h54-access-page{padding:32px!important;display:flex!important;flex-direction:column!important;gap:24px!important;background:#f4f6fb!important;color:#334155!important;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important}
.sw-h54-access-page>[data-sw-h54="page-title"]{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:16px!important;margin:0!important;padding:0!important}
.sw-h54-access-page>[data-sw-h54="page-title"] h1,.sw-h54-access-page>[data-sw-h54="page-title"] h2{margin:0!important;font-size:20px!important;line-height:28px!important;font-weight:700!important;color:#1e293b!important;letter-spacing:-.01em!important}
.sw-h54-access-page>[data-sw-h54="page-title"] p{margin:2px 0 0!important;max-width:820px!important;font-size:12px!important;line-height:1.42!important;color:#64748b!important;font-weight:400!important}
.sw-h54-access-page button[data-sw-h54="add-department"],.sw-h54-access-page button[data-sw-h54="add-user"]{height:34px!important;min-height:34px!important;border-radius:8px!important;padding:0 12px!important;font-size:11px!important;line-height:32px!important;font-weight:600!important;box-shadow:none!important;white-space:nowrap!important}
.sw-h54-access-page button[data-sw-h54="add-department"]{background:#fff!important;color:#2563eb!important;border:1px solid #2563eb!important}
.sw-h54-access-page button[data-sw-h54="add-user"]{background:#2563eb!important;color:#fff!important;border:1px solid #2563eb!important}

.sw-h54-access-page [data-sw-h54$="-card"]{margin:0!important;background:#fff!important;border:1px solid #f1f5f9!important;border-radius:16px!important;box-shadow:0 1px 2px rgba(15,23,42,.035)!important;overflow:hidden!important}
.sw-h54-access-page [data-sw-h54="pipeline-card"]>div:first-child,.sw-h54-access-page [data-sw-h54="dashboard-card"]>div:first-child,.sw-h54-access-page [data-sw-h54="departments-card"]>div:first-child{padding:12px 20px!important;border-bottom:1px solid #f1f5f9!important;background:#fff!important}
.sw-h54-access-page [data-sw-h54="pipeline-card"]>div:first-child>div:first-child,.sw-h54-access-page [data-sw-h54="dashboard-card"]>div:first-child>div:first-child,.sw-h54-access-page [data-sw-h54="departments-card"]>div:first-child{font-size:14px!important;line-height:20px!important;font-weight:700!important;color:#334155!important}
.sw-h54-access-page [data-sw-h54="pipeline-card"]>div:first-child>div:nth-child(2),.sw-h54-access-page [data-sw-h54="dashboard-card"]>div:first-child>div:nth-child(2){margin-top:2px!important;font-size:10.5px!important;line-height:1.38!important;color:#94a3b8!important;font-weight:400!important}

.sw-h54-access-page [data-sw-h54="pipeline-table"],.sw-h54-access-page [data-sw-h54="dashboard-table"],.sw-h54-access-page [data-sw-h54="departments-table"]{width:100%!important;border-collapse:collapse!important;border-spacing:0!important;background:#fff!important;font-size:12px!important}
.sw-h54-access-page [data-sw-h54="pipeline-table"] thead th,.sw-h54-access-page [data-sw-h54="dashboard-table"] thead th,.sw-h54-access-page [data-sw-h54="departments-table"] thead th{height:34px!important;padding:8px 12px!important;border-bottom:1px solid #f1f5f9!important;background:#fff!important;color:#94a3b8!important;font-size:10px!important;line-height:1.2!important;font-weight:500!important;text-align:left!important;white-space:nowrap!important}
.sw-h54-access-page [data-sw-h54="pipeline-table"] thead th:not(:first-child),.sw-h54-access-page [data-sw-h54="dashboard-table"] thead th:not(:first-child){text-align:center!important}
.sw-h54-access-page [data-sw-h54="pipeline-table"] tbody td,.sw-h54-access-page [data-sw-h54="dashboard-table"] tbody td,.sw-h54-access-page [data-sw-h54="departments-table"] tbody td{height:35px!important;padding:8px 12px!important;border-bottom:1px solid #f8fafc!important;color:#475569!important;font-size:11px!important;line-height:1.28!important;font-weight:400!important;vertical-align:middle!important}
.sw-h54-access-page [data-sw-h54="pipeline-table"] tbody tr:last-child td,.sw-h54-access-page [data-sw-h54="dashboard-table"] tbody tr:last-child td,.sw-h54-access-page [data-sw-h54="departments-table"] tbody tr:last-child td{border-bottom:0!important}
.sw-h54-access-page [data-sw-h54="pipeline-table"] tbody td:first-child,.sw-h54-access-page [data-sw-h54="dashboard-table"] tbody td:first-child{font-weight:500!important;color:#334155!important}
.sw-h54-access-page [data-sw-h54="pipeline-table"] tbody td:not(:first-child),.sw-h54-access-page [data-sw-h54="dashboard-table"] tbody td:not(:first-child){text-align:center!important}
.sw-h54-access-page [data-sw-h54="pipeline-card"] input[type="checkbox"],.sw-h54-access-page [data-sw-h54="dashboard-card"] input[type="checkbox"]{appearance:auto!important;width:13px!important;height:13px!important;min-width:13px!important;margin:0!important;accent-color:#2563eb!important;vertical-align:middle!important;box-shadow:none!important}
.sw-h54-access-page [data-sw-h54="pipeline-card"]>div:last-child,.sw-h54-access-page [data-sw-h54="dashboard-card"]>div:last-child{padding:8px 20px!important;border-top:1px solid #f1f5f9!important;background:#fff!important;color:#94a3b8!important;font-size:10px!important;line-height:1.35!important}

/* Classification card: exact compact hierarchy from the v49 screenshot. */
.sw-h54-access-page #sw-h53-classification-panel{border-radius:16px!important;border:1px solid #f1f5f9!important;box-shadow:0 1px 2px rgba(15,23,42,.035)!important;background:#fff!important}
.sw-h54-access-page .sw-h53-doc-title{padding:12px 20px!important}
.sw-h54-access-page .sw-h53-doc-heading{font-size:14px!important;line-height:20px!important;color:#334155!important}
.sw-h54-access-page .sw-h53-doc-sub{margin-top:2px!important;font-size:10px!important;line-height:1.38!important;color:#94a3b8!important}
.sw-h54-access-page .sw-h53-doc-tools{gap:6px!important;padding:9px 20px!important}
.sw-h54-access-page .sw-h53-doc-tools input{height:30px!important;min-height:30px!important;padding:0 9px!important;border-radius:7px!important;border-color:#e2e8f0!important;font-size:10.5px!important}
.sw-h54-access-page .sw-h53-doc-tools button{height:28px!important;padding:0 9px!important;border-radius:7px!important;font-size:10px!important;background:#eef0f5!important;color:#475569!important}
.sw-h54-access-page .sw-h53-doc-tools button.active{background:#0b1739!important;color:#fff!important}
.sw-h54-access-page .sw-h53-count{padding:4px 7px!important;font-size:9.5px!important;border-radius:999px!important;background:#eef0f5!important}
.sw-h54-access-page .sw-h53-doc-groups{max-height:520px!important}
.sw-h54-access-page .sw-h53-doc-group-head{min-height:34px!important;padding:8px 20px!important;background:#fff!important;border:0!important}
.sw-h54-access-page .sw-h53-doc-group-head:hover{background:#f8fafc!important}
.sw-h54-access-page .sw-h53-chevron{font-size:15px!important;color:#cbd5e1!important}
.sw-h54-access-page .sw-h53-stage{font-size:9.5px!important;line-height:1.2!important;font-weight:700!important;color:#475569!important;letter-spacing:.035em!important}
.sw-h54-access-page .sw-h53-stage-meta{font-size:9px!important;color:#94a3b8!important}
.sw-h54-access-page .sw-h53-stage-meta b{margin-left:7px!important;padding:3px 6px!important;border-radius:5px!important;font-size:9px!important;font-weight:600!important;background:#fbf6e9!important;color:#b7791f!important}
.sw-h54-access-page .sw-h53-doc-row{min-height:34px!important;padding:7px 20px 7px 40px!important}
.sw-h54-access-page .sw-h53-doc-label{font-size:10.5px!important}
.sw-h54-access-page .sw-h53-guessed{font-size:9px!important}
.sw-h54-access-page .sw-h53-doc-row select{height:28px!important;min-width:106px!important;padding:0 7px!important;border-radius:7px!important;font-size:10px!important}

/* Main user/module matrix — deliberately broad, pastel-banded and horizontally scrollable like v49. */
.sw-h54-access-page [data-sw-h54="matrix-card"]{overflow:hidden!important;padding:0!important;border-radius:16px!important}
.sw-h54-access-page .sw-h53-matrix-wrap{overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin!important;scrollbar-color:#cbd5e1 #f8fafc!important}
.sw-h54-access-page .sw-h53-matrix-wrap::-webkit-scrollbar{height:10px!important}.sw-h54-access-page .sw-h53-matrix-wrap::-webkit-scrollbar-track{background:#f8fafc!important}.sw-h54-access-page .sw-h53-matrix-wrap::-webkit-scrollbar-thumb{background:#cbd5e1!important;border-radius:999px!important;border:2px solid #f8fafc!important}
.sw-h54-access-page .sw-h53-exact-matrix{width:max-content!important;min-width:3300px!important;border-collapse:collapse!important;border-spacing:0!important;background:#fff!important;table-layout:fixed!important}
.sw-h54-access-page .sw-h53-exact-matrix th,.sw-h54-access-page .sw-h53-exact-matrix td{border-bottom:1px solid #f8fafc!important;border-right:0!important}
.sw-h54-access-page .sw-h53-exact-matrix th{height:58px!important;padding:9px 8px!important;font-size:9.5px!important;line-height:1.24!important;font-weight:500!important;color:#94a3b8!important;text-align:center!important;vertical-align:middle!important;white-space:normal!important}
.sw-h54-access-page .sw-h53-exact-matrix td{height:48px!important;padding:8px!important;font-size:10.5px!important;line-height:1.2!important;text-align:center!important;color:#475569!important;vertical-align:middle!important}
.sw-h54-access-page .sw-h53-exact-matrix [data-h54-identity="user"]{width:190px!important;min-width:190px!important;max-width:190px!important;text-align:left!important;background:#fff!important;position:sticky!important;left:0!important;z-index:4!important;box-shadow:1px 0 0 #f1f5f9!important}
.sw-h54-access-page .sw-h53-exact-matrix [data-h54-identity="department"]{width:130px!important;min-width:130px!important;max-width:130px!important;text-align:center!important;background:#fff!important;position:sticky!important;left:190px!important;z-index:3!important;box-shadow:1px 0 0 #f1f5f9!important}
.sw-h54-access-page .sw-h53-exact-matrix th[data-h54-identity="user"],.sw-h54-access-page .sw-h53-exact-matrix th[data-h54-identity="department"]{z-index:6!important;color:#94a3b8!important}
.sw-h54-access-page .sw-h53-user-name{font-size:10.5px!important;font-weight:500!important;color:#334155!important;padding-left:4px!important}
.sw-h54-access-page .sw-h53-exact-matrix td[data-h54-identity="department"] span,.sw-h54-access-page .sw-h53-exact-matrix td[data-h54-identity="department"] [class*="badge"]{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:18px!important;padding:2px 7px!important;border-radius:999px!important;background:#eef0f5!important;color:#475569!important;font-size:9px!important;line-height:1!important;font-weight:500!important;white-space:nowrap!important}
.sw-h54-access-page .sw-h53-exact-matrix th:not([data-h54-identity]){width:92px!important;min-width:92px!important;max-width:92px!important}
.sw-h54-access-page .sw-h53-exact-matrix td:not([data-h54-identity]){width:92px!important;min-width:92px!important;max-width:92px!important}
.sw-h54-access-page .sw-h53-exact-matrix button:not([data-sw-h54]){width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;padding:0!important;border:1px solid #cbd5e1!important;border-radius:6px!important;background:#fff!important;box-shadow:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
.sw-h54-access-page .sw-h53-exact-matrix button:not([data-sw-h54]) svg{width:13px!important;height:13px!important}
.sw-h54-access-page .sw-h53-badge{padding:3px 7px!important;font-size:9px!important;font-weight:600!important;background:transparent!important}
.sw-h54-access-page .sw-h53-badge.green{color:#16a34a!important}.sw-h54-access-page .sw-h53-badge.slate{color:#64748b!important}
.sw-h54-access-page .sw-h53-full-access{background:#fff!important;text-align:left!important;padding-left:18px!important}
.sw-h54-access-page .sw-h53-full-access .sw-h53-badge{font-size:9.5px!important;color:#16a34a!important}

/* Match the v49 pastel authority bands. */
.sw-h54-access-page .sw-h53-exact-matrix [data-h53-tone="gold"]{background:#fbf6e9!important}.sw-h54-access-page .sw-h53-exact-matrix [data-h53-tone="blue"]{background:#eff3fc!important}.sw-h54-access-page .sw-h53-exact-matrix [data-h53-tone="rose"]{background:#fdeff3!important}.sw-h54-access-page .sw-h53-exact-matrix [data-h53-tone="green"]{background:#effaf3!important}.sw-h54-access-page .sw-h53-exact-matrix [data-h53-tone="purple"]{background:#f3f0fa!important}.sw-h54-access-page .sw-h53-exact-matrix [data-h53-tone="pink"]{background:#fdf0f6!important}.sw-h54-access-page .sw-h53-exact-matrix [data-h53-tone="teal"]{background:#eef9fa!important}.sw-h54-access-page .sw-h53-exact-matrix [data-h53-tone="brown"]{background:#f5f0e6!important}

/* Departments table at the bottom. */
.sw-h54-access-page [data-sw-h54="departments-card"]{overflow:hidden!important}
.sw-h54-access-page [data-sw-h54="departments-table"] thead th{font-size:9.5px!important;color:#94a3b8!important}
.sw-h54-access-page [data-sw-h54="departments-table"] tbody td{height:34px!important;font-size:10.5px!important}
.sw-h54-access-page [data-sw-h54="departments-table"] tbody td:first-child{font-weight:500!important;color:#334155!important}

@media(max-width:1100px){.sw-h54-access-page{padding:24px!important;gap:18px!important}.sw-h54-access-page .sw-h53-exact-matrix{min-width:3200px!important}}
@media(max-width:700px){.sw-h54-access-page{padding:16px!important;gap:16px!important}.sw-h54-access-page>[data-sw-h54="page-title"]{flex-wrap:wrap!important}.sw-h54-access-page>[data-sw-h54="page-title"] p{max-width:100%!important}.sw-h54-access-page .sw-h53-exact-matrix [data-h54-identity="user"]{width:160px!important;min-width:160px!important;max-width:160px!important}.sw-h54-access-page .sw-h53-exact-matrix [data-h54-identity="department"]{left:160px!important;width:118px!important;min-width:118px!important;max-width:118px!important}}
