/* ============================================================
   TicketDesk — Custom Styles  (layered on Bootstrap 5.3)
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   1.  DESIGN TOKENS  (CSS custom properties)
   ══════════════════════════════════════════════════════════════ */
:root {
    /* Brand palette */
    --td-primary:       #0d6efd;
    --td-primary-dark:  #0a58ca;
    --td-primary-light: #e8f0fe;
    --td-success:       #198754;
    --td-success-light: #d1e7dd;
    --td-warning:       #ffc107;
    --td-warning-light: #fff3cd;
    --td-danger:        #dc3545;
    --td-danger-light:  #f8d7da;
    --td-info:          #0dcaf0;
    --td-info-light:    #cff4fc;

    /* Surfaces */
    --td-bg:            #f4f6fb;
    --td-surface:       #ffffff;
    --td-border:        #e3e8f0;
    --td-border-light:  #f0f3f8;

    /* Text */
    --td-text:          #1a1d23;
    --td-text-muted:    #6b7280;
    --td-text-light:    #9ca3af;

    /* Shadows */
    --td-shadow-xs:  0 1px 3px rgba(0,0,0,.06);
    --td-shadow-sm:  0 2px 8px rgba(0,0,0,.07);
    --td-shadow-md:  0 4px 18px rgba(0,0,0,.09);
    --td-shadow-lg:  0 8px 32px rgba(0,0,0,.11);
    --td-shadow-xl:  0 16px 48px rgba(0,0,0,.13);

    /* Shapes */
    --td-radius-sm:  0.375rem;
    --td-radius:     0.75rem;
    --td-radius-lg:  1rem;
    --td-radius-xl:  1.25rem;

    /* Transitions */
    --td-transition: 0.18s ease;

    /* Font */
    --td-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}


/* ══════════════════════════════════════════════════════════════
   2.  BASE  &  TYPOGRAPHY
   ══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--td-font);
    font-size: 0.9125rem;
    line-height: 1.6;
    background-color: var(--td-bg);
    color: var(--td-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: var(--td-primary);
    transition: color var(--td-transition);
}
a:hover { color: var(--td-primary-dark); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--td-font);
    font-weight: 700;
    letter-spacing: -0.015em;
}

/* Utility helpers */
.text-muted { color: var(--td-text-muted) !important; }


/* ══════════════════════════════════════════════════════════════
   3.  AUTH PAGES  (login / register / public form)
   ══════════════════════════════════════════════════════════════ */
body.bg-light {
    background: linear-gradient(135deg, #e8f0fe 0%, #f4f6fb 50%, #fff3e0 100%) !important;
    min-height: 100vh;
}

.auth-card {
    border: none;
    border-radius: var(--td-radius-xl);
    box-shadow: var(--td-shadow-xl);
    background: var(--td-surface);
    overflow: hidden;
}

.auth-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--td-primary) 0%, #6610f2 50%, #0dcaf0 100%);
}

