/* ============================================================
   BOOKING PANEL — Custom CSS (замена Bootstrap 5.2)
   Дизайн на основе support/chat.css
   ============================================================ */

/* --- CSS Variables (Design Tokens) --- */
:root {
    --bp-primary: #6147A9;
    --bp-primary-hover: #5039a0;
    --bp-primary-light: #f0ecf7;

    --bp-success: #28a745;
    --bp-success-hover: #218838;
    --bp-danger: #dc3545;
    --bp-danger-hover: #c82333;
    --bp-warning: #ffc107;
    --bp-warning-hover: #e0a800;
    --bp-info: #17a2b8;
    --bp-info-hover: #138496;
    --bp-secondary: #6b7280;
    --bp-secondary-hover: #4b5563;
    --bp-light: #f0f0f0;
    --bp-dark: #333;

    --bp-bg: #f5f5f5;
    --bp-bg-card: #fff;
    --bp-bg-header: #fafafa;
    --bp-border: #e0e0e0;
    --bp-border-light: #f0f0f0;

    --bp-text: #333;
    --bp-text-muted: #888;
    --bp-text-secondary: #999;

    --bp-radius-sm: 6px;
    --bp-radius: 8px;
    --bp-radius-lg: 12px;
    --bp-radius-pill: 20px;

    --bp-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --bp-font-size: 14px;
    --bp-line-height: 1.5;

    --bp-transition-fast: 0.15s ease;
    --bp-transition: 0.3s ease;

    --bp-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --bp-shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
    --bp-shadow-xl: 0 20px 60px rgba(0,0,0,0.3);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: var(--bp-font-size);
    line-height: var(--bp-line-height);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--bp-font);
    font-size: var(--bp-font-size);
    line-height: var(--bp-line-height);
    color: var(--bp-text);
    background: var(--bp-bg);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.2;
}
h1, .h1 { font-size: 2rem; }
h2, .h2 { font-size: 1.75rem; }
h3, .h3 { font-size: 1.5rem; }
h4, .h4 { font-size: 1.25rem; }
h5, .h5 { font-size: 1.1rem; }
h6, .h6 { font-size: 1rem; }

p { margin-top: 0; margin-bottom: 1rem; }
a { color: var(--bp-primary); text-decoration: none; }
a:hover { color: var(--bp-primary-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--bp-border); margin: 1rem 0; }
small { font-size: 0.875em; }
label { display: inline-block; }

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

ul, ol { margin-top: 0; margin-bottom: 0; }

/* --- Grid System --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

.container-fluid {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -8px;
    margin-right: -8px;
}

.row > * {
    padding-left: 8px;
    padding-right: 8px;
}

.col { flex: 1 0 0%; }
.col-auto { flex: 0 0 auto; width: auto; }
.col-1 { flex: 0 0 auto; width: 8.3333%; }
.col-2 { flex: 0 0 auto; width: 16.6667%; }
.col-3 { flex: 0 0 auto; width: 25%; }
.col-4 { flex: 0 0 auto; width: 33.3333%; }
.col-5 { flex: 0 0 auto; width: 41.6667%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-7 { flex: 0 0 auto; width: 58.3333%; }
.col-8 { flex: 0 0 auto; width: 66.6667%; }
.col-9 { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.3333%; }
.col-11 { flex: 0 0 auto; width: 91.6667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

/* SM ≥576px */
@media (min-width: 576px) {
    .col-sm-auto { flex: 0 0 auto; width: auto; }
    .col-sm-1 { flex: 0 0 auto; width: 8.3333%; }
    .col-sm-2 { flex: 0 0 auto; width: 16.6667%; }
    .col-sm-3 { flex: 0 0 auto; width: 25%; }
    .col-sm-4 { flex: 0 0 auto; width: 33.3333%; }
    .col-sm-5 { flex: 0 0 auto; width: 41.6667%; }
    .col-sm-6 { flex: 0 0 auto; width: 50%; }
    .col-sm-7 { flex: 0 0 auto; width: 58.3333%; }
    .col-sm-8 { flex: 0 0 auto; width: 66.6667%; }
    .col-sm-9 { flex: 0 0 auto; width: 75%; }
    .col-sm-10 { flex: 0 0 auto; width: 83.3333%; }
    .col-sm-11 { flex: 0 0 auto; width: 91.6667%; }
    .col-sm-12 { flex: 0 0 auto; width: 100%; }
}

