/* DHA Property Management — modern theme layered over existing Bootstrap markup */

:root {
	--brand: #7f1d1d;
	--brand-dark: #450a0a;
	--brand-mid: #9f1239;
	--brand-soft: #fdf2f2;
	--gold: #b8956a;
	--gold-soft: #f4eadb;
	--cream: #f6f1ea;
	--paper: #fffcf8;
	--ink: #1c1917;
	--muted: #78716c;
	--line: rgba(28, 25, 23, 0.1);
	--shadow: 0 18px 50px -24px rgba(69, 10, 10, 0.35);
	--shadow-sm: 0 8px 24px -16px rgba(28, 25, 23, 0.28);
	--radius: 1.15rem;
	--radius-sm: 0.85rem;
	--font: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
	--display: "Fraunces", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font);
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--ink);
	background:
		radial-gradient(1200px 500px at 10% -10%, rgba(184, 149, 106, 0.18), transparent 55%),
		radial-gradient(900px 420px at 100% 0%, rgba(127, 29, 29, 0.12), transparent 50%),
		var(--cream);
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--brand);
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover {
	color: var(--brand-dark);
}

img {
	max-width: 100%;
	height: auto;
}

h1, h2, h3, .page-title {
	font-family: var(--display);
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--brand-dark);
}

h3 {
	font-size: 1.35rem;
	margin: 0 0 0.85rem;
}

h4, .h4 {
	font-size: 1.15rem;
	font-weight: 700;
}

.img-circle {
	border-radius: 50%;
}

.red {
	color: #be123c;
}

/* App shell */
.app-shell {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.app-header {
	position: sticky;
	top: 0;
	z-index: 40;
	backdrop-filter: blur(16px);
	background: rgba(255, 252, 248, 0.88);
	border-bottom: 1px solid var(--line);
}

.app-header-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0.85rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.brand-lockup {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	color: inherit;
}

.brand-lockup:hover {
	color: inherit;
}

.brand-mark {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.9rem;
	background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
	color: #fff;
	display: grid;
	place-items: center;
	box-shadow: 0 10px 20px -12px var(--brand);
	flex-shrink: 0;
}

.brand-copy {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.brand-kicker {
	font-size: 0.68rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold);
	font-weight: 700;
}

.brand-name {
	font-family: var(--display);
	font-size: 1.05rem;
	color: var(--brand-dark);
	font-weight: 600;
}

.app-nav {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-wrap: wrap;
}

.app-nav a,
.app-nav .nav-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 0.85rem;
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--muted);
}

.app-nav a:hover,
.app-nav .nav-link:hover {
	background: var(--gold-soft);
	color: var(--brand-dark);
}

.app-nav a.is-active {
	background: var(--brand);
	color: #fff;
}

.app-nav a.is-active:hover {
	color: #fff;
}

.app-nav a.nav-logout {
	color: var(--brand);
	border: 1px solid var(--line);
	background: #fff;
}

.app-nav a.nav-logout:hover {
	background: var(--brand-soft);
	color: var(--brand-dark);
	border-color: #fecaca;
}

.user-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.7rem 0.35rem 0.35rem;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--line);
	font-size: 0.78rem;
	color: var(--muted);
	max-width: 240px;
}

.user-avatar {
	width: 1.7rem;
	height: 1.7rem;
	border-radius: 999px;
	background: var(--brand-soft);
	color: var(--brand);
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: 0.75rem;
}

.app-main {
	flex: 1;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 1.75rem 1.25rem 3rem;
}

.app-main:has(.listing-page) {
	max-width: 1440px;
	padding-top: 1.15rem;
}

.app-footer {
	border-top: 1px solid var(--line);
	padding: 1.25rem;
	text-align: center;
	color: var(--muted);
	font-size: 0.82rem;
	background: rgba(255, 252, 248, 0.7);
}

.app-footer a {
	font-weight: 600;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -40px;
	background: var(--brand);
	color: #fff;
	padding: 0.5rem 0.8rem;
	border-radius: 0.5rem;
	z-index: 50;
}

.skip-link:focus {
	top: 0.75rem;
	color: #fff;
}

