:root {
	--bg-0: #ecf1f6;
	--bg-1: #ffffff;
	--bg-2: #dbe6f2;
	--ink-0: #1f2d3d;
	--ink-1: #4f6378;
	--ink-2: #7a8ea3;
	--brand-0: #13344f;
	--brand-1: #1f4f76;
	--accent-0: #2d7dff;
	--accent-1: #3f8dff;
	--good: #138754;
	--warn: #b87400;
	--bad: #c0392b;
	--line: #d7e2ee;
	--shadow: 0 10px 24px rgba(16, 42, 73, 0.08);
	--radius-lg: 14px;
	--radius-md: 10px;
	--radius-sm: 8px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: 'Poppins', 'IBM Plex Sans', sans-serif;
	color: var(--ink-0);
	background: #f3f6fa;
	min-height: 100vh;
}

.app {
	display: block;
	min-height: 100vh;
}

.topnav {
	height: 50px;
	background: #12394d;
	color: #e7f1f8;
	border-bottom: 1px solid #0f2f3f;
}

.topnav .navbar {
	height: 100%;
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 0 16px;
}

.topnav .logo {
	font-size: 18px;
	font-weight: 600;
	color: #ffffff;
	text-decoration: none;
}

.topnav .header-nav-item a {
	font-size: 14px;
	color: #deecf8;
	text-decoration: none;
	padding: 3px 0;
}

.topnav .header-nav-item a:hover {
	color: #ffffff;
}

.topnav .header-nav-item {
	position: relative;
	height: 100%;
	display: inline-flex;
	align-items: center;
}

.topnav .header-nav-item a.active {
	color: #ffffff;
	font-weight: 600;
}

.header-nav-item-with-submenu .header-submenu {
	position: absolute;
	left: 0;
	top: calc(100% - 2px);
	display: none;
	min-width: 210px;
	padding: 8px;
	border: 1px solid #0f2f3f;
	border-radius: 8px;
	background: #12394d;
	box-shadow: 0 10px 22px rgba(9, 24, 33, 0.35);
	z-index: 40;
	gap: 6px;
}

.header-nav-item-with-submenu:hover .header-submenu,
.header-nav-item-with-submenu:focus-within .header-submenu {
	display: grid;
}

.header-submenu .submenu-link {
	width: 100%;
	text-align: left;
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.2);
	color: #deecf8;
}

.header-submenu .submenu-link:hover {
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
}

.header-submenu .submenu-link.active {
	background: rgba(255, 255, 255, 0.22);
	border-color: rgba(255, 255, 255, 0.35);
	color: #ffffff;
	font-weight: 600;
}

.menu-strip {
    background-color: #12394D;
   
}
.menu-strip-toggle {
        display: none;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 9px 14px;
        font-size: 13px;
        font-weight: 600;
        color: #e0eaf4;
        background: #12394D;
        border: none;
        text-align: left;
        cursor: pointer;
        border-bottom: 1px solid rgba(255,255,255,0.1);
}
.menu-strip-toggle .ms-section {
        font-size: 11px;
        font-weight: 700;
        color: #7ca8c4;
        letter-spacing: .06em;
        text-transform: uppercase;
        flex-shrink: 0;
}
.menu-strip-toggle .ms-active {
        flex: 1;
        color: #ffffff;
}
.menu-strip-toggle .ms-caret {
        font-size: 10px;
        color: #7ca8c4;
        transition: transform 0.18s ease;
}
.menu-strip.open .ms-caret { transform: rotate(180deg); }
.app-shell {
	display: grid;
	grid-template-columns: 260px 1fr;
	min-height: calc(100vh - 50px);
}

.sidebar {
	border-right: 1px solid #d8e2ec;
	background: #eef3f7;
	padding: 10px 8px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	position: sticky;
	top: 50px;
	height: calc(100vh - 50px);
	overflow: auto;
}

.menu-group {
	border: 1px solid #d5e0ea;
	background: #ffffff;
	border-radius: 8px;
	padding: 8px;
}

