*,
:after,
:before {
    --tw-border-spacing-x: 0;
    --tw-border-spacing-y: 0;
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    --tw-pan-x: ;
    --tw-pan-y: ;
    --tw-pinch-zoom: ;
    --tw-scroll-snap-strictness: proximity;
    --tw-gradient-from-position: ;
    --tw-gradient-via-position: ;
    --tw-gradient-to-position: ;
    --tw-ordinal: ;
    --tw-slashed-zero: ;
    --tw-numeric-figure: ;
    --tw-numeric-spacing: ;
    --tw-numeric-fraction: ;
    --tw-ring-inset: ;
    --tw-ring-offset-width: 0px;
    --tw-ring-offset-color: #fff;
    --tw-ring-color: rgba(59, 130, 246, .5);
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    --tw-blur: ;
    --tw-brightness: ;
    --tw-contrast: ;
    --tw-grayscale: ;
    --tw-hue-rotate: ;
    --tw-invert: ;
    --tw-saturate: ;
    --tw-sepia: ;
    --tw-drop-shadow: ;
    --tw-backdrop-blur: ;
    --tw-backdrop-brightness: ;
    --tw-backdrop-contrast: ;
    --tw-backdrop-grayscale: ;
    --tw-backdrop-hue-rotate: ;
    --tw-backdrop-invert: ;
    --tw-backdrop-opacity: ;
    --tw-backdrop-saturate: ;
    --tw-backdrop-sepia: ;
    --tw-contain-size: ;
    --tw-contain-layout: ;
    --tw-contain-paint: ;
    --tw-contain-style:
}

::backdrop {
    --tw-border-spacing-x: 0;
    --tw-border-spacing-y: 0;
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    --tw-pan-x: ;
    --tw-pan-y: ;
    --tw-pinch-zoom: ;
    --tw-scroll-snap-strictness: proximity;
    --tw-gradient-from-position: ;
    --tw-gradient-via-position: ;
    --tw-gradient-to-position: ;
    --tw-ordinal: ;
    --tw-slashed-zero: ;
    --tw-numeric-figure: ;
    --tw-numeric-spacing: ;
    --tw-numeric-fraction: ;
    --tw-ring-inset: ;
    --tw-ring-offset-width: 0px;
    --tw-ring-offset-color: #fff;
    --tw-ring-color: rgba(59, 130, 246, .5);
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    --tw-blur: ;
    --tw-brightness: ;
    --tw-contrast: ;
    --tw-grayscale: ;
    --tw-hue-rotate: ;
    --tw-invert: ;
    --tw-saturate: ;
    --tw-sepia: ;
    --tw-drop-shadow: ;
    --tw-backdrop-blur: ;
    --tw-backdrop-brightness: ;
    --tw-backdrop-contrast: ;
    --tw-backdrop-grayscale: ;
    --tw-backdrop-hue-rotate: ;
    --tw-backdrop-invert: ;
    --tw-backdrop-opacity: ;
    --tw-backdrop-saturate: ;
    --tw-backdrop-sepia: ;
    --tw-contain-size: ;
    --tw-contain-layout: ;
    --tw-contain-paint: ;
    --tw-contain-style:
}

/*! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com*/
*,
:after,
:before {
    border: 0 solid #e5e7eb
}

:after,
:before {
    --tw-content: ""
}

:host,
html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-feature-settings: normal;
    font-variation-settings: normal;
    -webkit-tap-highlight-color: transparent
}

body {
    line-height: inherit
}

hr {
    height: 0;
    color: inherit;
    border-top-width: 1px
}

abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit
}

a {
    color: inherit;
    text-decoration: inherit
}

b,
strong {
    font-weight: bolder
}

code,
kbd,
pre,
samp {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
    font-feature-settings: normal;
    font-variation-settings: normal;
    font-size: 1em
}

small {
    font-size: 80%
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline
}

sub {
    bottom: -.25em
}

sup {
    top: -.5em
}

table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
    padding: 0
}

button,
select {
    text-transform: none
}

button,
input:where([type=button]),
input:where([type=reset]),
input:where([type=submit]) {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none
}

:-moz-focusring {
    outline: auto
}

:-moz-ui-invalid {
    box-shadow: none
}

progress {
    vertical-align: baseline
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
    height: auto
}

[type=search] {
    -webkit-appearance: textfield;
    outline-offset: -2px
}

::-webkit-search-decoration {
    -webkit-appearance: none
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit
}

summary {
    display: list-item
}

blockquote,
dd,
dl,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
p,
pre {
    margin: 0
}

fieldset {
    margin: 0
}

fieldset,
legend {
    padding: 0
}

menu,
ol,
ul {
    list-style: none;
    margin: 0;
    padding: 0
}