/* MD ≥768px */
@media (min-width: 768px) {
    .col-md-auto { flex: 0 0 auto; width: auto; }
    .col-md-1 { flex: 0 0 auto; width: 8.3333%; }
    .col-md-2 { flex: 0 0 auto; width: 16.6667%; }
    .col-md-3 { flex: 0 0 auto; width: 25%; }
    .col-md-4 { flex: 0 0 auto; width: 33.3333%; }
    .col-md-5 { flex: 0 0 auto; width: 41.6667%; }
    .col-md-6 { flex: 0 0 auto; width: 50%; }
    .col-md-7 { flex: 0 0 auto; width: 58.3333%; }
    .col-md-8 { flex: 0 0 auto; width: 66.6667%; }
    .col-md-9 { flex: 0 0 auto; width: 75%; }
    .col-md-10 { flex: 0 0 auto; width: 83.3333%; }
    .col-md-11 { flex: 0 0 auto; width: 91.6667%; }
    .col-md-12 { flex: 0 0 auto; width: 100%; }
}

/* LG ≥992px */
@media (min-width: 992px) {
    .col-lg-auto { flex: 0 0 auto; width: auto; }
    .col-lg-1 { flex: 0 0 auto; width: 8.3333%; }
    .col-lg-2 { flex: 0 0 auto; width: 16.6667%; }
    .col-lg-3 { flex: 0 0 auto; width: 25%; }
    .col-lg-4 { flex: 0 0 auto; width: 33.3333%; }
    .col-lg-5 { flex: 0 0 auto; width: 41.6667%; }
    .col-lg-6 { flex: 0 0 auto; width: 50%; }
    .col-lg-7 { flex: 0 0 auto; width: 58.3333%; }
    .col-lg-8 { flex: 0 0 auto; width: 66.6667%; }
    .col-lg-9 { flex: 0 0 auto; width: 75%; }
    .col-lg-10 { flex: 0 0 auto; width: 83.3333%; }
    .col-lg-11 { flex: 0 0 auto; width: 91.6667%; }
    .col-lg-12 { flex: 0 0 auto; width: 100%; }
}

/* XL ≥1200px */
@media (min-width: 1200px) {
    .col-xl-auto { flex: 0 0 auto; width: auto; }
    .col-xl-1 { flex: 0 0 auto; width: 8.3333%; }
    .col-xl-2 { flex: 0 0 auto; width: 16.6667%; }
    .col-xl-3 { flex: 0 0 auto; width: 25%; }
    .col-xl-4 { flex: 0 0 auto; width: 33.3333%; }
    .col-xl-5 { flex: 0 0 auto; width: 41.6667%; }
    .col-xl-6 { flex: 0 0 auto; width: 50%; }
    .col-xl-7 { flex: 0 0 auto; width: 58.3333%; }
    .col-xl-8 { flex: 0 0 auto; width: 66.6667%; }
    .col-xl-9 { flex: 0 0 auto; width: 75%; }
    .col-xl-10 { flex: 0 0 auto; width: 83.3333%; }
    .col-xl-11 { flex: 0 0 auto; width: 91.6667%; }
    .col-xl-12 { flex: 0 0 auto; width: 100%; }
}

/* Grid gap */
.g-0 { --bp-gutter: 0; }
.g-1 { --bp-gutter: 0.25rem; }
.g-2 { --bp-gutter: 0.5rem; }
.g-3 { --bp-gutter: 1rem; }
.g-4 { --bp-gutter: 1.5rem; }
.g-5 { --bp-gutter: 3rem; }
.g-0, .g-1, .g-2, .g-3, .g-4, .g-5 { gap: var(--bp-gutter); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: var(--bp-radius-sm);
    transition: all var(--bp-transition-fast);
    white-space: nowrap;
    user-select: none;
    background: transparent;
    color: var(--bp-text);
}

