/* ==========================================================================
   Genkart admin theme — visual layer on top of the Rocker template.
   Loaded last in backend/layouts/app.blade.php. Styling only: no markup,
   class names or behaviour are changed. Light + dark (html.dark-theme).
   ========================================================================== */

:root {
	--gk-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	/* brand (from the Genkart logo) */
	--gk-primary: #3a3db8;
	--gk-primary-2: #5a5ff0;
	--gk-primary-soft: rgba(58, 61, 184, .09);
	--gk-primary-ring: rgba(90, 95, 240, .18);
	--gk-accent: #e3262b;
	--gk-sky: #1ea7e4;

	/* surfaces */
	--gk-bg: #f3f5fb;
	--gk-surface: #ffffff;
	--gk-surface-2: #f7f8fc;
	--gk-border: #e7e9f3;
	--gk-border-strong: #d9ddea;
	--gk-text: #1d2042;
	--gk-text-2: #4a5072;
	--gk-muted: #7b81a3;
	--gk-hover: #f5f6ff;

	/* sidebar */
	--gk-side-bg: linear-gradient(180deg, #1b1e52 0%, #20245f 55%, #1a1c49 100%);
	--gk-side-text: rgba(225, 228, 255, .72);
	--gk-side-text-hover: #ffffff;
	--gk-side-hover: rgba(255, 255, 255, .07);

	--gk-radius: 16px;
	--gk-radius-sm: 10px;
	--gk-shadow: 0 1px 2px rgba(20, 24, 70, .04), 0 10px 30px -18px rgba(20, 24, 70, .22);
	--gk-shadow-hover: 0 2px 4px rgba(20, 24, 70, .05), 0 18px 40px -20px rgba(20, 24, 70, .32);
}

html.dark-theme {
	--gk-primary-soft: rgba(120, 125, 255, .14);
	--gk-primary-ring: rgba(120, 125, 255, .28);
	--gk-bg: #0f1124;
	--gk-surface: #171a33;
	--gk-surface-2: #1d2140;
	--gk-border: #262a4a;
	--gk-border-strong: #31365c;
	--gk-text: #e7e9fb;
	--gk-text-2: #bfc3e3;
	--gk-muted: #8b90b5;
	--gk-hover: #1f2347;
	--gk-side-bg: linear-gradient(180deg, #121430 0%, #15183a 100%);
	--gk-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -18px rgba(0, 0, 0, .6);
	--gk-shadow-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 18px 40px -18px rgba(0, 0, 0, .7);
}

/* ---------- base ---------- */
body {
	font-family: var(--gk-font);
	background: var(--gk-bg);
	color: var(--gk-text-2);
	-webkit-font-smoothing: antialiased;
}
html.dark-theme body { background: var(--gk-bg); }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--gk-text); font-family: var(--gk-font); }
a { color: var(--gk-primary); }
html.dark-theme a { color: #a5a8ff; }
.text-secondary, .text-muted { color: var(--gk-muted) !important; }
::selection { background: var(--gk-primary-ring); }

/* ---------- sidebar ---------- */
.sidebar-wrapper {
	background: var(--gk-side-bg);
	border-right: 0;
	box-shadow: 8px 0 32px -20px rgba(20, 24, 70, .6) !important;
}
.sidebar-wrapper::after {
	/* soft brand glow at the bottom of the rail */
	content: "";
	position: absolute;
	left: -40px;
	right: -40px;
	bottom: -120px;
	height: 260px;
	background: radial-gradient(closest-side, rgba(90, 95, 240, .35), transparent);
	pointer-events: none;
}
/* header blends into the rail (solid, since the menu scrolls under it); logo sits on a white chip */
.sidebar-wrapper .sidebar-header {
	background: var(--gk-side-head, #1b1e52);
	border-bottom: 1px solid rgba(255, 255, 255, .06);
	height: 64px;
	gap: 10px;
}
html.dark-theme .sidebar-wrapper .sidebar-header { --gk-side-head: #121430; }
.sidebar-wrapper .sidebar-header > div:first-child {
	display: flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .6);
}
.sidebar-wrapper .logo-icon { width: 138px; }
.sidebar-wrapper .toggle-icon {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	color: rgba(225, 228, 255, .85);
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .08);
	transition: background .2s, transform .25s, color .2s;
}
.sidebar-wrapper .toggle-icon:hover { background: rgba(255, 255, 255, .16); color: #fff; }
@media (min-width: 1025px) { .wrapper.toggled .sidebar-wrapper .toggle-icon { transform: rotate(180deg); } }

/* quick search */
.gk-side-search {
	position: relative;
	margin: 80px 14px 4px;
}
.gk-side-search i {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(205, 210, 255, .55);
	font-size: 17px;
	pointer-events: none;
}
.gk-side-search input {
	width: 100%;
	height: 40px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, .08);
	background: rgba(255, 255, 255, .06);
	color: #fff;
	font: 500 13.5px var(--gk-font);
	padding: 0 34px 0 38px;
	outline: none;
	transition: background .2s, border-color .2s, box-shadow .2s;
}
.gk-side-kbd {
	position: absolute;
	right: 9px;
	top: 50%;
	transform: translateY(-50%);
	min-width: 20px;
	padding: 1px 6px;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, .14);
	background: rgba(255, 255, 255, .06);
	color: rgba(205, 210, 255, .65);
	font: 600 11px var(--gk-font);
	text-align: center;
	pointer-events: none;
	transition: opacity .15s;
}
.gk-side-search input:focus ~ .gk-side-kbd, .gk-side-search input:not(:placeholder-shown) ~ .gk-side-kbd { opacity: 0; }
.gk-side-search input::placeholder { color: rgba(205, 210, 255, .55) !important; opacity: 1 !important; }
.gk-side-search input:focus {
	background: rgba(255, 255, 255, .1);
	border-color: rgba(140, 145, 255, .55);
	box-shadow: 0 0 0 4px rgba(90, 95, 240, .2);
}
.gk-side-search input::-webkit-search-cancel-button { filter: invert(1); opacity: .6; }

