/* ============================================
   eWarrant - Main Stylesheet
   Primary: #284796 | Secondary: #F3E15E
   Font: Barlow
   ============================================ */

:root {
    --primary: #284796;
    --primary-rgb: 40, 71, 150;
    --primary-dark: #1d3470;
    --primary-light: #3a5db8;
    --secondary: #F3E15E;
    --secondary-rgb: 243, 225, 94;
    --secondary-dark: #d4c340;
    --secondary-light: #f5e87a;
    --dark: #1a1a2e;
    --body-bg: #f0f2f5;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.25s ease;
}

* {
    font-family: 'Barlow', sans-serif;
}

body {
    background: var(--body-bg);
    color: #333;
    font-size: 15px;
    min-height: 100vh;
}

/* ---- Sidebar Layout ---- */
.app-body {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    width: 260px;
    height: 100vh;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    transition: width 0.25s ease, transform 0.3s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
    overflow: hidden;
}

.sidebar-header {
    flex-shrink: 0;
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    min-height: 72px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
}

.sidebar-brand i {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.sidebar-brand-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}
.sidebar-brand-logo-collapsed {
    display: none;
}
body.sidebar-collapsed .sidebar-brand-logo-expanded {
    display: none;
}
body.sidebar-collapsed .sidebar-brand-logo-collapsed {
    display: block;
    height: 32px;
}

.sidebar-brand-text {
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.2s;
}

.sidebar-toggle {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 0.75rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.sidebar-nav::-webkit-scrollbar {
    display: none;
}

.nav-section {
    margin-bottom: 1.25rem;
}

.nav-section-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.65rem 0.75rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    margin-bottom: 2px;
}

.sidebar-nav .nav-link i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.sidebar-nav .nav-link.active {
    background: var(--secondary);
    color: var(--primary-dark);
}

.sidebar-nav .nav-link.active:hover {
    background: var(--secondary-light);
    color: var(--primary-dark);
}