.btn:hover { text-decoration: none; }
.btn:disabled, .btn.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.btn-primary {
    background: var(--bp-primary);
    color: #fff;
    border-color: var(--bp-primary);
}
.btn-primary:hover { background: var(--bp-primary-hover); border-color: var(--bp-primary-hover); color: #fff; }

.btn-secondary {
    background: var(--bp-secondary);
    color: #fff;
    border-color: var(--bp-secondary);
}
.btn-secondary:hover { background: var(--bp-secondary-hover); border-color: var(--bp-secondary-hover); color: #fff; }

.btn-success {
    background: var(--bp-success);
    color: #fff;
    border-color: var(--bp-success);
}
.btn-success:hover { background: var(--bp-success-hover); border-color: var(--bp-success-hover); color: #fff; }

.btn-danger {
    background: var(--bp-danger);
    color: #fff;
    border-color: var(--bp-danger);
}
.btn-danger:hover { background: var(--bp-danger-hover); border-color: var(--bp-danger-hover); color: #fff; }

.btn-warning {
    background: var(--bp-warning);
    color: #333;
    border-color: var(--bp-warning);
}
.btn-warning:hover { background: var(--bp-warning-hover); border-color: var(--bp-warning-hover); color: #333; }

.btn-info {
    background: var(--bp-info);
    color: #fff;
    border-color: var(--bp-info);
}
.btn-info:hover { background: var(--bp-info-hover); border-color: var(--bp-info-hover); color: #fff; }

.btn-light {
    background: var(--bp-light);
    color: var(--bp-text);
    border-color: #ddd;
}
.btn-light:hover { background: #e0e0e0; border-color: #ccc; }

.btn-dark {
    background: var(--bp-dark);
    color: #fff;
    border-color: var(--bp-dark);
}
.btn-dark:hover { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }

.btn-link {
    background: transparent;
    color: var(--bp-primary);
    border-color: transparent;
    padding: 8px 0;
}
.btn-link:hover { color: var(--bp-primary-hover); text-decoration: underline; }

/* Outline buttons */
.btn-outline-primary {
    color: var(--bp-primary);
    border-color: var(--bp-primary);
    background: transparent;
}
.btn-outline-primary:hover { background: var(--bp-primary); color: #fff; }

.btn-outline-secondary {
    color: var(--bp-secondary);
    border-color: #ddd;
    background: transparent;
}
.btn-outline-secondary:hover { background: var(--bp-secondary); color: #fff; border-color: var(--bp-secondary); }

.btn-outline-success {
    color: var(--bp-success);
    border-color: var(--bp-success);
    background: transparent;
}
.btn-outline-success:hover { background: var(--bp-success); color: #fff; }

.btn-outline-danger {
    color: var(--bp-danger);
    border-color: var(--bp-danger);
    background: transparent;
}
.btn-outline-danger:hover { background: var(--bp-danger); color: #fff; }

.btn-outline-warning {
    color: #856404;
    border-color: var(--bp-warning);
    background: transparent;
}
.btn-outline-warning:hover { background: var(--bp-warning); color: #333; }

.btn-outline-info {
    color: var(--bp-info);
    border-color: var(--bp-info);
    background: transparent;
}
.btn-outline-info:hover { background: var(--bp-info); color: #fff; }

/* Button sizes */
.btn-sm {
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 4px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: var(--bp-radius);
}

/* Button group */
.btn-group {
    display: inline-flex;
}
.btn-group > .btn {
    border-radius: 0;
}
.btn-group > .btn:first-child {
    border-top-left-radius: var(--bp-radius-sm);
    border-bottom-left-radius: var(--bp-radius-sm);
}
.btn-group > .btn:last-child {
    border-top-right-radius: var(--bp-radius-sm);
    border-bottom-right-radius: var(--bp-radius-sm);
}
.btn-group > .btn:not(:last-child) {
    border-right: 0;
}

.btn-group-sm > .btn {
    padding: 4px 8px;
    font-size: 12px;
}

/* Close button */
.btn-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--bp-radius-sm);
    cursor: pointer;
    opacity: 0.5;
    font-size: 20px;
    line-height: 1;
    transition: opacity var(--bp-transition-fast);
}
.btn-close::before {
    content: '\00d7';
}
.btn-close:hover { opacity: 1; }

/* --- Forms --- */
.form-control {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    color: var(--bp-text);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: var(--bp-radius);
    transition: border-color var(--bp-transition-fast), box-shadow var(--bp-transition-fast);
    outline: none;
    appearance: none;
}
.form-control:focus {
    border-color: var(--bp-primary);
    box-shadow: 0 0 0 3px rgba(97, 71, 169, 0.1);
}
.form-control:disabled, .form-control[readonly] {
    background: #f5f5f5;
    opacity: 0.7;
}
.form-control::placeholder {
    color: var(--bp-text-secondary);
}

/* Dark form control (for header search) */
.form-control-dark {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}
.form-control-dark:focus {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
    box-shadow: none;
}
.form-control-dark::placeholder {
    color: rgba(255,255,255,0.6);
}

textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

.form-select {
    display: block;
    width: 100%;
    padding: 8px 36px 8px 12px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    color: var(--bp-text);
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") no-repeat right 12px center / 12px;
    border: 1px solid #ddd;
    border-radius: var(--bp-radius);
    transition: border-color var(--bp-transition-fast);
    outline: none;
    appearance: none;
}
.form-select:focus {
    border-color: var(--bp-primary);
    box-shadow: 0 0 0 3px rgba(97, 71, 169, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-label, .col-form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}
.col-form-label {
    padding-top: 8px;
    padding-bottom: 8px;
}

.form-text {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--bp-text-muted);
}

/* Floating labels */
.form-floating {
    position: relative;
}
.form-floating > .form-control {
    padding: 24px 12px 8px;
    height: auto;
}
.form-floating > label {
    position: absolute;
    top: 0;
    left: 12px;
    padding: 16px 0;
    font-size: 14px;
    color: var(--bp-text-muted);
    pointer-events: none;
    transform-origin: 0 0;
    transition: all var(--bp-transition-fast);
}
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    transform: scale(0.75) translateY(-8px);
    color: var(--bp-primary);
}

/* Checkboxes & radios */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--bp-primary);
}

.form-check-label {
    cursor: pointer;
    font-size: 14px;
}

/* Switch */
.form-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-switch .form-check-input {
    width: 36px;
    height: 20px;
    appearance: none;
    background: #ccc;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: background var(--bp-transition-fast);
}
.form-switch .form-check-input::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 2px;
    transition: transform var(--bp-transition-fast);
}
.form-switch .form-check-input:checked {
    background: var(--bp-primary);
}
.form-switch .form-check-input:checked::before {
    transform: translateX(16px);
}

/* Input group */
.input-group {
    display: flex;
    align-items: stretch;
}
.input-group > .form-control {
    flex: 1;
    border-radius: 0;
}
.input-group > .form-control:first-child {
    border-top-left-radius: var(--bp-radius);
    border-bottom-left-radius: var(--bp-radius);
}
.input-group > .form-control:last-child {
    border-top-right-radius: var(--bp-radius);
    border-bottom-right-radius: var(--bp-radius);
}
.input-group > .btn:first-child {
    border-top-left-radius: var(--bp-radius);
    border-bottom-left-radius: var(--bp-radius);
}
.input-group > .btn:last-child {
    border-top-right-radius: var(--bp-radius);
    border-bottom-right-radius: var(--bp-radius);
}
.input-group-append { display: flex; }
.input-group-text {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    font-size: 14px;
}

/* --- Tables --- */
.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.table th {
    background: #f9fafb;
    padding: 12px 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--bp-secondary);
    letter-spacing: 0.5px;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
}
.table td {
    padding: 12px 15px;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}
.table tr:hover {
    background: #f9fafb;
}
.table a {
    color: var(--bp-primary);
}
.table a:hover {
    color: var(--bp-primary-hover);
}

.table-striped tbody tr:nth-child(odd) {
    background: #fafafa;
}
.table-hover tbody tr:hover {
    background: #f0f0f0;
}
.table-bordered {
    border: 1px solid #e5e7eb;
}
.table-bordered th,
.table-bordered td {
    border: 1px solid #e5e7eb;
}
.table-sm th,
.table-sm td {
    padding: 8px 10px;
}
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* --- Navigation --- */
.nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: inherit;
    text-decoration: none;
    transition: all var(--bp-transition-fast);
    white-space: nowrap;
}
.nav-link:hover {
    text-decoration: none;
    opacity: 0.8;
}
.nav-link.active {
    font-weight: 600;
}
.nav-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.navbar-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- Tabs --- */
.nav-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 2px solid var(--bp-border);
}
.nav-tabs .nav-link {
    padding: 10px 16px;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: var(--bp-text-muted);
    font-weight: 500;
    transition: all var(--bp-transition-fast);
    background: transparent;
    cursor: pointer;
}
.nav-tabs .nav-link:hover {
    color: var(--bp-primary);
    border-bottom-color: rgba(97, 71, 169, 0.3);
}
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: var(--bp-primary);
    border-bottom-color: var(--bp-primary);
}

.nav-pills .nav-link {
    border-radius: var(--bp-radius-pill);
    padding: 6px 16px;
}
.nav-pills .nav-link.active {
    background: var(--bp-primary);
    color: #fff;
}

.tab-content {
    margin-top: 16px;
}
.tab-pane {
    display: none;
}
.tab-pane.show.active,
.tab-pane.active {
    display: block;
}

/* --- Dropdown --- */
.dropdown {
    position: relative;
}
.dropdown-toggle {
    cursor: pointer;
}
.dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-top: 5px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 200px;
    padding: 6px 0;
    background: #fff;
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    box-shadow: var(--bp-shadow-lg);
    list-style: none;
    margin: 4px 0 0;
}
.dropdown-menu.show {
    display: block;
}
.dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--bp-text);
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background var(--bp-transition-fast);
}
.dropdown-item:hover {
    background: #f5f5f5;
    text-decoration: none;
}
.dropdown-item.active {
    background: var(--bp-primary-light);
    color: var(--bp-primary);
}
.dropdown-divider {
    border-top: 1px solid var(--bp-border);
    margin: 4px 0;
}
.dropdown-header {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--bp-text-muted);
    text-transform: uppercase;
}

