/*
Arch UI Layout Styles
Updated: 08/05/2025
*/

.app-interface {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background-color: #595959;
}
@media screen and (width <= 850px) {
.app-interface {
	height: 100svh;
    min-height: 100svh;
}
}

.main-wrapper {
  display: flex;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.content-area {
    width: 100%;
    height: 100%;
    padding: 10px 15px;
    overflow-y: auto;
}

.main-content {
    display: grid;
}

/* SIDEBAR */
.sidebar {
    position: relative;
    width: 240px;
    background: #1c2833;
    /* flex-shrink: 0; */
    border-right: solid 1px #777;
    overflow: visible;
    scrollbar-width: none;
    transform: translateX(0);
    transition: transform 0.3s ease;
    transition: width 0.3s ease, transform 0.3s ease;
    z-index: 1001;
}

.sidebar.toggled {
	transform: translateX(-100%);
	box-shadow: none;
}

.sidebar.toggled + .content-area {
	margin-left: -240px;
}

.sidebar-inner {
	height: 100%;
	overflow-y: auto;
	scrollbar-width: none;
}

.sidebar-inner::-webkit-scrollbar {
	display: none;
}

.app-header {
    display: flex;
    gap: 5px;
    background-color: #1c2833;
    padding: 5px;
    align-items: center;
    color: #fff;
    padding-left: 30px;
    border-bottom: solid 1px #7e8489;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar nav ul li {
    position: relative;
}

/* Base menu link style */
.sidebar nav ul li > .menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #ecf0f1;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    transition: background 0.2s ease;
    white-space: nowrap;
	overflow: hidden;
}

.sidebar nav ul li .menu-link svg{
    width: 30px;
    height: auto;
    flex-shrink: 0;
	text-align: center;
}

/* Arrow inside menu links */
.sidebar nav ul li > .menu-link .arrow {
    float: right;
    transition: transform 0.3s;
}

/* Indentation and styling by depth */
.sidebar nav ul li.depth-1 > .menu-link, .flyout-panel li.depth-1 > .menu-link {
    padding-left: 40px;
    background: #3b4a5a;
    font-size: 0.95rem;
}

.sidebar nav ul li.depth-2 > .menu-link, .flyout-panel li.depth-2 > .menu-link {
    padding-left: 60px;
    background: #2c3e50;
    font-size: 0.9rem;
}

.sidebar nav ul li.depth-3 > .menu-link, .flyout-panel li.depth-3 > .menu-link {
    padding-left: 80px;
    background: #22303e;
    font-size: 0.85rem;
}

/* Hover styles */
.sidebar nav ul li > .menu-link:hover,.flyout-panel li > .menu-link:hover  {
    background: #2c3e50;
}

.sidebar nav ul li.depth-1 > .menu-link:hover, .flyout-panel li.depth-1 > .menu-link:hover {
    background: #2c3e50;
}

.sidebar nav ul li.depth-2 > .menu-link:hover, .flyout-panel li.depth-2 > .menu-link:hover {
    background: #1c2833;
}

.sidebar nav ul li.depth-3 > .menu-link:hover, .flyout-panel li.depth-3 > .menu-link:hover {
    background: #1c2833;
}

/* Active link style */
.sidebar .menu-link.active,
.sidebar nav ul li ul.submenu li > .menu-link.active,
.flyout-panel .menu-link.active {
    font-weight: bold;
    color: #66c000;
}

.sidebar .menu-link.active svg {
	fill: #66c000;
}

/* Submenu container */
.sidebar nav ul li.has-children > ul.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* Open submenu */
.sidebar li.has-children.open > ul.submenu {
    max-height: 500px;
}

.flyout-panel li.has-children.open > ul.submenu {
    max-height: 500px;
}

/* Arrow rotation when open */
.sidebar nav ul li.has-children.open > .menu-link .arrow {
    transform: rotate(180deg);
}

.menu-text-wrapper {
    display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 6px;
	opacity: 1;
	transition: opacity 1s ease, transform 0.2s ease;
}
.sidebar.expanded .menu-text-wrapper {
    display: flex;
	align-items: center;
	gap: 6px;
	opacity: 0;
}
.sidebar.expanded .menu-text-wrapper.fade-in {
	opacity: 1;
}
.sidebar.collapsed {
	width: 60px;
}

.sidebar.collapsed .menu-text-wrapper {
    display: flex;
	align-items: center;
	gap: 6px;
	opacity: 0;
}

.sidebar.collapsed .menu-link {
	padding: 12px;
	text-align: center;
}

.sidebar.collapsed .menu-icon {
	display: block;
	margin: 0 auto;
}

/* Optional tooltip-style hover labels */
.sidebar.collapsed .menu-link::after {
	content: attr(data-label);
	position: absolute;
	left: 100%;
	top: 50%;
	transform: translateY(-50%);
	background: #222;
	color: #fff;
	padding: 4px 8px;
	border-radius: 4px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
	margin-left: 6px;
	font-size: 0.9rem;
	z-index: 9999;
}

.sidebar.collapsed .menu-link:hover::after {
	opacity: 1;
}

.icon svg {
    transition: transform 0.3s ease;
    transform-origin: center;
}

.icon svg.rotate {
    transform: rotate(180deg);
}

.sidebar.collapsed .menu-label {
	opacity: 0;
	pointer-events: none;
}

.flyout-panel {
	position: absolute;
	top: 0;
	left: 60px; /* default beside collapsed sidebar */
	min-width: 200px;
	background: #1c2833;
	border: 1px solid #444;
	box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
	z-index: 2000;
	display: none;
	overflow: hidden;
	animation: fadeIn 0.2s ease;
}

.flyout-panel.visible {
	display: block;
}

.flyout-panel ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.flyout-panel li > .menu-link {
	padding: 10px 16px;
	display: block;
	color: #fff;
	text-decoration: none;
	background: none;
	font-size: 0.95rem;
}

.flyout-panel li.has-children > ul.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    background-color: #fff;
    transition: max-height 0.3s ease;
}

.flyout-panel li.has-children.open > ul.submenu {
    max-height: 500px;
}

.flyout-panel li > .menu-link:hover {
	background-color: #2c3e50;
}

/* Indentation and styling by depth */
.flyout-panel li.depth-1 > .menu-link {
    padding-left: 10px;
    background: #3b4a5a;
}

.flyout-panel li.depth-2 > .menu-link {
    padding-left: 30px;
    background: #2c3e50;
}

.flyout-panel li.depth-3 > .menu-link {
    padding-left: 50px;
    background: #22303e;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateX(-4px); }
	to { opacity: 1; transform: translateX(0); }
}

footer {
    display: flex;
    justify-content: flex-end;
	font-size: 0.85em;
	padding: 3px;
}

/*=============== table style listing (dark mode) ================*/
/*=============== container ===============*/
.at-list {
	container-type: inline-size;
	--card-gap: 10px;
}

.at-list__inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	background: #3b4a5a;
	box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.clickable-cell {
    font-weight: bold;
    color: #66c000;
	cursor: pointer;
}

#table-layout {
    display: flex;
    flex-direction: column;
    gap: 0.7em;
}

/*=============== desktop header row ===============*/
.at-list-header {
	display: grid;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: #1c2833;
	color: #ccc;
	font-weight: 600;
	font-size: 14px;
	border-bottom: 1px solid #313131;
}
.at-list-header .at-col { padding: 0 4px; }

/*=============== row in desktop/table mode ===============*/
.at-card {
	display: grid;
	grid-auto-flow: column dense;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	color: #e0e0e0;
	border-bottom: 1px solid #313131;
}

.at-col {
    overflow: hidden;
	overflow-wrap: break-word;
}

/* place header/body/footer into tracks */
.at-card-header { display: contents; }
.at-card-body   { display: contents; }
.at-card-footer { display: inline-flex; gap: 8px; }

/* kv bits – desktop: no labels, inline layout */
.kv {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	overflow: hidden;
}
.kv .label {
	display: none;
}

/* avatars, pills, dots */
.avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid #444;
}
.badge {
    display: block;
    background: #22303e;
    color: #eee;
    border-radius: 10px;
    padding: 4px 8px;
    font-weight: bold;
    font-size: 16px;
}
.badge.red {
	color: #e14848;
}
.badge.green {
	color: #369f36;
}
.badge.yellow {
	color: #b5b526;
}
.badge.blue {
	color: #5a5af3;
}
.dot {
	width:8px;
	height:8px;
	border-radius:50%;
	display:inline-block;
}
.dot.green {
	background:#369f36;
}
.dot.red {
	background:#e14848;
}
.dot.yellow {
	background:#b5b526;
}
.dot.blue {
	background:#5a5af3;
}
.at-pagination {
    display: flex;
    gap: 20px;
    padding: 10px 10px;
}

.at-page-of {
    white-space: nowrap;
}