.auth-brand-icon {
    font-size: 3.25rem;
    background: linear-gradient(135deg, var(--td-primary), #6610f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Input groups on auth forms */
.auth-card .input-group-text {
    background: #f8f9fc;
    border-color: var(--td-border);
    border-right: none;
}
.auth-card .form-control {
    border-color: var(--td-border);
    border-left: none;
}
.auth-card .form-control:focus {
    border-color: var(--td-primary);
    box-shadow: 0 0 0 3px rgba(13,110,253,.12);
}
.auth-card .input-group:focus-within .input-group-text {
    border-color: var(--td-primary);
    color: var(--td-primary);
}


/* ══════════════════════════════════════════════════════════════
   4.  NAVBAR
   ══════════════════════════════════════════════════════════════ */
.navbar.bg-primary {
    background: linear-gradient(90deg, #0a58ca 0%, #0d6efd 100%) !important;
    box-shadow: 0 2px 16px rgba(13,110,253,.28);
    padding-top: 0;
    padding-bottom: 0;
    min-height: 56px;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    opacity: .97;
}

.navbar .nav-link {
    border-radius: var(--td-radius-sm);
    padding: 0.45rem 0.8rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: background-color var(--td-transition), opacity var(--td-transition);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.18);
}

.navbar .nav-link.active {
    font-weight: 600;
}

.navbar .dropdown-menu {
    border: none;
    border-radius: var(--td-radius);
    box-shadow: var(--td-shadow-lg);
    padding: 0.4rem;
    margin-top: 0.5rem;
    min-width: 200px;
    animation: tdFadeSlide 0.15s ease;
}

.navbar .dropdown-item {
    border-radius: var(--td-radius-sm);
    padding: 0.55rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color var(--td-transition);
}
.navbar .dropdown-item:hover { background-color: var(--td-primary-light); color: var(--td-primary); }
.navbar .dropdown-item.text-danger:hover { background-color: var(--td-danger-light); color: var(--td-danger); }

.navbar .dropdown-divider { margin: 0.3rem 0.5rem; border-color: var(--td-border-light); }
.navbar .dropdown-header { font-size: 0.72rem; padding: 0.55rem 0.85rem 0.2rem; color: var(--td-text-muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }

.avatar-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    border: 2px solid rgba(255,255,255,0.35);
    font-weight: 700;
    font-size: 0.78rem;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0;
}

@keyframes tdFadeSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ══════════════════════════════════════════════════════════════
   5.  CARDS
   ══════════════════════════════════════════════════════════════ */
.card {
    border: 1px solid var(--td-border);
    border-radius: var(--td-radius);
    box-shadow: var(--td-shadow-sm);
    background: var(--td-surface);
    transition: box-shadow var(--td-transition), transform var(--td-transition);
}

.card-header {
    background: var(--td-surface);
    border-bottom: 1px solid var(--td-border);
    border-radius: var(--td-radius) var(--td-radius) 0 0 !important;
    font-weight: 600;
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
}

.card-footer {
    background: #fafbfd;
    border-top: 1px solid var(--td-border);
    border-radius: 0 0 var(--td-radius) var(--td-radius) !important;
}


/* ══════════════════════════════════════════════════════════════
   6.  STAT CARDS  (dashboard)
   ══════════════════════════════════════════════════════════════ */
.stat-card {
    border: none !important;
    border-radius: var(--td-radius) !important;
    box-shadow: var(--td-shadow-md) !important;
    transition: transform var(--td-transition), box-shadow var(--td-transition);
    overflow: hidden;
    position: relative;
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, transparent 60%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--td-shadow-lg) !important;
}

.stat-icon {
    font-size: 2.4rem;
    opacity: 0.82;
    line-height: 1;
}

.stat-card h2 {
    font-weight: 800;
    letter-spacing: -0.03em;
}


/* ══════════════════════════════════════════════════════════════
   7.  TABLES
   ══════════════════════════════════════════════════════════════ */
.table {
    --bs-table-hover-bg: #f0f5ff;
    margin-bottom: 0;
}

.table th {
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--td-text-muted);
    font-weight: 700;
    background: #fafbfd;
    border-top: none;
    border-bottom: 2px solid var(--td-border) !important;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
    padding: 0.7rem 1rem;
    border-color: var(--td-border-light);
}

.table tbody tr {
    transition: background-color 0.12s ease;
}

.table-hover tbody tr:hover {
    background-color: #f0f5ff;
}

.table-hover tbody tr:hover td { color: inherit; }


/* ══════════════════════════════════════════════════════════════
   8.  BADGES  (status / priority)
   ══════════════════════════════════════════════════════════════ */
.badge {
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.35em 0.65em;
    border-radius: 0.4em;
}

