/**
 * Barelli Barbearia — Admin Panel & CRM Styles (v2.0)
 * Uses tokens from ../css/design-system.css
 */

body {
    min-height: 100vh;
    background-color: var(--color-bg);
    color: var(--color-gray-200);
}

.heading {
    font-family: var(--font-heading);
    color: var(--color-white);
    font-weight: 600;
}

.gold-text {
    color: var(--color-gold-bright);
}

/* ─── Forms & Controls ──────────────────────────────────────────── */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--color-gray-300);
}

.form-control,
input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: 10px 13px;
    background: var(--color-obsidian);
    border: 1px solid var(--color-gray-700);
    border-radius: var(--border-radius-sm);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color var(--transition-fast);
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-gold);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #F87171;
}

.btn-danger:hover {
    background: #EF4444;
    color: var(--color-white);
}

/* ─── Screens & Login ───────────────────────────────────────────── */
.screen-hidden {
    display: none !important;
}

.screen-active {
    display: flex;
}

#login-screen {
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px 32px;
    text-align: center;
}

.login-logo {
    max-width: 160px;
    margin: 0 auto 18px;
}

.login-subtitle {
    font-size: 0.88rem;
    color: var(--color-gray-400);
    margin: 8px 0 24px;
}

.login-back-link {
    font-size: 0.82rem;
    color: var(--color-gray-400);
    text-decoration: none;
}

.login-back-link:hover {
    color: var(--color-gold);
}

/* ─── App Shell & Sidebar ───────────────────────────────────────── */
#app-screen {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 265px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    background: #0A0A0C;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform var(--transition-normal);
}

.sidebar-header {
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-logo {
    max-width: 135px;
}

.mobile-close {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.4rem;
    cursor: pointer;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.nav-item {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--border-radius-sm);
    padding: 11px 14px;
    color: var(--color-gray-300);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-fast);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-white);
}

.nav-item.active {
    background: var(--color-gold-muted);
    color: var(--color-gold-bright);
    border-color: var(--color-gold-border);
    font-weight: 600;
}

.nav-pill-badge {
    margin-left: auto;
    background: var(--gradient-gold);
    color: var(--color-black);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: var(--border-radius-pill);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.main-content {
    flex: 1;
    margin-left: 265px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 30px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(13, 13, 15, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.page-title {
    font-size: 1.35rem;
    margin: 0;
}

.content-area {
    padding: 28px 30px 60px;
    flex: 1;
}

.tab-content {
    display: none;
    animation: fadeIn 0.25s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Dashboard KPIs & Alerts ───────────────────────────────────── */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.kpi-card {
    padding: 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.kpi-icon {
    font-size: 1.65rem;
    background: var(--color-gold-muted);
    border: 1px solid var(--color-gold-border);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.kpi-data h3 {
    font-size: 0.8rem;
    color: var(--color-gray-400);
    font-weight: 500;
    margin-bottom: 4px;
}

.kpi-value {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
}

.kpi-sub {
    font-size: 0.76rem;
    color: var(--color-gray-400);
    margin-top: 4px;
}

.occupancy-wrapper {
    width: 54px;
    height: 54px;
    margin-top: 4px;
}

.occupancy-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--color-white);
    background: conic-gradient(var(--color-gold-bright) var(--perc), rgba(255, 255, 255, 0.08) 0);
    position: relative;
}

.occupancy-circle::before {
    content: "";
    position: absolute;
    inset: 5px;
    background: var(--color-bg-card);
    border-radius: 50%;
}

.occupancy-circle span {
    position: relative;
    z-index: 1;
}

.crm-alert-banner, .crm-header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 26px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.crm-alert-banner h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-white);
    margin: 6px 0 4px;
}

.crm-alert-banner p {
    font-size: 0.86rem;
    color: var(--color-gray-300);
}

.crm-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ─── Charts ────────────────────────────────────────────────────── */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.chart-card {
    padding: 22px;
}

.chart-card .heading {
    font-size: 1.05rem;
    margin-bottom: 18px;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 190px;
    padding-bottom: 28px;
    position: relative;
}

.chart-bar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    width: 34px;
}

.chart-bar {
    width: 100%;
    background: var(--gradient-gold);
    border-radius: 4px 4px 0 0;
    transition: height var(--transition-slow);
    min-height: 4px;
}

.chart-bar-val {
    font-size: 0.7rem;
    margin-bottom: 5px;
    color: var(--color-gray-200);
}

.chart-bar-label {
    position: absolute;
    bottom: 0;
    font-size: 0.75rem;
    color: var(--color-gray-400);
}

.horizontal-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 190px;
    overflow-y: auto;
}

