* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 14px; color: #111827; background: #F4F6F8; }
a { color: #0F766E; }
a:hover { color: #0B5A54; }
h1 { margin: 0; font-size: 26px; font-weight: 700; }
h2 { margin: 0; font-size: 16px; font-weight: 600; }
.muted { color: #5B6676; margin: 4px 0 0; }

.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 240px; max-width: 100%; background: #0B1F2A; color: #E6EEF2; padding: 24px 16px; display: flex; flex-direction: column; gap: 28px; }
.main { flex: 999 1 560px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.brand .logo { width: 34px; height: 34px; border-radius: 9px; background: #2DD4BF; color: #0B1F2A; font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.brand b { display: block; color: #fff; font-size: 16px; }
.brand small { color: #9FB1BB; font-size: 12px; }
.side nav { display: flex; flex-direction: column; gap: 4px; }
.side nav a { padding: 10px 12px; border-radius: 8px; color: #B9C7CF; text-decoration: none; font-weight: 500; }
.side nav a:hover { background: rgba(255,255,255,0.07); }
.side nav a.on { background: rgba(255,255,255,0.12); color: #fff; font-weight: 600; }
.side-foot { margin-top: auto; padding: 12px; border-radius: 10px; background: rgba(255,255,255,0.06); display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #9FB1BB; }
.side-foot b { color: #fff; font-size: 14px; }
.linklike { background: none; border: 0; padding: 0; color: #9FB1BB; font: inherit; text-decoration: underline; cursor: pointer; text-align: left; }

.head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid #CBD5E1; background: #fff; color: #111827; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.primary { background: #0F766E; border-color: #0F766E; color: #fff; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn.ok { border-color: #0F766E; color: #0F766E; }
.btn.danger { border-color: #B91C1C; color: #B91C1C; }

.banner { padding: 12px 16px; border-radius: 10px; background: #FEF3C7; color: #78350F; font-weight: 600; }
.msg { padding: 12px 16px; border-radius: 10px; font-weight: 500; background: #E0F2FE; color: #0C4A6E; }
.msg.success { background: #DCFCE7; color: #14532D; }
.msg.error { background: #FEE2E2; color: #7F1D1D; }
.msg.warning { background: #FEF3C7; color: #78350F; }

.cards { display: flex; flex-wrap: wrap; gap: 16px; }
.card { flex: 1 1 200px; background: #fff; border: 1px solid #E3E8EE; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.card .label { color: #5B6676; font-size: 13px; }
.card .value { font-size: 28px; font-weight: 700; }
.card .sub { color: #5B6676; font-size: 13px; }
.panel { background: #fff; border: 1px solid #E3E8EE; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cols { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.cols > .panel { flex: 1 1 360px; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 8px; border: 1px solid #CBD5E1; background: #fff; color: #111827; font-weight: 600; text-decoration: none; }
.tab.on { background: #0F766E; border-color: #0F766E; color: #fff; }
.search { display: flex; flex-wrap: wrap; gap: 8px; }
.search input { flex: 1 1 240px; min-height: 44px; padding: 0 14px; border: 1px solid #94A3B8; border-radius: 8px; font: inherit; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th { text-align: left; color: #5B6676; font-size: 12px; font-weight: 600; padding: 10px 8px; }
td { padding: 10px 8px; border-top: 1px solid #E3E8EE; vertical-align: middle; }
td small { display: block; color: #5B6676; font-size: 12px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.row-actions form { margin: 0; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #E3E8EE; color: #1F2937; }
.pill.active, .pill.yes { background: #DCFCE7; color: #14532D; }
.pill.due { background: #FEF3C7; color: #78350F; }
.pill.overdue, .pill.suspended, .pill.no { background: #FEE2E2; color: #7F1D1D; }
.pill.unmanaged { background: #E3E8EE; color: #374151; }

.form { max-width: 560px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; }
.field input[type=text], .field input[type=number], .field input[type=password], .field select, .field textarea { min-height: 44px; padding: 8px 12px; border: 1px solid #94A3B8; border-radius: 8px; font: inherit; background: #fff; }
.field input[type=checkbox] { width: 20px; height: 20px; }
.field .help { color: #5B6676; font-size: 12px; }
.field .error { color: #B91C1C; font-size: 13px; font-weight: 600; }
.checkrow { flex-direction: row; align-items: center; gap: 10px; }

.login { max-width: 380px; margin: 12vh auto; padding: 24px; background: #fff; border: 1px solid #E3E8EE; border-radius: 12px; display: flex; flex-direction: column; gap: 16px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #E3E8EE; }
.kv:first-of-type { border-top: 0; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
