/* ========================================
   POSTLIX CHATBOT - DESIGN SYSTEM
   Modern SaaS Dashboard CSS
   Inspired by Linear / Vercel / Stripe
   ======================================== */


/* ----------------------------------------
   CSS Variables
   ---------------------------------------- */
:root {
    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

    /* Primary palette */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, .1);
    --primary-dark: #4338ca;
    --gradient: linear-gradient(135deg, #6366f1, #8b5cf6);

    /* Semantic colors */
    --success: #10b981;
    --success-hover: #059669;
    --success-light: rgba(16, 185, 129, .1);
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --danger-light: rgba(239, 68, 68, .1);
    --warning: #f59e0b;
    --warning-hover: #d97706;
    --warning-light: rgba(245, 158, 11, .1);
    --info: #3b82f6;
    --info-hover: #2563eb;
    --info-light: rgba(59, 130, 246, .1);

    /* Surfaces */
    --bg: #f8f9fb;
    --card: #ffffff;
    --border: #e5e7eb;
    --border-light: #f3f4f6;

    /* Text */
    --text: #1f2937;
    --secondary: #6b7280;
    --muted: #9ca3af;

    /* Radii */
    --radius: 8px;
    --radius-lg: 12px;
    --radius-pill: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow: 0 1px 3px rgba(0, 0, 0, .06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, .07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, .1);
    --shadow-focus: 0 0 0 3px rgba(99, 102, 241, .1);

    /* Layout */
    --sidebar-width: 260px;
    --topbar-height: 60px;

    /* Transitions */
    --transition-fast: .15s ease;
    --transition-base: .2s ease;
}


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

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.5;
}

body {
    font-family: var(--font);
    font-size: 14px;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

ul,
ol {
    list-style: none;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

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

table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

::selection {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}


/* ----------------------------------------
   Typography
   ---------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    letter-spacing: -0.01em;
}

h1 {
    font-size: 30px;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 24px;
    letter-spacing: -0.015em;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 16px;
}

h5 {
    font-size: 14px;
    font-weight: 600;
}

h6 {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

p {
    margin-bottom: 12px;
    color: var(--secondary);
    line-height: 1.6;
}

p:last-child {
    margin-bottom: 0;
}

small {
    font-size: 12px;
    color: var(--muted);
}

code {
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
    font-size: 13px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
}

pre {
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
    font-size: 13px;
    background: #1f2937;
    color: #e5e7eb;
    padding: 16px 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    line-height: 1.7;
    margin-bottom: 16px;
}

pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
}


/* ----------------------------------------
   Layout: App Shell
   ---------------------------------------- */
.app-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform var(--transition-base);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-logo img {
    max-height: 38px;
    max-width: 180px;
    object-fit: contain;
}

.sidebar-logo span {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    flex: 1;
    gap: 2px;
}

.sidebar-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 16px 20px 6px;
}

.sidebar-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: 0;
    margin: 0 8px;
    border-radius: 6px;
    text-decoration: none;
    position: relative;
}

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

.sidebar-link.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.sidebar-link .icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar-link.active .icon {
    opacity: 1;
}

.sidebar-link .badge {
    margin-left: auto;
    font-size: 10px;
    padding: 1px 7px;
}

.sidebar-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 8px 20px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.sidebar-user:hover {
    background: #f9fafb;
}

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

.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-email {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 50;
    flex-shrink: 0;
}

.topbar-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

.topbar-breadcrumb span {
    color: var(--text);
    font-weight: 500;
}

.topbar-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.mobile-menu-btn {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
    cursor: pointer;
    color: var(--text);
    transition: background var(--transition-fast);
}

.mobile-menu-btn:hover {
    background: #f9fafb;
}

/* Content area */
.content-area {
    padding: 24px;
    flex: 1;
}


/* ----------------------------------------
   Cards
   ---------------------------------------- */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-body {
    padding: 24px;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

.card-description {
    font-size: 13px;
    color: var(--secondary);
    margin-top: 2px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: #fafbfc;
}

.card + .card {
    margin-top: 16px;
}


/* ----------------------------------------
   Buttons
   ---------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    position: relative;
    font-family: inherit;
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
}

.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Button variants */
.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: #ffffff;
}