.hbar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hbar-label {
    width: 135px;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hbar-track {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    overflow: hidden;
}

.hbar-fill {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 6px;
}

.hbar-val {
    width: 28px;
    font-size: 0.82rem;
    text-align: right;
    font-weight: 700;
    color: var(--color-gold-bright);
}

/* ─── Tables & Badges ───────────────────────────────────────────── */
.section-card {
    padding: 22px;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.data-table th, .data-table td {
    padding: 13px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.data-table th {
    color: var(--color-gray-400);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-pending { background: rgba(245, 158, 11, 0.14); color: #FBBF24; }
.badge-confirmed { background: rgba(59, 130, 246, 0.14); color: #60A5FA; }
.badge-completed { background: rgba(34, 197, 94, 0.14); color: #4ADE80; }
.badge-cancelled { background: rgba(239, 68, 68, 0.14); color: #F87171; }
.badge-noshow { background: rgba(156, 163, 175, 0.14); color: #9CA3AF; }
.badge-category {
    background: var(--color-gold-muted);
    color: var(--color-gold-light);
    border: 1px solid var(--color-gold-border);
}

.action-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.action-btns select {
    padding: 5px 8px;
    font-size: 0.78rem;
    width: auto;
}

/* ─── Controls & CRM Filter Pills ───────────────────────────────── */
.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 14px;
}

.filters, .controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filters .form-control {
    width: auto;
}

.crm-filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.crm-pill {
    padding: 7px 14px;
    border-radius: var(--border-radius-pill);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-gray-300);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.crm-pill.active {
    background: var(--gradient-gold);
    color: var(--color-black);
    border-color: var(--color-gold);
    font-weight: 700;
}

.blocked-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.blocked-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #FCA5A5;
    font-size: 0.8rem;
}

.blocked-tag button {
    background: none;
    border: none;
    color: #FCA5A5;
    cursor: pointer;
    font-weight: 700;
}

/* ─── Services, Order Bumps & Barbers Cards ─────────────────────── */
.services-admin-grid, .barbers-grid, .bumps-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 18px;
}

.item-card {
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.drag-handle {
    cursor: grab;
    color: var(--color-gray-500);
    font-size: 1.2rem;
    padding: 4px;
}

.item-thumb-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: var(--color-gold-muted);
    border: 1px solid var(--color-gold-border);
    color: var(--color-gold-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.item-thumb-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-gold);
    background: var(--color-obsidian);
    flex-shrink: 0;
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-info h4 {
    color: var(--color-white);
    font-size: 0.98rem;
    margin-bottom: 4px;
}

.item-meta {
    font-size: 0.8rem;
    color: var(--color-gray-400);
    margin-bottom: 6px;
}

.item-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bump-admin-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}

/* ─── Switch & Settings ─────────────────────────────────────────── */
.toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: var(--color-gray-700);
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--color-gold);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.settings-card {
    padding: 24px;
}

.settings-card .heading {
    margin-bottom: 18px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 10px;
}

.divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 18px 0;
}

.data-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ─── Modals ────────────────────────────────────────────────────── */
.modal {
    background: var(--color-bg-card);
    border: 1px solid var(--color-gold-border);
    border-radius: var(--border-radius-lg);
    margin: auto;
    max-width: 650px;
    width: 94%;
    max-height: 92vh;
    padding: 0;
    overflow: hidden;
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
}

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

.modal::backdrop {
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
}

.modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    background: none;
    border: none;
    color: var(--color-gray-400);
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-body {
    padding: 22px;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.modal-footer {
    padding: 16px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
}

.apt-summary {
    margin-right: auto;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-height: 150px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
}

.image-preview, .avatar-preview {
    margin-top: 8px;
    width: 88px;
    height: 88px;
    border-radius: var(--border-radius-sm);
    background: var(--color-obsidian);
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar-preview {
    border-radius: 50%;
    margin: 0 auto 12px;
}

.gallery-preview {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.gallery-thumb-wrap {
    position: relative;
}

.gallery-thumb {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
}

.gallery-remove {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #EF4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    border: none;
    cursor: pointer;
    font-size: 10px;
}

/* ─── Toasts ────────────────────────────────────────────────────── */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-md);
}

.toast-success { background: #16A34A; }
.toast-error { background: #DC2626; }

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .mobile-close, .mobile-toggle {
        display: block;
    }
    .workspace-topbar {
        padding: 12px 16px;
    }
    .topbar-booking-link {
        display: none;
    }
    .main-content {
        margin-left: 0;
    }
    .charts-grid, .form-row, .wa-builder-grid, .templates-editor-grid {
        grid-template-columns: 1fr;
    }
    .payment-methods-grid {
        grid-template-columns: 1fr 1fr;
    }
    .comanda-add-row {
        flex-wrap: wrap;
    }
    .content-area {
        padding: 20px 16px 60px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   v3.0 CRM, WhatsApp 1-Clique, PDV Comandas & CMS Layout Styles
   ═══════════════════════════════════════════════════════════════════ */
.bg-brand-pattern {
    background-image: var(--bg-pattern-hat);
    background-repeat: repeat;
}

.hidden { display: none !important; }
.w-100 { width: 100%; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.text-center { text-align: center; }

.error-msg {
    color: #F87171;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: var(--border-radius-xs);
    padding: 8px 12px;
    font-size: 0.82rem;
    margin-top: 8px;
}

.login-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.login-mode-btn {
    padding: 9px 12px;
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-gray-400);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.login-mode-btn.active {
    background: var(--color-gold-muted);
    border-color: var(--color-gold-border);
    color: var(--color-gold-bright);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.brand-title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-gold-bright);
    letter-spacing: 1px;
    line-height: 1.1;
}

.brand-sub {
    display: block;
    font-size: 0.72rem;
    color: var(--color-gray-400);
}

.nav-group-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--color-gray-500);
    padding: 12px 14px 4px;
    font-weight: 700;
}

.btn-logout {
    padding: 9px 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--border-radius-sm);
    color: #FCA5A5;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-logout:hover {
    background: #EF4444;
    color: var(--color-white);
}

.workspace-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 36px;
    background: rgba(10, 10, 12, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 60;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.topbar-shop-name {
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--color-white);
    white-space: nowrap;
}

.topbar-current-tab {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-gold-bright);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.topbar-booking-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-gold-bright);
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 7px 14px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.topbar-booking-link:hover {
    background: rgba(212, 175, 55, 0.18);
    border-color: rgba(212, 175, 55, 0.5);
}

.topbar-user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 5px 12px 5px 6px;
    border-radius: 999px;
}

.user-avatar-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold-bright), var(--color-gold-deep));
    color: #0B0B0D;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-pill-info {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.user-pill-info strong {
    font-size: 0.82rem;
    color: var(--color-white);
    font-weight: 600;
}

