/* STYLE SAMA SEPERTI LAMA - HANYA FIX CSS FLEXBOX DI TABLE RESPONSIVE */
.feedback-layout { display: flex; flex-direction: column; height: calc((100vh / var(--global-zoom)) - var(--topbar-tinggi) - var(--topbar-jarak-atas) - 2px); padding: 0 var(--padding-x) 2px var(--padding-x); overflow: hidden; }
.fade-in { animation: fadeIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes fadeIn { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } }

.kpi-inline { background-color: #ffffff; border: 1px solid #e2e8f0; border-radius: 50px; height: 38px; display: inline-flex; align-items: center; padding: 0 16px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); white-space: nowrap; transition: 0.2s; }
.kpi-inline:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.05); transform: translateY(-1px); }
.tmc-action-btn { height: 38px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: 0.2s; border: 1px solid #cbd5e1; background: #fff; color: #475569; padding: 0 18px; cursor: pointer; outline: none; }
.tmc-action-btn:hover { background: #f8fafc; border-color: var(--tirta-blue); color: var(--tirta-blue); }
.tmc-action-btn.icon-only { width: 38px; padding: 0; }
.filter-box { background-color: #ffffff; border: 1px solid #cbd5e1; display: flex; align-items: center; transition: 0.2s; padding: 0 16px; border-radius: 50px; height: 38px; box-shadow: 0 2px 4px rgba(0,0,0,0.01); }
.filter-box:focus-within { border-color: var(--tirta-blue); box-shadow: 0 0 0 3px rgba(48,82,138,0.1); }
.filter-box select, .filter-box input { border: none !important; outline: none !important; background: transparent !important; }
.filter-box select { cursor: pointer; padding-left: 8px; font-weight: 700; font-size: 0.75rem; color: #475569; width: 100%; height: 100%; }

.feedback-body-wrapper { flex-grow: 1; height: 0; display: flex; flex-direction: column; overflow: hidden; width: 100%; }
.chart-wrapper { position: relative; height: 180px; width: 100%; overflow: hidden; }
.feedback-main-card { background: #f8fafc; border-radius: 16px !important; border: 1px solid #e2e8f0; overflow: hidden !important; display: flex; flex-direction: column; width: 100%; flex-shrink: 1; }
/* 🔥 FIX FLEXBOX SCROLL 🔥 */
.table-responsive-wrapper { flex: 1; min-height: 0; overflow: auto !important; padding: 0 16px !important; position: relative; }
.t-table { width: 100%; border-collapse: separate !important; border-spacing: 0 10px !important; table-layout: fixed; min-width: 900px; }
.t-table th { position: sticky; top: 0; z-index: 10; background: #f8fafc !important; color: #94a3b8; font-size: 0.65rem; text-transform: uppercase; font-weight: 800; padding: 10px 14px; letter-spacing: 1px; border-bottom: 2px solid #e2e8f0 !important; }
.t-table tbody tr.data-row { background: #ffffff; transition: 0.15s ease; cursor: pointer; }
.t-table tbody tr.data-row:hover { background: #f8fafc; }
.t-table tbody tr.data-row.row-active { box-shadow: 0 4px 15px rgba(48, 82, 138, 0.15); transform: scale(1.005); z-index: 5; position: relative;}
.t-table tbody tr.data-row.row-active td:first-child { border-left-width: 6px; }
.t-table td { padding: 12px 14px; vertical-align: middle; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; }
.t-table td:first-child { border-left: 4px solid transparent; border-top-left-radius: 12px; border-bottom-left-radius: 12px; transition: border-width 0.2s; }
.t-table td:last-child { border-right: 1px solid #f1f5f9; border-top-right-radius: 12px; border-bottom-right-radius: 12px; }

.score-badge { color: white; padding: 4px 14px; border-radius: 50px; font-weight: 800; font-size: 0.85rem; display: inline-flex; align-items: center; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.score-item { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 80px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); transition: all 0.2s ease; flex-grow: 1; }
.score-item:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.06); border-color: #cbd5e1; }
.score-item.good { border-bottom: 3px solid #10b981; }
.score-item.good .score-val { color: #10b981; }
.score-item.bad { border-bottom: 3px solid var(--tirta-red); background: #fff5f5; }
.score-item.bad .score-val { color: var(--tirta-red); }

.tmc-spinner-inline { width: 3.5rem; height: 3.5rem; border-radius: 50%; border: 4px solid rgba(48, 82, 138, 0.1); border-top-color: var(--tirta-blue); border-right-color: var(--tirta-red); animation: tmc-spin-1 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite; margin: 0 auto; box-shadow: 0 0 15px rgba(48, 82, 138, 0.1); position: relative; }
.tmc-spinner-inline::after { content: ''; position: absolute; top: -4px; left: -4px; right: -4px; bottom: -4px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--tirta-gold); border-left-color: var(--tirta-gold); animation: tmc-spin-2 0.7s linear infinite reverse; }
@keyframes tmc-spin-1 { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes tmc-spin-2 { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.highlight-pos { background-color: rgba(16, 185, 129, 0.15); color: #047857; padding: 2px 6px; border-radius: 6px; font-weight: 800; border: 1px solid rgba(16, 185, 129, 0.3); }
.highlight-neg { background-color: rgba(236, 54, 58, 0.15); color: #b91c1c; padding: 2px 6px; border-radius: 6px; font-weight: 800; border: 1px solid rgba(236, 54, 58, 0.3); }

.btn-sort-active { background-color: #fff5f5 !important; border-color: var(--tirta-red) !important; color: var(--tirta-red) !important; box-shadow: inset 0 2px 4px rgba(236, 54, 58, 0.1) !important; }

.live-pulse-dot { width: 6px; height: 6px; background-color: #EC363A; border-radius: 50%; display: inline-block; animation: pulseLiveDot 2s infinite; }
@keyframes pulseLiveDot { 0% { box-shadow: 0 0 0 0 rgba(236, 54, 58, 0.5); } 70% { box-shadow: 0 0 0 4px rgba(236, 54, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(236, 54, 58, 0); } }

.micro-badge { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; padding: 2px 6px; border-radius: 4px; font-size: 0.6rem; font-weight: 600; display: inline-flex; align-items: center; white-space: nowrap; }
.score-pill { display: inline-flex; align-items: center; justify-content: center; padding: 4px 10px; border-radius: 50px; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.5px; min-width: 90px; }

.custom-multiselect { position: relative; width: 100%; height: 100%; cursor: pointer;}
.custom-multiselect .multiselect-header { background: #fff !important; border: 1px solid #cbd5e1 !important; height: 38px !important; border-radius: 50px !important; padding: 0 16px !important; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #475569; font-weight: 700; font-size: 0.8rem; transition: 0.2s;}
.custom-multiselect .multiselect-header:hover { border-color: var(--tirta-blue) !important; background-color: #f8fafc !important; }
.multiselect-dropdown { position: absolute; top: 120%; left: 0; background: #fff; border: 1px solid rgba(0,0,0,0.05); border-radius: 14px; box-shadow: 0 12px 35px rgba(0,0,0,0.1); z-index: 9999; display: none; max-height: 280px; overflow-y: auto; padding: 12px; min-width: 220px; }
.multiselect-dropdown.show { display: block; animation: dropFade 0.2s ease; }
.multiselect-dropdown label { display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-size: 0.85rem; cursor: pointer; border-radius: 8px; font-weight: 600; color:#1e293b; margin:0;}
.multiselect-dropdown label:hover { background: #f0f4f8; color: #30528A; }
@keyframes dropFade { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.view-toggle-group { background-color: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 50px; padding: 4px; display: flex; align-items: center; height: 38px; }
.view-toggle-btn { border: none; background: transparent; color: #64748b; border-radius: 50px; padding: 0 18px; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: pointer; outline: none; }
.view-toggle-btn:hover:not(.active) { color: var(--tirta-blue); }
.view-toggle-btn.active { background-color: #ffffff; color: var(--tirta-blue); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }