/*
 * Tailwind/compatibility stylesheet for AntTechAMD.
 * Checked in so the app runs even when Node/npm is unavailable.
 * Rebuild generated Tailwind with: npm run build:css
 */
:root {
    --brand-primary-deep: #0b2f5b;
    --brand-primary: #0f5fa8;
    --brand-primary-strong: #0b2f5b;
    --brand-accent: #0b2f5b;
    --brand-soft: #e0f2fe;
    --brand-badge: #d5f3fb;

    /* Backward-compatible aliases */
    --brand-orange: var(--brand-primary);
    --brand-orange-strong: var(--brand-primary-strong);
    --brand-navy: #262b48;
    --brand-navy-light: #354271;
    --brand-neutral-bg: #ffffff;
    --brand-neutral-text: #1d2335;
    --brand-neutral-text-light: #666b78;
    --glass-bg: rgba(255, 255, 255, 0.78);
    --glass-border: rgba(255, 255, 255, 0.55);
    --item-list-sticky-top: 0px;
}

*,
::before,
::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Poppins', Roboto, Arial, sans-serif;
    color: var(--brand-neutral-text);
    background: #f8fafc;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img,
svg,
canvas {
    display: block;
    max-width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 1rem;
    color: var(--brand-neutral-text-light);
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

tr:last-child td {
    border-bottom: 0;
}

.app-shell {
    min-height: 100vh;
    background: radial-gradient(circle at 18% 10%, rgba(110, 201, 223, 0.3) 0%, rgba(110, 201, 223, 0) 46%),
      radial-gradient(circle at 76% 34%, rgba(15, 95, 168, 0.24) 0%, rgba(15, 95, 168, 0) 54%),
      linear-gradient(135deg, #f8fafc 0%, #eef7ff 45%, #ecfeff 100%);
}

.app-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1050;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, var(--brand-primary-deep), var(--brand-primary) 55%, var(--brand-accent));
    box-shadow: 0 12px 34px rgba(11, 47, 91, 0.18);
    color: #fff;
}

.app-sidebar {
    position: fixed;
    top: 4rem;
    bottom: 0;
    left: 0;
    z-index: 1040;
    width: 17rem;
    overflow: hidden;
    border-right: 1px solid rgba(226, 232, 240, 0.9);
    background: #ffffff;
    box-shadow: 12px 0 32px rgba(29, 35, 53, 0.05);
    transition: transform 0.2s ease, width 0.2s ease;
}

.sidebar-content {
    height: 100%;
    overflow: auto;
    padding: 1rem;
}

.app-main {
    min-height: 100vh;
    padding: 4.75rem 0.75rem 0.75rem 17.2rem;
    transition: padding-left 0.2s ease;
}

.sidebar-xs .app-sidebar {
    width: 5.25rem;
}

.sidebar-xs .app-main {
    padding-left: 6rem;
}

.sidebar-xs .app-sidebar .nav-link span,
.sidebar-xs .sidebar-label,
.sidebar-xs #LoggedInWarehouseName {
    display: none;
}

.sidebar-xs .app-sidebar img {
    max-width: 3rem;
}