/*=============== mobile tablet screen ===============*/
@container (max-width: 1000px) {
	.at-list__inner {
		background: none;
		box-shadow: none;
		gap: var(--card-gap);
		border-radius: 0;
		overflow: visible;
	}

	.at-list-header { display: none; }

	.at-card {
		display: block;
		padding: 0;
		border: 1px solid #313131;
		border-radius: 6px;
		background: #3b4a5a;
	}

	.at-card-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		background: rgba(0,0,0,0.12);
		padding: 12px 16px;
	}

	.at-card-body {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		padding: 4px 0;
		width: 100%;
	}

	.at-card-body > *:last-child:nth-child(odd) {
		grid-column: span 2;
	}

	.at-card-body .kv:not(:nth-child(-n+2)) {
		border-top: 1px solid #313131;
	}

	.kv {
		display: grid;
		grid-template-columns: auto 1fr;
		align-items: center;
		column-gap: 12px;
		padding: 10px 16px;
	}

	.kv .label {
		display: block;
		font-size: 12px;
		color: #aeb6bf;
	}

	.kv .value {
		justify-self: end;
		text-align: right;
	}

	/* footer */
	.at-card-footer {
		display: flex;
		justify-content: center;
		width: 100%;
		padding: 12px 16px 14px;
		background: rgba(0,0,0,0.12);
	}
}

/*=============== Mobile small screen ===============*/
@container (max-width: 520px) {
	.at-card-body {
		display: flex;
		flex-direction: column;
		gap: 0px;
	}

	.at-card-body .kv:not(:first-child) {
		border-top: 1px solid #313131;
	}
}

/*=============================== end of table/list layout =================================*/

@media (max-width: 568px) {
    .main-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        position: fixed;
    	top: 0;
    	left: 0;
    	height: 100svh;
    	box-shadow: none;
    	transform: translateX(-100%);
    	transition: transform 0.3s ease;
    	z-index: 1000;
    }
    
    .sidebar.toggled {
    	transform: translateX(0);
    	box-shadow: 2px 0 10px rgba(0,0,0,0.4);
    }
    
    .sidebar.toggled + .content-area {
    	margin-left: 0px;
    }
    
    .sidebar-toggle-tab {
        position: absolute;
        top: 40%;
        left: 240px;
        width: 40px;
        height: 60px;
        background: #444;
        color: #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
        z-index: 1001;
        transition: background 0.2s;
    }
    
    .sidebar-toggle-tab:hover {
    	background: #333;
    }
    
    .sidebar nav ul li > a.menu-link {
        padding: 20px 20px;
        font-size: 1.2rem;
    }
    #sidebarCollapse {
        display: none;
    }
    
    .content {
        order: 1;
    }
    
    footer {
        text-align: center;
    }
}

@media (max-width: 480px) {
    
}

/*=============== dynamic grids and containers ================*/
/* Base wrapper */

.at-detail-view {
    display: grid;
    gap: 1rem;
}

.at-detail-group {
    display: grid;
    gap: 1rem;
}

.at-detail-group.cols-2 { grid-template-columns: 1fr 1fr; }
.at-detail-group.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.at-detail-group.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.at-detail-group.cols-1 { grid-template-columns: 1fr; }

/* Container styling */
.at-detail-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Style variants */
.at-detail-container.style-default { 
    background: #22303e;
	border-color: #686e75;
}
.at-detail-container.style-muted { 
    background: #22303e6e; 
    border-color: #686e75; 
}
.at-detail-container.style-card { 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

/* Optional header */
.at-detail-header {
    display: flex;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.25rem;
    height: 35px;
    justify-content: space-between;
}

.at-table-tools {
    display: flex;
    height: 100%;
    width: 100%;
    justify-content: flex-end;
    gap: 0.5rem;
}

.at-table-filters-tray {
	display: none;
	width: 100%;
	flex-direction: column;
    gap: 0.6em;
    margin-top: 10px;
}

.tool-button {
	height: 100%;
    cursor: pointer;
}

.tool-button svg {
	height: 100%;
    display: block;
    fill: #fff;
}

.at-inner-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ====================================== RESPONSIVE DETAIL GRID VIEW ========================== */
.grid-layout {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.7rem;
	align-items: stretch;
}

.grid-container {
	height: 100%;
}

.card-wrapper {
    padding:10px;
    background:#3b4a5a;
    border-radius:12px;
    box-sizing:border-box;
	height: 100%;
}

.span-two-cols {
	grid-column: span 2;
}


/* ============================= SCROLLING SECTION ============================ */
.sections {
    background:#8f8f8f;
    border-radius:12px;
    height:100%;
    display:flex;
    flex-direction:column;
	justify-content: space-between;
    box-sizing:border-box;
    overflow:hidden;
}

/* HEADER */

.section-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 18px;
    background:#1c2833;
    border-bottom:1px solid rgba(0,0,0,0.15);
}