.btn-primary:active {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.btn-secondary:active {
    background: #f3f4f6;
}

.btn-danger {
    background: var(--danger);
    color: #ffffff;
}

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

.btn-success {
    background: var(--success);
    color: #ffffff;
}

.btn-success:hover {
    background: var(--success-hover);
    color: #ffffff;
}

.btn-warning {
    background: var(--warning);
    color: #ffffff;
}

.btn-warning:hover {
    background: var(--warning-hover);
    color: #ffffff;
}

.btn-ghost {
    background: transparent;
    color: var(--text);
}

.btn-ghost:hover {
    background: #f3f4f6;
}

.btn-ghost:active {
    background: #e5e7eb;
}

.btn-link {
    background: transparent;
    color: var(--primary);
    padding: 0;
}

.btn-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Button sizes */
.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 6px;
}

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

.btn-icon {
    padding: 8px;
    width: 36px;
    height: 36px;
}

.btn-icon.btn-sm {
    padding: 5px;
    width: 28px;
    height: 28px;
}

.btn-icon.btn-lg {
    padding: 10px;
    width: 44px;
    height: 44px;
}

/* Button group */
.btn-group {
    display: flex;
    flex-direction: row;
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
}

.btn-group .btn:last-child {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.btn-group .btn + .btn {
    margin-left: -1px;
}

/* Loading state */
.btn.loading {
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    color: #ffffff;
}


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

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.form-label .required {
    color: var(--danger);
    margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 14px;
    font-family: inherit;
    background: var(--card);
    color: var(--text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
    appearance: none;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: #d1d5db;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .1);
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--muted);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--danger);
}

.form-input.error:focus,
.form-select.error:focus,
.form-textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .1);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
    background: #f9fafb;
    color: var(--muted);
    cursor: not-allowed;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
}

.form-hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.form-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
}

/* Input group */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-input {
    flex: 1;
    border-radius: var(--radius) 0 0 var(--radius);
}

.input-group .btn {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.input-group .input-prefix,
.input-group .input-suffix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f9fafb;
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--secondary);
}

.input-group .input-prefix {
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
}

.input-group .input-suffix {
    border-left: none;
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Checkbox */
.form-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.form-checkbox input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    flex-shrink: 0;
    background: var(--card);
}

.form-checkbox input[type="checkbox"]:hover {
    border-color: var(--primary);
}

.form-checkbox input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.form-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 4px;
    height: 8px;
    border: 2px solid #ffffff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.form-checkbox input[type="checkbox"]:focus-visible {
    box-shadow: var(--shadow-focus);
}

/* Radio */
.form-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.form-radio input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    flex-shrink: 0;
    background: var(--card);
}

.form-radio input[type="radio"]:hover {
    border-color: var(--primary);
}

.form-radio input[type="radio"]:checked {
    border-color: var(--primary);
    border-width: 5px;
}

.form-radio input[type="radio"]:focus-visible {
    box-shadow: var(--shadow-focus);
}


/* ----------------------------------------
   Tables
   ---------------------------------------- */
.table-container {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    color: var(--secondary);
    background: #fafafa;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: #f9fafb;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.table-empty {
    text-align: center;
    padding: 40px 16px;
    color: var(--muted);
    font-size: 14px;
}

.table-sortable th {
    cursor: pointer;
    user-select: none;
}

.table-sortable th:hover {
    color: var(--text);
}

.table-striped tbody tr:nth-child(even) {
    background: #fafbfc;
}


/* ----------------------------------------
   Badges
   ---------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    gap: 4px;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary);
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.badge-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-info {
    background: var(--info-light);
    color: var(--info);
}

.badge-gray {
    background: #f3f4f6;
    color: var(--secondary);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.badge-dot.dot-success { background: var(--success); }
.badge-dot.dot-danger  { background: var(--danger);  }
.badge-dot.dot-warning { background: var(--warning); }
.badge-dot.dot-info    { background: var(--info);    }
.badge-dot.dot-primary { background: var(--primary); }


/* ----------------------------------------
   Toggle Switch
   ---------------------------------------- */
.toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 40px;
    height: 22px;
    cursor: pointer;
}

.toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #d1d5db;
    border-radius: 11px;
    transition: background var(--transition-fast);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform var(--transition-fast);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

.toggle input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(18px);
}

.toggle input:focus-visible + .toggle-slider {
    box-shadow: var(--shadow-focus);
}

.toggle input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}


/* ----------------------------------------
   Flash Messages / Alerts
   ---------------------------------------- */
.flash {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    animation: fadeIn .2s ease;
}

.flash-success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, .15);
}

.flash-error,
.flash-danger {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, .15);
}

.flash-warning {
    background: var(--warning-light);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, .15);
}

.flash-info {
    background: var(--info-light);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, .15);
}

