/* ===== 全局变量 ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --purple: #8b5cf6;
    --cyan: #06b6d4;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --sidebar-w: 240px;
    --radius: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

/* ===== Reset ===== */
* { margin:0; padding:0; box-sizing:border-box; }
html, body { height:100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
}
a { text-decoration:none; color: inherit; }
table { border-collapse: collapse; width: 100%; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ===== 登录页 ===== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #1e40af 100%);
}
.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}
.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
}
.login-header {
    text-align: center;
    margin-bottom: 32px;
}
.login-logo {
    margin-bottom: 12px;
}
.login-logo img {
    width: 120px;
    height: auto;
    max-height: 120px;
    object-fit: contain;
}
.login-header h1 {
    font-size: 24px;
    color: var(--gray-900);
    margin-bottom: 4px;
}
.login-system-title {
    color: var(--gray-900);
    font-size: 16px;
    font-weight: 700;
}
.login-page .form-group {
    margin-bottom: 20px;
}
.login-page .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 13px;
}
.login-page .form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    transition: border-color 0.2s;
}
.login-page .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-login:hover { background: var(--primary-dark); }
.login-hint {
    margin-top: 24px;
    text-align: center;
    color: var(--gray-400);
    font-size: 12px;
}
.login-hint p { margin-bottom: 2px; }
.login-footer {
    text-align: center;
    margin-top: 24px;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}

/* ===== 主布局 ===== */
.layout {
    display: flex;
    min-height: 100vh;
}

/* ===== 侧边栏 ===== */
.sidebar {
    width: var(--sidebar-w);
    background: var(--gray-900);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s;
}
.sidebar-header {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon { font-size: 28px; }
.logo-text {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}
.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    overflow-y: auto;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
    margin-bottom: 2px;
}
.nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.nav-item.active {
    background: var(--primary);
    color: #fff;
}
.nav-icon { font-size: 18px; width: 24px; text-align: center; }
.badge {
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: auto;
}
.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}
.user-name { font-size: 14px; font-weight: 600; }
.user-role { font-size: 12px; color: rgba(255,255,255,0.5); }
.btn-logout {
    width: 100%;
    padding: 6px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}
.btn-logout:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* ===== 主内容 ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s;
}
.topbar {
    height: 56px;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}
.btn-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray-600);
    display: none;
}
.page-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}
.topbar-right {
    margin-left: auto;
}
.date-display {
    font-size: 13px;
    color: var(--gray-500);
}
/* 顶栏刷新按钮（始终可见） */
.btn-refresh {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 12px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    color: var(--primary);
    background: #fff;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.btn-refresh:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}
.page-body {
    flex: 1;
    padding: 24px;
}

/* ===== 统计卡片 ===== */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}
.stat-card.stat-blue { border-left-color: var(--primary); }
.stat-card.stat-green { border-left-color: var(--success); }
.stat-card.stat-orange { border-left-color: var(--warning); }
.stat-card.stat-red { border-left-color: var(--danger); }
.stat-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border-radius: 10px;
}
.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
}
.stat-label {
    font-size: 13px;
    color: var(--gray-500);
}

/* ===== 图表卡片 ===== */
.chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.chart-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.chart-card.wide { grid-column: 1 / -1; }
.chart-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--gray-700);
}
.chart-card canvas { max-height: 260px; }

/* ===== 回款概览 ===== */
.payment-overview {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}
.pay-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pay-label { font-size: 13px; color: var(--gray-500); }
.pay-value { font-size: 22px; font-weight: 700; color: var(--gray-900); }

/* ===== 待办列表 ===== */
.todo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.todo-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.todo-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.todo-list { display: flex; flex-direction: column; gap: 8px; }
.todo-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--gray-50);
    border-radius: 6px;
}
.todo-name { font-weight: 600; flex: 1; }
.todo-date { font-size: 12px; color: var(--gray-500); }
.todo-staff { font-size: 12px; color: var(--primary); }

