@font-face { font-family: 'Manrope'; src: url('/static/fonts/Manrope-Regular.ttf') format('truetype'); font-weight: 400; }
@font-face { font-family: 'Manrope'; src: url('/static/fonts/Manrope-Bold.ttf') format('truetype'); font-weight: 700; }
:root {
  --bg: #060608; --side: #0A0B0E; --panel: #0F1014; --panel2: #14161B; --line: #1E2027; --line2: #2A2D36;
  --ink: #F2F3F5; --body: #C5C8D0; --muted: #858B99; --soft: #5B606C;
  --red: #E8151B; --green: #3DBE8B; --amber: #E3A23B; --blue: #6E8BFF;
  --r: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--body); font: 400 13px/1.5 'Manrope', -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(232,21,27,.35); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #22252C; border-radius: 10px; border: 3px solid var(--bg); }

.app { display: grid; grid-template-columns: 232px 1fr; height: 100vh; }
aside { background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 26px 16px 18px; -webkit-app-region: drag; }
aside * { -webkit-app-region: no-drag; }
.brand { padding: 0 10px 30px; }
.brand img { height: 22px; display: block; }
.brand small { display: block; margin-top: 10px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; cursor: pointer; font-weight: 400; margin-bottom: 2px; }
nav a:hover { color: var(--ink); background: var(--panel); }
nav a.on { color: var(--ink); background: var(--panel2); }
nav a.on::before { content: ''; width: 5px; height: 5px; border-radius: 1px; background: var(--red); margin-left: -2px; }
nav a .n { margin-left: auto; font-size: 11px; color: var(--soft); }
.side-cta { margin: 22px 0 0; }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
.side-foot a { display: block; padding: 8px 12px; color: var(--muted); cursor: pointer; border-radius: 8px; }
.side-foot a:hover { color: var(--ink); background: var(--panel); }

main { overflow: auto; }
.page { padding: 34px 44px 60px; max-width: 1360px; }
.head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
.head h1 { margin: 0; font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.head .sub { color: var(--muted); margin-top: 4px; }
.head .act { margin-left: auto; display: flex; gap: 8px; }
.kicker { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); font-weight: 700; }