.text-small { font-size: 13px; }

/* --- Modal --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    display: none;
    overflow-y: auto;
}
.modal.show {
    display: block;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1049;
    opacity: 0;
    transition: opacity var(--bp-transition);
}
.modal-backdrop.show {
    opacity: 1;
}

.modal-dialog {
    position: relative;
    margin: 1.75rem auto;
    max-width: 500px;
    pointer-events: none;
}
.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}
.modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 3.5rem);
    overflow: hidden;
}
.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
}
.modal-lg { max-width: 800px; }
.modal-xl { max-width: 1140px; }
.modal-sm { max-width: 300px; }
.modal-fullscreen { max-width: 100%; margin: 0; min-height: 100%; }
.modal-fullscreen .modal-content { border-radius: 0; min-height: 100vh; }

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    background: #fff;
    border-radius: var(--bp-radius);
    box-shadow: var(--bp-shadow-xl);
    outline: 0;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--bp-border);
}
.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}
.modal-body {
    padding: 20px;
    flex: 1 1 auto;
}
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid var(--bp-border);
}

/* Modal fade animation */
.modal.fade .modal-dialog {
    transform: translateY(-20px);
    opacity: 0;
    transition: transform var(--bp-transition), opacity var(--bp-transition);
}
.modal.fade.show .modal-dialog {
    transform: translateY(0);
    opacity: 1;
}

