* { box-sizing: border-box; margin: 0; }
body { font-family: "Hiragino Sans", "Yu Gothic", sans-serif; background: #f3f5f7; color: #16325c; font-size: 13px; }
header { background: #16325c; color: #fff; display: flex; align-items: center; gap: 18px; padding: 0 16px; min-height: 46px; position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 14px; white-space: nowrap; }
.brand .env { font-weight: 400; font-size: 10px; opacity: .7; margin-left: 6px; }
nav { display: flex; gap: 0; height: 100%; flex-wrap: wrap; }
nav a { color: #cfd7e6; text-decoration: none; padding: 13px 9px; font-size: 12px; border-bottom: 3px solid transparent; white-space: nowrap; }
nav a.on, nav a:hover { color: #fff; border-bottom-color: #1ab9a3; }
main { padding: 18px 22px; }
h1 { font-size: 18px; margin-bottom: 12px; }
h1 .count { font-size: 13px; color: #54698d; font-weight: 400; margin-left: 8px; }
.crumb { color: #54698d; margin-bottom: 8px; }
.crumb a { color: #0070d2; text-decoration: none; }
.filters { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; flex-wrap: wrap; }
.filters input, .filters select { padding: 7px 10px; border: 1px solid #d8dde6; border-radius: 4px; font-size: 13px; min-width: 150px; }
.filters button, .btn { padding: 7px 14px; background: #0070d2; color: #fff; border: 0; border-radius: 4px; cursor: pointer; font-size: 13px; text-decoration: none; display: inline-block; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid #e0e5ee; border-radius: 6px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
.table-wrap table { border: 0; }
th, td { padding: 7px 10px; border-bottom: 1px solid #eef1f6; text-align: left; white-space: nowrap; }
th { background: #fafbfd; color: #54698d; font-size: 11px; font-weight: 600; position: sticky; top: 0; }
td a { color: #0070d2; text-decoration: none; }
td a:hover { text-decoration: underline; }
.r { text-align: right; }
tr:hover td { background: #f6f9fc; }
tr.total td { font-weight: 700; background: #eef4fb; }
td .sub { font-size: 10px; color: #8a94a6; }
.badge { color: #fff; border-radius: 10px; padding: 2px 9px; font-size: 11px; display: inline-block; }
.badge.ok { background: #2e9f6f; }
.badge.muted { background: #b0b8c4; }
.pager { margin: 12px 0; display: flex; gap: 14px; align-items: center; }
.pager a { color: #0070d2; text-decoration: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 14px; }
.card { background: #fff; border: 1px solid #e0e5ee; border-radius: 6px; padding: 14px 16px; margin-bottom: 14px; }
.card h2 { font-size: 13px; color: #54698d; border-bottom: 2px solid #eef1f6; padding-bottom: 8px; margin-bottom: 10px; }
.card.stat .big { font-size: 24px; font-weight: 700; padding: 6px 0; }
.card .table-wrap { border: 0; }
.ok-text { color: #2e9f6f; }
.warn-text { color: #d97706; }
.muted-text { color: #8a94a6; margin-top: 10px; }
.muted-text a { color: #0070d2; }
.fld { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dotted #eef1f6; gap: 10px; }
.fld span { color: #54698d; }
.mini td, .mini th { padding: 6px 8px; }
.cat { margin: 16px 0 6px; font-size: 13px; color: #16325c; }
.cat small { color: #8a94a6; font-weight: 400; margin-left: 8px; }
.lines td, .lines th { white-space: normal; }
.tl-track { position: relative; height: 16px; background: #f0f2f6; border-radius: 8px; min-width: 420px; }
.tl-seg { position: absolute; top: 0; height: 16px; border-radius: 8px; opacity: .85; }
.tl-legend { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; color: #54698d; font-size: 12px; }
.tl-legend span { width: 22px; height: 10px; border-radius: 5px; display: inline-block; margin-right: 4px; }
footer { text-align: center; color: #8a94a6; padding: 18px; font-size: 11px; }
.login-bg { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #16325c, #0d2240); }
.login-box { background: #fff; padding: 36px; border-radius: 10px; width: 320px; display: flex; flex-direction: column; gap: 12px; }
.login-box h1 { font-size: 20px; }
.login-box p { color: #54698d; font-size: 12px; }
.login-box input { padding: 10px; border: 1px solid #d8dde6; border-radius: 5px; }
.login-box button { padding: 10px; background: #0070d2; color: #fff; border: 0; border-radius: 5px; cursor: pointer; font-size: 14px; }
.err { color: #c0392b; font-size: 12px; }
.edit-btn { font-size: 12px; padding: 5px 12px; margin-left: 10px; vertical-align: middle; }
.muted-btn { background: #8a94a6; }
.edited { font-size: 11px; }
.edit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px 18px; background: #fff; border: 1px solid #e0e5ee; border-radius: 6px; padding: 18px; }
.edit-fld { display: flex; flex-direction: column; gap: 3px; }
.edit-fld span { color: #54698d; font-size: 11px; }
.edit-fld input, .edit-fld select, .edit-fld textarea { padding: 6px 8px; border: 1px solid #d8dde6; border-radius: 4px; font-size: 13px; font-family: inherit; }
.edit-fld.ov span { color: #d97706; font-weight: 600; }
.edit-fld.ov input, .edit-fld.ov select, .edit-fld.ov textarea { border-color: #d97706; background: #fffaf2; }
.edit-actions { margin-top: 14px; display: flex; gap: 10px; position: sticky; bottom: 0; background: #f3f5f7; padding: 10px 0; }
