﻿/* ============================================================
   OPScore Tedarikçi Değerlendirme Modülü
   assets/css/style.css
   ============================================================ */



*, *::before, *::after { box-sizing: border-box; margin: 0; pAdding: 0; }

:root {
    --red: #e8372c;
    --red-h: #c0281f;
    --red-light: #fef2f2;
    --red-border: #fecaca;
    --blue: #2563eb;
    --blue-light: #eff6ff;
    --green: #16a34a;
    --green-light: #f0fdf4;
    --green-border: #bbf7d0;
    --orange: #ea580c;
    --orange-light: #fff7ed;
    --yellow: #ca8a04;
    --yellow-light: #fefce8;
    --purple: #7c3aed;
    --purple-light: #f5f3ff;
    --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;
    --sw: 220px;
    --hh: 56px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --r: 8px;
    --rl: 12px;
    --rs: 6px;
}

html, body { height: 100%; }
body { font-family: var(--font); background: var(--gray-50); color: var(--gray-800); font-size: 13.5px; line-height: 1.5; display: flex; overflow-x: hidden; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-rAdius: 99px; }

/* ── SIDEBAR ── */
.sidebar { width: var(--sw); background: #fff; border-right: 1px solid var(--gray-200); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 200; overflow-y: auto; }
.sidebar-logo { height: var(--hh); display: flex; align-items: center; padding: 10px 16px; margin-bottom:10px; margin-top: 20px; gap: 9px; text-decoration: none; flex-shrink: 0; }
.logo-mark { width: 30px; height: 30px; background: var(--red); border-rAdius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-mark svg { width: 15px; height: 15px; }
.logo-wordmark strong { display: block; font-size: 14px; font-weight: 700; color: var(--gray-900); letter-spacing: -.3px; line-height: 1.15; }
.logo-wordmark small { display: block; font-size: 9px; color: var(--gray-400); font-weight: 400; letter-spacing: .5px; text-transform: uppercase; line-height: 1; }
.sidebar-nav { flex: 1; pAdding: 8px 0 16px; }
.nav-section { font-size: 10px; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: .8px; pAdding: 14px 16px 5px; }
.nav-item { display: flex; align-items: center; gap: 9px; pAdding: 7.5px 16px; cursor: pointer; color: var(--gray-600); font-weight: 500; font-size: 13px; transition: background .12s, color .12s; position: relative; text-decoration: none; border: none; background: none; width: 100%; text-align: left; }
.nav-item:hover { background: var(--gray-50); color: var(--gray-900); }
.nav-item.active { background: var(--red-light); color: var(--red); font-weight: 600; }
.nav-item.active::before { content: ''; position: absolute; left: 0; top: 5px; bottom: 5px; width: 3px; background: var(--red); border-rAdius: 0 3px 3px 0; }
.nav-icon { width: 15px; height: 15px; flex-shrink: 0; opacity: .7; }
.nav-item.active .nav-icon { opacity: 1; }
.nav-bAdge { margin-left: auto; background: var(--red); color: #fff; font-size: 10px; font-weight: 600; pAdding: 1px 6px; border-rAdius: 99px; line-height: 1.5; }
.sidebar-footer { pAdding: 12px 16px; border-top: 1px solid var(--gray-200); display: flex; align-items: center; gap: 9px; }
.s-avatar { width: 28px; height: 28px; background: var(--red-light); border-rAdius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--red); flex-shrink: 0; }
.s-uname strong { display: block; font-size: 12px; font-weight: 600; color: var(--gray-800); line-height: 1.2; }
.s-uname span { display: block; font-size: 10px; color: var(--gray-400); }

/* ── MAIN LAYOUT ── */
.main-wrapper { margin-left: var(--sw); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { height: var(--hh); background: #fff; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; pAdding: 0 24px; gap: 12px; position: sticky; top: 0; z-index: 100; }
.tb-search { flex: 1; max-width: 320px; position: relative; }
.tb-search input { width: 100%; height: 34px; border: 1px solid var(--gray-200); border-rAdius: var(--r); pAdding: 0 12px 0 32px; font-size: 13px; font-family: var(--font); color: var(--gray-800); background: var(--gray-50); outline: none; transition: border-color .15s; }
.tb-search input::placeholder { color: var(--gray-400); }
.tb-search input:focus { border-color: var(--gray-300); background: #fff; }
.tb-search-ic { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; width: 14px; height: 14px; }
.tb-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; position: relative; }

/* ── USER DROPDOWN ── */
.tb-user { display: flex; align-items: center; gap: 8px; pAdding: 4px 10px 4px 4px; border: 1px solid var(--gray-200); border-rAdius: var(--r); cursor: pointer; font-size: 12.5px; font-weight: 500; color: var(--gray-700); transition: background .12s; position: relative; user-select: none; }
.tb-user:hover { background: var(--gray-50); }
.tb-avatar { width: 26px; height: 26px; background: var(--red-light); border-rAdius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; color: var(--red); }
.user-dropdown { position: absolute; top: calc(100% + 8px); right: 0; width: 260px; background: #fff; border: 1px solid var(--gray-200); border-rAdius: var(--rl); box-shAdow: 0 8px 24px rgba(0,0,0,.12); z-index: 300; display: none; }
.user-dropdown.open { display: block; }
.ud-header { pAdding: 14px 16px; border-bottom: 1px solid var(--gray-100); }
.ud-name { font-size: 13.5px; font-weight: 700; color: var(--gray-900); }
.ud-role { font-size: 11.5px; color: var(--gray-400); margin-top: 1px; }
.ud-info { pAdding: 12px 16px; border-bottom: 1px solid var(--gray-100); }
.ud-info-row { display: flex; align-items: center; gap: 8px; pAdding: 4px 0; font-size: 12.5px; color: var(--gray-600); }
.ud-info-row svg { width: 13px; height: 13px; color: var(--gray-400); flex-shrink: 0; }
.ud-action { display: flex; align-items: center; gap: 8px; pAdding: 8px 16px; font-size: 13px; color: var(--gray-600); cursor: pointer; transition: background .1s; }
.ud-action:hover { background: var(--gray-50); color: var(--gray-900); }
.ud-action.danger { color: var(--red); }
.ud-action svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── PAGE ── */
.page-content { flex: 1; pAdding: 24px; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.page-title { font-size: 17px; font-weight: 700; color: var(--gray-900); letter-spacing: -.3px; }
.page-subtitle { font-size: 12.5px; color: var(--gray-500); margin-top: 2px; }
.page-hdr-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 6px; pAdding: 0 14px; height: 34px; border-rAdius: var(--r); font-size: 13px; font-weight: 600; font-family: var(--font); cursor: pointer; border: 1px solid transparent; transition: all .12s; white-space: nowrap; text-decoration: none; }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-h); border-color: var(--red-h); }
.btn-secondary { background: #fff; color: var(--gray-700); border-color: var(--gray-200); }
.btn-secondary:hover { background: var(--gray-50); border-color: var(--gray-300); color: var(--gray-900); }
.btn-success { background: var(--green); color: #fff; border-color: var(--green); }
.btn-success:hover { background: #15803d; }
.btn-warning { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-sm { height: 28px; pAdding: 0 10px; font-size: 12px; gap: 5px; }
.btn svg, .btn-sm svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── CARDS ── */
.card { background: #fff; border: 1px solid var(--gray-200); border-rAdius: var(--rl); box-shAdow: 0 1px 2px rgba(0,0,0,.05); }
.card-header { pAdding: 15px 20px 13px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-title { font-size: 13.5px; font-weight: 600; color: var(--gray-900); }
.card-subtitle { font-size: 11.5px; color: var(--gray-400); margin-top: 1px; }
.card-body { pAdding: 20px; }

/* ── STAT CARDS ── */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid var(--gray-200); border-rAdius: var(--rl); pAdding: 15px 16px; display: flex; align-items: flex-start; gap: 12px; box-shAdow: 0 1px 2px rgba(0,0,0,.05); transition: box-shAdow .15s; }
.stat-card:hover { box-shAdow: 0 2px 8px rgba(0,0,0,.09); }
.stat-icon { width: 36px; height: 36px; border-rAdius: var(--r); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon svg { width: 17px; height: 17px; }
.stat-icon.red { background: var(--red-light); color: var(--red); }
.stat-icon.blue { background: var(--blue-light); color: var(--blue); }
.stat-icon.green { background: var(--green-light); color: var(--green); }
.stat-icon.orange { background: var(--orange-light); color: var(--orange); }
.stat-icon.purple { background: var(--purple-light); color: var(--purple); }
.stat-icon.yellow { background: var(--yellow-light); color: var(--yellow); }
.stat-label { font-size: 11.5px; color: var(--gray-500); font-weight: 500; margin-bottom: 3px; }
.stat-value { font-size: 22px; font-weight: 700; color: var(--gray-900); letter-spacing: -.5px; line-height: 1; }
.stat-trend { font-size: 11px; color: var(--gray-400); margin-top: 4px; }
.stat-trend.up { color: var(--green); }
.stat-trend.down { color: var(--red); }

/* ── TABLE ── */
.table-wrapper { overflow-x: auto; border-rAdius: var(--rl); border: 1px solid var(--gray-200); background: #fff; box-shAdow: 0 1px 2px rgba(0,0,0,.05); }
table.dt { width: 100%; border-collapse: collapse; font-size: 13px; }
table.dt theAd th { pAdding: 10px 14px; text-align: left; font-size: 11.5px; font-weight: 600; color: var(--gray-500); border-bottom: 1px solid var(--gray-200); background: var(--gray-50); white-space: nowrap; letter-spacing: .2px; }
table.dt tbody td { pAdding: 10px 14px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); vertical-align: middle; }
table.dt tbody tr:last-child td { border-bottom: none; }
table.dt tbody tr { transition: background .1s; }
table.dt tbody tr:hover { background: var(--gray-50); }
.col-no { color: var(--gray-400); font-size: 12px; font-weight: 500; }
.col-bold { font-weight: 600; color: var(--gray-900); }
.tbl-actions { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.tbl-btn { border: 1px solid var(--gray-200); border-rAdius: var(--rs); background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--gray-500); transition: all .12s; padding: 5px 10px;}
.tbl-btn:hover { background: var(--gray-50); color: var(--gray-700); border-color: var(--gray-300); }
.tbl-btn.red:hover { background: var(--red-light); color: var(--red); border-color: var(--red-border); }
.tbl-btn.blue:hover { background: var(--blue-light); color: var(--blue); }
.tbl-btn svg { width: 12px; height: 12px; }

/* ── BAdGE ── */
.bAdge { display: inline-flex; align-items: center; gap: 4px; pAdding: 2px 8px; border-rAdius: 99px; font-size: 11.5px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.bdot { width: 5px; height: 5px; border-rAdius: 50%; flex-shrink: 0; }
.b-green { background: var(--green-light); color: var(--green); } .b-green .bdot { background: var(--green); }
.b-red { background: var(--red-light); color: var(--red); } .b-red .bdot { background: var(--red); }
.b-orange { background: var(--orange-light); color: var(--orange); } .b-orange .bdot { background: var(--orange); }
.b-yellow { background: var(--yellow-light); color: var(--yellow); } .b-yellow .bdot { background: var(--yellow); }
.b-blue { background: var(--blue-light); color: var(--blue); } .b-blue .bdot { background: var(--blue); }
.b-gray { background: var(--gray-100); color: var(--gray-600); } .b-gray .bdot { background: var(--gray-400); }
.b-purple { background: var(--purple-light); color: var(--purple); } .b-purple .bdot { background: var(--purple); }

/* ── FORM ── */
.fg { display: flex; flex-direction: column; gap: 5px; }
.fg-grid { display: grid; gap: 14px; }
.fg-2 { grid-template-columns: 1fr 1fr; }
.fg-3 { grid-template-columns: 1fr 1fr 1fr; }
.fl { font-size: 12.5px; font-weight: 600; color: var(--gray-700); }
.fl .req { color: var(--red); margin-left: 2px; }
.fc { height: 36px; border: 1px solid var(--gray-200); border-rAdius: var(--r); pAdding: 0 12px; font-size: 13px; font-family: var(--font); color: var(--gray-800); background: #fff; outline: none; transition: border-color .15s, box-shAdow .15s; width: 100%; }
.fc:focus { border-color: var(--red); box-shAdow: 0 0 0 3px rgba(232,55,44,.08); }
.fc::placeholder { color: var(--gray-400); }
textarea.fc { height: auto; pAdding: 10px 12px; resize: vertical; min-height: 80px; }
.fhint { font-size: 11.5px; color: var(--gray-400); }

/* ── MODAL ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(17,24,39,.45); z-index: 500; display: flex; align-items: center; justify-content: center; pAdding: 20px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
    background: #fff;
    border-rAdius: var(--rl);
    box-shAdow: 0 4px 16px rgba(0,0,0,.12);
    width: 100%;
    max-width: 540px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    transform: translateY(12px) scale(.98);
    transition: transform .2s;
    overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-lg { max-width: 720px; }
.modal-xl { max-width: 920px; }
.modal-header { pAdding: 18px 20px 16px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.modal-title { font-size: 15px; font-weight: 700; color: var(--gray-900); }
.modal-close { width: 28px; height: 28px; border: none; background: none; cursor: pointer; color: var(--gray-400); display: flex; align-items: center; justify-content: center; border-rAdius: var(--rs); transition: all .12s; }
.modal-close:hover { background: var(--gray-100); color: var(--gray-700); }
.modal-close svg { width: 16px; height: 16px; }
.modal-body { pAdding: 20px; overflow-y: auto; flex: 1; }
.modal-footer { pAdding: 14px 20px; border-top: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-shrink: 0; }

/* ── TABS ── */
.tab-bar { display: flex; border-bottom: 1px solid var(--gray-200); gap: 0; margin-bottom: 20px; }
.tab-item { pAdding: 9px 16px; font-size: 13px; font-weight: 500; color: var(--gray-500); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .12s; display: flex; align-items: center; gap: 6px; }
.tab-item:hover { color: var(--gray-800); }
.tab-item.active { color: var(--red); border-bottom-color: var(--red); font-weight: 600; }

/* ── FILTERS ── */
.filters-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.fsel { height: 32px; border: 1px solid var(--gray-200); border-rAdius: var(--r); pAdding: 0 10px; font-size: 12.5px; font-family: var(--font); color: var(--gray-700); background: #fff; outline: none; cursor: pointer; }
.fsearch-wrap { position: relative; }
.fsearch-wrap svg { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; width: 13px; height: 13px; }
.fsearch { height: 32px; border: 1px solid var(--gray-200); border-rAdius: var(--r); pAdding: 0 10px 0 28px; font-size: 12.5px; font-family: var(--font); color: var(--gray-700); background: #fff; outline: none; min-width: 210px; }

/* ── PROGRESS ── */
.prog { height: 6px; background: var(--gray-100); border-rAdius: 99px; overflow: hidden; }
.prog-fill { height: 100%; border-rAdius: 99px; transition: width .3s; }
.pf-green { background: var(--green); }
.pf-orange { background: var(--orange); }
.pf-red { background: var(--red); }
.pf-blue { background: var(--blue); }

/* ── MISC HELPERS ── */
.divider { height: 1px; background: var(--gray-100); margin: 16px 0; }
.section-label { font-size: 10.5px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .7px; margin-bottom: 10px; pAdding-bottom: 8px; border-bottom: 1px solid var(--gray-100); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.flex-c { display: flex; align-items: center; }
.flex-b { display: flex; align-items: center; justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-10 { margin-bottom: 10px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.text-sm { font-size: 12px; } .text-xs { font-size: 11px; }
.text-muted { color: var(--gray-400); }
.fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.text-red { color: var(--red); } .text-green { color: var(--green); } .text-orange { color: var(--orange); }
.dept-tag { display: inline-flex; align-items: center; gap: 4px; pAdding: 2px 8px; background: var(--gray-100); border-rAdius: var(--rs); font-size: 11.5px; color: var(--gray-600); font-weight: 500; margin: 2px; }

/* ── DETAIL PANEL ── */
.detail-row { display: flex; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.detail-key { flex: 0 0 160px; color: var(--gray-500); font-weight: 500; }
.detail-val { flex: 1; color: var(--gray-800); font-weight: 500; }
.q-item { background: var(--gray-50); border: 1px solid var(--gray-200); border-rAdius: var(--r); pAdding: 12px 14px; margin-bottom: 8px; }
.q-num { width: 20px; height: 20px; background: var(--red-light); color: var(--red); border-rAdius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.q-text { font-size: 13px; font-weight: 600; color: var(--gray-800); }
.q-answer { font-size: 13px; color: var(--gray-600); margin-top: 4px; margin-left: 28px; }
.proje-info-card { background: #fff; border: 1px solid var(--gray-200); border-rAdius: var(--rl); pAdding: 20px 24px; margin-bottom: 20px; }
.soru-listesi-preview { background: var(--gray-50); border: 1px solid var(--gray-200); border-rAdius: var(--r); max-height: 200px; overflow-y: auto; margin-top: 8px; }
.soru-prev-item { display: flex; align-items: flex-start; gap: 8px; pAdding: 8px 12px; border-bottom: 1px solid var(--gray-200); font-size: 12.5px; }
.soru-prev-item:last-child { border-bottom: none; }
.soru-prev-num { width: 18px; height: 18px; background: var(--red-light); color: var(--red); border-rAdius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.soru-prev-text { color: var(--gray-700); }

/* ── YANITLA SAYFASI (tedarikçi formu) ── */
body.yanitla-body { display: block; }
.top-header { background: #fff; border-bottom: 1px solid var(--gray-200); pAdding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 56px; position: sticky; top: 0; z-index: 100; box-shAdow: 0 1px 3px rgba(0,0,0,.06); }
.th-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.th-logo-mark { width: 28px; height: 28px; background: var(--red); border-rAdius: 6px; display: flex; align-items: center; justify-content: center; }
.th-logo-mark svg { width: 13px; height: 13px; }
.th-logo-text strong { display: block; font-size: 13.5px; font-weight: 700; color: var(--gray-900); letter-spacing: -.2px; line-height: 1.1; }
.th-logo-text small { display: block; font-size: 9px; color: var(--gray-400); text-transform: uppercase; letter-spacing: .5px; }
.th-meta { display: flex; align-items: center; gap: 12px; }
.th-firma { font-size: 12.5px; color: var(--gray-600); font-weight: 500; }
.th-firma strong { color: var(--gray-900); }
.th-bAdge { display: inline-flex; align-items: center; gap: 4px; pAdding: 3px 10px; background: var(--orange-light); color: var(--orange); border-rAdius: 99px; font-size: 11.5px; font-weight: 600; }
.th-bAdge.completed { background: var(--green-light); color: var(--green); }
.form-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 56px); }
.form-sidebar { background: #fff; border-right: 1px solid var(--gray-200); pAdding: 20px 0; position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; }
.fs-section { pAdding: 12px 16px 6px; font-size: 10px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .7px; }
.fs-info { pAdding: 10px 16px; border-bottom: 1px solid var(--gray-100); }
.fs-info-row { display: flex; justify-content: space-between; align-items: center; pAdding: 4px 0; font-size: 12.5px; }
.fs-info-key { color: var(--gray-500); }
.fs-info-val { font-weight: 600; color: var(--gray-800); }
.fs-progress { pAdding: 12px 16px; border-bottom: 1px solid var(--gray-100); }
.fs-prog-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--gray-600); margin-bottom: 6px; }
.fs-prog-sub { display: flex; gap: 10px; margin-top: 8px; }
.fs-sub-item { font-size: 11px; color: var(--gray-500); }
.fs-sub-item span { font-weight: 600; color: var(--gray-700); }
.form-main { pAdding: 28px 32px; max-width: 860px; }
.form-top-info { background: #fff; border: 1px solid var(--gray-200); border-rAdius: var(--rl); pAdding: 18px 22px; margin-bottom: 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.fti-left h2 { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.fti-left p { font-size: 13px; color: var(--gray-500); }
.fti-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; pAdding: 3px 9px; background: var(--gray-100); border-rAdius: 99px; font-size: 11.5px; color: var(--gray-600); font-weight: 500; }
.fti-right { flex-shrink: 0; text-align: right; }
.fti-deAdline { font-size: 11.5px; color: var(--gray-400); margin-bottom: 4px; }
.q-section-title { font-size: 13px; font-weight: 700; color: var(--gray-900); margin-bottom: 16px; pAdding-bottom: 10px; border-bottom: 2px solid var(--red); display: flex; align-items: center; gap: 8px; }
.q-section-bAdge { pAdding: 2px 8px; background: var(--red-light); color: var(--red); border-rAdius: 99px; font-size: 11px; font-weight: 600; }
.q-card { background: #fff; border: 1px solid var(--gray-200); border-rAdius: var(--rl); pAdding: 18px 20px; margin-bottom: 12px; transition: border-color .15s, box-shAdow .15s; }
.q-card:hover { border-color: var(--gray-300); box-shAdow: 0 2px 8px rgba(0,0,0,.06); }
.q-card.answered { border-left: 3px solid var(--green); }
.q-card.required-empty { border-left: 3px solid var(--red); }
.q-card-header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.q-card-num { width: 24px; height: 24px; background: var(--gray-100); border-rAdius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--gray-600); flex-shrink: 0; margin-top: 1px; }
.q-card.answered .q-card-num { background: var(--green-light); color: var(--green); }
.q-card.required-empty .q-card-num { background: var(--red-light); color: var(--red); }
.q-card-meta { flex: 1; }
.q-card-text { font-size: 14px; font-weight: 600; color: var(--gray-900); margin-bottom: 4px; }
.q-card-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.q-tag { display: inline-flex; align-items: center; pAdding: 1.5px 7px; border-rAdius: 99px; font-size: 10.5px; font-weight: 600; }
.q-tag.kat { background: var(--blue-light); color: var(--blue); }
.q-tag.req { background: var(--red-light); color: var(--red); }
.q-tag.opt { background: var(--gray-100); color: var(--gray-500); }
.q-tag.kanit { background: var(--orange-light); color: var(--orange); }
.q-card-hint { font-size: 12.5px; color: var(--gray-500); background: var(--gray-50); border-rAdius: var(--r); pAdding: 8px 12px; margin-bottom: 12px; border-left: 3px solid var(--gray-200); }
.q-card-status { margin-left: auto; flex-shrink: 0; }
.ans-input { width: 100%; height: 40px; border: 1.5px solid var(--gray-200); border-rAdius: var(--r); pAdding: 0 14px; font-size: 13.5px; font-family: var(--font); color: var(--gray-800); background: #fff; outline: none; transition: border-color .15s, box-shAdow .15s; }
.ans-input:focus { border-color: var(--red); box-shAdow: 0 0 0 3px rgba(232,55,44,.08); }
.ans-input::placeholder { color: var(--gray-400); }
textarea.ans-input { height: auto; pAdding: 12px 14px; resize: vertical; min-height: 96px; }
.yesno-group { display: flex; gap: 10px; }
.yesno-btn { flex: 1; height: 42px; border: 1.5px solid var(--gray-200); border-rAdius: var(--r); background: #fff; font-size: 13.5px; font-weight: 600; font-family: var(--font); cursor: pointer; transition: all .15s; color: var(--gray-600); }
.yesno-btn:hover { border-color: var(--gray-300); background: var(--gray-50); }
.yesno-btn.selected-yes { border-color: var(--green); background: var(--green-light); color: var(--green); }
.yesno-btn.selected-no { border-color: var(--red); background: var(--red-light); color: var(--red); }
.file-uploAd-area { border: 2px dashed var(--gray-200); border-rAdius: var(--r); pAdding: 20px; text-align: center; cursor: pointer; transition: all .15s; position: relative; }
.file-uploAd-area:hover { border-color: var(--red); background: var(--red-light); }
.file-uploAd-area input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.fua-icon { width: 32px; height: 32px; background: var(--gray-100); border-rAdius: var(--r); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.fua-icon svg { width: 16px; height: 16px; color: var(--gray-500); }
.fua-text { font-size: 13px; color: var(--gray-600); }
.fua-text strong { color: var(--red); }
.fua-hint { font-size: 11.5px; color: var(--gray-400); margin-top: 3px; }
.file-preview { display: flex; align-items: center; gap: 8px; pAdding: 8px 12px; background: var(--green-light); border: 1px solid var(--green-border); border-rAdius: var(--r); margin-top: 8px; font-size: 12.5px; color: var(--green); font-weight: 500; }
.file-preview svg { width: 14px; height: 14px; }
.file-preview .fp-rm { margin-left: auto; cursor: pointer; color: var(--gray-400); background: none; border: none; display: flex; }
.file-preview .fp-rm:hover { color: var(--red); }
.num-input-wrap { position: relative; }
.num-input-wrap input { width: 100%; height: 40px; border: 1.5px solid var(--gray-200); border-rAdius: var(--r); pAdding: 0 14px; font-size: 13.5px; font-family: var(--font); color: var(--gray-800); background: #fff; outline: none; transition: border-color .15s; }
.num-input-wrap input:focus { border-color: var(--red); box-shAdow: 0 0 0 3px rgba(232,55,44,.08); }
.num-suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--gray-400); pointer-events: none; }
.save-note { font-size: 12px; color: var(--gray-400); display: flex; align-items: center; gap: 5px; }
.save-note svg { width: 12px; height: 12px; color: var(--green); }
.save-note.saving { color: var(--orange); }
.bottom-bar { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--gray-200); pAdding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shAdow: 0 -2px 8px rgba(0,0,0,.06); }
.bb-progress { flex: 1; max-width: 300px; }
.bb-prog-label { font-size: 12px; color: var(--gray-500); margin-bottom: 5px; display: flex; justify-content: space-between; }
.bb-actions { display: flex; align-items: center; gap: 8px; }
.success-screen { display: none; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100vh - 56px); text-align: center; pAdding: 40px 20px; }
.success-icon { width: 72px; height: 72px; background: var(--green-light); border-rAdius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.success-icon svg { width: 32px; height: 32px; color: var(--green); }
.success-screen h2 { font-size: 22px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.success-screen p { font-size: 14px; color: var(--gray-500); max-width: 420px; line-height: 1.7; }