.sidebar-mobile-toggler {
    display: none;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    /*box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);*/
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.systemBackground {
    min-height: calc(100vh - 5.75rem);
    max-height: calc(100vh - 5.75rem);
    overflow: auto;
    border-radius: 1rem;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.content-card,
.filter-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.filter-card {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.content-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.nav-sidebar,
.nav-group-sub,
.navbar-nav {
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-item-header {
    padding: 0.75rem 0.75rem 0.4rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.72rem 0.85rem;
    border-radius: 0.75rem;
    color: var(--brand-navy);
    transition: background-color 0.16s ease, color 0.16s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-primary);
    background: var(--brand-soft);
}

.nav-link i {
    min-width: 1.25rem;
    font-size: 1.05rem;
    text-align: center;
}

.nav-item-open > .nav-link,
.nav-item-expanded > .nav-link {
    color: #fff !important;
    background: var(--brand-primary);
}

.nav-group-sub {
    display: none;
    margin: 0.25rem 0 0.4rem 2.15rem;
    padding-left: 0.65rem;
    border-left: 1px solid #dbeafe;
}

.nav-item-open > .nav-group-sub,
.nav-item-expanded > .nav-group-sub {
    display: block;
}

.nav-group-sub .nav-link {
    padding: 0.55rem 0.7rem;
    color: #475569;
    font-size: 0.875rem;
}

.nav-group-sub .nav-link:hover,
.nav-group-sub .nav-link.active {
    color: var(--brand-primary);
    background: var(--brand-soft);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1060;
    display: none;
    min-width: 12rem;
    padding: 0.5rem;
    margin: 0.35rem 0 0;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.dropdown-menu-right {
    right: 0;
    left: auto;
}

.dropdown-menu.show,
.dropdown.show > .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 0.55rem;
    color: #334155;
    white-space: nowrap;
}

.dropdown-item:hover {
    color: var(--brand-primary);
    background: var(--brand-soft);
}

.dropdown-divider {
    height: 1px;
    margin: 0.35rem 0;
    background: #e2e8f0;
}

.collapse:not(.show) {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1070;
    display: none;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal.show {
    display: block;
}

.modal-dialog {
    position: relative;
    width: auto;
    max-width: 500px;
    margin: 1.75rem auto;
    pointer-events: none;
}

.modal-sm {
    max-width: 320px;
}

.modal-lg {
    max-width: 800px;
}

.modal-full {
    max-width: min(96vw, 1200px);
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1rem;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.2);
    outline: 0;
}

.modal-header,
.modal-footer {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
}

.modal-header {
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
}

.modal-footer {
    justify-content: flex-end;
    gap: 0.5rem;
    border-top: 1px solid #e2e8f0;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1.25rem;
}

.modal-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1060;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: 1;
}

.close {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 1.5rem;
    line-height: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid transparent;
    border-radius: 0.55rem;
    padding: 0.55rem 0.9rem;
    font-weight: 600;
    line-height: 1.25;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.btn-sm {
    padding: 0.38rem 0.65rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 1.1rem;
    font-size: 1rem;
}

.btn-icon {
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
}

.btn-primary,
.btn-brand,
.btn-search {
    color: #fff !important;
    border: 0;
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
    box-shadow: 0 10px 22px rgba(15, 95, 168, 0.22);
}

.btn-brand:hover,
.btn-search:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 95, 168, 0.26);
}

.btn-secondary,
.btn-default,
.bg-grey {
    color: #334155;
    background: #e2e8f0;
}

.btn-light {
    color: #334155;
    background: #fff;
    border-color: #e2e8f0;
}

.btn-edit {
    color: #fff;
    background: #4f46e5;
}

.btn-delete {
    color: #dc2626;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.rounded-round,
.rounded-pill {
    border-radius: 9999px;
}

.form-control {
    display: block;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.55rem;
    background: #fff;
    padding: 0.62rem 0.75rem;
    color: #1e293b;
    font-size: 0.875rem;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}


.form-control-sm {
    padding: 0.42rem 0.55rem;
    font-size: 0.8rem;
}

.form-control-lg {
    padding: 0.8rem 1rem;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--brand-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(110, 201, 223, 0.28);
}

.form-group {
    margin-bottom: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    margin: 0;
}

.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group-prepend {
    display: flex;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.62rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-right: 0;
    border-radius: 0.55rem 0 0 0.55rem;
    background: #fff;
    color: var(--brand-primary);
}

.input-group .form-control {
    border-radius: 0 0.55rem 0.55rem 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.5rem;
    margin-left: -0.5rem;
}

.row > * {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

.col,
.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

.col-3 {
    flex: 0 0 auto;
    width: 25%;
}

.col-4 {
    flex: 0 0 auto;
    width: 33.333333%;
}

.col-6 {
    flex: 0 0 auto;
    width: 50%;
}

.col-auto {
    flex: 0 0 auto;
    width: auto;
}

.col-sm-3,
.col-sm-4,
.col-sm-6,
.col-sm-12,
.col-md-3,
.col-md-4,
.col-md-6,
.col-md-12,
.col-lg-1,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-8,
.col-lg-9,
.col-lg-10,
.col-lg-12 {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 640px) {
    .col-sm-3 { width: 25%; }
    .col-sm-4 { width: 33.333333%; }
    .col-sm-6 { width: 50%; }
    .col-sm-12 { width: 100%; }
}

@media (min-width: 768px) {
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.333333%; }
    .col-md-6 { width: 50%; }
    .col-md-12 { width: 100%; }
}

@media (min-width: 1024px) {
    .col-lg-1 { width: 8.333333%; }
    .col-lg-2 { width: 16.666667%; }
    .col-lg-3 { width: 25%; }
    .col-lg-4 { width: 33.333333%; }
    .col-lg-5 { width: 41.666667%; }
    .col-lg-6 { width: 50%; }
    .col-lg-8 { width: 66.666667%; }
    .col-lg-9 { width: 75%; }
    .col-lg-10 { width: 83.333333%; }
    .col-lg-12 { width: 100%; }
}

.table-responsive {
    display: block;
    width: 100%;
    overflow: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
}

.table-hover tbody tr:hover {
    background: #f8fafc;
}

.employee-table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #f8fafc;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.employee-table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.sticky-filter {
    position: sticky;
    top: var(--item-list-sticky-top);
    z-index: 1040;
    background: #fff;
    padding-bottom: 0.75rem;
}

.list-wrapper {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 160px);
}