/* Bootstrap layout width */
.container,
.container-fluid {
	width: 100% !important;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.row {
	margin-left: -0.65rem;
	margin-right: -0.65rem;
}

.row > [class*="col-"] {
	padding-left: 0.65rem;
	padding-right: 0.65rem;
	margin-bottom: 0.9rem;
}

/* Cards */
.card,
.panel,
.frame {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}

.card-body,
.panel-body {
	padding: 1.35rem 1.4rem;
}

.card-header,
.panel-heading,
.card-footer,
.panel-footer {
	background: transparent;
	border: 0;
	padding: 1rem 1.4rem;
}

.card-footer,
.panel-footer {
	border-top: 1px solid var(--line);
	font-size: 0.9rem;
}

.card + .card,
form.card {
	margin-bottom: 1rem;
}

.bg-light {
	background: var(--gold-soft) !important;
	border-radius: var(--radius-sm);
	padding: 1rem;
	border: 1px solid rgba(184, 149, 106, 0.25);
}

/* Page banners that were Bootstrap warning alerts */
.alert {
	border-radius: var(--radius-sm);
	padding: 0.9rem 1.1rem;
	border: 1px solid transparent;
	margin-bottom: 1.15rem;
}

.alert-warning {
	background: transparent;
	border: 0;
	color: var(--brand-dark);
	font-family: var(--display);
	font-size: 1.7rem;
	font-weight: 600;
	padding: 0.15rem 0 0.85rem;
	margin: 0 0 1rem;
	text-align: left !important;
	letter-spacing: -0.03em;
	position: relative;
}

.alert-warning::after {
	content: "";
	display: block;
	width: 3.25rem;
	height: 3px;
	margin: 0.65rem 0 0;
	border-radius: 99px;
	background: linear-gradient(90deg, var(--brand), var(--gold));
}

.alert-warning[align="center"]::after,
.alert-warning.text-center::after {
	margin-left: auto;
	margin-right: auto;
}

.alert-danger {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}

.alert-success {
	background: #f0fdf4;
	border-color: #bbf7d0;
	color: #166534;
}

.success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
	padding: 0.85rem 1rem;
	border-radius: var(--radius-sm);
	margin-bottom: 1rem;
}

.error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	padding: 0.85rem 1rem;
	border-radius: var(--radius-sm);
	margin-bottom: 1rem;
}

/* Forms */
.form-control-group,
.form-group {
	margin-bottom: 0.35rem;
}

.control-label,
label {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #44403c;
	margin-bottom: 0.35rem;
}

.form-control,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
select,
textarea,
.select2-container {
	width: 100%;
	border: 1px solid #e7e5e4;
	background: #fff;
	border-radius: 0.8rem;
	padding: 0.62rem 0.85rem;
	font-size: 0.94rem;
	color: var(--ink);
	font-family: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	box-shadow: none;
	height: auto;
}

textarea.form-control,
textarea {
	min-height: 5.5rem;
	resize: vertical;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: #fda4af;
	box-shadow: 0 0 0 4px rgba(127, 29, 29, 0.12);
}

/* Buttons */
.btn,
input[type="submit"],
input[type="button"],
button.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	border: 1px solid transparent;
	border-radius: 0.9rem;
	padding: 0.7rem 1.1rem;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
	transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
	text-decoration: none;
	min-height: 2.7rem;
}

.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
	transform: translateY(-1px);
	text-decoration: none;
}

.custom {
	width: auto !important;
	min-width: 10.5rem;
}

.btn-danger,
.btn-danger.active,
input.btn-danger {
	background: linear-gradient(180deg, #9f1239 0%, var(--brand) 100%) !important;
	border-color: var(--brand-dark) !important;
	color: #fff !important;
	box-shadow: 0 10px 18px -12px var(--brand);
}

.btn-danger:hover {
	background: var(--brand-dark) !important;
	color: #fff !important;
}

.btn-success {
	background: #0f766e !important;
	border-color: #115e59 !important;
	color: #fff !important;
}

.btn-warning {
	background: #fff !important;
	border: 1px solid #e7e5e4 !important;
	color: var(--brand-dark) !important;
	box-shadow: none;
}

.btn-warning:hover {
	background: var(--gold-soft) !important;
	border-color: var(--gold) !important;
}

.btn-default,
.btn-secondary {
	background: #fff !important;
	border: 1px solid #e7e5e4 !important;
	color: var(--ink) !important;
}

.btn-lg,
.btn-group-lg {
	padding: 0.8rem 1.15rem;
	font-size: 0.92rem;
}

hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 1.25rem 0;
}

/* Tables */
table,
.table,
#list_data {
	width: 100%;
	border-collapse: separate !important;
	border-spacing: 0;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	font-size: 0.88rem;
}

.table th,
.table td,
#list_data th,
#list_data td,
table th,
table td {
	padding: 0.8rem 0.9rem;
	border-bottom: 1px solid var(--line);
	vertical-align: middle;
}

.table thead th,
#list_data thead th,
table thead th,
th {
	background: var(--brand-dark) !important;
	color: #fff !important;
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-weight: 700;
	white-space: nowrap;
	border: 0 !important;
}

