:root {
  /* Novawood Panel ile aynı renkler */
  --bg: #f3f5f7; --card: #ffffff; --text: #1f3a52; --muted: #6b7f95; --line: #dbe4ec;
  --brand: #4a6683; --brand-d: #3b5269; --navy: #1f3a52;
  --tint: #dde8f1; --cream: #faf9f6; --soft: #f0f4f8;
  --danger: #b42318; --ok: #1c8a2e;
}
* { box-sizing: border-box; margin: 0; }
body { font-family: system-ui, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
button, input, select, textarea { font: inherit; }
.hidden { display: none !important; }

.topbar { background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; gap: 12px; flex-wrap: wrap; }
.topbar .brand { display: flex; align-items: center; }
.topbar .brand img { height: 34px; display: block; }
.topbar .appname { font-weight: 700; margin-left: 12px; font-size: 15px; }
.topbar nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.topbar nav span { font-size: 14px; }
.topbar a, .topbar button { color: #fff; text-decoration: none; background: transparent; border: 1px solid #ffffff55; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.topbar a:hover, .topbar button:hover { background: #ffffff22; }
.topbar a.on { background: #ffffff2e; border-color: #ffffffaa; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 28px 20px; }

.center { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 32px; width: 100%; max-width: 380px; box-shadow: 0 8px 28px #0000000f; }
.logo-band { background: var(--brand); margin: -32px -32px 24px; padding: 22px 28px; border-radius: 14px 14px 0 0; text-align: center; }
.logo-band img { height: 44px; max-width: 100%; }
.box h1 { font-size: 22px; margin-bottom: 4px; }
.sub { color: var(--muted); margin-bottom: 20px; }

label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
input[type=text], input[type=password], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); }
label input, label select, label textarea { display: block; margin-top: 4px; }
textarea { resize: vertical; min-height: 84px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #4a668344; border-color: var(--brand); }
.btn { background: var(--brand); color: #fff; border: 0; padding: 10px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.btn:hover { background: var(--brand-d); }
.btn.full { width: 100%; margin-top: 18px; }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--soft); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: default; }
button.link { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; cursor: pointer; text-align: left; }
button.link:hover { text-decoration: underline; }
a { color: var(--brand); }
.linkrow { margin-top: 16px; font-size: 14px; text-align: center; }
.msg { margin-top: 12px; font-size: 14px; min-height: 18px; }
.msg.err { color: var(--danger); }
.meta { margin-top: 12px; font-size: 13px; color: var(--muted); }

.bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters input[type=search] { width: 280px; max-width: 100%; }
.filters select { width: auto; min-width: 150px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--brand); color: #fff; font-size: 13px; white-space: nowrap; }
tbody tr:nth-child(odd) { background: var(--cream); }
tbody tr:nth-child(even) { background: var(--tint); }
tr:last-child td { border-bottom: 0; }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: 12px; padding: 40px; text-align: center; color: var(--muted); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; border: 1px solid; }
.tag.off { background: #eceff2; color: #7a8794; border-color: #d5dbe1; }
.tag.adm { background: #f6e9cf; color: #8a5a14; border-color: #e6cf9f; }
.tag.ok { background: #e3f4e6; color: #1c6b2a; border-color: #b6dfbd; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: var(--muted); font-size: 14px; gap: 8px; flex-wrap: wrap; }
.pager .btns { display: flex; gap: 6px; }

.modal-bg { position: fixed; inset: 0; background: #0006; display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: #fff; border-radius: 14px; padding: 24px; width: 100%; max-width: 760px; max-height: 92vh; overflow-y: auto; }
.modal h3 { margin-bottom: 6px; }
.modal .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
fieldset { border: 0; padding: 0; min-width: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
label.check { display: flex; align-items: center; gap: 8px; color: var(--text); }
label.check input { margin: 0; }
@media (max-width: 640px) { .two { grid-template-columns: 1fr; } }
.shortcuts { display: flex; gap: 6px; flex-wrap: wrap; }