/* --- Offcanvas --- */
.offcanvas {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 1045;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: var(--bp-shadow-xl);
    transition: transform var(--bp-transition);
    visibility: hidden;
}
.offcanvas.show {
    visibility: visible;
}
.offcanvas-start {
    left: 0;
    width: 400px;
    max-width: 85%;
    transform: translateX(-100%);
}
.offcanvas-end {
    right: 0;
    width: 400px;
    max-width: 85%;
    transform: translateX(100%);
}
.offcanvas-top {
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    max-height: 85vh;
    transform: translateY(-100%);
}
.offcanvas-bottom {
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    max-height: 85vh;
    transform: translateY(100%);
}
.offcanvas.show.offcanvas-start { transform: translateX(0); }
.offcanvas.show.offcanvas-end { transform: translateX(0); }
.offcanvas.show.offcanvas-top { transform: translateY(0); }
.offcanvas.show.offcanvas-bottom { transform: translateY(0); }

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--bp-border);
}
.offcanvas-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}
.offcanvas-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.offcanvas-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1044;
    opacity: 0;
    transition: opacity var(--bp-transition);
}
.offcanvas-backdrop.show {
    opacity: 1;
}

/* --- Collapse --- */
.collapse {
    display: none;
}
.collapse.show {
    display: block;
}
.collapsing {
    overflow: hidden;
    transition: height var(--bp-transition);
}

/* --- Alerts --- */
.alert {
    padding: 12px 16px;
    border-radius: var(--bp-radius);
    border: 1px solid transparent;
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}
.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}
.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}
.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}
.alert-primary {
    background: var(--bp-primary-light);
    color: var(--bp-primary);
    border-color: rgba(97, 71, 169, 0.2);
}
.alert-dismissible {
    position: relative;
    padding-right: 40px;
}
.alert-dismissible .btn-close {
    position: absolute;
    right: 8px;
    top: 8px;
}

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    line-height: 1.4;
    white-space: nowrap;
}