dialog {
    padding: 0
}

textarea {
    resize: vertical
}

input::-moz-placeholder,
textarea::-moz-placeholder {
    opacity: 1;
    color: #9ca3af
}

input::placeholder,
textarea::placeholder {
    opacity: 1;
    color: #9ca3af
}

[role=button],
button {
    cursor: pointer
}

:disabled {
    cursor: default
}

audio,
canvas,
embed,
iframe,
img,
object,
svg,
video {
    display: block;
    vertical-align: middle
}

img,
video {
    max-width: 100%;
    height: auto
}

[hidden]:where(:not([hidden=until-found])) {
    display: none
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent
}

body {
    --tw-bg-opacity: 1;
    background-color: rgb(250 249 246/var(--tw-bg-opacity, 1));
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: .875rem;
    line-height: 1.25rem;
    line-height: 1.625;
    --tw-text-opacity: 1;
    color: rgb(31 41 55/var(--tw-text-opacity, 1));
    margin: 0
}

*,
:after,
:before {
    box-sizing: border-box
}

.btn {
    display: inline-flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: .375rem;
    padding: .5rem 1rem;
    font-size: .875rem;
    line-height: 1.25rem;
    font-weight: 500;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-duration: .15s;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1)
}

.btn:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-color: rgba(37, 99, 235, .4);
    --tw-ring-offset-width: 1px
}

.btn:disabled {
    cursor: not-allowed;
    opacity: .5
}

.btn-primary {
    --tw-bg-opacity: 1;
    background-color: rgb(37 99 235/var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(255 255 255/var(--tw-text-opacity, 1))
}

.btn-primary:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(29 78 216/var(--tw-bg-opacity, 1))
}

.btn-secondary {
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235/var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255/var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(107 114 128/var(--tw-text-opacity, 1))
}

.btn-secondary:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(250 249 246/var(--tw-bg-opacity, 1))
}

.btn-danger {
    --tw-bg-opacity: 1;
    background-color: rgb(185 28 28/var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(255 255 255/var(--tw-text-opacity, 1))
}

.btn-danger:hover {
    opacity: .9
}

.btn-ghost {
    background-color: transparent;
    --tw-text-opacity: 1;
    color: rgb(107 114 128/var(--tw-text-opacity, 1))
}

.btn-ghost:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(250 249 246/var(--tw-bg-opacity, 1))
}

.btn-success {
    --tw-bg-opacity: 1;
    background-color: rgb(21 128 61/var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(255 255 255/var(--tw-text-opacity, 1))
}

.btn-success:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(20 83 45/var(--tw-bg-opacity, 1))
}

.btn-danger-outline {
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(185 28 28/var(--tw-border-opacity, 1));
    background-color: transparent;
    --tw-text-opacity: 1;
    color: rgb(185 28 28/var(--tw-text-opacity, 1))
}

.btn-danger-outline:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(254 226 226/var(--tw-bg-opacity, 1))
}

.btn-sm {
    padding: .375rem .75rem;
    font-size: .75rem;
    line-height: 1rem
}

.btn-lg {
    padding: .75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5rem
}

.card,
.metric-card {
    border-radius: .5rem;
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235/var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255/var(--tw-bg-opacity, 1));
    padding: 1.25rem
}

.metric-card {
    display: flex;
    flex-direction: column;
    gap: .25rem
}

.metric-card .metric-label {
    font-size: .75rem;
    line-height: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .025em;
    --tw-text-opacity: 1;
    color: rgb(107 114 128/var(--tw-text-opacity, 1))
}

.metric-card .metric-value {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(31 41 55/var(--tw-text-opacity, 1))
}

.metric-card .metric-sub {
    margin-top: .25rem;
    font-size: .75rem;
    line-height: 1rem;
    --tw-text-opacity: 1;
    color: rgb(107 114 128/var(--tw-text-opacity, 1))
}

.status-pill {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border-radius: 9999px;
    padding: .125rem .625rem;
    font-size: .75rem;
    line-height: 1rem;
    font-weight: 500
}

