/**
 * Flavor Rush design system
 *
 * Minimal recreation of the W3CRM (Dexignzone) admin look:
 * light sidebar, dark charcoal header, blue (#0D99FF) primary accent, Poppins font.
 *
 * Single self-contained stylesheet - no frameworks, no icon fonts.
 * Icons are inline SVGs in the view elements.
 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* =====================================================
   1. Design tokens
   ===================================================== */
:root {
	--primary: #0D99FF;
	--primary-hover: #007ED9;
	--primary-soft: rgba(13, 153, 255, 0.1);
	--primary-softer: rgba(13, 153, 255, 0.05);
	--secondary: #2C2C2C;
	--title: #374557;
	--text: #888888;
	--muted: #A0A0A0;
	--border: #E6E6E6;
	--success: #3AC977;
	--info: #58BAD7;
	--warning: #FF9F00;
	--danger: #FF5E5E;
	--brand-red: #D32F2F;
	--nav-headbg: #FFFFFF;
	--sidebar-bg: #FFFFFF;
	--headerbg: #303030;
	--header-surface: #202020; /* darker surface used for the header's controls */
	--sidebar-width: 240px;
	--header-height: 50px;
	--radius: 6px;
	--font-family: 'Poppins', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* =====================================================
   2. Base
   ===================================================== */
html, body {
	height: 100%;
}

body {
	margin: 0;
	font-family: var(--font-family);
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--text);
	background: #F5F7FB;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--primary);
	text-decoration: none;
}

a:hover, a:focus {
	text-decoration: none;
	color: var(--primary-hover);
}

h1, h2, h3, h4, h5, h6 {
	color: var(--title);
	font-weight: 500;
	margin: 0 0 0.5rem 0;
	line-height: 1.2;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.938rem; }
h6 { font-size: 0.875rem; }

p {
	margin: 0 0 1rem 0;
}

ul, ol {
	margin: 0;
	padding: 0;
}

ul li {
	list-style: none;
}

img, svg {
	vertical-align: middle;
}

dl {
	margin: 0 0 1rem 0;
}

pre, code {
	font-family: Monaco, Consolas, 'Courier New', monospace;
}

pre {
	background: #f0f0f0;
	padding: 12px;
	border-radius: var(--radius);
	overflow: auto;
}

hr {
	border: 0;
	border-top: 1px solid var(--border);
	margin: 1rem 0;
}

/* =====================================================
   3. Layout shell
   ===================================================== */
#main-wrapper {
	min-height: 100%;
	position: relative;
}

/* ---- Top-left brand block (above sidebar) ---- */
.nav-header {
	position: fixed;
	top: 0;
	left: 0;
	width: var(--sidebar-width);
	height: var(--header-height);
	background: var(--nav-headbg);
	display: flex;
	align-items: center;
	border-bottom: 1px solid var(--border);
	z-index: 1040;
	transition: width 0.2s ease;
}

.brand-logo {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 3rem 0 1.1rem;
	color: #000;
	font-weight: 700;
	font-size: 1.125rem;
	white-space: nowrap;
	overflow: hidden;
}

.brand-logo:hover {
	color: #000;
}