.flash .icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.flash .flash-close {
    margin-left: auto;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
    background: none;
    border: none;
    color: inherit;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flash .flash-close:hover {
    opacity: 1;
}


/* ----------------------------------------
   Stats Grid
   ---------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition-fast);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card .stat-icon.icon-primary {
    background: var(--primary-light);
    color: var(--primary);
}

.stat-card .stat-icon.icon-success {
    background: var(--success-light);
    color: var(--success);
}

.stat-card .stat-icon.icon-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.stat-card .stat-icon.icon-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.stat-card .stat-icon.icon-info {
    background: var(--info-light);
    color: var(--info);
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-top: 12px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--secondary);
    margin-top: 4px;
}

.stat-card .stat-change {
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stat-card .stat-change.up {
    color: var(--success);
}

.stat-card .stat-change.down {
    color: var(--danger);
}


/* ----------------------------------------
   Modal
   ---------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
    animation: fadeIn .15s ease;
}

.modal-overlay.hidden {
    display: none;
}

.modal {
    background: var(--card);
    border-radius: var(--radius-lg);
    max-width: 520px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: slideUp .2s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: none;
    background: none;
    color: var(--muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: #f3f4f6;
    color: var(--text);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.modal-sm  { max-width: 400px; }
.modal-lg  { max-width: 680px; }
.modal-xl  { max-width: 900px; }


/* ----------------------------------------
   Dropdown
   ---------------------------------------- */
.dropdown {
    position: relative;
    display: inline-flex;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    z-index: 50;
    display: none;
    padding: 4px 0;
    animation: fadeIn .1s ease;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu.left {
    right: auto;
    left: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: background var(--transition-fast);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: #f9fafb;
}

.dropdown-item .icon {
    width: 16px;
    height: 16px;
    color: var(--muted);
    flex-shrink: 0;
}

.dropdown-item.danger {
    color: var(--danger);
}

.dropdown-item.danger .icon {
    color: var(--danger);
}

.dropdown-divider {
    border-top: 1px solid var(--border);
    margin: 4px 0;
}

.dropdown-header {
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


/* ----------------------------------------
   Tabs
   ---------------------------------------- */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    gap: 0;
}

.tab {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
    margin-bottom: -1px;
    white-space: nowrap;
    user-select: none;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.tab:hover {
    color: var(--text);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn .15s ease;
}


/* ----------------------------------------
   Empty State
   ---------------------------------------- */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--muted);
    opacity: 0.6;
}

.empty-state-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.empty-state-desc {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 20px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}


/* ----------------------------------------
   Pagination
   ---------------------------------------- */
.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    margin-top: 24px;
}

.pagination .page-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    background: var(--card);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
}

.pagination .page-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.pagination .page-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.pagination .page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination .page-ellipsis {
    padding: 6px 4px;
    font-size: 13px;
    color: var(--muted);
}


/* ----------------------------------------
   Avatar
   ---------------------------------------- */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    text-transform: uppercase;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--primary-light);
    color: var(--primary);
}

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

.avatar-sm {
    width: 24px;
    height: 24px;
    font-size: 10px;
}

.avatar-md {
    width: 36px;
    height: 36px;
    font-size: 13px;
}

.avatar-lg {
    width: 48px;
    height: 48px;
    font-size: 16px;
}

.avatar-xl {
    width: 64px;
    height: 64px;
    font-size: 20px;
}

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-group .avatar {
    margin-left: -8px;
    border: 2px solid var(--card);
}

.avatar-group .avatar:first-child {
    margin-left: 0;
}


/* ----------------------------------------
   Progress Bar
   ---------------------------------------- */
.progress {
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    transition: width .3s ease;
    min-width: 0;
}

.progress-bar.bar-success {
    background: var(--success);
}

.progress-bar.bar-danger {
    background: var(--danger);
}

.progress-bar.bar-warning {
    background: var(--warning);
}

.progress-sm { height: 4px; }
.progress-lg { height: 12px; }

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
}

.progress-label span:first-child {
    color: var(--text);
    font-weight: 500;
}

.progress-label span:last-child {
    color: var(--muted);
}


/* ----------------------------------------
   Tooltip
   ---------------------------------------- */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: #1f2937;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 99;
}

[data-tooltip]:hover::after {
    opacity: 1;
}


/* ----------------------------------------
   Skeleton Loading
   ---------------------------------------- */
.skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease infinite;
    border-radius: var(--radius);
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-text:last-child {
    width: 60%;
}

.skeleton-heading {
    height: 22px;
    width: 40%;
    margin-bottom: 16px;
    border-radius: 4px;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-button {
    width: 100px;
    height: 36px;
    border-radius: var(--radius);
}


/* ----------------------------------------
   Divider
   ---------------------------------------- */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}


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