.status-pill-success {
    --tw-bg-opacity: 1;
    background-color: rgb(220 252 231/var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(21 128 61/var(--tw-text-opacity, 1))
}

.status-pill-warning {
    --tw-bg-opacity: 1;
    background-color: rgb(254 243 199/var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(180 83 9/var(--tw-text-opacity, 1))
}

.status-pill-danger {
    --tw-bg-opacity: 1;
    background-color: rgb(254 226 226/var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(185 28 28/var(--tw-text-opacity, 1))
}

.nav-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    border-radius: .375rem;
    padding: .5rem .75rem;
    font-size: .875rem;
    line-height: 1.25rem;
    --tw-text-opacity: 1;
    color: rgb(107 114 128/var(--tw-text-opacity, 1));
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-duration: .15s;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1)
}

.nav-item:hover {
    background-color: rgb(250 249 246/var(--tw-bg-opacity, 1));
    color: rgb(31 41 55/var(--tw-text-opacity, 1))
}

.nav-item-active,
.nav-item:hover {
    --tw-bg-opacity: 1;
    --tw-text-opacity: 1
}

.nav-item-active {
    background-color: rgb(239 246 255/var(--tw-bg-opacity, 1));
    font-weight: 500;
    color: rgb(37 99 235/var(--tw-text-opacity, 1))
}

.sidebar {
    display: flex;
    height: 100vh;
    width: 16rem;
    flex-direction: column;
    overflow-y: auto;
    border-right-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235/var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255/var(--tw-bg-opacity, 1))
}

.sidebar-brand {
    display: flex;
    height: 4rem;
    flex-shrink: 0;
    align-items: center;
    gap: .5rem;
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235/var(--tw-border-opacity, 1));
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(31 41 55/var(--tw-text-opacity, 1))
}

.sidebar-nav {
    display: flex;
    flex: 1 1 0%;
    flex-direction: column;
    gap: .25rem;
    padding: .75rem
}

.sidebar-footer {
    border-top-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235/var(--tw-border-opacity, 1));
    padding: .75rem
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    height: 4rem;
    align-items: center;
    justify-content: space-between;
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235/var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255/var(--tw-bg-opacity, 1));
    padding-left: 1rem;
    padding-right: 1rem
}

@media (min-width:768px) {
    .topbar {
        padding-left: 1.5rem;
        padding-right: 1.5rem
    }
}

.topbar-title {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(31 41 55/var(--tw-text-opacity, 1))
}

.data-table {
    width: 100%;
    text-align: left;
    font-size: .875rem;
    line-height: 1.25rem
}

.data-table thead th {
    border-bottom-width: 2px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235/var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(250 249 246/var(--tw-bg-opacity, 1));
    padding: .75rem 1rem;
    font-size: .75rem;
    line-height: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    --tw-text-opacity: 1;
    color: rgb(107 114 128/var(--tw-text-opacity, 1))
}

.data-table tbody td {
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235/var(--tw-border-opacity, 1));
    padding: .75rem 1rem;
    --tw-text-opacity: 1;
    color: rgb(31 41 55/var(--tw-text-opacity, 1))
}

.data-table tbody tr:last-child td {
    border-bottom-width: 0
}

.data-table tbody tr {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .1s
}

.data-table tbody tr:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(250 249 246/var(--tw-bg-opacity, 1))
}

.stacked-card>:not([hidden])~:not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(.5rem*(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(.5rem*var(--tw-space-y-reverse))
}

.stacked-card {
    border-radius: .5rem;
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235/var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255/var(--tw-bg-opacity, 1));
    padding: 1rem
}

.stacked-card .stacked-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: .875rem;
    line-height: 1.25rem
}

.stacked-card .stacked-label {
    font-size: .75rem;
    line-height: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .025em;
    --tw-text-opacity: 1;
    color: rgb(107 114 128/var(--tw-text-opacity, 1))
}

.stacked-card .stacked-value {
    text-align: right;
    --tw-text-opacity: 1;
    color: rgb(31 41 55/var(--tw-text-opacity, 1))
}

.form-input {
    width: 100%;
    border-radius: .375rem;
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235/var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255/var(--tw-bg-opacity, 1));
    padding: .5rem .75rem;
    font-size: .875rem;
    line-height: 1.25rem;
    --tw-text-opacity: 1;
    color: rgb(31 41 55/var(--tw-text-opacity, 1));
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .15s
}

.form-input::-moz-placeholder {
    color: hsla(220, 9%, 46%, .6)
}

.form-input::placeholder {
    color: hsla(220, 9%, 46%, .6)
}

.form-input:focus {
    --tw-border-opacity: 1;
    border-color: rgb(37 99 235/var(--tw-border-opacity, 1));
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-color: rgba(37, 99, 235, .4)
}

.form-label {
    margin-bottom: .25rem;
    display: block;
    font-size: .875rem;
    line-height: 1.25rem;
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(107 114 128/var(--tw-text-opacity, 1))
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .25rem
}

.form-error {
    margin-top: .25rem;
    font-size: .75rem;
    line-height: 1rem;
    --tw-text-opacity: 1;
    color: rgb(185 28 28/var(--tw-text-opacity, 1))
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background-color: rgba(0, 0, 0, .3);
    transition-property: opacity;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .2s
}

.overlay-hidden {
    pointer-events: none;
    opacity: 0
}