.table thead th a,
#list_data thead th a {
	color: #fff !important;
}

.table tbody tr:hover td,
.table tbody tr:hover th,
#list_data tbody tr:hover td {
	background: #faf6f1 !important;
}

.table-striped tbody tr:nth-of-type(odd),
tr.odd {
	background: #fff;
}

.table-striped tbody tr:nth-of-type(even),
tr.even {
	background: #fbf8f4;
}

.table-bordered,
.table-bordered td,
.table-bordered th {
	border-color: var(--line) !important;
}

.busy {
	color: var(--brand) !important;
	font-weight: 700;
}

/* DataTables */
.dataTables_wrapper {
	font-family: var(--font);
}

.dataTables_filter,
.dataTables_length,
.dataTables_info,
.dataTables_paginate {
	margin: 0.85rem 0;
	color: var(--muted);
	font-size: 0.86rem;
}

.dataTables_filter input {
	width: min(420px, 100%) !important;
	margin-left: 0.5rem;
	border-radius: 999px;
	padding: 0.55rem 0.95rem;
}

.dataTables_paginate .paginate_button,
.dataTables_paginate a {
	border-radius: 0.65rem !important;
	padding: 0.35rem 0.65rem !important;
	margin: 0 0.12rem;
	border: 1px solid var(--line) !important;
	background: #fff !important;
	color: var(--ink) !important;
}

.dataTables_paginate .paginate_button.current,
.dataTables_paginate .current {
	background: var(--brand) !important;
	border-color: var(--brand) !important;
	color: #fff !important;
}

/* jQuery UI */
.ui-datepicker {
	font-family: var(--font) !important;
	border-radius: 1rem !important;
	border: 1px solid var(--line) !important;
	box-shadow: var(--shadow);
	padding: 0.5rem;
}

.ui-widget-header {
	background: var(--brand) !important;
	border: 0 !important;
	border-radius: 0.7rem !important;
}

/* Progress */
.progress,
#myProgress {
	height: 0.45rem;
	border-radius: 99px;
	background: #e7e5e4;
	overflow: hidden;
	margin: 0.75rem 0 1.25rem;
}

.progress-bar,
#myBar {
	height: 100% !important;
	background: linear-gradient(90deg, var(--gold), var(--brand)) !important;
}

/* Login */
.login-shell {
	min-height: 100vh;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
}

.login-brand {
	position: relative;
	overflow: hidden;
	background: #450a0a;
	color: #fff;
	padding: 3rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.login-bg-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 0;
	pointer-events: none;
}

.login-brand::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(165deg, rgba(69, 10, 10, 0.38), rgba(28, 10, 10, 0.55));
	pointer-events: none;
}

.login-brand-inner {
	position: relative;
	z-index: 2;
	max-width: 34rem;
}

.login-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold);
	font-weight: 700;
	margin-bottom: 1.25rem;
}

.login-brand h1 {
	color: #fff;
	font-size: clamp(2.1rem, 4vw, 3.4rem);
	line-height: 1.12;
	margin: 0 0 1rem;
}

.login-brand p {
	color: rgba(255, 255, 255, 0.78);
	font-size: 1.05rem;
	max-width: 32rem;
}

.login-points {
	position: relative;
	z-index: 2;
	display: grid;
	gap: 0.75rem;
	margin-top: 2rem;
}

.login-point {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	color: rgba(255, 255, 255, 0.86);
	font-size: 0.92rem;
}

.login-panel {
	position: relative;
	overflow: hidden;
	display: grid;
	place-items: center;
	padding: 2rem 1.5rem;
	background: #f6f1ea;
}

.login-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(246, 241, 234, 0.35), rgba(255, 252, 248, 0.48));
	pointer-events: none;
}

.login-card {
	position: relative;
	z-index: 2;
	width: min(440px, 100%);
	background: rgba(255, 252, 248, 0.92);
	backdrop-filter: blur(12px);
	border: 1px solid var(--line);
	border-radius: 1.5rem;
	padding: 2.1rem 1.85rem;
	box-shadow: var(--shadow);
}

.login-card h2 {
	margin: 0 0 0.35rem;
	font-size: 1.7rem;
}

.login-card .lede {
	color: var(--muted);
	margin-bottom: 1.5rem;
}

.google-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	width: 100%;
	background: #fff;
	border: 1px solid #e7e5e4;
	border-radius: 0.95rem;
	padding: 0.85rem 1rem;
	font-weight: 700;
	color: var(--ink);
	box-shadow: var(--shadow-sm);
}

