/* Dr. Coolant Dashboard Styles - extracted from dashboard.html */

/* ==================== 醫療藍品牌風格 ==================== */
:root {
    --primary: #0061ff;
    --primary-light: #3A7CA5;
    --primary-dark: #1E4A5F;
    --accent-teal: #16BDCA;
    --success-green: #22C55E;
    --warning-orange: #F59E0B;
    --danger-red: #EF4444;
    --bg: #f0f2f5;
    --white: #ffffff;
    --text-main: #1e293b;
    --text-sub: #64748b;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-800: #1F2937;
    --header-z: 1000;
    --menu-z: 2000;
    --modal-z: 3000;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --card-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
body { background: var(--bg); color: var(--text-main); min-height: 100vh; padding-top: 162px; padding-bottom: 40px; }

.fixed-header-group {
    position: fixed; top: 0; left: 0; width: 100%;
    background: var(--white); z-index: var(--header-z);
    box-shadow: var(--shadow-lg);
}
.top-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 20px; border-bottom: 1px solid #f1f5f9;
}
.brand {
    font-size: 22px; font-weight: 800; color: var(--primary);
    display: flex; align-items: center; gap: 12px;
}
.brand-logo {
    width: 48px; height: 48px; border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 97, 255, 0.2);
    object-fit: cover;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text .brand-main { font-size: 20px; font-weight: 800; }