/* Utilities: Flex */
.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-start {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.flex-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-wrap    { flex-wrap: wrap; }
.flex-nowrap  { flex-wrap: nowrap; }
.flex-1       { flex: 1; }
.flex-shrink-0{ flex-shrink: 0; }

.align-start  { align-items: flex-start; }
.align-center { align-items: center; }
.align-end    { align-items: flex-end; }

.justify-start   { justify-content: flex-start; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }
.justify-between { justify-content: space-between; }

/* Utilities: Gap */
.gap-1 { gap: 4px;  }
.gap-2 { gap: 8px;  }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 24px; }
.gap-6 { gap: 32px; }

/* Utilities: Text alignment */
.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* Utilities: Text colors */
.text-primary   { color: var(--primary); }
.text-success   { color: var(--success); }
.text-danger    { color: var(--danger); }
.text-warning   { color: var(--warning); }
.text-info      { color: var(--info); }
.text-muted     { color: var(--muted); }
.text-secondary { color: var(--secondary); }

/* Utilities: Font weight */
.font-normal    { font-weight: 400; }
.font-medium    { font-weight: 500; }
.font-semibold  { font-weight: 600; }
.font-bold      { font-weight: 700; }

/* Utilities: Font size */
.text-xs  { font-size: 11px; }
.text-sm  { font-size: 12px; }
.text-md  { font-size: 14px; }
.text-lg  { font-size: 16px; }
.text-xl  { font-size: 20px; }
.text-2xl { font-size: 24px; }

/* Utilities: Margin - top */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 24px; }
.mt-6 { margin-top: 32px; }

/* Utilities: Margin - bottom */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 24px; }
.mb-6 { margin-bottom: 32px; }

/* Utilities: Margin - left */
.ml-0 { margin-left: 0; }
.ml-1 { margin-left: 4px; }
.ml-2 { margin-left: 8px; }
.ml-3 { margin-left: 12px; }
.ml-4 { margin-left: 16px; }
.ml-5 { margin-left: 24px; }
.ml-6 { margin-left: 32px; }

/* Utilities: Margin - right */
.mr-0 { margin-right: 0; }
.mr-1 { margin-right: 4px; }
.mr-2 { margin-right: 8px; }
.mr-3 { margin-right: 12px; }
.mr-4 { margin-right: 16px; }
.mr-5 { margin-right: 24px; }
.mr-6 { margin-right: 32px; }

/* Utilities: Margin - horizontal */
.mx-0 { margin-left: 0; margin-right: 0; }
.mx-1 { margin-left: 4px; margin-right: 4px; }
.mx-2 { margin-left: 8px; margin-right: 8px; }
.mx-3 { margin-left: 12px; margin-right: 12px; }
.mx-4 { margin-left: 16px; margin-right: 16px; }
.mx-5 { margin-left: 24px; margin-right: 24px; }
.mx-6 { margin-left: 32px; margin-right: 32px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Utilities: Margin - vertical */
.my-0 { margin-top: 0; margin-bottom: 0; }
.my-1 { margin-top: 4px; margin-bottom: 4px; }
.my-2 { margin-top: 8px; margin-bottom: 8px; }
.my-3 { margin-top: 12px; margin-bottom: 12px; }
.my-4 { margin-top: 16px; margin-bottom: 16px; }
.my-5 { margin-top: 24px; margin-bottom: 24px; }
.my-6 { margin-top: 32px; margin-bottom: 32px; }

/* Utilities: Padding - all sides */
.p-0 { padding: 0; }
.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 24px; }
.p-6 { padding: 32px; }