.user-pill-info small {
    font-size: 0.7rem;
    color: var(--color-gold-bright);
}

.section-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    color: var(--color-white);
    margin: 0;
}

.section-subtitle {
    font-size: 0.88rem;
    color: var(--color-gray-400);
    margin-top: 2px;
}

.action-buttons-wrap {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.stat-card {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-icon {
    font-size: 1.55rem;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--color-gold-muted);
    border: 1px solid var(--color-gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--color-gray-400);
}

.stat-value {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
}

.stat-meta {
    font-size: 0.75rem;
    color: var(--color-gray-400);
    margin-top: 2px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.08rem;
    color: var(--color-white);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.recent-card {
    padding: 20px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--color-gold-bright);
    font-weight: 600;
    font-size: 0.86rem;
    cursor: pointer;
}

.alerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.alert-tile {
    padding: 14px;
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.alert-tile.warn { border-color: rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.06); }
.alert-tile.gold { border-color: var(--color-gold-border); background: var(--color-gold-muted); }
.alert-tile.danger { border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.06); }

.filters-bar {
    display: flex;
    gap: 10px;
    padding: 14px 18px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.filters-bar .filter-input {
    width: auto;
    min-width: 155px;
    flex: 1;
}

.blocked-banner {
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    background: rgba(239, 68, 68, 0.09);
    border: 1px solid rgba(239, 68, 68, 0.3);
    margin-bottom: 16px;
}

.blocked-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.table-container {
    padding: 6px 14px;
    overflow-x: auto;
}

.empty-state {
    padding: 36px 20px;
    text-align: center;
    color: var(--color-gray-400);
    font-size: 0.92rem;
}

.subtab-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.subtab-btn {
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-gray-300);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.subtab-btn.active {
    background: var(--gradient-gold);
    color: var(--color-black);
    border-color: var(--color-gold);
}

.crm-filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.crm-pill-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.crm-filter-btn {
    padding: 7px 14px;
    border-radius: var(--border-radius-pill);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-gray-300);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.crm-filter-btn.active {
    background: var(--gradient-gold);
    color: var(--color-black);
    border-color: var(--color-gold);
    font-weight: 700;
}

.crm-summary-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.crm-mini-stat {
    padding: 14px 16px;
    border-radius: var(--border-radius-sm);
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.ticket-kpis-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.ticket-mini-card {
    padding: 12px;
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ticket-mini-card small {
    color: var(--color-gray-400);
    font-size: 0.74rem;
}

.ticket-mini-card strong {
    font-size: 1.05rem;
}

.ticket-mini-card span {
    color: var(--color-gray-500);
    font-size: 0.74rem;
}

.ticket-upsell-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ticket-split-item {
    padding: 12px 14px;
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ticket-split-item.upsell {
    border-color: var(--color-gold-border);
    background: rgba(212, 175, 55, 0.06);
}

.ticket-split-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
}

.ticket-split-item small {
    color: var(--color-gray-400);
    font-size: 0.75rem;
    line-height: 1.35;
}

@media (max-width: 520px) {
    .ticket-kpis-row,
    .ticket-upsell-split {
        grid-template-columns: 1fr;
    }
}

.cards-grid, .bumps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 16px;
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.product-card-img-wrap {
    position: relative;
    height: 170px;
    background: #0A0A0C;
    overflow: hidden;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.cash-banner-box {
    padding: 18px 22px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.wa-builder-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
}

.var-chips-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.var-chip {
    padding: 4px 10px;
    border-radius: var(--border-radius-pill);
    background: var(--color-gold-muted);
    border: 1px solid var(--color-gold-border);
    color: var(--color-gold-light);
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
}

.var-chip:hover {
    background: var(--color-gold);
    color: var(--color-black);
}

.wa-bubble-preview {
    background: #0B141A;
    border: 1px solid rgba(37, 211, 102, 0.35);
    border-radius: 12px;
    padding: 14px 16px;
    color: #E9EDEF;
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.wa-queue-progress-box {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.templates-editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.template-box {
    padding: 16px;
    border-radius: var(--border-radius-sm);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-callout {
    padding: 14px 18px;
    border-radius: var(--border-radius-sm);
    background: var(--color-gold-muted);
    border: 1px solid var(--color-gold-border);
    color: var(--color-gray-100);
    font-size: 0.86rem;
    margin-bottom: 18px;
}

.comanda-add-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.tag-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--border-radius-pill);
    background: rgba(255, 255, 255, 0.07);
    color: var(--color-gray-200);
    font-size: 0.7rem;
    margin-right: 4px;
}

.settings-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
}

.storage-meter {
    height: 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin: 8px 0 4px;
}

.storage-meter-bar {
    height: 100%;
    background: var(--gradient-gold);
    width: 10%;
    transition: width 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════════════
   Mobile App-Style Navigation, Bottom Sheets & Responsive Layouts
   ═══════════════════════════════════════════════════════════════════ */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 85;
}

.painel-bottom-nav {
    display: none;
}

@media (max-width: 860px) {
    .sidebar {
        z-index: 95;
        width: min(290px, 84vw);
        box-shadow: 12px 0 40px rgba(0, 0, 0, 0.7);
    }

    .painel-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 75;
        background: rgba(10, 10, 12, 0.96);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-top: 1px solid rgba(212, 168, 67, 0.24);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.65);
    }

    .pnav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        background: none;
        border: none;
        color: var(--color-gray-400);
        font-family: var(--font-body);
        font-size: 0.69rem;
        font-weight: 600;
        padding: 5px 4px;
        min-height: 46px;
        cursor: pointer;
        transition: color var(--transition-fast);
    }

    .pnav-item.active {
        color: var(--color-gold-bright);
    }

    .pnav-icon {
        font-size: 1.15rem;
        line-height: 1;
    }

    .content-area {
        padding: 16px 14px calc(92px + env(safe-area-inset-bottom, 0px));
    }

    #toast-container {
        bottom: calc(78px + env(safe-area-inset-bottom, 0px));
        right: 12px;
        left: 12px;
    }

    .section-top {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .action-buttons-wrap {
        width: 100%;
    }

    .action-buttons-wrap .btn {
        flex: 1;
    }

    .subtab-bar,
    .crm-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .subtab-bar::-webkit-scrollbar,
    .crm-filters::-webkit-scrollbar {
        display: none;
    }

    .subtab-btn,
    .crm-filter-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filters-bar > * {
        width: 100% !important;
        max-width: none !important;
    }

    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        min-width: 620px;
    }

    .cards-grid,
    .products-grid,
    .bumps-admin-grid,
    .cms-grid {
        grid-template-columns: 1fr;
    }

    .wa-queue-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .wa-queue-card > div:last-child {
        display: flex;
        gap: 8px;
    }

    .wa-queue-card > div:last-child .btn {
        flex: 1;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stats-grid > .stat-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .stat-card {
        padding: 14px 12px;
        gap: 10px;
    }

    .stat-icon {
        font-size: 1.35rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.72rem;
    }

    .payment-methods-grid {
        grid-template-columns: 1fr 1fr;
    }

    .comanda-add-row > * {
        width: 100%;
        flex: 1 1 100%;
    }

    /* Native Bottom Sheet Modals on Small Screens */
    dialog.modal,
    dialog.modal.modal-lg {
        width: 100%;
        max-width: 100%;
        margin: auto 0 0 0;
        border-radius: 20px 20px 0 0;
        max-height: 92dvh;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    dialog.modal .modal-body {
        max-height: calc(92dvh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    dialog.modal input,
    dialog.modal select,
    dialog.modal textarea,
    .filters-bar input,
    .filters-bar select,
    #login-form input,
    #login-form select {
        font-size: 16px;
    }

    .modal-footer {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

/* ═══════════════ AGENDA VISUAL TIMELINE (SALONSOFT STYLE) ═══════════════ */
.timeline-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 16px;
    margin-bottom: 16px;
    background: #141418;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.date-stepper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-step-day {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.btn-step-day:hover {
    border-color: var(--color-gold-bright);
    color: var(--color-gold-bright);
    background: rgba(212, 175, 55, 0.1);
}

.timeline-date-input {
    height: 36px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #0B0B0D;
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 600;
    color-scheme: dark;
}

.timeline-controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.agenda-timeline-card {
    background: #121216;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tl-header-row {
    display: flex;
    align-items: stretch;
    background: #1A1A20;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 100%;
    width: max-content;
}

.tl-hour-corner {
    width: 68px;
    flex-shrink: 0;
    padding: 12px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tl-barber-col-hdr {
    flex: 1 0 260px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--color-white);
}

.tl-body {
    display: flex;
    flex-direction: column;
    min-width: 100%;
    width: max-content;
}

.tl-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tl-row:last-child {
    border-bottom: none;
}

.tl-hour-lbl {
    width: 68px;
    flex-shrink: 0;
    padding: 12px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-gray-400);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: rgba(255, 255, 255, 0.015);
}

.tl-cell {
    flex: 1 0 260px;
    min-height: 54px;
    padding: 5px 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: stretch;
}

.tl-cell-busy {
    background: rgba(255, 255, 255, 0.018);
    align-items: center;
}

.tl-busy-line {
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        rgba(212, 175, 55, 0.25) 0 6px,
        transparent 6px 12px
    );
}

.tl-empty-slot {
    width: 100%;
    min-height: 42px;
    border: 1px dashed rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.26);
    font-size: 0.78rem;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.16s ease;
    text-align: left;
}

.tl-empty-slot:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.07);
    color: var(--color-gold-bright);
}