.brand-logo .brand-title,
.brand-logo .brand-compact {
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.brand-logo .brand-compact {
	display: none;
}

.brand-logo .brand-name {
	color: #000;
}

.brand-logo .brand-rush {
	color: var(--brand-red);
}

/* ---- Hamburger toggle straddling the sidebar edge ---- */
.nav-control {
	cursor: pointer;
	position: absolute;
	top: 50%;
	right: -3rem;
	transform: translateY(-50%);
	width: 2.9rem;
	height: 2.9rem;
	border-radius: var(--radius);
	background: var(--header-surface);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1050;
}

.nav-control:hover {
	background: #333;
}

.hamburger {
	position: relative;
	display: block;
	width: 1.25rem;
	height: 1.25rem;
}

.hamburger .line {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: #fff;
	transition: all 0.3s ease-in-out;
}

.hamburger .line:nth-child(1) { top: 0; }
.hamburger .line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger .line:nth-child(3) { bottom: 0; }

.hamburger.is-active .line:nth-child(1) {
	top: 50%;
	transform: translateY(-50%) rotate(45deg);
}

.hamburger.is-active .line:nth-child(2) {
	opacity: 0;
}

.hamburger.is-active .line:nth-child(3) {
	bottom: auto;
	top: 50%;
	transform: translateY(-50%) rotate(-45deg);
}

/* ---- Left sidebar (metismenu) ---- */
.deznav {
	position: fixed;
	top: var(--header-height);
	left: 0;
	bottom: 0;
	width: var(--sidebar-width);
	background: var(--sidebar-bg);
	border-right: 1px solid var(--border);
	box-shadow: 0 15px 30px 0 rgba(0, 0, 0, 0.02);
	transition: transform 0.2s ease;
	z-index: 1030;
}

.deznav-scroll {
	height: 100%;
	overflow-y: auto;
	padding: 1rem 0;
	scrollbar-width: thin;
}

/* ---- Top header bar ---- */
.header {
	position: fixed;
	top: 0;
	left: var(--sidebar-width);
	right: 0;
	height: var(--header-height);
	background: var(--headerbg);
	border-bottom: 1px solid #232323;
	transition: left 0.2s ease;
	z-index: 1020;
}

.header-content {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 1.1rem 0 3.5rem;
	gap: 1rem;
}

/* ---- Main content column ---- */
.content-body {
	margin-left: var(--sidebar-width);
	padding-top: var(--header-height);
	transition: margin-left 0.2s ease;
	min-height: 100vh;
}

/* ---- Page titles bar (breadcrumb + actions) ---- */
.page-titles {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-flow: wrap;
	gap: 0.5rem;
	padding: 0.9rem 1.95rem;
	background: #fff;
	border-bottom: 1px solid var(--border);
	position: relative;
}

.page-titles h5, .page-titles .h5 {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 600;
}

.page-titles .page-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* Breadcrumb */
.breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	font-size: 13px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--text);
}

.page-titles .breadcrumb > li:first-child {
	margin-right: 0.6rem;
}

.page-titles .breadcrumb > li {
	margin: 0;
}

.breadcrumb-item + .breadcrumb-item {
	padding-left: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
	content: '/';
	padding-right: 0.5rem;
	color: var(--muted);
}

.breadcrumb-item a {
	color: var(--text);
}

.breadcrumb-item a:hover {
	color: var(--primary);
}

.breadcrumb-item.active {
	color: var(--secondary);
	font-weight: 500;
}

/* ---- Fluid container + simple 12-col grid ---- */
.container-fluid {
	padding: 1.5rem 1.95rem 2.5rem;
	overflow-x: auto;
}

.row {
	display: flex;
	flex-wrap: wrap;
	margin-right: -12.5px;
	margin-left: -12.5px;
}

.row > * {
	padding-right: 12.5px;
	padding-left: 12.5px;
	width: 100%;
}

.col-12 { width: 100%; }
.col-6  { width: 50%; }
.col-4  { width: 33.3333%; }
.col-3  { width: 25%; }
.col-2  { width: 16.6667%; }

@media (max-width: 991px) {
	.col-md-12, .col-md-6, .col-md-4, .col-md-3 { width: 100%; }
	.col-lg-12, .col-lg-6, .col-lg-4, .col-lg-3 { width: 100%; }
}

@media (min-width: 768px) {
	.col-md-12 { width: 100%; }
	.col-md-6  { width: 50%; }
	.col-md-4  { width: 33.3333%; }
	.col-md-3  { width: 25%; }
}

@media (min-width: 992px) {
	.col-lg-12 { width: 100%; }
	.col-lg-6  { width: 50%; }
	.col-lg-4  { width: 33.3333%; }
	.col-lg-3  { width: 25%; }
}