.section-title {
    margin:0;
    font-size:16px;
    font-weight:600;
    color:#70d000;
}

.menu-toggle {
    font-size:18px;
    color:#ffffff;
    cursor:pointer;
    user-select:none;
}

/* CONTENT */

.section-content {
    flex:1;
    padding:0;
    overflow-y:auto;
	scrollbar-width: thin;
    font-size:14px;
    color:#2e3a44;
}

/* LIST ROWS */

.list-row {
    display:flex;
    justify-content:space-between;
    padding:12px 18px;
    border-bottom:1px solid rgba(0,0,0,0.08);
}

.list-row:last-child {
    border-bottom:none;
}

.list-meta {
    color:#5c6b76;
    font-size:12px;
}

/* FOOTER */

.section-footer {
    padding:10px 18px;
    background:#7f7f7f;
    border-top:1px solid rgba(0,0,0,0.15);
    font-size:12px;
    color:#1f2a33;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.view-link {
    cursor:pointer;
}

/* ============================= TEXT SCROLL COMPONENT ============================ */
.text-scroll {
	max-height:360px;
	overflow-y:auto;
	padding:20px;
	line-height:1.7;
	font-size:14px;
	color:#d5d8dc;
	scrollbar-width:thin;
}

/* ============================= SECTION TESTING ============================ */
.section-wrapper {
	padding:10px;
    background:#3b4a5a;
    border-radius:12px;
    box-sizing:border-box;
}

.basic-section {
	flex: 1 1;
    background:#8f8f8f;
    border-radius:12px;
	max-height: 450px;
	padding: 12px;
    display:flex;
    flex-direction:column;
    box-sizing:border-box;
	overflow-y:auto;
	scrollbar-width: thin;
}

.section-bar {
    padding:0;
	overflow: hidden;
}

.section-header-bar {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 15px;
    background:#1c2833;
    border-bottom:1px solid rgba(0,0,0,0.15);
}

.section-content-bar {
    flex:1;
    padding:18px;
    font-size:14px;
    line-height:1.5;
    color:#2e3a44;
	overflow-y: auto;
	scrollbar-width: thin;
}

.section-footer-bar {
    padding:10px 18px;
    background:#7f7f7f;
    border-top:1px solid rgba(0,0,0,0.15);
    font-size:12px;
    color:#1f2a33;
    display:flex;
    align-items:center;
}

.section-menu-items {
    display: flex;
	justify-content: flex-end;
    gap: 5px;
    height: 100%;
}

.section-menu-item {
	cursor:pointer;
	height: 100%;
}

.section-menu-item svg {
    height: 100%;
    fill: #66c000;
}

.section-title {
    margin:0;
    font-size:16px;
    font-weight:600;
    color:#ffffff;
}
/* ============================= PERMISSION GRID ============================ */
.permission-category {
    margin-bottom: 15px;
}
.permission-category .permission-category-header {
    font-weight: bold;
    border-bottom: 2px solid #FFF;
    margin-bottom: 10PX;
}
.permission-grid .permission-toggle {
    display: block;
}

/* ============================= CONTACT STATUSES ============================ */
.contact-status-Lead {
    border-radius: 5px;
    color: #333333;
    font-weight: bold;
    padding: 3px 8px;
    width: fit-content;
    background-color: #66c000;
}

.contact-status-Favorite {
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
    padding: 3px 8px;
    width: fit-content;
    background-color: #8400ad;
}

.activity-log-content {
	flex:1;
    padding:0;
    overflow-y:auto;
    font-size:14px;
    color:#2e3a44;
	background:#8f8f8f;
	scrollbar-width: thin;
}

.activity-log {
	display: flex;
	flex-direction: column;
}

.activity-item {
	display:flex;
    padding:12px 18px;
    border-bottom:1px solid rgba(0,0,0,0.08);
}

.activity-item:last-child {
	border-bottom:none;
}

.activity-content {
	flex: 1;
}

.activity-content svg {
	height: 24px;
}

.load-more {
	justify-content: center;
    cursor: pointer;
}

.load-more:hover {
    background: #444;
	color: #c5c5c5;
}

/* Stack on small screens */