.drawer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    height: 100vh;
    width: 16rem;
    --tw-translate-x: -100%;
    border-right-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235/var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255/var(--tw-bg-opacity, 1));
    transition-property: transform;
    transition-duration: .2s;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1)
}

.drawer,
.drawer-open {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
}

.drawer-open {
    --tw-translate-x: 0px
}

.flash {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    border-radius: .375rem;
    padding: .75rem 1rem;
    font-size: .875rem;
    line-height: 1.25rem
}

.flash-success {
    border-width: 1px;
    border-color: rgba(21, 128, 61, .2);
    --tw-bg-opacity: 1;
    background-color: rgb(220 252 231/var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(21 128 61/var(--tw-text-opacity, 1))
}

.flash-warning {
    border-width: 1px;
    border-color: rgba(180, 83, 9, .2);
    --tw-bg-opacity: 1;
    background-color: rgb(254 243 199/var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(180 83 9/var(--tw-text-opacity, 1))
}

.flash-error {
    border-width: 1px;
    border-color: rgba(185, 28, 28, .2);
    --tw-bg-opacity: 1;
    background-color: rgb(254 226 226/var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(185 28 28/var(--tw-text-opacity, 1))
}

.pagination {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: .25rem
}

.pagination-btn {
    display: inline-flex;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: .375rem;
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235/var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255/var(--tw-bg-opacity, 1));
    font-size: .875rem;
    line-height: 1.25rem;
    --tw-text-opacity: 1;
    color: rgb(107 114 128/var(--tw-text-opacity, 1));
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .15s
}

.pagination-btn:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(250 249 246/var(--tw-bg-opacity, 1))
}

.pagination-btn-active {
    --tw-border-opacity: 1;
    border-color: rgb(37 99 235/var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(37 99 235/var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(255 255 255/var(--tw-text-opacity, 1))
}

.pagination-btn-active:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(29 78 216/var(--tw-bg-opacity, 1))
}

.pagination-btn-disabled {
    pointer-events: none;
    cursor: not-allowed;
    opacity: .4
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    text-align: center
}

.empty-state-icon {
    margin-bottom: 1rem;
    height: 4rem;
    width: 4rem;
    --tw-text-opacity: 1;
    color: rgb(229 231 235/var(--tw-text-opacity, 1))
}

.empty-state-title {
    margin-bottom: .25rem;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(31 41 55/var(--tw-text-opacity, 1))
}

.empty-state-message {
    margin-bottom: 1rem;
    max-width: 24rem;
    font-size: .875rem;
    line-height: 1.25rem;
    --tw-text-opacity: 1;
    color: rgb(107 114 128/var(--tw-text-opacity, 1))
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, .3);
    padding: 4rem
}

.modal-panel {
    width: 100%;
    overflow: hidden;
    border-radius: .5rem;
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235/var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255/var(--tw-bg-opacity, 1))
}

.modal-sm {
    max-width: 24rem
}

.modal-md {
    max-width: 32rem
}

.modal-lg {
    max-width: 42rem
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235/var(--tw-border-opacity, 1));
    padding: 1rem 1.25rem
}

.modal-header h3 {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(31 41 55/var(--tw-text-opacity, 1))
}

.modal-body {
    padding: 1rem 1.25rem
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    border-top-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235/var(--tw-border-opacity, 1));
    padding: .75rem 1.25rem
}

.visible {
    visibility: visible
}

.fixed {
    position: fixed
}

.sticky {
    position: sticky
}

.inset-0 {
    inset: 0
}

.left-0 {
    left: 0
}

.top-0 {
    top: 0
}

.z-20 {
    z-index: 20
}

.z-30 {
    z-index: 30
}

.z-40 {
    z-index: 40
}

.z-50 {
    z-index: 50
}

.mx-auto {
    margin-left: auto;
    margin-right: auto
}

.mb-1 {
    margin-bottom: .25rem
}

.mb-3 {
    margin-bottom: .75rem
}

.mb-4 {
    margin-bottom: 1rem
}

.mb-6 {
    margin-bottom: 1.5rem
}

.mb-8 {
    margin-bottom: 2rem
}

.ml-2 {
    margin-left: .5rem
}

.mt-0\.5 {
    margin-top: .125rem
}

.mt-1 {
    margin-top: .25rem
}

.mt-2 {
    margin-top: .5rem
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem
}

.block {
    display: block
}

.inline {
    display: inline
}

.flex {
    display: flex
}

.inline-flex {
    display: inline-flex
}

.table {
    display: table
}

.grid {
    display: grid
}

.hidden {
    display: none
}

.h-16 {
    height: 4rem
}

.h-12 {
    height: 3rem;
}

.h-4 {
    height: 1rem
}

.h-5 {
    height: 1.25rem
}