.bg-primary { background: var(--bp-primary) !important; color: #fff; }
.bg-secondary { background: var(--bp-secondary) !important; color: #fff; }
.bg-success { background: var(--bp-success) !important; color: #fff; }
.bg-danger { background: var(--bp-danger) !important; color: #fff; }
.bg-warning { background: var(--bp-warning) !important; color: #333; }
.bg-info { background: var(--bp-info) !important; color: #fff; }
.bg-light { background: var(--bp-light) !important; color: var(--bp-text); }
.bg-dark { background: var(--bp-dark) !important; color: #fff; }
.bg-white { background: #fff !important; }

/* Bootstrap 5.2 text-bg-* */
.text-bg-primary { background: var(--bp-primary) !important; color: #fff !important; }
.text-bg-secondary { background: var(--bp-secondary) !important; color: #fff !important; }
.text-bg-success { background: var(--bp-success) !important; color: #fff !important; }
.text-bg-danger { background: var(--bp-danger) !important; color: #fff !important; }
.text-bg-warning { background: var(--bp-warning) !important; color: #333 !important; }
.text-bg-info { background: var(--bp-info) !important; color: #fff !important; }

/* --- Pagination --- */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 4px;
}
.page-item { list-style: none; }
.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    padding: 6px 12px;
    font-size: 14px;
    color: var(--bp-text);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    transition: all var(--bp-transition-fast);
    cursor: pointer;
}
.page-link:hover {
    background: #f5f5f5;
    border-color: #ccc;
    text-decoration: none;
}
.page-item.active .page-link {
    background: var(--bp-primary);
    color: #fff;
    border-color: var(--bp-primary);
}
.page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
}

/* --- Tooltips --- */
.bp-tooltip {
    position: absolute;
    z-index: 1080;
    padding: 6px 12px;
    font-size: 12px;
    color: #fff;
    background: #333;
    border-radius: 4px;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    transition: opacity var(--bp-transition-fast);
}
.bp-tooltip.show {
    opacity: 1;
}

/* --- Popover (basic) --- */
.popover {
    position: absolute;
    z-index: 1070;
    background: #fff;
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    box-shadow: var(--bp-shadow-lg);
    padding: 12px 16px;
    max-width: 300px;
}

/* --- Card --- */
.card {
    background: #fff;
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    box-shadow: var(--bp-shadow);
}
.card-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--bp-border);
    background: var(--bp-bg-header);
    font-weight: 600;
}
.card-body {
    padding: 16px;
}
.card-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--bp-border);
    background: var(--bp-bg-header);
}

/* --- Accordion --- */
.accordion-item {
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    margin-bottom: 8px;
}
.accordion-button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
}
.accordion-body {
    padding: 16px;
}

/* --- Spinner --- */
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: bp-spin 0.75s linear infinite;
}
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}
@keyframes bp-spin {
    to { transform: rotate(360deg); }
}

/* --- Fade --- */
.fade {
    opacity: 0;
    transition: opacity var(--bp-transition);
}
.fade.show {
    opacity: 1;
}

/* --- Select2 Custom Theme --- */
.select2-container--default .select2-selection--single {
    border: 1px solid #ddd;
    border-radius: var(--bp-radius);
    height: 38px;
    padding: 4px 12px;
    background: #fff;
    transition: border-color var(--bp-transition-fast);
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--bp-text);
    line-height: 28px;
    padding: 0;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    right: 8px;
}
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default .select2-selection--single:focus {
    border-color: var(--bp-primary);
    box-shadow: 0 0 0 3px rgba(97, 71, 169, 0.1);
}
.select2-container--default .select2-selection--multiple {
    border: 1px solid #ddd;
    border-radius: var(--bp-radius);
    min-height: 38px;
    padding: 2px 8px;
    background: #fff;
}
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: var(--bp-primary);
    box-shadow: 0 0 0 3px rgba(97, 71, 169, 0.1);
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: var(--bp-primary-light);
    border: 1px solid rgba(97, 71, 169, 0.2);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 13px;
}
.select2-dropdown {
    border: 1px solid #ddd;
    border-radius: var(--bp-radius);
    box-shadow: var(--bp-shadow-lg);
    margin-top: 4px;
}
.select2-results__option {
    padding: 8px 12px;
    font-size: 14px;
}
.select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--bp-primary);
    color: #fff;
}
.select2-search--dropdown .select2-search__field {
    border: 1px solid #ddd;
    border-radius: var(--bp-radius-sm);
    padding: 6px 10px;
    outline: none;
}
.select2-search--dropdown .select2-search__field:focus {
    border-color: var(--bp-primary);
}

/* --- Login Page --- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    padding: 20px;
}

.login-card {
    background: #fff;
    padding: 40px 32px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-logo {
    margin-bottom: 16px;
}
.login-logo svg {
    width: 64px;
    height: 64px;
}

.login-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.login-subtitle {
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 24px;
}

.login-card .form-group {
    text-align: left;
    margin-bottom: 14px;
}

.login-card .form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 4px;
}

.login-card .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: #1a237e;
    color: #fff;
    cursor: pointer;
    margin-top: 8px;
    transition: background .2s;
}
.login-card .btn-primary:hover {
    background: #283593;
}
.login-card .btn-primary:disabled {
    opacity: .6;
    cursor: default;
}

.login-card .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e0e6ed;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    transition: border-color .2s;
}
.login-card .form-control:focus {
    border-color: #1a237e;
    background: #fff;
    box-shadow: none;
}

.login-message {
    font-size: 13px;
    margin-top: 12px;
    color: #ef4444;
    min-height: 18px;
}

.login-footer {
    margin-top: 20px;
    font-size: 12px;
    color: #94a3b8;
}

.login-sms-step {
    display: none;
}
.login-sms-step.active {
    display: block;
}

/* --- Utility Classes --- */

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }
.d-table { display: table !important; }

