/* Default Admin Theme kit v1.0.0. Native HTML adaptation; build-only Tailwind directives removed. */
@layer base {
  body:has(.bhandara-theme) a { color: inherit; }
  body:has(.bhandara-theme) button { appearance: none; background: transparent; border: 0 solid; color: inherit; }
  body:has(.bhandara-theme) :is(input, textarea, select) { color: inherit; }
  body:has(.bhandara-theme) table { border-collapse: collapse; }
  body:has(.bhandara-theme) fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
  body:has(.bhandara-theme) :is(h1,h2,h3,p) { margin: 0; }
}

@font-face { font-family: "Geist"; src: url("/fonts/geist-latin.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-latin-ext.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+20AD-20C0; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-latin.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-latin-ext.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+20AD-20C0; }

/* Scope tokens to the active themed route, including Radix portals mounted in body. */
body:has(.bhandara-theme) {
  --background: oklch(1 0 0); --foreground: oklch(.145 0 0);
  --card: var(--background); --card-foreground: var(--foreground);
  --popover: var(--background); --popover-foreground: var(--foreground);
  --primary: oklch(.555 .163 48.998); --primary-foreground: oklch(.987 .022 95.277);
  --secondary: oklch(.967 .001 286.375); --secondary-foreground: oklch(.21 .006 285.885);
  --muted: oklch(.97 0 0); --muted-foreground: oklch(.52 0 0);
  --accent: var(--muted); --accent-foreground: oklch(.205 0 0);
  --destructive: oklch(.54 .22 27.325); --border: oklch(.922 0 0);
  --input: oklch(.65 0 0); --ring: oklch(.45 0 0); --radius: .5rem;
  --sidebar: oklch(.205 0 0); --sidebar-foreground: oklch(.985 0 0);
  --sidebar-primary: var(--primary); --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: oklch(.29 0 0); --sidebar-accent-foreground: oklch(.985 0 0);
  --sidebar-border: oklch(.32 0 0); --sidebar-ring: oklch(.8 0 0);
  --chart-1: oklch(.905 .182 98.111); --chart-2: oklch(.795 .184 86.047);
  --chart-3: oklch(.681 .162 75.834); --chart-4: oklch(.554 .135 66.442); --chart-5: oklch(.476 .114 61.907);
  color: var(--foreground); background: var(--background); font-family: "Geist", system-ui, sans-serif; font-size: 13px; line-height: 1.5;
}
.bhandara-theme { min-height: 100vh; }
body:has(.bhandara-theme) :is(h1,h2,h3,p) { max-width: none; font-family: inherit; }
body:has(.bhandara-theme) :is(input,select,textarea,button) { font-family: inherit; }
body:has(.bhandara-theme) :is(a,button,input,select,textarea,[tabindex]):focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; box-shadow: none; }
body:has(.bhandara-theme) :is(input,select,textarea)[data-slot]:focus-visible { border-color: var(--ring); outline-width: 1px; outline-offset: 0; }
body:has(.bhandara-theme) :is(a,button):disabled { cursor: not-allowed; }
.bhandara-theme a { text-decoration: none; }
.bhandara-theme ul { list-style: none; margin: 0; padding: 0; }
body:has(.bhandara-theme) label, body:has(.bhandara-theme) legend { font-size: 12px; font-weight: 500; }
body:has(.bhandara-theme) [data-slot="label"] { margin-bottom: 5px; }
body:has(.bhandara-theme) [data-slot="button"] { --theme-button-height: 34px; height: auto; min-height: var(--theme-button-height); gap: 6px; font-size: 12px; border-radius: 6px; }
body:has(.bhandara-theme) [data-slot="button"][data-size="sm"], body:has(.bhandara-theme) [data-slot="button"][data-size="icon-sm"] { --theme-button-height: 32px; }
body:has(.bhandara-theme) [data-slot="button"][data-size="xs"], body:has(.bhandara-theme) [data-slot="button"][data-size="icon-xs"] { --theme-button-height: 28px; }
body:has(.bhandara-theme) [data-slot="button"][data-size="lg"], body:has(.bhandara-theme) [data-slot="button"][data-size="icon-lg"] { --theme-button-height: 36px; }
body:has(.bhandara-theme) [data-slot="button"][data-size^="icon"] { min-width: var(--theme-button-height); }
body:has(.bhandara-theme) input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); flex: none; }
body:has(.bhandara-theme) :is([data-slot="input"],[data-slot="native-select"]) { height: 34px; min-height: 34px; font-size: 13px; background: var(--background); border-radius: 6px; }
body:has(.bhandara-theme) [data-slot="textarea"] { min-height: 80px; font-size: 13px; background: var(--background); border-radius: 6px; }
body:has(.bhandara-theme) [aria-invalid="true"] { border-color: var(--destructive); }
body:has(.bhandara-theme) [data-slot="badge"] { font-size: 11px; font-weight: 500; border-radius: 4px; padding: 2px 6px; }
.bhandara-theme [data-slot="card"] { gap: 0; border: 1px solid var(--border); border-radius: var(--radius); padding: 0; box-shadow: none; --tw-ring-shadow: 0 0 #0000; }
.bhandara-theme [data-slot="card-header"] { padding: 14px 16px 12px; }
.bhandara-theme [data-slot="card-content"] { padding: 0 16px 16px; }
.bhandara-theme [data-slot="card"]:not(:has(> [data-slot="card-header"])) > [data-slot="card-content"] { padding-top: 16px; }
.bhandara-theme [data-slot="card-title"] { font-size: 14px; font-weight: 600; }
.bhandara-theme [data-slot="card-description"] { font-size: 12px; }
.theme-workspace { min-width: 0; }
.theme-topbar { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 20px; border-bottom: 1px solid var(--border); background: var(--background); }
.theme-breadcrumb { display: flex; min-width: 0; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted-foreground); }
.theme-breadcrumb a { color: inherit; }
.theme-user { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 12px; }
.theme-avatar { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--muted); font-size: 10px; }
.theme-main-content { display: flex; flex-direction: column; min-width: 0; width: 100%; max-width: 1600px; gap: 18px; margin: 0 auto; padding: 20px 24px 36px; }
.theme-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.theme-page-heading h1 { font-size: 22px; font-weight: 600; letter-spacing: -.035em; line-height: 1.3; }
.theme-page-heading p { margin-top: 4px; color: var(--muted-foreground); font-size: 13px; }
.theme-heading-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.theme-wordmark { display: flex; flex-direction: column; gap: 4px; padding: 4px; color: var(--sidebar-foreground); }
.theme-wordmark small { color: #bcbcbc; font-size: 11px; }
[data-collapsible="icon"] .theme-wordmark { padding: 0; }
[data-collapsible="icon"] .theme-wordmark small { display: none; }
body:has(.bhandara-theme) [data-slot="sidebar-header"] { padding: 8px 10px 16px; background-color: #252525; }
body:has(.bhandara-theme) [data-slot="sidebar-menu-button"] { min-height: 34px; font-size: 12px; }
body:has(.bhandara-theme) [data-slot="sidebar-menu-button"][data-active="true"] { background: var(--sidebar-accent); color: var(--sidebar-accent-foreground); box-shadow: inset 2px 0 oklch(.78 .16 65); }
body:has(.bhandara-theme) [data-slot^="sidebar"] :focus-visible { outline-color: var(--sidebar-ring); }
body:has(.bhandara-theme) [data-slot="sidebar-group"] { margin-bottom: 14px; }
body:has(.bhandara-theme) [data-slot="sidebar-footer"] { border-top: 1px solid var(--sidebar-border); }
body:has(.bhandara-theme) [data-slot="sidebar-inset"] { background: var(--background); }
.theme-skip-link { position: fixed; top: -100px; left: 12px; z-index: 100; background: white; padding: 8px 12px; color: #111; }
.theme-skip-link:focus { top: 8px; }
.theme-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 12px; }
.theme-summary-card { padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; color: inherit; }
.theme-summary-card span, .theme-summary-card small { display: block; color: var(--muted-foreground); font-size: 12px; }
.theme-summary-card strong { display: block; margin: 6px 0; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.theme-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 12px; }
.theme-section-heading h2 { font-size: 15px; font-weight: 600; }
.theme-section-heading span { font-size: 12px; color: var(--muted-foreground); }
.theme-detail-list { display: grid; grid-template-columns: minmax(110px,.7fr) minmax(0,1.5fr); gap: 8px 16px; font-size: 13px; }
.theme-detail-list dt { color: var(--muted-foreground); }
.theme-detail-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.theme-mono,.theme-record-id { font-family: "Geist Mono", monospace; font-size: 11px; }
.theme-record-id { color: var(--muted-foreground); }
.bhandara-theme [data-slot="table"] { font-size: 12px; }
.bhandara-theme [data-slot="table-header"] { background: var(--muted); }
.bhandara-theme [data-slot="table-head"] { height: 36px; padding: 8px 12px; color: var(--muted-foreground); font-size: 11px; font-weight: 500; white-space: nowrap; }
.bhandara-theme [data-slot="table-cell"] { padding: 8px 12px; height: 44px; font-size: 12px; }
.bhandara-theme [data-slot="table-row"] { border-color: var(--border); }
.theme-page-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.theme-profile-mark { display: grid; width: 40px; height: 40px; flex: none; place-items: center; border-radius: 6px; background: var(--muted); font-size: 14px; font-weight: 600; }
.bhandara-theme [data-slot="tabs-list"] { gap: 20px; min-width: 0; max-width: 100%; overflow-x: auto; }
.bhandara-theme [data-slot="tabs-trigger"] { flex: none; font-size: 12px; font-weight: 500; padding: 10px 0; white-space: nowrap; }
.bhandara-theme [data-slot="tabs-trigger"][data-state="active"] { border-bottom-color: var(--primary); color: var(--foreground); }
.bhandara-theme [data-slot="tabs-content"] { padding-top: 16px; }
.theme-badge-success { background: #edf7f0; color: #216b3d; }
.theme-badge-warning { background: #fff4df; color: #805400; }
.theme-badge-danger { background: #fdf0ef; color: #ab2920; }
.theme-badge-neutral { background: var(--muted); color: var(--muted-foreground); }
.theme-inline-form > fieldset { display: grid; grid-auto-flow: column; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto auto; align-items: start; column-gap: 12px; row-gap: 5px; }
/* Share label, control and error rows so actions never depend on a label-height offset. */
.theme-inline-form > fieldset > div { display: grid; grid-template-rows: subgrid; grid-row: 1 / span 3; min-width: 0; }
.theme-inline-form [data-slot="label"] { margin-bottom: 0; }
.theme-inline-form .theme-form-action { grid-row: 2; margin: 0; height: 34px; }
.theme-inline-form .theme-field-error { margin-top: 0 !important; }
.theme-form-section { display: grid; gap: 12px; padding-block: 12px; border-top: 1px solid var(--border); }
.theme-form-section:first-child { border-top: 0; padding-top: 0; }
.theme-form-section legend,.theme-form-section h2 { margin-bottom: 0; font-size: 14px; font-weight: 600; }
.theme-form-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.theme-field-error { margin-top: 4px !important; color: var(--destructive); font-size: 12px; }
@media (max-width: 767px) {
  .theme-main-content { padding: 16px; gap: 16px; }
  .theme-topbar { padding: 8px 12px; }
  .theme-page-heading h1 { font-size: 20px; }
  .theme-user { font-size: 0; }
  .theme-inline-form > fieldset { grid-template-columns: minmax(0,1fr); grid-auto-flow: row; row-gap: 8px; }
  .theme-inline-form > fieldset > div { grid-row: auto; grid-template-rows: auto; gap: 5px; }
  .theme-inline-form .theme-form-action { grid-row: auto; justify-self: start; }
  .theme-detail-list { grid-template-columns: 1fr; gap: 3px; }
  .theme-detail-list dd { margin-bottom: 8px; }
}
@media (pointer: coarse) {
  body:has(.bhandara-theme) :is([data-slot="button"][data-size^="icon"],[data-slot="sidebar-trigger"]) { min-width: 44px; }
  body:has(.bhandara-theme) :is([data-slot="button"],[data-slot="input"],[data-slot="native-select"],[data-slot="tabs-trigger"],[data-slot="sidebar-menu-button"],[data-slot="sidebar-trigger"],label:has(input[type="checkbox"])) { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { body:has(.bhandara-theme) *, body:has(.bhandara-theme) *::before, body:has(.bhandara-theme) *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
.theme-menu-table-card [data-slot="table"] { min-width: 720px; }

.theme-table-card { overflow: hidden; }
.theme-table-card > [data-slot="card-content"] { padding: 0 !important; }

@layer base {
  body:has(.bhandara-theme) { margin: 0; color-scheme: light; }
  body:has(.bhandara-theme) *, body:has(.bhandara-theme) *::before, body:has(.bhandara-theme) *::after { box-sizing: border-box; border-color: var(--border); }
}
