:root {
  --navy: #0f2742;
  --navy-2: #173556;
  --navy-3: #214569;
  --primary: #1d5fa8;
  --primary-dark: #164b86;
  --primary-soft: #e6f0fb;
  --accent: #c8102e;
  --bg: #f2f5f9;
  --surface: #ffffff;
  --line: #e1e7ef;
  --line-strong: #cdd6e2;
  --text: #1b2733;
  --text-2: #5b6b7d;
  --text-3: #8a97a8;
  --ok: #1f8a5b;
  --ok-soft: #e3f5ec;
  --warn: #b7791f;
  --warn-soft: #fdf3dc;
  --danger: #c0392b;
  --danger-soft: #fdeaea;
  --purple: #6b4fbb;
  --purple-soft: #eee9fb;
  --teal: #0e7c86;
  --teal-soft: #dff3f5;
  --orange: #c2560f;
  --orange-soft: #fdebdc;
  --gray-soft: #eceff3;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(15, 39, 66, .06), 0 4px 14px rgba(15, 39, 66, .05);
  --shadow-lg: 0 20px 50px rgba(15, 39, 66, .28);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--text); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--text-2); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }

.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 15px; height: 15px; }
.ic-lg { width: 22px; height: 22px; }

/* ---------- Login ---------- */
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 440px) 1fr;
  background: var(--bg);
}
.login-side {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff;
  padding: 56px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255, 255, 255, .12);
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .25);
}
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: .4px; }
.brand-sub { font-size: 12px; opacity: .72; margin-top: -2px; }
.login-side h1 { color: #fff; font-size: 30px; line-height: 1.25; font-weight: 600; margin-bottom: 14px; }
.login-side p { color: rgba(255, 255, 255, .78); font-size: 15px; max-width: 340px; }
.login-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.login-steps li { display: flex; gap: 12px; align-items: center; font-size: 13.5px; color: rgba(255, 255, 255, .85); }
.login-steps .n {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); display: grid; place-items: center;
  font-size: 12px; font-weight: 600;
}
.login-foot { font-size: 12px; opacity: .6; }
.login-main { padding: 48px clamp(20px, 5vw, 72px); overflow: auto; }
.login-main h2 { font-size: 22px; margin-bottom: 4px; }
.login-main > .muted { margin-bottom: 22px; }
.demo-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--warn-soft); color: #7a5313;
  border: 1px solid #f3dfae; border-radius: var(--radius);
  padding: 10px 14px; font-size: 13px; margin-bottom: 22px; max-width: 860px;
}
.role-group { margin-bottom: 22px; max-width: 860px; }
.role-group h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--text-2);
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.user-tile {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; cursor: pointer; font: inherit; color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.user-tile:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-1px); }
.user-tile:focus-visible { outline: 3px solid rgba(29, 95, 168, .35); outline-offset: 1px; }
.user-tile .nm { font-weight: 600; line-height: 1.25; }
.user-tile .ut { font-size: 12.5px; color: var(--text-2); line-height: 1.3; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 13px;
  background: var(--primary);
}
.avatar-sm { width: 30px; height: 30px; font-size: 11.5px; }
.login-actions { margin-top: 26px; max-width: 860px; display: flex; gap: 10px; align-items: center; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; height: 100vh; }
.sidebar {
  background: var(--navy);
  color: #cfdbea;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.sidebar .brand { padding: 18px 18px 14px; }
.sidebar .brand-mark { width: 36px; height: 36px; }
.sidebar .brand-name { color: #fff; font-size: 17px; }
.nav { padding: 6px 10px 16px; flex: 1; }
.nav-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: #7f93ab; padding: 16px 10px 6px;
}
.nav a {
  display: flex; align-items: center; gap: 12px;
  color: #cfdbea; padding: 9px 12px; border-radius: 8px; margin: 1px 0;
  font-size: 13.5px; text-decoration: none;
  transition: background .12s, color .12s;
}
.nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav a.active { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.nav a .badge-n {
  margin-left: auto; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600;
  min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px;
}
.nav a.active .badge-n { background: #fff; color: var(--primary); }
.side-foot { padding: 12px 18px 16px; font-size: 11.5px; color: #7f93ab; border-top: 1px solid rgba(255, 255, 255, .08); }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar {
  height: 62px; background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; flex: none;
}
.topbar h1 { font-size: 18px; }
.topbar .crumb { font-size: 12px; color: var(--text-3); margin-bottom: 1px; }
.top-right { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: transparent; border: 0;
  color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { background: var(--gray-soft); color: var(--text); }
.icon-btn .dot {
  position: absolute; top: 5px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 600;
  display: grid; place-items: center; border: 2px solid var(--surface); line-height: 1;
}
.userbox { display: flex; align-items: center; gap: 10px; padding-left: 14px; border-left: 1px solid var(--line); }
.userbox .nm { font-weight: 600; line-height: 1.2; font-size: 13.5px; }
.userbox .rl { font-size: 12px; color: var(--text-2); line-height: 1.2; }
.view { flex: 1; overflow-y: auto; padding: 26px 28px 40px; }

/* ---------- Page blocks ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h2 { font-size: 20px; }
.page-head p { margin: 2px 0 0; color: var(--text-2); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden;
}
.panel-head {
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.panel-head h3 { font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.panel-head .count {
  background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 600;
  padding: 1px 9px; border-radius: 10px;
}
.panel-body { padding: 18px; }
.panel-body.flush { padding: 0; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 22px; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; display: flex; gap: 14px; align-items: center;
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform .15s, border-color .15s;
}
a.tile:hover { transform: translateY(-2px); border-color: var(--primary); text-decoration: none; }
.tile .ti {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; flex: none;
}
.tile .num { font-size: 26px; font-weight: 700; line-height: 1.1; }
.tile .lbl { font-size: 12.5px; color: var(--text-2); line-height: 1.3; }
.t-blue { background: var(--primary-soft); color: var(--primary); }
.t-amber { background: var(--warn-soft); color: var(--warn); }
.t-green { background: var(--ok-soft); color: var(--ok); }
.t-purple { background: var(--purple-soft); color: var(--purple); }
.t-teal { background: var(--teal-soft); color: var(--teal); }
.t-red { background: var(--danger-soft); color: var(--danger); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px;
  color: var(--text-2); font-weight: 600; background: #f8fafc;
  padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .1s; }
.tbl tbody tr[data-href] { cursor: pointer; }
.tbl tbody tr:hover { background: #f6f9fd; }
.tbl .title { font-weight: 600; color: var(--text); }
.tbl .sub { font-size: 12.5px; color: var(--text-2); }
.tbl .code { font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 12.5px; white-space: nowrap; }
.empty {
  text-align: center; padding: 44px 20px; color: var(--text-2);
}
.empty .ei {
  width: 56px; height: 56px; border-radius: 50%; background: var(--gray-soft);
  display: grid; place-items: center; margin: 0 auto 12px; color: var(--text-3);
}
.empty .ei .ic { width: 26px; height: 26px; }
.empty b { display: block; color: var(--text); margin-bottom: 2px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 12px;
  font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.5;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-blue { background: var(--primary-soft); color: var(--primary); }
.b-amber { background: var(--warn-soft); color: var(--warn); }
.b-green { background: var(--ok-soft); color: var(--ok); }
.b-purple { background: var(--purple-soft); color: var(--purple); }
.b-teal { background: var(--teal-soft); color: var(--teal); }
.b-orange { background: var(--orange-soft); color: var(--orange); }
.b-red { background: var(--danger-soft); color: var(--danger); }
.b-gray { background: var(--gray-soft); color: var(--text-2); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
  background: var(--gray-soft); color: var(--text); border-radius: 6px; font-size: 12.5px;
}
.chip-file { background: var(--primary-soft); color: var(--primary-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-role { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .16); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 8px; font: inherit; font-weight: 600; font-size: 13px;
  letter-spacing: .3px; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: background .12s, border-color .12s, box-shadow .12s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(29, 95, 168, .35); outline-offset: 1px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(15, 39, 66, .2); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { background: #f4f7fb; border-color: var(--primary); color: var(--primary); }
.btn-success { background: var(--ok); color: #fff; }
.btn-success:hover { background: #17724a; }
.btn-danger { background: var(--surface); color: var(--danger); border-color: #efc3bf; }
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--gray-soft); color: var(--text); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 7px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field label .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 12px; height: 38px;
  transition: border-color .12s, box-shadow .12s;
}
.textarea { height: auto; min-height: 88px; padding: 9px 12px; resize: vertical; line-height: 1.45; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6b7d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.select-sm { height: 30px; font-size: 12.5px; border-radius: 7px; padding-left: 9px; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29, 95, 168, .18);
}
.input.invalid, .select.invalid, .textarea.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(192, 57, 43, .12); }
.err { color: var(--danger); font-size: 12.5px; }
.search { position: relative; }
.search .ic { position: absolute; left: 11px; top: 10px; color: var(--text-3); }
.search .input { padding-left: 36px; min-width: 240px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.toolbar .select { width: auto; min-width: 170px; }

.option {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: 9px; cursor: pointer; margin-bottom: 10px;
  transition: border-color .12s, background .12s;
}
.option:hover { border-color: var(--primary); }
.option input { margin-top: 3px; accent-color: var(--primary); width: 16px; height: 16px; }
.option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.option b { display: block; }
.option span { font-size: 12.5px; color: var(--text-2); }
input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; }

/* ---------- Modal / toast ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(15, 39, 66, .55);
  display: grid; place-items: center; padding: 24px; z-index: 950;
  animation: fade .15s ease-out;
}
.modal {
  background: var(--surface); border-radius: 12px; width: min(560px, 100%);
  max-height: calc(100vh - 48px); display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); animation: pop .18s ease-out;
}
.modal.wide { width: min(780px, 100%); }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: #fafbfd; border-radius: 0 0 12px 12px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.toasts { position: fixed; right: 22px; bottom: 22px; display: grid; gap: 10px; z-index: 990; }
.toast {
  background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 9px; min-width: 260px; max-width: 380px;
  box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px;
  animation: pop .2s ease-out;
}
.toast .ic { color: #6ee0a8; margin-top: 2px; }
.toast.warn .ic { color: #ffd479; }

/* ---------- Detail ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 14px; }
.kv dt { color: var(--text-2); font-size: 12.5px; padding-top: 1px; }
.kv dd { margin: 0; }
.desc { white-space: pre-wrap; line-height: 1.6; }
.callout {
  display: flex; gap: 10px; border-radius: 9px; padding: 11px 14px; font-size: 13px;
  background: var(--primary-soft); color: var(--primary-dark); border: 1px solid #cfe1f6;
}
.callout.warn { background: var(--warn-soft); color: #7a5313; border-color: #f3dfae; }
.callout.ok { background: var(--ok-soft); color: #14663f; border-color: #bfe6d1; }
.callout.danger { background: var(--danger-soft); color: #902b21; border-color: #f2c7c3; }
.callout .ic { margin-top: 2px; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 16px 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--primary);
}
.timeline .tt { font-weight: 600; }
.timeline .tm { font-size: 12px; color: var(--text-3); }
.timeline .tn { font-size: 13px; color: var(--text-2); margin-top: 2px; }

.progress { height: 8px; background: var(--gray-soft); border-radius: 4px; overflow: hidden; min-width: 90px; }
.progress > i { display: block; height: 100%; background: var(--teal); border-radius: 4px; }
.progress.full > i { background: var(--ok); }
.pct { font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 36px; gap: 12px; align-items: center; margin-bottom: 12px; }
.bar-row .progress { height: 12px; }

.agenda-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.agenda-item:last-child { border-bottom: 0; }
.agenda-no { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 700; display: grid; place-items: center; }
.agenda-item .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); margin-top: 3px; }
.agenda-item .meta span { display: inline-flex; gap: 5px; align-items: center; }

.doc {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  padding: 44px 56px; max-width: 880px; margin: 0 auto 20px;
}
.doc h1 { text-align: center; font-size: 18px; letter-spacing: .5px; margin-bottom: 4px; }
.doc .doc-sub { text-align: center; color: var(--text-2); margin-bottom: 26px; }
.doc h4 { margin: 22px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .7px; color: var(--primary-dark); border-bottom: 2px solid var(--primary-soft); padding-bottom: 5px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 13px; }
.doc th, .doc td { border: 1px solid var(--line-strong); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: #f3f6fa; }
.sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; text-align: center; font-size: 12.5px; color: var(--text-2); }
.sign div { border-top: 1px solid var(--line-strong); padding-top: 6px; }

.role-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.rcheck { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 7px; font-size: 12.5px; cursor: pointer; user-select: none; }
.rcheck:has(input:checked) { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.def-list { list-style: none; margin: 0; padding: 0; }
.def-list li { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.def-list li:last-child { border-bottom: 0; }
.add-row { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); background: #fafbfd; }

@media (max-width: 1100px) {
  .detail-grid, .pair { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login-side { padding: 28px; }
}
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .form-grid { grid-template-columns: 1fr; }
}
@media print {
  .sidebar, .topbar, .no-print, .toasts { display: none !important; }
  .shell { display: block; height: auto; }
  .view { overflow: visible; padding: 0; }
  .doc { border: 0; box-shadow: none; padding: 0; }
  body { background: #fff; }
}

.icon-btn:hover { text-decoration: none; }

[hidden] { display: none !important; }

.login-form { max-width: 400px; margin-bottom: 34px; padding-top: 6vh; }
.login-form h2 { font-size: 26px; margin-bottom: 4px; }
.input-lg { height: 46px; font-size: 15px; }
.btn-lg { height: 46px; font-size: 14px; }
.demo-users { max-width: 860px; }
.uname { font-family: Consolas, "Cascadia Mono", monospace; background: var(--gray-soft); padding: 2px 8px; border-radius: 5px; font-size: 12.5px; }
.hover-rows tbody tr { cursor: pointer; }
.login-main { display: flex; flex-direction: column; }
.login-main .demo-users { margin-bottom: 14px; }

.input::placeholder, .textarea::placeholder { color: var(--text-3); }

.role-pills { flex-wrap: nowrap; }
.rcheck { padding: 4px 9px; white-space: nowrap; }

.seg-n { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 9px; background: rgba(0,0,0,.08); font-size: 11px; line-height: 17px; text-align: center; }
.btn-primary .seg-n { background: rgba(255,255,255,.25); }

/* ---------- Gündem tablosu (Excel düzeni) ---------- */
.gh { border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.gh-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; }
.gh-cell { padding: 11px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 1px; }
.gh-cell:last-child { border-right: 0; }
.gh-cell span { font-size: 11.5px; color: var(--text-2); }
.gh-cell b { font-weight: 600; }
.gh-title { text-align: center; padding: 11px; font-weight: 700; letter-spacing: 1.2px; background: #d9ead3; color: #2d5016; font-size: 14px; }

.gwrap { overflow-x: auto; }
.gtable { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.gtable th { position: sticky; top: 0; z-index: 2; background: #e9f2e4; color: #2d5016; text-align: left; font-size: 12px; font-weight: 700; padding: 11px 14px; border-bottom: 2px solid #bfd6b4; border-right: 1px solid #d4e4cb; white-space: nowrap; }
.gtable th:last-child { border-right: 0; }
.gtable td { padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--surface); }
.gtable td:last-child { border-right: 0; }
.gtable tbody tr[data-href] { cursor: pointer; }
.gtable tbody tr:hover td { background: #f6f9fd; }
.gtable td.gno { text-align: center; font-weight: 700; font-size: 15px; color: var(--primary); background: #f3f8ff !important; vertical-align: middle; border-bottom: 2px solid var(--line-strong); }
.gtable tr.g-cont td:not(.gno) { border-top: 1px dashed var(--line-strong); }
.gtable .konu-text { white-space: pre-line; line-height: 1.5; word-break: break-word; }
.gp-birim { font-weight: 600; line-height: 1.35; }
.gp-kisi { font-size: 12.5px; color: var(--text-2); }
.cell-edit { font-size: 13px; }
.cell-edit.saved { border-color: var(--ok); box-shadow: 0 0 0 3px rgba(31, 138, 91, .18); }
textarea.cell-edit { min-height: 76px; }
input.cell-edit { height: 34px; }
details.eks { margin-top: 10px; }
details.eks summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--primary); list-style: none; padding: 3px 10px; background: var(--primary-soft); border-radius: 6px; }
details.eks summary::-webkit-details-marker { display: none; }
details.eks[open] summary { background: var(--primary); color: #fff; }
details.eks .chips { margin-top: 8px; }
@media (max-width: 1100px) { .gh-grid { grid-template-columns: 1fr 1fr; } }

.ek-group { margin-bottom: 12px; }
.ek-group:last-child { margin-bottom: 0; }
.ek-title { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.ek-title span { background: var(--gray-soft); color: var(--text-2); border-radius: 9px; padding: 0 7px; font-size: 11px; line-height: 17px; }
.eks-body { margin-top: 8px; }

.ek-group { margin-bottom: 18px; }
.ek-title { font-size: 12.5px; letter-spacing: .2px; margin-bottom: 10px; }
.ek-list { display: flex; flex-wrap: wrap; gap: 12px; }
.ek-item { cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.ek-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ek-media { width: 132px; }
.ek-thumb { position: relative; height: 88px; border-radius: 10px; display: grid; place-items: center; border: 1px solid rgba(15, 39, 66, .08); overflow: hidden; }
.ek-thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.55), transparent 55%); pointer-events: none; }
.ek-glyph { width: 30px; height: 30px; color: rgba(15, 39, 66, .45); stroke-width: 1.6; position: relative; z-index: 1; }
.ek-media .ek-name { margin-top: 6px; font-size: 12px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ek-fmt { position: absolute; right: 6px; bottom: 6px; z-index: 1; font-size: 10px; font-weight: 700; letter-spacing: .5px; background: rgba(15, 39, 66, .75); color: #fff; padding: 1px 6px; border-radius: 4px; }
.ek-docs { gap: 10px; }
.ek-doc { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; min-width: 210px; max-width: 320px; }
.ek-doc:hover { border-color: var(--primary); }
.ek-doc .ek-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ek-ext { flex: none; width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; font-size: 11px; font-weight: 700; letter-spacing: .4px; }
.ext-pdf { background: #fdeaea; color: #c0392b; }
.ext-xls { background: #e3f5ec; color: #1f8a5b; }
.ext-doc { background: #e6f0fb; color: #1d5fa8; }
.ext-other { background: var(--gray-soft); color: var(--text-2); }
.gtable details.eks .ek-media { width: 108px; }
.gtable details.eks .ek-thumb { height: 70px; }
.gtable details.eks .ek-doc { min-width: 0; max-width: 100%; width: 100%; }
.gtable details.eks .ek-list { gap: 8px; }

details.eks summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -3px 0 0 4px; transition: transform .15s; }
details.eks[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
details.eks summary { padding: 5px 12px; font-size: 13px; }
.eks-sum { font-weight: 500; color: var(--text-2); margin-left: 4px; }
.eks-sum::before { content: "·"; margin-right: 6px; }
details.eks[open] .eks-sum { color: rgba(255, 255, 255, .85); }
details.eks[open] > .eks-body { margin-top: 12px; }

/* ---------- Daraltılabilir menü ---------- */
.shell { transition: grid-template-columns .2s ease; }
.top-left { display: flex; align-items: center; gap: 10px; }
.top-left .icon-btn { margin-left: -8px; border-radius: 9px; }
.nav a { position: relative; }
.shell.collapsed { grid-template-columns: 68px 1fr; }
.shell.collapsed .sidebar .brand { padding: 18px 0 14px; justify-content: center; }
.shell.collapsed .sidebar .brand > div:last-child,
.shell.collapsed .side-foot { display: none; }
.shell.collapsed .nav { padding: 6px 8px 16px; }
.shell.collapsed .nav-title { font-size: 0; height: 1px; background: rgba(255, 255, 255, .1); margin: 14px 10px 10px; padding: 0; }
.shell.collapsed .nav a { justify-content: center; padding: 11px 0; gap: 0; }
.shell.collapsed .nav a > span:not(.badge-n) { display: none; }
.shell.collapsed .nav a .badge-n { position: absolute; top: 3px; right: 6px; margin: 0; min-width: 17px; height: 17px; font-size: 10px; padding: 0 4px; border: 2px solid var(--navy); }
.shell.collapsed .nav a.active .badge-n { border-color: var(--primary); }

.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 10px 0 8px; color: var(--text); }
.legend > span { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; }

.seg-group { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-div { width: 1px; align-self: stretch; background: var(--line-strong); margin: 0 6px; }
.dot-mini { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot-mini.b-green { background: var(--ok); }
.dot-mini.b-amber { background: #e0a526; }
.dot-mini.b-red { background: var(--danger); }

/* ---------- Menü: daralmış hali üzerine gelince açılır, ok ile sabitlenir ---------- */
.nav-pin { margin-left: auto; width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: #9fb3cc; display: grid; place-items: center; cursor: pointer; flex: none; transition: background .12s, color .12s; }
.nav-pin:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.nav-pin:focus-visible { outline: 2px solid rgba(255, 255, 255, .6); }
.shell.collapsed .sidebar { width: 68px; position: relative; z-index: 40; transition: width .18s ease, box-shadow .18s ease; overflow-x: hidden; }
.shell.collapsed .sidebar:not(:hover) .nav-pin { display: none; }
.shell.collapsed .sidebar:hover { width: 252px; box-shadow: 8px 0 30px rgba(15, 39, 66, .35); }
.shell.collapsed .sidebar:hover .brand { padding: 18px 18px 14px; justify-content: flex-start; }
.shell.collapsed .sidebar:hover .brand > div:last-of-type { display: block; }
.shell.collapsed .sidebar:hover .side-foot { display: block; }
.shell.collapsed .sidebar:hover .nav { padding: 6px 10px 16px; }
.shell.collapsed .sidebar:hover .nav-title { font-size: 11px; height: auto; background: transparent; margin: 0; padding: 16px 10px 6px; }
.shell.collapsed .sidebar:hover .nav a { justify-content: flex-start; padding: 9px 12px; gap: 12px; }
.shell.collapsed .sidebar:hover .nav a > span:not(.badge-n) { display: inline; }
.shell.collapsed .sidebar:hover .nav a .badge-n { position: static; margin-left: auto; min-width: 20px; height: 20px; font-size: 11px; padding: 0 6px; border: 0; }

.shell.collapsed .sidebar:not(:hover) .brand > div:last-of-type { display: none; }
.shell.collapsed .sidebar:not(:hover) .brand { padding: 18px 0 14px; justify-content: center; }

/* ---------- Menü düğmesi: mavi menünün kenarında beyaz daire ---------- */
.shell { position: relative; }
.nav-pin { position: absolute; top: 22px; left: 238px; margin: 0; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--navy); border: 1px solid var(--line-strong); box-shadow: 0 2px 8px rgba(15, 39, 66, .28); z-index: 60; display: grid; place-items: center; cursor: pointer; padding: 0; transition: left .18s ease, background .12s, color .12s; }
.nav-pin:hover { background: var(--primary-soft); color: var(--primary); }
.nav-pin:focus-visible { outline: 3px solid rgba(29, 95, 168, .4); outline-offset: 1px; }
.nav-pin .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.shell.collapsed .nav-pin { left: 54px; }
.shell.collapsed .sidebar:hover ~ .nav-pin { left: 238px; }
@media (max-width: 800px) { .nav-pin { display: none; } }
@media print { .nav-pin { display: none; } }

/* Menü, ya menünün ya da düğmenin üzerindeyken açık kalır (fare iki yer arasında giderken kapanmaz) */
.shell.collapsed.peek .sidebar { width: 252px; box-shadow: 8px 0 30px rgba(15, 39, 66, .35); }
.shell.collapsed.peek .sidebar .brand { padding: 18px 18px 14px; justify-content: flex-start; }
.shell.collapsed.peek .sidebar .brand > div:last-of-type { display: block; }
.shell.collapsed.peek .sidebar .side-foot { display: block; }
.shell.collapsed.peek .sidebar .nav { padding: 6px 10px 16px; }
.shell.collapsed.peek .sidebar .nav-title { font-size: 11px; height: auto; background: transparent; margin: 0; padding: 16px 10px 6px; }
.shell.collapsed.peek .sidebar .nav a { justify-content: flex-start; padding: 9px 12px; gap: 12px; }
.shell.collapsed.peek .sidebar .nav a > span:not(.badge-n) { display: inline; }
.shell.collapsed.peek .sidebar .nav a .badge-n { position: static; margin-left: auto; min-width: 20px; height: 20px; font-size: 11px; padding: 0 6px; border: 0; }
.shell.collapsed.peek .nav-pin { left: 238px; }

button.badge-btn { border: 1px dashed var(--line-strong); cursor: pointer; font-family: inherit; transition: background .12s, color .12s, border-color .12s; }
button.badge-btn:hover { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }
button.badge-btn:focus-visible { outline: 3px solid rgba(29, 95, 168, .35); outline-offset: 1px; }

.dropzone { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 2px dashed var(--line-strong); border-radius: 12px; background: var(--bg-soft, #f6f9fc); cursor: pointer; transition: background .12s, border-color .12s; }
.dropzone svg { width: 26px; height: 26px; color: var(--primary); flex: none; }
.dropzone b { display: block; font-size: 14px; color: var(--text, #1c2a3a); }
.dropzone span { font-size: 12.5px; color: var(--muted, #667); }
.dropzone:hover, .dropzone.over { background: var(--primary-soft); border-color: var(--primary); }
.dropzone.over { box-shadow: 0 0 0 4px rgba(29, 95, 168, .15); }
.dz-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dz-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 12.5px; }
.dz-chip button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px; }

.dz-list { display: block; margin-top: 10px; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: var(--surface); }
.dz-list:empty { display: none; }
.dz-head { display: flex; justify-content: space-between; padding: 8px 14px; background: var(--bg-soft, #f6f9fc); border-bottom: 1px solid var(--line-strong); font-size: 12px; font-weight: 600; color: var(--muted, #667); text-transform: uppercase; letter-spacing: .4px; }
.dz-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.dz-row:last-child { border-bottom: 0; }
.dz-thumb { flex: none; width: 40px; height: 40px; border-radius: 9px; object-fit: cover; border: 1px solid var(--line-strong); }
.dz-row .ek-ext svg { width: 18px; height: 18px; }
.dz-info { flex: 1; min-width: 0; }
.dz-info b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-info span { font-size: 12px; color: var(--muted, #667); }
.dz-x { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted, #667); cursor: pointer; }
.dz-x:hover { background: #fdecec; color: #c0392b; }
.dz-x svg { width: 16px; height: 16px; }

.mail-prev { border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: var(--surface); }
.mp-row { display: flex; gap: 14px; padding: 9px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.mp-row > span { flex: none; width: 70px; color: var(--muted, #667); }
.mp-body { padding: 18px 20px; font-size: 14px; line-height: 1.6; background: #fff; }
.mp-body p { margin: 0 0 12px; }
.mp-body a { color: var(--primary); }

.mp-table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 13px; }
.mp-table th, .mp-table td { border: 1px solid var(--line-strong); padding: 6px 10px; text-align: left; }
.mp-table th { background: var(--bg-soft, #f6f9fc); font-weight: 600; }

/* ince, yarı saydam kaydırma çubuğu */
*::-webkit-scrollbar { width: 6px; height: 6px; background: transparent; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, .30); border-radius: 6px; transition: background .15s; }
*::-webkit-scrollbar-thumb:hover { background: rgba(71, 85, 105, .60); }
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
*::-webkit-scrollbar-corner { background: transparent; }

/* gündem tablosu: Tüm Talepler listesiyle aynı görünüm */
.gtable th { position: static; text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-2); font-weight: 600; background: #f8fafc; padding: 11px 16px; border-bottom: 1px solid var(--line); border-right: 0; white-space: nowrap; }
.gtable td { padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
.gtable td.gno { background: transparent !important; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; vertical-align: top; }
.gtable tbody tr:last-child td { border-bottom: 0; }
.gtable tr.g-cont td:not(.gno) { border-top: 0; }

.madde-sec tbody tr { cursor: pointer; }
.madde-sec tbody tr.secili { background: var(--primary-soft); }
.madde-sec input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; }
.modal:has(.madde-sec) { width: min(1100px, 100%); }
.modal:has(.madde-sec) .modal-body { padding-top: 14px; }

/* toplantı odası (tam ekran) */
body.oda-acik { overflow: hidden; }
.oda { position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; background: #eef2f7; }
.oda-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; background: #0f2a4a; color: #fff; }
.oda-title { display: flex; align-items: center; gap: 14px; }
.oda-title b { display: block; font-size: 17px; }
.oda-title span { font-size: 13px; color: #b9c8dc; }
.oda-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.oda-ic svg { width: 20px; height: 20px; }
.oda-right { display: flex; align-items: center; gap: 12px; }
.oda-durum { padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 12.5px; font-weight: 600; }
.oda-durum.on { background: #1f9d63; }
.oda-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px 1fr 280px; gap: 16px; padding: 16px; }
.oda-sol, .oda-orta, .oda-sag { background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow-y: auto; }
.oda-h { padding: 14px 18px; font-weight: 700; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.oda-madde { display: flex; gap: 12px; width: 100%; text-align: left; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; font-family: inherit; }
.oda-madde:hover { background: #f6f9fd; }
.oda-madde.aktif { background: var(--primary-soft); box-shadow: inset 3px 0 0 var(--primary); }
.om-no { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #e3ebf5; color: var(--primary); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.om-t b { display: block; font-size: 13.5px; line-height: 1.35; }
.om-t span { font-size: 12px; color: var(--text-2); }
.oda-orta { padding: 26px 32px; }
.od-head h2 { margin: 4px 0 12px; font-size: 22px; line-height: 1.3; }
.od-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--text-2); font-size: 13.5px; margin-bottom: 18px; }
.od-meta span { display: inline-flex; align-items: center; gap: 6px; }
.od-konu { white-space: pre-line; line-height: 1.7; font-size: 15px; padding: 18px 20px; background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; }
.od-ek { margin-top: 20px; }
.od-label { font-weight: 700; margin-bottom: 8px; }
.oda-kisi { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.oda-kisi b { display: block; font-size: 13.5px; }
.oda-kisi span:not(.avatar) { font-size: 12px; color: var(--text-2); }
.oda-bos { padding: 24px; color: var(--text-2); }
@media (max-width: 1100px) { .oda-body { grid-template-columns: 260px 1fr; } .oda-sag { display: none; } }

.mp-join { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; background: var(--primary); color: #fff !important; font-weight: 700; letter-spacing: .3px; text-decoration: none; }
.mp-join svg { width: 18px; height: 18px; }
.mp-ek { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; margin: 0 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #f8fafc; cursor: pointer; }
.mp-ek:hover { border-color: var(--primary); }
.mp-ek b { display: block; font-size: 13.5px; }
.mp-ek span:not(.ek-ext) { font-size: 12px; color: var(--text-2); }

.mp-row .mp-ek { margin: 0; padding: 5px 12px 5px 6px; gap: 8px; }
.mp-row .mp-ek .ek-ext { width: 30px; height: 30px; font-size: 10px; }
.mp-row .mp-ek b { font-size: 12.5px; }
.mp-row .mp-ek span:not(.ek-ext) { font-size: 11.5px; }

.oda-body:has(.vgrid) { grid-template-columns: 340px 1fr 380px; }
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
.vtile { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #1b2a3f; display: grid; place-items: center; opacity: .5; }
.vtile.on { opacity: 1; box-shadow: 0 0 0 2px #1f9d63; }
.vtile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.vav { width: 54px; height: 54px; font-size: 18px; }
.vname { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.vname small { margin-left: auto; font-weight: 500; opacity: .85; }
.vdot { width: 8px; height: 8px; border-radius: 50%; background: #8a97a8; flex: none; }
.vtile.on .vdot { background: #35d07f; }
.vctl { padding: 4px 12px 14px; display: grid; gap: 8px; }

.vgrup { display: flex; justify-content: space-between; padding: 12px 16px 0; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--text-2); }
.vgrup span { font-weight: 600; letter-spacing: 0; text-transform: none; }

.od-duzen { margin-top: 20px; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; }
.od-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.od-f { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.od-full { grid-column: 1 / -1; }
.od-act { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.od-saved { margin-left: auto; color: #1f9d63 !important; }

.vbtns { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; z-index: 2; }
.vbtn { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(15,23,42,.65); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .12s; }
.vbtn:hover { background: rgba(15,23,42,.85); }
.vbtn.off { background: #d64545; }
.vic { width: 16px; height: 16px; }
.vic.off { color: #ff8a8a; }
.vbtn.off .vic { color: #fff; }
.vst { display: inline-flex; gap: 4px; margin-left: 4px; }
.vst .vic { width: 14px; height: 14px; }
.vn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vsim { position: absolute; inset: 0; display: grid; place-items: end center; color: rgba(255,255,255,.55); background: linear-gradient(120deg, #4c6a8f, #7b93b3, #5a7aa0); background-size: 220% 220%; animation: vsimbg 7s ease-in-out infinite; }
.vsim svg { width: 70%; height: 82%; }
.vlive { position: absolute; top: 9px; left: 10px; width: 9px; height: 9px; border-radius: 50%; background: #ff4d4d; animation: vpulse 1.4s ease-in-out infinite; }
@keyframes vsimbg { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes vpulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.od-oy { margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; }
.od-oybtn { display: flex; gap: 12px; }
.od-oybtn .btn { flex: 1; justify-content: center; padding: 12px; font-weight: 700; border: 2px solid transparent; background: #fff; }
.od-onay { color: #14663f; border-color: #bfe6d1 !important; }
.od-onay:hover:not(:disabled) { background: #e8f6ef; }
.od-onay.secili { background: #1f9d63 !important; color: #fff; border-color: #1f9d63 !important; }
.od-red { color: #902b21; border-color: #f2c7c3 !important; }
.od-red:hover:not(:disabled) { background: #fdecea; }
.od-red.secili { background: #d64545 !important; color: #fff; border-color: #d64545 !important; }
.od-oybtn .btn:disabled { opacity: .5; cursor: not-allowed; }
.oy-list { display: flex; flex-wrap: wrap; gap: 6px; }
.oy-chip { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.oy-chip.on { background: #e8f6ef; color: #14663f; }
.oy-chip.red { background: #fdecea; color: #902b21; }

.oda-madde.salt { cursor: default; }
.oda-madde.salt:hover:not(.aktif) { background: transparent; }
.om-acik { margin-left: auto; align-self: center; padding: 2px 8px; border-radius: 999px; background: #1f9d63; color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .4px; }
.oda-bekle { height: 100%; min-height: 360px; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--text-2); gap: 6px; }
.oda-bekle h3 { margin: 8px 0 0; color: var(--text); }
.oda-bekle p { margin: 0; max-width: 360px; }
.oda-bekle svg { width: 44px; height: 44px; color: var(--primary); opacity: .6; }

.oy-pano { margin: 0 0 16px; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: #fff; }
.oy-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.oy-head span { font-size: 12.5px; color: var(--text-2); }
.oy-cols { display: grid; grid-template-columns: 1fr 1fr; }
.oy-cols > div { padding: 12px 16px; }
.oy-cols > div + div { border-left: 1px solid var(--line); }
.oy-col-t { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.oy-col-t.on { color: #14663f; }
.oy-col-t.red { color: #902b21; }
.oy-bek { padding: 10px 16px 12px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.oy-chip.bek { background: #f1f4f8; color: var(--text-2); border: 1px solid var(--line); }

.oda-madde.kilit { opacity: .45; cursor: not-allowed; }
.oda-madde.kilit:hover { background: transparent; }
.om-bitti { margin-left: auto; align-self: center; padding: 2px 8px; border-radius: 999px; background: #e3ebf5; color: #1d5fa8; font-size: 10.5px; font-weight: 700; white-space: nowrap; }

.zorunlu { color: #c0392b; font-style: normal; }

.rol-chip { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #eef2f7; color: var(--text-2); font-size: 11px; font-weight: 600; vertical-align: 1px; }
.rol-chip.sek { background: #efe8fb; color: #5b3aa8; }
.yok-sag { display: grid; justify-items: end; gap: 4px; flex: none; }
.yok { padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #f1f4f8; color: var(--text-2); }
.yok.on { background: #e8f6ef; color: #14663f; }
.yok-btn { border: 0; background: transparent; color: var(--primary); font-size: 11.5px; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; }

.oy-elle { font-style: normal; font-size: 10.5px; opacity: .75; margin-left: 2px; }
.oy-mini { border: 0; width: 22px; height: 22px; margin-left: 4px; border-radius: 50%; font-size: 12px; font-weight: 700; cursor: pointer; line-height: 1; }
.oy-mini.on { background: #e8f6ef; color: #14663f; }
.oy-mini.red { background: #fdecea; color: #902b21; }
.oy-mini:hover { filter: brightness(.93); }
.oy-geri { border: 0; background: transparent; color: inherit; font-size: 15px; cursor: pointer; padding: 0 2px; line-height: 1; }

.sahip-list { display: grid; }
.sahip-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sahip-row:last-child { border-bottom: 0; }
.sahip-info { min-width: 220px; }
.sahip-info b { display: block; font-size: 14px; }
.sahip-info span { font-size: 12.5px; color: var(--text-2); }
.sahip-mad { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; }
.sahip-mad small { display: block; font-weight: 400; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.modal:has(.pdf-zemin) { width: min(900px, 100%); }
.pdf-zemin { background: #e3e8ef; border-radius: 10px; padding: 22px; max-height: 70vh; overflow: auto; }
.pdf-kagit { background: #fff; padding: 36px 40px; min-height: 420px; box-shadow: 0 2px 12px rgba(15, 23, 42, .18); }

.pdf-kagit { font-family: 'Segoe UI', Arial, sans-serif; color: #1c2a3a; }
.pdf-kagit h1 { font-size: 20px; margin: 0 0 4px; }
.pdf-kagit .alt { color: #667; margin-bottom: 22px; }
.pdf-kagit table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pdf-kagit th, .pdf-kagit td { border: 1px solid #cdd6e2; padding: 8px 10px; vertical-align: top; text-align: left; }
.pdf-kagit th { background: #f1f5f9; }
.pdf-kagit td.k { white-space: pre-line; line-height: 1.5; }
.pdf-kagit .not { margin-top: 18px; color: #667; font-size: 12px; }

.oda-kisi.soluk .avatar, .oda-kisi.soluk > div:nth-child(2) { opacity: .42; filter: grayscale(.4); }

.ad-satir { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.ad-satir b { display: inline; }
.ad-satir .rol-chip { margin-left: 0; }
.ad-satir { flex-wrap: nowrap; gap: 8px; min-width: 0; }
.ad-satir b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-satir .rol-chip { flex: none; }

.oda-body:has(.pgrid) { grid-template-columns: 340px 1fr 380px; }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px 14px; }
.pcard { border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; padding: 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.pcard.on { border-color: #1f9d63; box-shadow: 0 0 0 3px rgba(31, 157, 99, .12); }
.pc-top { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.pcard.soluk .pc-top { opacity: .42; filter: grayscale(.4); }
.pc-av { width: 46px; height: 46px; font-size: 15px; }
.pc-top b { font-size: 13.5px; line-height: 1.25; }
.pc-top .rol-chip { margin: 0; }
.pc-unvan { font-size: 12px; color: var(--text-2); line-height: 1.3; }
.pcard .yok-btn { margin-top: 2px; }

/* katılımcılar: ince uzun kartlar */
.pgrid { grid-template-columns: 1fr; gap: 8px; padding: 8px 12px 12px; }
.pcard { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; padding: 8px 12px; gap: 10px; border-radius: 10px; }
.pc-top { flex-direction: row; align-items: center; gap: 12px; min-width: 0; }
.pc-av { width: 36px; height: 36px; font-size: 13px; flex: none; }
.pc-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pc-satir { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; }
.pc-satir b { font-size: 14px; }
.pc-unvan { font-size: 12px; color: var(--text-2); line-height: 1.3; }
.pcard .yok-btn { margin: 0; flex: none; white-space: nowrap; }

/* katılımcı grup başlıkları (renkli bant) */
.vgrup { margin: 12px 12px 0; padding: 8px 14px; border-radius: 8px; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .4px; text-transform: none; align-items: center; }
.vgrup span { color: rgba(255, 255, 255, .9); font-weight: 600; }
.vgrup.g-sek { background: #0d6efd; }
.vgrup.g-kurul { background: #198754; }
.vgrup.g-kat { background: #fd7e14; }

.tbl tbody tr.row-ok td { background: #e6f5ec; }
.tbl tbody tr.row-ok:hover td { background: #d8efe2; }
.tbl tbody tr.row-ok td:first-child { box-shadow: inset 4px 0 0 #198754; }
.tbl tbody tr.row-no td { background: #fdeceb; color: #8a2b25; cursor: not-allowed; }
.tbl tbody tr.row-no:hover td { background: #fdeceb; }
.tbl tbody tr.row-no td:first-child { box-shadow: inset 4px 0 0 #d64545; }
.tbl tbody tr.row-no .sub { color: #b4524b; }

.om-konu { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; }
.od-head { margin-bottom: 14px; }
.od-head .od-meta { margin-top: 8px; margin-bottom: 0; }

.oy-not { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #fdecea; color: #7a251f; font-size: 12.5px; line-height: 1.45; }
.oy-not b { font-weight: 700; }

.chip-elle { background: #fff4e5 !important; }
.chip-x { border: 0; background: transparent; color: inherit; font-size: 15px; line-height: 1; cursor: pointer; padding: 0 0 0 4px; }
.chip-x:hover { color: #c0392b; }