/* Status-specific tweaks */
.badge.bg-success  { background-color: #1a9e61 !important; }
.badge.bg-warning  { background-color: #e6a817 !important; color: #1a1d23 !important; }
.badge.bg-danger   { background-color: #d9363e !important; }
.badge.bg-info     { background-color: #0891b2 !important; color: #fff !important; }
.badge.bg-secondary { background-color: #64748b !important; }


/* ══════════════════════════════════════════════════════════════
   9.  FORMS
   ══════════════════════════════════════════════════════════════ */
.form-control, .form-select {
    border-color: var(--td-border);
    border-radius: var(--td-radius-sm);
    font-size: 0.9rem;
    transition: border-color var(--td-transition), box-shadow var(--td-transition);
    background-color: #fdfdff;
}

.form-control:focus, .form-select:focus {
    border-color: var(--td-primary);
    box-shadow: 0 0 0 3px rgba(13,110,253,.12);
    background-color: var(--td-surface);
}

.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--td-text);
    margin-bottom: 0.35rem;
}

.form-text { font-size: 0.8rem; color: var(--td-text-muted); }

.input-group-text {
    border-color: var(--td-border);
    background: #f8f9fc;
    font-size: 0.9rem;
}

/* Textarea */
textarea.form-control { resize: vertical; min-height: 100px; }


/* ══════════════════════════════════════════════════════════════
   10.  BUTTONS
   ══════════════════════════════════════════════════════════════ */
.btn {
    font-weight: 600;
    border-radius: var(--td-radius-sm);
    transition: all var(--td-transition);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border-color: #0a58ca;
    box-shadow: 0 2px 8px rgba(13,110,253,.3);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #0a58ca 0%, #0947ad 100%);
    border-color: #0947ad;
    box-shadow: 0 4px 14px rgba(13,110,253,.4);
    transform: translateY(-1px);
}

.btn-outline-primary:hover {
    box-shadow: 0 2px 8px rgba(13,110,253,.2);
    transform: translateY(-1px);
}

.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.65rem 1.5rem; font-size: 1rem; }

/* Icon-only button */
.btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--td-radius-sm);
}


/* ══════════════════════════════════════════════════════════════
   11.  TICKET THREAD  (view page)
   ══════════════════════════════════════════════════════════════ */
.reply-bubble {
    border-radius: var(--td-radius);
    padding: 1rem 1.25rem;
    position: relative;
    transition: box-shadow var(--td-transition);
}

.reply-bubble:hover { box-shadow: var(--td-shadow-md); }

.reply-bubble.reply-staff {
    background: linear-gradient(135deg, #eef3fe 0%, #e8f0fe 100%);
    border-left: 4px solid var(--td-primary);
}

.reply-bubble.reply-user {
    background: #f8f9fb;
    border-left: 4px solid #cbd3e0;
}

.reply-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    flex-shrink: 0;
    box-shadow: var(--td-shadow-xs);
}

/* Thread timestamp */
.reply-meta {
    font-size: 0.78rem;
    color: var(--td-text-muted);
}

/* Attachment link inside reply */
.reply-bubble .attachment-link {
    font-size: 0.82rem;
    border-radius: var(--td-radius-sm);
    padding: 0.25rem 0.6rem;
    background: rgba(13,110,253,.07);
    border: 1px solid rgba(13,110,253,.15);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
}


/* ══════════════════════════════════════════════════════════════
   12.  TICKET VIEW  —  INFO SIDEBAR
   ══════════════════════════════════════════════════════════════ */
.info-label {
    font-size: 0.7rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--td-text-muted);
    font-weight: 700;
    display: block;
    margin-bottom: 0.1rem;
}

.info-value {
    font-size: 0.9rem;
    color: var(--td-text);
    font-weight: 500;
}

/* Sidebar sticky on large screens */
@media (min-width: 992px) {
    .ticket-sidebar { position: sticky; top: 72px; }
}

/* Priority / status strip micro-element */
.priority-strip {
    width: 4px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Elapsed time badge */
.elapsed-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    border-radius: 2rem;
    font-size: 0.78rem;
    font-weight: 600;
    background: #f0f5ff;
    color: var(--td-primary);
    border: 1px solid #c7d9ff;
}


/* ══════════════════════════════════════════════════════════════
   13.  SECTION TITLE  &  EMPTY STATE
   ══════════════════════════════════════════════════════════════ */
.section-title {
    font-size: 0.72rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--td-text-muted);
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--td-primary), transparent);
}