/* Utilities: Padding - horizontal */
.px-0 { padding-left: 0; padding-right: 0; }
.px-1 { padding-left: 4px; padding-right: 4px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-5 { padding-left: 24px; padding-right: 24px; }
.px-6 { padding-left: 32px; padding-right: 32px; }

/* Utilities: Padding - vertical */
.py-0 { padding-top: 0; padding-bottom: 0; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-5 { padding-top: 24px; padding-bottom: 24px; }
.py-6 { padding-top: 32px; padding-bottom: 32px; }

/* Utilities: Sizing */
.w-full  { width: 100%; }
.h-full  { height: 100%; }
.w-auto  { width: auto; }
.max-w-sm  { max-width: 400px; }
.max-w-md  { max-width: 520px; }
.max-w-lg  { max-width: 680px; }
.max-w-xl  { max-width: 900px; }

/* Utilities: Overflow & text */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.whitespace-nowrap { white-space: nowrap; }
.break-words       { word-break: break-word; }

/* Utilities: Overflow */
.overflow-hidden  { overflow: hidden; }
.overflow-auto    { overflow: auto; }
.overflow-x-auto  { overflow-x: auto; }

/* Utilities: Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }
.sticky   { position: sticky; }

/* Utilities: Borders */
.border        { border: 1px solid var(--border); }
.border-top    { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }
.border-none   { border: none; }

/* Utilities: Border radius */
.rounded     { border-radius: var(--radius); }
.rounded-lg  { border-radius: var(--radius-lg); }
.rounded-full{ border-radius: var(--radius-full); }
.rounded-none{ border-radius: 0; }

/* Utilities: Shadows */
.shadow    { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-none { box-shadow: none; }

/* Utilities: Background */
.bg-white   { background: #ffffff; }
.bg-gray    { background: #f9fafb; }
.bg-primary { background: var(--primary-light); }
.bg-success { background: var(--success-light); }
.bg-danger  { background: var(--danger-light); }
.bg-warning { background: var(--warning-light); }

/* Utilities: Visibility */
.hidden       { display: none; }
.visible      { visibility: visible; }
.invisible    { visibility: hidden; }
.opacity-0    { opacity: 0; }
.opacity-50   { opacity: 0.5; }
.opacity-100  { opacity: 1; }

/* Utilities: Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }

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


/* ----------------------------------------
   Animations / Keyframes
   ---------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

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

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-4px); }
    75%      { transform: translateX(4px); }
}

.animate-fade-in  { animation: fadeIn .2s ease; }
.animate-slide-up { animation: slideUp .2s ease; }
.animate-spin     { animation: spin 0.6s linear infinite; }
.animate-pulse    { animation: pulse 2s ease infinite; }


/* ----------------------------------------
   Scrollbar
   ---------------------------------------- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}


/* ----------------------------------------
   Responsive: Tablet (max-width: 1024px)
   ---------------------------------------- */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 220px;
    }

    .content-area {
        padding: 20px;
    }

    .card-body {
        padding: 20px;
    }

    .card-header {
        padding: 16px 20px;
    }

    .stat-card .stat-value {
        font-size: 24px;
    }

    .modal {
        max-width: 480px;
    }
}


/* ----------------------------------------
   Responsive: Mobile (max-width: 768px)
   ---------------------------------------- */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 200;
        width: 260px;
        box-shadow: var(--shadow-lg);
    }

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

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .3);
        z-index: 199;
        display: none;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .topbar {
        padding: 0 16px;
    }

    .topbar-title {
        font-size: 16px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .content-area {
        padding: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .table-container {
        font-size: 13px;
    }

    .table th,
    .table td {
        padding: 10px 12px;
    }

    .modal {
        width: 95%;
        margin: 16px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

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

    .tab {
        padding: 10px 12px;
        font-size: 13px;
    }

    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }

    .pagination {
        flex-wrap: wrap;
    }

    .hide-mobile {
        display: none !important;
    }
}


/* ----------------------------------------
   Responsive: Small Phone (max-width: 480px)
   ---------------------------------------- */
@media (max-width: 480px) {
    .content-area {
        padding: 12px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .card-body {
        padding: 16px;
    }

    .card-footer {
        padding: 12px 16px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .btn-icon {
        width: 36px;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        border-radius: 0;
        width: 100%;
    }

    .btn-group .btn:first-child {
        border-radius: var(--radius) var(--radius) 0 0;
    }

    .btn-group .btn:last-child {
        border-radius: 0 0 var(--radius) var(--radius);
    }

    .flex-between {
        flex-wrap: wrap;
        gap: 12px;
    }

    .stat-card .stat-value {
        font-size: 22px;
    }

    .modal-header {
        padding: 16px;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-footer {
        padding: 12px 16px;
        flex-direction: column;
    }

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

    .topbar-actions .btn span {
        display: none;
    }

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

    .hide-phone {
        display: none !important;
    }
}


/* ----------------------------------------
   Print Styles
   ---------------------------------------- */
@media print {
    .sidebar,
    .topbar,
    .mobile-menu-btn,
    .sidebar-overlay,
    .modal-overlay,
    .dropdown-menu,
    .flash,
    .btn,
    .pagination,
    .topbar-actions {
        display: none !important;
    }

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

    .content-area {
        padding: 0 !important;
    }

    body {
        background: #ffffff;
        color: #000000;
        font-size: 12pt;
    }

    .card {
        border: 1px solid #cccccc;
        box-shadow: none;
        break-inside: avoid;
    }

    .table th {
        background: #f0f0f0 !important;
    }

    a {
        color: #000000;
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666666;
    }
}