.brand-text .brand-sub { font-size: 11px; font-weight: 600; color: var(--text-sub); letter-spacing: 1px; }
.menu-btn {
    font-size: 24px; color: var(--text-main); cursor: pointer;
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: flex-end;
    transition: transform 0.2s;
}
.menu-btn:active { transform: scale(0.9); }
.primary-tabs {
    display: flex; justify-content: space-around;
    padding: 0 10px; background: var(--white);
}
.p-tab {
    flex: 1; text-align: center; padding: 12px 0;
    font-size: 14px; font-weight: 600; color: var(--text-sub);
    border-bottom: 3px solid transparent; cursor: pointer; transition: 0.2s;
    position: relative;
}
.p-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    border-bottom-width: 4px;
    font-weight: 700;
}
.p-tab i { margin-right: 4px; font-size: 14px; }
.alert-badge {
    background: var(--danger-red); color: white; font-size: 10px; font-weight: 800;
    padding: 2px 6px; border-radius: 10px; margin-left: 4px;
    display: inline-block; animation: pulse-badge 1.5s infinite;
}
@keyframes pulse-badge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.filter-scroll {
    display: flex; gap: 10px; overflow-x: auto;
    padding: 12px 20px; background: #f8fafc; scrollbar-width: none;
}
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-pill {
    padding: 6px 16px; border-radius: 20px;
    background: var(--white); border: 1px solid #e2e8f0;
    color: var(--text-sub); font-size: 13px; font-weight: 600;
    white-space: nowrap; cursor: pointer; transition: 0.2s;
}
.filter-pill.active {
    background: var(--primary); color: var(--white); border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 97, 255, 0.3);
}
.container { padding: 16px; max-width: 1400px; margin: 0 auto; }
.stats-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.stat-card { padding: 12px 5px; border-radius: 14px; text-align: center; box-shadow: var(--shadow-sm); background: white; cursor: pointer; transition: all 0.2s; border: 2px solid transparent; }
.stat-card:hover { border-color: #0061ff; }
.stat-card.stat-active { border-color: #0061ff; background: #f0f7ff; }
.stat-label { font-size: 11px; font-weight: 700; margin-bottom: 4px; opacity: 0.8; color: var(--text-sub); }
.stat-number { font-size: 24px; font-weight: 900; line-height: 1; }
.sc-total { color: #3182CE; border-bottom: 3px solid #3182CE; }
.sc-critical { color: var(--danger-red); border-bottom: 3px solid var(--danger-red); }
.sc-good { color: var(--success-green); border-bottom: 3px solid var(--success-green); }
.sc-missing { color: #718096; border-bottom: 3px solid #718096; }
.machine-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.machine-grid > .machine-card { width: 100%; }
@media (min-width: 600px) { .machine-grid > .machine-card { width: calc(50% - 8px); } }
@media (min-width: 900px) { .machine-grid > .machine-card { width: calc(33.333% - 11px); } }
.machine-card {
    background: var(--white); border-radius: 16px; padding: 16px;
    box-shadow: var(--card-shadow); border: 1px solid #f1f5f9;
    position: relative; overflow: hidden; transition: all 0.3s; cursor: pointer;
    min-height: 180px; display: flex; flex-direction: column; justify-content: space-between;
}
.machine-card:active { transform: scale(0.98); }
.machine-card:hover { box-shadow: var(--card-hover); transform: translateY(-2px); }
.card-status-bar { display: none; }
.status-critical { border-left: 5px solid var(--danger-red) !important; }
.status-good { border-left: 5px solid var(--success-green) !important; }
.status-missing { border-left: 5px solid #cbd5e1 !important; }
.card-critical {
    animation: pulse-red 2s infinite; border-color: var(--danger-red) !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4), 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4), 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
    70% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0), 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0), 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
}
.m-header { display: flex; justify-content: space-between; margin-bottom: 12px; padding-left: 12px; }
.m-title h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; color: var(--text-main); }
.m-id { font-size: 11px; color: var(--text-sub); background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-family: monospace; }
.m-dept { font-size: 11px; font-weight: 700; color: var(--primary); background: rgba(0, 97, 255, 0.1); padding: 2px 8px; border-radius: 10px; height: fit-content; }
.m-body { display: flex; gap: 12px; padding-left: 12px; margin-bottom: 12px; }
.metric-box { flex: 1; background: #f8fafc; border-radius: 12px; padding: 8px; text-align: center; }
.m-label { font-size: 11px; color: var(--text-sub); margin-bottom: 2px; }
.m-value { font-size: 20px; font-weight: 800; color: var(--text-main); }
.val-red { color: var(--danger-red); } .val-blue { color: #3182CE; } .val-gray { color: #CBD5E0; } .icon-green { color: var(--success-green); }
.suggestion-box, .analysis-block {
    border-radius: 10px; padding: 10px 14px; margin: 8px 12px 0; font-size: 12px;
    line-height: 1.6; min-height: 72px; display: flex; flex-direction: column; justify-content: center;
}
.suggestion-box, .analysis-block.abnormal {
    background: #FEF9C3; border: 1px dashed #F59E0B; color: #854D0E;
}
.suggestion-header {
    color: #b45309; font-weight: 800; margin-bottom: 6px;
    display: flex; align-items: center; gap: 6px;
    border-bottom: 1px dashed #fcd34d; padding-bottom: 6px; font-size: 12px;
}
.suggestion-reason { color: #dc2626; margin-bottom: 6px; font-weight: 600; line-height: 1.5; }
.suggestion-action { color: var(--text-main); line-height: 1.6; }
.suggestion-action div { margin-bottom: 2px; }
.analysis-block.normal { background: #DCFCE7; border: 1px solid #BBF7D0; color: #166534; }
.analysis-block.no-data { background: #F1F5F9; border: 1px solid #E2E8F0; color: #94A3B8; }
.analysis-block .ab-title { font-weight: 700; margin-bottom: 2px; }
.analysis-block .ab-sub { font-size: 11px; opacity: 0.8; }
/* Alert Filter Bar */
.alert-filter-bar { display:flex; gap:6px; margin:8px 0 12px; }
.alert-filter-btn { padding:6px 14px; border-radius:20px; border:2px solid #e2e8f0; background:#fff; color:#64748b; font-size:12px; font-weight:700; cursor:pointer; transition:all .2s; }
.alert-filter-btn.active { border-color:#0061ff; background:#0061ff; color:#fff; }
.alert-filter-btn.active .cnt-red, .alert-filter-btn.active .cnt-green { color:#fff; }
.cnt-red { color:#EF4444; font-weight:800; }
.cnt-green { color:#22C55E; font-weight:800; }
/* Alert History List */
.alert-record {
    background: var(--white); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px;
    border: 1px solid var(--border); display: flex; align-items: center; gap: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.alert-record .ar-icon {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.ar-icon.ar-critical { background: #fee2e2; color: #dc2626; }
.ar-icon.ar-warning { background: #fef3c7; color: #d97706; }
.alert-record .ar-body { flex: 1; min-width: 0; }
.alert-record .ar-title { font-size: 13px; font-weight: 700; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert-record .ar-detail { font-size: 11px; color: var(--text-sub); margin-top: 2px; }
.alert-record .ar-time { font-size: 11px; color: var(--text-sub); flex-shrink: 0; text-align: right; }
.m-footer {
    padding-left: 12px; padding-top: 12px; border-top: 1px solid #f1f5f9;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: var(--text-sub);
}
.status-badge { padding: 4px 12px; border-radius: 15px; font-weight: 800; font-size: 11px; letter-spacing: 0.5px; }
.badge-critical { background: var(--danger-red); color: white; }
.badge-warning { background: #F59E0B; color: white; }
.badge-caution { background: #FBBF24; color: #78350F; }

/* 異常嚴重程度邊框 */
.machine-card.severity-danger { border: 2px solid #DC2626; background: #fef2f2; }
.machine-card.severity-warning { border: 2px solid #F59E0B; background: #fffbeb; }
.machine-card.severity-caution { border: 2px solid #FBBF24; background: #fefce8; }

/* 急救建議 pulse 動畫 */
.emergency-pulse { border: 2px solid #DC2626 !important; background: #fef2f2 !important; animation: emergencyPulse 2s ease-in-out infinite; }
@keyframes emergencyPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.3); } 50% { box-shadow: 0 0 0 6px rgba(220,38,38,0); } }
.badge-good { background: var(--success-green); color: white; }
.badge-missing { background: #E2E8F0; color: #718096; }
.admin-menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.admin-card {
    background: white; padding: 18px 12px; border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); text-align: center;
    cursor: pointer; transition: all 0.2s ease; border: 1px solid #f1f5f9;
}
.admin-card:active { transform: scale(0.96); background: #f8fafc; }
.admin-card:hover { box-shadow: 0 8px 16px rgba(0,0,0,0.12); border-color: var(--primary); }
.ac-icon {
    width: 44px; height: 44px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px; font-size: 20px; color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.ac-label { font-size: 13px; font-weight: 700; color: var(--text-main); line-height: 1.3; }
.bg-blue { background: linear-gradient(135deg, #0061ff, #60efff); }
.bg-teal { background: linear-gradient(135deg, #10b981, #34d399); }
.trend-badge{margin-top:8px;padding:6px 10px;background:#fefce8;border:1px solid #fde047;border-radius:8px}
.trend-line{font-size:12px;color:#854d0e;line-height:1.6}
.trend-detail{font-size:13px;color:var(--text-main)}
.trend-detail-empty{font-size:12px;color:#94a3b8;font-style:italic;padding:8px 0}
.trend-indicator{margin-bottom:12px;padding:8px 12px;background:#f8fafc;border-radius:8px}
.trend-indicator-label{font-size:13px;font-weight:700;color:var(--text-main);margin-bottom:4px}
.trend-indicator-row{font-size:12px;color:#64748b;line-height:1.8}
.trend-indicator-row.trend-warn{color:#b45309;font-weight:600}
.trend-indicator-row.trend-danger{color:#dc2626;font-weight:600}
.trend-indicator-row.trend-meta{color:#94a3b8;font-size:11px}
.trend-meta{font-size:11px;color:#94a3b8;margin-top:8px}
.export-section{margin:20px 0}
.export-card{background:#fff;border-radius:16px;padding:20px;box-shadow:var(--card-shadow);border:1px solid #e2e8f0}
.export-icon{width:48px;height:48px;border-radius:12px;background:linear-gradient(135deg,#0061ff,#3b82f6);color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;margin-bottom:12px}
.export-info h4{font-size:16px;font-weight:700;color:var(--text-main);margin-bottom:4px}
.export-info p{font-size:13px;color:var(--text-sub);line-height:1.5;margin-bottom:14px}
.export-btn{width:100%;padding:12px;border:none;border-radius:12px;background:linear-gradient(135deg,#0061ff,#3b82f6);color:#fff;font-size:15px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:.2s}
.export-btn:hover{opacity:.9;transform:translateY(-1px)}
.export-btn:disabled{opacity:.5;cursor:not-allowed;transform:none}
.export-btn .spinner-sm{width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top:2px solid #fff;border-radius:50%;animation:spin .8s linear infinite;display:inline-block}
@keyframes spin{to{transform:rotate(360deg)}}
.export-note{margin-top:12px;font-size:11px;color:#94a3b8;display:flex;align-items:flex-start;gap:6px}
.export-note i{margin-top:2px;flex-shrink:0}
.section-divider { display: flex; align-items: center; margin: 24px 0 16px 0; }
.section-divider-text { font-weight: 700; color: var(--text-sub); font-size: 14px; white-space: nowrap; margin-right: 12px; }
.section-divider-line { flex: 1; height: 1px; background: linear-gradient(to right, #e2e8f0, transparent); }
@media (max-width: 360px) {
    .admin-menu-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .admin-card { padding: 14px 8px; }
    .ac-icon { width: 38px; height: 38px; font-size: 18px; }
    .ac-label { font-size: 11px; }
}
.history-card .m-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #f1f5f9;
}
.m-trend { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 12px; display: flex; align-items: center; gap: 3px; }
.trend-up { background: #d1fae5; color: #059669; }
.trend-down { background: #fee2e2; color: #dc2626; }
.trend-stable { background: #e0e7ff; color: #4f46e5; }
.history-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.h-item { text-align: center; padding: 8px; background: #f8fafc; border-radius: 8px; }
.h-item span { display: block; font-size: 10px; color: var(--text-sub); margin-bottom: 4px; }
.h-item strong { font-size: 15px; font-weight: 800; color: var(--text-main); }
.mini-chart { margin-top: 12px; padding-top: 12px; border-top: 1px solid #f1f5f9; }
.chart-bar { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; position: relative; margin-bottom: 6px; }
.chart-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #60efff); border-radius: 3px; transition: width 0.3s ease; }
.chart-label { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.health-score { font-weight: 700; color: var(--primary); }
.last-check { color: var(--text-sub); }
.alert-count { color: var(--danger-red); font-weight: 800; }

/* ==================== History Tab Enhanced ==================== */
.history-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.hs-card { background: var(--white); border-radius: 12px; padding: 12px 8px; text-align: center; border: 1px solid var(--gray-200); position: relative; overflow: hidden; }
.hs-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.hs-health::before { background: linear-gradient(90deg, #22C55E, #86efac); }
.hs-alert::before { background: linear-gradient(90deg, #EF4444, #fca5a5); }
.hs-attention::before { background: linear-gradient(90deg, #F59E0B, #fcd34d); }
.hs-icon { font-size: 18px; margin-bottom: 4px; }
.hs-value { font-size: 22px; font-weight: 900; line-height: 1.2; }
.hs-label { font-size: 10px; color: var(--text-sub); font-weight: 600; margin-top: 2px; }

.history-toolbar { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; overflow-x: auto; padding-bottom: 4px; }
.sort-btn { padding: 6px 12px; border-radius: 10px; border: 1.5px solid var(--gray-200); background: var(--white); font-size: 11px; font-weight: 700; color: var(--text-sub); cursor: pointer; white-space: nowrap; transition: 0.2s; display: flex; align-items: center; gap: 4px; }
.sort-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.sort-btn i { font-size: 10px; }

.history-card .card-status-bar { display: none; }
.history-card .h-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.history-card .h-cell { text-align: center; padding: 8px 4px; background: #f8fafc; border-radius: 8px; }
.history-card .h-cell .hc-label { font-size: 9px; color: var(--text-sub); font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.history-card .h-cell .hc-value { font-size: 16px; font-weight: 800; margin-top: 2px; }
.history-card .h-cell .hc-sub { font-size: 9px; color: var(--text-sub); margin-top: 1px; }

.health-bar-wrap { padding: 0; margin-top: 10px; }
.health-bar-bg { height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.health-bar-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; }
.health-bar-labels { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font-size: 11px; }
.health-bar-labels .hb-score { font-weight: 800; }
.health-bar-labels .hb-info { color: var(--text-sub); font-size: 10px; }

.history-card .h-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f1f5f9; font-size: 11px; }
.h-footer-left { display: flex; align-items: center; gap: 6px; color: var(--text-sub); }
.h-footer-right { display: flex; align-items: center; gap: 4px; font-weight: 700; color: var(--primary); font-size: 11px; }

/* ==================== History Sub Tabs ==================== */
.history-sub-tabs { display: flex; gap: 6px; margin-bottom: 12px; background: #fff; border-radius: 10px; padding: 4px; border: 1px solid #e2e8f0; }
.history-sub-btn { flex: 1; padding: 8px; border: none; background: transparent; border-radius: 8px; font-size: 13px; font-weight: 700; color: #64748b; cursor: pointer; transition: 0.2s; }
.history-sub-btn.active { background: var(--primary); color: #fff; }

/* ==================== History Table Query Interface ==================== */
.history-filter-area { background: var(--white); border-radius: 14px; padding: 14px; margin-bottom: 12px; border: 1px solid var(--gray-200); }
.hf-row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; align-items: center; }
.hf-row:last-child { margin-bottom: 0; }
.hf-label { font-size: 12px; font-weight: 700; color: var(--text-sub); min-width: 50px; flex-shrink: 0; }
.hf-date-shortcuts { display: flex; gap: 6px; }
.hf-btn { padding: 5px 12px; border-radius: 8px; border: 1.5px solid var(--gray-200); background: var(--white); font-size: 11px; font-weight: 700; color: var(--text-sub); cursor: pointer; white-space: nowrap; transition: 0.2s; }
.hf-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.hf-select { padding: 5px 10px; border-radius: 8px; border: 1.5px solid var(--gray-200); font-size: 12px; font-weight: 600; color: var(--text-main); background: var(--white); min-width: 100px; }
.hf-date-input { padding: 5px 10px; border-radius: 8px; border: 1.5px solid var(--gray-200); font-size: 12px; color: var(--text-main); background: var(--white); }
.hf-actions { display: flex; gap: 8px; margin-left: auto; }
.hf-btn-export { padding: 5px 12px; border-radius: 8px; border: 1.5px solid #22C55E; background: #f0fdf4; font-size: 11px; font-weight: 700; color: #16a34a; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.hf-btn-export:hover { background: #dcfce7; }

.history-stats-bar { display: flex; gap: 12px; margin-bottom: 12px; padding: 10px 14px; background: var(--white); border-radius: 12px; border: 1px solid var(--gray-200); flex-wrap: wrap; }
.hs-stat { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.hs-stat-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.hs-stat-value { font-weight: 800; font-size: 14px; }
.hs-stat-label { color: var(--text-sub); font-size: 11px; }

.history-table-wrap { background: var(--white); border-radius: 14px; border: 1px solid var(--gray-200); overflow: hidden; }
.history-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.history-table thead { background: #f8fafc; position: sticky; top: 0; z-index: 1; }
.history-table th { padding: 10px 8px; font-weight: 700; color: var(--text-sub); text-align: left; border-bottom: 2px solid var(--gray-200); cursor: pointer; white-space: nowrap; user-select: none; font-size: 11px; }
.history-table th:hover { color: var(--primary); }
.history-table th .sort-arrow { font-size: 10px; margin-left: 2px; opacity: 0.4; }
.history-table th.sort-active .sort-arrow { opacity: 1; color: var(--primary); }
.history-table td { padding: 10px 8px; border-bottom: 1px solid #f1f5f9; color: var(--text-main); vertical-align: middle; }
.history-table tbody tr { transition: background 0.15s; cursor: pointer; }
.history-table tbody tr:hover { background: #f8fafc; }
.history-table tbody tr.row-expanded { background: #eff6ff; }
.ht-health-badge { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 10px; font-weight: 700; }
.ht-health-good { background: #d1fae5; color: #059669; }
.ht-health-warning { background: #fef3c7; color: #d97706; }
.ht-health-critical { background: #fee2e2; color: #dc2626; }
.ht-medicine-icon { font-size: 14px; }
.ht-expand-row td { padding: 0; border-bottom: 1px solid #e2e8f0; }
.ht-expand-content { padding: 14px; background: #f8fafc; }

/* Treatment summary pills */
.treatment-summary { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; }
.pill-med { background: #ede9fe; color: #6d28d9; }
.pill-oil { background: #fef3c7; color: #b45309; }
.pill-cost { background: #d1fae5; color: #065f46; }

/* Formatted diagnosis - grid layout */
.diag-header-bar { font-size: 11px; color: var(--text-sub); padding: 4px 0 8px; border-bottom: 1px solid #e2e8f0; margin-bottom: 10px; }
.diag-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 768px) { .diag-grid { grid-template-columns: 1fr; } }
.diag-full-width { grid-column: 1 / -1; }
.diag-card { background: #fff; border-radius: 10px; border: 1px solid #e2e8f0; overflow: hidden; }
.diag-card-title { background: #f1f5f9; padding: 6px 12px; font-weight: 700; font-size: 12px; color: #1e293b; border-bottom: 1px solid #e2e8f0; }
.diag-card-body { padding: 8px 12px; font-size: 12px; line-height: 1.6; color: #475569; }
.diag-card-treatment { border-color: #bbf7d0; }
.diag-card-treatment .diag-card-title { background: #dcfce7; color: #166534; }
.diag-card-ai { border-color: #bfdbfe; }
.diag-card-ai .diag-card-title { background: #dbeafe; color: #1e40af; }
.diag-ai-highlight { background: linear-gradient(135deg, #EDE9FE, #DBEAFE); border: 2px solid #8B5CF6; border-radius: 12px; padding: 0; box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15); }
.diag-ai-highlight .diag-card-title { background: linear-gradient(90deg, #7c3aed, #4338CA); color: #fff; font-weight: 800; font-size: 14px; border-radius: 10px 10px 0 0; padding: 10px 16px; letter-spacing: 0.5px; }
.diag-ai-highlight .diag-card-body { color: #3730A3; font-size: 13.5px; line-height: 1.9; padding: 14px 18px; font-weight: 500; }
.diag-card-followup { border-color: #e0e7ff; }
.diag-card-followup .diag-card-title { background: #eef2ff; color: #4338ca; }
.diag-no-report { text-align: center; padding: 20px; color: #94a3b8; font-size: 13px; }
.score-big { font-size: 28px; font-weight: 800; text-align: center; padding: 2px 0; }
.score-good { color: #22C55E; } .score-warn { color: #F59E0B; } .score-bad { color: #EF4444; }
.score-level { text-align: center; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.score-details { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; font-size: 11px; }
.score-item { display: flex; justify-content: space-between; padding: 2px 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 8px 12px; }
@media (max-width: 768px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-item { background: #f8fafc; border-radius: 8px; padding: 8px 10px; font-size: 11px; line-height: 1.6; color: #475569; }
.detail-item-title { font-weight: 700; color: #1e293b; margin-bottom: 4px; font-size: 12px; }

/* Action done cell */
.action-cell { font-size: 11px; line-height: 1.5; min-width: 140px; }
.action-done { font-weight: 700; color: #166534; }
.action-meta { color: #94a3b8; font-size: 10px; margin-top: 2px; }
.action-next { color: #2563EB; font-size: 10px; font-weight: 600; margin-top: 1px; }
.history-table-scroll { overflow-x: auto; max-height: 60vh; overflow-y: auto; }

.history-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 12px; }
.hp-btn { padding: 6px 14px; border-radius: 8px; border: 1.5px solid var(--gray-200); background: var(--white); font-size: 12px; font-weight: 700; color: var(--text-sub); cursor: pointer; transition: 0.2s; }
.hp-btn:hover { border-color: var(--primary); color: var(--primary); }
.hp-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.hp-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.hp-info { font-size: 12px; color: var(--text-sub); font-weight: 600; }

/* ==================== Monitor Sparkline ==================== */
.sparkline-wrap { margin-top: 8px; padding: 6px 12px 4px; }
.sparkline-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.sparkline-label { font-size: 9px; font-weight: 700; color: var(--text-sub); min-width: 30px; }
.sparkline-canvas { display: block; }
.admin-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 15px; padding-top: 10px; border-top: 1px solid #f1f5f9; }
.btn-icon {
    width: 36px; height: 36px; background: white; border: 1px solid #e2e8f0;
    border-radius: 10px; cursor: pointer; display: flex; justify-content: center;
    align-items: center; font-size: 16px; color: var(--text-sub); transition: 0.2s;
}
.btn-icon:hover { background: #f7fafc; border-color: var(--primary); color: var(--primary); }
.drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); z-index: var(--menu-z);
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.drawer {
    position: fixed; top: 0; right: -320px; width: 320px; height: 100%;
    background: var(--white); z-index: calc(var(--menu-z) + 100);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column; box-shadow: -4px 0 20px rgba(0,0,0,0.2);
}
.drawer.open { right: 0; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer-header { padding: 30px 20px; background: linear-gradient(135deg, var(--primary), #60efff); color: white; }
.user-block { text-align: center; }
.user-avatar {
    width: 60px; height: 60px; border-radius: 50%; background: white;
    margin: 0 auto 12px; display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--primary);
}
.user-block h4 { font-size: 18px; margin-bottom: 4px; }
.user-block p { font-size: 13px; opacity: 0.9; }
.drawer-menu { padding: 10px 0; flex: 1; overflow-y: auto; }
.menu-item {
    display: flex; align-items: center; padding: 16px 24px;
    color: var(--text-main); text-decoration: none; font-weight: 600;
    transition: 0.2s; border-left: 4px solid transparent;
    cursor: pointer; position: relative; z-index: 1;
}
.menu-item:hover { background: #f8fafc; border-left-color: var(--primary); }
.menu-item:active { background: #e2e8f0; }
.menu-item i { width: 30px; color: var(--primary); font-size: 18px; }
.menu-group-title {
    padding: 16px 24px 8px; font-size: 11px; color: var(--text-sub);
    font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.menu-footer {
    padding: 16px 24px; border-top: 1px solid #e2e8f0;
    text-align: center; font-size: 11px; color: var(--text-sub); background: #f8fafc;
}
.version-info { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 4px; font-weight: 600; color: var(--primary); }
.copyright { opacity: 0.6; }
.loading-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.95); display: flex; flex-direction: column;
    justify-content: center; align-items: center; z-index: 3000;
}
.spinner {
    border: 4px solid #f3f3f3; border-top: 4px solid var(--primary);
    border-radius: 50%; width: 40px; height: 40px;
    animation: spin 1s linear infinite; margin-bottom: 15px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-sub); }
.empty-icon { font-size: 48px; color: #cbd5e1; margin-bottom: 16px; }
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); justify-content: center; align-items: center;
    z-index: var(--modal-z); backdrop-filter: blur(4px); animation: fadeIn 0.3s ease;
}
.modal-content {
    background: white; padding: 25px; border-radius: 20px; width: 90%;
    max-width: 420px; max-height: 90vh; overflow-y: auto; position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25); animation: slideUp 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #CBD5E0; transition: 0.2s; z-index: 10; }
.close-btn:hover { color: var(--text-main); }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 13px; color: var(--text-main); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px; border: 2px solid #edf2f7; border-radius: 10px;
    font-size: 15px; background: #fcfcfc; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); outline: none; background: white; }
.day-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.day-btn { width: 42px; height: 42px; border: 2px solid #e2e8f0; border-radius: 10px; background: #fff; color: #64748b; font-weight: 700; font-size: 14px; cursor: pointer; transition: all 0.2s; }
.day-btn.active { background: #0061ff; color: #fff; border-color: #0061ff; }
/* Machine Detail Modal */
.detail-section { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #f1f5f9; }
.detail-section:last-of-type { border-bottom: none; margin-bottom: 8px; }
.detail-section-title { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.detail-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 14px; }
.detail-label { color: #64748b; font-weight: 500; }
.detail-value { color: #1e293b; font-weight: 600; text-align: right; max-width: 60%; word-break: break-all; }
.detail-days { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; }
.detail-day { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #eff6ff; color: #2563eb; font-size: 12px; font-weight: 700; }
.detail-day.inactive { background: #f8fafc; color: #cbd5e1; }
.detail-actions { display: flex; gap: 10px; margin-top: 16px; }
.detail-actions button { flex: 1; padding: 12px; border: none; border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.detail-btn-history { background: #eff6ff; color: #2563eb; }
.detail-btn-history:hover { background: #dbeafe; }
.detail-btn-edit { background: linear-gradient(135deg, #0ea5e9, #6366f1); color: #fff; }
.detail-btn-edit:hover { opacity: 0.9; }
.btn-save, .btn-submit {
    background: var(--primary); color: white; width: 100%; padding: 14px;
    border: none; border-radius: 12px; font-weight: bold; cursor: pointer;
    margin-top: 10px; font-size: 16px; box-shadow: var(--shadow-md); transition: all 0.2s;
}
.btn-save:hover, .btn-submit:hover { background: #0052cc; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 97, 255, 0.4); }
.btn-save:active, .btn-submit:active { transform: translateY(0); }
.profile-header { text-align: center; margin-bottom: 25px; }
.profile-progress { margin-bottom: 20px; display: flex; justify-content: center; }
.progress-circle { position: relative; width: 80px; height: 80px; }
.progress-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 18px; font-weight: bold; color: var(--primary); }
.profile-subtitle { font-size: 14px; color: var(--text-sub); margin-top: 8px; }
.form-step { display: none; animation: fadeIn 0.3s ease; }
.form-step.active { display: block; }
.form-nav { display: flex; justify-content: space-between; margin-top: 25px; gap: 10px; }
.btn-prev { background: #e2e8f0; color: var(--text-main); border: none; padding: 10px 20px; border-radius: 10px; font-weight: bold; cursor: pointer; flex: 1; }
.btn-next { background: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: 10px; font-weight: bold; cursor: pointer; box-shadow: var(--shadow-md); flex: 1; }
.welcome-modal { text-align: center; }
.welcome-icon { font-size: 60px; margin-bottom: 15px; animation: bounce 1s ease; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.welcome-title { color: var(--primary); margin-bottom: 10px; font-size: 24px; }
.welcome-subtitle { font-size: 16px; color: var(--text-main); margin-bottom: 15px; }
.welcome-note { background: #F0FFF4; color: #2F855A; padding: 12px; border-radius: 8px; font-size: 13px; margin-top: 20px; border-left: 4px solid var(--success-green); }
.profile-banner {
    background: #EDF2F7; padding: 12px 20px; margin-bottom: 20px;
    border-radius: 12px; display: none; justify-content: space-between;
    align-items: center; border-left: 5px solid #F6AD55;
}
.banner-text { font-size: 14px; font-weight: 600; color: #2D3748; }
.btn-upgrade {
    background: #F6AD55; color: white; border: none; padding: 6px 16px;
    border-radius: 20px; font-weight: bold; cursor: pointer; font-size: 13px;
    box-shadow: var(--shadow-sm); transition: all 0.2s;
}
.btn-upgrade:hover { background: #ed8936; transform: translateY(-1px); }
#qrcode { margin: 20px auto; display: flex; justify-content: center; }
.print-btn { background: #48bb78; color: white; border: none; padding: 12px 24px; border-radius: 12px; font-weight: bold; cursor: pointer; width: 100%; font-size: 16px; margin-top: 10px; }
.view-section { display: none; animation: fadeIn 0.4s ease-out; }
.view-section.active { display: block; }
.dept-lathe { background: linear-gradient(135deg, #EBF8FF 0%, #E3F2FD 100%); border-left: 5px solid #90CDF4 !important; }
.dept-milling { background: linear-gradient(135deg, #FFF5F7 0%, #FFE3E3 100%); border-left: 5px solid #F687B3 !important; }
.menu-item-hidden { display: none !important; }

/* v2.2.1: 權限鎖定樣式 */
.admin-card.locked {
    opacity: 0.45;
    pointer-events: none;
    position: relative;
    filter: grayscale(40%);
}
.admin-card.locked::after {
    content: '🔒';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 14px;
    opacity: 0.8;
}
.admin-card.locked .ac-label {
    color: var(--text-sub);
}
.menu-item.locked {
    opacity: 0.45;
    pointer-events: none;
    position: relative;
}
.menu-item.locked::after {
    content: '🔒';
    position: absolute;
    right: 20px;
    font-size: 12px;
}

/* ==================== AI Chat Panel ==================== */
.ai-fab{position:fixed;bottom:24px;right:24px;width:56px;height:56px;border-radius:50%;background:linear-gradient(135deg,#0044b3,#0061ff);color:#fff;border:none;box-shadow:0 4px 16px rgba(0,97,255,.4);cursor:pointer;z-index:8000;display:flex;align-items:center;justify-content:center;font-size:26px;transition:transform .2s,box-shadow .2s}
.ai-fab:hover{transform:scale(1.08);box-shadow:0 6px 24px rgba(0,97,255,.5)}
.ai-fab:active{transform:scale(.95)}
.ai-fab .badge{position:absolute;top:-2px;right:-2px;width:14px;height:14px;background:#EF4444;border-radius:50%;border:2px solid #fff;display:none}
.ai-chat-panel{position:fixed;bottom:90px;right:16px;width:360px;max-width:calc(100vw - 32px);height:520px;max-height:calc(100vh - 120px);background:#fff;border-radius:20px;box-shadow:0 8px 40px rgba(0,0,0,.18);z-index:8001;display:none;flex-direction:column;overflow:hidden;border:1px solid #e2e8f0}
.ai-chat-panel.open{display:flex}
@media(max-width:480px){.ai-chat-panel.from-detail{bottom:0;right:0;width:100%;max-width:100%;height:100vh;max-height:100vh;border-radius:0;z-index:8002}}
.ai-chat-header{background:linear-gradient(135deg,#0044b3,#0061ff);color:#fff;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}
.ai-chat-header h3{font-size:15px;font-weight:800;display:flex;align-items:center;gap:8px;margin:0}
.ai-chat-close{background:rgba(255,255,255,.2);border:none;color:#fff;width:30px;height:30px;border-radius:50%;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center}
.ai-chat-close:hover{background:rgba(255,255,255,.3)}
.ai-chat-body{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;background:#f8fafc}
.ai-msg{max-width:85%;padding:10px 14px;border-radius:16px;font-size:15px;line-height:1.6;word-break:break-word}
.ai-msg.bot br{margin:0;line-height:1.2}
.ai-msg.user{align-self:flex-end;background:var(--primary);color:#fff;border-bottom-right-radius:4px;white-space:pre-wrap}
.ai-msg.bot{align-self:flex-start;background:#f1f5f9;color:#0f172a;border:1px solid #e2e8f0;border-bottom-left-radius:4px;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.ai-msg.bot strong{color:#0D9488;font-weight:700}
.ai-msg.bot .typing{display:inline-flex;gap:4px;padding:4px 0}
.ai-msg.bot .typing span{width:6px;height:6px;background:#94a3b8;border-radius:50%;animation:aiDot .8s infinite}
.ai-msg.bot .typing span:nth-child(2){animation-delay:.15s}
.ai-msg.bot .typing span:nth-child(3){animation-delay:.3s}
@keyframes aiDot{0%,80%,100%{opacity:.3;transform:scale(.8)}40%{opacity:1;transform:scale(1.1)}}
.ai-chat-footer{padding:12px;border-top:1px solid #e2e8f0;display:flex;gap:8px;background:#fff;flex-shrink:0}
.ai-chat-footer input{flex:1;padding:10px 14px;border:2px solid #e2e8f0;border-radius:24px;font-size:15px;background:#f8fafc;outline:none;transition:border-color .2s}
.ai-chat-footer input:focus{border-color:var(--primary);background:#fff}
.ai-chat-footer button{width:40px;height:40px;border-radius:50%;background:var(--primary);color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0;transition:opacity .2s}
.ai-chat-footer button:disabled{opacity:.4;cursor:not-allowed}
.ai-chat-welcome{text-align:center;padding:20px 16px;color:var(--text-sub);font-size:15px;line-height:1.8}
.ai-chat-welcome h4{font-size:15px;color:var(--text-main);margin-bottom:8px}
.ai-quick-btns{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:12px}
.ai-quick-btn{padding:6px 14px;border-radius:20px;border:1px solid #e2e8f0;background:#fff;color:var(--text-main);font-size:13px;cursor:pointer;transition:.2s;font-weight:600}
.ai-quick-btn:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-light)}
.ai-tools-bar{display:flex;align-items:center;justify-content:space-between;padding:6px 14px;border-bottom:1px solid #e2e8f0;background:#f8fafc;flex-shrink:0;gap:8px}
.ai-new-chat-btn{background:none;border:1px solid #e2e8f0;border-radius:16px;padding:4px 12px;font-size:12px;color:#64748b;cursor:pointer;white-space:nowrap;transition:.2s}
.ai-new-chat-btn:hover{border-color:var(--primary);color:var(--primary);background:rgba(0,97,255,.05)}
.ai-new-chat-btn i{margin-right:4px;font-size:10px}
.ai-proactive-bar{display:flex;align-items:center;gap:8px;margin-left:auto}
.ai-proactive-label{font-size:13px;color:#64748b;display:flex;align-items:center;gap:6px}
.ai-proactive-info{width:18px;height:18px;border-radius:50%;border:1px solid #cbd5e1;background:#fff;color:#94a3b8;font-size:11px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0;font-weight:700;line-height:1}
.ai-proactive-info:hover{border-color:var(--primary);color:var(--primary)}
.ai-toggle-switch{position:relative;display:inline-block;width:40px;height:22px;flex-shrink:0}
.ai-toggle-switch input{opacity:0;width:0;height:0}
.ai-toggle-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background:#cbd5e1;border-radius:22px;transition:.3s}
.ai-toggle-slider:before{content:'';position:absolute;height:16px;width:16px;left:3px;bottom:3px;background:#fff;border-radius:50%;transition:.3s}
.ai-toggle-switch input:checked+.ai-toggle-slider{background:var(--primary)}
.ai-toggle-switch input:checked+.ai-toggle-slider:before{transform:translateX(18px)}

/* ==================== 空白狀態 ==================== */
.no-data {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    font-size: 10px;
    color: #94a3b8;
    font-style: italic;
}
.sensor-disabled {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #94a3b8;
    font-style: italic;
}


.hf-btn-anomaly { background: #fff; color: #ef4444; border: 1px solid #fca5a5; }
.hf-btn-anomaly.active { background: #ef4444; color: #fff; border-color: #ef4444; }

/* ==================== Extracted inline styles ==================== */
.loading-text { color: #666; font-size: 13px; font-weight: 600; }
.alerts-summary-title { font-size: 13px; font-weight: 700; color: #991b1b; margin-bottom: 4px; }
.alerts-summary-text { font-size: 12px; color: #b91c1c; }
.hf-separator { font-size: 11px; color: var(--text-sub); }
.hf-label-ml { margin-left: 8px; }
.form-title { text-align: center; margin-top: 0; }
.input-bold { font-weight: bold; }
.form-hint { color: #94a3b8; margin-top: 4px; display: block; }
.input-readonly { background: #f1f5f9; }
.stat-loading { opacity: 0.3; }
.drawer-company { font-size: 11px; margin-top: 4px; opacity: 0.8; }
.text-center { text-align: center; }
.modal-sm-left { text-align: left; max-width: 420px; }
.modal-md { max-width: 440px; }
.modal-heading { text-align: center; margin-bottom: 16px; }
.text-primary { color: var(--primary); }
.text-warning { color: var(--warning-orange); }
.text-line-green { color: #06C755; }