.btn { text-decoration: none; display: inline-block; border: 1px solid var(--line2); background: var(--panel2); padding: 9px 14px; border-radius: 8px; cursor: pointer; color: var(--ink); white-space: nowrap; transition: border-color .15s, background .15s; }
.btn:hover { border-color: #3A3E49; background: #191B21; }
.btn.pri { background: var(--ink); color: #08090B; border-color: var(--ink); font-weight: 700; }
.btn.pri:hover { background: #fff; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); background: var(--panel2); }
.btn.sm { padding: 6px 10px; font-size: 12px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }

.grid { display: grid; gap: 14px; }
.kpis { grid-template-columns: repeat(4, 1fr); margin-bottom: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.kpi .v { font-size: 26px; font-weight: 700; color: var(--ink); margin-top: 10px; letter-spacing: -.01em; }
.kpi .d { color: var(--muted); margin-top: 2px; font-size: 12px; }
.two { grid-template-columns: 1.2fr 1fr; align-items: start; }
details.more { border-top: 1px solid var(--line); padding-top: 14px; }
details.more summary { cursor: pointer; color: var(--ink); list-style: none; }
details.more summary::before { content: '+'; display: inline-block; width: 16px; color: var(--muted); }
details.more[open] summary::before { content: '–'; }
details.more summary span { color: var(--soft); }
.st-Revize i { background: var(--line2); }
.card h3 { margin: 0 0 14px; font-size: 13px; color: var(--ink); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card h3 .c { color: var(--soft); font-weight: 400; }

.pipe { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--panel2); margin: 6px 0 14px; }
.pipe span { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 12px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); font-weight: 700; padding: 0 12px 10px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr { cursor: pointer; transition: background .1s; }
tbody tr:hover td { background: #0D0E12; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td .t { color: var(--ink); font-weight: 700; }
td .s { color: var(--muted); font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 20px; font-size: 11.5px; border: 1px solid var(--line2); color: var(--body); white-space: nowrap; }
.pill i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.st-Taslak i { background: var(--soft); } .st-Gönderildi i { background: var(--blue); } .st-Görüşülüyor i { background: var(--amber); }
.st-Kazanıldı i { background: var(--green); } .st-Kaybedildi i { background: var(--red); }
.late { color: var(--red); } .soon { color: var(--amber); }

.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.search { flex: 1; max-width: 360px; position: relative; }
.search input { width: 100%; padding-left: 34px; }
.search::before { content: ''; position: absolute; left: 12px; top: 50%; width: 10px; height: 10px; border: 1.5px solid var(--soft); border-radius: 50%; transform: translateY(-60%); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 7px 12px; border-radius: 20px; border: 1px solid var(--line2); cursor: pointer; color: var(--muted); font-size: 12px; background: transparent; }
.chip.on { color: var(--ink); border-color: var(--ink); }

input, select, textarea { background: var(--bg); border: 1px solid var(--line2); border-radius: 8px; padding: 9px 11px; width: 100%; outline: none; transition: border-color .15s; }
input:focus, select:focus, textarea:focus { border-color: #4A4F5C; }
input[type=date]::-webkit-calendar-picker-indicator { filter: invert(.7); }
textarea { resize: vertical; min-height: 70px; }
label.f { display: block; }
label.f > span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
label.f > span b { color: var(--red); font-weight: 400; }
.fg { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.fg .full { grid-column: 1 / -1; }
.fg3 { grid-template-columns: 1fr 1fr 1fr; }
.sec { margin: 26px 0 14px; display: flex; align-items: center; gap: 12px; }
.sec:first-child { margin-top: 0; }
.sec .kicker { color: var(--ink); }
.sec::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.hint { color: var(--soft); font-size: 11.5px; margin-top: 6px; }

/* summary card */
.sum { position: sticky; top: 0; }
.sum .row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.sum .row b { color: var(--ink); font-weight: 400; font-variant-numeric: tabular-nums; }
.sum .row.neg b { color: var(--red); }
.sum .big { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 6px; }
.sum .big span { color: var(--ink); font-weight: 700; }
.sum .big b { font-size: 30px; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sum .note { color: var(--soft); font-size: 11.5px; text-align: right; }
.form-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }

/* modal / drawer */
.ov { position: fixed; inset: 0; background: rgba(0,0,0,.62); backdrop-filter: blur(3px); display: none; z-index: 20; }
.ov.on { display: block; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 92vw); background: var(--side); border-left: 1px solid var(--line); z-index: 21; transform: translateX(100%); transition: transform .22s ease; display: flex; flex-direction: column; }
.drawer.on { transform: none; }
.drawer .dh { padding: 26px 30px 18px; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: flex-start; }
.drawer .dh h2 { margin: 6px 0 2px; color: var(--ink); font-size: 21px; }
.drawer .db { padding: 22px 30px 40px; overflow: auto; flex: 1; }
.drawer .x { margin-left: auto; }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -48%); width: min(560px, 92vw); max-height: 88vh; overflow: auto; background: var(--side); border: 1px solid var(--line2); border-radius: 14px; z-index: 30; display: none; padding: 26px 28px; }
.modal.on { display: block; transform: translate(-50%, -50%); }
.modal h2 { margin: 0 0 4px; color: var(--ink); font-size: 18px; }
.modal .mf { display: flex; gap: 8px; justify-content: flex-end; margin-top: 22px; }

.kv { display: grid; grid-template-columns: 140px 1fr; gap: 0; }
.kv div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.kv div:nth-child(odd) { color: var(--muted); }
.kv div:nth-child(even) { color: var(--ink); word-break: break-word; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 22px 0 16px; }
.tabs a { padding: 0 0 10px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.files { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.file { border: 1px solid var(--line2); border-radius: 10px; padding: 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.file:hover { border-color: #3A3E49; }
.file .ic { width: 34px; height: 40px; border-radius: 5px; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; flex: none; }
.file .ic.w { background: #2B5797; } .file .ic.p { background: #B3261E; }
.file .nm { color: var(--ink); font-size: 12px; word-break: break-all; }
.file .s { color: var(--muted); font-size: 11px; }

.tl { position: relative; margin-left: 6px; }
.tl .it { position: relative; padding: 0 0 18px 22px; border-left: 1px solid var(--line2); }
.tl .it:last-child { border-left-color: transparent; }
.tl .it::before { content: ''; position: absolute; left: -4px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--line2); border: 1px solid var(--soft); }
.tl .it.man::before { background: var(--ink); border-color: var(--ink); }
.tl .m { color: var(--soft); font-size: 11px; display: flex; gap: 8px; }
.tl .tx { color: var(--body); margin-top: 2px; white-space: pre-wrap; }
.tl .del { margin-left: auto; color: var(--soft); cursor: pointer; visibility: hidden; }
.tl .it:hover .del { visibility: visible; }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.list .li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.list .li:last-child { border-bottom: 0; }
.list .li .r { margin-left: auto; text-align: right; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #08090B; padding: 11px 18px; border-radius: 10px; opacity: 0; transition: all .2s; z-index: 50; font-weight: 700; max-width: 80vw; }
.toast.on { opacity: 1; transform: translateX(-50%); }
.toast.err { background: var(--red); color: #fff; }
.busy { position: fixed; inset: 0; background: rgba(6,6,8,.75); z-index: 60; display: none; place-items: center; }
.busy.on { display: grid; }
.busy .bx { text-align: center; color: var(--ink); }
.spin { width: 28px; height: 28px; border: 2px solid var(--line2); border-top-color: var(--ink); border-radius: 50%; animation: s 0.8s linear infinite; margin: 0 auto 14px; }
@keyframes s { to { transform: rotate(360deg); } }
.success { border: 1px solid var(--line2); border-radius: 12px; padding: 28px; background: var(--panel); }
.success h2 { margin: 6px 0 4px; color: var(--ink); }
.ac-list { position: absolute; left: 0; right: 0; top: 100%; background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; margin-top: 4px; z-index: 5; max-height: 260px; overflow: auto; display: none; }
.ac-list div { padding: 9px 12px; cursor: pointer; } .ac-list div:hover { background: #1C1F26; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 8px 14px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--panel2); color: var(--ink); }
.warn { border: 1px solid #4A2A1A; background: #1A110C; color: #E9B48A; border-radius: 8px; padding: 10px 12px; margin-top: 12px; font-size: 12px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, 1fr); } .two, .form-wrap { grid-template-columns: 1fr; } }
/* --- web additions --- */
.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice label { border: 1px solid var(--line2); border-radius: 10px; padding: 14px 16px; cursor: pointer; display: block; transition: border-color .15s, background .15s; }
.choice label:hover { border-color: #3A3E49; }
.choice input { display: none; }
.choice label.on { border-color: var(--ink); background: var(--panel2); }
.choice .k { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); font-weight: 700; }
.choice .n { color: var(--ink); font-weight: 700; margin-top: 4px; }
.choice .d { color: var(--muted); font-size: 12px; margin-top: 2px; }
.choice .rec { color: var(--red); font-size: 10px; letter-spacing: .12em; font-weight: 700; float: right; }
a.file { text-decoration: none; color: inherit; }
.folder { border-bottom: 1px solid var(--line); }
.folder > summary { list-style: none; cursor: pointer; padding: 14px 6px; display: flex; align-items: center; gap: 12px; color: var(--ink); }
.folder > summary::before { content: '›'; color: var(--soft); width: 10px; transition: transform .15s; }
.folder[open] > summary::before { transform: rotate(90deg); }
.folder > summary .c { margin-left: auto; color: var(--soft); font-size: 12px; }
.folder .fl { padding: 0 6px 14px 28px; }
.folder .fl a { display: flex; gap: 12px; padding: 8px 0; color: var(--body); text-decoration: none; border-top: 1px solid var(--line); align-items: center; }
.folder .fl a:hover { color: var(--ink); }
.folder .fl .tg { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; color: #fff; }
.tg.pdf { background: #B3261E; } .tg.docx { background: #2B5797; } .tg.other { background: var(--line2); }
.folder .fl .m { margin-left: auto; color: var(--soft); font-size: 11px; white-space: nowrap; }
.mailbox textarea { min-height: 260px; font-size: 13px; line-height: 1.6; }
.att { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line2); border-radius: 6px; padding: 5px 9px; font-size: 12px; margin: 0 6px 6px 0; }
.modal.wide { width: min(760px, 94vw); }
.userbox { padding: 10px 12px; color: var(--soft); font-size: 12px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 70% -10%, #15161B 0%, var(--bg) 60%); }
.login { width: min(400px, 100%); }
.login img { height: 24px; margin-bottom: 34px; }
.login h1 { color: var(--ink); font-size: 26px; margin: 0 0 6px; }
.login p { color: var(--muted); margin: 0 0 26px; }
.login .err { color: var(--red); min-height: 20px; margin-top: 12px; font-size: 12px; }
@media (max-width: 900px) { .app { grid-template-columns: 1fr; height: auto; } aside { flex-direction: row; align-items: center; gap: 8px; padding: 10px 12px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); } .brand { padding: 0 8px 0 0; } .brand small, .side-foot .userbox { display: none; } nav { display: flex; } nav a { white-space: nowrap; } .side-cta { margin: 0; } .side-foot { margin: 0; border: 0; padding: 0; display: flex; } main { overflow: visible; } .kpis { grid-template-columns: 1fr 1fr; } .choice { grid-template-columns: 1fr; } .page { padding: 24px 18px 60px; } }
.sigprev{width:100%;min-height:170px;border:1px solid var(--line,#e3e3e3);border-radius:8px;background:#fff}
