/* ═══════════════════════════════════════════════════════════════
   Admin Pages — Extracted inline styles
   Source files listed in section headers
   ═══════════════════════════════════════════════════════════════ */

/* === admin/directory/index.php === */
.sa-dir-view-switcher{display:inline-flex;background:#EFEBE5;border-radius:0;padding:2px;gap:0;margin-left:.5rem;}
.sa-dir-view-switcher .sa-view-btn{background:transparent;border:none;padding:6px 12px;font-size:.82rem;color:#6E6660;cursor:pointer;border-radius:0;transition:background .2s,color .2s;line-height:1;display:inline-flex;align-items:center;justify-content:center;}
.sa-dir-view-switcher .sa-view-btn:hover{color:#3D3833;background:rgba(255,255,255,.5);}
.sa-dir-view-switcher .sa-view-btn.active{background:var(--sa-primary-color,#3D3833);color:#fff;}
.sa-dir-view-switcher .sa-view-btn:focus{outline:none;box-shadow:none;}
.sa-dir-card{border:1px solid #e9ecef;background:#fff;padding:0.75rem;display:flex;gap:0.6rem;align-items:center;transition:border-color .15s,box-shadow .15s;cursor:pointer;}
.sa-dir-card:hover{border-color:#c5cad0;box-shadow:0 2px 6px rgba(0,0,0,0.05);}
.sa-dir-card__avatar{width:36px;height:36px;border-radius:50%;overflow:hidden;border:1.5px solid #e9ecef;flex-shrink:0;}
.sa-dir-card__avatar img{width:100%;height:100%;object-fit:cover;}
.sa-dir-card__body{flex:1;min-width:0;}
.sa-dir-card__name{font-weight:600;font-size:0.8rem;color:#212529;line-height:1.2;}
.sa-dir-card__meta{font-size:0.68rem;color:#847C70;margin-top:2px;line-height:1.3;}
.sa-dir-card__meta span{color:#847C70;}
.sa-dir-card__meta i{font-size:0.55rem;margin-right:2px;opacity:0.6;}
.sa-dir-card__badges{display:flex;gap:3px;flex-wrap:wrap;margin-top:4px;}
.sa-dir-card__badges .sa-pill{font-size:0.58rem;padding:1px 5px;}

/* === admin/home/index.php === */
/* ---- Hero ---- */
.sa-hero {
	background: linear-gradient(135deg, #282320 0%, #1A1715 40%, #110E0D 100%);
	padding: 1.25rem 2rem;
	color: #fff;
	margin-bottom: 1rem;
	margin-left: -12px;
	margin-right: -12px;
	position: relative;
	overflow: hidden;
}
.sa-hero::before {
	content: '';
	position: absolute;
	width: 500px; height: 500px;
	top: -200px; right: -100px;
	background: radial-gradient(circle, rgba(70,60,55,0.15) 0%, transparent 70%);
	animation: orb1 12s ease-in-out infinite alternate;
}
.sa-hero::after {
	content: '';
	position: absolute;
	width: 350px; height: 350px;
	bottom: -120px; left: -60px;
	background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
	animation: orb2 10s ease-in-out infinite alternate;
}
.sa-hero__orb3 {
	position: absolute;
	width: 250px; height: 250px;
	top: 50%; right: 30%;
	transform: translateY(-50%);
	background: radial-gradient(circle, rgba(122,140,110,0.08) 0%, transparent 70%);
	animation: orb3 14s ease-in-out infinite alternate;
}
@keyframes orb1 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-30px,40px) scale(1.15); } }
@keyframes orb2 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(20px,-25px) scale(1.08); } }
@keyframes orb3 { 0% { transform: translateY(-50%) scale(1); opacity:0.6; } 100% { transform: translateY(-50%) translate(10px,-15px) scale(1.12); opacity:1; } }

.sa-hero__top {
	position: relative; z-index: 1;
	display: flex; align-items: center; gap: 1.5rem;
}
.sa-hero__avatar {
	width: 80px; height: 80px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid rgba(255,255,255,0.15);
	box-shadow: 0 4px 24px rgba(0,0,0,0.35);
	flex-shrink: 0;
}
.sa-hero__greeting {
	font-size: 2rem; font-weight: 800;
	letter-spacing: -0.02em; line-height: 1.2;
	margin-bottom: 0.15rem;
}
.sa-hero__name-line {
	font-size: 0.9rem; color: rgba(255,255,255,0.5);
	display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
}
.sa-hero__email {
	color: rgba(255,255,255,0.35);
	font-size: 0.82rem;
}
.sa-hero__right {
	margin-left: auto; display: flex; flex-direction: column;
	align-items: flex-end; gap: 0.6rem; flex-shrink: 0;
	position: relative; z-index: 1;
}
.sa-hero__badges {
	display: flex; flex-direction: column;
	align-items: flex-end; gap: 0.4rem;
}
.sa-hero__badge {
	display: inline-flex; align-items: center; gap: 0.4rem;
	padding: 0.3rem 0.75rem; border-radius: 50px;
	font-size: 0.72rem; font-weight: 600; white-space: nowrap;
}
.sa-hero__badge--admin { background: rgba(70,60,55,0.18); color: #D6CDB9; }
.sa-hero__badge--member { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.55); }

/* Clock + Weather */
.sa-hero__clock {
	font-size: 1.6rem; font-weight: 700; color: rgba(255,255,255,0.85);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
}
.sa-hero__weather {
	display: flex; align-items: center; gap: 0.4rem;
	font-size: 0.78rem; color: rgba(255,255,255,0.5);
	white-space: nowrap;
}
.sa-hero__weather-temp {
	font-weight: 700; color: rgba(255,255,255,0.75);
	font-size: 0.85rem;
}

/* Hero stat pills */
.sa-hero__stats {
	position: relative; z-index: 1;
	display: flex; gap: 1px;
	margin-top: 1.5rem;
	background: rgba(255,255,255,0.06);
	overflow: hidden;
}
.sa-hero__stat {
	flex: 1;
	padding: 0.85rem 1.25rem;
	display: flex; flex-direction: column;
	gap: 0.15rem;
	background: rgba(255,255,255,0.03);
	transition: background 0.2s;
}
.sa-hero__stat:hover { background: rgba(255,255,255,0.06); }
.sa-hero__stat-value {
	font-size: 1.35rem; font-weight: 800; color: #fff;
}
.sa-hero__stat-label {
	font-size: 0.7rem; font-weight: 600;
	text-transform: uppercase; letter-spacing: 0.06em;
	color: rgba(255,255,255,0.35);
}

/* ---- Section Header ---- */
/* ---- Workspace Toolbar ---- */
.sa-wk-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}
.sa-wk-toolbar__left {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: 1;
	min-width: 0;
	flex-wrap: wrap;
}
.sa-wk-toolbar__right {
	flex-shrink: 0;
}
.sa-wk-toolbar__search {
	position: relative;
	width: 260px;
}
.sa-wk-toolbar__search i {
	position: absolute;
	left: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.75rem;
	color: #847C70;
}
.sa-wk-toolbar__search input {
	width: 100%;
	padding: 0.5rem 0.75rem 0.5rem 2rem;
	font-size: 0.8rem;
	border: 1px solid #D8D0C3;
	background: #fff;
	outline: none;
	transition: border-color 0.15s;
}
.sa-wk-toolbar__search input:focus {
	border-color: #D6CDB9;
}
.sa-wk-toolbar__filters {
	display: flex;
	gap: 0;
}
.sa-wk-filter {
	padding: 0 0.85rem;
	height: 34px;
	display: inline-flex;
	align-items: center;
	font-size: 0.75rem;
	font-weight: 600;
	color: #6E6660;
	background: #fff;
	border: 1px solid #D8D0C3;
	margin-right: -1px;
	cursor: pointer;
	transition: all 0.15s;
}
.sa-wk-filter:first-child { border-left: 1px solid #D8D0C3; }
.sa-wk-filter:hover { background: #F8F6F3; color: #3D3833; }
.sa-wk-filter.active {
	background: #2A2622;
	color: #fff;
	border-color: #2A2622;
	z-index: 1;
	position: relative;
}
.sa-wk-filter__count {
	font-size: 0.65rem;
	font-weight: 700;
	background: rgba(0,0,0,0.1);
	padding: 0.05rem 0.35rem;
	margin-left: 0.3rem;
}
.sa-wk-filter.active .sa-wk-filter__count {
	background: rgba(255,255,255,0.2);
}
.sa-wk-toolbar__views {
	display: flex;
	gap: 0;
}
.sa-wk-view {
	padding: 0 0.65rem;
	height: 34px;
	display: inline-flex;
	align-items: center;
	font-size: 0.8rem;
	color: #847C70;
	background: #fff;
	border: 1px solid #D8D0C3;
	margin-right: -1px;
	cursor: pointer;
	transition: all 0.15s;
}
.sa-wk-view:hover { color: #3D3833; }
.sa-wk-view.active {
	background: #2A2622;
	color: #fff;
	border-color: #2A2622;
	z-index: 1;
	position: relative;
}

/* ---- Empty State ---- */
.sa-wk-empty {
	text-align: center;
	padding: 3rem 1rem;
	color: #847C70;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}
.sa-wk-empty i { font-size: 1.5rem; }
.sa-wk-empty span { font-size: 0.85rem; }

/* ---- List View ---- */
.sa-wk-list-view {
	border: 1px solid #D8D0C3;
	background: #fff;
}
.sa-wk-list-header {
	display: flex;
	align-items: center;
	padding: 0.6rem 1.25rem;
	border-bottom: 1px solid #D8D0C3;
	background: #F8F6F3;
}
.sa-wk-list-header .sa-wk-list-col {
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #847C70;
}
.sa-wk-list-row {
	display: flex;
	align-items: center;
	padding: 0.75rem 1.25rem;
	border-bottom: 1px solid #EFEBE5;
	text-decoration: none;
	color: inherit;
	transition: background 0.1s;
}
.sa-wk-list-row:last-child { border-bottom: none; }
.sa-wk-list-row:hover { background: #F8F6F3; color: inherit; text-decoration: none; }
.sa-wk-list-col { font-size: 0.82rem; }
.sa-wk-list-col--name { flex: 1; font-weight: 600; color: #1A1715; display: flex; align-items: center; gap: 0.5rem; }
.sa-wk-list-col--entity { width: 180px; color: #6E6660; flex-shrink: 0; }
.sa-wk-list-col--code { width: 100px; color: #847C70; font-size: 0.75rem; flex-shrink: 0; }
.sa-wk-list-col--role { width: 120px; flex-shrink: 0; }
.sa-wk-list-col--action { width: 100px; flex-shrink: 0; text-align: right; font-size: 0.78rem; font-weight: 600; }
.sa-wk-list-dot {
	width: 10px; height: 10px; flex-shrink: 0;
}

@media (max-width: 768px) {
	.sa-wk-toolbar { flex-direction: column; align-items: stretch; }
	.sa-wk-toolbar__search { width: 100%; }
	.sa-wk-toolbar__left { flex-direction: column; align-items: stretch; }
	.sa-wk-list-col--entity, .sa-wk-list-col--code { display: none; }

	/* Cards: single column, compact */
	.sa-wk-grid { grid-template-columns: 1fr; gap: 0.5rem; }
	.sa-wk__brand { height: 52px; padding: 0.35rem 0.6rem; }
	.sa-wk__logo { height: 28px !important; max-width: 80px !important; }
	.sa-wk__tag { font-size: 0.5rem; padding: 0.1rem 0.3rem; }
	.sa-wk__body { padding: 0.6rem 0.75rem; }
	.sa-wk__header { display: none; }
	.sa-wk__name { font-size: 0.82rem; }
	.sa-wk__desc { font-size: 0.68rem; }
	.sa-wk__data { margin-top: 0.3rem; padding-top: 0.3rem; }
	.sa-wk__data-label { font-size: 0.55rem; }
	.sa-wk__data-value { font-size: 0.68rem; }
	.sa-wk__launch { padding: 0.45rem; font-size: 0.68rem; }
}
/* ---- Workspace Cards (home page module grid) ---- */
.sa-wk-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
}
.sa-wk {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #D8D0C3;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s ease;
	position: relative;
	cursor: pointer;
}
.sa-wk:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.06);
	z-index: 2;
	color: inherit;
	text-decoration: none;
}
.sa-wk__bar {
	height: 3px;
	width: 100%;
}
.sa-wk__body {
	flex: 1;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.sa-wk__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}
.sa-wk__icon {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.sa-wk__icon img {
	width: 28px;
	height: 28px;
	object-fit: contain;
	filter: brightness(0) invert(1);
}
/* Card brand header */
.sa-wk__brand {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.5rem 0.75rem;
	height: 68px;
	overflow: hidden;
}
.sa-wk__logo {
	height: 40px;
	max-width: 120px;
	object-fit: contain;
	object-position: left center;
}
/* v3.5.0 — bundled module logos are black-on-transparent. Invert in dark mode so they read on a dark card brand strip. */
[data-theme-mode="dark"] .sa-wk__logo { filter: invert(1) hue-rotate(180deg); }
/* Data rows */
.sa-wk__data {
	width: 100%;
	margin-top: 0.4rem;
	border-top: 1px solid #EFEBE5;
	padding-top: 0.4rem;
}
.sa-wk__data-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.15rem 0;
}
.sa-wk__data-label {
	font-size: 0.6rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #847C70;
}
.sa-wk__data-value {
	font-size: 0.72rem;
	font-weight: 500;
	color: #3D3833;
}

.sa-wk__tag {
	font-size: 0.55rem;
	font-weight: 700;
	padding: 0.15rem 0.4rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.sa-wk__tag--admin {
	background: #EFEBE5;
	color: #3D3833;
}
.sa-wk__tag--customer {
	background: #ecfdf5;
	color: #5F7058;
}
.sa-wk__name {
	font-size: 0.88rem;
	font-weight: 700;
	color: #1A1715;
	line-height: 1.25;
	margin-bottom: 0.15rem;
}
.sa-wk__desc {
	font-size: 0.7rem;
	color: #6E6660;
	line-height: 1.4;
	margin-bottom: 0.35rem;
}
.sa-wk__footer {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}
.sa-wk__entity {
	font-size: 0.65rem;
	color: #847C70;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}
.sa-wk__entity i {
	font-size: 0.55rem;
}
.sa-wk__meta {
	font-size: 0.65rem;
	color: #847C70;
}
.sa-wk__launch {
	padding: 0.5rem 0.85rem;
	font-size: 0.7rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.15s;
}
.sa-wk:hover .sa-wk__launch {
	opacity: 0.9;
}
.sa-wk__launch i {
	transition: transform 0.15s;
}
.sa-wk:hover .sa-wk__launch i {
	transform: translateX(4px);
}

/* Customer variant */
.sa-wk--customer .sa-wk__bar {
	background: #5F7058 !important;
}

/* Mobile card rules consolidated into the main @media (max-width: 768px) block above */

.sa-section {
	margin-bottom: 2rem;
}
.sa-section__head {
	display: flex; align-items: center; justify-content: space-between;
	margin-bottom: 1rem; padding-bottom: 0.75rem;
	border-bottom: 2px solid #EFEBE5;
}
.sa-section__left {
	display: flex; align-items: center; gap: 0.75rem;
}
.sa-section__icon {
	width: 36px; height: 36px;
	display: flex; align-items: center; justify-content: center;
	font-size: 0.9rem;
}
.sa-section__title {
	font-size: 1.1rem; font-weight: 700; color: #1A1715; margin: 0;
}
.sa-section__count {
	font-size: 0.7rem; font-weight: 700;
	padding: 0.15rem 0.5rem; border-radius: 50px;
	background: #EFEBE5; color: #6E6660;
	margin-left: 0.35rem;
}
.sa-section__desc {
	font-size: 0.78rem; color: #847C70; margin: 0;
}

/* ---- Module Cards Grid ---- */
.sa-mod-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 0.75rem;
}

/* ---- Rich Module Card ---- */
.sa-mod-card {
	background: #fff;
	border: 1px solid #D8D0C3;
	overflow: hidden;
	transition: all 0.25s ease;
	display: flex; flex-direction: column;
}
.sa-mod-card:hover {
	box-shadow: 0 12px 32px rgba(0,0,0,0.08);
	border-color: #B5AB9D;
}
.sa-mod-card__bar {
	height: 3px; width: 100%; flex-shrink: 0;
}
.sa-mod-card__header {
	padding: 0.85rem 1rem 0.6rem;
	display: flex; align-items: center; gap: 0.75rem;
}
.sa-mod-card__favicon {
	width: 34px; height: 34px; min-width: 34px;
	object-fit: contain;
	background: #F8F6F3;
	padding: 3px;
	border: 1px solid #EFEBE5;
	border-radius: 6px;
	flex-shrink: 0;
}
.sa-mod-card__header-info {
	flex: 1; min-width: 0;
}
.sa-mod-card__name {
	font-weight: 700; font-size: 0.9rem;
	color: #1A1715; margin-bottom: 0.1rem; line-height: 1.3;
}
.sa-mod-card__desc {
	font-size: 0.72rem; color: #6E6660;
	line-height: 1.3; margin-bottom: 0.35rem;
}
.sa-mod-card__meta {
	display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.sa-mod-card__entity-pill {
	font-size: 0.62rem; font-weight: 600;
	padding: 0.15rem 0.45rem; border-radius: 50px;
	background: #EFEBE5; color: #524A45;
	display: inline-flex; align-items: center; gap: 0.2rem;
}
.sa-mod-card__perm-badge {
	font-size: 0.58rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.04em;
	padding: 0.15rem 0.45rem; border-radius: 50px;
	color: #fff;
}
.sa-mod-card__linked-tag {
	font-size: 0.68rem; font-weight: 600;
	color: #7A8C6E;
	display: inline-flex; align-items: center; gap: 0.25rem;
}

/* Mini-tabs */
.sa-mod-card__tabs {
	display: flex; gap: 0.2rem;
	padding: 0 1rem;
	margin-bottom: 0;
}
.sa-mod-card__tab {
	font-size: 0.62rem; font-weight: 600;
	padding: 0.25rem 0.6rem;
	border-radius: 50px;
	background: #EFEBE5; color: #6E6660;
	border: none; cursor: pointer;
	transition: all 0.15s;
	min-height: 26px;
	display: inline-flex; align-items: center; gap: 0.25rem;
}
.sa-mod-card__tab:hover {
	background: #D8D0C3; color: #3D3833;
}
.sa-mod-card__tab--active {
	background: #1A1715; color: #fff;
}
.sa-mod-card__tab--active:hover {
	background: #2A2622; color: #fff;
}

/* Tab panels */
.sa-mod-card__panel {
	display: none;
	padding: 0.5rem 1rem 0.4rem;
	min-height: 60px;
}
.sa-mod-card__panel--active {
	display: block;
}
.sa-mod-card__panel-empty {
	font-size: 0.78rem; color: #847C70;
	padding: 1rem 0;
	text-align: center;
}
.sa-mod-card__panel-loading {
	font-size: 0.78rem; color: #847C70;
	padding: 1rem 0;
	text-align: center;
}

/* Recent pages list */
.sa-recent-item {
	display: flex; align-items: center; justify-content: space-between;
	padding: 0.5rem 0;
	border-bottom: 1px solid #f8f9fa;
}
.sa-recent-item:last-child { border-bottom: none; }
.sa-recent-item__title {
	font-size: 0.8rem; font-weight: 600; color: #1A1715;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	flex: 1; min-width: 0;
}
.sa-recent-item__title a {
	color: #1A1715; text-decoration: none;
}
.sa-recent-item__title a:hover {
	color: #463C37; text-decoration: underline;
}
.sa-recent-item__time {
	font-size: 0.68rem; color: #847C70;
	white-space: nowrap; margin-left: 0.75rem; flex-shrink: 0;
}

/* Tasks list */
.sa-task-item {
	display: flex; align-items: center; gap: 0.5rem;
	padding: 0.4rem 0;
	border-bottom: 1px solid #f8f9fa;
}
.sa-task-item:last-child { border-bottom: none; }
.sa-task-item__check {
	width: 18px; height: 18px; cursor: pointer;
	accent-color: #463C37;
	flex-shrink: 0;
	min-width: 44px; min-height: 44px;
	display: flex; align-items: center; justify-content: center;
	min-width: unset;
}
.sa-task-item__text {
	font-size: 0.8rem; color: #1A1715;
	flex: 1; min-width: 0;
}
.sa-task-item__text--done {
	text-decoration: line-through; color: #847C70;
}
.sa-task-item__delete {
	border: none; background: none; color: #B5AB9D;
	cursor: pointer; font-size: 0.7rem; padding: 0.25rem;
	transition: color 0.15s;
	min-width: 44px; min-height: 44px;
	display: flex; align-items: center; justify-content: center;
}
.sa-task-item__delete:hover { color: #ef4444; }
.sa-task-add {
	display: flex; gap: 0.5rem;
	padding-top: 0.5rem; margin-top: 0.25rem;
	border-top: 1px solid #EFEBE5;
}
.sa-task-add__input {
	flex: 1; border: 1px solid #D8D0C3;
	padding: 0.4rem 0.65rem;
	font-size: 0.78rem; border-radius: 6px;
	outline: none; transition: border-color 0.15s;
	min-height: 36px;
}
.sa-task-add__input:focus { border-color: #463C37; }
.sa-task-add__input::placeholder { color: #c4c9d1; }
.sa-task-add__btn {
	border: none; background: #1A1715; color: #fff;
	font-size: 0.72rem; font-weight: 600;
	padding: 0 0.75rem; border-radius: 6px;
	cursor: pointer; transition: background 0.15s;
	white-space: nowrap;
	min-height: 36px; min-width: 44px;
}
.sa-task-add__btn:hover { background: #3D3833; }

/* Bookmarks list */
.sa-bm-item {
	display: flex; align-items: center; gap: 0.5rem;
	padding: 0.45rem 0;
	border-bottom: 1px solid #f8f9fa;
}
.sa-bm-item:last-child { border-bottom: none; }
.sa-bm-item__icon {
	color: #463C37; font-size: 0.72rem; flex-shrink: 0;
	width: 20px; text-align: center;
}
.sa-bm-item__link {
	font-size: 0.8rem; font-weight: 600; color: #1A1715;
	text-decoration: none; flex: 1; min-width: 0;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sa-bm-item__link:hover { color: #463C37; }
.sa-bm-item__delete {
	border: none; background: none; color: #B5AB9D;
	cursor: pointer; font-size: 0.7rem; padding: 0.25rem;
	transition: color 0.15s;
	min-width: 44px; min-height: 44px;
	display: flex; align-items: center; justify-content: center;
}
.sa-bm-item__delete:hover { color: #ef4444; }

/* Card footer */
.sa-mod-card__footer {
	padding: 0.5rem 1rem;
	border-top: 1px solid #EFEBE5;
	margin-top: auto;
}
.sa-mod-card__open-btn {
	display: inline-flex; align-items: center; gap: 0.4rem;
	font-size: 0.75rem; font-weight: 700;
	color: #1A1715; text-decoration: none;
	padding: 0.35rem 0.85rem;
	border-radius: 6px;
	background: #EFEBE5;
	transition: all 0.15s;
	min-height: 36px;
}
.sa-mod-card__open-btn:hover {
	background: #1A1715; color: #fff;
	text-decoration: none;
}
.sa-mod-card__open-btn i {
	transition: transform 0.15s;
}
.sa-mod-card__open-btn:hover i {
	transform: translateX(3px);
}

/* ---- Admin Actions ---- */
.sa-adm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 0.75rem;
}
.sa-adm-tile {
	display: flex; align-items: center; gap: 0.85rem;
	padding: 1rem 1.15rem;
	background: #fff; border: 1px solid #D8D0C3;
	text-decoration: none; color: #3D3833;
	transition: all 0.2s ease;
}
.sa-adm-tile:hover {
	border-color: transparent;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0,0,0,0.08);
	color: #3D3833; text-decoration: none;
}
.sa-adm-tile__icon {
	width: 40px; height: 40px;
	display: flex; align-items: center; justify-content: center;
	font-size: 0.95rem; flex-shrink: 0;
}
.sa-adm-tile__label { font-size: 0.85rem; font-weight: 600; color: #1A1715; }
.sa-adm-tile__desc { font-size: 0.72rem; color: #847C70; }

/* ---- Activity ---- */
.sa-activity {
	background: #fff; border: 1px solid #D8D0C3;
	overflow: hidden;
}
.sa-user-activity-item {
	display: flex; gap: 0.75rem;
	padding: 0.75rem 1.25rem;
	border-bottom: 1px solid #f8f9fa;
	transition: background 0.1s;
}
.sa-user-activity-item:last-child { border-bottom: none; }
.sa-user-activity-item:hover { background: #fafbfc; }
.sa-user-activity-item__icon {
	width: 34px; height: 34px;
	display: flex; align-items: center; justify-content: center;
	font-size: 0.8rem; flex-shrink: 0;
}
.sa-user-activity-item__content { flex: 1; min-width: 0; }
.sa-user-activity-item__title { font-size: 0.82rem; font-weight: 600; color: #1A1715; }
.sa-user-activity-item__desc { font-size: 0.75rem; color: #6E6660; }
.sa-user-activity-item__time { font-size: 0.7rem; color: #847C70; flex-shrink: 0; white-space: nowrap; }

/* ---- Empty ---- */
.sa-empty {
	text-align: center; padding: 4rem 2rem;
	background: #fff; border: 1px solid #D8D0C3;
}
.sa-empty__icon {
	width: 80px; height: 80px; border-radius: 50%;
	background: linear-gradient(135deg, #EFEBE5, #E8E0D4);
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 2rem; color: #463C37; margin-bottom: 1.25rem;
}
.sa-empty__title { font-size: 1.1rem; font-weight: 700; color: #1A1715; margin-bottom: 0.5rem; }
.sa-empty__text { font-size: 0.88rem; color: #6E6660; max-width: 400px; margin: 0 auto; line-height: 1.5; }

/* ---- Responsive ---- */
@media (max-width: 992px) {
	.sa-hero__stats { flex-wrap: wrap; }
	.sa-hero__stat { min-width: 120px; }
}
@media (max-width: 768px) {
	.sa-hero { padding: 1.75rem 1.5rem; }
	.sa-hero__greeting { font-size: 1.4rem; }
	.sa-hero__avatar { width: 56px; height: 56px; }
	.sa-hero__right { display: none; }
	.sa-hero__stats { flex-wrap: wrap; gap: 1px; }
	.sa-hero__stat { flex: 0 0 auto; min-width: unset; padding: 0.6rem 0.9rem; flex-direction: row; align-items: center; gap: 0.4rem; }
	.sa-hero__stat-value { font-size: 1rem; }
	.sa-hero__stat-label { font-size: 0.62rem; }
	.sa-mod-grid { grid-template-columns: 1fr; }
	.sa-adm-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
	.sa-hero__top { gap: 1rem; }
	.sa-adm-grid { grid-template-columns: 1fr; }
	.sa-mod-card__header { padding: 0.75rem 0.85rem 0.5rem; }
	.sa-mod-card__tabs { padding: 0 1.15rem; }
	.sa-mod-card__panel { padding: 0.75rem 1.15rem 0.5rem; }
	.sa-mod-card__footer { padding: 0.75rem 1.15rem; }
}

/* === admin/integrations/intacct-import/index.php === */
/* ═══ Sidebar Tabs ══════════════════════════════════════════════════ */
.intacct-sidebar { min-width:200px; }

@media (max-width:991.98px) {
	.intacct-sidebar { min-width:0; overflow-x:auto; -webkit-overflow-scrolling:touch; }
	.intacct-sidebar .nav { flex-wrap:nowrap; }
}

.intacct-tab {
	display:flex; align-items:center; gap:0.25rem;
	padding:0.55rem 0.85rem; border-radius:8px;
	font-size:0.82rem; font-weight:500; color:#524A45;
	background:transparent; border:1px solid transparent;
	transition:all 0.15s; white-space:nowrap;
}
.intacct-tab:hover { background:#F8F6F3; color:#1A1715; }
.nav-pills .intacct-tab.active,
.intacct-tab.active {
	background:var(--sa-primary-color,#30428b) !important; color:#fff !important; font-weight:600;
	border-color:var(--sa-primary-color,#30428b); box-shadow:0 1px 3px rgba(0,0,0,0.12);
}
.intacct-tab.active i { color:#fff !important; }
.intacct-tab.active .intacct-tab__label { color:#fff !important; }
.intacct-tab__label { flex:1; }
.intacct-tab__count {
	font-size:0.7rem; font-weight:600; color:#847C70;
	background:#EFEBE5; padding:0.15rem 0.45rem; border-radius:50px;
	font-variant-numeric:tabular-nums;
}
.intacct-tab.active .intacct-tab__count { background:rgba(255,255,255,0.2); color:#fff; }

/* ═══ Action ellipsis button ═══════════════════════════════════════ */
.intacct-action-btn {
	width:32px; height:32px; padding:0; border-radius:7px;
	background:#F8F6F3; color:#6E6660; border:1px solid #D8D0C3;
	font-size:0.75rem; display:inline-flex; align-items:center; justify-content:center;
}
.intacct-action-btn:hover { background:#EFEBE5; color:#463C37; border-color:#E8E0D4; }
.intacct-action-btn.syncing { background:#EFEBE5; border-color:#E8E0D4; }

/* ═══ Stats inline ════════════════════════════════════════════════ */
.intacct-stats-inline { font-size:0.8rem; }
.intacct-stats-inline .stat-label { color:#847C70; font-weight:500; }
.intacct-stats-inline .stat-value { color:#2A2622; font-weight:600; }

/* ═══ Freshness indicators ═════════════════════════════════════════ */
.freshness-fresh { color:#5F7058; font-weight:500; }
.freshness-aging { color:#A87825; font-weight:500; }
.freshness-stale { color:#dc2626; font-weight:500; }
.freshness-fresh::before { content:'\25CF '; font-size:0.55rem; vertical-align:middle; }
.freshness-aging::before { content:'\25CF '; font-size:0.55rem; vertical-align:middle; }
.freshness-stale::before { content:'\25CF '; font-size:0.55rem; vertical-align:middle; }

/* ═══ Row highlights ═══════════════════════════════════════════════ */
tr.intacct-syncing { background:#f0f5ff !important; }
tr.intacct-syncing td { border-color:#E8E0D4 !important; }
tr.intacct-viewing { background:#faf5ff !important; }
tr.intacct-viewing td { border-color:#e9d5ff !important; }
tr.search-hidden { display:none; }

/* ═══ Truncated text ═══════════════════════════════════════════════ */
.intacct-truncated {
	max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

/* === admin/integrations/modmed/index.php === */
/* ═══ Sidebar Tabs ══════════════════════════════════════════════════ */
.mm-sidebar { min-width:200px; }

@media (max-width:991.98px) {
	.mm-sidebar { min-width:0; overflow-x:auto; -webkit-overflow-scrolling:touch; }
	.mm-sidebar .nav { flex-wrap:nowrap; }
}

.mm-tab {
	display:flex; align-items:center; gap:0.25rem;
	padding:0.55rem 0.85rem; border-radius:8px;
	font-size:0.82rem; font-weight:500; color:#524A45;
	background:transparent; border:1px solid transparent;
	transition:all 0.15s; white-space:nowrap;
}
.mm-tab:hover { background:#F8F6F3; color:#1A1715; }
.nav-pills .mm-tab.active,
.mm-tab.active {
	background:var(--sa-primary-color,#30428b) !important; color:#fff !important; font-weight:600;
	border-color:var(--sa-primary-color,#30428b); box-shadow:0 1px 3px rgba(0,0,0,0.12);
}
.mm-tab.active i { color:#fff !important; }
.mm-tab.active .mm-tab__label { color:#fff !important; }
.mm-tab__label { flex:1; }
.mm-tab__count {
	font-size:0.7rem; font-weight:600; color:#847C70;
	background:#EFEBE5; padding:0.15rem 0.45rem; border-radius:50px;
	font-variant-numeric:tabular-nums;
}
.mm-tab.active .mm-tab__count { background:rgba(255,255,255,0.2); color:#fff; }

/* ═══ Action ellipsis button ═══════════════════════════════════════ */
.mm-action-btn {
	width:32px; height:32px; padding:0; border-radius:7px;
	background:#F8F6F3; color:#6E6660; border:1px solid #D8D0C3;
	font-size:0.75rem; display:inline-flex; align-items:center; justify-content:center;
}
.mm-action-btn:hover { background:#EFEBE5; color:#463C37; border-color:#E8E0D4; }
.mm-action-btn.syncing { background:#EFEBE5; border-color:#E8E0D4; }

/* ═══ Syncing row highlight ═════════════════════════════════════════ */
tr.mm-syncing { background:#f0f5ff !important; }
tr.mm-syncing td { border-color:#E8E0D4 !important; }

/* ═══ Search no-results ═══════════════════════════════════════════ */
tr.search-hidden { display:none; }

/* === admin/memberships/index.php === */
/* ── Module Cards ── */
.sa-mem-filters .form-select { font-size: 0.8rem; padding: 0.35rem 2rem 0.35rem 0.6rem; }
.sa-mem-filter-label { font-size: 0.75rem; font-weight: 600; color: #6E6660; }
.sa-mem-filter-clear {
	font-size: 0.75rem; color: #6E6660; cursor: pointer; text-decoration: underline;
}
.sa-mem-filter-clear:hover { color: #2A2622; }

/* ── DataTable overrides ── */
#membershipsTable th { font-size: 0.75rem; white-space: nowrap; vertical-align: middle; }
#membershipsTable td { vertical-align: middle; padding: 0.4rem 0.5rem; font-size: 0.8rem; }

/* User cell */
.sa-mem-user-cell {
	display: flex; align-items: center; gap: 0.6rem; min-width: 180px;
}
.sa-mem-avatar {
	width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
	background: #EFEBE5; flex-shrink: 0;
}
.sa-mem-user-name { font-weight: 600; font-size: 0.82rem; color: #2A2622; white-space: nowrap; }
.sa-mem-user-email { font-size: 0.7rem; color: #847C70; white-space: nowrap; }
.sa-sa-badge {
	display: inline-block; font-size: 0.6rem; font-weight: 700;
	padding: 0.05rem 0.3rem; background: #fef3c7; color: #92400e;
	border-radius: 3px; margin-left: 0.35rem; vertical-align: middle;
}

/* Module column header */
.sa-mem-col-header {
	display: flex; align-items: center; gap: 0.3rem; justify-content: center;
	font-weight: 700; font-size: 0.78rem;
}
.sa-mem-col-header i { font-size: 0.75rem; }

/* Module cells */
.sa-mem-module-cell { text-align: center; cursor: pointer; min-width: 72px; }
.sa-mem-module-cell:hover { background: #F8F6F3; }
.sa-mem-badge {
	display: inline-block; font-size: 0.7rem; font-weight: 600;
	padding: 0.2rem 0.5rem; border-radius: 4px; border: 1px solid;
	cursor: pointer; transition: all 0.12s; white-space: nowrap;
}
.sa-mem-badge:hover { filter: brightness(0.95); transform: scale(1.05); }
.sa-mem-empty-cell {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px; border-radius: 4px;
	color: #B5AB9D; font-size: 0.7rem; transition: all 0.12s;
	cursor: pointer;
}
.sa-mem-empty-cell:hover {
	background: #f0f9ff; color: #5F7058; border: 1px dashed #D6CDB9;
}

/* Module count column */
.sa-mem-count {
	display: inline-flex; align-items: center; justify-content: center;
	width: 24px; height: 24px; border-radius: 50%;
	font-size: 0.72rem; font-weight: 700;
	background: #EFEBE5; color: #524A45;
}
.sa-mem-count--zero { background: transparent; color: #B5AB9D; }

/* ── Role Picker ── */
.sa-role-picker {
	display: none; position: fixed; z-index: 1060;
	background: #fff; border: 1px solid #D8D0C3; border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.14); min-width: 180px;
	overflow: hidden;
}
.sa-role-picker.show { display: block; }
.sa-role-picker__header {
	display: flex; align-items: center; justify-content: space-between;
	padding: 0.6rem 0.75rem; background: #F8F6F3; border-bottom: 1px solid #EFEBE5;
}
.sa-role-picker__title { font-size: 0.75rem; font-weight: 700; color: #524A45; }
.sa-role-picker__close {
	background: none; border: none; color: #847C70; cursor: pointer; font-size: 0.85rem; padding: 0;
}
.sa-role-picker__close:hover { color: #3D3833; }
.sa-role-picker__options { padding: 0.35rem; }
.sa-role-picker__opt {
	display: flex; align-items: center; gap: 0.5rem;
	width: 100%; padding: 0.45rem 0.65rem; border: none; background: none;
	text-align: left; font-size: 0.8rem; color: #3D3833;
	cursor: pointer; border-radius: 6px; transition: background 0.1s;
}
.sa-role-picker__opt:hover { background: #f0f9ff; }
.sa-role-picker__opt.active { background: #EFEBE5; color: #282320; font-weight: 600; }
.sa-role-picker__opt i { width: 16px; text-align: center; font-size: 0.78rem; }
.sa-role-picker__footer {
	padding: 0.35rem; border-top: 1px solid #EFEBE5;
}
.sa-role-picker__remove {
	display: flex; align-items: center; gap: 0.5rem;
	width: 100%; padding: 0.45rem 0.65rem; border: none; background: none;
	text-align: left; font-size: 0.78rem; color: #dc2626;
	cursor: pointer; border-radius: 6px; transition: background 0.1s;
}
.sa-role-picker__remove:hover { background: #fef2f2; }

/* ── Empty state ── */
.sa-mem-empty {
	text-align: center; padding: 2rem; color: #847C70; font-size: 0.82rem;
}
.sa-mem-empty i { font-size: 1.4rem; display: block; margin-bottom: 0.4rem; opacity: 0.35; }

@media (max-width: 768px) {
	.sa-mod-grid { flex-direction: column; }
	.sa-mod-card { max-width: 100%; }
}

/* === admin/release-notes/index.php === */
.rn-toolbar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.85rem 1rem;
	border-bottom: 1px solid #D8D0C3;
	background: #fafbfc;
	flex-wrap: wrap;
}
.rn-search {
	flex: 1;
	min-width: 220px;
	position: relative;
}
.rn-search input {
	width: 100%;
	padding: 0.45rem 0.75rem 0.45rem 2rem;
	border: 1px solid #B5AB9D;
	font-size: 0.85rem;
	background: #fff;
	outline: none;
}
.rn-search input:focus {
	border-color: var(--sa-primary-color, #305E6C);
}
.rn-search i {
	position: absolute;
	left: 0.6rem;
	top: 50%;
	transform: translateY(-50%);
	color: #847C70;
	font-size: 0.78rem;
}
.rn-filter-group {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}
.rn-filter-pill {
	padding: 0.35rem 0.75rem;
	font-size: 0.72rem;
	font-weight: 600;
	background: #fff;
	border: 1px solid #B5AB9D;
	color: #3D3833;
	cursor: pointer;
	transition: all 0.15s;
}
.rn-filter-pill:hover { border-color: #847C70; }
.rn-filter-pill.active {
	background: var(--sa-primary-color, #305E6C);
	border-color: var(--sa-primary-color, #305E6C);
	color: #fff;
}
.rn-container {
	display: flex;
	min-height: 500px;
	max-height: calc(100vh - 240px);
}
.rn-sidebar {
	width: 240px;
	flex-shrink: 0;
	border-right: 1px solid #D8D0C3;
	background: #fafbfc;
	overflow-y: auto;
	padding: 1rem 0;
}
.rn-sidebar-month {
	font-size: 0.62rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #847C70;
	padding: 0.85rem 1.25rem 0.4rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	user-select: none;
	transition: color 0.15s;
}
.rn-sidebar-month:hover { color: #6E6660; }
.rn-sidebar-month .rn-month-chevron {
	font-size: 0.5rem;
	transition: transform 0.2s;
}
.rn-sidebar-month.collapsed .rn-month-chevron { transform: rotate(-90deg); }
.rn-sidebar-month.collapsed + .rn-sidebar-month-items { display: none; }
.rn-sidebar-item {
	display: block;
	width: 100%;
	padding: 0.55rem 1rem 0.55rem 1.25rem;
	border: none;
	background: none;
	text-align: left;
	cursor: pointer;
	border-left: 3px solid transparent;
	transition: all 0.15s ease;
	position: relative;
}
.rn-sidebar-item:hover { background: #EFEBE5; }
.rn-sidebar-item:focus { outline: none; }
.rn-sidebar-item.active {
	border-left-color: var(--sa-primary-color, #282320);
	background: color-mix(in srgb, var(--sa-primary-color, #282320) 6%, transparent);
}
.rn-sidebar-item.active .rn-sidebar-ver { color: var(--sa-primary-color, #282320); }
.rn-sidebar-ver-row {
	display: flex;
	align-items: center;
	gap: 6px;
}
.rn-sidebar-ver {
	font-size: 0.88rem;
	font-weight: 600;
	color: #1A1715;
}
.rn-sidebar-date {
	font-size: 0.7rem;
	color: #847C70;
	margin-top: 1px;
}
.rn-sidebar-counts {
	font-size: 0.65rem;
	color: #847C70;
	margin-top: 2px;
}
.rn-content {
	flex: 1;
	padding: 1.5rem 2rem;
	overflow-y: auto;
}
.rn-version-section {
	padding-bottom: 2rem;
	margin-bottom: 2rem;
	border-bottom: 1px solid #D8D0C3;
}
.rn-version-section.collapsed .rn-version-body { display: none; }
.rn-version-section:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}
.rn-version-header {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	column-gap: 0.75rem;
	row-gap: 0.4rem;
	margin-bottom: 1rem;
	cursor: pointer;
	user-select: none;
}
.rn-version-toggle {
	color: #847C70;
	font-size: 0.7rem;
	transition: transform 0.2s;
}
.rn-version-section.collapsed .rn-version-toggle { transform: rotate(-90deg); }
.rn-version-num {
	font-size: 1.25rem;
	font-weight: 700;
	color: #1A1715;
	letter-spacing: -0.01em;
}
.rn-version-date {
	font-size: 0.78rem;
	color: #847C70;
	white-space: nowrap;
}
/* Badge gets its own row — the long type summary would otherwise squeeze the
   date into a 3-line wrap when it shares a flex line. */
.rn-version-badge {
	font-size: 0.62rem;
	font-weight: 600;
	padding: 0.3rem 0.6rem;
	background: #EFEBE5;
	color: #6E6660;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	flex-basis: 100%;
	order: 10;
	line-height: 1.5;
	border-radius: 4px;
}
.rn-version-stats {
	display: flex;
	gap: 0.5rem;
	margin-left: auto;
	align-items: center;
	font-size: 0.7rem;
}
.rn-version-stat {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #6E6660;
}
.rn-version-stat--added    { color: #2e6d3a; }
.rn-version-stat--improved { color: #b8541a; }
.rn-version-stat--fixed    { color: #c08018; }
.rn-version-permalink {
	color: #B5AB9D;
	text-decoration: none;
	font-size: 0.75rem;
	opacity: 0;
	transition: opacity 0.15s;
	margin-left: auto;
}
.rn-version-header:hover .rn-version-permalink { opacity: 1; }
.rn-version-permalink:hover { color: var(--sa-primary-color, #305E6C); }
.rn-section {
	margin-bottom: 1.5rem;
	padding-left: 0.85rem;
	border-left: 3px solid #D8D0C3;
}
.rn-section:last-child { margin-bottom: 0; }
/* Louder accent colors — distinct hue per category, on-brand earth tones
   but actually saturated. Improved was previously near-body-text brown
   (#3D3833) which made the section visually disappear. */
.rn-section--added    { border-left-color: #2e6d3a; }   /* forest green */
.rn-section--improved { border-left-color: #b8541a; }   /* saturated terracotta */
.rn-section--fixed    { border-left-color: #c08018; }   /* deep amber */

/* Section label rendered as a real BADGE — filled pill with white text.
   Previously was just colored uppercase text that read as a subtitle;
   now it reads as a labeled category. Hard to miss. */
.rn-section-label {
	display: inline-flex;
	align-items: center;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #ffffff;
	padding: 0.25rem 0.6rem;
	border-radius: 4px;
	margin-bottom: 0.6rem;
	line-height: 1;
}
.rn-section--added    .rn-section-label { background: #2e6d3a; }
.rn-section--improved .rn-section-label { background: #b8541a; }
.rn-section--fixed    .rn-section-label { background: #c08018; }
.rn-group {
	margin-bottom: 0.6rem;
}
.rn-group:last-child { margin-bottom: 0; }
.rn-group--unlabeled { margin-bottom: 0.4rem; }
.rn-group-label {
	font-size: 0.7rem;
	font-weight: 500;
	color: #847C70;
	letter-spacing: 0.02em;
	margin-bottom: 0.15rem;
	padding: 0;
}
.rn-version-tagline {
	font-size: 0.78rem;
	color: #6E6660;
	line-height: 1.45;
	margin: -0.25rem 0 0.85rem 1.6rem;
	font-style: normal;
}
.rn-version-section.collapsed .rn-version-tagline { display: none; }
.rn-list { list-style: none; padding: 0; margin: 0; }
.rn-list li {
	position: relative;
	padding: 0.3rem 0 0.3rem 1.25rem;
	font-size: 0.85rem;
	color: #3D3833;
	line-height: 1.55;
}
.rn-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.78rem;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #B5AB9D;
}
.rn-section--added    .rn-list li::before { background: #2e6d3a; }
.rn-section--improved .rn-list li::before { background: #b8541a; }
.rn-section--fixed    .rn-list li::before { background: #c08018; }
.rn-list li mark {
	background: #fef08a;
	color: inherit;
	padding: 0 2px;
}
.rn-scope-pill {
	display: inline-block;
	font-size: 0.6rem;
	font-weight: 600;
	padding: 0.1rem 0.45rem;
	margin-left: 0.4rem;
	vertical-align: middle;
	letter-spacing: 0.02em;
	white-space: nowrap;
	border: 1px solid;
}
.rn-scope-pill--all { background: #EFEBE5; color: #6E6660; border-color: #D8D0C3; }
.rn-scope-pill--admin { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.rn-scope-pill--customer { background: #E8E0D4; color: #1A1715; border-color: #E8E0D4; }
.rn-scope-pill--entity { background: #e0e7ff; color: #1A1715; border-color: #c7d2fe; }
.rn-no-updates {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: #847C70;
	font-size: 0.84rem;
	font-style: italic;
	padding: 0.5rem 0;
}
.rn-empty-search {
	text-align: center;
	padding: 3rem 1rem;
	color: #847C70;
	font-size: 0.85rem;
}
.rn-version-section.hidden { display: none; }
.rn-list li.hidden { display: none; }
.rn-section.hidden { display: none; }
.rn-group.hidden { display: none; }

/* New badge for unread versions */
.rn-sidebar-new {
	font-size: 0.55rem;
	font-weight: 700;
	background: #dc2626;
	color: #fff;
	padding: 0.05rem 0.35rem;
	border-radius: 3px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-left: auto;
}

/* Category filter pills */
.rn-cat-filters {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}
.rn-cat-pill {
	padding: 0.35rem 0.65rem;
	font-size: 0.72rem;
	font-weight: 600;
	background: #fff;
	border: 1px solid #B5AB9D;
	color: #3D3833;
	cursor: pointer;
	transition: all 0.15s;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.rn-cat-pill:hover { border-color: #847C70; }
.rn-cat-pill.active { color: #fff; }
.rn-cat-pill[data-cat="added"].active    { background: #2e6d3a; border-color: #2e6d3a; }
.rn-cat-pill[data-cat="improved"].active { background: #b8541a; border-color: #b8541a; }
.rn-cat-pill[data-cat="fixed"].active    { background: #c08018; border-color: #c08018; }

/* Back to top */
.rn-back-top {
	position: sticky;
	bottom: 1rem;
	float: right;
	width: 32px;
	height: 32px;
	background: var(--sa-primary-color, #305E6C);
	color: #fff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	font-size: 0.75rem;
	display: none;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	transition: opacity 0.2s;
	z-index: 10;
}
.rn-back-top:hover { opacity: 0.85; }
.rn-back-top.visible { display: flex; }

/* Month items wrapper */
.rn-sidebar-month-items { }

/* ── View toggle ─────────────────────────────────────── */
.rn-view-toggle {
	display: inline-flex;
	background: #EFEBE5;
	border: 1px solid #D8D0C3;
	padding: 3px;
	margin-left: auto;
	gap: 2px;
}
.rn-view-btn {
	padding: 0.4rem 1rem;
	font-size: 0.78rem;
	font-weight: 600;
	background: transparent;
	border: none;
	color: #6E6660;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	letter-spacing: 0.01em;
	white-space: nowrap;
}
.rn-view-btn:hover { color: #2A2622; background: rgba(255,255,255,.6); }
.rn-view-btn.active {
	background: #fff;
	color: #2A2622;
	box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
}
.rn-view-btn.active i { color: var(--sa-primary-color, #305E6C); }

/* ── Calendar view ───────────────────────────────────── */
.rn-calendar-wrap { display: none; padding: 1.5rem 2rem; }
.rn-calendar-wrap.active { display: block; }
.rn-cal-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	margin-bottom: 1.25rem;
}
.rn-cal-nav-btn {
	width: 30px;
	height: 30px;
	background: #EFEBE5;
	border: 1px solid #D8D0C3;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.7rem;
	color: #6E6660;
	transition: all 0.15s;
}
.rn-cal-nav-btn:hover { background: #D8D0C3; }
.rn-cal-month-label {
	font-size: 1.05rem;
	font-weight: 700;
	color: #1A1715;
	min-width: 180px;
	text-align: center;
}
.rn-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 1px;
	background: #D8D0C3;
	border: 1px solid #D8D0C3;
}
.rn-cal-dow {
	background: #F8F6F3;
	padding: 0.5rem;
	text-align: center;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #847C70;
}
.rn-cal-cell {
	background: #fff;
	min-height: 105px;
	padding: 0.4rem;
	position: relative;
	vertical-align: top;
}
.rn-cal-cell--empty { background: #fafbfc; }
.rn-cal-cell--today { box-shadow: inset 0 0 0 2px var(--sa-primary-color, #305E6C); }
.rn-cal-day-num {
	font-size: 0.75rem;
	font-weight: 600;
	color: #6E6660;
	margin-bottom: 0.35rem;
}
.rn-cal-cell--has-release .rn-cal-day-num { color: #1A1715; }
.rn-cal-release {
	cursor: pointer;
	padding: 0.25rem 0.35rem;
	background: #F8F6F3;
	border: 1px solid #D8D0C3;
	margin-bottom: 3px;
	transition: all 0.15s;
}
.rn-cal-release:hover { background: #EFEBE5; border-color: #847C70; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.rn-cal-release-ver {
	font-size: 0.65rem;
	font-weight: 800;
	color: #2A2622;
	margin-bottom: 4px;
	letter-spacing: -0.01em;
}
.rn-cal-pills {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.rn-cal-pill {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 0.58rem;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 3px;
	line-height: 1.5;
}
.rn-cal-pill i { font-size: 0.5rem; }
.rn-cal-pill-count {
	font-weight: 800;
	margin-right: 1px;
}
.rn-cal-pill--added    { background: #e0eedf; color: #1d4a23; border-left: 3px solid #2e6d3a; }
.rn-cal-pill--improved { background: #fbe7d4; color: #6e3210; border-left: 3px solid #b8541a; }
.rn-cal-pill--fixed    { background: #fbecc5; color: #6e4b0d; border-left: 3px solid #c08018; }
.rn-cal-legend {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	margin-top: 1rem;
	font-size: 0.72rem;
	color: #6E6660;
}
.rn-cal-legend-item {
	display: flex;
	align-items: center;
	gap: 5px;
}
.rn-cal-legend-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
}
.rn-cal-legend-dot--added    { background: #2e6d3a; }
.rn-cal-legend-dot--improved { background: #b8541a; }
.rn-cal-legend-dot--fixed    { background: #c08018; }

/* Summary stats bar */
.rn-cal-summary {
	display: flex;
	justify-content: center;
	gap: 2rem;
	margin-bottom: 1.25rem;
	padding: 0.75rem 1rem;
	background: #F8F6F3;
	border: 1px solid #D8D0C3;
}
.rn-cal-summary-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.78rem;
	color: #524A45;
}
.rn-cal-summary-count {
	font-weight: 700;
	font-size: 1rem;
}
.rn-cal-summary-item--releases .rn-cal-summary-count { color: var(--sa-primary-color, #305E6C); }
.rn-cal-summary-item--added    .rn-cal-summary-count { color: #2e6d3a; }
.rn-cal-summary-item--improved .rn-cal-summary-count { color: #b8541a; }
.rn-cal-summary-item--fixed    .rn-cal-summary-count { color: #c08018; }

@media (max-width: 768px) {
	.rn-container { flex-direction: column; max-height: none; }
	.rn-sidebar { display: none; }
	.rn-content { max-height: none; padding: 1.25rem; }
	.rn-toolbar { flex-direction: column; align-items: stretch; }
	.rn-view-toggle { margin-left: 0; }
	.rn-calendar-wrap { padding: 1rem; }
	.rn-cal-cell { min-height: 70px; }
	.rn-cal-summary { flex-wrap: wrap; gap: 0.75rem; }
	.rn-cal-pill { font-size: 0.5rem; }
	.rn-cal-release-ver { font-size: 0.55rem; }
}

/* === entities/admin/platform-settings/index.php — Platform Settings layout === */
/* ═══ PLATFORM SETTINGS MEMBERSHIPS (psb-) ═══ */
/* Module Overview Cards */
.psb-modules{display:flex;gap:1px;background:#D8D0C3;margin-bottom:1rem;overflow-x:auto;}
.psb-module-card{flex:1;min-width:140px;background:#fff;padding:0.85rem 1rem;cursor:pointer;transition:background 0.15s;position:relative;text-align:center;border-bottom:3px solid transparent;}
.psb-module-card:hover{background:#F8F6F3;}
.psb-module-card.psb-module-active{background:#F8F6F3;}
.psb-module-card__icon{font-size:1.1rem;margin-bottom:0.35rem;display:block;}
.psb-module-card__name{font-size:0.72rem;font-weight:700;text-transform:uppercase;letter-spacing:0.04em;color:#3D3833;margin-bottom:0.15rem;}
.psb-module-card__count{font-size:1.25rem;font-weight:800;color:#1A1715;}
/* Stats Row */
.psb-stats{display:flex;gap:1px;margin-bottom:1rem;background:#D8D0C3;overflow:hidden;}
.psb-stat{flex:1;background:#fff;padding:0.65rem 1rem;text-align:center;cursor:pointer;transition:background 0.15s;}
.psb-stat:hover{background:#F8F6F3;}
.psb-stat.psb-stat--active{background:#f0f4ff;}
.psb-stat__value{font-size:1.3rem;font-weight:800;color:#1A1715;}
.psb-stat__label{font-size:0.68rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;color:#847C70;}
/* Toolbar */
.psb-toolbar{background:#F8F6F3;border:1px solid #D8D0C3;padding:0.75rem 1rem;margin-bottom:1rem;}
.psb-toolbar__top{display:flex;align-items:center;gap:0.75rem;flex-wrap:wrap;}
.psb-search-wrap{position:relative;flex:1;min-width:220px;max-width:400px;}
.psb-search-wrap i{position:absolute;left:0.75rem;top:50%;transform:translateY(-50%);color:#847C70;font-size:0.8rem;pointer-events:none;}
.psb-search{width:100%;padding:0.5rem 0.75rem 0.5rem 2.1rem;border:1px solid #D8D0C3;font-size:0.82rem;outline:none;background:#fff;transition:border-color 0.15s;}
.psb-search:focus{border-color:#463C37;box-shadow:0 0 0 3px rgba(70,60,55,0.08);}
.psb-add-btn{display:inline-flex;align-items:center;gap:0.4rem;padding:0.5rem 1rem;background:#1A1715;color:#fff;border:none;font-size:0.8rem;font-weight:600;cursor:pointer;transition:background 0.15s;white-space:nowrap;min-height:44px;}
.psb-add-btn:hover{background:#3D3833;}
.psb-toolbar__bottom{display:flex;align-items:center;gap:0.5rem;margin-top:0.6rem;flex-wrap:wrap;}
.psb-filter-select{padding:0.35rem 0.6rem;border:1px solid #D8D0C3;font-size:0.78rem;background:#fff;cursor:pointer;outline:none;min-width:130px;min-height:36px;}
.psb-filter-select:focus{border-color:#463C37;}
.psb-filter-pills{display:flex;gap:0.35rem;flex-wrap:wrap;}
.psb-filter-pill{padding:0.3rem 0.75rem;border:1px solid #D8D0C3;background:#fff;font-size:0.75rem;font-weight:600;cursor:pointer;transition:all 0.15s;color:#6E6660;min-height:36px;display:inline-flex;align-items:center;}
.psb-filter-pill:hover{border-color:#463C37;color:#463C37;}
.psb-filter-pill.psb-active{background:#1A1715;color:#fff;border-color:#1A1715;}
/* Role badges */
.psb-role-badge{display:inline-block;padding:0.15rem 0.5rem;border-radius:50px;font-size:0.68rem;font-weight:700;text-transform:uppercase;letter-spacing:0.03em;}
.psb-role-badge--super_admin{background:#E8E0D4;color:#282320;}
.psb-role-badge--admin{background:#DFE5D6;color:#506046;}
.psb-role-badge--user{background:#EFEBE5;color:#3D3833;}
.psb-role-badge--customer{background:#fef3c7;color:#92400e;}
/* Module pill */
.psb-module-pill{display:inline-flex;align-items:center;gap:0.3rem;padding:0.15rem 0.5rem;border-radius:50px;font-size:0.68rem;font-weight:600;background:#EFEBE5;color:#3D3833;white-space:nowrap;}
/* Entity pill */
.psb-entity-pill{display:inline-flex;align-items:center;gap:0.2rem;font-size:0.72rem;color:#6E6660;white-space:nowrap;}
.psb-entity-pill img{width:16px;height:16px;object-fit:contain;}
/* User-centric grid */
.psb-user-list{display:flex;flex-direction:column;gap:0;}
.psb-user-row{border:1px solid #D8D0C3;border-bottom:none;background:#fff;transition:background 0.1s;}
.psb-user-row:last-child{border-bottom:1px solid #D8D0C3;}
.psb-user-row:hover{background:#fafbfc;}
.psb-user-header{display:flex;align-items:center;padding:0.7rem 1rem;cursor:pointer;gap:1rem;min-height:60px;}
.psb-user-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;flex-shrink:0;background:#D8D0C3;}
.psb-user-info{min-width:200px;flex-shrink:0;}
.psb-user-name{font-size:0.88rem;font-weight:700;color:#1A1715;line-height:1.3;}
.psb-user-email{font-size:0.75rem;color:#6E6660;line-height:1.3;}
.psb-user-badges{display:flex;gap:0.35rem;flex-wrap:wrap;align-items:center;}
.psb-membership-chip{display:inline-flex;align-items:center;gap:0.25rem;padding:0.2rem 0.55rem;background:#EFEBE5;border:1px solid #D8D0C3;font-size:0.68rem;font-weight:600;color:#3D3833;white-space:nowrap;border-radius:50px;}
.psb-membership-chip__dot{width:6px;height:6px;border-radius:50%;flex-shrink:0;}
.psb-membership-chip__role{font-size:0.6rem;font-weight:700;text-transform:uppercase;padding:0.05rem 0.3rem;border-radius:50px;margin-left:0.15rem;}
.psb-membership-chip__role--super_admin{background:#E8E0D4;color:#282320;}
.psb-membership-chip__role--admin{background:#DFE5D6;color:#506046;}
.psb-membership-chip__role--user{background:#EFEBE5;color:#6E6660;}
.psb-membership-chip__role--customer{background:#fef3c7;color:#92400e;}
.psb-user-count{font-size:0.7rem;font-weight:600;color:#847C70;white-space:nowrap;}
.psb-user-chevron{color:#847C70;font-size:0.7rem;transition:transform 0.2s;flex-shrink:0;}
.psb-user-row.psb-expanded .psb-user-chevron{transform:rotate(90deg);}
/* Expanded detail area */
.psb-user-detail{display:none;border-top:1px solid #EFEBE5;background:#F8F6F3;padding:0;}
.psb-user-row.psb-expanded .psb-user-detail{display:block;}
.psb-detail-table{width:100%;border-collapse:collapse;}
.psb-detail-table th{font-size:0.68rem;font-weight:700;text-transform:uppercase;letter-spacing:0.04em;color:#847C70;padding:0.5rem 1rem;text-align:left;border-bottom:1px solid #D8D0C3;background:#EFEBE5;}
.psb-detail-table td{font-size:0.8rem;padding:0.5rem 1rem;border-bottom:1px solid #EFEBE5;vertical-align:middle;}
.psb-detail-table tr:last-child td{border-bottom:none;}
.psb-detail-actions{padding:0.6rem 1rem;border-top:1px solid #EFEBE5;display:flex;justify-content:flex-end;}
.psb-inline-role{padding:0.2rem 0.4rem;border:1px solid #D8D0C3;font-size:0.72rem;background:#fff;cursor:pointer;outline:none;min-width:100px;}
.psb-inline-role:focus{border-color:#463C37;}
/* Action buttons */
.psb-action-btn{border:none;background:none;color:#6E6660;cursor:pointer;font-size:0.78rem;padding:0.25rem 0.5rem;transition:color 0.15s;min-width:32px;min-height:32px;display:inline-flex;align-items:center;justify-content:center;}
.psb-action-btn:hover{color:#1A1715;}
.psb-action-btn--danger:hover{color:#ef4444;}
.psb-add-user-membership{display:inline-flex;align-items:center;gap:0.3rem;padding:0.35rem 0.75rem;background:#fff;border:1px solid #B5AB9D;color:#3D3833;font-size:0.75rem;font-weight:600;cursor:pointer;transition:all 0.15s;}
.psb-add-user-membership:hover{background:#EFEBE5;border-color:#847C70;}
/* Add membership form */
.psb-add-form{background:#F8F6F3;border:1px solid #D8D0C3;padding:1rem;margin-bottom:1rem;display:none;}
.psb-add-form.psb-visible{display:block;}
.psb-add-form__title{font-weight:700;font-size:0.88rem;margin-bottom:0.75rem;display:flex;align-items:center;gap:0.5rem;}
.psb-add-form__row{display:flex;gap:0.75rem;align-items:flex-end;flex-wrap:wrap;}
.psb-add-form__field{display:flex;flex-direction:column;gap:0.25rem;min-width:160px;flex:1;}
.psb-add-form__label{font-size:0.72rem;font-weight:600;color:#3D3833;}
.psb-add-form__select,.psb-add-form__input{padding:0.45rem 0.65rem;border:1px solid #D8D0C3;font-size:0.8rem;background:#fff;outline:none;min-height:38px;}
.psb-add-form__select:focus,.psb-add-form__input:focus{border-color:#463C37;}
.psb-add-form__actions{display:flex;gap:0.5rem;align-items:flex-end;}
.psb-add-form__save{padding:0.45rem 1rem;background:#1A1715;color:#fff;border:none;font-size:0.8rem;font-weight:600;cursor:pointer;min-height:38px;}
.psb-add-form__save:hover{background:#3D3833;}
.psb-add-form__cancel{padding:0.45rem 1rem;background:#fff;color:#6E6660;border:1px solid #D8D0C3;font-size:0.8rem;cursor:pointer;min-height:38px;}
.psb-add-form__cancel:hover{background:#EFEBE5;}
/* Pagination */
.psb-pagination{display:flex;align-items:center;justify-content:space-between;padding:0.75rem 0;font-size:0.78rem;color:#6E6660;}
.psb-pagination__info{font-size:0.75rem;}
.psb-pagination__btns{display:flex;gap:0.25rem;}
.psb-pagination__btn{padding:0.35rem 0.65rem;border:1px solid #D8D0C3;background:#fff;font-size:0.75rem;cursor:pointer;color:#3D3833;transition:all 0.15s;min-width:36px;min-height:36px;display:inline-flex;align-items:center;justify-content:center;}
.psb-pagination__btn:hover{background:#EFEBE5;}
.psb-pagination__btn.psb-page-active{background:#1A1715;color:#fff;border-color:#1A1715;}
.psb-pagination__btn:disabled{opacity:0.4;cursor:default;pointer-events:none;}
/* Empty state */
.psb-empty{text-align:center;padding:3rem 1rem;color:#847C70;}
.psb-empty__icon{font-size:2rem;margin-bottom:0.75rem;color:#B5AB9D;}
.psb-empty__title{font-size:0.9rem;font-weight:700;color:#6E6660;margin-bottom:0.25rem;}
.psb-empty__sub{font-size:0.78rem;}
/* Loading */
.psb-loading{text-align:center;padding:3rem 1rem;color:#847C70;font-size:0.85rem;}
/* Responsive */
@media(max-width:768px){
.psb-modules{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;}
.psb-module-card{min-width:120px;flex:0 0 auto;}
.psb-stats{flex-wrap:wrap;}
.psb-stat{flex:0 0 calc(50% - 0.5px);min-width:0;}
.psb-user-header{flex-wrap:wrap;gap:0.5rem;}
.psb-user-badges{order:3;width:100%;}
.psb-detail-table{font-size:0.72rem;}
.psb-detail-table th,.psb-detail-table td{padding:0.4rem 0.6rem;}
.psb-add-form__row{flex-direction:column;}
.psb-add-form__field{min-width:100%;}
}
/* ═══ PLATFORM SETTINGS INTEGRATIONS ═══ */
.psi-toolbar {
display: flex; flex-direction: column; gap: 0.6rem;
padding-bottom: 0.85rem; margin-bottom: 1rem;
border-bottom: 2px solid #EFEBE5;
}
.psi-toolbar__top {
display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.psi-toolbar__bottom {
display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.psi-search-wrap {
position: relative; flex: 1; min-width: 200px;
}
.psi-search-wrap i {
position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
font-size: 0.72rem; color: #847C70; pointer-events: none;
}
.psi-search {
width: 100%;
padding: 0.45rem 0.75rem 0.45rem 2.1rem;
border: 1px solid #D8D0C3; background: #F8F6F3;
font-size: 0.8rem; color: #2A2622;
outline: none; transition: all 0.15s;
min-height: 44px; border-radius: 0;
}
.psi-search:focus { border-color: #1A1715; background: #fff; }
.psi-search::placeholder { color: #b0b5be; }
.psi-add-btn {
padding: 0.45rem 1rem; background: #1A1715; color: #fff;
border: none; font-size: 0.78rem; font-weight: 600; cursor: pointer;
min-height: 44px; border-radius: 0; transition: background 0.15s;
white-space: nowrap; display: inline-flex; align-items: center; gap: 0.4rem;
}
.psi-add-btn:hover { background: #3D3833; }
.psi-add-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.psi-add-btn:disabled:hover { background: #1A1715; }
.psi-filter-pills { display: flex; gap: 0.25rem; }
.psi-filter-pill {
padding: 0.3rem 0.75rem; border: 1px solid #D8D0C3; background: #fff;
font-size: 0.72rem; font-weight: 600; color: #6E6660;
cursor: pointer; transition: all 0.15s; border-radius: 50px;
min-height: 30px; display: inline-flex; align-items: center;
}
.psi-filter-pill:hover { border-color: #847C70; color: #3D3833; }
.psi-filter-pill.psi-active { background: #1A1715; color: #fff; border-color: #1A1715; }
.psi-status-summary {
margin-left: auto; font-size: 0.72rem; color: #847C70; font-weight: 500;
display: flex; align-items: center; gap: 0.75rem;
}
.psi-status-summary span { display: inline-flex; align-items: center; gap: 0.3rem; }
.psi-status-dot {
width: 7px; height: 7px; border-radius: 50px; display: inline-block;
}
.psi-status-dot--active { background: #7A8C6E; }
.psi-status-dot--configured { background: #463C37; }
.psi-status-dot--inactive { background: #ef4444; }
/* ═══ INTEGRATION CARDS ═══ */
.psi-cards { display: flex; flex-direction: column; gap: 0.75rem; }
.psi-card {
background: #fff; border: 1px solid #D8D0C3;
overflow: hidden; transition: all 0.2s ease; border-radius: 0;
}
.psi-card:hover { border-color: #B5AB9D; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.psi-card[data-hidden="true"] { display: none; }
.psi-card__header {
display: flex; align-items: center; gap: 0.85rem;
padding: 1rem 1.25rem; color: #fff;
}
.psi-card__icon {
width: 40px; height: 40px; flex-shrink: 0;
display: flex; align-items: center; justify-content: center;
background: rgba(255,255,255,0.12); font-size: 1rem;
border-radius: 0;
}
.psi-card__title-group { flex: 1; min-width: 0; }
.psi-card__name {
font-size: 0.9rem; font-weight: 700; line-height: 1.2;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.psi-card__desc {
font-size: 0.72rem; opacity: 0.75; margin-top: 0.15rem;
}
.psi-card__badge {
font-size: 0.72rem; padding: 0.3rem 0.6rem;
margin-left: auto; font-weight: 600; border-radius: 50px;
white-space: nowrap;
}
.psi-card__badge--active { background: rgba(122,140,110,0.15); color: #B5C5A8; }
.psi-card__badge--configured { background: rgba(70,60,55,0.15); color: #D6CDB9; }
.psi-card__badge--inactive { background: rgba(239,68,68,0.15); color: #fca5a5; }
.psi-card__badge--warning { background: rgba(251,191,36,0.15); color: #fde68a; }
.psi-card__body { padding: 1rem 1.25rem; }
.psi-card__grid {
display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 0.5rem 1.5rem;
}
.psi-detail {
display: flex; flex-direction: column; gap: 0.15rem;
padding: 0.35rem 0; border-bottom: 1px solid #EFEBE5;
}
.psi-detail__label {
font-size: 0.68rem; font-weight: 600; color: #847C70;
text-transform: uppercase; letter-spacing: 0.04em;
}
.psi-detail__value {
font-size: 0.8125rem; font-weight: 500; color: #2A2622;
}
.psi-detail__value--fresh { color: #7A8C6E; }
.psi-detail__value--stale { color: #C68A3A; }
.psi-detail__value--old { color: #ef4444; }
.psi-detail__value--masked { font-family: monospace; font-size: 0.75rem; color: #6E6660; }
.psi-card__actions {
display: flex; gap: 0.5rem; flex-wrap: wrap;
padding: 0.75rem 1.25rem; border-top: 1px solid #EFEBE5;
background: #fafbfc;
}
.psi-action-btn {
padding: 0.4rem 0.85rem; border: 1px solid #D8D0C3; background: #fff;
font-size: 0.75rem; font-weight: 600; color: #3D3833;
cursor: pointer; transition: all 0.15s; border-radius: 0;
min-height: 44px; display: inline-flex; align-items: center; gap: 0.35rem;
text-decoration: none;
}
.psi-action-btn:hover { border-color: #1A1715; color: #1A1715; background: #F8F6F3; }
.psi-action-btn--primary {
background: #1A1715; color: #fff; border-color: #1A1715;
}
.psi-action-btn--primary:hover { background: #3D3833; color: #fff; }
.psi-action-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.psi-action-btn:disabled:hover { border-color: #D8D0C3; color: #3D3833; background: #fff; }
/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
.psi-toolbar { gap: 0.4rem; }
.psi-search-wrap { flex: 1 1 100%; max-width: 100%; }
.psi-status-summary { margin-left: 0; flex: 1 1 100%; margin-top: 0.25rem; }
.psi-card__grid { grid-template-columns: 1fr; }
.psi-card__actions { flex-direction: column; }
.psi-action-btn { width: 100%; justify-content: center; }
}
/* ═══ SUPPORT TICKETS TOOLBAR ═══ */
.pst-toolbar {
display: flex; flex-direction: column; gap: 0.6rem;
padding-bottom: 0.85rem; margin-bottom: 1rem;
border-bottom: 2px solid #EFEBE5;
}
.pst-toolbar__top {
display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.pst-toolbar__bottom {
display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
}
.pst-search-wrap {
position: relative; flex: 1; min-width: 200px;
}
.pst-search-wrap i {
position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
font-size: 0.72rem; color: #847C70; pointer-events: none;
}
.pst-search {
width: 100%;
padding: 0.45rem 0.75rem 0.45rem 2.1rem;
border: 1px solid #D8D0C3; background: #F8F6F3;
font-size: 0.8rem; color: #2A2622;
outline: none; transition: all 0.15s;
min-height: 38px; border-radius: 0;
}
.pst-search:focus { border-color: #1A1715; background: #fff; }
.pst-search::placeholder { color: #b0b5be; }
.pst-add-btn {
padding: 0.45rem 1rem; background: #1A1715; color: #fff;
border: none; font-size: 0.78rem; font-weight: 600; cursor: pointer;
min-height: 38px; display: inline-flex; align-items: center; gap: 0.4rem;
transition: background 0.15s; margin-left: auto; border-radius: 0;
}
.pst-add-btn:hover { background: #3D3833; color: #fff; }
.pst-filter-pills { display: flex; gap: 0.25rem; }
.pst-filter-pill {
padding: 0.3rem 0.75rem; border: 1px solid #D8D0C3; background: #fff;
font-size: 0.72rem; font-weight: 600; color: #6E6660;
cursor: pointer; transition: all 0.15s; border-radius: 50px;
min-height: 30px; display: inline-flex; align-items: center;
}
.pst-filter-pill:hover { border-color: #847C70; color: #3D3833; }
.pst-filter-pill.pst-active { background: #1A1715; color: #fff; border-color: #1A1715; }
.pst-filter-label {
font-size: 0.68rem; font-weight: 700; color: #847C70;
text-transform: uppercase; letter-spacing: 0.04em; margin-right: 0.15rem;
}
.pst-kpi-row {
display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.pst-kpi {
display: flex; align-items: center; gap: 0.6rem;
padding: 0.6rem 1rem; border: 1px solid #EFEBE5; background: #fff;
flex: 1; min-width: 140px; border-radius: 0;
}
.pst-kpi__icon {
width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
font-size: 0.82rem; border-radius: 0;
}
.pst-kpi__value { font-size: 1.15rem; font-weight: 700; color: #1A1715; line-height: 1; }
.pst-kpi__label { font-size: 0.68rem; color: #847C70; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.pst-table-wrap { border: 1px solid #EFEBE5; overflow: hidden; }
.pst-table-wrap .dataTables_filter { display: none; }
@media(max-width:767px){
.pst-toolbar__top { flex-direction: column; }
.pst-add-btn { margin-left: 0; width: 100%; justify-content: center; }
.pst-kpi-row { gap: 0.5rem; }
.pst-kpi { min-width: 120px; padding: 0.5rem 0.75rem; }
}
/* ═══ GLOBAL DIRECTORY TOOLBAR ═══ */
.psd-toolbar {
display: flex; flex-direction: column; gap: 0.6rem;
padding-bottom: 0.85rem; margin-bottom: 1rem;
border-bottom: 2px solid #EFEBE5;
}
.psd-toolbar__top {
display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.psd-toolbar__bottom {
display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
}
.psd-search-wrap {
position: relative; flex: 1; min-width: 200px;
}
.psd-search-wrap i {
position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
font-size: 0.72rem; color: #847C70; pointer-events: none;
}
.psd-search {
width: 100%;
padding: 0.45rem 0.75rem 0.45rem 2.1rem;
border: 1px solid #D8D0C3; background: #F8F6F3;
font-size: 0.8rem; color: #2A2622;
outline: none; transition: all 0.15s;
min-height: 38px; border-radius: 0;
}
.psd-search:focus { border-color: #1A1715; background: #fff; }
.psd-search::placeholder { color: #b0b5be; }
.psd-view-toggle { display: flex; gap: 0; }
.psd-view-btn {
width: 38px; height: 38px; border: 1px solid #D8D0C3; background: #F8F6F3;
display: flex; align-items: center; justify-content: center;
cursor: pointer; color: #847C70; font-size: 0.78rem;
transition: all 0.15s; border-radius: 0;
}
.psd-view-btn:first-child { border-right: none; }
.psd-view-btn:hover { background: #D8D0C3; color: #3D3833; }
.psd-view-btn.psd-active { background: #1A1715; color: #fff; border-color: #1A1715; }
.psd-add-btn {
padding: 0.45rem 1rem; background: #1A1715; color: #fff;
border: none; font-size: 0.78rem; font-weight: 600; cursor: pointer;
min-height: 38px; display: inline-flex; align-items: center; gap: 0.4rem;
transition: background 0.15s; margin-left: auto; border-radius: 0;
}
.psd-add-btn:hover { background: #3D3833; color: #fff; }
.psd-filter-pills { display: flex; gap: 0.25rem; }
.psd-filter-pill {
padding: 0.3rem 0.75rem; border: 1px solid #D8D0C3; background: #fff;
font-size: 0.72rem; font-weight: 600; color: #6E6660;
cursor: pointer; transition: all 0.15s; border-radius: 50px;
min-height: 30px; display: inline-flex; align-items: center;
}
.psd-filter-pill:hover { border-color: #847C70; color: #3D3833; }
.psd-filter-pill.psd-active { background: #1A1715; color: #fff; border-color: #1A1715; }
.psd-sort-select {
padding: 0.3rem 1.75rem 0.3rem 0.6rem; border: 1px solid #D8D0C3;
background: #fff; font-size: 0.75rem; color: #6E6660;
cursor: pointer; min-height: 30px; border-radius: 0;
-webkit-appearance: none; -moz-appearance: none; appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
background-repeat: no-repeat; background-position: right 0.6rem center;
}
.psd-sort-select:focus { border-color: #1A1715; outline: none; }
.psd-filter-label {
font-size: 0.68rem; font-weight: 700; color: #847C70;
text-transform: uppercase; letter-spacing: 0.04em; margin-right: 0.15rem;
}
.psd-table-wrap { border: 1px solid #EFEBE5; overflow: hidden; }
.psd-table-wrap .dataTables_filter { display: none; }
@media(max-width:767px){
.psd-toolbar__top { flex-direction: column; }
.psd-add-btn { margin-left: 0; width: 100%; justify-content: center; }
}
/* ═══ PLATFORM SETTINGS LAYOUT ═════════════════════════════════════ */
.ps-container { display:flex; gap:0; min-height:calc(100vh - 280px); overflow:visible; }
.ps-sidebar { width:260px; flex-shrink:0; border-right:1px solid #D8D0C3; background:#f8f9fa; display:flex; flex-direction:column; }
.ps-sidebar__header { padding:1.25rem 1rem; border-bottom:1px solid #D8D0C3; display:flex; align-items:center; gap:0.75rem; }
.ps-sidebar__logo { width:40px; height:40px; border-radius:10px; overflow:hidden; flex-shrink:0; display:flex; align-items:center; justify-content:center; background:#D8D0C3; }
.ps-sidebar__title { font-weight:700; font-size:0.9rem; color:#2A2622; }
.ps-sidebar__nav { padding:0.5rem 0; flex:1; overflow-y:auto; }
.ps-sidebar__section-label { font-size:0.65rem; font-weight:700; color:#847C70; text-transform:uppercase; letter-spacing:0.06em; padding:0.85rem 1.25rem 0.3rem; }
.ps-sidebar__nav-item { display:flex; align-items:center; gap:0.625rem; padding:0.6rem 1.25rem; font-size:0.84rem; color:#524A45; text-decoration:none; transition:all 0.15s; border-left:3px solid transparent; }
.ps-sidebar__nav-item:hover { background:#f0f0f0; color:#2A2622; }
.ps-sidebar__nav-item.active { background:#fff; color:var(--sa-primary-color,#282320); border-left-color:var(--sa-primary-color,#282320); font-weight:600; }
.ps-sidebar__nav-item i { width:18px; text-align:center; font-size:0.78rem; }
.ps-sidebar__badge { margin-left:auto; font-size:0.65rem; font-weight:700; background:#ef4444; color:#fff; padding:0.1rem 0.45rem; border-radius:50px; min-width:18px; text-align:center; }
.ps-content { flex:1; overflow:visible; min-width:0; }
.ps-panel { display:none; padding:1.5rem 2rem 2rem; }
.ps-panel.active { display:block; }
.ps-panel__title { font-size:1.1rem; font-weight:700; color:#2A2622; margin-bottom:1.25rem; padding-bottom:0.75rem; border-bottom:1px solid #D8D0C3; }
/* ═══ STAT CARDS ═══════════════════════════════════════════════════ */
.ps-stat-card { display:flex; align-items:center; gap:0.875rem; padding:1rem; border-radius:10px; border:1px solid #D8D0C3; background:#fff; transition:all 0.15s; }
a.ps-stat-card--link { text-decoration:none; color:inherit; cursor:pointer; }
a.ps-stat-card--link:hover { border-color:var(--sa-primary-color,#282320); box-shadow:0 4px 12px rgba(0,0,0,0.06); transform:translateY(-1px); }
.ps-stat-card__icon { width:44px; height:44px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:1.1rem; flex-shrink:0; }
.ps-stat-card__value { font-size:1.35rem; font-weight:700; color:#2A2622; line-height:1.2; }
.ps-stat-card__label { font-size:0.7rem; color:#6E6660; text-transform:uppercase; letter-spacing:0.03em; font-weight:600; }
/* ═══ INFO SECTIONS ═══════════════════════════════════════════════ */
.ps-info-section { padding:1rem 1.25rem; border:1px solid #D8D0C3; border-radius:10px; background:#fafafa; }
.ps-info-section__title { font-size:0.82rem; font-weight:700; color:#3D3833; margin-bottom:0.75rem; padding-bottom:0.5rem; border-bottom:1px solid #D8D0C3; }
.ps-info-row { display:flex; justify-content:space-between; align-items:center; padding:0.4rem 0; font-size:0.82rem; }
.ps-info-row__label { color:#6E6660; flex-shrink:0; margin-right:1rem; }
.ps-info-row__value { color:#2A2622; font-weight:500; text-align:right; }
/* ═══ ENTITY CHIPS ════════════════════════════════════════════════ */
.ps-entity-chip { display:flex; align-items:center; gap:0.6rem; padding:0.6rem 0.75rem; border:1px solid #D8D0C3; border-radius:8px; background:#fff; transition:all 0.15s; }
.ps-entity-chip:hover { border-color:#E8E0D4; background:#f8faff; }
.ps-entity-chip__logo { width:28px; height:28px; border-radius:4px; object-fit:contain; flex-shrink:0; }
.ps-entity-chip__logo--placeholder { background:#EFEBE5; display:flex; align-items:center; justify-content:center; color:#847C70; font-size:0.65rem; }
.ps-entity-chip__name { font-size:0.78rem; font-weight:600; color:#2A2622; line-height:1.2; }
.ps-entity-chip__meta { font-size:0.65rem; color:#847C70; }
/* ═══ MODULES TOOLBAR + CARDS ════════════════════════════════════ */
.psm-toolbar { display:flex; flex-direction:column; gap:0.6rem; padding-bottom:0.85rem; margin-bottom:1rem; border-bottom:2px solid #EFEBE5; }
.psm-toolbar__top { display:flex; align-items:center; gap:0.5rem; flex-wrap:wrap; }
.psm-toolbar__bottom { display:flex; align-items:center; gap:0.5rem; flex-wrap:wrap; }
.psm-search-wrap { position:relative; flex:1; min-width:200px; }
.psm-search-wrap i { position:absolute; left:0.75rem; top:50%; transform:translateY(-50%); font-size:0.72rem; color:#847C70; pointer-events:none; }
.psm-search { width:100%; padding:0.45rem 0.75rem 0.45rem 2.1rem; border:1px solid #D8D0C3; background:#F8F6F3; font-size:0.8rem; color:#2A2622; outline:none; transition:all 0.15s; min-height:38px; border-radius:0; }
.psm-search:focus { border-color:#1A1715; background:#fff; }
.psm-search::placeholder { color:#b0b5be; }
.psm-view-toggle { display:flex; gap:0; }
.psm-view-btn { width:38px; height:38px; border:1px solid #D8D0C3; background:#F8F6F3; display:flex; align-items:center; justify-content:center; cursor:pointer; color:#847C70; font-size:0.78rem; transition:all 0.15s; border-radius:0; }
.psm-view-btn:first-child { border-right:none; }
.psm-view-btn:hover { background:#D8D0C3; color:#3D3833; }
.psm-view-btn.psm-active { background:#1A1715; color:#fff; border-color:#1A1715; }
.psm-add-btn { padding:0.45rem 1rem; background:#1A1715; color:#fff; border:none; font-size:0.78rem; font-weight:600; cursor:pointer; min-height:38px; display:inline-flex; align-items:center; gap:0.4rem; transition:background 0.15s; margin-left:auto; border-radius:0; }
.psm-add-btn:hover { background:#3D3833; }
.psm-add-btn:disabled { opacity:0.4; cursor:not-allowed; }
.psm-filter-pills { display:flex; gap:0.25rem; }
.psm-filter-pill { padding:0.3rem 0.75rem; border:1px solid #D8D0C3; background:#fff; font-size:0.72rem; font-weight:600; color:#6E6660; cursor:pointer; transition:all 0.15s; border-radius:50px; min-height:30px; display:inline-flex; align-items:center; }
.psm-filter-pill:hover { border-color:#847C70; color:#3D3833; }
.psm-filter-pill.psm-active { background:#1A1715; color:#fff; border-color:#1A1715; }
.psm-toolbar-right { display:flex; align-items:center; gap:0.5rem; margin-left:auto; }
.psm-sort-select { padding:0.3rem 1.75rem 0.3rem 0.6rem; border:1px solid #D8D0C3; background:#fff; font-size:0.75rem; color:#6E6660; cursor:pointer; min-height:30px; border-radius:0; -webkit-appearance:none; -moz-appearance:none; appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 0.6rem center; }
.psm-sort-select:focus { border-color:#1A1715; outline:none; }
.psm-card-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)); gap:0.75rem; }
.psm-card { background:#fff; border:1px solid #D8D0C3; padding:0; overflow:hidden; transition:all 0.2s ease; border-radius:0; }
.psm-card:hover { border-color:#B5AB9D; box-shadow:0 4px 12px rgba(0,0,0,0.06); transform:translateY(-2px); }
.psm-card__body { padding:1.25rem 1.25rem 0.75rem; display:flex; align-items:flex-start; gap:0.75rem; }
.psm-card__icon { width:40px; height:40px; display:flex; align-items:center; justify-content:center; font-size:1rem; flex-shrink:0; border-radius:0; }
.psm-card__icon--sm { width:30px; height:30px; font-size:0.8rem; }
.psm-card__info { flex:1; min-width:0; }
.psm-card__name { font-weight:700; font-size:0.9rem; color:#2A2622; margin-bottom:0.15rem; }
.psm-card__code-badge { display:inline-block; padding:0.1rem 0.5rem; background:#EFEBE5; color:#6E6660; font-size:0.68rem; font-family:monospace; font-weight:600; border-radius:50px; }
.psm-card__desc { padding:0 1.25rem 0.75rem; font-size:0.8rem; color:#6E6660; line-height:1.4; }
.psm-card__footer { display:flex; align-items:center; justify-content:space-between; padding:0.75rem 1.25rem; border-top:1px solid #EFEBE5; font-size:0.78rem; color:#6E6660; }
.psm-card__members { display:inline-flex; align-items:center; gap:0.25rem; }
.psm-card__status { display:inline-block; padding:0.15rem 0.6rem; font-size:0.68rem; font-weight:600; border-radius:50px; }
.psm-card__status--active { background:#DFE5D6; color:#5F7058; }
.psm-card__status--inactive { background:#fee2e2; color:#dc2626; }
.psm-card__actions-wrap { position:relative; flex-shrink:0; }
.psm-card__actions-btn { width:30px; height:30px; border:none; background:transparent; color:#847C70; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:0.85rem; transition:color 0.15s; border-radius:0; }
.psm-card__actions-btn:hover { color:#3D3833; }
.psm-card__dropdown { position:absolute; right:0; top:100%; background:#fff; border:1px solid #D8D0C3; box-shadow:0 8px 24px rgba(0,0,0,0.12); min-width:160px; z-index:20; display:none; border-radius:0; }
.psm-card__dropdown.psm-visible { display:block; }
.psm-card__dropdown button,
.psm-card__dropdown a { display:flex; align-items:center; width:100%; padding:0.55rem 0.85rem; border:none; background:transparent; font-size:0.78rem; color:#3D3833; cursor:pointer; text-align:left; transition:background 0.12s; min-height:44px; text-decoration:none; }
.psm-card__dropdown button:hover,
.psm-card__dropdown a:hover { background:#EFEBE5; color:#3D3833; text-decoration:none; }
.psm-card__dropdown button:disabled { color:#B5AB9D; cursor:not-allowed; }
.psm-card__dropdown button:disabled:hover { background:transparent; }
.psm-empty { display:flex; flex-direction:column; align-items:center; gap:0.5rem; padding:2rem; color:#847C70; font-size:0.82rem; border:1px solid #D8D0C3; background:#fafafa; grid-column:1/-1; border-radius:0; }
.psm-empty i { font-size:1.4rem; opacity:0.35; }
/* Modules Table View */
.psm-table-wrap { overflow-x:auto; }
.psm-table { width:100%; border-collapse:collapse; font-size:0.82rem; }
.psm-table thead th { padding:0.6rem 0.75rem; background:#f8f9fa; border:1px solid #D8D0C3; border-bottom:2px solid #dee2e6; font-size:0.72rem; font-weight:700; color:#6E6660; text-transform:uppercase; letter-spacing:0.04em; white-space:nowrap; border-radius:0; }
.psm-th-sortable { cursor:pointer; user-select:none; transition:color 0.15s; }
.psm-th-sortable:hover { color:#2A2622; }
.psm-th-sortable.psm-sort-active { color:#2A2622; }
.psm-th-sortable i { margin-left:4px; font-size:0.65rem; }
.psm-table tbody td { padding:0.65rem 0.75rem; border:1px solid #D8D0C3; border-top:none; vertical-align:middle; }
.psm-table tbody tr { background:#fff; transition:background 0.12s; }
.psm-table tbody tr:hover { background:#F8F6F3; }
/* ═══ INTEGRATION CARDS ══════════════════════════════════════════ */
.ps-integration-card { border:1px solid #D8D0C3; border-radius:10px; overflow:hidden; background:#fff; }
.ps-integration-card__header { padding:1.25rem; display:flex; align-items:center; gap:0.75rem; }
.ps-integration-card__icon { width:36px; height:36px; border-radius:8px; background:rgba(255,255,255,0.1); display:flex; align-items:center; justify-content:center; font-size:0.95rem; color:#fff; flex-shrink:0; }
.ps-integration-card__name { font-size:0.9rem; font-weight:700; color:#fff; }
.ps-integration-card__desc { font-size:0.72rem; color:rgba(255,255,255,0.5); }
.ps-integration-card__body { padding:1rem 1.25rem; }
/* ═══ MEMBERSHIPS (from standalone page) ════════════════════════ */
.sa-mod-grid { display:flex; gap:0.75rem; flex-wrap:wrap; }
.sa-mod-card { flex:1 1 160px; max-width:220px; background:#fff; border:2px solid #D8D0C3; padding:1rem; display:flex; flex-direction:column; gap:0.5rem; cursor:pointer; transition:all 0.15s; border-radius:6px; }
.sa-mod-card:hover { border-color:#B5AB9D; box-shadow:0 2px 8px rgba(0,0,0,0.06); }
.sa-mod-card--selected { border-color:var(--sa-primary-color,#282320); box-shadow:0 0 0 3px rgba(40,35,32,0.15); }
.sa-mod-card__header { display:flex; align-items:center; gap:0.6rem; }
.sa-mod-card__icon { width:38px; height:38px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:1.1rem; color:#fff; flex-shrink:0; }
.sa-mod-card__logo { height:38px; max-width:100px; object-fit:contain; flex-shrink:0; }
.sa-mod-card__info { flex:1; min-width:0; }
.sa-mod-card__name { font-weight:700; font-size:0.82rem; color:#2A2622; }
.sa-mod-card__code { font-size:0.65rem; color:#847C70; font-weight:600; letter-spacing:0.04em; }
.sa-mod-card__count { font-size:1.5rem; font-weight:800; color:#2A2622; line-height:1; }
.sa-mod-card__label { font-size:0.68rem; color:#847C70; }
.sa-mem-filters { display:flex; align-items:center; gap:0.75rem; flex-wrap:wrap; }
.sa-mem-filters .form-select { font-size:0.8rem; padding:0.35rem 2rem 0.35rem 0.6rem; }
.sa-mem-filter-label { font-size:0.75rem; font-weight:600; color:#6E6660; }
.sa-mem-filter-clear { font-size:0.75rem; color:#6E6660; cursor:pointer; text-decoration:underline; }
.sa-mem-filter-clear:hover { color:#2A2622; }
/* old membershipsTable styles moved to psb- inline block */
.sa-mem-user-cell { display:flex; align-items:center; gap:0.6rem; min-width:180px; }
.sa-mem-avatar { width:32px; height:32px; border-radius:50%; object-fit:cover; background:#EFEBE5; flex-shrink:0; }
.sa-mem-user-name { font-weight:600; font-size:0.82rem; color:#2A2622; white-space:nowrap; }
.sa-mem-user-email { font-size:0.7rem; color:#847C70; white-space:nowrap; }
.sa-sa-badge { display:inline-block; font-size:0.6rem; font-weight:700; padding:0.05rem 0.3rem; background:#fef3c7; color:#92400e; border-radius:3px; margin-left:0.35rem; vertical-align:middle; }
.sa-mem-col-header { display:flex; align-items:center; gap:0.3rem; justify-content:center; font-weight:700; font-size:0.78rem; }
.sa-mem-col-header i { font-size:0.75rem; }
.sa-mem-module-cell { text-align:center; cursor:pointer; min-width:72px; }
.sa-mem-module-cell:hover { background:#F8F6F3; }
.sa-mem-badge { display:inline-block; font-size:0.7rem; font-weight:600; padding:0.2rem 0.5rem; border-radius:4px; border:1px solid; cursor:pointer; transition:all 0.12s; white-space:nowrap; }
.sa-mem-badge:hover { filter:brightness(0.95); transform:scale(1.05); }
.sa-mem-empty-cell { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:4px; color:#B5AB9D; font-size:0.7rem; transition:all 0.12s; cursor:pointer; }
.sa-mem-empty-cell:hover { background:#f0f9ff; color:#5F7058; border:1px dashed #D6CDB9; }
.sa-mem-count { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:50%; font-size:0.72rem; font-weight:700; background:#EFEBE5; color:#524A45; }
.sa-mem-count--zero { background:transparent; color:#B5AB9D; }
.sa-role-picker { display:none; position:fixed; z-index:1060; background:#fff; border:1px solid #D8D0C3; border-radius:10px; box-shadow:0 8px 24px rgba(0,0,0,0.14); min-width:180px; overflow:hidden; }
.sa-role-picker.show { display:block; }
.sa-role-picker__header { display:flex; align-items:center; justify-content:space-between; padding:0.6rem 0.75rem; background:#F8F6F3; border-bottom:1px solid #EFEBE5; }
.sa-role-picker__title { font-size:0.75rem; font-weight:700; color:#524A45; }
.sa-role-picker__close { background:none; border:none; color:#847C70; cursor:pointer; font-size:0.85rem; padding:0; }
.sa-role-picker__close:hover { color:#3D3833; }
.sa-role-picker__options { padding:0.35rem; }
.sa-role-picker__opt { display:flex; align-items:center; gap:0.5rem; width:100%; padding:0.45rem 0.65rem; border:none; background:none; text-align:left; font-size:0.8rem; color:#3D3833; cursor:pointer; border-radius:6px; transition:background 0.1s; }
.sa-role-picker__opt:hover { background:#f0f9ff; }
.sa-role-picker__opt.active { background:#EFEBE5; color:#282320; font-weight:600; }
.sa-role-picker__opt i { width:16px; text-align:center; font-size:0.78rem; }
.sa-role-picker__footer { padding:0.35rem; border-top:1px solid #EFEBE5; }
.sa-role-picker__remove { display:flex; align-items:center; gap:0.5rem; width:100%; padding:0.45rem 0.65rem; border:none; background:none; text-align:left; font-size:0.78rem; color:#dc2626; cursor:pointer; border-radius:6px; transition:background 0.1s; }
.sa-role-picker__remove:hover { background:#fef2f2; }
.sa-mem-empty { text-align:center; padding:2rem; color:#847C70; font-size:0.82rem; }
.sa-mem-empty i { font-size:1.4rem; display:block; margin-bottom:0.4rem; opacity:0.35; }
@media (max-width:768px) { .sa-mod-grid { flex-direction:column; } .sa-mod-card { max-width:100%; } }
/* ═══ FILTER BUTTONS ════════════════════════════════════════════ */
.ps-role-filter.active, .ps-login-filter.active, .ps-ticket-status-filter.active, .ps-dir-view-btn.active {
background:#524A45 !important; color:#fff !important; border-color:#524A45 !important;
}
.ps-role-filter:not(.active), .ps-login-filter:not(.active), .ps-ticket-status-filter:not(.active), .ps-dir-view-btn:not(.active) {
background:#fff !important; color:#6E6660 !important; border-color:#B5AB9D !important;
}
.ps-role-filter:not(.active):hover, .ps-login-filter:not(.active):hover, .ps-ticket-status-filter:not(.active):hover, .ps-dir-view-btn:not(.active):hover {
background:#EFEBE5 !important; color:#3D3833 !important;
}
.ps-module-chip { font-size:0.78rem; border-radius:50px; padding:0.3rem 0.75rem; }
.ps-module-chip:hover { opacity:0.8; }
/* ═══ BRAND PREVIEW ═════════════════════════════════════════════ */
.ps-brand-preview { border:1px solid #D8D0C3; border-radius:10px; overflow:hidden; box-shadow:0 4px 16px rgba(0,0,0,0.08); max-width:340px; }
.ps-brand-preview__header { padding:1rem 1.25rem; display:flex; align-items:center; gap:0.75rem; color:#fff; }
.ps-brand-preview__logo { width:40px; height:40px; border-radius:8px; background:rgba(255,255,255,0.15); display:flex; align-items:center; justify-content:center; flex-shrink:0; overflow:hidden; border:2px solid rgba(255,255,255,0.2); }
.ps-brand-preview__logo img { max-width:100%; max-height:100%; object-fit:contain; }
.ps-brand-preview__name { font-weight:700; font-size:0.95rem; letter-spacing:-0.01em; }
.ps-brand-preview__body { padding:1rem 1.25rem; background:#fff; }
.ps-brand-preview__colors { display:flex; gap:1rem; margin-bottom:0.75rem; }
.ps-brand-preview__color-block { flex:1; text-align:center; }
.ps-brand-preview__color-swatch { width:100%; height:32px; border-radius:6px; border:1px solid rgba(0,0,0,0.08); margin-bottom:0.25rem; }
.ps-brand-preview__color-label { font-size:0.68rem; color:#6E6660; font-weight:600; font-family:monospace; }
.ps-brand-preview__mock-nav { display:flex; gap:0; border:1px solid #D8D0C3; border-radius:6px; overflow:hidden; }
.ps-brand-preview__mock-item { flex:1; text-align:center; padding:0.4rem 0; font-size:0.7rem; font-weight:500; color:#6E6660; background:#F8F6F3; border-right:1px solid #D8D0C3; }
.ps-brand-preview__mock-item:last-child { border-right:none; }
.ps-brand-preview__mock-item.active { background:#282320; color:#fff; }
/* ═══ ARCHITECTURE PANEL ═══════════════════════════════════════ */
/* Section Tabs */
.arch-tabs { display:flex; gap:0; border-bottom:2px solid #D8D0C3; margin-bottom:1.5rem; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.arch-tabs::-webkit-scrollbar { display:none; }
.arch-tab { display:inline-flex; align-items:center; gap:0.35rem; padding:0.65rem 1rem; font-size:0.82rem; font-weight:500; color:#6E6660; background:none; border:none; border-bottom:2px solid transparent; margin-bottom:-2px; cursor:pointer; white-space:nowrap; transition:all 0.15s; }
.arch-tab:hover { color:#2A2622; background:#F8F6F3; }
.arch-tab.active { color:var(--sa-primary-color,#282320); border-bottom-color:var(--sa-primary-color,#282320); font-weight:600; }
.arch-tab i { font-size:0.75rem; }
/* Sections */
.arch-section { display:none; }
.arch-section.active { display:block; }
/* Hero */
.arch-hero { display:flex; align-items:flex-start; gap:1rem; padding:1.25rem; background:linear-gradient(135deg,#F8F6F3,#eef2ff); border:1px solid #e0e7ff; border-radius:10px; margin-bottom:1.5rem; }
.arch-hero__icon { width:48px; height:48px; border-radius:12px; background:var(--sa-primary-color,#282320); color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.2rem; flex-shrink:0; }
.arch-hero__title { font-size:1.15rem; font-weight:700; color:#2A2622; margin:0 0 0.25rem; }
.arch-hero__sub { font-size:0.82rem; color:#524A45; line-height:1.5; margin:0; }
/* Metric Cards */
.arch-metric { text-align:center; padding:1rem; border:1px solid #D8D0C3; border-radius:10px; background:#fff; }
.arch-metric__value { font-size:1.6rem; font-weight:800; color:var(--sa-primary-color,#282320); line-height:1.2; }
.arch-metric__label { font-size:0.7rem; color:#6E6660; text-transform:uppercase; letter-spacing:0.04em; font-weight:600; margin-top:0.25rem; }
/* Cards */
.arch-card { border:1px solid #D8D0C3; border-radius:10px; background:#fff; overflow:hidden; }
.arch-card__header { padding:0.875rem 1.25rem; background:#f8f9fa; border-bottom:1px solid #D8D0C3; font-size:0.85rem; font-weight:700; color:#2A2622; }
.arch-card__body { padding:1.25rem; }
/* Architecture Layers */
.arch-layers { display:flex; justify-content:center; }
.arch-layer { border:2px solid; border-radius:10px; padding:0.75rem; }
.arch-layer__label { font-size:0.72rem; font-weight:800; text-transform:uppercase; letter-spacing:0.08em; margin-bottom:0.2rem; }
.arch-layer__desc { font-size:0.72rem; color:#6E6660; margin-bottom:0.6rem; line-height:1.4; }
.arch-layer--1 { border-color:#463C37; background:#EFEBE5; }
.arch-layer--1 > .arch-layer__label { color:#282320; }
.arch-layer--2 { border-color:#8b5cf6; background:#faf5ff; }
.arch-layer--2 > .arch-layer__label { color:#7c3aed; }
.arch-layer--3 { border-color:#7A8C6E; background:#F2F5EE; }
.arch-layer--3 > .arch-layer__label { color:#5F7058; }
.arch-layer--4 { border-color:#C68A3A; background:#fffbeb; }
.arch-layer--4 > .arch-layer__label { color:#A87825; }
.arch-layer--5 { border-color:#ef4444; background:#fef2f2; padding:0.5rem 0.75rem; }
.arch-layer--5 > .arch-layer__label { color:#dc2626; }
.arch-layer--5 > .arch-layer__desc { margin-bottom:0; }
/* Stack Diagram */
.arch-stack { display:flex; flex-direction:column; align-items:stretch; }
.arch-stack__row { display:flex; align-items:center; gap:0.875rem; padding:0.875rem 1.25rem; border-bottom:1px solid #EFEBE5; }
.arch-stack__row:last-child { border-bottom:none; }
.arch-stack__icon { width:36px; height:36px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:0.9rem; flex-shrink:0; color:#fff; }
.arch-stack__row--client .arch-stack__icon { background:#463C37; }
.arch-stack__row--web .arch-stack__icon { background:#7A8C6E; }
.arch-stack__row--app .arch-stack__icon { background:#8b5cf6; }
.arch-stack__row--data .arch-stack__icon { background:#C68A3A; }
.arch-stack__row--services .arch-stack__icon { background:#7A8C6E; }
.arch-stack__name { font-size:0.82rem; font-weight:700; color:#2A2622; }
.arch-stack__tech { font-size:0.75rem; color:#6E6660; }
.arch-stack__info { flex:1; min-width:0; }
.arch-stack__protocol { font-size:0.65rem; font-weight:700; color:#847C70; text-transform:uppercase; letter-spacing:0.06em; background:#EFEBE5; padding:0.2rem 0.5rem; border-radius:4px; flex-shrink:0; }
.arch-stack__arrow { text-align:center; padding:0.15rem 0; color:#B5AB9D; font-size:0.7rem; }
/* Capability Grid */
.arch-capability { display:flex; align-items:center; gap:0.6rem; padding:0.6rem 0.75rem; border:1px solid #D8D0C3; border-radius:8px; background:#fafafa; font-size:0.78rem; font-weight:500; color:#3D3833; transition:all 0.15s; }
.arch-capability:hover { border-color:#E8E0D4; background:#f0f7ff; }
.arch-capability i { color:var(--sa-primary-color,#282320); font-size:0.85rem; width:18px; text-align:center; }
/* ═══ DICTIONARY v2 ═══════════════════════════════════════════ */
/* Toolbar */
.dict2-toolbar { display:flex; align-items:center; gap:0.75rem; margin-bottom:1.25rem; flex-wrap:wrap; }
.dict2-search { position:relative; flex:1; min-width:200px; max-width:420px; }
.dict2-search i { position:absolute; left:12px; top:50%; transform:translateY(-50%); font-size:0.78rem; color:#847C70; pointer-events:none; }
.dict2-search input { width:100%; padding:0.6rem 5.5rem 0.6rem 2.2rem; font-size:0.85rem; border:1px solid #D8D0C3; border-radius:8px; background:#fff; outline:none; transition:border-color 0.15s; }
.dict2-search input:focus { border-color:var(--sa-primary-color,#282320); box-shadow:0 0 0 3px rgba(40,35,32,0.08); }
.dict2-search__count { position:absolute; right:12px; top:50%; transform:translateY(-50%); font-size:0.68rem; color:#847C70; font-weight:500; pointer-events:none; }
.dict2-view-toggle { display:flex; border:1px solid #D8D0C3; border-radius:6px; overflow:hidden; }
.dict2-view-btn { padding:0.45rem 0.65rem; background:#fff; border:none; color:#847C70; cursor:pointer; font-size:0.78rem; transition:all 0.12s; }
.dict2-view-btn:not(:last-child) { border-right:1px solid #D8D0C3; }
.dict2-view-btn:hover { color:#3D3833; background:#F8F6F3; }
.dict2-view-btn.active { background:var(--sa-primary-color,#282320); color:#fff; }
/* Groups */
.dict2-group { border:1px solid #D8D0C3; border-radius:10px; overflow:hidden; margin-bottom:0.75rem; background:#fff; }
.dict2-group__header { display:flex; align-items:center; gap:0.75rem; padding:0.85rem 1.25rem; background:#f8f9fa; border-bottom:1px solid #D8D0C3; cursor:pointer; user-select:none; transition:background 0.12s; }
.dict2-group__header:hover { background:#f0f2f4; }
.dict2-group__icon { width:32px; height:32px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:0.8rem; flex-shrink:0; }
.dict2-group__title { font-size:0.88rem; font-weight:700; color:#2A2622; flex:1; }
.dict2-group__count { font-size:0.68rem; font-weight:600; color:#847C70; background:#D8D0C3; padding:0.15rem 0.5rem; border-radius:50px; min-width:22px; text-align:center; }
.dict2-group__body { }
.dict2-group.collapsed .dict2-group__body { display:none; }
.dict2-group__header::after { content:'\ea7b'; font-family:'LineIcons'; font-weight:normal; font-size:0.6rem; color:#847C70; transition:transform 0.2s; }
.dict2-group.collapsed .dict2-group__header::after { transform:rotate(-90deg); }
/* Terms */
.dict2-term { border-bottom:1px solid #EFEBE5; transition:background 0.1s; }
.dict2-term:last-child { border-bottom:none; }
.dict2-term__row { display:flex; align-items:baseline; gap:0.75rem; padding:0.7rem 1.25rem; cursor:pointer; transition:background 0.1s; }
.dict2-term__row:hover { background:#fafbfc; }
.dict2-term__name { font-size:0.84rem; font-weight:600; color:var(--sa-primary-color,#282320); min-width:160px; flex-shrink:0; }
.dict2-term__summary { font-size:0.8rem; color:#6E6660; flex:1; }
.dict2-term__row::after { content:'\ea7d'; font-family:'LineIcons'; font-weight:normal; font-size:0.55rem; color:#B5AB9D; transition:transform 0.2s; flex-shrink:0; }
.dict2-term.open .dict2-term__row::after { transform:rotate(90deg); color:var(--sa-primary-color,#282320); }
/* Term detail (expanded) */
.dict2-term__detail { display:none; padding:0 1.25rem 0.85rem 1.25rem; margin-left:160px; padding-left:0.75rem; border-left:2px solid #e0e7ff; }
.dict2-term.open .dict2-term__detail { display:block; }
.dict2-term__detail p { font-size:0.8rem; color:#3D3833; line-height:1.6; margin:0 0 0.5rem; }
.dict2-term__detail p:last-child { margin-bottom:0; }
.dict2-term__detail code { font-size:0.72rem; background:#EFEBE5; padding:0.1rem 0.35rem; border-radius:3px; color:#524A45; }
/* Detail sub-elements */
.dict2-term__table { width:100%; border-collapse:collapse; font-size:0.75rem; margin:0.4rem 0; }
.dict2-term__table th { background:#f8f9fa; padding:0.35rem 0.6rem; text-align:left; font-weight:600; color:#524A45; border-bottom:1px solid #D8D0C3; font-size:0.68rem; text-transform:uppercase; letter-spacing:0.03em; }
.dict2-term__table td { padding:0.35rem 0.6rem; border-bottom:1px solid #EFEBE5; color:#3D3833; }
.dict2-term__table tr:last-child td { border-bottom:none; }
.dict2-term__analogy { font-size:0.75rem; color:#6E6660; font-style:italic; background:#fefce8; padding:0.45rem 0.65rem; border-radius:6px; border-left:3px solid #fbbf24; margin-top:0.5rem; }
.dict2-term__analogy i { color:#C68A3A; margin-right:0.35rem; font-style:normal; }
.dict2-term__codes { display:flex; flex-wrap:wrap; gap:0.3rem; margin:0.35rem 0; }
.dict2-term__codes span, .dict2-term__codes code { font-size:0.68rem; font-weight:600; background:#EFEBE5; color:#524A45; padding:0.2rem 0.45rem; border-radius:4px; font-family:monospace; display:inline-block; }
.dict2-term__keypoint { font-size:0.78rem; background:#f0f9ff; border:1px solid #E8E0D4; padding:0.45rem 0.7rem; border-radius:6px; color:#1A1715; margin:0.4rem 0; line-height:1.5; }
.dict2-term__flow { display:flex; align-items:center; gap:0.4rem; flex-wrap:wrap; margin:0.35rem 0; }
.dict2-term__flow span { font-size:0.72rem; font-weight:600; background:#EFEBE5; color:#524A45; padding:0.25rem 0.6rem; border-radius:5px; }
.dict2-term__flow i { font-size:0.55rem; color:#B5AB9D; }
.dict2-term__flow--success { background:#F2F5EE !important; color:#5F7058 !important; border:1px solid #C7D2B7; }
.dict2-term__flow--danger { background:#fef2f2 !important; color:#dc2626 !important; border:1px solid #fecaca; }
/* A-Z list view */
.dict2-alpha { }
.dict2-alpha__letter { font-size:0.88rem; font-weight:800; color:var(--sa-primary-color,#282320); padding:0.6rem 0 0.3rem; border-bottom:2px solid var(--sa-primary-color,#282320); margin-bottom:0; display:flex; align-items:center; gap:0.4rem; }
.dict2-alpha__letter span { font-size:0.65rem; font-weight:500; color:#847C70; }
/* Empty state */
.dict2-empty { text-align:center; padding:3rem 1rem; color:#847C70; }
.dict2-empty i { font-size:1.8rem; opacity:0.3; margin-bottom:0.75rem; display:block; }
.dict2-empty div { font-size:0.85rem; }
/* Responsive */
@media (max-width:767px) {
.dict2-term__row { flex-direction:column; gap:0.15rem; }
.dict2-term__name { min-width:0; }
.dict2-term__detail { margin-left:0; }
.dict2-term__table { font-size:0.7rem; }
.dict2-term__table th, .dict2-term__table td { padding:0.3rem 0.4rem; }
}
@media (max-width:480px) {
.dict2-group__header { padding:0.65rem 0.75rem; }
.dict2-term__row { padding:0.55rem 0.75rem; }
.dict2-term__detail { padding:0 0.75rem 0.65rem; }
}
/* ═══ DATA MODEL ═════════════════════════════════════════════ */
.arch-domain-chip { text-align:center; padding:0.75rem 0.5rem; border:1px solid #D8D0C3; border-radius:10px; background:#fff; }
.arch-domain-chip__count { font-size:1.5rem; font-weight:800; color:var(--sa-primary-color,#282320); line-height:1; }
.arch-domain-chip__label { font-size:0.68rem; color:#6E6660; font-weight:600; margin-top:0.2rem; }
/* ERD */
.arch-erd { padding:0.5rem 0; }
.arch-erd__root { display:inline-flex; align-items:center; background:var(--sa-primary-color,#282320); color:#fff; font-size:0.85rem; font-weight:700; padding:0.5rem 1rem; border-radius:8px; margin-bottom:1rem; }
.arch-erd__branches { display:flex; flex-direction:column; gap:0.75rem; padding-left:1.5rem; border-left:2px solid #D8D0C3; }
.arch-erd__node { display:inline-flex; align-items:center; flex-wrap:wrap; font-size:0.82rem; font-weight:600; padding:0.45rem 0.75rem; border-radius:6px; border:1px solid; gap:0.25rem; }
.arch-erd__node--blue { background:#EFEBE5; color:#282320; border-color:#E8E0D4; }
.arch-erd__node--green { background:#F2F5EE; color:#5F7058; border-color:#C7D2B7; }
.arch-erd__node--purple { background:#faf5ff; color:#7c3aed; border-color:#ddd6fe; }
.arch-erd__node--orange { background:#fff7ed; color:#ea580c; border-color:#fed7aa; }
.arch-erd__node--slate { background:#EFEBE5; color:#524A45; border-color:#B5AB9D; }
.arch-erd__sub { font-size:0.68rem; font-weight:400; color:#847C70; width:100%; }
.arch-erd__children { display:flex; flex-wrap:wrap; gap:0.35rem; padding:0.5rem 0 0 1.5rem; }
.arch-erd__leaf { font-size:0.72rem; background:#F2F5EE; color:#5F7058; padding:0.2rem 0.5rem; border-radius:4px; border:1px solid #C7D2B7; }
/* Table Domains */
.arch-table-domain { border:1px solid #D8D0C3; border-radius:8px; overflow:hidden; height:100%; }
.arch-table-domain__header { padding:0.5rem 0.75rem; color:#fff; font-size:0.78rem; font-weight:700; }
.arch-table-domain__list { padding:0.6rem 0.75rem; font-size:0.72rem; color:#524A45; line-height:1.6; }
/* Isolation */
.arch-isolation { display:flex; flex-direction:column; gap:0.5rem; }
.arch-isolation__item { display:flex; align-items:flex-start; gap:0.6rem; font-size:0.82rem; color:#3D3833; line-height:1.5; }
.arch-isolation__item code { font-size:0.72rem; background:#EFEBE5; padding:0.1rem 0.3rem; border-radius:3px; }
.arch-isolation__icon { width:24px; height:24px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:0.65rem; flex-shrink:0; margin-top:0.1rem; }
/* ═══ INTEGRATIONS ═══════════════════════════════════════════ */
.arch-int-card { border:1px solid #D8D0C3; border-radius:10px; overflow:hidden; background:#fff; height:100%; }
.arch-int-card__header { padding:1.1rem 1.25rem; display:flex; align-items:center; gap:0.75rem; }
.arch-int-card__icon { width:36px; height:36px; border-radius:8px; background:rgba(255,255,255,0.15); display:flex; align-items:center; justify-content:center; font-size:0.9rem; color:#fff; flex-shrink:0; }
.arch-int-card__name { font-size:0.9rem; font-weight:700; color:#fff; }
.arch-int-card__type { font-size:0.68rem; color:rgba(255,255,255,0.7); }
.arch-int-card__body { padding:0.75rem 1.25rem; }
.arch-int-card__row { display:flex; justify-content:space-between; align-items:center; padding:0.4rem 0; font-size:0.8rem; border-bottom:1px solid #EFEBE5; }
.arch-int-card__row:last-child { border-bottom:none; }
.arch-int-card__label { font-weight:600; color:#6E6660; font-size:0.72rem; text-transform:uppercase; letter-spacing:0.03em; }
.arch-int-card__tags { display:flex; flex-wrap:wrap; gap:0.25rem; padding-top:0.5rem; }
.arch-int-card__tags span { font-size:0.65rem; background:#EFEBE5; color:#524A45; padding:0.2rem 0.4rem; border-radius:4px; font-family:monospace; }
/* Integration Flow */
.arch-int-flow { display:flex; align-items:center; gap:1.5rem; justify-content:center; flex-wrap:wrap; padding:1rem 0; }
.arch-int-flow__hub { width:80px; height:80px; border-radius:50%; background:var(--sa-primary-color,#282320); color:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center; font-size:1.5rem; flex-shrink:0; }
.arch-int-flow__hub span { font-size:0.6rem; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; margin-top:0.15rem; }
.arch-int-flow__spokes { display:flex; flex-direction:column; gap:0.5rem; }
.arch-int-flow__spoke { display:flex; align-items:center; gap:0.5rem; }
.arch-int-flow__arrow { font-size:1.1rem; color:#B5AB9D; font-weight:700; }
.arch-int-flow__target { display:flex; align-items:center; gap:0.5rem; padding:0.5rem 0.85rem; border:2px solid; border-radius:8px; font-size:0.82rem; font-weight:600; }
.arch-int-flow__target small { font-weight:400; color:#847C70; font-size:0.65rem; margin-left:0.25rem; }
.arch-int-flow__target i { font-size:0.85rem; }
/* ═══ SECURITY ═══════════════════════════════════════════════ */
.arch-auth-flow { display:flex; flex-direction:column; align-items:center; gap:0; }
.arch-auth-step { display:flex; align-items:flex-start; gap:0.75rem; padding:0.75rem 1rem; border:1px solid #D8D0C3; border-radius:8px; background:#fff; max-width:500px; width:100%; }
.arch-auth-step__num { width:28px; height:28px; border-radius:50%; background:var(--sa-primary-color,#282320); color:#fff; display:flex; align-items:center; justify-content:center; font-size:0.75rem; font-weight:700; flex-shrink:0; }
.arch-auth-step__content { font-size:0.8rem; color:#3D3833; line-height:1.5; }
.arch-auth-step__arrow { color:#B5AB9D; font-size:0.8rem; padding:0.15rem 0; }
.arch-sec-list { display:flex; flex-direction:column; }
.arch-sec-item { display:flex; justify-content:space-between; align-items:center; padding:0.55rem 1.25rem; border-bottom:1px solid #EFEBE5; font-size:0.8rem; }
.arch-sec-item:last-child { border-bottom:none; }
.arch-sec-item__label { color:#6E6660; font-weight:500; }
.arch-sec-item__value { color:#2A2622; font-weight:500; text-align:right; }
.arch-sec-item__value code { font-size:0.72rem; background:#EFEBE5; padding:0.1rem 0.3rem; border-radius:3px; }
/* Permission Pyramid */
.arch-perm-pyramid { display:flex; flex-direction:column; gap:0; }
.arch-perm-level { display:flex; align-items:flex-start; gap:0.75rem; padding:0.85rem 1rem; border-bottom:1px solid #EFEBE5; }
.arch-perm-level:last-child { border-bottom:none; }
.arch-perm-level__badge { flex-shrink:0; font-size:0.72rem; font-weight:700; padding:0.25rem 0.6rem; border-radius:6px; min-width:90px; text-align:center; }
.arch-perm-level__desc { font-size:0.8rem; color:#524A45; line-height:1.5; }
.arch-perm-level--1 .arch-perm-level__badge { background:#fef3c7; color:#92400e; }
.arch-perm-level--2 .arch-perm-level__badge { background:#E8E0D4; color:#1A1715; }
.arch-perm-level--3 .arch-perm-level__badge { background:#F2F5EE; color:#3F4D3A; }
.arch-perm-level--4 .arch-perm-level__badge { background:#EFEBE5; color:#524A45; }
/* ═══ INFRASTRUCTURE ═════════════════════════════════════════ */
.arch-infra-diagram { display:flex; flex-direction:column; align-items:center; gap:1rem; }
.arch-infra-box { border:2px solid #D8D0C3; border-radius:10px; padding:1rem; width:100%; max-width:500px; }
.arch-infra-box--main { border-color:var(--sa-primary-color,#282320); background:#F8F6F3; }
.arch-infra-box__label { font-size:0.72rem; font-weight:700; color:var(--sa-primary-color,#282320); text-transform:uppercase; letter-spacing:0.06em; margin-bottom:0.75rem; }
.arch-infra-box__inner { display:flex; align-items:center; justify-content:center; gap:0.75rem; }
.arch-infra-svc { display:flex; flex-direction:column; align-items:center; gap:0.15rem; padding:0.6rem 1rem; border:1px solid #D8D0C3; border-radius:8px; background:#fff; }
.arch-infra-svc i { font-size:1rem; color:var(--sa-primary-color,#282320); }
.arch-infra-svc span { font-size:0.78rem; font-weight:700; color:#2A2622; }
.arch-infra-svc small { font-size:0.62rem; color:#847C70; }
.arch-infra-arrow { font-size:1rem; color:#B5AB9D; font-weight:700; }
.arch-infra-connections { display:flex; justify-content:center; gap:1rem; flex-wrap:wrap; }
.arch-infra-target { display:flex; flex-direction:column; align-items:center; gap:0.15rem; padding:0.6rem 1rem; border:1px solid #D8D0C3; border-radius:8px; background:#fff; min-width:100px; }
.arch-infra-target i { font-size:1rem; color:#5F7058; }
.arch-infra-target span { font-size:0.78rem; font-weight:700; color:#2A2622; }
.arch-infra-target small { font-size:0.62rem; color:#847C70; }
/* Environment Cards */
.arch-env-card { padding:1rem; border:1px solid #D8D0C3; border-radius:10px; background:#fff; position:relative; padding-left:1.5rem; }
.arch-env-card__status { position:absolute; left:0; top:0; bottom:0; width:4px; border-radius:10px 0 0 10px; }
.arch-env-card--prod .arch-env-card__status { background:#7A8C6E; }
.arch-env-card--dev .arch-env-card__status { background:#C68A3A; }
.arch-env-card--local .arch-env-card__status { background:#6E6660; }
.arch-env-card__name { font-size:0.88rem; font-weight:700; color:#2A2622; }
.arch-env-card__url { font-size:0.75rem; color:#6E6660; font-family:monospace; margin-top:0.15rem; }
.arch-env-card__desc { font-size:0.72rem; color:#847C70; margin-top:0.25rem; }
/* Deployment Flow */
.arch-deploy-flow { display:flex; flex-direction:column; align-items:center; gap:0; }
.arch-deploy-step { display:flex; align-items:flex-start; gap:0.75rem; padding:0.65rem 1rem; border:1px solid #D8D0C3; border-radius:8px; background:#fff; max-width:460px; width:100%; }
.arch-deploy-step__icon { width:32px; height:32px; border-radius:8px; background:#EFEBE5; color:#463C37; display:flex; align-items:center; justify-content:center; font-size:0.85rem; flex-shrink:0; }
.arch-deploy-step__text { font-size:0.8rem; color:#3D3833; line-height:1.5; }
.arch-deploy-step__arrow { color:#B5AB9D; font-size:0.7rem; padding:0.1rem 0; }
/* Scaling Timeline */
.arch-scale-timeline { display:flex; flex-direction:column; gap:0; padding-left:1rem; border-left:2px solid #D8D0C3; }
.arch-scale-phase { display:flex; align-items:flex-start; gap:0.75rem; padding:0.75rem 0; position:relative; }
.arch-scale-phase__marker { width:12px; height:12px; border-radius:50%; background:#D8D0C3; border:2px solid #fff; position:absolute; left:-1.45rem; top:0.85rem; }
.arch-scale-phase--current .arch-scale-phase__marker { background:var(--sa-primary-color,#282320); box-shadow:0 0 0 3px rgba(40,35,32,0.2); }
.arch-scale-phase__label { font-size:0.72rem; font-weight:700; color:#6E6660; text-transform:uppercase; letter-spacing:0.04em; min-width:60px; }
.arch-scale-phase--current .arch-scale-phase__label { color:var(--sa-primary-color,#282320); }
.arch-scale-phase__desc { font-size:0.82rem; color:#3D3833; }
/* ═══ PLATFORM SETTINGS — NO BORDER RADIUS ═══════════════════ */
.ps-container, .ps-container * { border-radius:0 !important; }
.ps-container .sa-mem-avatar,
.ps-container .sa-dir-card__avatar,
.ps-container .sa-dir-card__avatar img,
.ps-container .sa-avatar-sm,
.ps-container .rounded-circle { border-radius:50% !important; }
/* ═══ ARCHITECTURE PRINT ═════════════════════════════════════ */
@media print {
.ps-sidebar, .page-header-breadcrumb, .app-sidebar, .app-header, .arch-tabs, .dict2-toolbar { display:none !important; }
.ps-container { display:block !important; }
.ps-content { width:100% !important; }
.ps-panel { display:block !important; padding:0 !important; }
.arch-section { display:block !important; page-break-before:always; }
.arch-section:first-child { page-break-before:avoid; }
.arch-card { break-inside:avoid; }
.dict2-group { break-inside:avoid; }
.dict2-term__detail { display:block !important; }
.dict2-term__row::after { display:none !important; }
.dict2-alpha { display:none !important; }
body { font-size:11pt; }
}
/* ═══ ARCHITECTURE RESPONSIVE ════════════════════════════════ */
@media (max-width:767px) {
.arch-tabs { gap:0; }
.arch-tab { padding:0.5rem 0.6rem; font-size:0.72rem; }
.arch-hero { flex-direction:column; padding:1rem; }
.arch-hero__icon { width:40px; height:40px; font-size:1rem; }
.arch-metric__value { font-size:1.2rem; }
.arch-layer { padding:0.5rem; }
.arch-layer__label { font-size:0.6rem; }
.arch-layer__desc { font-size:0.62rem; }
.arch-dict-grid { grid-template-columns:1fr; }
.arch-dict-card { padding:0.75rem; }
.arch-dict-card__term { font-size:0.82rem; }
.arch-erd__branches { padding-left:0.75rem; }
.arch-erd__children { padding-left:0.75rem; }
.arch-int-flow { flex-direction:column; gap:0.75rem; }
.arch-auth-step { max-width:100%; }
.arch-sec-item { flex-direction:column; align-items:flex-start; gap:0.2rem; padding:0.5rem 1rem; }
.arch-sec-item__value { text-align:left; }
.arch-perm-level { flex-direction:column; gap:0.4rem; }
.arch-infra-box__inner { flex-direction:column; }
.arch-infra-connections { flex-direction:column; align-items:center; }
.arch-deploy-step { max-width:100%; }
}
@media (max-width:480px) {
.arch-tab { padding:0.4rem 0.45rem; font-size:0.65rem; gap:0.2rem; }
.arch-tab i { display:none; }
}
/* ═══ ENTITY THEME CARDS ════════════════════════════════════════ */
.ps-entity-theme-card { display:flex; border:1px solid #D8D0C3; border-radius:8px; overflow:hidden; background:#fff; }
.ps-entity-theme-card__bar { width:5px; flex-shrink:0; }
.ps-entity-theme-card__body { padding:0.6rem 0.75rem; flex:1; }
/* ═══ DIRECTORY CARDS ════════════════════════════════════════════ */
.sa-dir-card { border:1px solid #e9ecef; background:#fff; padding:0.75rem; display:flex; gap:0.6rem; align-items:center; border-radius:8px; cursor:pointer; transition:border-color .15s,box-shadow .15s; }
.sa-dir-card:hover { border-color:#c5cad0; box-shadow:0 2px 6px rgba(0,0,0,0.05); }
.sa-dir-card__avatar { width:36px; height:36px; border-radius:50%; overflow:hidden; border:1.5px solid #e9ecef; flex-shrink:0; }
.sa-dir-card__avatar img { width:100%; height:100%; object-fit:cover; }
.sa-dir-card__body { flex:1; min-width:0; }
.sa-dir-card__name { font-weight:600; font-size:0.8rem; color:#212529; line-height:1.2; }
.sa-dir-card__meta { font-size:0.68rem; color:#847C70; margin-top:2px; line-height:1.3; }
/* ═══ RELEASE NOTES ══════════════════════════════════════════════ */
.ps-release-notes { max-height:calc(100vh - 280px); overflow-y:auto; }
.ps-rn-month { border:1px solid #D8D0C3 !important; border-radius:10px !important; margin-bottom:0.75rem !important; overflow:hidden; }
.ps-rn-month__btn { font-size:0.88rem; font-weight:600; color:#2A2622; background:#fafafa; padding:0.75rem 1.25rem; }
.ps-rn-month__btn:not(.collapsed) { background:#EFEBE5; color:#2A2622; box-shadow:none; }
.ps-rn-month__btn:focus { box-shadow:none; }
.ps-rn-month__count { margin-left:auto; font-size:0.7rem; font-weight:500; color:#847C70; background:#D8D0C3; padding:0.15rem 0.5rem; border-radius:50px; }
.ps-rn-version { padding:1.25rem; border-bottom:1px solid #EFEBE5; background:#fff; }
.ps-rn-version__header { display:flex; align-items:center; justify-content:space-between; margin-bottom:0.75rem; flex-wrap:wrap; gap:0.5rem; }
.ps-rn-version__tag { font-size:0.85rem; font-weight:700; color:var(--sa-primary-color,#282320); background:rgba(40,35,32,0.08); padding:0.25rem 0.6rem; border-radius:50px; }
.ps-rn-version__type { font-size:0.72rem; font-weight:600; color:#6E6660; margin-left:0.5rem; }
.ps-rn-version__date { font-size:0.78rem; color:#847C70; }
.ps-rn-section { margin-bottom:0.75rem; }
.ps-rn-section__label { font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:0.04em; margin-bottom:0.35rem; padding:0.2rem 0.5rem; border-radius:4px; display:inline-block; }
.ps-rn-section__label--added    { color:#ffffff; background:#2e6d3a; }
.ps-rn-section__label--improved { color:#ffffff; background:#b8541a; }
.ps-rn-section__label--fixed    { color:#ffffff; background:#c08018; }
.ps-rn-section__label--fixed { color:#6E6660; background:rgba(100,116,139,0.08); }
.ps-rn-list { margin:0; padding-left:1.25rem; }
.ps-rn-list li { font-size:0.82rem; color:#3D3833; line-height:1.5; margin-bottom:0.3rem; }
/* ═══ RESPONSIVE ═════════════════════════════════════════════════ */
@media (max-width:991px) {
.ps-container { flex-direction:column; }
.ps-sidebar { width:100%; border-right:none; border-bottom:1px solid #D8D0C3; }
.ps-sidebar__nav { display:flex; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; padding:0; }
.ps-sidebar__nav::-webkit-scrollbar { display:none; }
.ps-sidebar__section-label { display:none; }
.ps-sidebar__nav-item { white-space:nowrap; border-left:none; border-bottom:3px solid transparent; padding:0.5rem 1rem; flex-shrink:0; }
.ps-sidebar__nav-item.active { border-left-color:transparent; border-bottom-color:var(--sa-primary-color,#282320); }
.ps-panel { padding:1rem 1.25rem 1.25rem; }
}
@media (max-width:767px) {
.ps-sidebar__header { padding:0.5rem 0.75rem; gap:0.5rem; }
.ps-sidebar__logo { width:32px; height:32px; }
.ps-sidebar__title { font-size:0.78rem; }
.ps-sidebar__nav-item { font-size:0.75rem; padding:0.45rem 0.75rem; gap:0.4rem; }
.ps-sidebar__nav-item i { font-size:0.7rem; }
.ps-sidebar__badge { font-size:0.6rem; padding:0.1rem 0.35rem; }
.ps-panel { padding:0.75rem 1rem 1rem; }
.ps-panel__title { font-size:0.92rem; margin-bottom:1rem; }
.ps-stat-card { padding:0.65rem 0.75rem; gap:0.6rem; }
.ps-stat-card__icon { width:36px; height:36px; font-size:0.9rem; }
.ps-stat-card__value { font-size:1.1rem; }
.ps-info-section { padding:0.75rem 1rem; }
.ps-info-row { font-size:0.78rem; }
.ps-brand-preview { max-width:100%; }
.ps-entity-chip__name { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:120px; }
.psm-card-grid { grid-template-columns:1fr; }
.psm-card__name { font-size:0.82rem; }
.psm-toolbar { gap:0.4rem; }
.psm-search-wrap { flex:1 1 100%; }
.psm-toolbar-right { margin-left:0; }
.ps-rn-month__btn { font-size:0.82rem; padding:0.65rem 1rem; }
.ps-rn-list { padding-left:1rem; }
.ps-rn-list li { font-size:0.78rem; }
.ps-integration-card__name { font-size:0.82rem; }
#psDirEntityFilter { max-width:100%; width:100%; }
}
/* ═══ ENTITIES TOOLBAR + CARDS ═══════════════════════════════════ */
.pse-toolbar { display:flex; flex-direction:column; gap:0.6rem; padding-bottom:0.85rem; margin-bottom:1rem; border-bottom:2px solid #EFEBE5; }
.pse-toolbar__top { display:flex; align-items:center; gap:0.5rem; flex-wrap:wrap; }
.pse-toolbar__bottom { display:flex; align-items:center; gap:0.5rem; flex-wrap:wrap; }
.pse-search-wrap { position:relative; flex:1; min-width:200px; }
.pse-search-wrap i { position:absolute; left:0.75rem; top:50%; transform:translateY(-50%); font-size:0.72rem; color:#847C70; pointer-events:none; }
.pse-search { width:100%; padding:0.45rem 0.75rem 0.45rem 2.1rem; border:1px solid #D8D0C3; background:#F8F6F3; font-size:0.8rem; color:#2A2622; outline:none; transition:all 0.15s; min-height:38px; border-radius:0; }
.pse-search:focus { border-color:#1A1715; background:#fff; }
.pse-search::placeholder { color:#b0b5be; }
.pse-view-toggle { display:flex; gap:0; }
.pse-view-btn { width:38px; height:38px; border:1px solid #D8D0C3; background:#F8F6F3; display:flex; align-items:center; justify-content:center; cursor:pointer; color:#847C70; font-size:0.78rem; transition:all 0.15s; border-radius:0; }
.pse-view-btn:first-child { border-right:none; }
.pse-view-btn:hover { background:#D8D0C3; color:#3D3833; }
.pse-view-btn.pse-active { background:#1A1715; color:#fff; border-color:#1A1715; }
.pse-filter-pills { display:flex; gap:0.25rem; }
.pse-filter-pill { padding:0.3rem 0.75rem; border:1px solid #D8D0C3; background:#fff; font-size:0.72rem; font-weight:600; color:#6E6660; cursor:pointer; transition:all 0.15s; border-radius:50px; min-height:30px; display:inline-flex; align-items:center; }
.pse-filter-pill:hover { border-color:#847C70; color:#3D3833; }
.pse-filter-pill.pse-active { background:#1A1715; color:#fff; border-color:#1A1715; }
.pse-sort-pills { display:flex; gap:0.25rem; }
.pse-sort-pill { padding:0.3rem 0.75rem; border:1px solid #D8D0C3; background:#fff; font-size:0.72rem; font-weight:600; color:#6E6660; cursor:pointer; transition:all 0.15s; border-radius:50px; min-height:30px; display:inline-flex; align-items:center; }
.pse-sort-pill:hover { border-color:#847C70; color:#3D3833; }
.pse-sort-pill.pse-active { background:#1A1715; color:#fff; border-color:#1A1715; }
.pse-dir-btn { width:30px; height:30px; border:1px solid #D8D0C3; background:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; color:#6E6660; font-size:0.72rem; transition:all 0.15s; border-radius:0; }
.pse-dir-btn:hover { border-color:#847C70; color:#3D3833; }
.pse-toolbar-right { display:flex; align-items:center; gap:0.5rem; margin-left:auto; }
.pse-card-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)); gap:0.75rem; }
.pse-card { background:#fff; border:1px solid #D8D0C3; padding:0; overflow:hidden; transition:all 0.2s ease; cursor:pointer; border-radius:0; }
.pse-card:hover { border-color:#B5AB9D; box-shadow:0 4px 12px rgba(0,0,0,0.06); transform:translateY(-2px); }
.pse-card__body { padding:1.25rem; display:flex; align-items:center; gap:0.75rem; }
.pse-card__logo { width:36px; height:36px; object-fit:contain; flex-shrink:0; border:1px solid #e9ecef; border-radius:0; }
.pse-card__logo--placeholder { display:flex; align-items:center; justify-content:center; background:#EFEBE5; color:#847C70; font-size:0.75rem; border:1px solid #e9ecef; width:36px; height:36px; border-radius:0; }
.pse-card__logo--sm { width:28px; height:28px; }
.pse-card__info { flex:1; min-width:0; }
.pse-card__name { font-weight:700; font-size:0.9rem; color:#2A2622; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:0.1rem; }
.pse-card__id-badge { display:inline-block; padding:0.1rem 0.5rem; background:#EFEBE5; color:#6E6660; font-size:0.68rem; font-family:monospace; font-weight:600; border-radius:50px; }
.pse-card__meta { display:flex; flex-direction:column; align-items:flex-end; gap:0.25rem; flex-shrink:0; }
.pse-card__users { font-size:0.78rem; color:#6E6660; display:inline-flex; align-items:center; }
.pse-card__status { display:inline-block; padding:0.15rem 0.6rem; background:#DFE5D6; color:#5F7058; font-size:0.68rem; font-weight:600; border-radius:50px; }
.pse-card__actions-wrap { position:relative; flex-shrink:0; }
.pse-card__actions-btn { width:30px; height:30px; border:none; background:transparent; color:#847C70; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:0.85rem; transition:color 0.15s; border-radius:0; }
.pse-card__actions-btn:hover { color:#3D3833; }
.pse-card__dropdown { position:absolute; right:0; top:100%; background:#fff; border:1px solid #D8D0C3; box-shadow:0 8px 24px rgba(0,0,0,0.12); min-width:160px; z-index:20; display:none; border-radius:0; }
.pse-card__dropdown.pse-visible { display:block; }
.pse-card__dropdown button,
.pse-card__dropdown a { display:flex; align-items:center; width:100%; padding:0.55rem 0.85rem; border:none; background:transparent; font-size:0.78rem; color:#3D3833; cursor:pointer; text-align:left; transition:background 0.12s; min-height:44px; text-decoration:none; }
.pse-card__dropdown button:hover,
.pse-card__dropdown a:hover { background:#EFEBE5; color:#3D3833; text-decoration:none; }
.pse-card__dropdown button:disabled { color:#B5AB9D; cursor:not-allowed; }
.pse-card__dropdown button:disabled:hover { background:transparent; }
.pse-empty { display:flex; flex-direction:column; align-items:center; gap:0.5rem; padding:2rem; color:#847C70; font-size:0.82rem; border:1px solid #D8D0C3; background:#fafafa; grid-column:1/-1; border-radius:0; }
.pse-empty i { font-size:1.4rem; opacity:0.35; }
/* Entities Table View */
.pse-table-wrap { overflow-x:auto; }
.pse-table { width:100%; border-collapse:collapse; font-size:0.82rem; }
.pse-table thead th { padding:0.6rem 0.75rem; background:#f8f9fa; border:1px solid #D8D0C3; border-bottom:2px solid #dee2e6; font-size:0.72rem; font-weight:700; color:#6E6660; text-transform:uppercase; letter-spacing:0.04em; white-space:nowrap; border-radius:0; }
.pse-th-sortable { cursor:pointer; user-select:none; transition:color 0.15s; }
.pse-th-sortable:hover { color:#2A2622; }
.pse-th-sortable.pse-sort-active { color:#2A2622; }
.pse-th-sortable i { margin-left:4px; font-size:0.65rem; }
.pse-table tbody td { padding:0.65rem 0.75rem; border:1px solid #D8D0C3; border-top:none; vertical-align:middle; }
.pse-table tbody tr { background:#fff; transition:background 0.12s; cursor:pointer; }
.pse-table tbody tr:hover { background:#F8F6F3; }
@media (max-width:767px) {
.pse-card-grid { grid-template-columns:1fr; }
.pse-toolbar { gap:0.4rem; }
.pse-search-wrap { flex:1 1 100%; }
.pse-toolbar-right { margin-left:0; flex:1 1 100%; justify-content:space-between; }
}
/* ═══ USERS & ACCESS ROW IMPROVEMENTS ═════════════════════════ */
.ps-info-row { border-bottom:1px solid #EFEBE5; transition:background 0.12s; }
.ps-info-row:last-child { border-bottom:none; }
.ps-info-row:hover { background:#EFEBE5; cursor:pointer; }
/* Small phones */
@media (max-width:480px) {
.ps-panel { padding:0.5rem 0.75rem 0.75rem; }
.ps-panel__title { font-size:0.85rem; }
.ps-stat-card { padding:0.5rem 0.6rem; gap:0.45rem; }
.ps-stat-card__icon { width:32px; height:32px; font-size:0.8rem; }
.ps-stat-card__value { font-size:0.95rem; }
.ps-stat-card__label { font-size:0.6rem; }
.ps-info-section { padding:0.6rem 0.75rem; }
.ps-info-row { flex-direction:column; align-items:flex-start; gap:0.15rem; padding:0.5rem 0; border-bottom:1px solid #EFEBE5; }
.ps-info-row__label { margin-right:0; font-size:0.72rem; }
.ps-info-row__value { text-align:left; word-break:break-all; font-size:0.78rem; }
.ps-entity-chip { padding:0.4rem 0.5rem; gap:0.4rem; }
.ps-entity-chip__name { max-width:90px; }
.ps-entity-chip__meta { font-size:0.6rem; }
.ps-brand-preview__colors { gap:0.5rem; }
.ps-brand-preview__color-swatch { height:24px; }
.ps-rn-version { padding:0.75rem; }
.ps-rn-section__label { font-size:0.7rem; }
.ps-rn-list li { font-size:0.72rem; }
.btn-group { flex-wrap:wrap; }
.btn-group .btn { flex:1 1 auto; font-size:0.7rem; padding:0.3rem 0.5rem; }
.ps-module-chip { font-size:0.7rem; padding:0.25rem 0.5rem; }
.ps-entity-theme-card__body { padding:0.4rem 0.5rem; }
}

/* ── Platform Config Branding Editor ─────────────────────── */
.pc-field-label { font-size:0.72rem; font-weight:600; color:#6E6660; text-transform:uppercase; letter-spacing:0.04em; margin-bottom:0.25rem; display:block; }
.pc-field-hint { font-size:0.68rem; color:#847C70; margin-top:0.2rem; }
.pc-color-row { display:flex; align-items:center; gap:0.5rem; }
.pc-color-swatch { width:36px; height:36px; padding:2px; border:2px solid #D8D0C3; cursor:pointer; }
.pc-color-swatch:hover { border-color:#D6CDB9; }
.pc-upload-zone { border:2px dashed #B5AB9D; cursor:pointer; transition:all 0.2s; background:#fafbfc; min-height:120px; display:flex; align-items:center; justify-content:center; position:relative; }
.pc-upload-zone:hover { border-color:#D6CDB9; background:#f0f7ff; }
.pc-upload-zone.dragover { border-color:#463C37; background:#EFEBE5; border-style:solid; }
.pc-upload-placeholder { display:flex; flex-direction:column; align-items:center; gap:0.5rem; padding:1.25rem; color:#847C70; }
.pc-upload-placeholder i { font-size:1.5rem; color:#B5AB9D; }
.pc-upload-placeholder span { font-size:0.75rem; font-weight:500; }
.pc-upload-preview { display:flex; align-items:center; justify-content:center; padding:1rem; position:absolute; inset:0; box-sizing:border-box; }
.pc-upload-preview img { max-height:80px; max-width:80%; object-fit:contain; flex-shrink:0; display:block; margin:0 auto; }
.pc-upload-remove { position:absolute; top:6px; right:6px; width:24px; height:24px; border:none; background:#fee2e2; color:#ef4444; display:flex; align-items:center; justify-content:center; font-size:0.6rem; cursor:pointer; }
.pc-upload-remove:hover { background:#fca5a5; }

/* === entities/admin/users/users-view.php — User Profile layout === */
/* ═══ USER PROFILE SIDEBAR LAYOUT ═══════════════════════════════ */
.up-container { display:flex; gap:0; min-height:calc(100vh - 280px); overflow:visible; }
/* ─── Sidebar ──────────────────────────────────────────────────── */
.up-sidebar { width:260px; flex-shrink:0; border-right:1px solid #D8D0C3; background:#f8f9fa; display:flex; flex-direction:column; }
.up-sidebar__back {
display:flex; align-items:center; gap:0.5rem; padding:0.75rem 1rem;
font-size:0.78rem; color:#6E6660; text-decoration:none; border-bottom:1px solid #D8D0C3;
transition:all 0.15s;
}
.up-sidebar__back:hover { color:#2A2622; background:#f0f0f0; }
.up-sidebar__back i { font-size:0.7rem; }
.up-sidebar__header {
padding:1.25rem 1rem; border-bottom:1px solid #D8D0C3;
display:flex; align-items:center; gap:0.85rem;
}
.up-sidebar__avatar {
width:60px; height:60px; border-radius:50%; flex-shrink:0;
overflow:hidden; position:relative; background:#D8D0C3;
display:flex; align-items:center; justify-content:center;
}
.up-sidebar__avatar img { width:100%; height:100%; object-fit:cover; }
.up-sidebar__avatar span {
font-size:1.1rem; font-weight:700; color:#6E6660;
display:flex; align-items:center; justify-content:center;
width:100%; height:100%;
}
.up-sidebar__avatar-upload {
position:absolute; bottom:0; right:0;
width:22px; height:22px; border-radius:50%;
background:#fff; border:1.5px solid #B5AB9D;
display:flex; align-items:center; justify-content:center;
cursor:pointer; transition:all 0.15s;
box-shadow:0 1px 3px rgba(0,0,0,0.1);
}
.up-sidebar__avatar-upload:hover { background:#EFEBE5; border-color:#847C70; }
.up-sidebar__avatar-upload i { font-size:0.55rem; color:#6E6660; }
.up-sidebar__avatar-overlay {
position:absolute; inset:0;
display:flex; flex-direction:column; align-items:center; justify-content:center;
background:rgba(0,0,0,0.55); color:#fff;
opacity:0; transition:opacity 0.2s ease;
cursor:pointer; gap:0.2rem; border-radius:50%;
}
.up-sidebar__avatar--hoverable:hover .up-sidebar__avatar-overlay { opacity:1; }
.up-sidebar__avatar-overlay i { font-size:0.85rem; }
.up-sidebar__avatar-overlay span { font-size:0.58rem; font-weight:600; text-transform:uppercase; letter-spacing:0.03em; }
.up-sidebar__header--stacked {
flex-direction:column; align-items:center; text-align:center; gap:0.75rem;
}
.up-sidebar__avatar--lg {
width:100px; height:100px;
}
.up-sidebar__avatar--lg span { font-size:2rem; }
.up-sidebar__avatar--lg .up-sidebar__avatar-overlay i { font-size:1.2rem; }
.up-sidebar__identity--centered { text-align:center; }
.up-sidebar__identity--centered .up-sidebar__name { white-space:normal; }
.up-sidebar__phone {
font-size:0.75rem; color:#6E6660; margin-top:0.35rem;
display:flex; align-items:center; justify-content:center; gap:0.35rem;
}
.up-sidebar__phone i { font-size:0.6rem; }
.up-sidebar__identity { flex:1; min-width:0; }
.up-sidebar__name { font-weight:700; font-size:0.9rem; color:#2A2622; line-height:1.3; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.up-sidebar__jobtitle { font-size:0.72rem; color:#6E6660; line-height:1.3; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.up-sidebar__credentials { font-size:0.62rem; font-weight:600; color:#463C37; background:#EFEBE5; padding:0.1rem 0.4rem; border-radius:3px; display:inline-block; margin-top:0.2rem; }
.up-sidebar__nav { padding:0.5rem 0; flex:1; overflow-y:auto; }
.up-sidebar__section-label {
font-size:0.65rem; font-weight:700; color:#847C70;
text-transform:uppercase; letter-spacing:0.06em;
padding:0.85rem 1.25rem 0.3rem;
}
.up-sidebar__nav-item {
display:flex; align-items:center; gap:0.625rem;
padding:0.6rem 1.25rem; font-size:0.84rem; color:#524A45;
text-decoration:none; transition:all 0.15s;
border-left:3px solid transparent; cursor:pointer;
}
.up-sidebar__nav-item:hover { background:#f0f0f0; color:#2A2622; }
.up-sidebar__nav-item.active {
background:#fff; color:var(--sa-primary-color,#282320);
border-left-color:var(--sa-primary-color,#282320); font-weight:600;
}
.up-sidebar__nav-item i { width:18px; text-align:center; font-size:0.78rem; }
.up-sidebar__badge {
margin-left:auto; font-size:0.65rem; font-weight:700;
background:var(--sa-primary-color,#282320); color:#fff;
padding:0.1rem 0.45rem; border-radius:50px; min-width:18px; text-align:center;
}
.up-sidebar__meta {
padding:0.75rem 1rem; border-top:1px solid #D8D0C3;
font-size:0.7rem; color:#847C70; line-height:1.6;
}
.up-sidebar__meta-item { display:flex; align-items:center; gap:0.4rem; }
.up-sidebar__meta-item i { width:14px; text-align:center; font-size:0.65rem; }
/* ─── Content Panels ───────────────────────────────────────────── */
.up-content { flex:1; overflow:visible; min-width:0; }
.up-panel { display:none; padding:1.5rem 2rem 2rem; }
.up-panel.active { display:block; animation:upFadeIn 0.2s ease; }
@keyframes upFadeIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }
.up-panel__title {
font-size:1.1rem; font-weight:700; color:#2A2622;
margin-bottom:0.25rem;
}
.up-panel__desc {
font-size:0.8rem; color:#6E6660; margin-bottom:1.25rem;
padding-bottom:0.75rem; border-bottom:1px solid #D8D0C3;
}
/* ─── Account Actions Panel ────────────────────────────────────── */
.up-action-card {
padding:1.25rem; border:1px solid #D8D0C3; background:#fff;
margin-bottom:1rem; transition:all 0.15s;
}
.up-action-card:hover { border-color:#B5AB9D; }
.up-action-card--danger { border-left:3px solid #ef4444; }
.up-action-card--critical { border-left:3px solid #dc2626; background:#fefefe; }
.up-action-card__header { display:flex; align-items:center; gap:0.75rem; margin-bottom:0.5rem; }
.up-action-card__icon { width:36px; height:36px; display:flex; align-items:center; justify-content:center; font-size:0.85rem; flex-shrink:0; }
.up-action-card__icon--danger { background:#fef2f2; color:#ef4444; }
.up-action-card__icon--critical { background:#fef2f2; color:#dc2626; }
.up-action-card__title { font-weight:700; font-size:0.9rem; color:#2A2622; }
.up-action-card__desc { font-size:0.8rem; color:#6E6660; line-height:1.5; margin-bottom:0.75rem; }
.up-action-card__btn { min-height:44px; }
/* ─── Mobile: pill bar ─────────────────────────────────────────── */
@media (max-width:768px) {
.up-container { flex-direction:column; min-height:auto; }
.up-sidebar {
width:100%; border-right:none; border-bottom:1px solid #D8D0C3;
flex-direction:column; overflow:visible;
}
.up-sidebar__header { padding:1rem; gap:0.75rem; }
.up-sidebar__avatar { width:48px; height:48px; }
.up-sidebar__nav {
display:flex; overflow-x:auto; overflow-y:hidden;
padding:0 0.5rem 0.5rem; gap:0.35rem;
flex:0 0 auto; -webkit-overflow-scrolling:touch;
scrollbar-width:none;
}
.up-sidebar__nav::-webkit-scrollbar { display:none; }
.up-sidebar__section-label { display:none; }
.up-sidebar__nav-item {
flex-shrink:0; border-left:none;
padding:0.5rem 0.85rem; border-radius:50px;
font-size:0.78rem; white-space:nowrap;
min-height:44px; display:inline-flex; align-items:center;
background:#EFEBE5; border:1px solid #D8D0C3;
}
.up-sidebar__nav-item:hover { background:#D8D0C3; }
.up-sidebar__nav-item.active {
background:var(--sa-primary-color,#282320); color:#fff;
border-color:var(--sa-primary-color,#282320); font-weight:600;
}
.up-sidebar__nav-item.active .up-sidebar__badge { background:#fff; color:var(--sa-primary-color,#282320); }
.up-sidebar__meta { display:none; }
.up-sidebar__back { padding:0.6rem 1rem; }
.up-panel { padding:1rem; }
.up-panel__title { font-size:1rem; }
}
/* ═══ MEMBERSHIP TOOLBAR ═══ */
.mb-toolbar {
display: flex; flex-direction: column; gap: 0.6rem;
padding-bottom: 0.85rem; margin-bottom: 1rem;
border-bottom: 2px solid #EFEBE5;
}
.mb-toolbar__top {
display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.mb-toolbar__bottom {
display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.mb-search-wrap {
position: relative; flex: 1; min-width: 200px;
}
.mb-search-wrap i {
position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
font-size: 0.72rem; color: #847C70; pointer-events: none;
}
.mb-search {
width: 100%;
padding: 0.45rem 0.75rem 0.45rem 2.1rem;
border: 1px solid #D8D0C3; background: #F8F6F3;
font-size: 0.8rem; color: #2A2622;
outline: none; transition: all 0.15s;
min-height: 38px;
}
.mb-search:focus { border-color: #1A1715; background: #fff; }
.mb-search::placeholder { color: #b0b5be; }
.mb-view-toggle { display: flex; gap: 0; }
.mb-view-btn {
width: 38px; height: 38px; border: 1px solid #D8D0C3; background: #F8F6F3;
display: flex; align-items: center; justify-content: center;
cursor: pointer; color: #847C70; font-size: 0.78rem;
transition: all 0.15s;
}
.mb-view-btn:first-child { border-right: none; }
.mb-view-btn:hover { background: #D8D0C3; color: #3D3833; }
.mb-view-btn.mb-active { background: #1A1715; color: #fff; border-color: #1A1715; }
.mb-filter-pills { display: flex; gap: 0.25rem; }
.mb-filter-pill {
padding: 0.3rem 0.75rem; border: 1px solid #D8D0C3; background: #fff;
font-size: 0.72rem; font-weight: 600; color: #6E6660;
cursor: pointer; transition: all 0.15s; border-radius: 50px;
min-height: 30px; display: inline-flex; align-items: center;
}
.mb-filter-pill:hover { border-color: #847C70; color: #3D3833; }
.mb-filter-pill.mb-active { background: #1A1715; color: #fff; border-color: #1A1715; }
.mb-sort-select {
padding: 0.3rem 1.75rem 0.3rem 0.6rem; border: 1px solid #D8D0C3;
background: #fff; font-size: 0.75rem; color: #6E6660;
cursor: pointer; min-height: 30px;
-webkit-appearance: none; -moz-appearance: none; appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
background-repeat: no-repeat; background-position: right 0.6rem center;
}
.mb-sort-select:focus { border-color: #1A1715; outline: none; }
.mb-add-btn {
padding: 0.45rem 1rem; background: #1A1715; color: #fff;
border: none; font-size: 0.78rem; font-weight: 600; cursor: pointer;
min-height: 38px; display: inline-flex; align-items: center; gap: 0.4rem;
transition: background 0.15s; margin-left: auto;
}
.mb-add-btn:hover { background: #3D3833; }
.mb-toolbar-right { display: flex; align-items: center; gap: 0.5rem; }
/* ═══ ADD MEMBERSHIP FORM ═══ */
.mb-add-panel {
background: #f8f9fa; border: 1px solid #D8D0C3;
padding: 1.25rem; margin-bottom: 1rem;
display: none; animation: mbSlideDown 0.2s ease;
}
.mb-add-panel.mb-visible { display: block; }
@keyframes mbSlideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.mb-add-panel__title { font-size: 0.9rem; font-weight: 700; color: #2A2622; margin-bottom: 1rem; }
.mb-add-panel__fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.mb-add-panel__field label {
display: block; font-size: 0.72rem; font-weight: 600; color: #6E6660;
text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.3rem;
}
.mb-add-panel__field select {
width: 100%; padding: 0.5rem 0.75rem; border: 1px solid #B5AB9D;
background: #fff; font-size: 0.8125rem; color: #2A2622;
min-height: 44px; border-radius: 0;
}
.mb-add-panel__field select:focus { border-color: var(--sa-primary-color, #282320); outline: none; }
.mb-add-panel__actions { display: flex; gap: 0.5rem; }
.mb-add-panel__save {
padding: 0.5rem 1.25rem; background: var(--sa-primary-color, #282320); color: #fff;
border: none; font-size: 0.8125rem; font-weight: 600; cursor: pointer;
min-height: 44px; border-radius: 0; transition: background 0.15s;
}
.mb-add-panel__save:hover { background: #162d4a; }
.mb-add-panel__save:disabled { opacity: 0.5; cursor: not-allowed; }
.mb-add-panel__cancel {
padding: 0.5rem 1.25rem; background: #fff; color: #524A45;
border: 1px solid #B5AB9D; font-size: 0.8125rem; font-weight: 600;
cursor: pointer; min-height: 44px; border-radius: 0; transition: all 0.15s;
}
.mb-add-panel__cancel:hover { background: #EFEBE5; border-color: #847C70; }
/* ═══ CARD VIEW ═══ */
.mb-card-grid {
display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 0.75rem;
}
.mb-card {
background: #fff; border: 1px solid #D8D0C3;
padding: 0; overflow: hidden; transition: all 0.2s ease;
border-radius: 0;
}
.mb-card:hover { border-color: #B5AB9D; box-shadow: 0 4px 12px rgba(0,0,0,0.06); transform: translateY(-2px); }
.mb-card__body { padding: 1.25rem 1.25rem 1rem; display: flex; gap: 1rem; }
.mb-card__favicon {
width: 36px; height: 36px; flex-shrink: 0;
object-fit: contain;
}
.mb-card__info { flex: 1; min-width: 0; }
.mb-card__module { font-weight: 700; font-size: 0.95rem; color: #1A1715; margin-bottom: 0.15rem; }
.mb-card__entity { font-size: 0.78rem; color: #6E6660; margin-bottom: 0.5rem; }
.mb-card__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.mb-card__role-pill {
font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
padding: 0.2rem 0.55rem; border-radius: 50px; color: #fff; display: inline-block;
}
.mb-card__detail {
font-size: 0.7rem; color: #847C70; display: inline-flex; align-items: center; gap: 0.25rem;
}
.mb-card__footer {
padding: 0.6rem 1.25rem; border-top: 1px solid #EFEBE5;
display: flex; justify-content: space-between; align-items: center;
font-size: 0.72rem; color: #847C70;
}
.mb-card__actions-btn {
width: 30px; height: 30px; padding: 0; border: 1px solid #D8D0C3;
background: #fff; color: #6E6660; cursor: pointer;
display: flex; align-items: center; justify-content: center;
flex-shrink: 0; border-radius: 0; transition: all 0.15s;
}
.mb-card__actions-btn:hover { background: #EFEBE5; border-color: #B5AB9D; }
.mb-card--revoked { opacity: 0.55; }
.mb-card--revoked:hover { opacity: 0.8; }
.mb-card__revoked-badge {
font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
padding: 0.2rem 0.55rem; border-radius: 50px;
background: #ef4444; color: #fff; display: inline-block;
}
.mb-card__restore-btn {
padding: 0.3rem 0.65rem; border: 1px solid #7A8C6E; background: #fff;
color: #5F7058; font-size: 0.7rem; font-weight: 600; cursor: pointer;
display: inline-flex; align-items: center; gap: 0.3rem;
flex-shrink: 0; border-radius: 0; transition: all 0.15s;
}
.mb-card__restore-btn:hover { background: #F2F5EE; border-color: #5F7058; }
/* ═══ TABLE VIEW ═══ */
.mb-table-wrap {
display: none; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.mb-table {
width: 100%; border-collapse: collapse; font-size: 0.8125rem;
}
.mb-table th {
padding: 0.65rem 0.75rem; background: #f8f9fa; border-bottom: 2px solid #D8D0C3;
font-size: 0.72rem; font-weight: 700; color: #6E6660;
text-transform: uppercase; letter-spacing: 0.04em;
white-space: nowrap; cursor: pointer; user-select: none;
transition: background 0.15s;
}
.mb-table th:hover { background: #f0f0f0; }
.mb-table th i { margin-left: 0.3rem; font-size: 0.6rem; color: #847C70; }
.mb-table td {
padding: 0.65rem 0.75rem; border-bottom: 1px solid #EFEBE5;
color: #2A2622; vertical-align: middle;
}
.mb-table tr:hover td { background: #F8F6F3; }
.mb-table__module-cell { display: flex; align-items: center; gap: 0.5rem; }
.mb-table__module-cell img { width: 24px; height: 24px; object-fit: contain; }
.mb-table__status-pill {
font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
padding: 0.2rem 0.55rem; border-radius: 50px; display: inline-block;
}
.mb-table__status-pill--active { background: #DFE5D6; color: #3F4D3A; }
.mb-table__status-pill--revoked { background: #fef2f2; color: #991b1b; }
.mb-table tr.mb-row--revoked td { opacity: 0.55; }
.mb-table tr.mb-row--revoked:hover td { opacity: 0.8; }
/* ═══ EMPTY STATE ═══ */
.mb-empty {
text-align: center; padding: 2.5rem 1rem;
}
.mb-empty__icon { font-size: 1.5rem; color: #B5AB9D; margin-bottom: 0.5rem; }
.mb-empty__text { font-size: 0.85rem; color: #6E6660; }
.mb-empty__sub { font-size: 0.75rem; color: #847C70; margin-top: 0.25rem; }
/* ═══ EDIT ROLE INLINE ═══ */
.mb-edit-role-select {
padding: 0.3rem 0.5rem; border: 1px solid #B5AB9D; background: #fff;
font-size: 0.75rem; min-height: 36px; border-radius: 0;
}
.mb-edit-role-select:focus { border-color: var(--sa-primary-color, #282320); outline: none; }
/* ═══ MOBILE ═══ */
@media (max-width: 768px) {
.mb-card-grid { grid-template-columns: 1fr; }
.mb-toolbar { gap: 0.4rem; }
.mb-search-wrap { flex: 1 1 100%; max-width: 100%; }
.mb-toolbar-right { margin-left: 0; flex: 1 1 100%; justify-content: space-between; }
.mb-add-panel__fields { grid-template-columns: 1fr; }
}
/* ═══ HARDWARE — Category Tabs + Toggle Cards ═══ */
.hw-tabs {
display: flex; gap: 0.35rem; flex-wrap: wrap;
padding-bottom: 0.75rem; margin-bottom: 1rem;
border-bottom: 2px solid #EFEBE5;
}
.hw-tab {
display: inline-flex; align-items: center; gap: 0.4rem;
padding: 0.45rem 0.85rem; font-size: 0.78rem; font-weight: 600;
color: #6E6660; background: #EFEBE5; border: 1px solid #D8D0C3;
cursor: pointer; transition: all 0.15s; white-space: nowrap;
min-height: 36px;
}
.hw-tab:hover { background: #D8D0C3; color: #3D3833; }
.hw-tab.hw-tab--active {
background: #1A1715; color: #fff; border-color: #1A1715;
}
.hw-tab__count {
font-size: 0.62rem; font-weight: 700;
padding: 0.1rem 0.4rem; border-radius: 50px;
background: rgba(0,0,0,0.1); color: inherit;
}
.hw-tab.hw-tab--active .hw-tab__count { background: rgba(255,255,255,0.2); }
.hw-tab__icon { font-size: 0.72rem; }
.hw-panel { display: none; }
.hw-panel.hw-panel--active { display: block; animation: hwFadeIn 0.15s ease; }
@keyframes hwFadeIn { from { opacity: 0; } to { opacity: 1; } }
.hw-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
/* ─── Individual Toggle Card ─── */
.hw-card {
display: flex; align-items: center; gap: 0.75rem;
padding: 0.75rem 1rem; background: #fff; border: 1px solid #D8D0C3;
cursor: pointer; transition: all 0.2s ease;
min-height: 56px; border-left: 3px solid transparent;
}
.hw-card:hover { background: #fafbfc; border-color: #B5AB9D; border-left-color: #B5AB9D; }
.hw-card--on {
background: #F2F5EE; border-color: #C7D2B7; border-left-color: #7A8C6E;
}
.hw-card--on:hover { background: #ecfdf5; border-color: #B5C5A8; border-left-color: #7A8C6E; }
.hw-card__icon {
width: 36px; height: 36px;
display: flex; align-items: center; justify-content: center;
font-size: 0.85rem; flex-shrink: 0;
background: #EFEBE5; color: #6E6660;
transition: all 0.2s ease;
}
.hw-card--on .hw-card__icon { background: #DFE5D6; color: #5F7058; }
.hw-card__name {
flex: 1; font-size: 0.82rem; font-weight: 500; color: #3D3833;
line-height: 1.3; min-width: 0;
}
.hw-card--on .hw-card__name { color: #506046; font-weight: 600; }
/* ─── iOS-style Toggle ─── */
.hw-toggle { position: relative; flex-shrink: 0; width: 44px; height: 26px; }
.hw-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.hw-toggle__track {
position: absolute; top: 0; left: 0; right: 0; bottom: 0;
background: #B5AB9D; border-radius: 13px; cursor: pointer;
transition: background 0.25s ease;
}
.hw-toggle__track::after {
content: ''; position: absolute;
width: 20px; height: 20px; border-radius: 50%;
background: #fff; top: 3px; left: 3px;
box-shadow: 0 1px 3px rgba(0,0,0,0.15);
transition: transform 0.25s ease;
}
.hw-toggle input:checked + .hw-toggle__track { background: #7A8C6E; }
.hw-toggle input:checked + .hw-toggle__track::after { transform: translateX(18px); }
.hw-toggle input:focus-visible + .hw-toggle__track {
outline: 2px solid #7A8C6E; outline-offset: 2px;
}
/* ─── Empty state ─── */
.hw-empty {
text-align: center; padding: 3rem 1.5rem;
color: #847C70;
}
.hw-empty__icon { font-size: 2rem; opacity: 0.3; margin-bottom: 0.75rem; }
.hw-empty__text { font-size: 0.85rem; }
/* ─── Responsive ─── */
@media (max-width: 768px) {
.hw-grid { grid-template-columns: 1fr; }
.hw-section__header { padding: 0.75rem; }
.hw-card { padding: 0.625rem 0.75rem; min-height: 52px; }
}
/* ═══ PASSWORD — Split Layout ═══ */
.pw-layout { display: flex; gap: 2rem; max-width: 800px; }
.pw-form-side { flex: 1; min-width: 0; }
.pw-reqs-side { width: 260px; flex-shrink: 0; padding-top: 0.25rem; }
.pw-field { margin-bottom: 1.25rem; }
.pw-label {
display: block; font-size: 0.78rem; font-weight: 600; color: #3D3833;
margin-bottom: 0.4rem;
}
.pw-input-wrap { position: relative; display: flex; align-items: center; }
.pw-input {
width: 100%; padding: 0.6rem 2.5rem 0.6rem 0.75rem;
border: 1px solid #B5AB9D; font-size: 0.85rem; color: #2A2622;
background: #fff; transition: border-color 0.15s; min-height: 44px; outline: none;
}
.pw-input:focus { border-color: #1A1715; box-shadow: 0 0 0 1px rgba(17,24,39,0.08); }
.pw-eye {
position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%);
background: none; border: none; cursor: pointer; color: #847C70; font-size: 0.85rem;
min-width: 44px; min-height: 44px;
display: flex; align-items: center; justify-content: center;
}
.pw-eye:hover { color: #6E6660; }
/* Strength meter */
.pw-meter { margin-bottom: 1.25rem; }
.pw-meter__bar { height: 4px; background: #D8D0C3; overflow: hidden; margin-bottom: 0.4rem; }
.pw-meter__fill { height: 100%; width: 0%; transition: width 0.3s, background 0.3s; }
.pw-meter__label { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #847C70; }
/* Requirements */
.pw-reqs-title {
font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
letter-spacing: 0.05em; color: #847C70; margin-bottom: 0.75rem;
}
.pw-reqs { list-style: none; padding: 0; margin: 0; }
.pw-req {
display: flex; align-items: center; gap: 0.5rem;
padding: 0.35rem 0; font-size: 0.78rem; color: #c4c9d1;
transition: color 0.2s;
}
.pw-req__icon {
width: 16px; height: 16px; border-radius: 50%;
display: flex; align-items: center; justify-content: center;
font-size: 0.5rem; flex-shrink: 0;
background: #EFEBE5; color: #B5AB9D; transition: all 0.2s;
}
.pw-req--pass { color: #5F7058; }
.pw-req--pass .pw-req__icon { background: #DFE5D6; color: #5F7058; }
.pw-actions { padding-top: 1rem; border-top: 1px solid #EFEBE5; }
.pw-btn {
min-height: 44px; padding: 0 1.5rem; border: none;
font-size: 0.82rem; font-weight: 600; cursor: pointer;
display: inline-flex; align-items: center; gap: 0.5rem;
background: #1A1715; color: #fff; transition: all 0.15s;
}
.pw-btn:hover:not(:disabled) { background: #3D3833; }
.pw-btn:disabled { opacity: 0.35; cursor: not-allowed; }
@media (max-width: 768px) {
.pw-layout { flex-direction: column; gap: 1.25rem; }
.pw-reqs-side { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE AUDIT — Targeted overrides
   Fixes for patterns observed across entity-admin pages
   ═══════════════════════════════════════════════════════════════ */

/* Hero (admin/home): negative side margins on phone caused horizontal overflow
   when container-fluid padding shrinks to 10px on mobile. Cancel them out. */
@media (max-width: 576px) {
	.sa-hero {
		margin-left: 0;
		margin-right: 0;
		padding: 1.25rem 1rem;
	}
	.sa-hero__greeting { font-size: 1.15rem; }
	.sa-hero__name-line { font-size: 0.78rem; gap: 0.4rem; }
	.sa-hero__email { font-size: 0.72rem; word-break: break-all; }
}

/* Card-header rows that hold two back-to-clinic buttons (Customers + ClinicName)
   need to wrap and shrink so long clinic names don't push past viewport. */
@media (max-width: 768px) {
	.card-header.d-flex.gap-2 {
		flex-wrap: wrap !important;
		gap: 0.375rem !important;
	}
	.sa-back-to-clinic-btn {
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		font-size: 0.78rem;
		padding: 0.35rem 0.6rem;
	}
}
@media (max-width: 576px) {
	.card-header.d-flex.gap-2 .sa-back-to-clinic-btn {
		flex: 1 1 100%;
		min-height: 36px;
		display: inline-flex;
		align-items: center;
	}
}

/* Tabs + btn-list together in a single card-header (e.g. all-orders.php):
   tabs scroll horizontally but btn-list fights for room. Drop btn-list below
   tabs at narrow widths so both stay usable. */
@media (max-width: 768px) {
	.card-header.d-flex.align-items-center.justify-content-between:has(> .nav.sa-underline-tabs) {
		flex-direction: column;
		align-items: stretch !important;
		gap: 0.5rem;
	}
	.card-header.d-flex.align-items-center.justify-content-between:has(> .nav.sa-underline-tabs) > .btn-list {
		width: 100%;
		justify-content: stretch;
	}
	.card-header.d-flex.align-items-center.justify-content-between:has(> .nav.sa-underline-tabs) > .btn-list .btn {
		flex: 1 1 auto;
	}
}

/* === admin/home — Dashboard Customize Panel === */
.sa-customize-overlay {
	display: none;
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,.3);
	z-index: 1049;
	opacity: 0;
	transition: opacity .3s ease;
}
.sa-customize-overlay.open { opacity: 1; }
.sa-customize-panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 340px;
	max-width: 90vw;
	background: #fff;
	border-left: 1px solid #D8D0C3;
	box-shadow: -8px 0 30px rgba(0,0,0,.1);
	padding: 1.5rem;
	z-index: 1050;
	transform: translateX(100%);
	transition: transform .3s cubic-bezier(.4,0,.2,1);
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}
.sa-customize-panel.open {
	transform: translateX(0);
}
.sa-customize-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.25rem;
	padding-bottom: .75rem;
	border-bottom: 1px solid #D8D0C3;
}
.sa-customize-panel__title {
	font-size: .85rem;
	font-weight: 700;
	color: #2A2622;
	text-transform: uppercase;
	letter-spacing: .05em;
	margin: 0;
}
.sa-customize-panel__close {
	background: none;
	border: none;
	color: #847C70;
	font-size: 1.1rem;
	cursor: pointer;
	padding: .25rem;
	line-height: 1;
	transition: color .2s;
}
.sa-customize-panel__close:hover { color: #2A2622; }
.sa-customize-group {
	margin-bottom: 1.25rem;
}
.sa-customize-group__label {
	font-size: .65rem;
	font-weight: 700;
	color: #847C70;
	text-transform: uppercase;
	letter-spacing: .08em;
	margin-bottom: .5rem;
}
.sa-customize-panel__items {
	display: flex;
	flex-direction: column;
	gap: .25rem;
}
.sa-customize-item {
	display: flex;
	align-items: flex-start;
	gap: .6rem;
	font-size: .82rem;
	font-weight: 500;
	color: #3D3833;
	cursor: pointer;
	padding: .5rem .6rem;
	border-radius: 6px;
	transition: background .15s;
}
.sa-customize-item:hover { background: #EFEBE5; }
.sa-customize-item input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: #463C37;
	margin-top: 1px;
	flex-shrink: 0;
}
.sa-customize-item__text {
	display: flex;
	flex-direction: column;
	gap: .15rem;
}
.sa-customize-item__desc {
	font-size: .7rem;
	font-weight: 400;
	color: #847C70;
	line-height: 1.3;
}
.sa-customize-actions {
	display: flex;
	gap: .75rem;
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid #D8D0C3;
}
.sa-customize-actions button {
	padding: .45rem 1rem;
	font-size: .8rem;
	font-weight: 600;
	border: none;
	cursor: pointer;
	border-radius: 4px;
	transition: background .15s;
}
.sa-customize-actions .sa-customize-save {
	background: #463C37;
	color: #fff;
}
.sa-customize-actions .sa-customize-save:hover {
	background: #3D3833;
}
.sa-customize-actions .sa-customize-reset {
	background: #D8D0C3;
	color: #524A45;
}
.sa-customize-actions .sa-customize-reset:hover {
	background: #B5AB9D;
}
.sa-customize-btn {
	background: rgba(255,255,255,.1);
	border: 1px solid rgba(255,255,255,.2);
	color: rgba(255,255,255,.7);
	padding: .4rem .75rem;
	font-size: .8rem;
	cursor: pointer;
	transition: all .2s;
	display: inline-flex;
	align-items: center;
	gap: .4rem;
}
.sa-customize-btn:hover,
.sa-customize-btn.active {
	background: rgba(255,255,255,.2);
	color: #fff;
}