.menu-group h2 {
	font-size: 12px;
	font-weight: 600;
	color: #4f6479;
	margin: 0 0 8px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.menu-group-secondary {
	border-color: #1f4f76;
	background: linear-gradient(135deg, #1f4f76 0%, #2a5a82 100%);
}

.menu-group-secondary h2,
.menu-group-secondary .hint,
.menu-group-secondary .empty {
	color: #ffffff;
}

.sidebar-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.sidebar-panel-head h2 {
	margin: 0;
}

.sidebar-panel-actions {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.sidebar-icon-button {
	width: 28px;
	height: 28px;
	border: 1px solid #d3e0ec;
	border-radius: 7px;
	background: #ffffff;
	color: #2f475f;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}

.sidebar-icon-button:hover {
	background: #edf3fb;
}

.brand {
	padding: 10px;
	border-radius: var(--radius-md);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(214, 230, 247, 0.25);
	color: #f3f8fe;
	box-shadow: none;
}

.brand h1 {
	margin: 0;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 21px;
	letter-spacing: 0.2px;
}

.brand p {
	margin: 6px 0 0;
	font-size: 11px;
	color: #bbd0e4;
}

.host {
	margin-top: 8px;
	font-size: 10px;
	display: inline-block;
	padding: 3px 7px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
}

.panel {
	background: #ffffff;
	border: 1px solid #d5e0ea;
	border-radius: 8px;
	padding: 8px;
}

.panel h2 {
	font-family: 'Poppins', 'IBM Plex Sans', sans-serif;
	margin: 0 0 8px;
	font-size: 12px;
	letter-spacing: 0.2px;
	color: #4f6479;
	text-transform: uppercase;
}

.panel p {
	margin: 0;
	color: #7a8ea2;
	font-size: 11px;
}

.entity-list,
.workspace-list,
.recent-list {
	display: grid;
	gap: 8px;
	margin-top: 10px;
}

.button.pipeline-prospect {
	background: #fff1f1;
	border-color: #f1c6c6;
	color: #9f2520;
}

.button.pipeline-lead {
	background: #fff9e8;
	border-color: #efd790;
	color: #8a6400;
}

.button.pipeline-sale {
	background: #eefaf3;
	border-color: #bfe2cd;
	color: #EEFAF3;
}

.button.contact-tile {
	display: grid;
	gap: 3px;
}

.button.contact-tile strong {
	font-size: 12px;
	font-weight: 600;
}

.button.contact-tile span {
	display: block;
	font-size: 10px;
	line-height: 1.25;
	opacity: 0.92;
}

.sidebar-pipeline-board {
	display: grid;
	gap: 8px;
	margin-top: 8px;
}

.sidebar-pipeline-stage {
	border: 1px solid #d6e1eb;
	border-radius: 8px;
	padding: 8px;
	background: #ffffff;
}

.sidebar-pipeline-stage header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 6px;
}

.sidebar-pipeline-stage.prospect header { color: #FFF1F1; }
.sidebar-pipeline-stage.lead header { color: #FFF8E8; }
.sidebar-pipeline-stage.sale header { color: #EEFAF3; }

.sidebar-pipeline-stage.prospect { background: #fff1f1; border-color: #f1c6c6; }
.sidebar-pipeline-stage.lead { background: #fff9e8; border-color: #efd790; }
.sidebar-pipeline-stage.sale { background: #eefaf3; border-color: #bfe2cd; }

.sidebar-pipeline-cards {
	display: grid;
	gap: 6px;
	min-height: 28px;
}

.pipeline-contact-card {
	display: grid;
	gap: 3px;
	text-align: left;
	padding: 7px 8px;
	border-radius: 7px;
	border: 1px solid #d3e0ec;
	background: #ffffff;
	font-size: 12px;
}

.pipeline-contact-card strong {
	font-size: 12px;
	font-weight: 600;
}

.pipeline-contact-card small {
	font-size: 10px;
	color: #6d8093;
}

.pipeline-contact-card span {
	display: block;
	font-size: 10px;
	line-height: 1.25;
	color: #556b80;
}

.pipeline-contact-card.prospect { border-left: 4px solid #d9534f; }
.pipeline-contact-card.lead { border-left: 4px solid #e0ac00; }
.pipeline-contact-card.sale { border-left: 4px solid #1f9d55; }

.pipeline-empty {
	font-size: 11px;
	color: #708497;
	padding: 4px 2px;
}

.pipeline-workspace {
	display: grid;
	grid-template-columns: repeat(3, minmax(220px, 1fr));
	gap: 12px;
}

.pipeline-lane {
	border: 1px solid #d6e1eb;
	border-radius: 10px;
	padding: 12px;
	background: #ffffff;
}

.pipeline-lane.prospect { background: #fff3f3; }
.pipeline-lane.lead { background: #fffbea; }
.pipeline-lane.sale { background: #f1fbf5; }

.pipeline-lane h3 {
	margin: 0 0 10px;
}

.pipeline-lane .lane-stack {
	display: grid;
	gap: 8px;
	min-height: 120px;
}

.pipeline-note-list {
	display: grid;
	gap: 8px;
}

button,
input,
select,
textarea {
	font: inherit;
}

.button {
	border: 1px solid #c8d8ea;
	border-radius: 8px;
	padding: 8px 9px;
	background: #ffffff;
	color: #2b3e53;
	cursor: pointer;
	text-align: left;
	transition: background 0.16s ease;
}

.sidebar .button,
.sidebar .button.ghost {
	background: #f8fbfe;
	border-color: #d3e0ec;
	color: #2f475f;
	font-size: 12px;
}

.button:hover {
	background: #edf3fb;
	transform: none;
}

.button.primary {
	background: var(--brand-1);
	border-color: #295a80;
	color: #f7fbff;
}

.button.accent {
	background: var(--accent-0);
	border-color: #2f78ea;
	color: #f7fbff;
}

.button.ghost {
	border: 1px solid var(--line);
	background: transparent;
}

.button.small {
	padding: 6px 8px;
	font-size: 12px;
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	background: #d2f0ea;
	color: #146a61;
}

.workspace {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #f8fafc;
}

.workspace-header {
	padding: 0 0 10px;
	border-bottom: 1px solid var(--line);
	background: #ffffff;
	position: sticky;
	top: 50px;
	z-index: 20;
}

.crm-titlebar {
	height: 48px;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 0 14px;
	background: #ffffff;
	color: #2a445c;
	font-size: 14px;
	border-bottom: 1px solid #dce6ef;
}

.crm-titlebar a {
	color: #2a445c;
	text-decoration: none;
	font-weight: 500;
}

.crm-titlebar span {
	margin-left: auto;
	font-size: 12px;
	color: #6a8298;
}

.toolbar {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
	align-items: center;
	margin: 10px 18px 10px;
}

.search-wrap {
	position: relative;
}

.search-wrap input {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 10px 36px 10px 12px;
	background: #ffffff;
}

.search-wrap::after {
	content: '?';
	position: absolute;
	right: 12px;
	top: 8px;
	color: var(--ink-2);
	font-size: 18px;
}

.search-results {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	background: var(--bg-1);
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: var(--shadow);
	max-height: 320px;
	overflow: auto;
	display: none;
	z-index: 50;
}

.search-results.active {
	display: block;
}

.result-item {
	padding: 9px 10px;
	border-bottom: 1px solid #edf2f1;
	cursor: pointer;
}

.result-item:last-child {
	border-bottom: none;
}

.result-item:hover {
	background: #f2f8f6;
}

.result-item strong {
	display: block;
	font-size: 13px;
}

.result-item span {
	font-size: 12px;
	color: var(--ink-2);
}

.toolbar-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.tabs {
	display: flex;
	flex-wrap: nowrap;
	gap: 4px;
	overflow: auto;
	padding: 0 18px 4px;
}

.tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 6px 6px 0 0;
	border: 1px solid var(--line);
	border-bottom: none;
	background: #eef3f9;
	padding: 6px 8px;
	min-width: 120px;
	max-width: 280px;
	cursor: pointer;
	flex-shrink: 0;
}

.tab.active {
	background: #dcecff;
	color: #123a62;
	border-color: #9fc0e3;
	box-shadow: inset 0 -2px 0 #1f5fbf;
}

.business-tabs {
	padding: 4px 0 2px;
	border-bottom: 1px solid #dce6ef;
}

.item-tabs {
	padding: 2px 0 4px;
}

.tab.context-selected {
	background: #fff6d6;
	border-color: #d9b85b;
	box-shadow: inset 0 -2px 0 #b78200;
}

.tab.active.context-selected {
	background: #e7f1ff;
	border-color: #9fc0e3;
	box-shadow: inset 0 -2px 0 #1f5fbf;
}

.tab-context-badge {
	display: inline-flex;
	align-items: center;
	margin-left: 6px;
	padding: 1px 5px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .02em;
	border-radius: 999px;
	background: #b78200;
	color: #ffffff;
	text-transform: uppercase;
}

.tab.linked-business {
	border-left: 3px solid #1f5fbf;
	background: #eef5ff;
}

.item-tabs .tab.active {
	background: #d8ecff;
	border-color: #89b4e0;
	box-shadow: inset 0 -2px 0 #0f4ea7;
}

.tab-title {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 13px;
}

.tab button {
	border: none;
	background: transparent;
	color: inherit;
	cursor: pointer;
	padding: 0;
	font-size: 13px;
}

.menu-link {
	text-align: center;
	background: transparent;
	border-color: transparent;
	color: #deecf8;
	font-size: 13px;
	white-space: nowrap;
	flex-shrink: 0;
}

.menu-link:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	border-color: transparent;
}

.menu-link.active {
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.3);
	color: #ffffff;
	font-weight: 600;
}

.content {
	padding: 12px;
	overflow: auto;
}

.external-page-wrap {
	height: calc(100vh - 190px);
	min-height: 520px;
	border: 1px solid #d6e1eb;
	border-radius: 10px;
	overflow: hidden;
	background: #ffffff;
}

.external-page-frame {
	width: 100%;
	height: 100%;
	border: 0;
	background: #ffffff;
}

.dashboard {
	display: grid;
	gap: 12px;
}

.section {
	background: var(--bg-1);
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 12px;
	box-shadow: none;
	animation: rise 220ms ease-out both;
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.section h3 {
	margin: 0 0 10px;
	font-family: 'Poppins', 'IBM Plex Sans', sans-serif;
	font-size: 16px;
}

.business-card {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px;
	align-items: center;
}

.business-card .meta {
	font-size: 13px;
	color: #5b6f82;
	line-height: 1.5;
}

.pipeline-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(240px, 1fr));
	gap: 10px;
}

.pipeline-box {
	border: 1px solid #d6e1eb;
	border-radius: 8px;
	padding: 10px;
	background: #ffffff;
}

.pipeline-box.tone-1,
.button.business-tone-1 {
	background: #edf5ff;
	border-color: #bdd7ff;
	color: #000;
}

.pipeline-box.tone-2,
.button.business-tone-2 {
	background: #eefaf3;
	border-color: #bfe2cd;
	color: #000;
}

.pipeline-box.tone-3,
.button.business-tone-3 {
	background: #fff8e8;
	border-color: #f0d58a;
	color: #000;
}

.pipeline-box.tone-4,
.button.business-tone-4 {
	background: #fff1f1;
	border-color: #f1c6c6;
	color: #FFF1F1;
}

.pipeline-box h4 {
	margin: 0 0 8px;
	font-size: 13px;
	color: #27445f;
}

.pipeline-box .count {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 6px;
	color: #12394d;
}

.pipeline-box .item {
	font-size: 12px;
	color: #5f7386;
	padding: 2px 0;
}

.appointments-table th,
.appointments-table td {
	font-size: 12px;
}

.graph-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(280px, 1fr));
	gap: 10px;
}

.dashboard-layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
	gap: 12px;
}

.dashboard-main,
.dashboard-side {
	display: grid;
	gap: 12px;
	align-content: start;
}

.map-panel {
	height: 260px;
	border: 1px solid #d6e1eb;
	border-radius: 8px;
	background: #f7fbff;
	display: block;
	overflow: hidden;
}

.form-grid {
	display: grid;
	gap: 8px;
}

.form-grid label {
	font-size: 12px;
	color: #5f7386;
	display: grid;
	gap: 4px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
	border: 1px solid #d3e0ec;
	border-radius: 6px;
	padding: 7px 8px;
	font-size: 12px;
	background: #fff;
}

.form-grid textarea {
	min-height: 72px;
	resize: vertical;
}

.graph-card {
	border: 1px solid #d6e1eb;
	border-radius: 8px;
	padding: 10px;
	background: #ffffff;
}

.graph-card h4 {
	margin: 0 0 10px;
	font-size: 13px;
	color: #27445f;
}

.pie-wrap {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 12px;
	align-items: center;
}

.pie-chart {
	width: 180px;
	height: 180px;
	border-radius: 50%;
	border: 1px solid #d6e1eb;
	background: #eef4fa;
	position: relative;
}

.pie-chart::after {
	content: '';
	position: absolute;
	inset: 44px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid #e2eaf2;
}

.pie-legend {
	display: grid;
	gap: 8px;
}

.pie-legend .row {
	display: grid;
	grid-template-columns: 12px 1fr auto;
	gap: 8px;
	align-items: center;
	font-size: 12px;
	color: #5f7386;
}

.pie-legend .dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

.graph-row {
	display: grid;
	grid-template-columns: 130px 1fr 36px;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 12px;
	color: #5f7386;
}

.graph-row:last-child {
	margin-bottom: 0;
}

.schedule-layout {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr) 320px;
	gap: 12px;
	align-items: start;
}

.schedule-column {
	display: grid;
	gap: 12px;
}

.schedule-column .section {
	height: 100%;
}

.schedule-agenda {
	display: grid;
	gap: 10px;
	max-height: calc(100vh - 210px);
	overflow: auto;
	padding-right: 4px;
}

.schedule-day {
	display: grid;
	gap: 8px;
	padding: 10px;
	border: 1px solid #dbe5ee;
	border-radius: 10px;
	background: #fbfdff;
}

.schedule-day h4 {
	margin: 0;
	font-size: 13px;
	color: #27445f;
}

.schedule-day .hint {
	font-size: 11px;
}

.schedule-appointment {
	width: 100%;
	text-align: left;
	border: 1px solid #d8e3ef;
	border-radius: 10px;
	background: #ffffff;
	padding: 10px;
	display: grid;
	gap: 4px;
	cursor: pointer;
}

.schedule-appointment.active {
	border-color: #1f5fbf;
	box-shadow: 0 0 0 1px rgba(31, 95, 191, 0.12);
}

.schedule-appointment .meta-line {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: 11px;
	color: #62788d;
}

.schedule-map {
	display: grid;
	gap: 10px;
}

.schedule-map-accounts {
	display: grid;
	gap: 8px;
	padding: 10px;
	border: 1px solid #dbe5ee;
	border-radius: 10px;
	background: #f9fbfd;
}

.schedule-map-accounts h4 {
	margin: 0;
	font-size: 12px;
	color: #27445f;
}

.schedule-map-accounts .schedule-area-row {
	font-size: 11px;
}

.schedule-map-frame {
	height: 360px;
	border: 1px solid #d6e1eb;
	border-radius: 12px;
	overflow: hidden;
	background: #f7fbff;
}

.schedule-map-frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.schedule-area-list {
	display: grid;
	gap: 8px;
}

.schedule-area-row {
	display: grid;
	grid-template-columns: 12px 1fr auto;
	gap: 8px;
	align-items: center;
	font-size: 12px;
	color: #5f7386;
}

.schedule-area-row .dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

.graph-track {
	height: 10px;
	border-radius: 999px;
	background: #e8eef4;
	overflow: hidden;
}

.graph-fill {
	height: 100%;
	background: linear-gradient(90deg, #2d7dff 0%, #59a0ff 100%);
}

.columns {
	display: flex;
	align-items: flex-end;
	gap: 12px;
	height: 140px;
	padding-top: 8px;
}

.column-item {
	flex: 1;
	display: grid;
	gap: 6px;
	justify-items: center;
}

.column-item .bar {
	width: 100%;
	max-width: 48px;
	background: linear-gradient(180deg, #2d7dff 0%, #0f4ea7 100%);
	border-radius: 8px 8px 2px 2px;
	min-height: 4px;
}

.column-item .label {
	font-size: 11px;
	color: #607588;
	text-align: center;
}

.column-item .value {
	font-size: 11px;
	font-weight: 600;
	color: #27445f;
}

.kpis {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 10px;
}

.kpi {
	border: 1px solid var(--line);
	background: linear-gradient(180deg, #fcfffe 0%, #f4faf8 100%);
	border-radius: 11px;
	padding: 12px;
}

.kpi span {
	display: block;
	color: var(--ink-2);
	font-size: 12px;
}

.kpi strong {
	display: block;
	margin-top: 4px;
	font-size: 20px;
	font-family: 'Space Grotesk', sans-serif;
}

.grid-2,
.grid-3 {
	display: grid;
	gap: 12px;
}

.grid-2 {
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

table {
	width: 100%;
	border-collapse: collapse;
}

th,
td {
	text-align: left;
	border-bottom: 1px solid #e3ebf4;
	padding: 7px 6px;
	font-size: 12px;
	vertical-align: top;
}

th {
	color: #546b84;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.22px;
	background: #f7fafd;
}

tr:nth-child(even) td {
	background: #fbfdff;
}

.timeline {
	display: grid;
	gap: 8px;
}

.timeline-item {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 10px;
	background: #fbfffe;
}

.timeline-item header {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	align-items: center;
	margin-bottom: 4px;
}

.timeline-item strong {
	font-size: 13px;
}

.timeline-item em {
	font-style: normal;
	color: var(--ink-2);
	font-size: 12px;
}

.timeline-item p {
	margin: 0;
	color: var(--ink-1);
	font-size: 13px;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border-radius: 999px;
	padding: 3px 8px;
	font-size: 11px;
	background: #e6f1ef;
	color: #16584f;
}

.badge.warn { background: #fff2df; color: #9f5a06; }
.badge.good { background: #ddf7e9; color: #1b7b4b; }
.badge.bad { background: #fee8df; color: #a84317; }

.composer {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 8px;
	min-height: 88px;
	background: #ffffff;
}

.chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.chip {
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 12px;
	background: #f7fbfa;
}

.bar-wrap {
	display: grid;
	gap: 8px;
}

.bar {
	height: 11px;
	background: #e3efec;
	border-radius: 999px;
	overflow: hidden;
}

.bar > span {
	height: 100%;
	display: block;
	background: linear-gradient(90deg, #169f8c, #22c2ab);
}

.split {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.hint {
	color: var(--ink-2);
	font-size: 12px;
}

.empty {
	border: 1px dashed var(--line);
	border-radius: 10px;
	padding: 14px;
	color: var(--ink-2);
	font-size: 13px;
	background: #f8fbfa;
}

.entity-link {
	color: #0d766d;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.entity-link:hover {
	text-decoration: underline;
}

.footer-note {
	color: var(--ink-2);
	font-size: 12px;
}

@media (max-width: 1100px) {
	.app-shell {
		grid-template-columns: 1fr;
	}

	.sidebar {
		position: relative;
		height: auto;
		top: 0;
		border-right: none;
		border-bottom: 1px solid var(--line);
	}

	.workspace-header {
		top: 0;
	}

	.pipeline-grid {
		grid-template-columns: 1fr;
	}

	.graph-grid {
		grid-template-columns: 1fr;
	}

	.pie-wrap {
		grid-template-columns: 1fr;
		justify-items: center;
	}

	.dashboard-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 700px) {
	.toolbar {
		grid-template-columns: 1fr;
	}

	.toolbar-actions {
		justify-content: flex-start;
	}

	.content {
		padding: 10px;
	}
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — site2 CRM
   Added 2026-06-26
   ═══════════════════════════════════════════════════════════════ */

/* ── Sidebar panel toggle (<> button) ─────────────────────────── */
#sidebar-toggle {
	display: none;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 8px;
	background: rgba(255,255,255,0.12);
	color: #ffffff;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -1px;
	line-height: 1;
	padding: 0;
	transition: background 0.18s;
}
#sidebar-toggle:hover { background: rgba(255,255,255,0.22); }

/* ── Mobile hamburger menu toggle ────────────────────────────── */
#mobile-menu-toggle {
	display: none;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 8px;
	background: rgba(255,255,255,0.12);
	color: #ffffff;
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	flex-shrink: 0;
	transition: background 0.18s;
}
#mobile-menu-toggle:hover { background: rgba(255,255,255,0.22); }
#mobile-menu-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	background: #ffffff;
	border-radius: 2px;
	transition: all 0.25s ease;
}
#mobile-menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
#mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
#mobile-menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Mobile nav dropdown ─────────────────────────────────────── */
#mobile-menu-dropdown {
	display: none;
	position: fixed;
	top: 50px;
	left: 0;
	right: 0;
	z-index: 210;
	background: #12394d;
	border-bottom: 2px solid #0f2f3f;
	box-shadow: 0 8px 24px rgba(0,0,0,0.28);
	flex-direction: column;
	padding: 8px 0;
	transform: translateY(-8px);
	opacity: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
}
#mobile-menu-dropdown.open {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
#mobile-menu-dropdown a {
	display: block;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 500;
	color: #deecf8;
	text-decoration: none;
	border-bottom: 1px solid rgba(255,255,255,0.06);
	transition: background 0.15s;
}
#mobile-menu-dropdown a:last-child { border-bottom: none; }
#mobile-menu-dropdown a:hover { background: rgba(255,255,255,0.1); color: #ffffff; }

/* Sidebar overlay backdrop */
#sidebar-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.45);
	z-index: 199;
}
#sidebar-backdrop.visible { display: block; }

/* ── Mobile tab accordion ────────────────────────────────────── */
.mobile-tab-tree { display: none; }  /* hidden on desktop */

.mobile-acc-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 6px;
}

/* ALL button */
.mobile-acc-all {
	width: 100%;
	text-align: left;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 9px 10px;
	border-radius: 7px;
	border: 1px solid #d3e0ec;
	background: #f8fbfe;
	color: #2f475f;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}
.mobile-acc-all.is-context {
	background: #fff6d6;
	border-color: #d9b85b;
	color: #7a5800;
}
.mobile-acc-all:hover { background: #edf3fb; }

/* Org group */
.mobile-acc-group {
	border: 1px solid #d3e0ec;
	border-radius: 8px;
	overflow: hidden;
	background: #ffffff;
}
.mobile-acc-group.is-context { border-color: #d9b85b; }

/* Group header row */
.mobile-acc-head {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	background: #f4f8fc;
}
.mobile-acc-group.is-context .mobile-acc-head { background: #fffbee; }
.mobile-acc-group.is-open .mobile-acc-head { border-bottom: 1px solid #dce6ef; }

/* Title button */
.mobile-acc-title {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 9px 10px;
	text-align: left;
	background: none;
	border: none;
	font-size: 12px;
	font-weight: 600;
	color: #2f475f;
	cursor: pointer;
}
.mobile-acc-title:hover { color: #1a3550; }
.mobile-acc-head.is-active .mobile-acc-title { color: #1f5fbf; }
.mobile-acc-head.is-context .mobile-acc-title { color: #7a5800; }

/* Chevron rotates when open */
.mobile-acc-chevron {
	font-size: 9px;
	color: #8aa0b8;
	transition: transform 0.2s ease;
	flex-shrink: 0;
}
.mobile-acc-group.is-open .mobile-acc-chevron { transform: rotate(90deg); }

.mobile-acc-badge {
	font-size: 9px;
	font-weight: 700;
	background: #b78200;
	color: #fff;
	border-radius: 999px;
	padding: 1px 6px;
	margin-left: 2px;
	text-transform: uppercase;
}

.mobile-acc-close {
	width: 28px;
	height: 28px;
	border: none;
	background: none;
	color: #8aa0b8;
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-right: 2px;
}
.mobile-acc-close:hover { color: #c0392b; }

/* Children panel */
.mobile-acc-children {
	display: none;
	flex-direction: column;
	padding: 4px 0;
}
.mobile-acc-group.is-open .mobile-acc-children { display: flex; }

.mobile-acc-child {
	display: flex;
	align-items: center;
	border-bottom: 1px solid #edf3fa;
}
.mobile-acc-child:last-child { border-bottom: none; }
.mobile-acc-child.is-active { background: #e8f1ff; }

.mobile-acc-child-btn {
	flex: 1;
	text-align: left;
	padding: 8px 10px 8px 22px;
	background: none;
	border: none;
	font-size: 12px;
	color: #2f475f;
	cursor: pointer;
}
.mobile-acc-child.is-active .mobile-acc-child-btn { color: #1f5fbf; font-weight: 600; }
.mobile-acc-child-btn:hover { color: #1a3550; }

.mobile-acc-empty {
	padding: 8px 22px;
	font-size: 11px;
	color: #8aa0b8;
	font-style: italic;
}

/* -- Mobile inline accordion (workspace-header) -- */
.mobile-inline-acc {
        display: none;
        flex-direction: column;
        border-top: 1px solid var(--line);
        background: #fff;
        touch-action: manipulation;
}
/* Mobile context bar (replaces inline accordion) */
.mobile-context-bar {
        display: none;
        align-items: center;
        gap: 8px;
        padding: 6px 12px;
        background: #f4f7fa;
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        flex-wrap: wrap;
}
.mcb-org-select {
        flex: 1;
        min-width: 0;
        padding: 8px 10px;
        font-size: 13px;
        font-weight: 600;
        color: #1a3550;
        background: #fff;
        border: 1px solid #c5d2df;
        border-radius: 6px;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238aa0b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        padding-right: 28px;
}
.mcb-active-label {
        font-size: 12px;
        color: #4a6fa5;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 140px;
}
.mcb-context-label {
        width: 100%;
        padding: 4px 2px 2px;
        font-size: 12px;
        color: #5a7a9a;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 2px;
        flex-wrap: wrap;
}
.mcb-biz-name {
        font-weight: 700;
        color: #1a3550;
}
.mcb-contact-name {
        color: #4a6fa5;
}
.mcb-sep {
        color: #8aa0b8;
}
/* ── Side-panel toggle button (hidden by default, shown on mobile) ── */
.side-tab-btn {
        display: none;
        position: absolute;
        left: 0;
        top: 8px;
        z-index: 22;
        width: 22px;
        height: 52px;
        align-items: center;
        justify-content: center;
        background: #dde8f5;
        border: 1px solid #b8cde0;
        border-left: none;
        border-radius: 0 8px 8px 0;
        cursor: pointer;
        font-size: 16px;
        font-weight: 700;
        color: #1a3550;
        transition: left .2s ease, background .15s;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        line-height: 1;
        padding: 0;
}
/* Purchase Order compose — product catalog side panel */
.po-compose-wrap { overflow: visible !important; }
.po-catalog-panel {
        position: fixed;
        left: 0;
        top: 60px;
        bottom: 0;
        width: 320px;
        background: #f8fafc;
        border-right: 1px solid #d3e0ec;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        transform: translateX(-320px);
        transition: transform .2s ease;
        z-index: 200;
        box-shadow: none;
}
.po-compose-wrap.side-open .po-catalog-panel {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0,0,0,.12);
}
.po-catalog-header {
        padding: 10px 14px;
        background: #1e3a52;
        font-size: 12px;
        font-weight: 700;
        color: #fff;
        flex-shrink: 0;
}
/* Side tab pinned to left viewport edge */
.po-compose-wrap > .side-tab-btn {
        display: flex;
        position: fixed;
        left: 0;
        right: auto;
        top: 50vh;
        border-radius: 0 8px 8px 0;
        border-left: none;
        border-right: 1px solid #b8cde0;
        z-index: 201;
}
.po-compose-wrap.side-open > .side-tab-btn { left: 320px; }
/* Cart summary in panel header */
.po-catalog-header {
        padding: 12px 14px;
        background: #1e3a52;
        color: #fff;
        flex-shrink: 0;
}
/* Appointments mobile view toggle — hidden on desktop */
.appt-mobile-view-toggle {
        display: none;
        gap: 6px;
        padding: 8px 0 4px;
        border-top: 1px solid #e0eaf2;
        margin-top: 8px;
}
.appt-mvbtn {
        flex: 1;
        padding: 8px 10px;
        font-size: 13px;
        font-weight: 600;
        border: 1px solid #c5d2df;
        border-radius: 6px;
        background: #fff;
        color: #29445b;
        cursor: pointer;
        text-align: center;
        touch-action: manipulation;
}
.appt-mvbtn.active {
        background: #1e3a52;
        color: #fff;
        border-color: #1e3a52;
}
.mia-all-row { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.mia-all {
        flex: 1;
        display: block;
        text-align: left;
        padding: 10px 16px;
        min-height: 44px;
        font-size: 13px;
        font-weight: 600;
        color: #1a3550;
        background: none;
        border: none;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
}
.mia-all.is-selected { background: #fff8dc; color: #b45309; }
.mia-collapse-all {
        padding: 10px 12px;
        font-size: 11px;
        color: #8aa0b8;
        background: none;
        border: none;
        cursor: pointer;
        line-height: 1;
}
.mia-collapse-all:hover { color: #1a3550; }
.mia-group { border-bottom: 1px solid var(--line); }
.mia-head { display: flex; align-items: center; }
.mia-head.is-context { background: #f0f8ff; }
.mia-chevron-btn {
        padding: 10px 8px 10px 14px;
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        background: none;
        border: none;
        cursor: pointer;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
}
.mia-chevron-btn:hover .mia-chevron { color: #1a3550; }
.mia-title {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 4px 10px 0;
        font-size: 13px;
        font-weight: 600;
        color: #1a3550;
        background: none;
        border: none;
        text-align: left;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
}
.mia-chevron {
        font-size: 10px;
        color: #8aa0b8;
        transition: transform 0.18s ease;
        display: inline-block;
}
.mia-group.is-open > .mia-head > .mia-chevron-btn > .mia-chevron { transform: rotate(90deg); }
.mia-label { flex: 1; }
.mia-badge {
        font-size: 10px;
        font-weight: 700;
        color: #b45309;
        background: #fff8dc;
        border-radius: 3px;
        padding: 1px 6px;
}
.mia-close {
        padding: 10px 14px;
        min-width: 44px;
        min-height: 44px;
        font-size: 14px;
        color: #8aa0b8;
        background: none;
        border: none;
        cursor: pointer;
        line-height: 1;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
}
.mia-close:hover { color: #e74c3c; }
.mia-children {
        display: none;
        flex-direction: column;
        background: #f8fafc;
        border-top: 1px solid var(--line);
}
.mia-group.is-open > .mia-children { display: flex; }
.mia-child { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.mia-child:last-child { border-bottom: none; }
.mia-child.is-active { background: #e8f0fe; }
.mia-child-btn {
        flex: 1;
        padding: 9px 16px 9px 32px;
        font-size: 12px;
        color: #1a3550;
        background: none;
        border: none;
        text-align: left;
        cursor: pointer;
}
.mia-child.is-active .mia-child-btn { color: #1f5fbf; font-weight: 600; }
.mia-child-btn:hover { color: #1f5fbf; }
.mia-empty { padding: 8px 32px; font-size: 11px; color: #8aa0b8; font-style: italic; }

/* ── Tablet (≤900px) ─────────────────────────────────────────── */
@media (max-width: 900px) {
	/* Topnav: show both toggle buttons, hide nav items */
	#sidebar-toggle { display: flex; }
	#mobile-menu-toggle { display: flex; }
	#mobile-menu-dropdown.open { display: flex; }

	.topnav .header-nav-item {
		display: none;
	}

	.topnav .navbar {
		gap: 10px;
	}

	/* Hide horizontal tab rows — replaced by accordion in sidebar */
	.tabs-row { display: none !important; }

	/* Show mobile accordion sections */
	.mobile-tab-tree { display: block !important; }
	.mobile-inline-acc { display: flex !important; }
        .mobile-context-bar { display: flex !important; }
	/* App shell: full width, no sidebar column */
	.app-shell {
		grid-template-columns: 1fr !important;
	}

	/* Sidebar: off-canvas, slides in from left */
	.sidebar {
		position: fixed !important;
		top: 50px;
		left: 0;
		width: 280px;
		height: calc(100vh - 50px);
		z-index: 200;
		transform: translateX(-100%);
		transition: transform 0.28s cubic-bezier(0.16,1,0.3,1);
		box-shadow: 4px 0 20px rgba(0,0,0,0.18);
	}
	.sidebar.open {
		transform: translateX(0);
	}

	/* Workspace takes full width */
	.workspace {
		width: 100%;
		min-width: 0;
	}

	/* Workspace-header: no longer needs offset for sidebar */
	.workspace-header {
		top: 50px;
	}

	/* Schedule layout collapses */
	.schedule-layout {
		grid-template-columns: 1fr !important;
	}

	/* Pipeline workspace */
	.pipeline-workspace {
		grid-template-columns: 1fr 1fr !important;
	}

        /* Menu-strip hamburger (secondary nav) */
        .menu-strip {
                flex-direction: column !important;
                position: relative !important;
                height: auto !important;
                overflow: visible !important;
                padding: 0 !important;
                gap: 0 !important;
                align-items: stretch !important;
        }
        .menu-strip > span { display: none; }
        .menu-strip-toggle { display: flex !important; }
        .menu-strip > .menu-link {
                display: none;
        }
        .menu-strip.open > .menu-link {
                display: flex !important;
                justify-content: flex-start;
                padding: 10px 16px;
                border-top: 1px solid rgba(255,255,255,0.08);
                border-radius: 0;
                width: 100%;
        }

        /* ── Side-panel toggle (activity / tasks / notes / appointments) ── */
        .side-tab-btn { display: flex; }

        /* Activity page */
        .pact-body { grid-template-columns: 1fr !important; position: relative; overflow: visible !important; }
        .pact-section-list {
                position: absolute; left: 0; top: 0; bottom: 0;
                width: 210px; z-index: 20;
                transform: translateX(-211px);
                transition: transform .2s ease;
        }
        .pact-wrap.side-open .pact-section-list { transform: translateX(0); box-shadow: 3px 0 16px rgba(0,0,0,.12); }
        .pact-wrap.side-open .side-tab-btn { left: 210px; }
        .pact-detail-col { overflow-x: hidden; }

        /* Tasks page — conveyor belt is default, CRM tasks behind side-tab */
        .pctasks-grid { grid-template-columns: 1fr !important; position: relative; overflow: visible !important; }
        .pctasks-crm-col {
                position: absolute; left: 0; top: 0; bottom: 0;
                width: 260px; z-index: 20; background: #fafcff;
                transform: translateX(-261px);
                transition: transform .2s ease;
        }
        .pctasks-grid.side-open .pctasks-crm-col { transform: translateX(0); box-shadow: 3px 0 16px rgba(0,0,0,.12); }
        .pctasks-grid.side-open .side-tab-btn { left: 260px; }

        /* Notes page */
        .pnotes-grid { grid-template-columns: 1fr !important; position: relative; overflow: visible !important; }
        .pnotes-compose-col {
                position: absolute; left: 0; top: 0; bottom: 0;
                width: 260px; z-index: 20;
                transform: translateX(-261px);
                transition: transform .2s ease;
        }
        .pnotes-grid.side-open .pnotes-compose-col { transform: translateX(0); box-shadow: 3px 0 16px rgba(0,0,0,.12); }
        .pnotes-grid.side-open .side-tab-btn { left: 260px; }

        /* Appointments page — stack vertically, no side-tab */
        .appt-two-col { grid-template-columns: 1fr !important; gap: 12px !important; }
        .appt-two-col > .appt-cal-col { overflow-x: auto; }
        .appt-kpi-bar { display: none !important; }
        /* Calendar view: hide list, full-screen calendar */
        .appt-mode-cal .appt-list-col { display: none !important; }
        .appt-mode-cal .appt-cal-col { grid-column: 1 / -1 !important; }
        /* Uniform day cell height — appointments become dots */
        .appt-month-grid .cal-day-cell { min-height: 0 !important; height: 52px; overflow: hidden; }
        .cal-appt-chip { font-size: 0 !important; width: 8px; height: 8px; border-radius: 50% !important; border-left: none !important; padding: 0 !important; margin: 1px 2px !important; display: inline-block !important; }
        .appt-month-grid .cal-day-cell > div:first-child { font-size: 11px !important; margin-bottom: 2px !important; }
        .appt-mobile-view-toggle { display: flex !important; }

        /* Conversations page */
        .conv-grid { grid-template-columns: 1fr !important; position: relative; overflow: visible !important; }
        .conv-grid > div:first-of-type {
                position: absolute; left: 0; top: 0; bottom: 0;
                width: 160px; z-index: 20; background: #fafcff;
                transform: translateX(-161px);
                transition: transform .2s ease;
                border-right: 1px solid #d3e0ec;
        }
        .conv-grid.side-open > div:first-of-type { transform: translateX(0); box-shadow: 3px 0 16px rgba(0,0,0,.12); }
        .conv-grid.side-open .side-tab-btn { left: 160px; }

}

/* ── Mobile (≤640px) ─────────────────────────────────────────── */
@media (max-width: 640px) {
	/* Topnav logo shorter */
	.topnav .logo {
		font-size: 15px;
	}

	/* Toolbar: stack search above actions */
	.toolbar {
		grid-template-columns: 1fr !important;
		margin: 8px 10px !important;
		gap: 6px !important;
	}
	.toolbar-actions {
		justify-content: flex-start !important;
		flex-wrap: wrap;
	}

	/* Shrink action buttons */
	.toolbar-actions .button {
		font-size: 11px;
		padding: 6px 8px;
	}

	/* Tab rows: horizontally scrollable, no wrap */
	.tabs {
		padding: 0 10px 4px;
	}

	/* Pipeline workspace: 1 col */
	.pipeline-workspace {
		grid-template-columns: 1fr !important;
	}

	/* KPI grid: 2 cols minimum */
	.kpis {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	/* Content padding */
	.content {
		padding: 8px !important;
	}

	/* Hide Save/Restore buttons — less critical on mobile */
	#save-workspace-btn,
	#restore-session-btn {
		display: none;
	}

	/* Tables: horizontally scrollable */
	.section > table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	/* Dashboard layout single col */
	.dashboard-layout {
		grid-template-columns: 1fr !important;
	}

	/* Graph grid single col */
	.graph-grid {
		grid-template-columns: 1fr !important;
	}
}