/* ===== 工具栏 ===== */
.page-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}
.toolbar-left { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar-right { display: flex; gap: 8px; }
.search-input {
    padding: 8px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    width: 280px;
    transition: border-color 0.2s;
}
.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.filter-select {
    padding: 8px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}
.btn-add, .btn-export, .btn-save, .btn-cancel, .btn-sm, .btn-confirm {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
}
.btn-add { background: var(--primary); color: #fff; }
.btn-add:hover { background: var(--primary-dark); }
.btn-export { background: var(--gray-100); color: var(--gray-700); }
.btn-export:hover { background: var(--gray-200); }
.btn-save { background: var(--primary); color: #fff; }
.btn-cancel { background: var(--gray-100); color: var(--gray-600); }
.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
    background: var(--primary-light);
    color: var(--primary);
}
.btn-sm:hover { background: var(--primary); color: #fff; }
.btn-confirm {
    padding: 4px 12px;
    font-size: 12px;
    background: var(--success);
    color: #fff;
    margin-left: 4px;
}
.btn-danger {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover { background: #dc2626; }
.btn-danger:disabled { background: #cbd5e1; color: #fff; cursor: not-allowed; opacity: 0.7; }

/* ===== 数据卡片/表格 ===== */
.data-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 20px;
}
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
}
.card-head h3 { font-size: 15px; font-weight: 600; }
.card-count {
    background: var(--danger);
    color: #fff;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 12px;
}
.full-table { width: 100%; }
.data-table th {
    background: var(--gray-50);
    padding: 10px 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 1px solid var(--gray-200);
}
.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 13px;
    white-space: nowrap;
}
.data-table tr:hover { background: var(--gray-50); }
.cell-name { font-weight: 600; color: var(--gray-900); }
.cell-content {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== 标签 ===== */
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
.tag-green { background: #d1fae5; color: #065f46; }
.tag-orange { background: #fef3c7; color: #92400e; }
.tag-red { background: #fee2e2; color: #991b1b; }
.tag-blue { background: #dbeafe; color: #1e40af; }
.tag-gray { background: var(--gray-100); color: var(--gray-600); }

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 16px;
}
.page-btn {
    padding: 6px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
}
.page-btn:hover { background: var(--gray-50); }
.page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.page-info { color: var(--gray-500); font-size: 13px; margin: 0 8px; }

/* ===== 弹窗 ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 200;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    overflow-y: auto;
}
.modal-overlay.show { display: flex; }
.modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 680px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-200);
}
.modal-header h3 { font-size: 17px; font-weight: 700; }
.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray-400);
    padding: 4px 8px;
}
.modal-close:hover { color: var(--gray-600); }
.modal-body { padding: 24px; }

/* ===== 表单 ===== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group { margin-bottom: 0; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 13px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group textarea { resize: vertical; }
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

/* ===== 客户详情 ===== */
.customer-detail { display: flex; flex-direction: column; gap: 24px; }
.detail-section h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-900);
}
.detail-head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.detail-head-row h4 { margin-bottom: 0; }
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.detail-grid > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.detail-label { font-size: 12px; color: var(--gray-500); }
.detail-val { font-size: 14px; font-weight: 600; }
.detail-remark {
    background: var(--gray-50);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--gray-600);
}
.pay-summary {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
    font-size: 14px;
}
.maint-list { display: flex; flex-direction: column; gap: 12px; }
.detail-item {
    background: var(--gray-50);
    padding: 12px;
    border-radius: 8px;
}
.detail-head {
    display: flex;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 13px;
}
.detail-date { font-weight: 700; color: var(--gray-700); }
.detail-type { color: var(--primary); }
.detail-staff { color: var(--gray-500); }
.detail-content { font-size: 13px; color: var(--gray-700); }
.detail-feedback { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.detail-next { font-size: 12px; color: var(--warning); margin-top: 4px; }

/* ===== 提醒标签页 ===== */
.reminder-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--gray-200);
}
.tab-btn {
    padding: 8px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.tab-btn:hover { color: var(--gray-700); }
.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ===== 通用 ===== */
.text-red { color: var(--danger); }
.text-green { color: var(--success); }
.text-orange { color: var(--warning); }
.loading-text { text-align: center; color: var(--gray-400); padding: 20px; }
.empty-text { text-align: center; color: var(--gray-400); padding: 20px; }

/* Toast */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    animation: slideIn 0.3s ease;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--primary); }
@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 响应式 */
@media (max-width: 1024px) {
    .chart-row { grid-template-columns: 1fr; }
    .todo-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .btn-toggle { display: block; }
    .search-input { width: 100%; }
    .form-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .page-body { padding: 12px; }
}

/* ===== 催收系统补充样式 ===== */
.red { color: var(--danger); font-weight: 600; }
.row-danger td { background: #fff0f0 !important; }
.row-danger:hover td { background: #ffe6e6 !important; }

.danger-panel { border-left: 4px solid var(--danger); }
.danger-panel .panel-header { background: #fff0f0; }

.checkbox-label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.checkbox-label input { width: auto; }

.btn-warn { background: var(--warning); color: #fff; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; transition: background 0.2s; }
.btn-warn:hover { background: #d97706; }

.table-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 20px; margin-top: 20px; }
.panel { background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--gray-100); background: var(--gray-50); }
.panel-header h3 { font-size: 15px; font-weight: 600; margin: 0; }
.panel-header .sub { font-size: 12px; color: var(--gray-500); font-weight: 400; margin-left: 6px; }
.panel-body { padding: 12px 16px; max-height: 320px; overflow: auto; }

.mini-table { width: 100%; }
.mini-table th, .mini-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--gray-100); font-size: 13px; }
.mini-table th { background: var(--gray-50); font-weight: 600; color: var(--gray-700); }
.mini-table tr:last-child td { border-bottom: none; }

.timeline { border-left: 2px solid var(--gray-200); margin-left: 8px; padding-left: 16px; }
.timeline-item { position: relative; margin-bottom: 14px; }
.timeline-item::before { content: ''; position: absolute; left: -21px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--primary-light); }
.timeline-item.reassign::before { background: var(--warning); box-shadow: 0 0 0 2px #fef3c7; }
.tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.tl-time { font-size: 12px; color: var(--gray-500); }
.tl-collector { font-weight: 600; }
.tl-content { color: var(--gray-700); line-height: 1.5; }
.tl-next { font-size: 12px; color: var(--warning); margin-top: 4px; }
.tl-title { margin: 16px 0 10px; font-size: 15px; font-weight: 600; color: var(--gray-800); }

.detail-head { background: var(--gray-50); border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.dh-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--gray-200); }
.dh-row:last-child { border-bottom: none; }
.dh-label { color: var(--gray-500); font-size: 13px; }
.dh-val { font-weight: 500; color: var(--gray-800); }
.detail-actions { display: flex; gap: 10px; margin-bottom: 12px; }

.text-muted { color: var(--gray-500); font-size: 12px; }
.col-content { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-name { color: var(--primary); cursor: pointer; font-weight: 500; }
.cust-name:hover { text-decoration: underline; }
.modal-footer { padding-top: 12px; text-align: right; }
.actions { white-space: nowrap; }
.actions .btn-sm { margin: 0 2px; }

/* 序号列 + 聚合催收记录 */
.col-idx { width: 48px; text-align: center; color: #8a94a6; font-weight: 600; }
.collectors .tag { margin: 2px 3px 2px 0; }
.group-row { cursor: pointer; }
.group-row:hover { background: #f3f6fb; }
.detail-row td { background: #fafbfd; padding: 0 !important; }
.detail-inner { padding: 10px 16px 14px 60px; }
.detail-title { font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.tl-actions { margin-top: 6px; }
.tl-actions .btn-sm { margin-right: 4px; }