.badge,
.status-badge,
.badge-soft-primary,
.badge-soft-secondary,
.badge-soft-success {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-soft-primary {
    color: var(--brand-primary);
    background: var(--brand-badge);
}

.badge-soft-secondary {
    color: #475569;
    background: #e2e8f0;
}

.badge-soft-success {
    color: #047857;
    background: #d1fae5;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.5rem;
    border-radius: 9999px;
    background: #10b981;
}

.pagination-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-item.active {
    background: var(--brand-badge);
    color: var(--brand-primary);
    font-weight: 700;
}

.pagination-item:hover:not(.active) {
    background: rgba(110, 201, 223, 0.18);
}

#cover-spin {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    background: rgba(255, 255, 255, 0.7);
}

@keyframes spin {
    from { transform: rotate(0); }
    to { transform: rotate(360deg); }
}

#cover-spin::after {
    content: "";
    display: block;
    position: absolute;
    left: 48%;
    top: 40%;
    width: 40px;
    height: 40px;
    border: 4px solid #111827;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner,
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 0.16em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

.ui-autocomplete {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 2000 !important;
}

.ui-front {
    z-index: 2000 !important;
}

.tdFirst { border-radius: 15px 0 0 15px; }
.tdLast { border-radius: 0 15px 15px 0; }
.tdAll { border-radius: 15px; }
.tablespacing {
    border-spacing: 0 10px;
    border-collapse: separate;
}

input.largerCheckbox {
    width: 40px;
    height: 30px;
}

blink {
    animation: 2s linear infinite condemned_blink_effect;
}

