:root { --accent: #1b5e8a; --ink: #1d2733; --mute: #5b6775; --line: #d8dee6; --bg: #f4f6f9; --ok: #1f7a4d; --bad: #b3261e; --warn: #9a6700; }
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
header.top { background: var(--accent); color: #fff; padding: 8px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
header.top img { height: 36px; background: #fff; border-radius: 4px; padding: 2px; }
header.top .name { font-size: 17px; font-weight: 600; }
header.top .who { margin-left: auto; font-size: 13px; display: flex; gap: 10px; align-items: center; }
header.top button { background: rgba(255,255,255,.18); color: #fff; border: 0; padding: 4px 10px; border-radius: 4px; cursor: pointer; }
nav.main { background: #fff; border-bottom: 1px solid var(--line); padding: 0 12px; display: flex; flex-wrap: wrap; }
nav.main a { padding: 10px 12px; color: var(--ink); font-weight: 500; border-bottom: 3px solid transparent; }
nav.main a.on { border-color: var(--accent); color: var(--accent); }
nav.main .sp { flex: 1; }
main { max-width: 1180px; margin: 16px auto; padding: 0 16px 40px; }
h1 { font-size: 20px; margin: 4px 0 14px; } h2 { font-size: 16px; margin: 18px 0 8px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 14px; }
.grid { display: grid; gap: 12px; } .g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } .g4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.stat b { display: block; font-size: 24px; } .stat span { color: var(--mute); }
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #eef2f6; font-weight: 600; font-size: 12.5px; color: var(--mute); text-transform: none; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 700; background: #f7f9fb; }
.flash { padding: 9px 12px; border-radius: 6px; margin-bottom: 10px; border: 1px solid; }
.flash.ok { background: #e8f5ee; border-color: #b8dfc9; color: var(--ok); } .flash.error { background: #fdecea; border-color: #f2b8b5; color: var(--bad); }
.banner { background: #fff4d6; border: 1px solid #f0d68a; color: var(--warn); padding: 9px 12px; border-radius: 6px; margin-bottom: 12px; }
form.inline { display: inline; }
label { display: block; font-size: 12.5px; color: var(--mute); margin-bottom: 2px; }
input[type=text], input[type=password], input[type=number], input[type=email], input[type=file], select, textarea {
  width: 100%; padding: 6px 8px; border: 1px solid #b9c3cf; border-radius: 5px; font: inherit; background: #fff; }
input[type=color] { width: 60px; height: 32px; padding: 0; border: 1px solid #b9c3cf; border-radius: 5px; }
.row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 10px; align-items: end; }
button, .btn { background: var(--accent); color: #fff; border: 0; padding: 7px 14px; border-radius: 5px; cursor: pointer; font: inherit; display: inline-block; }
button.sec, .btn.sec { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
button.danger { background: var(--bad); }
button:disabled { opacity: .5; cursor: not-allowed; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: #e6ebf1; }
.pill.ok { background: #dcf1e5; color: var(--ok); } .pill.bad { background: #fbdcd9; color: var(--bad); } .pill.warn { background: #fdecc0; color: var(--warn); }
.muted { color: var(--mute); } .right { text-align: right; } .nowrap { white-space: nowrap; }
.tape td, .tape th { padding: 3px 4px; text-align: center; font-size: 12px; min-width: 62px; border: 1px solid var(--line); }
.tape td.room { text-align: left; font-weight: 600; background: #f7f9fb; position: sticky; left: 0; }
.tape .res { background: #fff1c2; } .tape .occ { background: #cfe8f6; } .tape .blk { background: #e0e0e0; }
.tapewrap { overflow-x: auto; }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.room { background: #fff; border: 1px solid var(--line); border-left-width: 6px; border-radius: 6px; padding: 8px; }
.room.vacant_clean { border-left-color: #2e9e63; } .room.vacant_dirty { border-left-color: #d9a400; } .room.occupied { border-left-color: #2b6cb0; } .room.maintenance { border-left-color: #888; }
footer { text-align: center; color: var(--mute); font-size: 12px; padding: 14px; }
.doc { background: #fff; max-width: 820px; margin: 0 auto; padding: 24px; border: 1px solid var(--line); }
.doc h1 { text-align: center; margin: 0; } .doc .hd { text-align: center; margin-bottom: 12px; }
.doc .hd img { max-height: 70px; }
.noprint { }
@media print { header.top, nav.main, .noprint, footer.screen { display: none !important; } body { background: #fff; } main { margin: 0; max-width: none; padding: 0; } .doc { border: 0; padding: 0; } }
details > summary { cursor: pointer; color: var(--accent); margin: 6px 0; }
@media (max-width: 640px) { nav.main a { padding: 8px 9px; } th, td { padding: 5px 5px; } }

/* Login page */
body.login-page { background: #fff; }
body.login-page main { max-width: none; margin: 0; padding: 0; }
body.login-page main > .flash, body.login-page main > .banner { display: none; }
body.login-page footer.screen { position: fixed; right: 0; bottom: 0; background: transparent; padding: 10px 20px; }
.lg { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.lg-brand { background: radial-gradient(900px 500px at 15% 10%, #1f6f9f 0%, rgba(31,111,159,0) 60%), linear-gradient(160deg, #0f3d57 0%, #0b2c40 100%); color: #fff; padding: 40px 56px; display: flex; flex-direction: column; justify-content: space-between; }
.lg-mark { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; letter-spacing: .2px; }
.lg-mark-s { display: none; color: #0f3d57; margin-bottom: 18px; }
.lg-copy h2 { font-size: 36px; line-height: 1.15; margin: 0 0 16px; font-weight: 650; letter-spacing: -.3px; }
.lg-copy p { font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.8); max-width: 420px; margin: 0 0 22px; }
.lg-copy ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lg-copy li { padding-left: 28px; position: relative; color: rgba(255,255,255,.92); }
.lg-copy li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #f2b84b; box-shadow: inset 0 0 0 4px #0f3d57, 0 0 0 1.5px #f2b84b; }
.lg-foot { font-size: 12.5px; color: rgba(255,255,255,.6); }
.lg-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px 60px; background: #f7f9fc; }
.lg-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid #e3e8ef; border-radius: 16px; padding: 34px 32px 30px; box-shadow: 0 12px 40px rgba(15,61,87,.10); }
.lg-card h1 { font-size: 26px; margin: 0 0 6px; letter-spacing: -.2px; }
.lg-card > .muted { margin: 0 0 22px; }
.lg-card label { font-weight: 600; color: #3a4654; margin: 14px 0 6px; font-size: 13px; }
.lg-card input[type=text], .lg-card input[type=password] { padding: 11px 12px; font-size: 15px; border: 1px solid #c6cfda; border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.lg-card input:focus { outline: none; border-color: #1f6f9f; box-shadow: 0 0 0 4px rgba(31,111,159,.15); }
.lg-pw { position: relative; }
.lg-pw input { padding-right: 62px; }
.lg-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: transparent; color: #1b5e8a; padding: 6px 10px; font-size: 13px; font-weight: 600; border-radius: 8px; }
.lg-eye:hover { background: #eef3f8; }
.lg-go { width: 100%; margin-top: 24px; padding: 12px; font-size: 15.5px; font-weight: 600; background: linear-gradient(180deg, #1f6f9f, #0f3d57); border-radius: 10px; box-shadow: 0 6px 16px rgba(15,61,87,.25); transition: transform .1s, box-shadow .15s; }
.lg-go:hover { box-shadow: 0 8px 20px rgba(15,61,87,.32); } .lg-go:active { transform: translateY(1px); }
@media (max-width: 860px) { .lg { grid-template-columns: 1fr; } .lg-brand { display: none; } .lg-mark-s { display: flex; } .lg-form { align-items: flex-start; padding-top: 48px; min-height: 100vh; } }