.h-6 {
    height: 1.5rem
}

.h-8 {
    height: 2rem
}

.h-screen {
    height: 100vh
}

.min-h-screen {
    min-height: 100vh
}

.w-12 {
    width: 3rem;
}

.w-16 {
    width: 4rem
}

.w-4 {
    width: 1rem
}

.w-5 {
    width: 1.25rem
}

.w-6 {
    width: 1.5rem
}

.w-64 {
    width: 16rem
}

.w-8 {
    width: 2rem
}

.w-full {
    width: 100%
}

.max-w-5xl {
    max-width: 64rem
}

.max-w-md {
    max-width: 28rem
}

.max-w-lg {
    max-width: 32rem
}

.max-w-xl {
    max-width: 36rem
}

.max-w-2xl {
    max-width: 40rem
}

.max-w-3xl {
    max-width: 44rem
}

.max-w-4xl {
    max-width: 60rem
}

.max-w-5xl {
    max-width: 66rem
}

.max-w-6xl {
    max-width: 72rem
}

.max-w-7xl {
    max-width: 78rem
}

.max-w-8xl {
    max-width: 84rem
}

.max-w-9xl {
    max-width: 90rem
}


.max-w-xs {
    max-width: 20rem
}

.flex-1 {
    flex: 1 1 0%
}

.shrink-0 {
    flex-shrink: 0
}

.-translate-x-full {
    --tw-translate-x: -100%
}

.-translate-x-full,
.transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
}

.cursor-not-allowed {
    cursor: not-allowed
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

.flex-col {
    flex-direction: column
}

.items-start {
    align-items: flex-start
}

.items-center {
    align-items: center
}

.items-baseline {
    align-items: baseline
}

.justify-end {
    justify-content: flex-end
}

.justify-center {
    justify-content: center
}

.justify-between {
    justify-content: space-between
}

.gap-1 {
    gap: .25rem
}

.gap-2 {
    gap: .5rem
}

.gap-3 {
    gap: .75rem
}

.gap-4 {
    gap: 1rem
}

.gap-6 {
    gap: 1.25rem;
}

.space-y-3>:not([hidden])~:not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(.75rem*(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(.75rem*var(--tw-space-y-reverse))
}

.space-y-4>:not([hidden])~:not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1rem*(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(1rem*var(--tw-space-y-reverse))
}

.overflow-hidden {
    overflow: hidden
}

.overflow-x-auto {
    overflow-x: auto
}

.rounded-full {
    border-radius: 9999px
}

.rounded-lg {
    border-radius: .5rem
}

.rounded-md {
    border-radius: .375rem
}

.border {
    border-width: 1px
}

.border-b {
    border-bottom-width: 1px
}

.border-b-2 {
    border-bottom-width: 2px
}

.border-r {
    border-right-width: 1px
}

.border-t {
    border-top-width: 1px
}

.border-accent {
    --tw-border-opacity: 1;
    border-color: rgb(37 99 235/var(--tw-border-opacity, 1))
}

.border-border-default {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235/var(--tw-border-opacity, 1))
}

.bg-accent {
    --tw-bg-opacity: 1;
    background-color: rgb(37 99 235/var(--tw-bg-opacity, 1))
}

.bg-accent-light {
    --tw-bg-opacity: 1;
    background-color: rgb(239 246 255/var(--tw-bg-opacity, 1))
}

.bg-black\/30 {
    background-color: rgba(0, 0, 0, .3)
}

.bg-danger-light {
    --tw-bg-opacity: 1;
    background-color: rgb(254 226 226/var(--tw-bg-opacity, 1))
}

.bg-danger-text {
    --tw-bg-opacity: 1;
    background-color: rgb(185 28 28/var(--tw-bg-opacity, 1))
}

.bg-neutral-warm {
    --tw-bg-opacity: 1;
    background-color: rgb(250 249 246/var(--tw-bg-opacity, 1))
}

.bg-success-light {
    --tw-bg-opacity: 1;
    background-color: rgb(220 252 231/var(--tw-bg-opacity, 1))
}

.bg-transparent {
    background-color: transparent
}

.bg-warning-light {
    --tw-bg-opacity: 1;
    background-color: rgb(254 243 199/var(--tw-bg-opacity, 1))
}

.bg-white {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255/var(--tw-bg-opacity, 1))
}

.p-0 {
    padding: 0
}

.p-1 {
    padding: .25rem
}

.p-1\.5 {
    padding: .375rem
}

.p-3 {
    padding: .75rem
}

.p-4 {
    padding: 1rem
}

.p-5 {
    padding: 1.25rem
}

.p-12 {
    padding: 2.5rem;
}

.px-2\.5 {
    padding-left: .625rem;
    padding-right: .625rem
}