/* =====================================================
   4. Sidebar menu
   ===================================================== */
.metismenu {
	display: flex;
	flex-direction: column;
}

.metismenu li {
	position: relative;
}

.metismenu a {
	position: relative;
	display: block;
	padding: 0.625rem 1.875rem;
	color: #737B8B;
	text-decoration: none;
	font-size: 0.813rem;
	outline: none;
	transition: color 0.2s ease;
}

.metismenu a:hover,
.metismenu a:focus {
	color: var(--primary);
}

.metismenu > li > a {
	font-weight: 500;
	color: #2C2C2C;
}

.metismenu > li > a .menu-icon {
	display: inline-block;
	vertical-align: middle;
	margin-right: 0.65rem;
}

.metismenu > li > a .menu-icon svg {
	display: block;
	width: 20px;
	height: 20px;
}

.metismenu > li > a .nav-text {
	vertical-align: middle;
}

.metismenu > li:hover > a,
.metismenu > li.mm-active > a,
.metismenu > li.active > a {
	color: var(--primary);
}

.metismenu > li.mm-active > a,
.metismenu > li.active > a {
	background: var(--primary-softer);
	font-weight: 500;
}

.metismenu > li:hover > a .menu-icon svg path,
.metismenu > li:hover > a .menu-icon svg circle,
.metismenu > li:hover > a .menu-icon svg rect,
.metismenu > li.mm-active > a .menu-icon svg path,
.metismenu > li.mm-active > a .menu-icon svg circle,
.metismenu > li.mm-active > a .menu-icon svg rect,
.metismenu > li.active > a .menu-icon svg path,
.metismenu > li.active > a .menu-icon svg circle,
.metismenu > li.active > a .menu-icon svg rect {
	stroke: var(--primary);
}

/* Sidebar logout link */
.metismenu a.menu-logout {
	color: var(--danger);
}

.metismenu a.menu-logout .menu-icon svg path,
.metismenu a.menu-logout .menu-icon svg circle {
	stroke: var(--danger);
}

/* Section label */
.metismenu .menu-title {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.75rem 0 0.5rem 20.6px;
	color: var(--primary);
}

.metismenu .menu-title:not(:first-child) {
	margin-top: 10px;
}

/* Sub menus */
.metismenu li ul {
	display: none;
	padding: 0.25rem 0 0.5rem;
}

.metismenu li.mm-active > ul {
	display: block;
}

.metismenu li ul a {
	padding-top: 0.45rem;
	padding-bottom: 0.45rem;
	padding-left: 2.6rem;
	font-size: 0.813rem;
}

/* has-arrow caret */
.metismenu .has-arrow::after {
	content: '';
	position: absolute;
	right: 15px;
	top: 44%;
	border-top: 5px solid #C8C8C8;
	border-left: 5px solid #C8C8C8;
	border-bottom: 5px solid transparent;
	border-right: 5px solid transparent;
	transform: rotate(-225deg) translateY(-50%);
	transition: transform 0.2s ease;
}

.metismenu .has-arrow[aria-expanded='true']::after,
.metismenu li.mm-active > .has-arrow::after {
	transform: rotate(-135deg) translateY(-50%);
}

/* =====================================================
   5. Header content
   ===================================================== */
.header-left {
	height: 100%;
	display: flex;
	align-items: center;
	min-width: 0;
}

.search-area {
	display: flex;
	align-items: center;
	width: 180px;
	max-width: 100%;
	background: var(--header-surface);
	border-radius: var(--radius);
	height: 34px;
	padding: 0 10px;
}

.search-area svg {
	flex: 0 0 auto;
}

.search-area svg path,
.search-area svg circle {
	stroke: #fff;
}

/* Higher specificity so this wins over the global input[type='text'] rule */
.header-left .search-area input {
	display: block;
	border: 0;
	background: transparent;
	outline: none;
	padding: 0;
	margin-left: 8px;
	font-family: var(--font-family);
	font-size: 0.813rem;
	line-height: 1.5;
	color: #fff;
	width: 100%;
}