.empty-state {
    padding: 4rem 1.5rem;
    text-align: center;
    color: var(--td-text-light);
}

.empty-state i {
    font-size: 3.75rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.45;
}

.empty-state h5, .empty-state h6 {
    color: var(--td-text-muted);
    font-weight: 600;
}

.empty-state p { font-size: 0.875rem; }


/* ══════════════════════════════════════════════════════════════
   14.  PAGINATION
   ══════════════════════════════════════════════════════════════ */
.pagination { gap: 3px; }

.page-link {
    border-radius: var(--td-radius-sm) !important;
    margin: 0;
    border-color: var(--td-border);
    color: var(--td-primary);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
    transition: all var(--td-transition);
}

.page-link:hover {
    background-color: var(--td-primary-light);
    border-color: #c2d3ff;
    color: var(--td-primary);
    transform: translateY(-1px);
    box-shadow: var(--td-shadow-xs);
}

.page-item.active .page-link {
    background-color: var(--td-primary);
    border-color: var(--td-primary);
    box-shadow: 0 2px 8px rgba(13,110,253,.3);
}

.page-item.disabled .page-link { color: var(--td-text-light); background: #fafbfd; }


/* ══════════════════════════════════════════════════════════════
   15.  ALERTS
   ══════════════════════════════════════════════════════════════ */
.alert {
    border-radius: var(--td-radius);
    border-width: 1px;
    font-size: 0.875rem;
    border-left-width: 4px;
}

.alert-success { border-left-color: var(--td-success); }
.alert-danger  { border-left-color: var(--td-danger); }
.alert-warning { border-left-color: #e6a817; }
.alert-info    { border-left-color: #0891b2; }


/* ══════════════════════════════════════════════════════════════
   16.  BREADCRUMB
   ══════════════════════════════════════════════════════════════ */
.breadcrumb {
    font-size: 0.82rem;
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item a { color: var(--td-primary); font-weight: 500; }
.breadcrumb-item.active { color: var(--td-text-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--td-text-light); }


/* ══════════════════════════════════════════════════════════════
   17.  MODALS
   ══════════════════════════════════════════════════════════════ */
.modal-content {
    border: none;
    border-radius: var(--td-radius-lg);
    box-shadow: var(--td-shadow-xl);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--td-border);
    background: #fafbfd;
    padding: 1rem 1.5rem;
}

.modal-header .modal-title { font-weight: 700; font-size: 1rem; }

.modal-footer {
    border-top: 1px solid var(--td-border);
    background: #fafbfd;
    padding: 0.75rem 1.5rem;
}


/* ══════════════════════════════════════════════════════════════
   18.  FILTER BAR  (tickets/list)
   ══════════════════════════════════════════════════════════════ */
.filter-bar .form-control,
.filter-bar .form-select {
    border-radius: var(--td-radius-sm);
    font-size: 0.865rem;
    height: 38px;
}

.filter-bar .btn { height: 38px; }


/* ══════════════════════════════════════════════════════════════
   19.  FOOTER
   ══════════════════════════════════════════════════════════════ */
.footer {
    font-size: 0.82rem;
    color: var(--td-text-muted);
    background: #f8f9fb !important;
    border-top: 1px solid var(--td-border) !important;
}


/* ══════════════════════════════════════════════════════════════
   20.  MOBILE FAB  (New Ticket)
   ══════════════════════════════════════════════════════════════ */
.fab-new-ticket {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    box-shadow: 0 4px 22px rgba(13,110,253,.5) !important;
    transition: transform var(--td-transition), box-shadow var(--td-transition);
    text-decoration: none;
    color: #fff !important;
}

.fab-new-ticket:hover,
.fab-new-ticket:focus {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 32px rgba(13,110,253,.6) !important;
    color: #fff !important;
}


/* ══════════════════════════════════════════════════════════════
   21.  CATEGORY  &  AGENT SECTIONS  (admin/categories)
   ══════════════════════════════════════════════════════════════ */
.agent-type-section-heading {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
}

.agent-type-section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--td-border) 0%, transparent 100%);
}