.px-3 {
    padding-left: .75rem;
    padding-right: .75rem
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem
}

.px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem
}

.py-0\.5 {
    padding-top: .125rem;
    padding-bottom: .125rem
}

.py-1\.5 {
    padding-top: .375rem;
    padding-bottom: .375rem
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem
}

.py-2 {
    padding-top: .5rem;
    padding-bottom: .5rem
}

.py-3 {
    padding-top: .75rem;
    padding-bottom: .75rem
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem
}

.text-left {
    text-align: left
}

.text-center {
    text-align: center
}

.font-sans {
    font-family: Inter, system-ui, -apple-system, sans-serif
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem
}

.text-sm {
    font-size: .875rem;
    line-height: 1.25rem
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem
}

.text-xs {
    font-size: .75rem;
    line-height: 1rem
}

.font-bold {
    font-weight: 700
}

.font-medium {
    font-weight: 500
}

.font-semibold {
    font-weight: 600
}

.uppercase {
    text-transform: uppercase
}

.italic {
    font-style: italic
}

.tracking-tight {
    letter-spacing: -.025em
}

.tracking-wide {
    letter-spacing: .025em
}

.tracking-wider {
    letter-spacing: .05em
}

.tracking-widest {
    letter-spacing: .1em
}

.text-accent {
    --tw-text-opacity: 1;
    color: rgb(37 99 235/var(--tw-text-opacity, 1))
}

.text-border-default {
    --tw-text-opacity: 1;
    color: rgb(229 231 235/var(--tw-text-opacity, 1))
}

.text-danger-text {
    --tw-text-opacity: 1;
    color: rgb(185 28 28/var(--tw-text-opacity, 1))
}

.text-success-text {
    --tw-text-opacity: 1;
    color: rgb(21 128 61/var(--tw-text-opacity, 1))
}

.text-text-muted {
    --tw-text-opacity: 1;
    color: rgb(156 163 175/var(--tw-text-opacity, 1))
}

.text-text-primary {
    --tw-text-opacity: 1;
    color: rgb(31 41 55/var(--tw-text-opacity, 1))
}

.text-text-secondary {
    --tw-text-opacity: 1;
    color: rgb(107 114 128/var(--tw-text-opacity, 1))
}

.text-warning-text {
    --tw-text-opacity: 1;
    color: rgb(180 83 9/var(--tw-text-opacity, 1))
}

.text-white {
    --tw-text-opacity: 1;
    color: rgb(255 255 255/var(--tw-text-opacity, 1))
}

.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

.opacity-0 {
    opacity: 0
}

.opacity-40 {
    opacity: .4
}

.opacity-60 {
    opacity: .6
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .15s
}

.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .15s
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1)
}

.duration-150,
.transition-transform {
    transition-duration: .15s
}

.duration-200 {
    transition-duration: .2s
}

.ease-in-out {
    transition-timing-function: cubic-bezier(.4, 0, .2, 1)
}

.placeholder\:text-text-secondary\/60::-moz-placeholder {
    color: hsla(220, 9%, 46%, .6)
}

.placeholder\:text-text-secondary\/60::placeholder {
    color: hsla(220, 9%, 46%, .6)
}

.hover\:bg-neutral-warm:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(250 249 246/var(--tw-bg-opacity, 1))
}

.hover\:underline:hover {
    text-decoration-line: underline
}

.hover\:opacity-100:hover {
    opacity: 1
}

.focus\:border-accent:focus {
    --tw-border-opacity: 1;
    border-color: rgb(37 99 235/var(--tw-border-opacity, 1))
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px
}

.focus\:ring-2:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)
}

.focus\:ring-accent\/40:focus {
    --tw-ring-color: rgba(37, 99, 235, .4)
}

.focus\:ring-offset-1:focus {
    --tw-ring-offset-width: 1px
}

.disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed
}

.disabled\:opacity-50:disabled {
    opacity: .5
}

@media (min-width:640px) {
    .sm\:inline {
        display: inline
    }

    .sm\:flex-row {
        flex-direction: row
    }

    .sm\:items-center {
        align-items: center
    }

    .sm\:justify-between {
        justify-content: space-between
    }
}

@media (min-width:768px) {
    .md\:ml-64 {
        margin-left: 16rem
    }

    .md\:block {
        display: block
    }

    .md\:flex {
        display: flex
    }

    .md\:hidden {
        display: none
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr))
    }

    .md\:p-6 {
        padding: 1.5rem
    }

    .md\:p-8 {
        padding: 2rem
    }

    .md\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem
    }
}

/* ── Categorized Sidebar Accordion & Dropdown System ────────────────── */
.sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 16rem;
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
}

@media (max-width: 767px) {

    .sidebar,
    .sidebar.hidden {
        display: none !important;
    }
}