@keyframes condemned_blink_effect {
    0%, 50% { visibility: hidden; }
    100% { visibility: visible; }
}

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.flex { display: flex !important; }
.grid { display: grid !important; }
.hidden { display: none !important; }
.block { display: block !important; }
.relative { position: relative !important; }
.items-center { align-items: center !important; }
.items-end { align-items: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-right { justify-content: flex-end !important; }
.flex-col { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-x-auto { overflow-x: auto !important; }
.cursor-pointer { cursor: pointer !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.m-0 { margin: 0 !important; }
.m-1 { margin: 0.25rem !important; }
.m-2 { margin: 0.5rem !important; }
.m-3 { margin: 0.75rem !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.ml-3 { margin-left: 0.75rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mr-3 { margin-right: 0.75rem !important; }
.mr-md-auto { margin-right: auto !important; }
.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 0.75rem !important; }
.px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.pl-1 { padding-left: 0.25rem !important; }
.pl-2 { padding-left: 0.5rem !important; }
.pr-1 { padding-right: 0.25rem !important; }
.pr-2 { padding-right: 0.5rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.w-4 { width: 1rem !important; }
.h-4 { height: 1rem !important; }
.w-full { width: 100% !important; }
.min-h-screen { min-height: 100vh !important; }
.max-w-md { max-width: 28rem !important; }
.bg-cover { background-size: cover !important; }
.bg-center { background-position: center !important; }
.bg-info { background: #0ea5e9 !important; color: #fff; }
.bg-success { background: #10b981 !important; color: #fff; }
.bg-transparent { background: transparent !important; }
.bg-white { background: #fff !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-uppercase,
.uppercase { text-transform: uppercase !important; }
.text-muted { color: #64748b !important; }
.text-primary { color: var(--brand-primary) !important; }
.text-danger { color: #dc2626 !important; }
.text-success { color: #047857 !important; }
.text-dark { color: #0f172a !important; }
.text-white { color: #fff !important; }
.text-white-50 { color: rgba(255, 255, 255, 0.65) !important; }
.text-xs { font-size: 0.75rem !important; }
.text-sm { font-size: 0.875rem !important; }
.text-xl { font-size: 1.25rem !important; }
.text-2xl { font-size: 1.5rem !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold,
.font-weight-bold,
.font-weight-semibold { font-weight: 700 !important; }
.font-size-xs { font-size: 0.75rem !important; }
.font-size-base { font-size: 1rem !important; }
.h4 { font-size: 1.25rem; }
.tracking-wider { letter-spacing: 0.05em !important; }
.rounded-circle { border-radius: 9999px !important; }
.rounded-xl { border-radius: 0.75rem !important; }
.rounded-2xl { border-radius: 1rem !important; }
.shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important; }
.shadow-lg { box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1) !important; }
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }
.border { border-width: 1px !important; border-style: solid !important; }
.border-none { border: 0 !important; }
.border-gray-100 { border-color: #f1f5f9 !important; }
.border-gray-200 { border-color: #e5e7eb !important; }
.text-gray-400 { color: #9ca3af !important; }
.text-gray-500 { color: #6b7280 !important; }


.custom-scrollable-container::-webkit-scrollbar {
    height: 10px;
}
.custom-scrollable-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 6px;
}
.custom-scrollable-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
    border: 2px solid #f1f5f9;
}
.custom-scrollable-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.purchase-form-shell {
    /*background-color: #fff;*/
    min-height: calc(100vh - 110px);
}
@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (min-width: 768px) {
    .md\:p-2 { padding: 0.5rem !important; }
    .md\:w-64 { width: 16rem !important; }
    .md\:flex-row { flex-direction: row !important; }
    .md\:items-center { align-items: center !important; }
    .md\:text-2xl { font-size: 1.5rem !important; }
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

@media (max-width: 767.98px) {
    .app-topbar {
        height: auto;
        min-height: 4rem;
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 0.75rem;
    }

    .app-sidebar {
        top: 0;
        width: 18rem;
        transform: translateX(-105%);
    }

    .sidebar-mobile-main .app-sidebar {
        transform: translateX(0);
    }

    .sidebar-mobile-toggler {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: -0.25rem -0.25rem 1rem;
        padding: 0.75rem;
        border-radius: 0.75rem;
        background: #eff6ff;
        color: var(--brand-primary);
        font-weight: 700;
    }

    .app-main {
        padding: 5.25rem 0.75rem 0.75rem;
    }

    .systemBackground {
        min-height: calc(100vh - 6rem);
        max-height: none;
    }

    .modal-dialog {
        max-width: calc(100vw - 1rem);
        margin: 0.5rem auto;
    }

    .modal-dialog-centered {
        min-height: calc(100% - 1rem);
    }

}
/* Custom Global Modal Design Overrides */
.modal-dialog {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: calc(100% - 3.5rem) !important;
    margin: 1.75rem auto !important;
}
@media (max-width: 767.98px) {
    .modal-dialog {
        min-height: calc(100% - 1rem) !important;
        margin: 0.5rem auto !important;
        max-width: calc(100vw - 1rem) !important;
    }
}
.modal-content {
    background-color: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}
.modal-header {
    background-color: transparent !important;
   
    padding: 1.25rem 1.5rem 0.5rem !important;
}
.modal-footer {
    background-color: transparent !important;
   
    padding: 0.5rem 1.5rem 1.25rem !important;
}
.modal-body {
    padding: 1rem 1.5rem !important;
}