/* ══════════════════════════════════════════════════════════════
   22.  CHART CARDS  (dashboard)
   ══════════════════════════════════════════════════════════════ */
.chart-card { min-height: 280px; }
.chart-card canvas { max-height: 280px; }


/* ══════════════════════════════════════════════════════════════
   23.  PRINT  (ticket view)
   ══════════════════════════════════════════════════════════════ */
@media print {
    .navbar, .footer, .fab-new-ticket, 
    .btn, form.reply-form, 
    .no-print { display: none !important; }

    body { background: #fff !important; font-size: 11pt; color: #000; }

    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    .reply-bubble.reply-staff { background: #f0f4ff !important; }
    .reply-bubble.reply-user  { background: #f8f8f8 !important; }

    a[href]::after { content: none; }
}


/* ══════════════════════════════════════════════════════════════
   24.  RESPONSIVE  —  Tablets  (768 – 991 px)
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {
    .stat-icon    { font-size: 2rem; }
    .stat-card h2 { font-size: 1.75rem; }

    main.container-fluid {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}


/* ══════════════════════════════════════════════════════════════
   25.  RESPONSIVE  —  Phones  (< 768 px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {

    /* Page layout */
    main.container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-top: 1rem !important;
    }

    /* Typography */
    h4.fw-bold { font-size: 1.15rem; }
    h5.fw-bold { font-size: 1.05rem; }

    /* Stat cards */
    .stat-icon            { font-size: 1.75rem; }
    .stat-card h2         { font-size: 1.5rem; }
    .stat-card .card-body { padding: 0.875rem !important; }
    .stat-card p.small    { font-size: 0.7rem !important; }

    /* Cards */
    .card          { border-radius: 0.625rem; }
    .card-body.p-4 { padding: 1.25rem !important; }

    /* Tables */
    .table-responsive { -webkit-overflow-scrolling: touch; }
    .table td, .table th { padding: 0.5rem 0.6rem; }

    /* Modals */
    .modal-dialog,
    .modal-dialog.modal-lg { margin: 0.5rem; max-width: calc(100% - 1rem); }

    /* Navbar */
    .navbar-nav .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .navbar .dropdown-menu { margin-top: 0; }

    /* Reply thread */
    .reply-bubble { padding: 0.75rem 1rem; }
    .reply-avatar { width: 34px; height: 34px; font-size: 0.75rem; }

    /* Pagination */
    .card-footer {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.625rem !important;
    }
    .page-link { padding: 0.38rem 0.7rem; min-height: 38px; }

    /* Public pages */
    .container.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .auth-card { border-radius: var(--td-radius-lg); }
    .alert     { font-size: 0.875rem; }

    .form-select-sm,
    .form-control-sm { font-size: 0.85rem; }
}


/* ══════════════════════════════════════════════════════════════
   26.  RESPONSIVE  —  Small phones  (< 576 px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 575.98px) {

    body { font-size: 0.875rem; }

    main.container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* Stat cards */
    .stat-card h2         { font-size: 1.3rem; }
    .stat-icon            { font-size: 1.45rem; }
    .stat-card .card-body { padding: 0.75rem !important; }
    .stat-card p.small    { font-size: 0.62rem !important; }

    /* Typography */
    h4.fw-bold { font-size: 1.05rem; }
    h2.fw-bold { font-size: 1.5rem; }

    /* Cards */
    .card-body.p-4 { padding: 1rem !important; }

    /* Tables */
    .table td, .table th { padding: 0.35rem 0.45rem; }
    .table .badge        { font-size: 0.7em; }

    /* Modals */
    .modal-dialog { margin: 0.25rem; max-width: calc(100% - 0.5rem); }

    /* Reply thread */
    .reply-avatar { width: 30px; height: 30px; font-size: 0.7rem; }

    /* Breadcrumbs */
    .breadcrumb { font-size: 0.8rem; }

    /* Empty states */
    .empty-state    { padding: 2.5rem 1rem; }
    .empty-state i  { font-size: 2.75rem; }
}