/* ── Mobile Off-Canvas Drawer & Overlay ────────────────────────────── */
.overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 40;
    transition: opacity 200ms ease;
}

.overlay-hidden {
    opacity: 0;
    pointer-events: none;
}

.drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 16rem;
    background-color: #ffffff;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.drawer-open {
    transform: translateX(0) !important;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0.75rem;
}

.sidebar-category {
    margin-bottom: 0.75rem;
}

.sidebar-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    border-radius: 0.375rem;
    transition: all 150ms ease;
    cursor: pointer;
    user-select: none;
    background: transparent;
    border: none;
    text-align: left;
}

.sidebar-category-header:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.sidebar-category-chevron {
    width: 1rem;
    height: 1rem;
    transition: transform 200ms ease;
    color: #9ca3af;
}

.sidebar-category-collapsed .sidebar-category-chevron {
    transform: rotate(-90deg);
}

.sidebar-category-items {
    margin-top: 0.25rem;
    padding-left: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    transition: max-height 250ms ease, opacity 200ms ease;
}

.sidebar-category-collapsed .sidebar-category-items {
    display: none;
}

.nav-sub-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.4375rem 0.75rem;
    font-size: 0.84rem;
    font-weight: 500;
    color: #4b5563;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 150ms ease;
}

.nav-sub-item:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.nav-sub-item-active {
    background-color: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.sidebar-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid #f3f4f6;
    background-color: #ffffff;
}

.sidebar-logout-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #dc2626;
    border-radius: 0.375rem;
    background: transparent;
    border: none;
    transition: all 150ms ease;
    cursor: pointer;
}

.sidebar-logout-btn:hover {
    background-color: #fef2f2;
}

/* ── Topbar User Dropdown ────────────────────────────── */
.user-menu-wrapper {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem;
    border-radius: 9999px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 150ms ease;
}

.user-menu-btn:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.user-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    width: 12rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 50;
    padding: 0.375rem 0;
    display: flex;
    flex-direction: column;
    transition: opacity 150ms ease, transform 150ms ease;
}

.user-dropdown-hidden {
    display: none !important;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 150ms ease;
}

.user-dropdown-item:hover {
    background-color: #f3f4f6;
}

.user-dropdown-item-danger {
    color: #dc2626;
}

.user-dropdown-item-danger:hover {
    background-color: #fef2f2;
}

/* ── Sidebar Footer Styles ────────────────────────────────────────── */
.sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-top: 1px solid #e5e7eb;
    background-color: #ffffff;
    margin-top: auto;
}

.sidebar-footer-user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
    flex: 1;
}

.sidebar-footer-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.emp-avatar {
  position: relative;
  border-radius: 9999px;
  overflow: hidden;
  background-color: #faf9f6;
  border: 2px solid #e5e7eb;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.emp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.emp-avatar svg {
  color: #a8a29e;
}
.emp-avatar-sm {
  width: 2.25rem;
  height: 2.25rem;
}
.emp-avatar-md {
  width: 3.5rem;
  height: 3.5rem;
}
.emp-avatar-lg {
  width: 5rem;
  height: 5rem;
}

.sidebar-footer-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-footer-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem;
    border-radius: 0.375rem;
    color: #6b7280;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 150ms ease;
}

.sidebar-footer-logout:hover {
    color: #dc2626;
    background-color: #fef2f2;
}

/* ── Password Field Eye Toggle ───────────────────────────────────── */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper .form-input {
    padding-right: 2.75rem;
    flex: 1;
}

.password-toggle-btn {
    position: absolute;
    right: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: color 150ms ease;
    padding: 0;
}

.password-toggle-btn:hover {
    color: #374151;
}

.password-toggle-btn:focus {
    outline: none;
    color: #2563eb;
}

/* ─── btn-xs ─────────────────────────────────────────────────────────── */
.btn-xs {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    line-height: 1rem;
}

/* =========================================================
   RESPONSIVE MODALS — GLOBAL FIX
   ========================================================= */

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100dvh;

    padding: 16px;
    box-sizing: border-box;

    background: rgba(15, 23, 42, 0.55);

    overflow-y: auto;
    overflow-x: hidden;

    -webkit-overflow-scrolling: touch;
}

.modal-backdrop.hidden {
    display: none !important;
}

/* Modal container */
.modal-panel {
    position: relative;

    width: min(100%, 640px);
    max-width: 100%;

    max-height: calc(100dvh - 32px);

    margin: auto;

    display: flex;
    flex-direction: column;

    background: #fff;
    border-radius: 12px;

    overflow: hidden;

    box-sizing: border-box;

    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25);

    flex-shrink: 0;
}

