/* RacquetSportsConnect - Custom Styles */

:root {
    --primary-color: #FF6B35;
    --secondary-color: #533483;
    --dark-color: #0f3460;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --text-dark: #1a1a1a;
    /* Sticky nav offset is set by topNav/adminTopNav. Modal shell max height must
       subtract it because .modal is already top-shifted by that amount. */
    --rsc-modal-top-offset: 0px;
    --rsc-modal-max-height: calc(100vh - var(--rsc-modal-top-offset, 0px) - 2rem);
    --rsc-modal-max-height: calc(100dvh - var(--rsc-modal-top-offset, 0px) - 2rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Sticky top nav + content offset (height measured via --rsc-nav-height) */
:root {
    --rsc-nav-height: 56px;
}

body.rsc-has-sticky-nav {
    padding-top: var(--rsc-nav-height, 56px);
}

/* Must win over inline .ta-nav / .admin-nav { position:relative } or body
   padding-top creates a white gap above an in-flow navbar. */
.rsc-app-topnav,
.ta-nav.rsc-app-topnav,
.admin-nav.rsc-app-topnav {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
}

.ta-nav.rsc-app-topnav {
    z-index: 1500;
}

.admin-nav.rsc-app-topnav {
    z-index: 1800;
}

/* Nested sticky bars (e.g. ticket tabs) sit below the fixed nav */
.tickets-sticky-tabs {
    top: var(--rsc-nav-height, 56px) !important;
}

/* Ticket notification bell - Help Scout-style tray */
.rsc-ticket-bell {
    position: relative;
}

.rsc-ticket-bell-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.25rem !important;
    line-height: 1;
}

.rsc-ticket-bell-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.05rem;
}

.rsc-ticket-bell--dark .rsc-ticket-bell-icon-wrap {
    color: rgba(255, 255, 255, 0.92);
}

.rsc-ticket-bell--dark .rsc-ticket-bell-toggle:hover .rsc-ticket-bell-icon-wrap {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.rsc-ticket-bell--light .rsc-ticket-bell-icon-wrap {
    color: #374151;
}

.rsc-ticket-bell--light .rsc-ticket-bell-toggle:hover .rsc-ticket-bell-icon-wrap {
    background: #f1f5f9;
    color: #0f172a;
}

.rsc-ticket-bell-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc3545;
    color: #fff !important;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}

.rsc-ticket-bell--dark .rsc-ticket-bell-badge {
    box-shadow: 0 0 0 2px #dc3545;
}

.rsc-ticket-bell-menu,
.admin-nav .rsc-ticket-bell-menu,
.ta-nav .rsc-ticket-bell-menu {
    width: min(380px, calc(100vw - 1rem));
    padding: 0;
    margin-top: 0.35rem !important;
    overflow: hidden;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
    z-index: 2000 !important;
}

.rsc-ticket-bell-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem 0.7rem;
    background: #fff;
    border-bottom: 1px solid #eef2f7;
}

.rsc-ticket-bell-header-left {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    min-width: 0;
}

.rsc-ticket-bell-title-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
}

.rsc-ticket-bell-unread-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: #9ca3af;
    white-space: nowrap;
}

.rsc-ticket-bell-mark-all {
    flex-shrink: 0;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #2563eb !important;
    text-decoration: none !important;
    line-height: 1.2;
}

.rsc-ticket-bell-mark-all:hover:not(:disabled) {
    color: #1d4ed8 !important;
    text-decoration: underline !important;
}

.rsc-ticket-bell-mark-all:disabled {
    color: #94a3b8 !important;
    cursor: default;
    text-decoration: none !important;
    opacity: 1;
}

.rsc-ticket-bell-list {
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
}

.rsc-ticket-bell-group-label {
    padding: 0.55rem 1rem 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #9ca3af;
    background: #fff;
}

.rsc-ticket-bell-empty {
    padding: 1.35rem 1rem;
    text-align: center;
    color: #6b7280 !important;
    font-size: 0.88rem;
    background: #fff;
}

.rsc-ticket-bell-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.7rem 1rem 0.7rem 0.7rem;
    text-decoration: none !important;
    color: #111827 !important;
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.12s ease;
}

.rsc-ticket-bell-item:hover {
    background: #f8fafc;
    color: #111827 !important;
}

.rsc-ticket-bell-unread-dot {
    width: 8px;
    height: 8px;
    margin-top: 14px;
    border-radius: 50%;
    background: transparent;
    flex-shrink: 0;
}

.rsc-ticket-bell-item.is-unread .rsc-ticket-bell-unread-dot {
    background: #ec4899;
}

.rsc-ticket-bell-avatar {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0f3460 0%, #533483 100%);
}