@media (max-width: 1324px) {
	.at-detail-group.cols-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
	.at-detail-group.cols-3 { grid-template-columns: 1fr; }
	.section-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 740px) {
    .at-detail-group[class*="cols-"] { grid-template-columns: 1fr; }
	.grid-layout { grid-template-columns: 1fr; }
	.span-two-cols { grid-column: auto; }
	.section-wrapper { grid-template-columns: 1fr; }
}

/* ============================= CONTACT DETAIL COMPONENTS ========================== */

.contact-hero-card { padding: 20px; }

.contact-hero {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.contact-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #1c2833;
	border: 2px solid #66c000;
	color: #66c000;
	font-size: 28px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	letter-spacing: 1px;
}

.contact-hero-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.contact-hero-name {
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
}

.contact-hero-company {
	font-size: 14px;
	color: #aeb6bf;
}

.contact-hero-status { margin-top: 2px; }

.contact-hero-timestamps {
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: flex-end;
	font-size: 12px;
	color: #aeb6bf;
}

.contact-hero-ts { display: flex; gap: 6px; }
.ts-label { opacity: 0.7; }
.ts-value { color: #e0e0e0; }

/* Detail field rows */
.detail-fields {
	display: flex;
	flex-direction: column;
}

.detail-field {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid rgba(255,255,255,0.06);
}

.detail-field:last-child { border-bottom: none; }

.detail-icon {
	display: flex;
	width: 20px;
	flex-shrink: 0;
	margin-top: 2px;
	opacity: 0.6;
}

.detail-icon svg {
	width: 18px;
	height: 18px;
	fill: #aeb6bf;
}

.detail-field-content {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
}

.detail-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #1c2833;
}

.detail-value {
	font-size: 14px;
	color: #e0e0e0;
}

.detail-linked { color: #66c000; }

.detail-placeholder {
	font-style: italic;
	color: #5d6d7e;
	font-size: 13px;
}

/* ============================= DASHBOARD COMPONENTS ========================== */

/* Stats row */
.dash-stats-wrapper { padding: 10px; }

.dash-stats {
	display: flex;
	gap: 1rem;
}

.dash-stat-card {
	flex: 1;
	background: #1c2833;
	border: 1px solid #3b4a5a;
	border-radius: 10px;
	padding: 24px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.dash-stat-value {
	font-size: 42px;
	font-weight: 700;
	color: #66c000;
	line-height: 1;
}

.dash-stat-label {
	font-size: 13px;
	color: #aeb6bf;
	text-align: center;
}

/* Recent contacts list */
.dash-contact-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 18px;
	border-bottom: 1px solid rgba(0,0,0,0.08);
}

.dash-contact-row:last-child { border-bottom: none; }

.dash-contact-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #1c2833;
	border: 1px solid #66c000;
	color: #66c000;
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.dash-contact-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.dash-contact-name {
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dash-contact-company {
	font-size: 12px;
	color: #aeb6bf;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dash-contact-status { flex-shrink: 0; }

.dash-contact-ts {
	font-size: 12px;
	color: #7f8c8d;
	white-space: nowrap;
	flex-shrink: 0;
}

.dash-contact-empty {
	padding: 24px 18px;
	color: #7f8c8d;
	font-style: italic;
	font-size: 14px;
}

@media (max-width: 600px) {
	.dash-stats { flex-direction: column; }
	.dash-contact-ts { display: none; }
}

/* ========================= FULLWIDTH SHELL (no sidebar) ===================== */

.main-wrapper-fullwidth {
	display: flex;
	flex: 1;
	height: 100%;
	max-height: 100%;
	overflow: hidden;
}

.main-wrapper-fullwidth .content-area {
	padding: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.editor-root {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	min-height: 0;
}

/* ========================= STRUCTURE UTILITIES ===================== */
.flex-row   { display: flex; flex-direction: row; }
.flex-col   { display: flex; flex-direction: column; }
.flex-grid  { display: grid; }
.inline     { display: inline-flex; }
.wrap       { flex-wrap: wrap; }

.gap-xs { gap: 4px; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }

.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.align-start   { align-items: flex-start; }
.align-center  { align-items: center; }
.align-end     { align-items: flex-end; }
.justify-start   { justify-content: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }

.flex-1 { flex: 1; }
.w-full { width: 100%; }

.contents { display: contents }

/* ========================= ICON PREVIEW ============================= */
.icon-preview {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	fill: #66c000;
}

/* ========================= TEXT UTILITIES =========================== */
.text-success { color: #369f36; }
.text-danger  { color: #e14848; }
.text-warning { color: #b5b526; }
.text-muted   { color: #646970; }