/* Medium modal */
.modal-panel.modal-md {
    width: min(100%, 640px);
    max-width: 640px;
}

/* Header must never scroll away */
.modal-panel .modal-header {
    flex: 0 0 auto;
    min-width: 0;

    padding: 16px 20px;

    border-bottom: 1px solid #e5e7eb;
}

/* Body becomes the scrollable area */
.modal-panel .modal-body {
    flex: 1 1 auto;

    min-height: 0;
    min-width: 0;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 16px 20px;

    -webkit-overflow-scrolling: touch;
}

/* Footer stays visible */
.modal-panel .modal-footer {
    flex: 0 0 auto;

    padding: 12px 20px;

    background: #fff;
}

/* Prevent form controls from creating horizontal overflow */
.modal-panel input,
.modal-panel select,
.modal-panel textarea,
.modal-panel button {
    max-width: 100%;
    box-sizing: border-box;
}

/* Map should always stay inside modal */
.modal-panel #geoMapContainer {
    width: 100%;
    max-width: 100%;
    height: 240px !important;
    min-height: 180px;
}

/* Search row */
.modal-panel .geo-map-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-panel .geo-map-search-row input {
    flex: 1 1 180px;
    min-width: 0;
}

/* Coordinate fields */
.modal-panel .geo-coordinates {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 768px) {

    .modal-backdrop {
        align-items: flex-start;
        padding: 12px;
    }

    .modal-panel,
    .modal-panel.modal-md {
        width: 100%;
        max-width: 100%;

        max-height: calc(100dvh - 24px);

        margin: auto 0;

        border-radius: 10px;
    }

    .modal-panel .modal-header {
        padding: 14px 16px;
    }

    .modal-panel .modal-body {
        padding: 14px 16px;
    }

    .modal-panel .modal-footer {
        padding: 12px 16px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .modal-backdrop {
        padding: 8px;
    }

    .modal-panel,
    .modal-panel.modal-md {
        width: 100%;
        max-width: 100%;

        max-height: calc(100dvh - 16px);

        border-radius: 8px;
    }

    .modal-panel .modal-header {
        padding: 12px 14px;
    }

    .modal-panel .modal-body {
        padding: 12px 14px;
    }

    .modal-panel .modal-footer {
        padding: 10px 14px;

        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .modal-panel .modal-footer button {
        flex: 1 1 auto;
    }

    /* Stack latitude / longitude / radius */
    .modal-panel .geo-coordinates {
        grid-template-columns: 1fr;
    }

    /* Search input + buttons */
    .modal-panel .geo-map-search-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 6px;
    }

    .modal-panel .geo-map-search-row input {
        min-width: 0;
        width: 100%;
    }

    .modal-panel #geoMapContainer {
        height: 210px !important;
        min-height: 180px;
    }
}

/* Very narrow phones */
@media (max-width: 360px) {

    .modal-backdrop {
        padding: 4px;
    }

    .modal-panel,
    .modal-panel.modal-md {
        max-height: calc(100dvh - 8px);
    }

    .modal-panel .modal-header,
    .modal-panel .modal-body,
    .modal-panel .modal-footer {
        padding-left: 10px;
        padding-right: 10px;
    }

    .modal-panel .geo-map-search-row {
        grid-template-columns: 1fr auto;
    }

    .modal-panel .geo-map-search-row input {
        grid-column: 1 / -1;
    }

    .modal-panel #geoMapContainer {
        height: 190px !important;
    }
}

@keyframes modal-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal {
    position: relative;
    width: 100%;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modal-slide-in 0.18s ease;
}

@keyframes modal-slide-in {
    from {
        transform: translateY(-12px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0ece4;
}

.modal-footer {
    padding: 0;
}

.modal-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.15s, color 0.15s;
}

.modal-close-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

/* ─── Status Pills ───────────────────────────────────────────────────── */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.status-pill-success {
    background-color: #dcfce7;
    color: #15803d;
}

.status-pill-warning {
    background-color: #fef9c3;
    color: #854d0e;
}

.status-pill-danger {
    background-color: #fee2e2;
    color: #b91c1c;
}

.status-pill-neutral {
    background-color: #f3f4f6;
    color: #6b7280;
}

/* ─── Data Table ─────────────────────────────────────────────────────── */
table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

table.data-table thead tr {
    background-color: #fafaf8;
    border-bottom: 1px solid #e5e7eb;
}

table.data-table thead th {
    padding: 0.625rem 1rem;
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

table.data-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.1s;
}

table.data-table tbody tr:last-child {
    border-bottom: none;
}

table.data-table tbody tr:hover {
    background-color: #fafaf8;
}

table.data-table tbody td {
    padding: 0.75rem 1rem;
    color: #374151;
    vertical-align: middle;
}