.header-left .search-area input::placeholder {
	color: #888;
}

.header-left .search-area input:focus {
	box-shadow: none;
}

@media (max-width: 767px) {
	.search-area {
		display: none;
	}
}

.header-right {
	display: flex;
	align-items: center;
	height: 100%;
}

.header-right .nav-item {
	display: flex;
	align-items: center;
	position: relative;
}

.header-right .nav-link {
	display: flex;
	align-items: center;
	gap: 7px;
	color: #fff;
	font-size: 0.813rem;
	padding: 0.5rem 0.75rem;
	border-radius: var(--radius);
	text-decoration: none;
	line-height: 1;
}

.header-right .nav-link:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.header-right .nav-link svg {
	width: 20px;
	height: 20px;
}

.header-right .nav-link svg path,
.header-right .nav-link svg circle,
.header-right .nav-link svg rect {
	stroke: #fff;
}

.header-right .nav-link:hover svg path,
.header-right .nav-link:hover svg circle,
.header-right .nav-link:hover svg rect {
	stroke: #fff;
}

/* Profile block */
.header-profile .profile-avatar {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.813rem;
	font-weight: 600;
}

.header-profile .header-info {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.header-profile .header-info h6 {
	margin: 0;
	font-size: 0.813rem;
	font-weight: 600;
	color: #fff;
}

.header-profile .header-info p {
	margin: 0;
	font-size: 0.688rem;
	color: #E1E1E1;
}

.header-profile .caret {
	width: 0;
	height: 0;
	border-top: 5px solid #fff;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	margin-left: 4px;
	transition: transform 0.2s ease;
}

@media (max-width: 575px) {
	.header-profile .header-info {
		display: none;
	}
}

/* Profile dropdown */
.profile-menu {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	width: 215px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
	z-index: 1060;
	padding: 0.5rem 0;
}

.profile-menu.show {
	display: block;
}

.profile-menu a {
	display: block;
	padding: 0.5rem 1.25rem;
	font-size: 0.813rem;
	color: var(--text);
	text-decoration: none;
}

.profile-menu a:hover {
	background: var(--primary-soft);
	color: var(--title);
}

.profile-menu a.logout {
	color: var(--danger);
}

.profile-menu a.logout:hover {
	background: rgba(255, 94, 94, 0.08);
	color: var(--danger);
}

.profile-menu .profile-head {
	padding: 0.4rem 1.25rem 0.6rem;
	border-bottom: 1px solid var(--border);
	margin-bottom: 0.35rem;
}

.profile-menu .profile-head h6 {
	margin: 0 0 2px;
	font-size: 0.875rem;
}

.profile-menu .profile-head p {
	margin: 0;
	font-size: 0.75rem;
	color: var(--muted);
	word-break: break-all;
}

/* =====================================================
   6. Cards
   ===================================================== */
.card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	margin-bottom: 1.563rem;
	position: relative;
}

.card-body {
	padding: 1.25rem;
}

.card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-flow: wrap;
	gap: 0.5rem;
	padding: 1.1rem 1.25rem 0.9rem;
	border-bottom: 1px solid var(--border);
	background: transparent;
}

.card-header .card-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--title);
}

.card-footer {
	padding: 0.9rem 1.25rem;
	border-top: 1px solid var(--border);
	background: transparent;
}

/* Table caption bar used inside cards */
.tbl-caption {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-flow: wrap;
	gap: 0.5rem;
	padding: 1.25rem 1.25rem 1rem;
}

.tbl-caption .heading {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
}

/* =====================================================
   7. Buttons
   ===================================================== */
.btn,
input[type='submit'] {
	display: inline-block;
	font-family: var(--font-family);
	font-size: 0.813rem;
	font-weight: 500;
	line-height: 1.5;
	padding: 0.5rem 1.25rem;
	border: 1px solid transparent;
	border-radius: var(--radius);
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	vertical-align: middle;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}