.tl-apt-block {
    width: 100%;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 4px solid var(--color-gold-bright);
    background: rgba(212, 175, 55, 0.1);
}

.tl-apt-block.tl-status-pending {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.32);
    border-left-color: #38BDF8;
}

.tl-apt-block.tl-status-confirmed {
    background: rgba(212, 175, 55, 0.13);
    border-color: rgba(212, 175, 55, 0.38);
    border-left-color: var(--color-gold-bright);
}

.tl-apt-block.tl-status-completed {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.14);
    border-left-color: #71717A;
    opacity: 0.85;
}

.tl-apt-block.tl-status-noshow {
    background: rgba(239, 68, 68, 0.09);
    border-color: rgba(239, 68, 68, 0.3);
    border-left-color: #EF4444;
    opacity: 0.8;
}

.tl-apt-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tl-apt-time {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.02em;
}

.tl-apt-pill {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.tl-apt-pill.pill-pending {
    background: rgba(56, 189, 248, 0.22);
    color: #7DD3FC;
}

.tl-apt-pill.pill-confirmed {
    background: rgba(212, 175, 55, 0.24);
    color: var(--color-gold-bright);
}

.tl-apt-pill.pill-completed {
    background: rgba(161, 161, 170, 0.22);
    color: #D4D4D8;
}

.tl-apt-pill.pill-noshow {
    background: rgba(239, 68, 68, 0.22);
    color: #FCA5A5;
}

.tl-apt-main {
    font-size: 0.88rem;
    color: var(--color-white);
    line-height: 1.35;
}

.tl-apt-note {
    font-size: 0.76rem;
    color: var(--color-gray-400);
    font-style: italic;
}

.tl-apt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.tl-blocked-block {
    width: 100%;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--color-gray-400);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 4px solid #52525B;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.045),
        rgba(255, 255, 255, 0.045) 8px,
        rgba(0, 0, 0, 0.25) 8px,
        rgba(0, 0, 0, 0.25) 16px
    );
}

.tl-unblock-btn {
    padding: 4px 10px;
    font-size: 0.74rem;
}

@media (max-width: 640px) {
    .topbar-shop-name {
        font-size: 0.96rem;
    }

    .topbar-current-tab {
        display: none;
    }

    .user-pill-info small {
        display: none;
    }

    .timeline-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .date-stepper {
        justify-content: space-between;
    }

    .timeline-date-input {
        flex: 1;
        font-size: 16px;
    }

    .timeline-controls-right {
        width: 100%;
    }

    .timeline-controls-right select {
        width: 100%;
        font-size: 16px;
    }

    .tl-hour-corner,
    .tl-hour-lbl {
        width: 56px;
        font-size: 0.72rem;
    }

    .tl-barber-col-hdr,
    .tl-cell {
        flex: 1 0 230px;
    }

    .tl-apt-actions .btn {
        flex: 1 1 auto;
    }
}