.google-btn:hover {
	border-color: #d6d3d1;
	color: var(--ink);
	background: #fafaf9;
}

.login-meta {
	margin-top: 1.4rem;
	font-size: 0.8rem;
	color: var(--muted);
	text-align: center;
}

/* Home dashboard */
.dash-hero {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.dash-kicker {
	font-size: 0.75rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold);
	font-weight: 700;
	margin-bottom: 0.35rem;
}

.dash-hero h1 {
	margin: 0;
	font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.dash-hero p {
	margin: 0.4rem 0 0;
	color: var(--muted);
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.1rem;
}

.feature-card {
	display: block;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 1.35rem;
	padding: 1.5rem;
	box-shadow: var(--shadow-sm);
	color: inherit;
	min-height: 13.5rem;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.feature-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow);
	border-color: rgba(127, 29, 29, 0.2);
	color: inherit;
}

.feature-icon {
	width: 2.8rem;
	height: 2.8rem;
	border-radius: 0.9rem;
	display: grid;
	place-items: center;
	margin-bottom: 1.1rem;
}

.feature-icon.rose {
	background: var(--brand-soft);
	color: var(--brand);
}

.feature-icon.gold {
	background: var(--gold-soft);
	color: #92400e;
}

.feature-card h2 {
	margin: 0 0 0.35rem;
	font-size: 1.35rem;
}

.feature-card p {
	margin: 0;
	color: var(--muted);
}

.feature-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 1.15rem;
	font-weight: 700;
	color: var(--brand);
	font-size: 0.9rem;
}

/* Toolbar / filters */
.toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	align-items: flex-end;
	margin-bottom: 0.35rem;
}

.page-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.25rem;
}

.action-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.action-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 0.75rem;
	margin: 0.5rem 0 1.25rem;
}

.action-grid form {
	margin: 0;
}

.action-grid .btn,
.action-grid button {
	width: 100%;
	min-height: 3.15rem;
	border-radius: 1rem;
}

.property-side {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 1.25rem;
	padding: 1.2rem;
	text-align: center;
	box-shadow: var(--shadow-sm);
}

.property-photo {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 1rem;
	background: var(--gold-soft);
	margin-bottom: 0.9rem;
}

.table-wrap {
	overflow-x: auto;
	border-radius: var(--radius);
	-webkit-overflow-scrolling: touch;
}

.table-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	background: var(--brand-soft);
	color: var(--brand);
	font-size: 0.78rem;
	font-weight: 700;
}

.table-link:hover {
	background: var(--brand);
	color: #fff;
}

.doc-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4rem;
	padding: 0.15rem 0.45rem;
	border-radius: 999px;
	background: var(--gold-soft);
	color: var(--brand);
	font-weight: 700;
	font-size: 0.7rem;
	letter-spacing: 0.04em;
}

.doc-chip:hover {
	background: var(--brand);
	color: #fff;
}

.doc-empty {
	color: #a8a29e;
}

/* Condensed, responsive property listing */
.listing-page .page-toolbar {
	margin-bottom: 0.75rem;
}

.listing-page .alert-warning {
	font-size: 1.35rem;
	padding-bottom: 0.4rem;
	margin-bottom: 0;
}

.listing-filters .card-body {
	padding: 0.85rem 1rem;
}

.listing-filters-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	align-items: flex-end;
}

.listing-filters-row .form-control-group {
	flex: 1 1 160px;
	margin-bottom: 0;
}

.listing-filters-actions {
	margin-left: auto;
}

.listing-filters-actions .action-row {
	margin: 0;
}

.listing-filters-actions .btn {
	min-width: 0;
	min-height: 2.35rem;
	padding: 0.45rem 0.85rem;
	font-size: 0.82rem;
}

.listing-progress {
	display: none;
	margin: 0.5rem 0 0.75rem;
}

.listing-progress.is-on {
	display: block;
}

.listing-card {
	margin-bottom: 0;
}

.listing-card > .card-body {
	padding: 0.65rem;
}

.listing-table,
.listing-table.table {
	font-size: 0.8rem;
	border: 0;
	border-radius: 0.75rem;
	margin: 0;
}

.listing-table th,
.listing-table td {
	padding: 0.42rem 0.55rem;
	white-space: nowrap;
}

.listing-table td.listing-address {
	white-space: normal;
	min-width: 10.5rem;
	max-width: 16rem;
	line-height: 1.3;
	font-weight: 600;
}

.listing-table thead th {
	font-size: 0.65rem;
	letter-spacing: 0.05em;
	position: sticky;
	top: 0;
	z-index: 3;
}