/* Responsive display */
@media (max-width: 575.98px) { .d-sm-none { display: none !important; } }
@media (min-width: 576px) {
    .d-sm-none { display: none !important; }
    .d-sm-block { display: block !important; }
    .d-sm-flex { display: flex !important; }
    .d-sm-inline { display: inline !important; }
}
@media (max-width: 767.98px) { .d-md-none-below { display: none !important; } }
@media (min-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
    .d-md-inline { display: inline !important; }
}
@media (min-width: 992px) {
    .d-lg-none { display: none !important; }
    .d-lg-block { display: block !important; }
    .d-lg-flex { display: flex !important; }
    .d-lg-inline { display: inline !important; }
    .d-lg-auto { flex: 0 0 auto; width: auto; }
}
@media (min-width: 1200px) {
    .d-xl-none { display: none !important; }
    .d-xl-block { display: block !important; }
    .d-xl-flex { display: flex !important; }
}

/* Bootstrap's breakpoint pattern: d-block d-sm-none means visible below sm */
@media (min-width: 576px) {
    .d-block.d-sm-none { display: none !important; }
}

/* Flex */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.flex-grow-0 { flex-grow: 0 !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.flex-shrink-1 { flex-shrink: 1 !important; }
.flex-fill { flex: 1 1 auto !important; }

.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }
.justify-content-evenly { justify-content: space-evenly !important; }

.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-baseline { align-items: baseline !important; }
.align-items-stretch { align-items: stretch !important; }

.align-self-start { align-self: flex-start !important; }
.align-self-end { align-self: flex-end !important; }
.align-self-center { align-self: center !important; }

@media (min-width: 992px) {
    .justify-content-lg-start { justify-content: flex-start !important; }
    .justify-content-lg-end { justify-content: flex-end !important; }
    .justify-content-lg-center { justify-content: center !important; }
    .justify-content-lg-between { justify-content: space-between !important; }
}

