:root { color-scheme: light; font-family: Tahoma, Arial, sans-serif; color: #242922; background: #f5f4ed; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.65; }
header { display: flex; justify-content: space-between; align-items: center; padding: 1rem max(5vw, 1rem); color: #fff; background: #23392d; }
header strong { font-size: 1.35rem; } header span { color: #dfc587; font-size: .9rem; margin-inline-start: .7rem; }
main { max-width: 1200px; margin: auto; padding: 1rem 1.25rem 3rem; }
h1,h2,h3 { line-height: 1.35; } h1 { margin: .7rem 0 1.15rem; }
#login { background: white; max-width: 480px; margin: 2rem auto; padding: 1.6rem; border-radius: 14px; }
.top,.actions,nav { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.top { justify-content: space-between; }
.grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: .75rem; align-items: end; }
.wide { grid-column: 1/-1; }
form { padding: .5rem 0 .85rem; }
label { display: grid; gap: .32rem; font-size: .9rem; }
.actions label { display: flex; align-items: center; }
input,select,textarea,button { font: inherit; }
input:not([type=checkbox]),select,textarea { width: 100%; padding: .5rem .65rem; border: 1px solid #aeb8af; border-radius: 6px; background: #fff; color: #232923; }
input[type=tel], input[type=number] { direction: ltr; text-align: right; }
button { cursor: pointer; border: 1px solid #365744; border-radius: 7px; color: white; background: #365744; padding: .4rem .8rem; }
button:disabled { opacity: .6; cursor: wait; }
button:focus-visible, summary:focus-visible { outline: 3px solid #ba8c39; outline-offset: 3px; }
nav button, #logout { background: transparent; color: inherit; border-color: currentColor; }
nav button[aria-current=true] { background: #e8dfc7; }
details,.table,.metrics > div { background: white; border: 1px solid #e1e3d9; border-radius: 10px; }
details { padding: .7rem .9rem; margin-block: .8rem; } summary { cursor: pointer; }
.filter { margin: 1rem 0; width: min(100%, 380px); }
.table { overflow-x: auto; margin-block: .7rem; }
.table > p { padding: .3rem 1rem; }
table { width: 100%; border-collapse: collapse; text-align: right; }
td,th { padding: .62rem .75rem; border-bottom: 1px solid #e8ebe4; white-space: nowrap; }
th { background: #eef1eb; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: .7rem; }
.metrics > div { padding: .7rem .9rem; } .metrics strong { display: block; font-size: 1.2rem; }
dialog { color: inherit; border: 0; padding: 1rem 1.25rem; width: min(700px, calc(100% - 1rem)); max-height: 92vh; border-radius: 12px; }
dialog::backdrop { background: #15231bb0; }
.keep { white-space: pre-wrap; overflow-wrap: anywhere; }
#status,#detail-status { color: #6d3619; } #status:empty,#detail-status:empty { display: none; }