.btn:hover, .btn:focus,
input[type='submit']:hover,
input[type='submit']:focus {
	text-decoration: none;
}

/* Bare submit buttons (scaffold forms) use the primary style */
input[type='submit'] {
	background: var(--primary);
	border-color: var(--primary);
	color: #000;
}

input[type='submit']:hover,
input[type='submit']:focus {
	background: #31A8FF;
	border-color: #25A3FF;
	color: #000;
}

.btn-primary {
	background: var(--primary);
	border-color: var(--primary);
	color: #000;
}

.btn-primary:hover, .btn-primary:focus {
	background: #31A8FF;
	border-color: #25A3FF;
	color: #000;
}

.btn-secondary {
	background: var(--secondary);
	border-color: var(--secondary);
	color: #fff;
}

.btn-secondary:hover, .btn-secondary:focus {
	background: #444;
	border-color: #444;
	color: #fff;
}

.btn-success {
	background: var(--success);
	border-color: var(--success);
	color: #000;
}

.btn-danger {
	background: var(--danger);
	border-color: var(--danger);
	color: #fff;
}

.btn-outline-primary {
	background: transparent;
	border-color: var(--primary);
	color: var(--primary);
}

.btn-outline-primary:hover {
	background: var(--primary);
	color: #000;
}

.btn-sm {
	padding: 0.3rem 0.85rem;
	font-size: 0.75rem;
}

.btn-xs {
	padding: 0.15rem 0.6rem;
	font-size: 0.75rem;
	border-radius: 4px;
}

.btn:disabled,
input[type='submit']:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Row action links (CakePHP scaffold index tables) */
td.actions {
	text-align: center;
	white-space: nowrap;
}

td.actions a {
	margin: 0 4px;
	padding: 0.2rem 0.7rem;
	font-size: 0.75rem;
	border-radius: 4px;
	background: #f0f0f0;
	color: #333;
	text-decoration: none;
	display: inline-block;
}

td.actions a:hover {
	background: var(--primary-soft);
	color: var(--primary);
}

/* CakePHP side action column */
div.actions {
	float: left;
	width: 16%;
	padding: 0 1.5%;
}

div.actions h3 {
	color: var(--title);
	font-size: 1rem;
	font-weight: 600;
}

div.actions ul {
	list-style: none;
	padding: 0;
}

div.actions ul li {
	margin: 0 0 0.5rem 0;
}

div.actions ul li a {
	display: inline-block;
	padding: 0.35rem 0.9rem;
	font-size: 0.813rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--title);
	background: #fff;
	text-decoration: none;
}

div.actions ul li a:hover {
	border-color: var(--primary);
	color: var(--primary);
	background: var(--primary-softer);
}

/* =====================================================
   8. Badges
   ===================================================== */
.badge {
	display: inline-block;
	line-height: 1.5;
	border-radius: 0.25rem;
	font-size: 12px;
	font-weight: 500;
	padding: 3px 10px;
	border: 1px solid transparent;
}

.badge-success {
	background: #daf5e6;
	border-color: #b2eaca;
	color: #1f9e58;
}

.badge-info {
	background: #d3edf5;
	border-color: #d3edf5;
	color: #2f8fb0;
}

.badge-warning {
	background: #ffeccc;
	border-color: #fff;
	color: #cc7f00;
}

.badge-danger {
	background: #ffdede;
	border-color: #fff;
	color: #d94040;
}

.badge-secondary {
	background: #c5c5c5;
	border-color: #acacac;
	color: #2C2C2C;
}

.badge-primary {
	background: #e8f5ff;
	border-color: #a6d9ff;
	color: #0567b8;
}

.badge-dark {
	background: #eeeeee;
	border-color: #bbbbbb;
	color: #6e6e6e;
}

/* =====================================================
   9. Forms
   ===================================================== */