/* menu */
.sidebar-wrapper .metismenu {
	background: transparent;
	padding: 6px 12px 18px;
	margin-top: 0;
}
.sidebar-wrapper .metismenu ul { background: transparent; }
.sidebar-wrapper .metismenu li + li { margin-top: 2px; }
.sidebar-wrapper .metismenu .menu-label {
	padding: 18px 12px 6px;
	margin-top: 0;
	color: rgba(205, 210, 255, .42);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 10px;
}
.sidebar-wrapper .metismenu .menu-label::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, rgba(255, 255, 255, .1), transparent);
}
.sidebar-wrapper .metismenu > li.menu-label { flex-direction: row; }
.sidebar-wrapper .metismenu .menu-label::after { height: 1px; min-width: 20px; }
.sidebar-wrapper .metismenu .menu-label[hidden], .sidebar-wrapper .metismenu li[hidden] { display: none; }
.sidebar-wrapper .metismenu .gk-menu-empty { padding: 16px 12px; color: rgba(205, 210, 255, .5); font-size: 13px; text-align: center; }
.sidebar-wrapper .metismenu a {
	color: var(--gk-side-text);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .1px;
	padding: 7px 10px;
	border-radius: 12px;
	transition: background .18s ease, color .18s ease;
}
/* per-section icon colour: each label sets --ic for the items after it (later rules win) */
.sidebar-wrapper .metismenu > li { --ic: #a5b4fc; }
.sidebar-wrapper .metismenu > .gk-sec-catalog ~ li { --ic: #38bdf8; }
.sidebar-wrapper .metismenu > .gk-sec-sales ~ li { --ic: #34d399; }
.sidebar-wrapper .metismenu > .gk-sec-people ~ li { --ic: #fbbf24; }
.sidebar-wrapper .metismenu > .gk-sec-rewards ~ li { --ic: #f472b6; }
.sidebar-wrapper .metismenu > .gk-sec-finance ~ li { --ic: #2dd4bf; }
.sidebar-wrapper .metismenu > .gk-sec-website ~ li { --ic: #c084fc; }
.sidebar-wrapper .metismenu > .gk-sec-settings ~ li { --ic: #94a3b8; }
.sidebar-wrapper .metismenu a .parent-icon {
	font-size: 18px;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: color-mix(in srgb, var(--ic) 14%, transparent);
	color: var(--ic);
	transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.sidebar-wrapper .metismenu a .menu-title { margin-left: 12px; transition: transform .18s ease; }
.sidebar-wrapper .metismenu a:hover,
.sidebar-wrapper .metismenu a:focus {
	color: var(--gk-side-text-hover);
	background: var(--gk-side-hover);
}
.sidebar-wrapper .metismenu a:hover .parent-icon { background: color-mix(in srgb, var(--ic) 24%, transparent); transform: scale(1.05); }
.sidebar-wrapper .metismenu > li > a:hover .menu-title { transform: translateX(2px); }
/* active: glass row, solid icon, coloured edge */
.sidebar-wrapper .metismenu > .mm-active > a {
	color: #fff;
	font-weight: 600;
	background: linear-gradient(90deg, color-mix(in srgb, var(--ic) 22%, transparent), rgba(255, 255, 255, .04));
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.sidebar-wrapper .metismenu > .mm-active > a .parent-icon {
	background: linear-gradient(135deg, color-mix(in srgb, var(--ic) 80%, #fff), var(--ic));
	color: #10132f;
	box-shadow: 0 8px 18px -8px var(--ic);
}
.sidebar-wrapper .metismenu > .mm-active > a::before {
	content: "";
	position: absolute;
	left: -12px;
	top: 10px;
	bottom: 10px;
	width: 4px;
	border-radius: 0 4px 4px 0;
	background: var(--ic);
	box-shadow: 0 0 12px var(--ic);
}
/* submenu: tree guide line + dot bullets */
.sidebar-wrapper .metismenu ul {
	position: relative;
	margin: 4px 0 6px 26px;
	padding-left: 12px;
}
.sidebar-wrapper .metismenu ul::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	bottom: 4px;
	width: 1px;
	background: rgba(255, 255, 255, .1);
}
.sidebar-wrapper .metismenu ul a {
	padding: 7px 10px;
	font-size: 13.5px;
	border-radius: 10px;
	color: rgba(225, 228, 255, .62);
}
.sidebar-wrapper .metismenu ul a i { margin-right: 10px; font-size: 9px; opacity: .6; }
.sidebar-wrapper .metismenu ul .mm-active > a, .sidebar-wrapper .metismenu ul a:hover {
	color: #fff;
	background: rgba(255, 255, 255, .07);
}
.sidebar-wrapper .metismenu ul .mm-active > a i { color: var(--ic); opacity: 1; }
.metismenu .has-arrow:after {
	border-color: rgba(205, 210, 255, .55);
	width: .42em;
	height: .42em;
	right: 14px;
	transition: transform .25s;
}
.metismenu .mm-active > .has-arrow:after, .metismenu .gk-search-open > .has-arrow:after, .metismenu .has-arrow[aria-expanded="true"]:after { transform: rotate(-135deg) translate(0, -50%); }
.sidebar-wrapper .simplebar-scrollbar:before { background: rgba(255, 255, 255, .3); }

/* bottom card */
.gk-side-card {
	position: relative;
	z-index: 1;
	margin: 6px 14px 18px;
	padding: 12px;
	display: flex;
	align-items: center;
	gap: 12px;
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(90, 95, 240, .35), rgba(30, 167, 228, .18));
	border: 1px solid rgba(255, 255, 255, .1);
}
.gk-side-card-icon {
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	display: grid;
	place-items: center;
	border-radius: 11px;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	font-size: 20px;
}
.gk-side-card-title { margin: 0; color: #fff; font-weight: 700; font-size: 13.5px; }
.gk-side-card-text { margin: 0; color: rgba(225, 228, 255, .65); font-size: 12px; }
.gk-side-card-link {
	margin-left: auto;
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: #fff;
	color: var(--gk-primary) !important;
	font-size: 16px;
	transition: transform .2s;
}
.gk-side-card-link:hover { transform: translate(2px, -2px); }

/* collapsed rail (desktop only: on mobile .toggled means the drawer is open) */
@media (min-width: 1025px) {
	.wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper .metismenu { padding: 6px 10px; }
	.wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper .metismenu a { padding: 7px 6px; }
	.wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper .metismenu > .mm-active > a::before { left: -10px; }
	.wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper .logo-icon { width: 30px; height: 40px; object-fit: cover; object-position: left center; }
	.wrapper.toggled:not(.sidebar-hovered) .gk-side-search,
	.wrapper.toggled:not(.sidebar-hovered) .gk-side-card,
	.wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper .metismenu .menu-label { display: none; }
	.wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper .metismenu > li:first-child { margin-top: 80px; }
}

/* ---------- topbar ---------- */
.topbar {
	height: 64px;
	background: rgba(255, 255, 255, .82);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--gk-border);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .6), 0 8px 24px -22px rgba(20, 24, 70, .5);
	-webkit-box-shadow: 0 8px 24px -22px rgba(20, 24, 70, .5);
}
.topbar::after {
	/* thin brand line under the header */
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: linear-gradient(90deg, var(--gk-sky), var(--gk-primary-2) 45%, var(--gk-accent));
	opacity: .55;
}
html.dark-theme .topbar { background: rgba(23, 26, 51, .82); border-bottom-color: var(--gk-border); }
.topbar .navbar { height: 64px; padding: 0 1.25rem 0 1.75rem; flex-wrap: nowrap; align-items: center; }
.topbar .mobile-toggle-menu {
	color: var(--gk-text);
	width: 40px;
	height: 40px;
	display: none;
	place-items: center;
	border-radius: 12px;
	background: var(--gk-surface-2);
	border: 1px solid var(--gk-border);
	font-size: 22px;
}
@media (max-width: 1024px) { .topbar .mobile-toggle-menu { display: grid; } .topbar .navbar { padding-left: 1rem; padding-right: .75rem; } }

/* page title + breadcrumb */
.gk-page-head { min-width: 0; line-height: 1.15; }
.gk-crumb {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--gk-muted);
	text-transform: uppercase;
	letter-spacing: .06em;
}
.gk-crumb i { font-size: 14px; opacity: .7; }
.gk-crumb span:first-child { color: var(--gk-primary-2); }
.gk-page-title {
	margin: 2px 0 0;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -.4px;
	color: var(--gk-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
@media (max-width: 575.98px) { .gk-crumb { display: none; } .gk-page-title { font-size: 16px; } }

/* right side controls */
.topbar .navbar .navbar-nav .nav-link {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	color: var(--gk-text-2);
	background: var(--gk-surface-2);
	border: 1px solid var(--gk-border);
	font-size: 20px;
	transition: background .2s, color .2s, transform .2s;
}
.topbar .navbar .navbar-nav .nav-link:hover,
.topbar .navbar .navbar-nav .nav-link:focus { color: var(--gk-primary); background: var(--gk-primary-soft);  }
.gk-date-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 14px;
	border-radius: 12px;
	background: var(--gk-surface-2);
	border: 1px solid var(--gk-border);
	color: var(--gk-text-2);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}
.gk-date-chip i { color: var(--gk-primary-2); font-size: 17px; }
.gk-visit-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 16px;
	border-radius: 12px;
	font-size: 13.5px;
	font-weight: 700;
	color: #fff !important;
	background: linear-gradient(135deg, var(--gk-primary-2), var(--gk-primary));
	box-shadow: 0 10px 20px -12px rgba(58, 61, 184, .9);
	transition: transform .2s, box-shadow .2s;
	white-space: nowrap;
}
.gk-visit-btn i { font-size: 18px; }
.gk-visit-btn:hover {  box-shadow: 0 14px 24px -12px rgba(58, 61, 184, 1); }

/* user box */
.user-box { border-left: 1px solid var(--gk-border); margin-left: 6px; padding-left: 14px; padding-right: 0; height: 40px; display: flex; align-items: center; }
/* vendors.css forces .dropdown { height: inherit !important } (= 64px here), which pushed the whole header row down */
.topbar .user-box.dropdown { height: 40px !important; }
.user-box > .nav-link { gap: 10px !important; padding: 4px 6px 4px 4px; border-radius: 14px; transition: background .2s; }
.user-box > .nav-link:hover { background: var(--gk-surface-2); }
.gk-avatar {
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	font-weight: 800;
	font-size: 15px;
	color: #fff;
	background: linear-gradient(135deg, var(--gk-primary-2), var(--gk-primary));
	box-shadow: 0 8px 18px -10px rgba(58, 61, 184, .8);
	position: relative;
}
.gk-avatar::after {
	/* online dot */
	content: "";
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #10b981;
	border: 2px solid var(--gk-surface);
}
.gk-avatar-lg { width: 44px; height: 44px; flex-basis: 44px; font-size: 18px; border-radius: 14px; }
.user-box .user-info { line-height: 1.2; }
.user-box .user-name { color: var(--gk-text); font-weight: 700; font-size: 14px; text-transform: capitalize; }
.gk-user-menu-name { text-transform: capitalize; }
.user-box .designattion { color: var(--gk-muted); font-size: 11.5px; font-weight: 500; }
.user-box .dropdown-toggle-nocaret::after {
	content: "";
	font-family: inherit;
	width: 7px;
	height: 7px;
	margin: -3px 0 0 2px;
	border: solid var(--gk-muted);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	display: inline-block;
	transition: transform .2s;
}
.user-box .show.dropdown-toggle-nocaret::after { transform: rotate(-135deg); margin-top: 3px; }
@media (max-width: 767.98px) { .user-box .user-info, .user-box .dropdown-toggle-nocaret::after { display: none; } .user-box { padding-left: 10px; } }
.gk-user-menu { min-width: 250px; margin-top: 10px !important; }
.gk-user-menu-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 10px 12px;
	margin: -.1rem -.1rem .35rem;
	border-bottom: 1px solid var(--gk-border);
}
.gk-user-menu-name { color: var(--gk-text); font-weight: 700; font-size: 14.5px; }
.gk-user-menu-mail { color: var(--gk-muted); font-size: 12.5px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gk-user-menu .gk-logout { color: #dc2626; }
.gk-user-menu .gk-logout:hover { background: rgba(220, 38, 38, .08); color: #dc2626; }

/* ---------- layout ---------- */
.page-wrapper { margin-top: 64px; }
.page-content { padding: 1.75rem 1.75rem 1rem; }
/* many pages use <div class="page-content row">: cancel the row's negative margins so it never pokes past the screen edge */
.page-content.row { margin-left: 0; margin-right: 0; }
.page-footer {
	background: transparent;
	border-top: 0;
	color: var(--gk-muted);
	font-size: 12.5px;
	position: static;
	padding: 6px 0 22px;
	margin-left: 250px;
}
html.dark-theme .page-footer { background: transparent; border-top: 0; }
.wrapper.toggled .page-footer { margin-left: 70px; }
@media (max-width: 1024px) { .page-footer { margin-left: 0; } .page-content { padding: 1.25rem 1rem .75rem; } }
.page-breadcrumb .breadcrumb-title { color: var(--gk-text); font-weight: 700; border-right-color: var(--gk-border-strong); }

/* ---------- cards ---------- */
.card {
	background: var(--gk-surface);
	border: 1px solid var(--gk-border);
	border-radius: var(--gk-radius);
	box-shadow: var(--gk-shadow);
	margin-bottom: 1.5rem;
}
html.dark-theme .card { background: var(--gk-surface); border-color: var(--gk-border); box-shadow: var(--gk-shadow); }
.card.radius-10 { border-radius: var(--gk-radius); }
.card-header {
	background: transparent;
	border-bottom: 1px solid var(--gk-border);
	padding: 1.05rem 1.35rem;
	border-radius: var(--gk-radius) var(--gk-radius) 0 0 !important;
}
html.dark-theme .card-header { background: transparent; border-bottom-color: var(--gk-border); }
.card-header h6, .card-header h5, .card-header .card-title, .card-title {
	color: var(--gk-text);
	font-weight: 700;
	font-size: 15.5px;
	letter-spacing: -.1px;
}
.card-header h6::before, .card-header h5::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 3px;
	margin-right: 10px;
	vertical-align: middle;
	position: relative;
	top: -1px;
	background: linear-gradient(135deg, var(--gk-primary-2), var(--gk-primary));
	box-shadow: 0 0 0 4px var(--gk-primary-soft);
}
.card-body { padding: 1.35rem; }
.card-footer { background: var(--gk-surface-2); border-top: 1px solid var(--gk-border); }

/* dashboard stat cards (card + border-start border-4 border-*) */
.card.border-start.border-4 {
	border: 1px solid var(--gk-border) !important;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}
.card.border-start.border-4::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 4px;
	background: var(--gk-stat, var(--gk-primary));
}
.card.border-start.border-4::after {
	content: "";
	position: absolute;
	right: -40px;
	bottom: -60px;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	background: var(--gk-stat, var(--gk-primary));
	opacity: .06;
	pointer-events: none;
}
.card.border-start.border-4:hover {  box-shadow: var(--gk-shadow-hover); }
.card.border-info { --gk-stat: #0ea5e9; }
.card.border-danger { --gk-stat: #ef4444; }
.card.border-warning { --gk-stat: #f59e0b; }
.card.border-success { --gk-stat: #10b981; }
.card.border-primary { --gk-stat: var(--gk-primary-2); }
.card.border-start.border-4 .card-body { position: relative; z-index: 1; padding: 1.2rem 1.35rem; }
.card.border-start.border-4 p.mb-0 {
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--gk-muted) !important;
}
.card.border-start.border-4 h4 {
	color: var(--gk-text) !important;
	font-size: 1.55rem;
	font-weight: 800;
	letter-spacing: -.5px;
	margin-top: .35rem !important;
}
.widgets-icons-2 {
	width: 52px;
	height: 52px;
	border-radius: 15px !important;
	font-size: 25px;
	box-shadow: 0 12px 22px -12px var(--gk-stat, rgba(58, 61, 184, .7));
}
.bg-gradient-blues { background: linear-gradient(135deg, #38bdf8, #0284c7) !important; }
.bg-gradient-burning { background: linear-gradient(135deg, #fb7185, #e11d48) !important; }
.bg-gradient-orange { background: linear-gradient(135deg, #fbbf24, #f97316) !important; }
.bg-gradient-ohhappiness { background: linear-gradient(135deg, #34d399, #059669) !important; }
.bg-gradient-cosmic { background: linear-gradient(135deg, #a78bfa, #7c3aed) !important; }
.bg-gradient-scooter { background: linear-gradient(135deg, #22d3ee, #0891b2) !important; }
.bg-gradient-moonlit { background: linear-gradient(135deg, #64748b, #334155) !important; }
/* action cards on the dashboard: let the button fill the card */
.card.border-start.border-4 .card-body .col.d-flex { padding: 0; }
.card.border-start.border-4 .card-body .col.d-flex > div { width: 100%; }
.card.border-start.border-4 .card-body .col.d-flex .btn { width: 100%; padding-top: .7rem; padding-bottom: .7rem; }

/* ---------- buttons ---------- */
.btn {
	font-weight: 600;
	font-size: 14px;
	border-radius: var(--gk-radius-sm);
	padding: .55rem 1.1rem;
	transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
}
.btn:active {  }
.btn i { vertical-align: middle; font-size: 1.1em; margin-right: 4px; position: relative; top: -1px; }
.btn.radius-30 { border-radius: 30px; }
.btn-primary {
	color: #fff;
	border: 0;
	background: linear-gradient(135deg, var(--gk-primary-2) 0%, var(--gk-primary) 100%);
	box-shadow: 0 10px 20px -12px rgba(58, 61, 184, .9);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active {
	color: #fff;
	background: linear-gradient(135deg, #6a6ff5 0%, #3236a6 100%);
	box-shadow: 0 14px 26px -12px rgba(58, 61, 184, .95);
}
.btn-primary:focus, .btn-primary:focus-visible { box-shadow: 0 0 0 4px var(--gk-primary-ring); }
.btn-secondary { color: var(--gk-text-2); background: var(--gk-surface-2); border: 1px solid var(--gk-border-strong); }
.btn-secondary:hover, .btn-secondary:focus { color: var(--gk-text); background: var(--gk-hover); border-color: var(--gk-border-strong); }
.btn-danger { border: 0; background: linear-gradient(135deg, #f87171, #dc2626); box-shadow: 0 10px 20px -12px rgba(220, 38, 38, .9); }
.btn-success { border: 0; background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 10px 20px -12px rgba(5, 150, 105, .9); }
.btn-warning { border: 0; color: #fff; background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.btn-info { border: 0; color: #fff; background: linear-gradient(135deg, #38bdf8, #0284c7); }
.btn-outline-primary { color: var(--gk-primary); border-color: rgba(58, 61, 184, .35); }
.btn-outline-primary:hover { color: #fff; background: var(--gk-primary); border-color: var(--gk-primary); }
html.dark-theme .btn-outline-primary { color: #a5a8ff; border-color: rgba(165, 168, 255, .4); }

/* ---------- forms ---------- */
.form-label, label {
	color: var(--gk-text);
	font-weight: 600;
	font-size: 13.5px;
	margin-bottom: .4rem;
}
.form-control, .form-select {
	min-height: 44px;
	border-radius: var(--gk-radius-sm);
	border: 1px solid var(--gk-border-strong);
	background-color: var(--gk-surface);
	color: var(--gk-text);
	font-size: 14px;
	padding: .55rem .85rem;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
textarea.form-control { min-height: 96px; }
.form-control-sm, .form-select-sm { min-height: 36px; padding: .3rem .65rem; font-size: 13px; }
.form-control::placeholder { color: #a3a8c3; }
.form-control:hover, .form-select:hover { border-color: #c4c9de; }
.form-control:focus, .form-select:focus {
	border-color: var(--gk-primary-2);
	box-shadow: 0 0 0 4px var(--gk-primary-ring);
	background-color: var(--gk-surface);
	color: var(--gk-text);
}
.form-control:disabled, .form-control[readonly] { background-color: var(--gk-surface-2); }
.form-control[type="file"] { padding: .5rem .6rem; }
.form-control::file-selector-button {
	border: 0;
	border-radius: 8px;
	margin: -.2rem .75rem -.2rem -.2rem;
	padding: .45rem .9rem;
	background: var(--gk-primary-soft);
	color: var(--gk-primary);
	font-weight: 600;
}
.form-control:hover:not(:disabled):not([readonly])::file-selector-button { background: rgba(58, 61, 184, .16); }
html.dark-theme .form-control, html.dark-theme .form-select {
	background-color: var(--gk-surface-2);
	border-color: var(--gk-border-strong);
	color: var(--gk-text);
}
.input-group-text { border-radius: var(--gk-radius-sm); background: var(--gk-surface-2); border-color: var(--gk-border-strong); color: var(--gk-muted); }
.form-check-input { border-color: var(--gk-border-strong); cursor: pointer; }
.form-check-input:checked { background-color: var(--gk-primary-2); border-color: var(--gk-primary-2); }
.form-check-input:focus { box-shadow: 0 0 0 4px var(--gk-primary-ring); border-color: var(--gk-primary-2); }
.form-switch .form-check-input { width: 2.6em; height: 1.4em; margin-top: .1em; }
.form-switch .form-check-input:checked { background-color: #10b981; border-color: #10b981; }
.text-danger { color: #e3262b !important; }

/* ---------- tables ---------- */
.table { color: var(--gk-text-2); --bs-table-bg: transparent; margin-bottom: 0; font-variant-numeric: tabular-nums; }
.table > :not(caption) > * > * { padding: .5rem .8rem; border-bottom-color: var(--gk-border); }
.table thead th, .table > thead > tr > th, .table thead.table-light th {
	background: var(--gk-surface-2) !important;
	color: var(--gk-muted) !important;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	white-space: normal;   /* long headers may take two lines instead of widening the table */
	line-height: 1.3;
	min-width: 64px;
	padding-top: .6rem !important;
	padding-bottom: .6rem !important;
	border-bottom: 1px solid var(--gk-border) !important;
	border-top: 0;
	vertical-align: middle;
}
.table thead th:first-child { border-top-left-radius: 12px; }
.table thead th:last-child { border-top-right-radius: 12px; }
.table tbody tr { transition: background .15s ease; }
.table tbody tr:nth-child(even) > * { background: color-mix(in srgb, var(--gk-surface-2) 55%, transparent); }
.table tbody tr:hover > * { background: var(--gk-hover); }
.table tbody tr:hover > *:first-child { box-shadow: inset 3px 0 0 var(--gk-primary-2); }
.table tbody td {
	vertical-align: middle;
	font-size: 13px;
	line-height: 1.4;
	white-space: nowrap;   /* one tidy line per value; <br> still breaks */
}
.table tbody td:first-child { color: var(--gk-text); font-weight: 600; }
.table tbody tr:last-child > * { border-bottom: 0; }
/* long free text (marked by JS): wrap in a readable column instead of stretching the table */
.table td.gk-wrap { white-space: normal; width: 230px; min-width: 200px; } /* td ignores max-width; a preferred width makes it wrap */
/* numbers / amounts (marked by JS) */
.table .gk-num { text-align: right; }
.table td.gk-num { color: var(--gk-text); font-weight: 600; }
.table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-accent-bg: transparent; }
.table-bordered > :not(caption) > * > * { border-color: var(--gk-border); }
.table td img, .table td .img-thumbnail {
	max-height: 46px;
	width: auto;
	border-radius: 10px;
	border: 1px solid var(--gk-border);
	background: var(--gk-surface-2);
	object-fit: cover;
}
.table td .form-switch { margin: 0; min-height: 0; }
html.dark-theme .table { color: var(--gk-text-2); }
html.dark-theme .table thead th { background: var(--gk-surface-2) !important; }

/* horizontal scroll: soft edge shadows show there is more to see */
.table-responsive {
	border-radius: 12px;
	background:
		linear-gradient(to right, var(--gk-surface) 30%, transparent) left center / 40px 100% no-repeat local,
		linear-gradient(to left, var(--gk-surface) 30%, transparent) right center / 40px 100% no-repeat local,
		radial-gradient(farthest-side at 0 50%, rgba(20, 24, 70, .14), transparent) left center / 14px 100% no-repeat scroll,
		radial-gradient(farthest-side at 100% 50%, rgba(20, 24, 70, .14), transparent) right center / 14px 100% no-repeat scroll;
}
html.dark-theme .table-responsive {
	background:
		linear-gradient(to right, var(--gk-surface) 30%, transparent) left center / 40px 100% no-repeat local,
		linear-gradient(to left, var(--gk-surface) 30%, transparent) right center / 40px 100% no-repeat local,
		radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .5), transparent) left center / 14px 100% no-repeat scroll,
		radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .5), transparent) right center / 14px 100% no-repeat scroll;
}

/* When .table-responsive wraps a whole DataTables block, scroll only the table row
   (so the toolbar and the pager stay put) and move the edge shadows there. */
.table-responsive:has(> .dataTables_wrapper) { overflow: visible; background: none; border-radius: 0; }
div.dataTables_wrapper > .row:nth-child(2) > [class*="col-"] {
	overflow-x: auto;
	border-radius: 12px;
	background:
		linear-gradient(to right, var(--gk-surface) 30%, transparent) left center / 40px 100% no-repeat local,
		linear-gradient(to left, var(--gk-surface) 30%, transparent) right center / 40px 100% no-repeat local,
		radial-gradient(farthest-side at 0 50%, rgba(20, 24, 70, .14), transparent) left center / 14px 100% no-repeat scroll,
		radial-gradient(farthest-side at 100% 50%, rgba(20, 24, 70, .14), transparent) right center / 14px 100% no-repeat scroll;
}
html.dark-theme div.dataTables_wrapper > .row:nth-child(2) > [class*="col-"] {
	background:
		linear-gradient(to right, var(--gk-surface) 30%, transparent) left center / 40px 100% no-repeat local,
		linear-gradient(to left, var(--gk-surface) 30%, transparent) right center / 40px 100% no-repeat local,
		radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .5), transparent) left center / 14px 100% no-repeat scroll,
		radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .5), transparent) right center / 14px 100% no-repeat scroll;
}

/* table cards: a little less padding so the data gets the room */
.card-body:has(> .table-responsive), .card-body:has(> .dataTables_wrapper) { padding: .85rem 1rem 1rem; }

/* row action icons (.order-actions a) */
.order-actions { gap: 6px; flex-wrap: nowrap; }
.order-actions a {
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	font-size: 16px;
	border-radius: 10px;
	margin-right: 0 !important;
	transition: all .15s ease;
}
.order-actions a:hover {  }
/* colours for .order-actions live in the dark-mode section below (need html-level specificity) */

/* ---------- cell formats (applied by admin-tables.js) ---------- */
.gk-person { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.gk-ava {
	--gk-h: 234;
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .02em;
	color: hsl(var(--gk-h) 62% 38%);
	background: hsl(var(--gk-h) 90% 94%);
	box-shadow: inset 0 0 0 1px hsl(var(--gk-h) 70% 86%);
}
.gk-ava::before { content: attr(data-i); }
html.dark-theme .gk-ava { color: hsl(var(--gk-h) 90% 82%); background: hsl(var(--gk-h) 40% 22%); box-shadow: inset 0 0 0 1px hsl(var(--gk-h) 40% 32%); }
.gk-stack { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.gk-stack-main { color: var(--gk-text); font-weight: 600; }
.gk-stack-sub { color: var(--gk-muted); font-size: 11.5px; font-weight: 500; }
.table tbody td:first-child .gk-stack-main { font-weight: 700; }
.gk-mail, .gk-phone { display: inline-flex; align-items: center; gap: .35rem; color: var(--gk-text-2); }
.gk-mail::before, .gk-phone::before {
	content: "";
	width: 13px;
	height: 13px;
	flex: 0 0 13px;
	opacity: .55;
	background: currentColor;
	-webkit-mask: var(--gk-icon) no-repeat center / contain;
	mask: var(--gk-icon) no-repeat center / contain;
}
.gk-mail { --gk-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.gk-phone { --gk-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.gk-stack-sub.gk-mail, .gk-stack-sub.gk-phone { color: var(--gk-muted); }
.gk-code, .gk-code-inline {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .02em;
}
.gk-code {
	display: inline-block;
	padding: .2rem .5rem;
	border-radius: 7px;
	color: var(--gk-primary);
	background: var(--gk-primary-soft);
	border: 1px solid color-mix(in srgb, var(--gk-primary-2) 18%, transparent);
}
html.dark-theme .gk-code { color: #c7c9ff; }
.gk-pill {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .22rem .6rem .22rem .5rem;
	border-radius: 30px;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: capitalize;
}
.gk-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.gk-pill-ok { color: #047857; background: rgba(16, 185, 129, .12); }
.gk-pill-warn { color: #b45309; background: rgba(245, 158, 11, .14); }
.gk-pill-bad { color: #b91c1c; background: rgba(239, 68, 68, .11); }
html.dark-theme .gk-pill-ok { color: #6ee7b7; }
html.dark-theme .gk-pill-warn { color: #fcd34d; }
html.dark-theme .gk-pill-bad { color: #fca5a5; }
.gk-empty { color: var(--gk-border-strong); font-weight: 600; }
/* existing bootstrap badges inside tables: match the pills */
.table td .badge { padding: .3rem .6rem; font-size: 11px; }

/* ---------- DataTables: toolbar + footer ---------- */
div.dataTables_wrapper > .row:first-child {
	margin: 0 0 .7rem;
	padding: 0;
	align-items: center;
	row-gap: .6rem;
}
div.dataTables_wrapper > .row:first-child > [class*="col-"] { padding: 0; }
div.dataTables_wrapper > .row:last-child {
	margin: .7rem 0 0;
	padding: .7rem 0 0;
	border-top: 1px solid var(--gk-border);
	align-items: center;
	row-gap: .75rem;
}
div.dataTables_wrapper > .row:last-child > [class*="col-"] { padding: 0; }
div.dataTables_wrapper > .row:nth-child(2) { margin: 0; }
div.dataTables_wrapper > .row:nth-child(2) > [class*="col-"] { padding: 0; }
div.dataTables_wrapper div.dataTables_length label,
div.dataTables_wrapper div.dataTables_filter label {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	margin: 0;
	font-weight: 500;
	color: var(--gk-muted);
	font-size: 13px;
}
div.dataTables_wrapper div.dataTables_length select {
	min-height: 38px;
	border-radius: 10px;
	margin: 0;
	padding: 0 2rem 0 .75rem;
	min-width: 78px;
	width: auto;
	display: inline-block;
	font-weight: 600;
}
div.dataTables_wrapper div.dataTables_filter input {
	min-height: 40px;
	width: 260px;
	margin: 0;
	border-radius: 12px;
	padding-left: 2.3rem;
	background: var(--gk-surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237b81a3' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat .8rem center;
}
div.dataTables_wrapper div.dataTables_filter input:focus { background-color: var(--gk-surface); width: 300px; }
div.dataTables_wrapper div.dataTables_filter input { transition: width .2s ease, border-color .15s, box-shadow .15s; }
@media (max-width: 767.98px) {
	div.dataTables_wrapper div.dataTables_filter label { display: flex; width: 100%; }
	div.dataTables_wrapper div.dataTables_filter input, div.dataTables_wrapper div.dataTables_filter input:focus { width: 100%; flex: 1; }
	div.dataTables_wrapper div.dataTables_length, div.dataTables_wrapper div.dataTables_filter,
	div.dataTables_wrapper div.dataTables_info, div.dataTables_wrapper div.dataTables_paginate { text-align: left !important; }
	div.dataTables_wrapper div.dataTables_paginate ul.pagination { justify-content: flex-start !important; }
	.card-header .d-flex { flex-wrap: wrap; gap: .75rem; }
	.card-header .ms-auto .btn { margin-top: 0 !important; }
}
div.dataTables_wrapper div.dataTables_info {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: .4rem .8rem !important;
	border-radius: 30px;
	background: var(--gk-surface-2);
	border: 1px solid var(--gk-border);
	color: var(--gk-text-2);
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
}
div.dataTables_wrapper div.dataTables_info::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--gk-primary-2);
	box-shadow: 0 0 0 3px var(--gk-primary-soft);
}
/* processing loader: floating card with a brand spinner; rows behind it dim while data loads */
div.dataTables_processing, div.dataTables_wrapper div.dataTables_processing {
	position: absolute;
	top: 50%;
	left: 50%;
	width: auto;
	min-width: 0;
	height: auto;
	margin: 0 !important;
	transform: translate(-50%, -50%);
	padding: .8rem 1.15rem !important;
	background: color-mix(in srgb, var(--gk-surface) 92%, transparent);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border: 1px solid var(--gk-border);
	border-radius: 16px;
	box-shadow: 0 18px 40px -18px rgba(20, 24, 70, .45);
	z-index: 6;
	text-align: left;
}
div.dataTables_processing > div:last-child { display: none; } /* DataTables 1.13+ adds its own dots */
.gk-loader { display: inline-flex; align-items: center; gap: .7rem; white-space: nowrap; }
.gk-spinner {
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	border-radius: 50%;
	background: conic-gradient(from 0deg, transparent 0 25%, var(--gk-sky), var(--gk-primary-2), var(--gk-accent));
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px));
	animation: gk-spin .75s linear infinite;
}
.gk-loader-text { color: var(--gk-text); font-weight: 700; font-size: 13.5px; }
.gk-loader-text small { display: block; color: var(--gk-muted); font-weight: 500; font-size: 11.5px; margin-top: 1px; }
@keyframes gk-spin { to { transform: rotate(360deg); } }
div.dataTables_wrapper > .row:nth-child(2) > [class*="col-"] { position: relative; min-height: 120px; }
div.dataTables_wrapper:has(.dataTables_processing[style*="block"]) table.dataTable > tbody {
	opacity: .35;
	filter: blur(1.2px);
	transition: opacity .2s ease, filter .2s ease;
	pointer-events: none;
}
table.dataTable > tbody { transition: opacity .2s ease, filter .2s ease; }
@media (prefers-reduced-motion: reduce) { .gk-spinner { animation-duration: 2s; } }
table.dataTable thead > tr > th.sorting::before, table.dataTable thead > tr > th.sorting::after,
table.dataTable thead > tr > th.sorting_asc::before, table.dataTable thead > tr > th.sorting_asc::after,
table.dataTable thead > tr > th.sorting_desc::before, table.dataTable thead > tr > th.sorting_desc::after { opacity: .22; }
table.dataTable thead > tr > th.sorting_asc::before, table.dataTable thead > tr > th.sorting_desc::after { opacity: .9; color: var(--gk-primary-2); }
table.dataTable thead th.sorting_asc, table.dataTable thead th.sorting_desc { color: var(--gk-primary) !important; }
html.dark-theme table.dataTable thead th.sorting_asc, html.dark-theme table.dataTable thead th.sorting_desc { color: #b4b7ff !important; }
table.dataTable { margin-top: 0 !important; margin-bottom: 0 !important; border-collapse: separate !important; border-spacing: 0; }
table.dataTable td.dataTables_empty, .table td[colspan] { white-space: normal; }
table.dataTable td.dataTables_empty {
	padding: 2.75rem 1rem !important;
	color: var(--gk-muted);
	font-weight: 600 !important;
	text-align: center;
	background: transparent !important;
	box-shadow: none !important;
}
table.dataTable td.dataTables_empty::before {
	content: "";
	display: block;
	width: 46px;
	height: 46px;
	margin: 0 auto .7rem;
	border-radius: 14px;
	background: var(--gk-primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%235a5ff0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M3 7h18M3 12h18M3 17h10'/%3E%3C/svg%3E") no-repeat center;
}
.dt-buttons { display: inline-flex; gap: 6px; }
.dt-buttons .btn, .dt-buttons .dt-button {
	border-radius: 10px !important;
	background: var(--gk-surface-2) !important;
	border: 1px solid var(--gk-border-strong) !important;
	color: var(--gk-text-2) !important;
	font-weight: 600;
	font-size: 13px;
	padding: .45rem .9rem !important;
	box-shadow: none !important;
	margin: 0 !important;
}
.dt-buttons .btn:hover, .dt-buttons .dt-button:hover { color: var(--gk-primary) !important; background: var(--gk-primary-soft) !important; }

/* ---------- pagination (DataTables + Laravel links) ---------- */
.pagination {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 3px;
	margin: 0;
	padding: 4px;
	border-radius: 14px;
	background: var(--gk-surface-2);
	border: 1px solid var(--gk-border);
}
div.dataTables_wrapper div.dataTables_paginate ul.pagination { margin: 0; justify-content: flex-end; }
div.dataTables_wrapper div.dataTables_paginate { display: flex; justify-content: flex-end; }
.page-item .page-link,
.page-item:first-child .page-link,
.page-item:last-child .page-link {
	border: 0;
	border-radius: 10px !important;
	margin: 0 !important;
	color: var(--gk-text-2);
	background: transparent;
	min-width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	padding: 0 .65rem;
	font-weight: 600;
	font-size: 13px;
	line-height: 1;
	transition: background .15s ease, color .15s ease, transform .15s ease;
}
.page-item .page-link:hover { color: var(--gk-primary); background: var(--gk-surface); box-shadow: 0 1px 2px rgba(20, 24, 70, .08); }
.page-item .page-link:focus { box-shadow: 0 0 0 3px var(--gk-primary-ring); z-index: 1; }
.page-item.active .page-link,
.page-item.active .page-link:hover {
	color: #fff;
	background: linear-gradient(135deg, var(--gk-primary-2), var(--gk-primary));
	box-shadow: 0 6px 14px -8px rgba(58, 61, 184, .95);
}
.page-item.disabled .page-link { color: #b8bcd2; background: transparent; box-shadow: none; }
.page-item.disabled:not(.previous):not(.next):not(.first):not(.last) .page-link { min-width: 22px; padding: 0 2px; letter-spacing: .1em; } /* ellipsis */
/* arrows: DataTables (‹ › « ») and Laravel (‹ ›) */
.page-item.previous .page-link, .page-item.next .page-link,
.page-item.first .page-link, .page-item.last .page-link,
.pagination .page-item:first-child .page-link[rel="prev"], .pagination .page-item:last-child .page-link[rel="next"],
.pagination .page-item:first-child span.page-link, .pagination .page-item:last-child span.page-link {
	font-size: 19px;
	font-weight: 500;
	padding: 0 .55rem;
}
html.dark-theme .pagination { background: var(--gk-surface-2); border-color: var(--gk-border); }
html.dark-theme .page-item .page-link { background: transparent; color: var(--gk-text-2); }
html.dark-theme .page-item .page-link:hover { background: var(--gk-hover); color: #fff; }
html.dark-theme .page-item.disabled .page-link { color: #4a4f78; }
/* Laravel bootstrap-5 paginator wrapper ("Showing x to y of z" + links) */
nav[role="navigation"] > .d-sm-flex, nav > .d-none.flex-sm-fill { gap: 1rem; flex-wrap: wrap; }
nav[role="navigation"] p.small.text-muted, nav .d-sm-flex p.small.text-muted {
	margin: 0;
	padding: .4rem .8rem;
	border-radius: 30px;
	background: var(--gk-surface-2);
	border: 1px solid var(--gk-border);
	color: var(--gk-text-2) !important;
	font-size: 12.5px !important;
	font-weight: 600;
}
nav[role="navigation"] p.small.text-muted .fw-semibold { color: var(--gk-primary); }
.card-body > nav[role="navigation"], .card-body > nav:has(> .pagination), .card-body > div > nav[role="navigation"] {
	margin-top: .9rem;
	padding-top: .85rem;
	border-top: 1px solid var(--gk-border);
}

/* side forms next to a list (col-4 + col-8 pages): keep the form in view while scrolling */
@media (min-width: 992px) {
	.page-content .row > .col-4 > .card:has(form), .page-content .row > .col-md-4 > .card:has(form) { position: sticky; top: 84px; }
}
@media (max-width: 991.98px) {
	.page-content > .row > .col-4, .page-content > .row > .col-8,
	.page-content.row > .col-4, .page-content.row > .col-8,
	.page-content .row > .col-4:has(> .card), .page-content .row > .col-8:has(> .card) { flex: 0 0 100%; width: 100%; max-width: 100%; } /* vendors.css also caps .col-* with max-width */
}

/* ---------- dark mode: beat the template's html.dark-theme rules ---------- */
html.dark-theme .sidebar-wrapper {
	background: var(--gk-side-bg);
	border-right: 1px solid var(--gk-border);
}
html.dark-theme .sidebar-wrapper .sidebar-header {
	background: var(--gk-surface);
	border-right: 0;
	border-bottom: 1px solid var(--gk-border);
}
html.dark-theme .sidebar-wrapper .toggle-icon { color: #c7c9ff; background: rgba(255, 255, 255, .08); }
html.dark-theme .sidebar-wrapper .metismenu a { color: var(--gk-side-text); }
html.dark-theme .sidebar-wrapper .metismenu ul a { color: rgba(225, 228, 255, .62); }
html.dark-theme .sidebar-wrapper .metismenu a:hover,
html.dark-theme .sidebar-wrapper .metismenu a:focus,
html.dark-theme .sidebar-wrapper .metismenu ul .mm-active > a { color: #fff; background: var(--gk-side-hover); }
html.dark-theme .sidebar-wrapper .metismenu > .mm-active > a {
	color: #fff;
	background: linear-gradient(135deg, var(--gk-primary-2) 0%, var(--gk-primary) 100%);
}
html.dark-theme .table td, html.dark-theme .table th { border-color: var(--gk-border); }
html.dark-theme .table-light { --bs-table-bg: var(--gk-surface-2); }
html .order-actions a { background: var(--gk-surface); border: 1px solid var(--gk-border); color: var(--gk-text-2); }
html .order-actions a:has(.bxs-edit) { color: var(--gk-primary); background: var(--gk-primary-soft); border-color: transparent; }
html .order-actions a:has(.bxs-show) { color: #0891b2; background: rgba(8, 145, 178, .1); border-color: transparent; }
html .order-actions a:has(.bxs-trash), html .order-actions a:has(.bx-trash) { color: #dc2626; background: rgba(220, 38, 38, .09); border-color: transparent; }
html.dark-theme .order-actions a:has(.bxs-edit) { color: #b4b7ff; }
html.dark-theme .order-actions a:has(.bxs-show) { color: #67e8f9; background: rgba(103, 232, 249, .1); }
html.dark-theme .order-actions a:has(.bxs-trash), html.dark-theme .order-actions a:has(.bx-trash) { color: #fca5a5; background: rgba(252, 165, 165, .1); }
html .order-actions a:hover { color: #fff; background: var(--gk-primary); border-color: var(--gk-primary); }
html .order-actions a:has(.bxs-show):hover { color: #fff; background: #0891b2; }
html .order-actions a:has(.bxs-trash):hover, html .order-actions a:has(.bx-trash):hover { color: #fff; background: #dc2626; }

/* ---------- space: half-width centred cards (col-6 m-auto) ---------- */
/* Old pattern squeezed small forms/detail views into 50% width (also on phones). */
.page-content > .col-6.m-auto {
	flex: 0 0 auto;
	width: 100%;
	max-width: 980px;
}
/* Simple forms whose fields sit directly in <form>: lay fields out in a responsive grid. */
.page-content > .col-6.m-auto form:not(:has(> .row)) {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	column-gap: 1.5rem;
	row-gap: .25rem;
	align-items: start;
}
.page-content > .col-6.m-auto form:not(:has(> .row)) > div { width: auto; margin-bottom: .75rem; }
.page-content > .col-6.m-auto form:not(:has(> .row)) > div:last-child { grid-column: 1 / -1; margin-top: .25rem !important; }
.page-content > .col-6.m-auto form:not(:has(> .row)) .form-select.mb-3 { margin-bottom: 0 !important; }
.page-content > .col-6.m-auto form img[id] { margin-top: .6rem; border-radius: 12px; border: 1px solid var(--gk-border); object-fit: cover; }

/* tables: keep long cells readable without blowing up row height */
.table td { max-width: 420px; }
.table td .btn { padding: .35rem .8rem; font-size: 13px; }

/* ---------- dashboard ---------- */
.gk-dash .card { margin-bottom: 0; }
/* welcome banner */
.gk-hero {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
	padding: 1.6rem 1.75rem;
	margin-bottom: 1rem;
	border-radius: 20px;
	color: #fff;
	background:
		radial-gradient(600px 260px at 100% 0%, rgba(30, 167, 228, .45), transparent 60%),
		radial-gradient(500px 240px at 0% 120%, rgba(227, 38, 43, .28), transparent 60%),
		linear-gradient(135deg, #1b1e52 0%, #2c3192 60%, #3a3db8 100%);
	box-shadow: 0 24px 48px -28px rgba(27, 30, 82, .85);
}
.gk-hero::after {
	/* dotted texture */
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
	background-size: 18px 18px;
	mask-image: linear-gradient(90deg, transparent 35%, #000);
	-webkit-mask-image: linear-gradient(90deg, transparent 35%, #000);
	pointer-events: none;
}
.gk-hero > * { position: relative; z-index: 1; }
.gk-hero-text { flex: 1 1 420px; min-width: 0; }
.gk-hero-date {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	margin: 0 0 .6rem;
	padding: .25rem .7rem;
	border-radius: 30px;
	background: rgba(255, 255, 255, .12);
	font-size: 12px;
	font-weight: 600;
	color: rgba(255, 255, 255, .85);
}
.gk-hero-title { margin: 0; color: #fff; font-size: 1.65rem; font-weight: 800; letter-spacing: -.5px; }
.gk-hero-title span { background: linear-gradient(90deg, #a5f3fc, #c7d2fe); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gk-hero-sub { margin: .35rem 0 1.1rem; color: rgba(225, 228, 255, .78); font-size: 14px; }
.gk-hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.gk-hero-btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .6rem 1rem;
	border-radius: 12px;
	font-size: 13.5px;
	font-weight: 700;
	color: #fff !important;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .18);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: background .2s, transform .2s;
}
.gk-hero-btn i { font-size: 18px; }
.gk-hero-btn:hover { background: rgba(255, 255, 255, .22);  }
.gk-hero-highlight {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: .2rem;
	min-width: 240px;
	padding: 1.1rem 1.3rem;
	border-radius: 16px;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .16);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.gk-hero-highlight-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(225, 228, 255, .75); }
.gk-hero-highlight-value { font-size: 2rem; font-weight: 800; letter-spacing: -1px; line-height: 1.15; color: #fff; }
.gk-hero-highlight-meta { display: inline-flex; align-items: center; gap: .3rem; font-size: 12.5px; font-weight: 600; color: #6ee7b7; }
.gk-hero-spark { position: relative; height: 56px; margin: .55rem -.35rem -.35rem; }
/* slow-drifting glow behind the hero text */
.gk-hero::before {
	content: "";
	position: absolute;
	width: 340px;
	height: 340px;
	left: 38%;
	top: -180px;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(165, 243, 252, .28), transparent);
	animation: gk-hero-glow 12s ease-in-out infinite alternate;
	pointer-events: none;
}
@keyframes gk-hero-glow { to { transform: translate(-120px, 60px) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .gk-hero::before { animation: none; } }

/* section titles between dashboard blocks */
.gk-section-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .75rem; margin: 1.6rem 0 .8rem; }
.gk-section-title h6 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -.2px; color: var(--gk-text); }
.gk-section-title span { font-size: 12.5px; font-weight: 500; color: var(--gk-muted); }

/* quick create strip */
.gk-quick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
.gk-quick-item {
	--gk-k: #5a5ff0;
	display: flex;
	align-items: center;
	gap: .65rem;
	padding: .75rem .9rem;
	border-radius: 14px;
	background: var(--gk-surface);
	border: 1px solid var(--gk-border);
	box-shadow: var(--gk-shadow);
	font-size: 13.5px;
	font-weight: 700;
	color: var(--gk-text) !important;
	transition: transform .2s, border-color .2s, box-shadow .2s;
}
.gk-quick-item i {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border-radius: 11px;
	font-size: 19px;
	color: var(--gk-k);
	background: color-mix(in srgb, var(--gk-k) 12%, transparent);
	transition: background .2s, color .2s;
}
.gk-quick-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gk-quick-item span::before { content: "+ "; color: var(--gk-muted); font-weight: 600; }
.gk-quick-item:hover {  border-color: color-mix(in srgb, var(--gk-k) 40%, var(--gk-border)); box-shadow: 0 16px 30px -22px color-mix(in srgb, var(--gk-k) 70%, transparent); }
.gk-quick-item:hover i { background: var(--gk-k); color: #fff; }
@media (max-width: 1399.98px) { .gk-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .gk-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
	.gk-hero { padding: 1.25rem; }
	.gk-hero-title { font-size: 1.3rem; }
	.gk-hero-highlight { min-width: 0; width: 100%; }
	.gk-hero-btn { flex: 1 1 100%; justify-content: center; }
}

/* primary KPI cards */
.gk-kpis { margin-bottom: 0; }
.gk-kpi {
	--gk-k: #5a5ff0;
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-areas: "icon label" "icon value" "icon link";
	align-items: center;
	column-gap: .9rem;
	row-gap: .15rem;
	height: 100%;
	padding: 1.2rem 1.1rem;
	border-radius: 20px;
	background:
		radial-gradient(260px 150px at 100% 0%, color-mix(in srgb, var(--gk-k) 13%, transparent), transparent 70%),
		var(--gk-surface);
	border: 1px solid var(--gk-border);
	box-shadow: var(--gk-shadow);
	color: inherit;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
/* decorative ring, bottom-right */
.gk-kpi::after {
	content: "";
	position: absolute;
	right: -46px;
	bottom: -62px;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	border: 22px solid var(--gk-k);
	opacity: .07;
	pointer-events: none;
	transition: transform .4s ease;
}
.gk-kpi:hover {  box-shadow: 0 24px 44px -24px color-mix(in srgb, var(--gk-k) 55%, rgba(20, 24, 70, .4)); border-color: color-mix(in srgb, var(--gk-k) 35%, var(--gk-border)); }
.gk-kpi:hover::after { transform: scale(1.12); }
.gk-kpi-icon {
	grid-area: icon;
	align-self: center;
	width: 52px;
	height: 52px;
	display: grid;
	place-items: center;
	border-radius: 15px;
	font-size: 25px;
	color: #fff;
	background: linear-gradient(135deg, color-mix(in srgb, var(--gk-k) 70%, #fff), var(--gk-k));
	box-shadow: 0 12px 22px -12px var(--gk-k), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.gk-kpi-label { grid-area: label; align-self: end; font-size: 13px; font-weight: 600; color: var(--gk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gk-kpi-value { grid-area: value; font-size: 1.75rem; font-weight: 800; letter-spacing: -.8px; color: var(--gk-text); line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gk-kpi-link {
	grid-area: link;
	align-self: start;
	justify-self: start;
	display: inline-flex;
	align-items: center;
	gap: .15rem;
	margin-top: .35rem;
	font-size: 12px;
	font-weight: 700;
	color: var(--gk-k);
	white-space: nowrap;
}
.gk-kpi-link i { font-size: 16px; transition: transform .2s; }
.gk-kpi:hover .gk-kpi-link i { transform: translateX(3px); }

/* chart cards */
.gk-card-sub { color: var(--gk-muted); font-size: 12px; margin-top: 2px; }
.card-header .gk-card-sub { padding-left: 18px; }
.gk-legend {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .3rem .65rem;
	border-radius: 30px;
	background: var(--gk-surface-2);
	border: 1px solid var(--gk-border);
	font-size: 12px;
	font-weight: 600;
	color: var(--gk-text-2);
}
.gk-legend > span { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.gk-chart-lg { position: relative; height: 320px; }
.gk-chart-md { position: relative; min-height: 220px; }
.gk-week-total { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .75rem; }
.gk-week-total-value { font-size: 1.6rem; font-weight: 800; letter-spacing: -.5px; color: var(--gk-text); }
.gk-week-total-label { font-size: 12.5px; font-weight: 600; color: var(--gk-muted); }

/* metric tiles */
.gk-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.gk-tile {
	--gk-k: #5a5ff0;
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas: "icon label" "icon value";
	column-gap: .9rem;
	align-items: center;
	padding: 1rem 1.05rem;
	border-radius: 16px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--gk-k) 7%, var(--gk-surface)), var(--gk-surface) 65%);
	border: 1px solid color-mix(in srgb, var(--gk-k) 14%, var(--gk-border));
	color: inherit;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}
a.gk-tile::after {
	content: "\eb43"; /* boxicons bx-right-arrow-alt */
	font-family: boxicons;
	position: absolute;
	right: .9rem;
	top: 50%;
	transform: translate(-4px, -50%);
	opacity: 0;
	font-size: 18px;
	color: var(--gk-k);
	transition: opacity .2s, transform .2s;
}
a.gk-tile:hover { border-color: color-mix(in srgb, var(--gk-k) 40%, var(--gk-border)); box-shadow: 0 16px 30px -22px color-mix(in srgb, var(--gk-k) 70%, transparent);  }
a.gk-tile:hover::after { opacity: 1; transform: translate(0, -50%); }
.gk-tile-wide { grid-column: 1 / -1; }
.gk-tile-icon {
	grid-area: icon;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 13px;
	font-size: 21px;
	color: #fff;
	background: linear-gradient(135deg, color-mix(in srgb, var(--gk-k) 70%, #fff), var(--gk-k));
	box-shadow: 0 10px 18px -10px var(--gk-k);
}
.gk-tile-label { grid-area: label; font-size: 12.5px; font-weight: 600; color: var(--gk-muted); line-height: 1.3; padding-right: 1.4rem; }
.gk-tile { container-type: inline-size; }
.gk-tile-value { grid-area: value; font-size: clamp(.95rem, 9.6cqi, 1.3rem); white-space: nowrap; font-weight: 800; letter-spacing: -.4px; color: var(--gk-text); line-height: 1.25; font-variant-numeric: tabular-nums; }
@media (max-width: 575.98px) { .gk-tiles { grid-template-columns: 1fr; } }

/* ---------- forms: layout & UX (with admin-forms.js) ---------- */
.page-content form .card-body, .page-content .card-body:has(> form) { padding: 1.4rem 1.5rem; }
.page-content form .row.g-3, .page-content form.row.g-3 { --bs-gutter-y: 1.1rem; }
/* labels: required marker + highlight the field being edited */
.gk-req { color: var(--gk-accent) !important; margin-left: 3px; font-weight: 700; }
.form-label > span:not(.gk-req) { color: var(--gk-accent); }
[class*="col-"]:focus-within > .form-label,
.mb-3:focus-within > .form-label,
.form-group:focus-within > label { color: var(--gk-primary-2); }
.form-group { margin-bottom: 1rem; }
.form-text, small.text-muted { color: var(--gk-muted) !important; font-size: 12px; }
textarea.form-control { resize: vertical; line-height: 1.5; }
select[multiple].form-control, select[multiple].form-select { min-height: 110px; padding: .4rem; }
select[multiple] option { padding: .35rem .5rem; border-radius: 6px; }
select[multiple] option:checked { background: var(--gk-primary-soft) linear-gradient(0deg, var(--gk-primary-soft), var(--gk-primary-soft)); color: var(--gk-primary); }
/* validation */
.page-content form span[role="alert"], .page-content form .text-danger:not(.gk-req):not(label *) { font-size: 12px !important; font-weight: 600; }
.form-control.is-invalid, .form-select.is-invalid { border-color: #ef4444; }
.form-control.is-invalid:focus, .form-select.is-invalid:focus { box-shadow: 0 0 0 4px rgba(239, 68, 68, .15); }
/* horizontal forms (label column + field column) */
.col-form-label { padding-top: calc(.55rem + 1px); padding-bottom: calc(.55rem + 1px); }

/* file inputs: dashed upload box */
.form-control[type="file"] {
	min-height: 52px;
	padding: .45rem .5rem;
	border-style: dashed;
	border-width: 1.5px;
	background: var(--gk-surface-2);
	cursor: pointer;
}
.form-control[type="file"]:hover { border-color: var(--gk-primary-2); background: var(--gk-primary-soft); }
.form-control[type="file"]::file-selector-button {
	margin: 0 .85rem 0 0;
	padding: .55rem 1rem;
	border-radius: 9px;
	background: linear-gradient(135deg, var(--gk-primary-2), var(--gk-primary));
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	box-shadow: 0 6px 12px -8px rgba(58, 61, 184, .9);
}
.form-control:hover:not(:disabled):not([readonly])::file-selector-button { background: linear-gradient(135deg, #6a6ff5, #3236a6); }
.gk-file-previews { display: flex; flex-wrap: wrap; gap: .5rem; }
.gk-file-previews:not(:empty) { margin-top: .6rem; }
.gk-file-previews img, .page-content form img#frame, .page-content form img[id^="frame"], .page-content form .img-thumbnail {
	width: 84px;
	height: 84px;
	object-fit: cover;
	border-radius: 12px;
	border: 1px solid var(--gk-border);
	background: var(--gk-surface-2);
	padding: 3px;
	box-shadow: var(--gk-shadow);
}
.page-content form img#frame { margin-top: .6rem; }

/* password eye */
.gk-has-eye { position: relative; }
.gk-has-eye > input[type="password"], .gk-has-eye > input[data-gk-eye] { padding-right: 2.6rem; }
.gk-eye {
	position: absolute;
	right: 6px;
	bottom: 6px;
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--gk-muted);
	font-size: 18px;
	cursor: pointer;
}
.gk-eye:hover { color: var(--gk-primary); background: var(--gk-primary-soft); }
#show_hide_password .input-group-text { background: var(--gk-surface-2); height: auto !important; }
#show_hide_password .input-group-text a { color: var(--gk-muted); }

/* sticky save: bottom bar for long forms, sticky header when Save lives in the card header */
.gk-form-actions {
	position: sticky;
	bottom: 0;
	z-index: 4;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: .6rem;
	margin: .75rem 0 0 !important;
	padding: .7rem .8rem !important;
	width: 100% !important;
	max-width: none !important;
	flex: 0 0 auto !important;
	background: var(--gk-surface); /* solid on purpose: backdrop-filter here made the whole card repaint washed out */
	border: 1px solid var(--gk-border);
	border-radius: 14px;
	box-shadow: 0 -10px 30px -22px rgba(20, 24, 70, .45);
}
.gk-form-actions > div { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.gk-form-actions .btn { min-width: 130px; padding-top: .65rem; padding-bottom: .65rem; }
.gk-form-actions.text-center { justify-content: center; }
.gk-sticky-head { position: sticky; top: 64px; z-index: 4; background: var(--gk-surface) !important; border-radius: var(--gk-radius) var(--gk-radius) 0 0; box-shadow: 0 10px 24px -22px rgba(20, 24, 70, .5); }
.gk-sticky-head .btn { min-width: 110px; }

/* role permissions */
.gk-perm-card { border-radius: 14px !important; box-shadow: none; height: calc(100% - 1rem); }
.gk-perm-card .card-header {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .7rem .9rem;
	background: var(--gk-surface-2) !important;
}
.gk-perm-card .card-header > :first-child { flex: 1 1 auto; min-width: 0; }
.gk-perm-card .card-header label { margin: 0; font-weight: 700; font-size: 13.5px; color: var(--gk-text); text-transform: capitalize; }
.gk-perm-card .card-header::after {
	content: attr(data-count);
	order: 2;
	margin-left: auto;
	padding: .15rem .5rem;
	border-radius: 30px;
	background: var(--gk-primary-soft);
	color: var(--gk-primary);
	font-size: 11px;
	font-weight: 700;
}
.gk-select-all {
	order: 3;
	border: 1px solid var(--gk-border-strong);
	background: var(--gk-surface);
	color: var(--gk-text-2);
	border-radius: 8px;
	padding: .2rem .55rem;
	font-size: 11.5px;
	font-weight: 700;
	white-space: nowrap;
	flex: 0 0 auto;
}
.gk-select-all:hover { color: var(--gk-primary); border-color: var(--gk-primary-2); }
.gk-perm-card .card-body { padding: .5rem .6rem !important; height: auto !important; max-height: 220px; overflow-y: auto; }
.gk-perm-card [class^="icheck"] { display: flex; align-items: center; gap: .55rem; padding: .35rem .45rem; border-radius: 8px; }
.gk-perm-card [class^="icheck"]:hover { background: var(--gk-hover); }
.gk-perm-card [class^="icheck"] label { margin: 0; font-weight: 500; font-size: 13px; color: var(--gk-text-2); cursor: pointer; text-transform: capitalize; }
.gk-perm-card [class^="icheck"]:has(input:checked) label { color: var(--gk-text); font-weight: 600; }
.page-content input[type="checkbox"]:not(.form-check-input), .page-content input[type="radio"]:not(.form-check-input) {
	width: 16px;
	height: 16px;
	accent-color: var(--gk-primary-2);
	cursor: pointer;
	flex: 0 0 16px;
}
@media (max-width: 991.98px) {
	.page-content .row > .col-4:has(> .gk-perm-card) { flex: 0 0 50%; width: 50%; max-width: 50%; }
}
@media (max-width: 575.98px) {
	.page-content .row > .col-4:has(> .gk-perm-card) { flex: 0 0 100%; width: 100%; max-width: 100%; }
	.gk-form-actions .btn { flex: 1 1 auto; }
}

/* ---------- badges / alerts / misc ---------- */
.badge { font-weight: 600; font-size: 11.5px; padding: .45em .8em; border-radius: 30px; letter-spacing: .02em; }
.badge.bg-success { background: rgba(16, 185, 129, .13) !important; color: #047857; }
.badge.bg-danger { background: rgba(239, 68, 68, .12) !important; color: #b91c1c; }
.badge.bg-warning { background: rgba(245, 158, 11, .15) !important; color: #b45309; }
.badge.bg-info { background: rgba(14, 165, 233, .13) !important; color: #0369a1; }
.badge.bg-primary { background: var(--gk-primary-soft) !important; color: var(--gk-primary); }
.badge.bg-secondary { background: rgba(100, 116, 139, .14) !important; color: #475569; }
html.dark-theme .badge.bg-success { color: #6ee7b7; }
html.dark-theme .badge.bg-danger { color: #fca5a5; }
html.dark-theme .badge.bg-warning { color: #fcd34d; }
html.dark-theme .badge.bg-info { color: #7dd3fc; }
html.dark-theme .badge.bg-primary { color: #c7c9ff; }
.alert { border-radius: 12px; border: 1px solid transparent; font-weight: 500; }
.modal-content { border: 1px solid var(--gk-border); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(20, 24, 70, .35); background: var(--gk-surface); }
.modal-header { border-bottom-color: var(--gk-border); padding: 1.1rem 1.4rem; }
.modal-footer { border-top-color: var(--gk-border); }
.modal-title { font-weight: 700; color: var(--gk-text); }
.dropdown-menu {
	border: 1px solid var(--gk-border);
	border-radius: 14px;
	box-shadow: 0 20px 40px -20px rgba(20, 24, 70, .35);
	padding: .4rem;
	background: var(--gk-surface);
}
.dropdown-item { border-radius: 9px; padding: .55rem .8rem; font-weight: 500; color: var(--gk-text-2); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--gk-primary-soft); color: var(--gk-primary); }
.dropdown-item i { margin-right: 8px; font-size: 18px; }
.nav-tabs { border-bottom-color: var(--gk-border); gap: 4px; }
.nav-tabs .nav-link { border: 0; border-radius: 10px 10px 0 0; color: var(--gk-muted); font-weight: 600; }
.nav-tabs .nav-link.active { color: var(--gk-primary); background: transparent; box-shadow: inset 0 -2px 0 var(--gk-primary-2); }
.nav-pills .nav-link.active { background: linear-gradient(135deg, var(--gk-primary-2), var(--gk-primary)); }
.list-group-item { border-color: var(--gk-border); background: var(--gk-surface); color: var(--gk-text-2); }
.back-to-top {
	border-radius: 14px;
	background: linear-gradient(135deg, var(--gk-primary-2), var(--gk-primary));
	box-shadow: 0 12px 24px -12px rgba(58, 61, 184, .9);
}
.back-to-top:hover { background: linear-gradient(135deg, #6a6ff5, #3236a6); }
.select2-container--bootstrap4 .select2-selection, .select2-container--default .select2-selection--single {
	border-radius: var(--gk-radius-sm) !important;
	border-color: var(--gk-border-strong) !important;
	min-height: 44px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 42px; color: var(--gk-text); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }
.select2-dropdown { border-color: var(--gk-border-strong); border-radius: 12px; overflow: hidden; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--gk-primary-2); }

/* SweetAlert2 */
.swal2-popup { border-radius: 18px !important; font-family: var(--gk-font) !important; }
.swal2-styled.swal2-confirm { border-radius: 10px !important; background: linear-gradient(135deg, var(--gk-primary-2), var(--gk-primary)) !important; }
.swal2-styled.swal2-cancel { border-radius: 10px !important; }
.swal2-toast { border-radius: 14px !important; box-shadow: var(--gk-shadow-hover) !important; }


/* subtle page entrance */
@media (prefers-reduced-motion: no-preference) {
	.page-content > .card, .page-content > .row, .page-content > .col-12, .page-content > div {
		animation: gk-rise .38s ease both;
	}
	.page-content > .row:nth-child(2) { animation-delay: .05s; }
	.page-content > .row:nth-child(3) { animation-delay: .1s; }
	.page-content > .row:nth-child(4) { animation-delay: .15s; }
}
@keyframes gk-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- admin login (body.gk-auth) ---------- */
.gk-auth { min-height: 100vh; background: #fff; }
.gk-auth-shell {
	position: relative;
	overflow: hidden;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 32px 16px;
}
.gk-auth-card {
	position: relative;
	z-index: 1;
	overflow: hidden;
	width: 100%;
	max-width: 460px;
	padding: 44px 40px 34px;
	background: rgba(255, 255, 255, .9);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-radius: 28px;
	box-shadow:
		0 2px 4px rgba(20, 24, 70, .04),
		0 24px 60px -24px rgba(20, 24, 70, .22),
		0 60px 110px -50px rgba(58, 61, 184, .35);
	animation: gk-card-in .6s cubic-bezier(.2, .7, .3, 1) both;
}
/* soft brand glow behind the logo */
.gk-auth-card::before {
	content: "";
	position: absolute;
	top: -120px;
	left: 50%;
	width: 420px;
	height: 260px;
	transform: translateX(-50%);
	background: radial-gradient(closest-side, rgba(90, 95, 240, .14), rgba(30, 167, 228, .06) 60%, transparent);
	pointer-events: none;
}
.gk-auth-card > * { position: relative; }
@keyframes gk-card-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.gk-auth-foot { position: relative; z-index: 1; }

/* decorative background: soft brand orbs, faint dot grid, floating feature chips */
.gk-auth-deco { position: absolute; inset: 0; pointer-events: none; }
.gk-auth-deco::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(58, 61, 184, .14) 1.2px, transparent 1.2px);
	background-size: 24px 24px;
	mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 30%, #000 60%, transparent 95%);
	-webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 30%, #000 60%, transparent 95%);
}
.gk-auth-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.gk-auth-orb--a { width: 420px; height: 420px; top: -160px; left: -120px; background: rgba(30, 167, 228, .45); animation: gk-orb 14s ease-in-out infinite alternate; }
.gk-auth-orb--b { width: 460px; height: 460px; bottom: -200px; right: -140px; background: rgba(90, 95, 240, .45); animation: gk-orb 16s ease-in-out infinite alternate-reverse; }
.gk-auth-orb--c { width: 260px; height: 260px; bottom: 8%; left: 6%; background: rgba(227, 38, 43, .22); animation: gk-orb 18s ease-in-out infinite alternate; }
@keyframes gk-orb { to { transform: translate(40px, 30px) scale(1.08); } }
.gk-auth-chip {
	position: absolute;
	display: none;
	align-items: center;
	gap: 12px;
	padding: 12px 18px 12px 12px;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(8px);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(20, 24, 70, .05), 0 18px 40px -16px rgba(20, 24, 70, .28);
	animation: gk-float 6s ease-in-out infinite;
}
.gk-auth-chip > i {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	font-size: 21px;
	color: #fff;
}
.gk-auth-chip b { display: block; font-size: 14px; font-weight: 700; color: var(--gk-text); line-height: 1.2; }
.gk-auth-chip small { font-size: 12px; color: var(--gk-muted); }
.gk-auth-chip--1 { top: 16%; left: calc(50% - 560px); }
.gk-auth-chip--1 > i { background: linear-gradient(135deg, #1ea7e4, #3a7be0); }
.gk-auth-chip--2 { top: 22%; right: calc(50% - 560px); animation-delay: -1.5s; }
.gk-auth-chip--2 > i { background: linear-gradient(135deg, #22c55e, #0e9f6e); }
.gk-auth-chip--3 { bottom: 20%; left: calc(50% - 520px); animation-delay: -3s; }
.gk-auth-chip--3 > i { background: linear-gradient(135deg, var(--gk-primary-2), var(--gk-primary)); }
.gk-auth-chip--4 { bottom: 14%; right: calc(50% - 540px); animation-delay: -4.5s; }
.gk-auth-chip--4 > i { background: linear-gradient(135deg, #ff6b6b, var(--gk-accent)); }
@keyframes gk-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (min-width: 1100px) { .gk-auth-chip { display: flex; } }
@media (prefers-reduced-motion: reduce) {
	.gk-auth-orb, .gk-auth-chip { animation: none; }
}
.gk-auth-head, .gk-auth-card form > div, .gk-auth-note { animation: gk-rise .5s cubic-bezier(.2, .7, .3, 1) both; }
.gk-auth-card form > div:nth-child(2) { animation-delay: .06s; }
.gk-auth-card form > div:nth-child(3) { animation-delay: .12s; }
.gk-auth-card form > div:nth-child(4) { animation-delay: .18s; }
.gk-auth-card form > div:nth-child(5) { animation-delay: .24s; }
.gk-auth-note { animation-delay: .3s; }
.gk-auth-head { text-align: center; margin-bottom: 32px; }
.gk-auth-logo { display: block; width: 190px; max-width: 70%; height: auto; margin: 0 auto 22px; }
.gk-auth-head h5, .gk-auth-head h3 { font-size: 30px; font-weight: 800; letter-spacing: -.8px; margin: 0 0 8px; color: var(--gk-text); }
.gk-auth-head h5 span, .gk-auth-head h3 span {
	background: linear-gradient(90deg, var(--gk-sky), var(--gk-primary-2) 55%, var(--gk-accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.gk-auth-head p { margin: 0; color: var(--gk-muted); font-size: 14.5px; }
.gk-auth .form-label { font-weight: 600; font-size: 13.5px; color: var(--gk-text); margin-bottom: 7px; }
.gk-auth .form-label span { color: var(--gk-accent); margin-left: 2px; }
.gk-auth-field { position: relative; }
.gk-auth-field > i {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 18px;
	color: var(--gk-muted);
	pointer-events: none;
	transition: color .15s;
}
.gk-auth-field .form-control {
	height: 52px;
	padding-left: 44px;
	border-radius: 12px;
	border: 1.5px solid var(--gk-border);
	background: #fff;
	color: var(--gk-text);
	font-size: 14.5px;
	font-weight: 500;
	transition: border-color .15s, box-shadow .15s;
}
.gk-auth-field .form-control::placeholder { color: #a5aac6; font-weight: 400; }
.gk-auth-field .form-control:hover { border-color: var(--gk-border-strong); }
.gk-auth-field .form-control:focus {
	background: #fff;
	border-color: var(--gk-primary-2);
	box-shadow: 0 0 0 4px var(--gk-primary-ring);
}
.gk-auth-field:focus-within > i { color: var(--gk-primary-2); }
#show_hide_password .form-control { padding-right: 46px; }
.gk-auth-toggle {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border-radius: 8px;
	color: var(--gk-muted);
	font-size: 18px;
}
.gk-auth-toggle:hover { color: var(--gk-primary); background: var(--gk-primary-soft); }
.gk-auth-error { margin-top: 6px; font-size: 13px; font-weight: 500; color: #dc3545; }
.gk-auth .form-switch .form-check-input { cursor: pointer; }
.gk-auth .form-switch .form-check-input:checked { background-color: var(--gk-primary-2); border-color: var(--gk-primary-2); }
.gk-auth .form-check-label { font-weight: 500; color: var(--gk-text-2); font-size: 14px; cursor: pointer; }
.gk-auth .form-switch { display: flex; align-items: center; gap: 10px; padding-left: 0; }
.gk-auth .form-switch .form-check-input { float: none; margin: 0; width: 2.4em; height: 1.3em; flex-shrink: 0; }
.gk-auth .btn-primary {
	min-height: 50px;
	font-size: 15px;
	font-weight: 700;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--gk-primary-2) 0%, var(--gk-primary) 100%);
	box-shadow: 0 12px 24px -12px rgba(58, 61, 184, .7);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: transform .15s, box-shadow .15s;
}
.gk-auth .btn-primary i { font-size: 20px; transition: transform .15s; }
.gk-auth .btn-primary:hover {  box-shadow: 0 16px 28px -12px rgba(58, 61, 184, .8); }
.gk-auth .btn-primary:hover i { transform: translateX(3px); }
.gk-auth .btn-primary { position: relative; overflow: hidden; min-height: 52px; margin-top: 6px; }
.gk-auth .btn-primary::after {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
	transform: skewX(-20deg);
	transition: left .6s ease;
}
.gk-auth .btn-primary:hover::after { left: 130%; }
.gk-auth-note {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 28px;
	color: var(--gk-muted);
	font-size: 12.5px;
	font-weight: 500;
	white-space: nowrap;
}
.gk-auth-note::before, .gk-auth-note::after { content: ""; flex: 1; height: 1px; background: var(--gk-border); }
.gk-auth-note i { font-size: 15px; margin-right: -6px; }
.gk-auth-foot { margin: 8px 0 0; color: #a5aac6; font-size: 12.5px; text-align: center; }
@media (max-width: 480px) {
	.gk-auth-card { padding: 34px 22px 26px; border-radius: 22px; }
	.gk-auth-head h5, .gk-auth-head h3 { font-size: 26px; }
}

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: #c9cde0 transparent; }
html.dark-theme * { scrollbar-color: #343a63 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c9cde0; border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }
html.dark-theme ::-webkit-scrollbar-thumb { background-color: #343a63; }

/* ---------- compact form card (gk-form-*) ---------- */
.gk-form-wrap { max-width: 1040px; margin: 0 auto; }
.gk-form-card { margin-bottom: 0; overflow: hidden; }
.gk-form-head {
	display: flex;
	align-items: center;
	gap: .85rem;
	padding: .9rem 1.25rem;
	border-bottom: 1px solid var(--gk-border);
	background:
		radial-gradient(420px 120px at 100% 0%, var(--gk-primary-soft), transparent 70%),
		var(--gk-surface);
}
.gk-form-head-icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	font-size: 20px;
	color: #fff;
	background: linear-gradient(135deg, var(--gk-primary-2), var(--gk-primary));
	box-shadow: 0 10px 18px -10px rgba(58, 61, 184, .9);
}
.gk-form-head-text { min-width: 0; }
.gk-form-head-text h5 { margin: 0; text-transform: none; color: var(--gk-text); font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
.gk-form-head-text p { margin: 2px 0 0; font-size: 12.5px; color: var(--gk-muted); }
.gk-form-head .btn-sm { padding: .35rem .75rem; font-size: 13px; white-space: nowrap; flex: 0 0 auto; }
.gk-form-body { padding: 1.1rem 1.25rem 1.25rem; }
.gk-form-body .form-label { margin-bottom: .3rem; }
.gk-form-body .form-control, .gk-form-body .form-select { min-height: 40px; }
.gk-form-section-title {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin-top: .15rem;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--gk-muted);
}
.gk-form-section-title::after { content: ""; flex: 1; height: 1px; background: var(--gk-border); }
.gk-form-foot {
	display: flex;
	justify-content: flex-end;
	gap: .6rem;
	padding: .8rem 1.25rem;
	border-top: 1px solid var(--gk-border);
	background: var(--gk-surface-2);
}
@media (max-width: 575.98px) {
	.gk-form-head, .gk-form-body, .gk-form-foot { padding-left: 1rem; padding-right: 1rem; }
	.gk-form-head-text p { display: none; }
	.gk-form-foot .btn { flex: 1; }
}

/* labelled group of related inputs */
.gk-field-tile {
	height: 100%;
	padding: .75rem .85rem .85rem;
	border: 1px solid var(--gk-border);
	border-radius: 12px;
	background: var(--gk-surface-2);
}
.gk-field-tile-head { display: flex; align-items: center; gap: .45rem; margin-bottom: .55rem; }
.gk-field-tile-head i {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	font-size: 15px;
	color: var(--gk-primary);
	background: var(--gk-primary-soft);
}
html.dark-theme .gk-field-tile-head i { color: #b4b7ff; }

/* value + unit + type in one control */
.gk-commission { flex-wrap: nowrap; }
.gk-commission .gk-unit { min-width: 40px; justify-content: center; font-weight: 700; color: var(--gk-primary); background: var(--gk-surface); }
html.dark-theme .gk-commission .gk-unit { color: #b4b7ff; background: var(--gk-surface-2); }
.gk-commission .form-control { min-width: 0; }
.gk-commission .form-select { flex: 0 0 112px; width: 112px; background-color: var(--gk-surface); }
.gk-commission > :focus { z-index: 3; }

/* image upload tile */
.gk-upload {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	height: 168px;
	margin: 0;
	padding: .75rem;
	overflow: hidden;
	text-align: center;
	cursor: pointer;
	border: 1.5px dashed var(--gk-border-strong);
	border-radius: 12px;
	background: var(--gk-surface-2);
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.gk-upload:hover { border-color: var(--gk-primary-2); background: var(--gk-hover); }
input:focus-visible + .gk-upload, .gk-upload:has(+ input:focus-visible) { border-color: var(--gk-primary-2); box-shadow: 0 0 0 4px var(--gk-primary-ring); }
.gk-upload-empty { display: flex; flex-direction: column; align-items: center; gap: .15rem; font-weight: 500; }
.gk-upload-empty i { font-size: 30px; color: var(--gk-primary-2); margin-bottom: .2rem; }
.gk-upload-empty strong { font-size: 13.5px; color: var(--gk-text); }
.gk-upload-empty small { font-size: 11.5px; color: var(--gk-muted); }
.gk-upload-preview { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.gk-upload.has-image .gk-upload-empty { display: none; }
.gk-upload-change {
	position: absolute;
	right: 8px;
	bottom: 8px;
	display: none;
	align-items: center;
	gap: 4px;
	padding: .2rem .55rem;
	font-size: 12px;
	font-weight: 600;
	border-radius: 8px;
	color: #fff;
	background: rgba(29, 32, 66, .75);
}
.gk-upload.has-image .gk-upload-change { display: inline-flex; }
.gk-upload-name { margin-top: .4rem; font-size: 12px; color: var(--gk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 991.98px) { .gk-upload { height: 132px; } }

/* ---------- add / edit form cards (gk-fcard, applied by admin-forms.js) ---------- */
.gk-fcard {
	border: 0 !important;
	border-radius: 20px !important;
	box-shadow: 0 1px 2px rgba(20, 24, 70, .04), 0 24px 50px -30px rgba(20, 24, 70, .35);
	animation: gk-rise .4s ease both;
}
.gk-fcard > .card-header.gk-fcard-head, .gk-fcard > form > .card-header.gk-fcard-head {
	position: relative;
	padding: 1.2rem 1.5rem;
	border-radius: 20px 20px 0 0 !important;
	background:
		radial-gradient(520px 160px at 100% 0%, var(--gk-primary-soft), transparent 70%),
		linear-gradient(180deg, var(--gk-surface-2), var(--gk-surface)) !important;
}
/* thin brand line under the header */
.gk-fcard > .card-header.gk-fcard-head::after, .gk-fcard > form > .card-header.gk-fcard-head::after {
	content: "";
	position: absolute;
	left: 1.5rem;
	bottom: -1px;
	width: 64px;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--gk-sky), var(--gk-primary-2), var(--gk-accent));
}
.gk-fcard .card-body > .gk-fcard-head {
	display: flex;
	align-items: center;
	margin: -.25rem 0 1.5rem;
	padding-bottom: 1.1rem;
	border-bottom: 1px solid var(--gk-border);
}
.gk-fcard-head, .gk-fcard-head > .d-flex { gap: 14px; }
.gk-fcard-head h3, .gk-fcard-head h4, .gk-fcard-head h5, .gk-fcard-head h6 {
	margin: 0;
	font-size: 17px !important;
	font-weight: 800 !important;
	letter-spacing: -.3px;
	text-transform: none !important;
	color: var(--gk-text) !important;
}
.gk-fcard-head h5::before, .gk-fcard-head h6::before { display: none !important; }
.gk-fcard-sub { margin: 3px 0 0; font-size: 12.5px; font-weight: 500; color: var(--gk-muted); }
.gk-fcard-icon {
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border-radius: 14px;
	color: #fff;
	font-size: 22px;
	background: linear-gradient(135deg, var(--gk-primary-2), var(--gk-primary));
	box-shadow: 0 10px 20px -10px rgba(58, 61, 184, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.gk-fcard > .card-body, .gk-fcard > form > .card-body { padding: 1.6rem 1.5rem !important; }
/* fields: soft filled inputs that turn white on focus */
:is(.gk-fcard, .modal-content) .form-label, :is(.gk-fcard, .modal-content) .col-form-label { font-size: 13px; color: var(--gk-text); }
:is(.gk-fcard, .modal-content) .form-control:not([type="file"]), :is(.gk-fcard, .modal-content) .form-select {
	min-height: 46px;
	border-radius: 12px;
	background-color: var(--gk-surface-2);
	border-color: var(--gk-border);
}
:is(.gk-fcard, .modal-content) .form-control:not([type="file"]):hover, :is(.gk-fcard, .modal-content) .form-select:hover { border-color: var(--gk-border-strong); }
:is(.gk-fcard, .modal-content) .form-control:focus, :is(.gk-fcard, .modal-content) .form-select:focus { background-color: var(--gk-surface); border-color: var(--gk-primary-2); }
:is(.gk-fcard, .modal-content) textarea.form-control { min-height: 110px; }
:is(.gk-fcard, .modal-content) .form-control[type="file"] { min-height: 64px; border-radius: 14px; padding: .65rem .7rem; }
/* action row */
.gk-fcard-actions:not(.gk-form-actions) {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: .6rem;
	margin-top: 1.5rem !important;
	padding-top: 1.2rem;
	border-top: 1px dashed var(--gk-border-strong);
}
.gk-fcard-actions > div:not(.gk-file-previews) { display: flex !important; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .6rem; width: auto; flex: 1 1 auto; margin: 0 !important; }
.gk-fcard-actions > label:empty { display: none; }
.gk-fcard-actions .btn { min-width: 108px; min-height: 44px; border-radius: 12px; margin: 0 !important; }
.gk-fcard-actions { container-type: inline-size; }
.gk-fcard-actions > div:not(.gk-file-previews) { gap: .6rem !important; }
/* narrow form cards (e.g. the side "Add" panels): buttons share the row */
@container (max-width: 300px) {
	.gk-fcard-actions .btn { flex: 1 1 0; min-width: 0; padding-left: .6rem; padding-right: .6rem; }
}
.gk-fcard-actions .btn.px-5 { padding-left: 1.4rem !important; padding-right: 1.4rem !important; }
@media (max-width: 575.98px) {
	.gk-fcard-sub { display: none; }
	.gk-fcard-actions .btn { flex: 1 1 0; min-width: 0; }
}

/* =====================================================================
   Compact modern pass (all pages): tighter gutters, icon card headers,
   one-row filter bars and DataTables toolbars/footers.
   ===================================================================== */
/* gutters + card rhythm */
.page-content { padding: 1.25rem 1.4rem .75rem; }
@media (max-width: 1024px) { .page-content { padding: 1rem .85rem .6rem; } }
.page-content .card { margin-bottom: 1rem; border-radius: 18px; }
.page-content .row > [class*="col"] > .card:last-child { margin-bottom: 1rem; }
.card-header { padding: .7rem 1.1rem; }
.card-body { padding: 1.1rem 1.15rem; }
.page-content .card-body.p-4 { padding: 1.15rem !important; }
.page-content .card-body.p-5 { padding: 1.35rem !important; }
.page-content hr { margin: .85rem 0; border-color: var(--gk-border); opacity: 1; }

/* icon card headers (gk-pcard, applied by admin-forms.js) */
.gk-pcard-head {
	background: linear-gradient(180deg, var(--gk-surface-2), var(--gk-surface)) !important;
	border-radius: 18px 18px 0 0 !important;
}
.gk-pcard-head, .gk-pcard-head > .d-flex { gap: 12px; }
.gk-pcard-head.card-header, .gk-pcard-head > .d-flex { display: flex; align-items: center; flex-wrap: wrap; }
.gk-pcard-head > .d-flex { flex: 1 1 auto; min-width: 0; }
.gk-pcard-head h3, .gk-pcard-head h4, .gk-pcard-head h5, .gk-pcard-head h6 {
	margin: 0;
	font-size: 15.5px !important;
	font-weight: 800 !important;
	letter-spacing: -.2px;
	text-transform: none !important;
	color: var(--gk-text) !important;
}
.gk-pcard-head h5::before, .gk-pcard-head h6::before { display: none !important; }
.gk-pcard-head .gk-card-sub { padding-left: 0; }
.gk-head-icon {
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	font-size: 19px;
	color: var(--gk-primary);
	background: var(--gk-primary-soft);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gk-primary-2) 18%, transparent);
}
html.dark-theme .gk-head-icon { color: #b4b7ff; }
.gk-head-inline { display: flex; align-items: center; gap: 12px; }
.gk-pcard-head > form { flex: 1 1 auto; min-width: 0; }
.gk-pcard-head > form > .d-flex { gap: 10px; flex-wrap: wrap; }
.gk-pcard-head > .row { flex: 1 1 auto; margin: 0; }
.gk-pcard-head > .row > [class*="col"] { padding: 0; }
.gk-pcard-head > .row > [class*="col"]:last-child:not(.gk-head-inline) { text-align: right; }
.gk-pcard-head .btn { padding: .42rem .85rem; font-size: 13px; }
.card-body > .gk-pcard-head { display: flex; align-items: center; margin-bottom: 1rem; padding-bottom: .85rem; border-bottom: 1px solid var(--gk-border); background: none !important; border-radius: 0 !important; }

/* layout-table filter bars (<table><tr><td>…</td></tr></table> above a data table) */
.page-content .card-body > table:not(.table):has(select, input) {
	display: block;
	width: 100%;
	margin-bottom: .85rem;
	padding: .65rem;
	border-radius: 14px;
	background: var(--gk-surface-2);
	border: 1px solid var(--gk-border);
}
.page-content .card-body > table:not(.table):has(select, input) > tbody { display: block; }
.page-content .card-body > table:not(.table):has(select, input) tr { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.page-content .card-body > table:not(.table):has(select, input) td { display: block; padding: 0; flex: 0 1 210px; min-width: 160px; }
.page-content .card-body > table:not(.table):has(select, input) td:has(> .btn, > button, > a.btn) { flex: 0 0 auto; min-width: 0; }
.page-content .card-body > table:not(.table):has(select, input) td:empty { display: none; }
.page-content .card-body > table:not(.table):has(select, input) .mb-3 { margin-bottom: 0 !important; }
.page-content .card-body > table:not(.table):has(select, input) .form-control,
.page-content .card-body > table:not(.table):has(select, input) .form-select { min-height: 40px; background-color: var(--gk-surface); }

/* DataTables flat layouts: buttons + search on one row, info + pager on one row */
div.dataTables_wrapper.gk-dt-flat, div.dataTables_wrapper:has(> table.dataTable) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .6rem .75rem;
}
.gk-dt-flat > .dt-buttons, .gk-dt-flat > .dataTables_length { order: 1; }
.gk-dt-flat > .dataTables_filter { order: 2; margin-left: auto; }
.gk-dt-flat > .gk-dt-scroll, div.dataTables_wrapper:has(> table.dataTable) > table.dataTable { order: 3; flex: 0 0 100%; min-width: 0; }
.gk-dt-flat > .dataTables_info { order: 4; padding-top: .7rem !important; border-top: 1px solid var(--gk-border); flex: 1 1 auto; }
.gk-dt-flat > .dataTables_paginate { order: 5; padding-top: .7rem; border-top: 1px solid var(--gk-border); margin-left: auto; }
.gk-dt-flat > .dataTables_info:empty { display: none; }
.gk-dt-scroll {
	overflow-x: auto;
	border-radius: 12px;
	background:
		linear-gradient(to right, var(--gk-surface) 30%, transparent) left center / 40px 100% no-repeat local,
		linear-gradient(to left, var(--gk-surface) 30%, transparent) right center / 40px 100% no-repeat local,
		radial-gradient(farthest-side at 0 50%, rgba(20, 24, 70, .14), transparent) left center / 14px 100% no-repeat scroll,
		radial-gradient(farthest-side at 100% 50%, rgba(20, 24, 70, .14), transparent) right center / 14px 100% no-repeat scroll;
}
.gk-dt-scroll > table.dataTable { margin: 0 !important; }
.gk-dt-flat { position: relative; }
@media (max-width: 767.98px) {
	.gk-dt-flat > .dataTables_filter { margin-left: 0; flex: 1 1 100%; }
	.gk-dt-flat > .dataTables_paginate { margin-left: 0; flex: 1 1 100%; border-top: 0; padding-top: 0; }
}

/* ---------- leading field icons (CSS-only: no markup change, validation icons untouched) ---------- */
:is(.gk-fcard, .modal-content) input.form-control:not([type="file"]):not(.is-invalid):not(.is-valid):not(.input-group > *):is(
	[type="email"], [name*="email"], [type="tel"], [name*="mobile"], [name*="phone"],
	[type="password"], [name*="password"], [name*="price"], [name*="amount"], [name*="mrp"],
	[name*="percent"], [name*="comission"], [name*="commission"], [type="url"], [name*="url"], [name*="link"],
	[name*="pincode"], [name*="pin_code"], [type="date"], [name*="date"]) {
	padding-left: 2.5rem;
	background-repeat: no-repeat;
	background-position: 14px center;
	background-size: 17px 17px;
}
:is(.gk-fcard, .modal-content) input.form-control:not(.is-invalid):not(.is-valid):not(.input-group > *):is([type="email"], [name*="email"]) {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b81a3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}
:is(.gk-fcard, .modal-content) input.form-control:not(.is-invalid):not(.is-valid):not(.input-group > *):is([type="tel"], [name*="mobile"], [name*="phone"]) {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b81a3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2.5'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E");
}
:is(.gk-fcard, .modal-content) input.form-control:not(.is-invalid):not(.is-valid):not(.input-group > *):is([type="password"], [name*="password"]) {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b81a3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
}
:is(.gk-fcard, .modal-content) input.form-control:not(.is-invalid):not(.is-valid):not(.input-group > *):is([name*="price"], [name*="amount"], [name*="mrp"]) {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b81a3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4h12M6 9h12M14 20 7 13h2a4.5 4.5 0 0 0 0-9'/%3E%3C/svg%3E");
}
:is(.gk-fcard, .modal-content) input.form-control:not(.is-invalid):not(.is-valid):not(.input-group > *):is([name*="percent"], [name*="comission"], [name*="commission"]) {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b81a3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 5 5 19'/%3E%3Ccircle cx='6.5' cy='6.5' r='2.5'/%3E%3Ccircle cx='17.5' cy='17.5' r='2.5'/%3E%3C/svg%3E");
}
:is(.gk-fcard, .modal-content) input.form-control:not(.is-invalid):not(.is-valid):not(.input-group > *):is([type="url"], [name*="url"], [name*="link"]) {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b81a3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7'/%3E%3C/svg%3E");
}
:is(.gk-fcard, .modal-content) input.form-control:not(.is-invalid):not(.is-valid):not(.input-group > *):is([name*="pincode"], [name*="pin_code"]) {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b81a3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
:is(.gk-fcard, .modal-content) input.form-control:not(.is-invalid):not(.is-valid):not(.input-group > *):is([type="date"], [name*="date"]) {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b81a3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
}

/* ---------- popup (modal) forms ---------- */
.modal-header { background: linear-gradient(180deg, var(--gk-surface-2), var(--gk-surface)); border-radius: 18px 18px 0 0; padding: .95rem 1.25rem; }
.modal-title { font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.modal-body { padding: 1.15rem 1.25rem; }
.modal-footer { padding: .8rem 1.25rem; gap: .5rem; }
.modal-footer > * { margin: 0; }
.modal-footer .btn { min-width: 108px; min-height: 42px; border-radius: 12px; }
.modal-backdrop.show { opacity: .45; }
.modal-backdrop { background-color: #0f1124; }
.modal.fade .modal-dialog { transform: translateY(14px) scale(.98); transition: transform .25s ease; }
.modal.show .modal-dialog { transform: none; }
/* file inputs never get a leading icon (names like "mobile_image" would match) */
:is(.gk-fcard, .modal-content) input.form-control[type="file"] { background-image: none !important; padding-left: .7rem !important; }

/* vendor panel: shop logo as the avatar */
.gk-avatar.gk-avatar-img { object-fit: cover; background: var(--gk-surface-2); padding: 0; border: 1px solid var(--gk-border); }
.gk-quick-plain span::before { content: none; }

/* status notice banner */
.gk-notice {
	--gk-n: #5a5ff0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .85rem;
	margin-bottom: 1rem;
	padding: .85rem 1rem;
	border-radius: 16px;
	background: color-mix(in srgb, var(--gk-n) 8%, var(--gk-surface));
	border: 1px solid color-mix(in srgb, var(--gk-n) 28%, var(--gk-border));
}
.gk-notice-warn { --gk-n: #f59e0b; }
.gk-notice-info { --gk-n: #0ea5e9; }
.gk-notice-icon {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	font-size: 21px;
	color: #fff;
	background: linear-gradient(135deg, color-mix(in srgb, var(--gk-n) 70%, #fff), var(--gk-n));
}
.gk-notice strong { display: block; color: var(--gk-text); font-size: 14px; }
.gk-notice p { margin: 0; color: var(--gk-text-2); font-size: 13px; }

/* empty state */
.gk-empty-state { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1.6rem 1rem; text-align: center; color: var(--gk-muted); }
.gk-empty-state > i { font-size: 34px; color: var(--gk-primary-2); opacity: .7; }
.gk-empty-state p { margin: 0 0 .35rem; font-weight: 600; }

/* vendor auth pages: register (wide card), plain fields, select2, validation, switch link */
.gk-auth-card.gk-auth-card--wide { max-width: 900px; }
.gk-auth-switch { margin: 1.15rem 0 0; text-align: center; font-size: 13.5px; color: var(--gk-muted); }
.gk-auth-switch a { font-weight: 700; color: var(--gk-primary); }
.gk-auth-switch a i { vertical-align: -2px; }
.gk-auth .form-body .form-control, .gk-auth .form-body .form-select {
	min-height: 46px;
	border-radius: 12px;
	border: 1.5px solid var(--gk-border);
	background-color: #fff;
	font-size: 14px;
}
.gk-auth .form-body .form-control:focus { border-color: var(--gk-primary-2); box-shadow: 0 0 0 4px var(--gk-primary-ring); }
.gk-auth .form-body .form-control[readonly] { background-color: var(--gk-surface-2); }
.gk-auth .form-body .form-control[type="file"] { min-height: 46px; padding: .4rem .5rem; }
.gk-auth .form-body .mb-3 { margin-bottom: 0 !important; }
.gk-auth .form-body span[role="alert"]:has(strong:empty) { display: none !important; }
.gk-auth label.error { display: block; margin-top: 5px; color: #dc3545; font-size: 12.5px; font-weight: 600; }
.gk-auth .gk-has-eye .gk-eye { bottom: 7px; }
.gk-auth .select2-container { width: 100% !important; }
.gk-auth .select2-container--default .select2-selection--single {
	height: 46px;
	display: flex;
	align-items: center;
	border-radius: 12px;
	border: 1.5px solid var(--gk-border);
}
.gk-auth .select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; right: 8px; }
.gk-auth .select2-container--default.select2-container--focus .select2-selection--single,
.gk-auth .select2-container--default.select2-container--open .select2-selection--single { border-color: var(--gk-primary-2); }
@media (max-width: 480px) { .gk-auth-card.gk-auth-card--wide { padding: 30px 18px 24px; } }
.gk-auth-shell:has(.gk-auth-card--wide) .gk-auth-chip { display: none; }

/* =====================================================================
   Form cards: sticky header fix + compact section panels (product / service forms, both panels)
   ===================================================================== */
/* the header-with-Save stays sticky (the gk-fcard-head rule above had turned it into position:relative + top:64px = a 64px gap) */
.gk-fcard > .card-header.gk-fcard-head.gk-sticky-head,
.gk-fcard > form > .card-header.gk-fcard-head.gk-sticky-head { position: sticky; top: 64px; z-index: 6; }

/* page-level spacers the old markup used */
.gk-fcard .form-body.mt-4 { margin-top: 0 !important; }
.gk-fcard .card-body > br, .gk-fcard .row > br { display: none; }
.gk-fcard .form-body.row { row-gap: 1rem; }

/* thick "border border-3 p-4 rounded" boxes -> soft section panels */
.gk-fcard .border.border-3 {
	border: 1px solid var(--gk-border) !important;
	border-radius: 16px !important;
	padding: 1rem 1.1rem !important;
	background: var(--gk-surface-2);
}
.gk-fcard .form-body > [class*="col"] > .border.border-3 { height: 100%; }
.gk-fcard .card-body > .border.border-3 { margin-top: 1rem; }
.gk-fcard .border.border-3 > .row { --bs-gutter-y: .85rem; }
.gk-fcard .border.border-3 .mb-3 { margin-bottom: .85rem !important; }
.gk-fcard .border.border-3 .row > [class*="col"]:last-child.mb-3 { margin-bottom: 0 !important; }
/* fields on a tinted panel read better white */
.gk-fcard .border.border-3 .form-control:not([type="file"]), .gk-fcard .border.border-3 .form-select { background-color: var(--gk-surface); }

/* photo dropzone: compact */
.gk-fcard .dropzone {
	min-height: 150px;
	padding: 10px;
	border: 1.5px dashed var(--gk-border-strong);
	border-radius: 14px;
	background: var(--gk-surface);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.gk-fcard .dropzone .dz-message { margin: .75rem 0; }
.gk-fcard .dropzone:hover { border-color: var(--gk-primary-2); }

/* rich text editor */
.gk-fcard .ck.ck-toolbar { border-radius: 12px 12px 0 0 !important; border-color: var(--gk-border) !important; background: var(--gk-surface) !important; }
.gk-fcard .ck-editor__editable, .gk-fcard .ck.ck-editor__main > .ck-editor__editable:not(.ck-focused) { min-height: 140px; border-radius: 0 0 12px 12px !important; border-color: var(--gk-border) !important; }

/* variant rows */
.gk-fcard .border.border-3:has(> .field_wrapper)::before {
	content: "Variants";
	display: block;
	margin-bottom: .75rem;
	font-size: 14px;
	font-weight: 800;
	color: var(--gk-text);
}
.gk-fcard .field_wrapper > .form-group.row {
	align-items: flex-start;
	row-gap: .6rem;
	margin: 0 0 .7rem;
	padding: .75rem .35rem;
	border-radius: 14px;
	background: var(--gk-surface);
	border: 1px solid var(--gk-border);
}
.gk-fcard .field_wrapper > .form-group.row:last-child { margin-bottom: 0; }
.gk-fcard .field_wrapper .form-text { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.3; }
/* columns without a field label (image picker, +/- button) line up with the inputs */
.gk-fcard .field_wrapper > .form-group.row > [class*="col"]:not(:has(.form-label)) { padding-top: 27px; margin-bottom: 0 !important; }
.gk-fcard .field_wrapper .uploadButton { display: block; line-height: 0; }
.gk-fcard .field_wrapper .imagePreview {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	border: 1.5px dashed var(--gk-border-strong);
	object-fit: cover;
	background: var(--gk-surface-2);
	transition: border-color .15s;
}
.gk-fcard .field_wrapper .uploadButton:hover .imagePreview { border-color: var(--gk-primary-2); }
.gk-fcard .field_wrapper .add_button, .gk-fcard .field_wrapper .remove_button {
	float: none !important;
	margin: 0 !important;
	width: 46px !important;
	height: 46px !important;
	min-width: 0;
	padding: 0;
	display: inline-grid;
	place-items: center;
	border-radius: 50% !important;
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
}
/* JS-added rows put the remove button straight in the row: keep it on the input line */
.gk-fcard .field_wrapper > .form-group.row > .remove_button { align-self: flex-start; margin-top: 27px !important; margin-left: calc(var(--bs-gutter-x) * .5) !important; }
@media (max-width: 991.98px) {
	.gk-fcard .field_wrapper > .form-group.row > [class*="col-lg-"] { flex: 0 0 50%; width: 50%; max-width: 50%; }
	.gk-fcard .field_wrapper > .form-group.row > [class*="col-lg-1"] { flex: 0 0 auto; width: auto; }
}
/* dropzone prompt in the theme colours (dropzone.min.css paints it #007bff) */
.gk-fcard .dropzone .dz-message span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: .6rem 1.2rem;
	border-radius: 12px;
	background: var(--gk-primary-soft) !important;
	color: var(--gk-primary) !important;
	font-size: 13.5px;
	font-weight: 700;
	box-shadow: none;
}
.gk-fcard .dropzone .dz-message span::before { content: "\e9c9"; font-family: boxicons; font-size: 18px; }
body.gk-vendor .gk-fcard .dropzone .dz-message span { border-radius: 999px; }