.listing-table th:first-child,
.listing-table td:first-child {
	position: sticky;
	left: 0;
	z-index: 2;
	background: #fff;
	box-shadow: 4px 0 8px -6px rgba(28, 25, 23, 0.25);
}

.listing-table thead th:first-child {
	z-index: 4;
	background: var(--brand-dark) !important;
}

.listing-table tbody tr:nth-of-type(even) td:first-child {
	background: #fbf8f4;
}

.listing-dt-top,
.listing-dt-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.35rem 0.15rem;
}

.listing-dt-top .dataTables_filter {
	margin: 0;
	width: 100%;
	max-width: 22rem;
	margin-left: auto;
}

.listing-dt-top .dataTables_filter label {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	width: 100%;
	font-size: 0.75rem;
	font-weight: 700;
	color: #44403c;
}

.listing-dt-top .dataTables_filter input {
	width: 100% !important;
	margin: 0;
	border-radius: 0.75rem;
	padding: 0.45rem 0.75rem;
}

.listing-dt-bottom .dataTables_info,
.listing-dt-bottom .dataTables_paginate {
	margin: 0;
}

@media (max-width: 900px) {
	.listing-filters-actions {
		margin-left: 0;
		width: 100%;
	}

	.listing-filters-actions .action-row {
		width: 100%;
	}

	.listing-filters-actions .btn {
		flex: 1 1 auto;
	}

	.listing-table thead {
		display: none;
	}

	.listing-table,
	.listing-table tbody,
	.listing-table tr,
	.listing-table td {
		display: block;
		width: 100%;
	}

	.listing-table {
		border: 0;
		background: transparent;
	}

	.listing-table tbody {
		display: grid;
		gap: 0.75rem;
	}

	.listing-table tr {
		display: flex;
		flex-direction: column;
		background: #fff;
		border: 1px solid var(--line);
		border-radius: 0.9rem;
		padding: 0.15rem 0 0.35rem;
		box-shadow: var(--shadow-sm);
	}

	.listing-table td,
	.listing-table th:first-child,
	.listing-table td:first-child {
		position: static;
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		gap: 0.75rem;
		white-space: normal;
		padding: 0.45rem 0.8rem;
		border-bottom: 1px solid #f0ece6;
		background: transparent !important;
		box-shadow: none;
		min-width: 0;
		max-width: none;
	}

	.listing-table td:last-child {
		border-bottom: 0;
	}

	.listing-table td::before {
		content: attr(data-label);
		flex: 0 0 6.5rem;
		color: var(--muted);
		font-size: 0.68rem;
		font-weight: 700;
		letter-spacing: 0.06em;
		text-transform: uppercase;
	}

	.listing-table td.listing-address {
		max-width: none;
		font-weight: 700;
	}

	.listing-table td[data-label="Action"] {
		order: -1;
		justify-content: flex-end;
		background: #faf6f1 !important;
		border-bottom: 1px solid var(--line);
		border-radius: 0.9rem 0.9rem 0 0;
	}

	.listing-table td[data-label="Action"]::before {
		margin-right: auto;
	}

	.listing-dt-top .dataTables_filter {
		max-width: none;
	}
}

/* Header in old template */
h1.page-title,
a.page-title {
	display: none;
}

.app-shell h1.page-title {
	display: block;
}

.nav-toggle {
	display: none;
	border: 1px solid var(--line);
	background: #fff;
	border-radius: 0.75rem;
	width: 2.6rem;
	height: 2.6rem;
}

@media (max-width: 900px) {
	.login-shell {
		grid-template-columns: 1fr;
	}

	.login-brand {
		min-height: 280px;
		padding: 2rem 1.5rem;
	}

	.feature-grid {
		grid-template-columns: 1fr;
	}

	.app-nav {
		display: none;
		position: absolute;
		top: 100%;
		right: 1rem;
		left: 1rem;
		background: #fff;
		border: 1px solid var(--line);
		border-radius: 1rem;
		padding: 0.6rem;
		flex-direction: column;
		align-items: stretch;
		box-shadow: var(--shadow);
	}

	.app-nav.is-open {
		display: flex;
	}

	.nav-toggle {
		display: inline-grid;
		place-items: center;
	}

	.alert-warning {
		font-size: 1.35rem;
		text-align: left !important;
	}

	.dataTables_filter input {
		width: 100% !important;
		margin-left: 0;
		margin-top: 0.4rem;
	}
}

@media print {
	.app-header,
	.app-footer,
	.nav-toggle {
		display: none;
	}

	body {
		background: #fff;
	}
}