.sidebar-footer {
    flex-shrink: 0;
    padding: 1rem 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--secondary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar-user-info {
    overflow: hidden;
}

.sidebar-user-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

.nav-link-logout {
    color: rgba(255,255,255,0.7) !important;
}

.nav-link-logout:hover {
    background: rgba(220, 53, 69, 0.3) !important;
    color: #fff !important;
}

/* Sidebar collapsed */
body.sidebar-collapsed .sidebar {
    width: 72px;
}

body.sidebar-collapsed .sidebar-brand-text,
body.sidebar-collapsed .nav-section-label,
body.sidebar-collapsed .sidebar-nav .nav-link span,
body.sidebar-collapsed .sidebar-user-info,
body.sidebar-collapsed .nav-link-logout span {
    opacity: 0;
    visibility: hidden;
    width: 0;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

body.sidebar-collapsed .sidebar-nav .nav-link {
    justify-content: center;
    padding: 0.65rem;
}

body.sidebar-collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

body.sidebar-collapsed .sidebar-user {
    justify-content: center;
    padding: 0.5rem;
}

body.sidebar-collapsed .nav-link-logout {
    justify-content: center;
    padding: 0.65rem;
}

/* App main content */
.app-main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.25s ease;
    background: var(--body-bg);
}

body.sidebar-collapsed .app-main {
    margin-left: 72px;
}

.app-topbar {
    flex-shrink: 0;
    height: 64px;
    min-height: 64px;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
@media (min-width: 576px) {
    .app-topbar { padding: 0 1.5rem; }
}

.sidebar-toggle-mobile {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--primary);
    font-size: 1.5rem;
    border-radius: 8px;
    cursor: pointer;
}

.sidebar-toggle-mobile:hover {
    background: rgba(var(--primary-rgb), 0.08);
}

/* Mobile sidebar overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1029;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.sidebar-open .sidebar-overlay {
    display: block;
    opacity: 1;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0 !important;
    }

    .sidebar-toggle {
        display: none !important;
    }
}

/* Legacy - keep for auth pages */
.user-avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ---- Page Wrapper ---- */
.page-wrapper {
    flex: 1;
    padding: 1rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}
@media (min-width: 576px) {
    .page-wrapper { padding: 1.25rem 1.5rem; }
}
@media (min-width: 768px) {
    .page-wrapper { padding: 2rem 2.5rem; }
}

/* ---- Page Header ---- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1.25rem;
}
.page-header .btn-group {
    flex-shrink: 0;
}
.page-header h4 {
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    font-size: 1.3rem;
}

/* ---- Cards ---- */
.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-lg);
}
.card-header {
    background: transparent;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

/* ---- Stat Cards ---- */
@media (max-width: 575.98px) {
    .row.g-3 .col-6, .row.g-4 .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
.stat-card {
    border-radius: var(--radius);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    color: #fff;
    min-height: 100px;
}
.stat-card .stat-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    opacity: 0.2;
}
.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}
.stat-card .stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 4px;
}
.stat-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.stat-secondary { background: linear-gradient(135deg, #e0a800, var(--warning)); color: var(--dark); }
.stat-success { background: linear-gradient(135deg, #1e7e34, var(--success)); }
.stat-info { background: linear-gradient(135deg, #117a8b, var(--info)); }
.stat-danger { background: linear-gradient(135deg, #bd2130, var(--danger)); }
.stat-card-clickable { cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.stat-card-clickable:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

/* ---- Buttons ---- */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-secondary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--dark);
}
.btn-secondary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--dark);
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}

/* ---- Forms ---- */
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}
.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

/* ---- Password Toggle ---- */
.password-wrapper {
    position: relative;
}
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    background: none;
    border: none;
    padding: 0;
    z-index: 5;
}
.password-toggle:hover {
    color: var(--primary);
}

/* ---- Auth Pages ---- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 1rem;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}
.auth-header {
    background: var(--primary);
    color: #fff;
    padding: 1.5rem;
    text-align: center;
}
.auth-header h3 {
    font-weight: 700;
    margin: 0;
}
.auth-logo {
    max-height: 48px;
    width: auto;
    margin-bottom: 8px;
}
.auth-header .subtitle {
    opacity: 0.8;
    font-size: 0.9rem;
}
.auth-body {
    padding: 1.5rem;
    background: #fff;
}

/* ---- Data Table ---- */
.ew-table-container {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.ew-table-toolbar {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid #eee;
}
.ew-table-search {
    max-width: 280px;
}
.ew-table table {
    margin: 0;
}
.ew-table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #555;
    letter-spacing: 0.3px;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    border-bottom: 2px solid #dee2e6;
}
.ew-table th:hover {
    background: #e9ecef;
}
.ew-table th .sort-icon {
    margin-left: 4px;
    opacity: 0.4;
}
.ew-table th.sorted .sort-icon {
    opacity: 1;
    color: var(--primary);
}
.ew-table td {
    vertical-align: middle;
    font-size: 0.95rem;
}
.ew-table-footer {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}
.ew-pagination .page-link {
    color: var(--primary);
    border-radius: 6px;
    margin: 0 2px;
    font-size: 0.85rem;
}
.ew-pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ---- Mobile Card Layout ---- */
.mobile-card {
    display: none;
}
.ew-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
@media (max-width: 767.98px) {
    .ew-table .desktop-table {
        display: none;
    }
    .mobile-card {
        display: block;
    }
    .mobile-card-item {
        background: #fff;
        border-radius: var(--radius-sm);
        padding: 1rem;
        margin-bottom: 0.75rem;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
        border-left: 4px solid var(--primary);
    }
    .mobile-card-item .card-row {
        display: flex;
        justify-content: space-between;
        padding: 4px 0;
        font-size: 0.9rem;
    }
    .mobile-card-item .card-row .label {
        color: #888;
        font-weight: 600;
        font-size: 0.8rem;
        text-transform: uppercase;
    }
    .mobile-card-item .card-row .value {
        font-weight: 500;
        text-align: right;
    }
    .mobile-card-item .card-actions {
        display: flex;
        gap: 8px;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #eee;
    }
    .mobile-card-item .card-title {
        font-weight: 700;
        font-size: 1rem;
        margin-bottom: 6px;
        color: var(--dark);
    }
}

/* ---- Bulk Actions Bar ---- */
.bulk-actions-bar {
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    display: none;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}
.bulk-actions-bar.active {
    display: flex;
}

/* ---- Badges ---- */
.badge-active { background: var(--success); }
.badge-inactive { background: var(--danger); }
.badge-pending { background: var(--warning); color: #333; }
.badge-expired { background: #6c757d; }

/* ---- Toast ---- */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
}
.toast {
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}

/* ---- Rich Text Editor ---- */
.ql-toolbar {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    border-color: #dee2e6;
}
.ql-container {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    border-color: #dee2e6;
    min-height: 200px;
    font-family: 'Barlow', sans-serif;
}

/* ---- Column Toggle Dropdown ---- */
.column-toggle-dropdown {
    min-width: 200px;
    padding: 0.5rem;
}
.column-toggle-dropdown .form-check {
    padding: 4px 8px 4px 28px;
}

/* ---- Loading Spinner ---- */
.ew-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}
.ew-loading .spinner-border {
    color: var(--primary);
}

/* ---- Warrant Card ---- */
.wc { max-width: 650px; margin: 0 auto; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.wc-top { background: #fff; color: #1e293b; padding: 28px 32px; border-bottom: 1px solid #e2e8f0; }
.wc-logo { margin-bottom: 8px; }
.wc-logo img { height: 48px; }
.wc-biz { font-size: 20px; font-weight: 700; letter-spacing: 0.3px; margin: 0; color: #1e293b; }
.wc-biz-info { font-size: 12px; color: #64748b; margin-top: 3px; }
.wc-title { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: #94a3b8; margin-top: 14px; }
.wc-header-row { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; }
.wc-id { font-size: 13px; font-weight: 600; color: var(--primary); }
.wc-status { display: inline-flex; align-items: center; gap: 4px; padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; }
.wc-body { padding: 28px 32px; }
.wc-row { display: flex; flex-wrap: wrap; }
.wc-col { padding: 10px 8px; }
.wc-col-half { width: 50%; }
.wc-col-third { width: 33.33%; }
.wc-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px; color: #94a3b8; font-weight: 600; margin-bottom: 4px; }
.wc-val { font-size: 15px; font-weight: 600; color: #1e293b; }
.wc-divider { border: none; border-top: 1px dashed #e2e8f0; margin: 8px 0; }
.wc-product-bar { background: linear-gradient(135deg, #f1f5f9 0%, #e8ecf3 100%); border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; display: flex; }
.wc-product-bar .wc-val { color: var(--primary); font-size: 16px; }
.wc-dates { background: #fafbfc; border-radius: 10px; padding: 16px 20px; display: flex; border: 1px solid #f1f3f5; }
.wc-bottom { display: flex; align-items: center; padding: 28px 32px; gap: 20px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; }
.wc-qr-col { flex-shrink: 0; text-align: center; }
.wc-qr-col img { border: 3px solid rgba(255,255,255,0.3); border-radius: 10px; width: 130px; height: 130px; }
.wc-verify-col { flex: 1; }
.wc-verify-title { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.9); font-weight: 600; }
.wc-verify-url { font-size: 11px; color: rgba(255,255,255,0.75); word-break: break-all; margin-top: 4px; }
.wc-footer { text-align: center; padding: 14px 32px; background: var(--primary-dark); font-size: 11px; color: rgba(255,255,255,0.8); }
.wc-terms-row { display: flex; flex-wrap: wrap; align-items: flex-end; margin-top: 16px; border-top: 1px dashed #e2e8f0; padding-top: 16px; gap: 16px; }
.wc-terms-col { flex: 1; min-width: 200px; }
.wc-stamp-col { flex-shrink: 0; }
.wc-terms { }
.wc-terms h4 { font-size: 12px; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 8px; }
.wc-terms-body { font-size: 12px; color: #64748b; line-height: 1.6; }
@media (max-width: 575.98px) {
    .wc-top, .wc-body, .wc-bottom { padding-left: 16px; padding-right: 16px; }
    .wc-product-bar, .wc-dates { flex-wrap: wrap; gap: 12px; }
    .wc-product-bar .wc-col, .wc-dates .wc-col { width: 100% !important; padding: 4px 0 !important; }
    .wc-col-half { width: 100%; }
    .wc-col-third { width: 100%; }
    .wc-bottom { flex-direction: column; text-align: center; }
    .wc-verify-col { padding-left: 0 !important; }
}

/* ---- Verification Page ---- */
.verify-page {
    min-height: 100vh;
    background: var(--body-bg);
    padding: 1rem;
}
.verify-card {
    max-width: 500px;
    margin: 2rem auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.verify-header {
    background: var(--primary);
    color: #fff;
    padding: 1.5rem;
    text-align: center;
}
.verify-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
}
.verify-badge.valid {
    background: var(--success);
    color: #fff;
}
.verify-badge.expired {
    background: var(--danger);
    color: #fff;
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}
.empty-state i {
    font-size: 3rem;
    opacity: 0.4;
    margin-bottom: 1rem;
}
.empty-state h5 {
    font-weight: 600;
}

/* ---- Utility ---- */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.fw-700 { font-weight: 700; }
.fs-sm { font-size: 0.85rem; }
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- Animations ---- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.3s ease;
}

/* ---- Bottom Nav (mobile) ---- */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1020;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 0.5rem 0;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0.5rem 0.25rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    transition: var(--transition);
}

.bottom-nav-item i {
    font-size: 1.25rem;
}

.bottom-nav-item:hover {
    color: var(--primary);
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active i {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: stretch;
    }

    .app-main {
        padding-bottom: 5rem;
    }
}

@media (min-width: 992px) {
    .app-main {
        padding-bottom: 0;
    }
}

/* ---- Footer ---- */
.footer-ew {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: auto;
}
