/* NUXT 2 OLD CODE (Reference) — url-loader's file-loader fallback in the Nuxt3/webpack5 dev
   pipeline corrupts these binary .ttf files (bytes re-encoded through UTF-8, size grows,
   OTS "GDEF: misaligned table" in the browser). Serving them as static /public assets instead
   bypasses that asset pipeline entirely.
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('~/assets/fonts/Inter-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('~/assets/fonts/Inter-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('~/assets/fonts/Inter-Bold.ttf') format('truetype');
}
*/

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/Inter-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/Inter-Bold.ttf') format('truetype');
}

@font-face {
    font-family: "Material Design Icons";
    src: url('/fonts/mdi/materialdesignicons-webfont.woff2') format('woff2'),
         url('/fonts/mdi/materialdesignicons-webfont.woff') format('woff'),
         url('/fonts/mdi/materialdesignicons-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

/* NUXT 3: Vuetify 2's v-card-title was a flex container by default; Vuetify 3 made it block
   with text-overflow ellipsis instead. Many dialogs across this codebase rely on the old flex
   behavior (title + v-spacer + close button in one row) — restoring it globally instead of
   patching every dialog individually. */
.v-card-title {
    display: flex;
    align-items: center;
}

/* Responsive form layout helpers — shared across add/edit forms repo-wide.
   Vuetify's pa-* / ma-* spacing utilities are !important (see main.css), so a fixed
   margin-left/right:121px + pa-15/pa-10 combo can't be made responsive by overriding it
   from a page's own \3c style>; padding/margin has to be owned here instead. clamp() keeps the
   original desktop spacing and scales it down smoothly instead of overflowing at narrower
   widths (the class of bug fixed across the form-cleanup pass). */

/* Single padded card, used by simpler one-panel forms (e.g. rolesPermsPage add/edit). */
/* all-style-improvement: white bordered card instead of a flat grey block (was
   background-color: #f7f7f9; margin-top: 72px; padding: clamp(20px, 4vw, 60px)) */
.form-card {
    background-color: #fff;
    border: 1px solid var(--app-border, #e4e7ec);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    margin-top: 24px;
    margin-inline: clamp(16px, 8vw, 121px);
    padding: clamp(20px, 3vw, 40px);
}

.form-card-submit {
    margin-right: clamp(16px, 8vw, 121px);
}

/* Outer shell + stacked inner panels, used by multi-section forms (hawkers, franchise-owner,
   transporters, auditors) where several gray pa-10 blocks stack under one breadcrumb row. */
/* Side margins now come from the page gutter (.v-main .v-container in design-system.css);
   the old clamp(16px, 8vw, 121px) inset made these forms narrower than every other page. */
.form-shell {
    margin-top: 0;
    margin-inline: 0;
}

/* (was background-color: #f7f7f9, no border) */
.form-panel {
    background-color: #fff;
    border: 1px solid var(--app-border, #e4e7ec);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    padding: clamp(20px, 3vw, 36px);
}

.form-panel + .form-panel {
    margin-top: 20px;
}

.form-shell-submit {
    margin-right: 0;
}

/* Global v-date-picker day size — Vuetify's default circle is too small; every date picker in
   the app (sales custom range, offers, campaigns, purchase orders, STN, store details) shares
   this one rule instead of repeating it per component. */
.v-date-picker-month__day .v-btn {
    height: 36px !important;
    width: 36px !important;
}

.v-date-picker-month__day .v-btn__content {
    font-size: 14px;
}
/* ==========================================================================
   Admin UI design system
   --------------------------------------------------------------------------
   App-wide look & feel layered on top of Vuetify 3's stock styles. Loaded
   after global.css and before responsive-overrides.css (see nuxt.config.js).

   Keep rules here generic (component-level), never page-specific — page
   tweaks belong in that page's own \3c style>.
   ========================================================================== */

/* ---------- Fonts ---------------------------------------------------------
   Only 400/700 were registered, so every font-weight:500/600 in the app was
   faux-bolded by the browser. Register the real Light/Medium cuts too. */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("/fonts/Inter-Light.ttf") format("truetype");
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("/fonts/Inter-Medium.ttf") format("truetype");
}

/* ---------- Tokens -------------------------------------------------------- */
:root {
	--app-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--app-text: #1d2433;
	--app-text-muted: #5b6577;
	--app-text-subtle: #8a93a3;

	--app-border: #e4e7ec;
	--app-border-strong: #d0d5dd;
	--app-surface-muted: #f7f8fa;
	--app-surface-hover: #f2f4f7;

	--app-radius-sm: 6px;
	--app-radius: 8px;
	--app-radius-lg: 12px;

	--app-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
	--app-shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
	--app-shadow-lg: 0 12px 32px -4px rgba(16, 24, 40, 0.14), 0 4px 8px -2px rgba(16, 24, 40, 0.06);

	/* Brand accent #15A1B3 (theme colour "brand"). It is ~2.9:1 on white, so text
	   set in brand colour uses the darker --app-brand-text (~4.7:1). */
	--app-brand: #15a1b3;
	--app-brand-text: #0e7f8e;
	--app-brand-soft: rgba(21, 161, 179, 0.1);
	--app-focus: 0 0 0 3px rgba(21, 161, 179, 0.25);
}

/* ---------- Base typography ---------------------------------------------- */
html,
body {
	font-family: var(--app-font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

.v-application {
	font-family: var(--app-font);
	color: var(--app-text);
	font-size: 14px;
	line-height: 1.5;
}

/* Vuetify's typography helpers hard-code Roboto (!important), which isn't
   loaded here — every text-h*/text-body*/text-caption fell back to a system
   font next to Inter text. */
.v-application [class*="text-h"],
.v-application [class*="text-subtitle"],
.v-application [class*="text-body"],
.v-application .text-caption,
.v-application .text-overline,
.v-application .text-button,
.v-application h1,
.v-application h2,
.v-application h3,
.v-application h4,
.v-application h5,
.v-application h6 {
	font-family: var(--app-font) !important;
}

.v-application h1,
.v-application h2,
.v-application h3,
.v-application h4 {
	color: var(--app-text);
	letter-spacing: -0.01em;
}

/* Page titles: most pages use a bare <h1> / .display-1 (a Vuetify 2 class
   that no longer exists) — give them one consistent size. */
.v-application .v-main h1,
.v-application .display-1 {
	font-size: 1.5rem;
	line-height: 2rem;
	font-weight: 700;
}
.v-application .v-main h2 {
	font-size: 1.25rem;
	line-height: 1.75rem;
	font-weight: 700;
}
.v-application .v-main h3 {
	font-size: 1.0625rem;
	line-height: 1.5rem;
	font-weight: 600;
}
.v-application .v-main h4 {
	font-size: 0.9375rem;
	line-height: 1.375rem;
	font-weight: 600;
}

/* Headings inside cards are section titles, not page titles (dashboard widgets
   used 24px <h1>/<h2> for "Category Wise", "Payment Mode BreakDown"...). */
.v-application .v-main .v-card h1,
.v-application .v-main .v-card h2,
.v-application .v-main .v-card .display-1 {
	font-size: 1.125rem;
	line-height: 1.5rem;
	font-weight: 600;
}
/* Inline icons in headings (typically the "open details" mdi-open-in-new) were
   24px and as dark as the text */
.v-application .v-main h1 > .v-icon,
.v-application .v-main h2 > .v-icon,
.v-application .v-main h3 > .v-icon,
.v-application .v-main h4 > .v-icon {
	font-size: 0.85em;
	opacity: 0.55;
	margin-inline-start: 4px;
	vertical-align: -0.05em;
}

.v-application .text-caption {
	letter-spacing: 0.01em !important;
}
.v-application [class*="text-body"],
.v-application [class*="text-subtitle"] {
	letter-spacing: 0 !important;
}

/* Vuetify 2 colour/typography helpers that silently stopped working in
   Vuetify 3 but are still sprinkled across templates. */
.v-application .grey--text,
.v-application .text--secondary {
	color: var(--app-text-muted) !important;
}
/* (.white--text / .black--text intentionally NOT revived: Vuetify 3 picks text
   contrast from the background colour itself, and reviving white--text made tonal
   chips like the Stores "Offline" status render white-on-pale-pink.) */
/* Vuetify 2 theme text-colour classes (e.g. "success--text text--darken-2" returned by
   Actionable > Store Current Target) -> Vuetify 3 theme colours */
.v-application .primary--text { color: rgb(var(--v-theme-primary)) !important; }
.v-application .primaryRed--text { color: rgb(var(--v-theme-primaryRed)) !important; }
.v-application .brand--text { color: var(--app-brand-text) !important; }
.v-application .success--text { color: rgb(var(--v-theme-successText)) !important; }
.v-application .error--text,
.v-application .red--text { color: rgb(var(--v-theme-error)) !important; }
.v-application .warning--text { color: #b45309 !important; }
.v-application .info--text { color: rgb(var(--v-theme-info)) !important; }
.v-application .green--text { color: #15803d !important; }
.v-application .subtitle-1 {
	font-size: 0.9375rem;
	font-weight: 500;
}
.v-application .subtitle-2 {
	font-size: 0.875rem;
	font-weight: 500;
}

a {
	color: var(--app-brand-text);
	text-underline-offset: 2px;
}
a:hover {
	color: #0a6470;
}

/* ---------- Buttons ------------------------------------------------------- */
.v-btn {
	font-family: var(--app-font);
	text-transform: none;
	letter-spacing: 0;
	font-weight: 600;
	border-radius: var(--app-radius);
}
.v-btn.v-btn--icon,
.v-btn.v-btn--fab,
.v-btn.rounded-circle {
	border-radius: 50%;
}
.v-btn--variant-elevated,
.v-btn--variant-flat {
	box-shadow: var(--app-shadow-sm);
}
.v-btn--variant-outlined {
	border-color: var(--app-border-strong);
}
/* Vuetify 2's <v-icon left>/<v-icon right> spacing props do nothing in Vuetify 3,
   so inline icons were jammed against button labels ("[icon]New Asset Template") */
.v-btn:not(.v-btn--icon) .v-btn__content > .v-icon:first-child {
	margin-inline-end: 6px;
}
.v-btn:not(.v-btn--icon) .v-btn__content > .v-icon:last-child:not(:first-child) {
	margin-inline-start: 6px;
}
.v-btn:focus-visible {
	box-shadow: var(--app-focus);
}
.v-btn--size-default {
	font-size: 0.875rem;
}
/* The app-wide VBtn default is density="compact" (-8px): a 28px default /
   20px small button is too tight for 14px semibold labels. Relax it for text
   buttons only (icon buttons keep their compact square). */
.v-btn.v-btn--density-compact:not(.v-btn--icon):not(.v-tab) {
	height: calc(var(--v-btn-height) - 2px);
	padding-inline: 14px;
}
.v-btn.v-btn--density-compact.v-btn--size-small:not(.v-btn--icon),
.v-btn.v-btn--density-compact.v-btn--size-x-small:not(.v-btn--icon) {
	padding-inline: 10px;
}
.v-btn.v-btn--variant-text.v-btn--density-compact:not(.v-btn--icon) {
	padding-inline: 8px;
}
.v-btn--size-small {
	font-size: 0.8125rem;
}
.v-btn--size-x-small {
	font-size: 0.75rem;
}

/* ---------- Form fields --------------------------------------------------- */
/* ~240 fields carry an inline `width: 400px !important` (etc.) that can't be
   overridden; capping max-width keeps them inside narrower columns instead of
   spilling past the page edge (e.g. the Stores search box). */
.v-input[style*="width"] {
	max-width: 100%;
}
.v-field {
	font-size: 0.875rem;
	border-radius: var(--app-radius) !important;
}
.v-field__input {
	font-size: 0.875rem;
	letter-spacing: 0;
}
.v-field--variant-outlined .v-field__outline {
	--v-field-border-opacity: 0.26;
}
.v-field--variant-outlined:hover .v-field__outline {
	--v-field-border-opacity: 0.45;
}
.v-field--focused .v-field__outline {
	--v-field-border-opacity: 1;
}
.v-field-label {
	font-size: 0.875rem;
	letter-spacing: 0;
}
.v-field-label--floating {
	font-size: 0.75rem;
}
.v-messages__message {
	font-size: 0.75rem;
	line-height: 1.25;
}
.v-selection-control .v-label,
.v-input .v-label {
	font-size: 0.875rem;
	letter-spacing: 0;
	opacity: 1;
	color: var(--app-text);
}
/* "solo" fields (Vuetify's variant="solo") keep a harsh drop shadow */
.v-field--variant-solo,
.v-field--variant-solo-filled {
	box-shadow: var(--app-shadow-sm) !important;
	border: 1px solid var(--app-border);
}

/* ---------- Cards --------------------------------------------------------- */
.v-card {
	border-radius: var(--app-radius-lg);
}
/* Vuetify's elevation-2 shadow (the app-wide VCard default) is heavy and grey;
   a soft border + shadow reads cleaner. */
.v-card--variant-elevated {
	box-shadow: var(--app-shadow) !important;
	border: 1px solid var(--app-border);
}
.v-card--variant-outlined {
	border-color: var(--app-border);
	/* the global VCard elevation:2 default adds a shadow even to outlined cards */
	box-shadow: none !important;
}
.v-card-title {
	font-family: var(--app-font);
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.005em;
	line-height: 1.5;
}
.v-card-subtitle {
	font-size: 0.8125rem;
	color: var(--app-text-muted);
	opacity: 1;
}
.v-card-text {
	font-size: 0.875rem;
	letter-spacing: 0;
}

/* ~100 form/detail sections are grey `color="cardColor"` cards sitting on the
   white page; render them as white bordered cards so forms, details and lists
   share one surface style. */
/* ...and the ~70 form sections that hard-code the same grey inline
   (style="background-color: #F7F7F9") */
.v-main [style*="background-color: #f7f7f9" i],
.v-main [style*="background-color: rgb(247, 247, 249)"],
.v-main .v-card.bg-cardColor {
	background-color: #fff !important;
	border: 1px solid var(--app-border) !important;
	border-radius: var(--app-radius-lg) !important;
	box-shadow: var(--app-shadow-sm) !important;
}

/* ---------- Dialogs & overlays ------------------------------------------ */
.v-dialog > .v-overlay__content > .v-card,
.v-dialog > .v-overlay__content > form > .v-card {
	border-radius: var(--app-radius-lg);
	border: 0;
	box-shadow: var(--app-shadow-lg) !important;
}
.v-dialog--fullscreen > .v-overlay__content > .v-card {
	border-radius: 0;
}
.v-overlay__scrim {
	background: rgb(16, 24, 40);
	opacity: 0.45;
}
.v-dialog .v-card > .v-card-title,
.v-dialog .v-card > .v-toolbar + .v-card-title {
	padding: 18px 24px 8px;
}
.v-dialog .v-card-title > .v-icon:first-child {
	margin-inline-end: 10px;
	color: var(--app-text-muted);
}
.v-dialog .v-card > .v-card-text {
	padding: 12px 24px;
}
.v-dialog .v-card-actions {
	gap: 8px;
	padding: 12px 24px 20px;
}
.v-dialog .v-card-actions .v-btn ~ .v-btn {
	margin-inline-start: 0 !important;
}
/* Dialog footers were two bare text links ("Cancel  Create") with no primary
   action. ~95% of dialogs order [secondary..., primary], so the last text
   button becomes the filled primary (red when it is a destructive red/error
   action) and earlier text buttons get a neutral outline. */
.v-dialog .v-card-actions > .v-btn--variant-text {
	border: 1px solid var(--app-border-strong);
	color: var(--app-text);
	min-width: 84px;
}
.v-dialog .v-card-actions > .v-btn--variant-text:last-child:not(:first-child) {
	background: rgb(var(--v-theme-buttonA));
	border-color: rgb(var(--v-theme-buttonA));
	color: #fff !important;
}
.v-dialog .v-card-actions > .v-btn--variant-text:last-child:not(:first-child)[class*="text-error"],
.v-dialog .v-card-actions > .v-btn--variant-text:last-child:not(:first-child)[class*="text-red"],
.v-dialog .v-card-actions > .v-btn--variant-text:last-child:not(:first-child).text-primaryRed {
	background: rgb(var(--v-theme-error));
	border-color: rgb(var(--v-theme-error));
}
.v-dialog .v-card-actions > .v-btn--variant-text:last-child:not(:first-child).v-btn--disabled {
	opacity: 0.45;
}
/* Menus / select dropdowns / autocomplete lists */
.v-menu > .v-overlay__content > .v-card,
.v-menu > .v-overlay__content > .v-list,
.v-menu > .v-overlay__content > .v-sheet {
	border-radius: var(--app-radius);
	box-shadow: var(--app-shadow-lg) !important;
	border: 1px solid var(--app-border);
}
.v-tooltip > .v-overlay__content {
	background: #1d2433;
	font-size: 0.75rem;
	line-height: 1.4;
	padding: 6px 10px;
	border-radius: var(--app-radius-sm);
}

/* ---------- Lists --------------------------------------------------------- */
.v-list {
	font-family: var(--app-font);
}
.v-list-item-title {
	font-size: 0.875rem;
	letter-spacing: 0;
	line-height: 1.4;
}
.v-list-item-subtitle {
	font-size: 0.8125rem;
	letter-spacing: 0;
}
.v-list-item--density-compact .v-list-item-title {
	font-size: 0.875rem;
}

/* ---------- Tables -------------------------------------------------------- */
.v-table {
	font-size: 0.875rem;
	color: var(--app-text);
}
.v-table > .v-table__wrapper > table > thead > tr > th {
	background: var(--app-surface-muted);
	color: var(--app-text-muted) !important;
	font-size: 0.8125rem;
	font-weight: 600 !important;
	letter-spacing: 0;
	line-height: 1.3;
	border-bottom: 1px solid var(--app-border) !important;
}
.v-table > .v-table__wrapper > table > tbody > tr > td {
	border-bottom: 1px solid var(--app-border) !important;
}
.v-table > .v-table__wrapper > table > tbody > tr:last-child > td {
	border-bottom: 0 !important;
}
.v-table.v-table--hover > .v-table__wrapper > table > tbody > tr:hover > td,
.v-data-table > .v-table__wrapper > table > tbody > tr:hover > td {
	background: var(--app-surface-hover);
}
.v-data-table-footer {
	font-size: 0.8125rem;
	color: var(--app-text-muted);
	border-top: 1px solid var(--app-border);
	padding-block: 4px;
}
.v-data-table-footer .v-field {
	font-size: 0.8125rem;
}
/* Cells mix 14px text with text-subtitle-1 / text-body-1 (16px) spans, so rows
   looked uneven; keep table body text on one size (weight carries emphasis). */
.v-table td .text-subtitle-1,
.v-table td .text-body-1,
.v-table td .subtitle-1,
.v-table td .text-h6 {
	font-size: 0.875rem !important;
	line-height: 1.4 !important;
}
.v-table td .text-subtitle-2,
.v-table td .text-body-2,
.v-table td .subtitle-2 {
	font-size: 0.8125rem !important;
}
/* Switches/checkboxes inside table cells reserved an empty hint row, so they sat
   off-centre and made rows with a switch taller than rows without one */
.v-table td .v-input--density-default,
.v-table td .v-input--density-compact {
	--v-input-control-height: 32px;
}
.v-table td .v-selection-control .v-input__details,
.v-table td .v-switch .v-input__details,
.v-table td .v-checkbox .v-input__details {
	display: none;
}
.v-table td .v-selection-control {
	--v-selection-control-size: 32px;
	min-height: 32px;
	height: 32px;
}
/* "No data available" row */
.v-data-table-rows-no-data {
	color: var(--app-text-subtle);
	padding-block: 32px !important;
}

/* ---------- Tabs ---------------------------------------------------------- */
.v-tab.v-btn {
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: none;
	border-radius: 0;
	color: var(--app-text-muted);
}
.v-tab.v-tab--selected {
	font-weight: 600;
}
/* Icons placed inline before a tab label (<v-icon>mdi-x</v-icon> Label) had no gap */
.v-tab .v-btn__content > .v-icon:first-child {
	margin-inline-end: 6px;
}
.v-tabs {
	border-bottom: 1px solid var(--app-border);
}

/* ---------- Chips --------------------------------------------------------- */
.v-chip {
	font-weight: 500;
	letter-spacing: 0;
}
.v-chip--size-small {
	font-size: 0.75rem;
}
/* Tonal chips draw text in the chip colour on a 12% tint of it; for light hues
   (yellow/amber/lime, plain & light greys) that text was barely readable, e.g.
   the Audits "In Progress" and "Sop Pending" statuses. Darken the text (the tint
   follows, since it's derived from currentColor). */
.v-chip--variant-tonal[class*="text-yellow"],
.v-chip--variant-tonal[class*="text-amber"],
.v-chip--variant-tonal[class*="text-lime"] {
	color: #92400e !important;
}
.v-chip--variant-tonal.text-grey,
.v-chip--variant-tonal[class*="text-grey-lighten"] {
	color: #4b5563 !important;
}

/* ---------- Expansion panels --------------------------------------------- */
.v-expansion-panel-title {
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0;
}
.v-expansion-panel-text {
	font-size: 0.875rem;
}

/* ---------- Date pickers --------------------------------------------------- */
.v-date-picker {
	border-radius: var(--app-radius-lg);
	overflow: hidden;
}
.v-picker-title {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--app-text-muted);
}
.v-date-picker-header__content {
	font-size: 1.375rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}
.v-date-picker-controls {
	font-size: 0.875rem;
	font-weight: 600;
}
.v-date-picker-month__weekday {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--app-text-subtle);
}
.v-date-picker-month__day .v-btn {
	font-weight: 500;
	border-radius: 50%;
	box-shadow: none;
}
.v-date-picker-month__day--selected .v-btn {
	font-weight: 700;
}
.v-date-picker-month__day--adjacent {
	opacity: 0.35;
}

/* ---------- Alerts / snackbars ------------------------------------------ */
.v-alert {
	border-radius: var(--app-radius);
	font-size: 0.875rem;
}
.v-snackbar__wrapper {
	border-radius: var(--app-radius);
	box-shadow: var(--app-shadow-lg);
}
.v-snackbar__content {
	font-size: 0.875rem;
	letter-spacing: 0;
}

/* ---------- Breadcrumbs --------------------------------------------------- */
.v-breadcrumbs {
	font-size: 0.875rem;
}
.v-breadcrumbs-item--disabled {
	opacity: 1;
	color: var(--app-text-muted);
}

/* ---------- Page shell ---------------------------------------------------- */
/* Many pages put a bare <v-row> (with Vuetify's -12px side margins, sometimes
   plus an inline margin-left) straight under the page root instead of inside a
   <v-container>, overhanging the right edge by 8-12px and giving the whole page
   a horizontal scrollbar. Clip at the content area; tables/charts that really
   are wider keep their own internal scroll containers. */
.v-main {
	overflow-x: clip;
}

/* ---------- Navigation drawer -------------------------------------------- */
.v-navigation-drawer {
	border-color: var(--app-border) !important;
}

/* ---------- Skeleton loaders --------------------------------------------- */
.v-skeleton-loader {
	background: transparent;
}

/* ---------- Scrollbars ---------------------------------------------------- */
* {
	scrollbar-width: thin;
	scrollbar-color: #c9ced6 transparent;
}
*::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}
*::-webkit-scrollbar-thumb {
	background: #c9ced6;
	border-radius: 8px;
	border: 2px solid transparent;
	background-clip: content-box;
}
*::-webkit-scrollbar-track {
	background: transparent;
}

/* ---------- Motion -------------------------------------------------------
   Pages fade in with a slight rise: a CSS animation on the page root, which
   runs each time a route mounts a new page. (Not a <Transition>: an out-in
   transition breaks the router view once any page throws while rendering.)
   Dialogs and menus keep Vuetify's own transitions, tuned to one softer curve
   so every popup opens the same way. All motion is dropped for people who ask
   their OS for reduced motion. */
:root {
	--app-ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
	--app-duration: 180ms;
}
@keyframes app-page-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
.v-main > :not(.v-overlay):not(.v-snackbar):not(.nuxt-route-announcer) {
	animation: app-page-in var(--app-duration) var(--app-ease-out);
}
/* Dialogs: scale from 96% (Vuetify's 90% read as a jump) with a small rise */
.dialog-transition-enter-active,
.dialog-transition-leave-active {
	transition:
		opacity 200ms var(--app-ease-out),
		transform 200ms var(--app-ease-out) !important;
}
.dialog-transition-enter-from,
.dialog-transition-leave-to {
	opacity: 0 !important;
	transform: translateY(8px) scale(0.96) !important;
}
/* Full-screen dialogs slide up instead of scaling */
.v-dialog--fullscreen .dialog-transition-enter-from,
.v-dialog--fullscreen .dialog-transition-leave-to {
	transform: translateY(24px) !important;
}
.v-overlay__scrim {
	transition: opacity 200ms ease;
}
/* Clickable cards / rows get a gentle hover instead of an abrupt change */
.v-card--link,
.v-card[class*="cursor-pointer"],
.v-table tbody tr {
	transition: background-color 120ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
@media (prefers-reduced-motion: reduce) {
	.v-main > * {
		animation: none !important;
	}
	.dialog-transition-enter-active,
	.dialog-transition-leave-active {
		transition: none !important;
	}
	.dialog-transition-enter-from,
	.dialog-transition-leave-to {
		transform: none !important;
	}
}

/* ---------- Layout rhythm -------------------------------------------------
   One page gutter for every page: 24px desktop, 16px tablet, 12px phone
   (responsive-overrides.css). Non-fluid containers used Vuetify's breakpoint
   max-widths, which left a wide empty band on large monitors next to the
   fluid pages; cap them at one generous width instead. */
.v-main .v-container {
	padding: 24px;
}
.v-main .v-container:not(.v-container--fluid) {
	max-width: 1600px;
}
/* Table cells: middle-aligned, so chips / buttons / two-line cells line up across a row */
.v-table > .v-table__wrapper > table > tbody > tr > td,
.v-table > .v-table__wrapper > table > thead > tr > th {
	vertical-align: middle;
}
/* Paragraphs inside table cells carried the browser's 1em bottom margin (or Vuetify's mb-*),
   pushing cell text above the row's centre line */
.v-table td > p:only-child,
.v-table td > p:last-child {
	margin-bottom: 0;
}
/* Header sort icons sat on the text baseline; centre them with the label */
.v-data-table-header__content {
	align-items: center;
	gap: 2px;
}

/* Dialog title bars: v-card-title is a block in Vuetify 3, so the common
   "Title <v-spacer/> <close-btn>" pattern left the close X right after the
   title instead of at the right edge. Make it a wrapping flex row; long titles
   wrap instead of being clipped. */
.v-dialog .v-card > .v-card-title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	white-space: normal;
}

/* ==========================================================================
   responsive-overrides.css
   Global patch for the yk-admin-ui responsive audit.

   Scope: tablet and mobile phones only (<=1024px). Everything in this file
   is wrapped in a max-width media query so laptop/desktop (1280px+) keeps
   its original, pre-audit behavior untouched.
   ========================================================================== */

/* Tablet-width fixes (<=1279px). (The Reports card block that used to open this
   section was replaced by a responsive layout in pages/reports/index.vue.) */
@media (max-width: 1279px) {
    /* Audits page: "Schedule Audit" button and the "In-progress" status
     dropdown both sit in a fixed cols="2" column sized for a 1280px+
     desktop/laptop viewport. At tablet widths that 2/12 share is too
     narrow to fit the button/label, so the button spills past the card
     edge (clipped) and the dropdown text gets truncated ("In-prog..."). */
  .audits-schedule-col {
    flex: 0 0 auto !important;
    max-width: 100% !important;
    width: auto !important;
  }
  .audits-status-col {
    flex: 0 0 auto !important;
    max-width: 60% !important;
    width: auto !important;
    min-width: 160px;
  }

  /* Tabs pattern (v-tabs/v-tab), same fix as the rest of this block: tabs
     crowd together at tablet widths since they keep their desktop spacing.
     Was previously only in the <=1024px block below, which misses tablets
     like iPad Pro at ~1032px — moved up here to match every other fix. */
  .v-tab {
    margin-left: 0 !important;
  }
  .v-slide-group__content {
    gap: 4px;
  }

  /* Dashboard > Actionable > Business Trends chart: Chart.js resizes the bar
     chart's canvas to whatever width its card gets, which at tablet/portrait
     width squeezes 12 months x 5 bars each until bars and their rotated
     data-labels overlap. Instead, show only ~4 months' worth of width at a
     time and let the rest scroll into view horizontally -- the canvas itself
     is sized (via --chart-months, set inline per how many months of data
     there actually are) to lay every month out at full, readable width. */
  .business-trends-chart-col {
    max-width: calc(4 * 150px);
    margin-left: auto;
    margin-right: auto;
    overflow-x: auto;
  }
  .business-trends-chart-card {
    width: calc(var(--chart-months, 12) * 150px) !important;
    min-width: calc(var(--chart-months, 12) * 150px) !important;
  }

}

/* Dashboard stat cards (storeLedgerCard.vue, e.g. "Total No. of orders" /
   "Total No. of On time orders" boxes under Order Fulfilment Timeliness /
   Return orders): fixed height="190px" card with a fixed text-h6 title and
   text-h4 number, sized for 1280px+ desktop where cols="4" gives them plenty
   of width. At tablet widths the column narrows but the fonts don't, so long
   titles (e.g. "Total No. of On time orders") wrap to 2-3 lines and the
   number spills past the card's fixed 190px height (the card explicitly
   disables clipping via .overflow-visible-card). Let the card grow to fit
   its content and shrink the title/number fonts, tablet/phone touchscreens
   only. Gate widened to 1279px (not 1024px) because iPad Pro 13 is 1032px
   wide in portrait — a 1024px cutoff silently excluded it and the rule never
   fired on that device. */
@media (max-width: 1279px) and (hover: none) and (pointer: coarse) {
  .store-ledger-card.store-ledger-card {
    height: auto !important;
    min-height: 190px !important;
  }
  /* Vuetify's own .text-h6/.text-h4 utility classes set font-size with
     !important, so a plain ".store-ledger-card .text-h6" override can lose
     the cascade tie depending on stylesheet load order. Doubling the card
     class raises selector specificity above Vuetify's single-class utility
     rule so this override wins regardless of load order. */
  .store-ledger-card.store-ledger-card .text-h6 {
    font-size: 0.75rem !important;
    line-height: 1.15 !important;
    margin-left: 0 !important;
  }
  .store-ledger-card.store-ledger-card .text-h4 {
    font-size: 1.3rem !important;
    margin-left: 0 !important;
  }
}

/* Phone-width column stacking: many components across the app set a fixed cols="N"
   (N < 12) with no responsive sm/md override (e.g. marginTrend.vue's <v-col cols="8">
   / <v-col cols="4">), so those columns stay locked at a fractional width on every
   screen size, phone included. Without this rule they squeeze side-by-side at
   <=600px and their content overlaps/clips instead of stacking. Scoped to phones
   only (<=600px, not the 768px+ tablet widths, which usually have enough room for
   fixed-cols layouts) to keep the blast radius smaller than the original >=768px
   version of this rule. The blanket ".v-text-field, .v-input, .v-card { max-width:
   100% }" rule that used to also live here is still removed — that one was about
   width overflow, not stacking, and wasn't the source of the overlap. */
@media (max-width: 600px) {
  [class^="v-col-"]:not(.v-col-12):not(.no-stack),
  [class*=" v-col-"]:not(.v-col-12):not(.no-stack) {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 375px) {
  .v-pagination {
    justify-content: center !important;
  }
}

/* AI Replenishment date/time fields: native datetime-local's popup (calendar + time columns
   side by side) can overflow phone-width screens, so phones get a custom stacked picker while
   tablet and desktop/laptop keep the original native input. The three tiers below are kept as
   separate, explicit blocks (rather than one "everything not mobile" rule) so tablet and
   desktop/laptop can each be tuned independently later without touching the mobile rule. */

/* Desktop/laptop (1025px+): unchanged, pre-audit behavior — native input only. */
@media (min-width: 1025px) {
  .mobile-datetime-picker {
    display: none;
  }
}

/* Tablet (601px-1024px): same as desktop/laptop for now — native input only. */
@media (min-width: 601px) and (max-width: 1024px) {
  .mobile-datetime-picker {
    display: none;
  }
}

/* Mobile view (<=600px): swap native datetime-local for the stacked Vuetify picker
   (mobile-date-time-picker.vue) so the calendar/time popup fits the screen. */
@media (max-width: 600px) {
  .desktop-datetime-input {
    display: none;
  }
  .mobile-datetime-picker {
    display: inline-flex;
  }
}

/* Store/Facility page header (pages/facilityPage/index.vue): the search
   field is hard-set to `width: 400px !important` inside a cols="3" column
   sized for 1280px+ desktop/laptop. On iPad Pro 13 (1032px portrait, minus
   the 180px sidebar) that column is ~200px, so the 400px field overflows it,
   widens the page and pushes the table's right-hand columns off screen.
   Let the field size to its column and rebalance the header columns so the
   title, sync/add button and search fit in one row. Tablet/phone
   touchscreens only — desktop/laptop keeps the original layout untouched. */
@media (max-width: 1279px) and (hover: none) and (pointer: coarse) {
  .facility-header-row {
    flex-wrap: nowrap !important;
    margin-inline: 0 !important;
  }
  .facility-title-col {
    flex: 0 0 auto !important;
    max-width: none !important;
    width: auto !important;
  }
  .facility-action-col {
    flex: 0 0 auto !important;
    max-width: none !important;
    width: auto !important;
    white-space: nowrap;
  }
  .facility-search-col {
    flex: 1 1 0 !important;
    max-width: none !important;
    min-width: 0 !important;
    padding-right: 12px !important;
  }
  .facility-search-field.facility-search-field {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

/* Phones: not enough room for title + button + search in one row. */
@media (max-width: 600px) and (hover: none) and (pointer: coarse) {
  .facility-header-row {
    flex-wrap: wrap !important;
  }
  .facility-search-col {
    flex: 0 0 100% !important;
  }
}

/* Users & Roles page header (pages/rolesPermsPage/index.vue): same issue as
   the Store page header — search field hard-set to `width: 400px !important`
   inside a cols="4" column sized for 1280px+ desktop/laptop. At iPad Pro 13
   width it overflows, widening the page (sidebar gets pushed off screen).
   Tablet/phone touchscreens only — desktop/laptop untouched. */
@media (max-width: 1279px) and (hover: none) and (pointer: coarse) {
  .roles-header-row {
    flex-wrap: nowrap !important;
    margin-inline: 0 !important;
  }
  .roles-title-col,
  .roles-action-col {
    flex: 0 0 auto !important;
    max-width: none !important;
    width: auto !important;
    white-space: nowrap;
  }
  .roles-search-col {
    flex: 1 1 0 !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  .roles-search-field.roles-search-field {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 600px) and (hover: none) and (pointer: coarse) {
  .roles-header-row {
    flex-wrap: wrap !important;
  }
  .roles-search-col {
    flex: 0 0 100% !important;
  }
}

/* ==========================================================================
   App-wide tablet / phone polish
   ========================================================================== */

/* Page gutter: 24px desktop (design-system.css) -> 16px tablet -> 12px phone */
@media (max-width: 1279px) {
  .v-main .v-container {
    padding: 16px;
  }
}
@media (max-width: 600px) {
  .v-main .v-container {
    padding: 12px;
  }
}

/* Tables on tablet / phone: wide tables already scroll inside their wrapper, so
   keep header labels on one line (they were wrapping into 3-4 line headers,
   e.g. STN "Requested On / Sort") and tighten cell padding a little. */
@media (max-width: 960px) {
  .v-table > .v-table__wrapper > table > thead > tr > th {
    white-space: nowrap;
  }
  .v-table > .v-table__wrapper > table > thead > tr > th,
  .v-table > .v-table__wrapper > table > tbody > tr > td {
    padding-inline: 12px !important;
  }
}
@media (max-width: 600px) {
  .v-table > .v-table__wrapper > table > thead > tr > th,
  .v-table > .v-table__wrapper > table > tbody > tr > td {
    padding-inline: 10px !important;
  }
  /* Footer: "Items per page" + range + pager no longer fit on one line */
  .v-data-table-footer {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 12px;
    padding-inline: 8px;
  }
  .v-data-table-footer__items-per-page {
    margin-inline-end: 0;
  }
}

/* Dialogs on phones: use the screen width (Vuetify keeps a 24px margin on each
   side, which left ~340px for forms), let action rows wrap, and keep long
   dialogs scrolling inside the viewport. */
@media (max-width: 600px) {
  .v-dialog:not(.v-dialog--fullscreen) > .v-overlay__content {
    max-width: calc(100% - 24px) !important;
    max-height: calc(100% - 24px) !important;
    margin: 12px !important;
  }
  .v-dialog .v-card > .v-card-title,
  .v-dialog .v-card > .v-toolbar + .v-card-title {
    padding: 16px 16px 6px;
  }
  .v-dialog .v-card > .v-card-text {
    padding: 10px 16px;
  }
  .v-dialog .v-card-actions {
    flex-wrap: wrap;
    padding: 10px 16px 16px;
  }
}

/* Touch screens: icon buttons, chip close buttons and inline links were 18-28px
   tall (the app-wide density="compact" default) — below a usable tap size. */
@media (pointer: coarse) {
  .v-btn--icon.v-btn--density-compact,
  .v-btn--icon.v-btn--density-default {
    min-width: 36px;
    min-height: 36px;
  }
  .v-chip__close {
    position: relative;
  }
  .v-chip__close::after {
    /* invisible 32px hit area around the 16px close icon */
    content: "";
    position: absolute;
    inset: -8px;
  }
  .v-table td a,
  .v-table td [role="link"] {
    display: inline-block;
    padding-block: 6px;
  }
}

/* Dashboard > Actionable > Business Trends chart (marginTrend.vue): the
   horizontal-scroll window above is capped at 4 x 150px = 600px and centered.
   On iPad Air/Pro portrait the card content is ~820px wide, so that cap
   leaves ~100px of empty space on each side of the chart. Let the scroll
   window use the full card width and trim its side padding (it still scrolls
   for the months that do not fit, and each month keeps its 150px width).
   Tablet/phone touchscreens only — desktop/laptop untouched. */
@media (max-width: 1279px) and (hover: none) and (pointer: coarse) {
  .business-trends-chart-col {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
}


/* ===== NUXT 2 OLD CODE =====
::v-deep .v-picker__body {
	height: 340px !important;
}
===== NUXT 3 NEW CODE =====
Vuetify 3's picker body is taller than Vuetify 2's (extra header + nav rows), and
.v-picker__body has overflow:hidden — a fixed height clipped the day grid entirely.
min-height keeps the old "don't look too small" intent without capping real content. */
/* .v-picker__body is shared by both the date tab (v-date-picker) and time tab (v-time-picker)
   in this component's v-window. Scoped to .v-date-picker only so the min-height fix (preventing
   the day grid from clipping) doesn't also stretch the time tab's clock container taller than
   it is wide, which turned the circular clock into an oval. */
[data-v-4a7d9555] .v-date-picker .v-picker__body {
	min-height: 340px;
}
[data-v-4a7d9555] .v-time-picker-clock__container {
	max-width: 260px;
}
[data-v-4a7d9555] .v-time-picker-clock {
	max-width: 230px;
	margin: 16px;
}