.rsc-ticket-bell-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rsc-ticket-bell-initials {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.rsc-ticket-bell-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.rsc-ticket-bell-primary {
    font-size: 0.9rem;
    line-height: 1.35;
    color: #1f2937;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rsc-ticket-bell-item.is-unread .rsc-ticket-bell-primary {
    font-weight: 700;
    color: #111827;
}

.rsc-ticket-bell-secondary {
    font-size: 0.78rem;
    line-height: 1.35;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rsc-ticket-bell-footer {
    border-top: 1px solid #eef2f7;
    background: #fff;
    padding: 0.65rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    text-align: center;
}

.rsc-ticket-bell-create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #1e3a8a;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
}

.rsc-ticket-bell-create:hover {
    background: #e0e7ff;
    color: #172554;
}

.rsc-ticket-bell-view-all {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2563eb !important;
    text-decoration: none !important;
}

.rsc-ticket-bell-view-all:hover {
    text-decoration: underline !important;
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(90deg, #1a1a1a 0%, #000000 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: white !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
    padding: 6px 16px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.navbar-brand:hover {
    text-decoration: none !important;
    background: linear-gradient(135deg, #e55a2b 0%, #FF6B35 100%);
    transform: scale(1.02);
}

.navbar-brand i {
    color: white;
    margin-right: 8px;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: color 0.3s;
    text-decoration: none !important;
}

.navbar .nav-link:hover {
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e0e0e0;
}

/* Cards */
.card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.modern-card {
    transition: all 0.3s ease;
}

.modern-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-body {
    padding: 1.5rem;
}

.card-header {
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
}

/* Feature Card */
.feature-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.feature-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: rgba(255, 255, 255, 0.3);
}

.feature-card-header {
    padding: 20px;
}

.feature-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.feature-card-price {
    display: inline-block;
    background-color: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #757575;
    font-weight: 600;
}

.feature-card-body {
    padding: 0 20px 20px;
    border-bottom: 1px solid #e9ecef;
}

.feature-card-footer {
    padding: 15px 20px;
}

/* Buttons */
.btn-explore {
    background-color: var(--primary-color) !important;
    color: white !important;
    padding: 14px 36px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    text-decoration: none;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-explore:hover {
    background-color: #e55a24 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #e55a24 !important;
    border-color: #e55a24 !important;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid white !important;
    color: white !important;
    padding: 14px 36px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: white !important;
    color: var(--primary-color) !important;
}

.btn-sm {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.8rem !important;
    border-radius: 4px !important;
}

/* Form Input Styling */
.form-control {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

/*
 * Compact admin controls (~40px tall).
 * The global .form-control padding above is more specific-order-late than Bootstrap's
 * .form-control-sm, so without this override -sm classes never actually shrink.
 */
.form-control.form-control-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    min-height: 40px;
    border-radius: 4px;
}
.form-select.form-select-sm {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    padding-left: 0.75rem;
    font-size: 0.875rem;
    min-height: 40px;
    border-radius: 4px;
}
.input-group-sm > .form-control,
.input-group-sm > .form-select,
.input-group-sm > .form-floating > .form-control,
.input-group-sm > .form-floating > .form-select {
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    min-height: 40px;
}
.input-group-sm > .form-select {
    padding-right: 2.25rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.form-control::placeholder,
textarea.form-control::placeholder,
input.form-control::placeholder {
    color: #9ca3af !important;
    opacity: 0.65 !important;
}

.form-control::-webkit-input-placeholder,
textarea.form-control::-webkit-input-placeholder,
input.form-control::-webkit-input-placeholder {
    color: #9ca3af !important;
    opacity: 0.65 !important;
}

.form-control::-moz-placeholder,
textarea.form-control::-moz-placeholder,
input.form-control::-moz-placeholder {
    color: #9ca3af !important;
    opacity: 0.65 !important;
}

.form-control:-ms-input-placeholder,
textarea.form-control:-ms-input-placeholder,
input.form-control:-ms-input-placeholder {
    color: #9ca3af !important;
    opacity: 0.65 !important;
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Alert Styling */
.alert {
    border-radius: 6px;
    border: 1px solid transparent;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Text Styling */
.text-muted {
    color: #6c757d !important;
}

.text-center {
    text-align: center;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.modal-header .modal-title {
    color: inherit;
}

/* Keep every Bootstrap modal fully inside the viewport. Only the body scrolls;
   headers and action footers remain visible, including when a form is .modal-content.
   Uses --rsc-modal-max-height (nav offset already subtracted). Excludes .modal-minimized dock.
   Ask Ernie floating panel is not a Bootstrap .modal and is unaffected. */
.modal:not(.modal-minimized) {
    top: var(--rsc-modal-top-offset, 0px);
    height: calc(100% - var(--rsc-modal-top-offset, 0px));
    overflow-x: hidden;
    overflow-y: hidden;
}

.modal:not(.modal-minimized) .modal-dialog {
    max-height: var(--rsc-modal-max-height);
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.modal:not(.modal-minimized) .modal-content,
.modal:not(.modal-minimized) form.modal-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: var(--rsc-modal-max-height);
    min-height: 0;
    overflow: hidden;
}

/* Nested form inside .modal-content (rare); form.as.modal-content uses rules above. */
.modal:not(.modal-minimized) .modal-content > form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.modal:not(.modal-minimized) .modal-header,
.modal:not(.modal-minimized) .modal-footer {
    flex: 0 0 auto;
}

.modal:not(.modal-minimized) .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Prevent global heading dark color from overriding white text in gradient card headers */
.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6,
.card-header .modal-title {
    color: inherit;
}

/* Badge Styling */
.badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge.bg-light {
    background-color: #e9ecef !important;
    color: #333 !important;
}

/* Icon Styling */
.fa-racquet {
    color: var(--primary-color);
}

/* Checkbox Styling */
.form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.3em;
    vertical-align: top;
    border: 1px solid #dee2e6;
    border-radius: 0.25em;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    margin-left: 0.5rem;
    cursor: pointer;
}

/* Link Styling */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #e55a24;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
}

footer p {
    margin-bottom: 0;
}

/* Spinner */
.spinner-border {
    color: var(--primary-color) !important;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .card-body {
        padding: 1.25rem;
    }

    h1, h2 {
        font-size: 1.5rem;
    }

    .hero-section {
        min-height: 400px !important;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section h2 {
        font-size: 1.5rem;
    }

    .btn-explore {
        padding: 12px 24px !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1rem;
    }

    h1, h2 {
        font-size: 1.25rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section h2 {
        font-size: 1.2rem;
    }
}

/* Demo Credentials Box */
.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    color: #0c5460;
    margin-top: 1rem;
}

.alert-info strong {
    font-weight: 600;
}

/* Link Styling */
a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Checkbox Styling */
.form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.3em;
    vertical-align: top;
    border: 1px solid #dee2e6;
    border-radius: 0.25em;
    background-color: #fff;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    margin-left: 0.5rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 576px) {
    .card-body {
        padding: 1.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* IP Tag / Token Chooser */
.ip-tag-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    min-height: 31px;
    cursor: text;
    background: #fff;
}
.ip-tag-container:focus-within {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}
.ip-tag {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1px 8px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.5;
    white-space: nowrap;
}
.ip-tag .ip-tag-remove {
    display: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1;
    margin-left: 2px;
    opacity: 0.7;
}
.ip-tag .ip-tag-remove:hover { opacity: 1; }
.ip-tag:hover .ip-tag-remove { display: inline; }
.ip-tag-input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 120px;
    font-size: 0.875rem;
    padding: 2px 0;
    background: transparent;
}
.ip-badge {
    display: inline-block;
    padding: 1px 6px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 10px;
    font-size: 0.7rem;
    margin: 1px;
}

/* Keep native Bootstrap checkboxes visible on white and light-gray cards. */
.form-check-input {
    border: 2px solid #64748b;
    background-color: #fff;
}
.form-check-input:checked {
    border-color: var(--bs-primary, #0d6efd);
}
.form-check-input:focus {
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .2);
}

/* Messenger-style minimized modal dock (toggle .modal-minimized on the .modal root) */
.modal.modal-minimized {
    overflow: visible;
    height: auto;
    pointer-events: none;
}
.modal.modal-minimized .modal-dialog {
    position: fixed;
    bottom: 12px;
    right: 12px;
    left: auto;
    top: auto;
    margin: 0;
    width: auto;
    max-width: min(360px, calc(100vw - 24px));
    height: auto;
    max-height: none;
    transform: none !important;
    pointer-events: auto;
}
.modal.modal-minimized .modal-content {
    height: auto;
    max-height: none;
    border-radius: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}
.modal.modal-minimized .modal-body,
.modal.modal-minimized .modal-footer {
    display: none !important;
}
.modal.modal-minimized .modal-header {
    border-radius: 28px;
    padding: 10px 14px;
}
.modal.modal-minimized .modal-minimize-header-drag {
    cursor: pointer;
}
.modal-minimize-header-drag {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}
.modal-minimize-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.btn-minimize-modal {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.85;
    padding: 0 6px;
    line-height: 1;
    font-size: 1rem;
    cursor: pointer;
}
.btn-minimize-modal:hover {
    opacity: 1;
}
body.modal-minimized-active.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}
body.modal-minimized-active .modal-backdrop {
    opacity: 0 !important;
    pointer-events: none !important;
}
@media (max-width: 575.98px) {
    .modal.modal-minimized .modal-dialog {
        right: 8px;
        left: 8px;
        max-width: none;
    }
}