form {
	margin: 0;
}

fieldset {
	border: none;
	margin: 0 0 1rem 0;
	padding: 0;
}

fieldset legend {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--title);
	padding-bottom: 0.6rem;
	margin-bottom: 0.8rem;
	border-bottom: 1px solid var(--border);
	width: 100%;
}

form .input {
	margin-bottom: 1rem;
	color: #555;
}

form .input label {
	display: block;
	font-weight: 500;
	margin-bottom: 4px;
	color: var(--title);
	font-size: 0.813rem;
}

form .required label:after {
	color: var(--danger);
	content: ' *';
}

form .input p {
	margin: 4px 0 0;
	font-size: 0.75rem;
	color: var(--muted);
}

.input, .form-group, .checkbox, .radio, select {
	width: 100%;
	max-width: 100%;
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='number'],
input[type='tel'],
input[type='url'],
input[type='search'],
input[type='date'],
input[type='datetime-local'],
input[type='month'],
input[type='time'],
select,
textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 0.45rem 0.75rem;
	font-family: var(--font-family);
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--title);
	background: #fff;
	border: 1px solid #E6E6E6;
	border-radius: var(--radius);
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input[type='text']:focus,
input[type='email']:focus,
input[type='password']:focus,
input[type='number']:focus,
input[type='tel']:focus,
input[type='url']:focus,
input[type='search']:focus,
input[type='date']:focus,
input[type='datetime-local']:focus,
input[type='month']:focus,
input[type='time']:focus,
select:focus,
textarea:focus {
	outline: 0;
	border-color: #86ccff;
	box-shadow: 0 0 0 3px rgba(13, 153, 255, 0.2);
}

textarea {
	resize: vertical;
	min-height: 90px;
}

select[multiple] {
	height: auto;
}

/* checkboxes / radios */
input[type='checkbox'],
input[type='radio'] {
	width: auto;
	display: inline-block;
	margin: 0 6px 0 0;
	vertical-align: -2px;
}

.checkbox label,
.radio label {
	display: inline;
	font-weight: 400;
}

.radio label {
	margin-right: 1rem;
}

form .submit {
	margin-top: 1rem;
}

/* Form errors (CakePHP) */
form .error,
form .error-message,
.error-message {
	color: #c9302c;
	font-size: 0.813rem;
	font-weight: 500;
	margin-top: 4px;
	background: #ffdfdf;
	border: 1px solid #ffbfbf;
	border-radius: 4px;
	padding: 6px 10px;
}

form .error-message {
	background: none;
	border: none;
	padding: 0;
}

input.input-error,
textarea.input-error,
select.input-error {
	border-color: var(--danger);
}

/* =====================================================
   10. Tables
   ===================================================== */
.table-responsive {
	overflow-x: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1rem;
	color: var(--text);
}

table th {
	text-align: left;
	font-size: 0.813rem;
	font-weight: 600;
	color: var(--title);
	padding: 0.75rem 0.5rem;
	border-bottom: 1px solid var(--border);
	white-space: nowrap;
}

table td {
	padding: 0.75rem 0.5rem;
	vertical-align: middle;
	border-bottom: 1px solid #f0f0f0;
	font-size: 0.813rem;
}

table tbody tr:hover {
	background: var(--primary-softer);
}

th a {
	display: block;
	color: inherit;
	text-decoration: none;
}

th a:hover {
	color: var(--primary);
}

th a.asc:after {
	content: ' \2193';
}

th a.desc:after {
	content: ' \2191';
}

/* CakePHP paging */
.paging {
	margin: 1rem 0;
	font-size: 0.813rem;
}

.paging .current,
.paging .disabled,
.paging a {
	display: inline-block;
	padding: 5px 12px;
	margin: 0 2px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	text-decoration: none;
	color: var(--title);
	background: #fff;
}

.paging a:hover {
	border-color: var(--primary);
	color: var(--primary);
}