/* Spacing: margin & padding (0-5) */
/* 0=0, 1=0.25rem, 2=0.5rem, 3=1rem, 4=1.5rem, 5=3rem */
.m-0 { margin: 0 !important; }
.m-1 { margin: 0.25rem !important; }
.m-2 { margin: 0.5rem !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.m-5 { margin: 3rem !important; }
.m-auto { margin: auto !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: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-auto { margin-top: auto !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: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mb-auto { margin-bottom: auto !important; }

.ms-0 { margin-left: 0 !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.ms-5 { margin-left: 3rem !important; }
.ms-auto { margin-left: auto !important; }

.me-0 { margin-right: 0 !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.me-4 { margin-right: 1.5rem !important; }
.me-5 { margin-right: 3rem !important; }
.me-auto { margin-right: auto !important; }

.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.mx-1 { margin-left: 0.25rem !important; margin-right: 0.25rem !important; }
.mx-2 { margin-left: 0.5rem !important; margin-right: 0.5rem !important; }
.mx-3 { margin-left: 1rem !important; margin-right: 1rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

.ps-0 { padding-left: 0 !important; }
.ps-1 { padding-left: 0.25rem !important; }
.ps-2 { padding-left: 0.5rem !important; }
.ps-3 { padding-left: 1rem !important; }

.pe-0 { padding-right: 0 !important; }
.pe-1 { padding-right: 0.25rem !important; }
.pe-2 { padding-right: 0.5rem !important; }
.pe-3 { padding-right: 1rem !important; }

.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }

.py-0 { padding-top: 0 !important; padding-bottom: 0 !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: 1rem !important; padding-bottom: 1rem !important; }

/* Responsive spacing */
@media (min-width: 576px) {
    .mb-sm-0 { margin-bottom: 0 !important; }
}
@media (min-width: 768px) {
    .mb-md-0 { margin-bottom: 0 !important; }
    .me-md-3 { margin-right: 1rem !important; }
}
@media (min-width: 992px) {
    .mb-lg-0 { margin-bottom: 0 !important; }
    .me-lg-3 { margin-right: 1rem !important; }
    .me-lg-auto { margin-right: auto !important; }
    .pe-lg-3 { padding-right: 1rem !important; }
}

/* Text */
.text-start { text-align: left !important; }
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }

.text-muted { color: var(--bp-text-muted) !important; }
.text-white { color: #fff !important; }
.text-dark { color: var(--bp-dark) !important; }
.text-primary { color: var(--bp-primary) !important; }
.text-secondary { color: var(--bp-secondary) !important; }
.text-success { color: var(--bp-success) !important; }
.text-danger { color: var(--bp-danger) !important; }
.text-warning { color: #856404 !important; }
.text-info { color: var(--bp-info) !important; }
.text-body { color: var(--bp-text) !important; }
.text-decoration-none { text-decoration: none !important; }

.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-normal { font-weight: 400 !important; }
.fw-light { font-weight: 300 !important; }
.fst-italic { font-style: italic !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-lowercase { text-transform: lowercase !important; }
.text-capitalize { text-transform: capitalize !important; }
.text-nowrap { white-space: nowrap !important; }
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Link colors */
.link-dark { color: var(--bp-dark) !important; }
.link-dark:hover { color: #1a1a1a !important; }
.link-primary { color: var(--bp-primary) !important; }

/* Border */
.border { border: 1px solid var(--bp-border) !important; }
.border-0 { border: 0 !important; }
.border-top { border-top: 1px solid var(--bp-border) !important; }
.border-bottom { border-bottom: 1px solid var(--bp-border) !important; }
.border-start { border-left: 1px solid var(--bp-border) !important; }
.border-end { border-right: 1px solid var(--bp-border) !important; }
.border-light { border-color: var(--bp-border-light) !important; }

/* Border radius */
.rounded { border-radius: var(--bp-radius) !important; }
.rounded-0 { border-radius: 0 !important; }
.rounded-1 { border-radius: 4px !important; }
.rounded-2 { border-radius: var(--bp-radius-sm) !important; }
.rounded-3 { border-radius: var(--bp-radius) !important; }
.rounded-4 { border-radius: var(--bp-radius-lg) !important; }
.rounded-5 { border-radius: 16px !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-pill { border-radius: var(--bp-radius-pill) !important; }

/* Shadow */
.shadow { box-shadow: var(--bp-shadow) !important; }
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important; }
.shadow-lg { box-shadow: var(--bp-shadow-lg) !important; }
.shadow-none { box-shadow: none !important; }

/* Position */
.position-static { position: static !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }

.sticky-top {
    position: sticky !important;
    top: 0;
    z-index: 1020;
}

.top-0 { top: 0 !important; }
.top-50 { top: 50% !important; }
.top-100 { top: 100% !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; }
.start-50 { left: 50% !important; }
.start-100 { left: 100% !important; }
.end-0 { right: 0 !important; }
.end-100 { right: 100% !important; }

.translate-middle { transform: translate(-50%, -50%) !important; }

/* Sizing */
.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }
.h-100 { height: 100% !important; }
.h-auto { height: auto !important; }
.mw-100 { max-width: 100% !important; }
.mh-100 { max-height: 100% !important; }

/* Overflow */
.overflow-auto { overflow: auto !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-scroll { overflow: scroll !important; }
.overflow-visible { overflow: visible !important; }

/* Visibility */
.visible { visibility: visible !important; }
.invisible { visibility: hidden !important; }
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Float */
.float-start { float: left !important; }
.float-end { float: right !important; }
.float-none { float: none !important; }
.clearfix::after { content: ''; display: table; clear: both; }

/* Opacity */
.opacity-0 { opacity: 0 !important; }
.opacity-25 { opacity: 0.25 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-75 { opacity: 0.75 !important; }
.opacity-100 { opacity: 1 !important; }

/* Cursor */
.pe-none { pointer-events: none !important; }
.pe-auto { pointer-events: auto !important; }

/* User select */
.user-select-none { user-select: none !important; }
.user-select-all { user-select: all !important; }

/* Ratio (for embeds) */
.ratio {
    position: relative;
    width: 100%;
}
.ratio::before {
    display: block;
    padding-top: var(--bp-aspect-ratio);
    content: '';
}
.ratio > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Print --- */
@media print {
    .d-print-none { display: none !important; }
    .d-print-block { display: block !important; }
}

/* --- Legacy Bootstrap compat (ml-, mr-) --- */
.ml-0 { margin-left: 0 !important; }
.ml-1 { margin-left: 0.25rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.ml-3 { margin-left: 1rem !important; }
.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mr-3 { margin-right: 1rem !important; }