.paging .current {
	background: var(--primary);
	border-color: var(--primary);
	color: #000;
	font-weight: 500;
}

.paging .disabled {
	color: var(--muted);
	background: transparent;
}

/* =====================================================
   11. Flash messages / notices
   ===================================================== */
.message,
.success,
.notice,
p.error,
.error-message,
.cake-error {
	padding: 0.75rem 1rem;
	margin: 0 0 1rem;
	border-radius: var(--radius);
	font-size: 0.875rem;
	border: 1px solid transparent;
	background: #cfebff;
	border-color: #9ed6ff;
	color: #053d66;
}

.message,
p.error,
.error-message,
.cake-error {
	background: #ffdfdf;
	border-color: #ffbfbf;
	color: #662626;
}

.success {
	background: #d8f4e4;
	border-color: #b0e9c9;
	color: #175030;
}

.notice {
	background: #ffeccc;
	border-color: #ffd999;
	color: #664000;
}

.cake-debug, .cake-debug-output {
	color: #000;
	background: #f0f0f0;
	padding: 12px;
	border-radius: var(--radius);
	margin-bottom: 1rem;
}

/* =====================================================
   12. View / detail pages (dl layout)
   ===================================================== */
div.view dl {
	line-height: 1.9;
	margin-bottom: 1rem;
}

div.view dt {
	font-weight: 600;
	color: var(--title);
	float: left;
	clear: left;
	width: 160px;
	padding: 6px 8px;
}

div.view dd {
	margin-left: 180px;
	padding: 6px 8px;
}

div.view dl dd:nth-child(4n+2),
div.view dl dt:nth-child(4n+1) {
	background: #f7f9fc;
}

/* =====================================================
   13. Footer
   ===================================================== */
.app-footer {
	padding: 1rem 1.95rem;
	font-size: 0.75rem;
	color: var(--muted);
}

.app-footer .footer-brand {
	font-weight: 700;
}

.app-footer .brand-name {
	color: #000;
}

.app-footer .brand-rush {
	color: var(--brand-red);
}

/* =====================================================
   14. Sidebar toggle
   Single state (body.menu-toggle) used for:
   - desktop: sidebar collapsed to a 72px brand rail
   - mobile:  sidebar opened as an overlay
   ===================================================== */
body.menu-toggle .nav-header {
	width: 72px;
}

body.menu-toggle .brand-logo {
	justify-content: center;
	padding: 0;
}

body.menu-toggle .brand-logo .brand-title {
	display: none;
}

body.menu-toggle .brand-logo .brand-compact {
	display: block;
}

body.menu-toggle .header {
	left: 72px;
}

body.menu-toggle .content-body {
	margin-left: 72px;
}

/* Mobile backdrop */
.sidebar-backdrop {
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 72px;
	background: rgba(0, 0, 0, 0.35);
	z-index: 1025;
}

/* =====================================================
   15. Responsive (mobile)
   ===================================================== */
@media (max-width: 991px) {
	.nav-header {
		width: 72px;
	}

	.brand-logo {
		justify-content: center;
		padding: 0;
	}

	.brand-logo .brand-title {
		display: none;
	}

	.brand-logo .brand-compact {
		display: block;
	}

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

	.header {
		left: 72px;
	}

	.content-body {
		margin-left: 72px;
	}

	/* On mobile, menu-toggle means the sidebar is OPEN (overlay) */
	body.menu-toggle .deznav {
		transform: translateX(0);
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	}

	body.menu-toggle .sidebar-backdrop {
		display: block;
	}
}

/* Desktop: menu-toggle means the sidebar is collapsed */
@media (min-width: 992px) {
	body.menu-toggle .deznav {
		transform: translateX(-100%);
	}
}

@media (max-width: 575px) {
	.container-fluid {
		padding: 1rem 1rem 2rem;
	}

	.page-titles {
		padding: 0.75rem 1rem;
	}

	.header-content {
		padding-left: 1.25rem;
	}
}
