*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:#f4f6f8;color:#1f2933;line-height:1.5}
a{color:#1f3a5f}
.top{display:flex;justify-content:space-between;align-items:center;gap:.75rem 1.5rem;flex-wrap:wrap;padding:.75rem 1rem;background:#1f3a5f;color:#fff}
.top a{color:#fff;text-decoration:none;padding:.25rem .5rem;border-radius:4px}
.top a:hover{background:rgba(255,255,255,.15)}
.menu{display:flex;gap:.25rem;flex-wrap:wrap;flex:1}
.userbox{display:flex;align-items:center;gap:1rem}
main{max-width:1100px;margin:1.5rem auto;padding:0 1rem}
footer{max-width:1100px;margin:2rem auto;padding:0 1rem;color:#52606d;font-size:.9rem}
h1{font-size:1.4rem;margin:.25rem 0 1rem}
h2{font-size:1.1rem;margin:0 0 .75rem}
.card{background:#fff;border-radius:8px;padding:1.25rem;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.section{margin-bottom:1.25rem}
.narrow{max-width:420px;margin:2rem auto}
.form{max-width:640px;margin:0 auto}
label{display:block;margin:.75rem 0;font-weight:600}
input[type=text],input[type=password],input[type=date],input[type=tel],select,textarea{display:block;width:100%;padding:.6rem;margin-top:.25rem;border:1px solid #9aa5b1;border-radius:6px;font-size:1rem;font-family:inherit;background:#fff}
small{display:block;font-weight:400}
small.error,.error{color:#b91c1c}
.muted{color:#52606d}
.btn{display:inline-block;padding:.6rem 1.2rem;border:0;border-radius:6px;background:#1f3a5f;color:#fff;font-size:1rem;cursor:pointer;text-decoration:none}
.btn:hover{filter:brightness(1.15)}
.btn.small{padding:.25rem .6rem;font-size:.85rem}
.btn.secondary{background:#e4e7eb;color:#1f2933}
.btn.ok{background:#15803d}
.btn.danger{background:#b91c1c}
.buttons{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:1rem}
.buttons .right{margin-left:auto}
form.inline{display:inline}
button.link{background:none;border:0;padding:0 .25rem;color:inherit;text-decoration:underline;cursor:pointer;font-size:inherit}
footer button.link{color:#1f3a5f}
button.link.current{font-weight:700;text-decoration:none}
.flash{padding:.75rem 1rem;border-radius:6px;margin-bottom:1rem}
.flash.error{background:#fde8e8;color:#9b1c1c;border:1px solid #f5b5b5}
.flash.success{background:#def7ec;color:#03543f;border:1px solid #9be0c4}
.flash.info{background:#e1effe;color:#1e429f;border:1px solid #b6d3fb}
.banner{padding:1rem 1.25rem;border-radius:8px;font-size:1.15rem;font-weight:700;margin-bottom:1.25rem;color:#fff}
.banner.red{background:#c81e1e}
.banner.orange{background:#d97706}
.banner.green{background:#15803d}
.count{display:inline-block;min-width:1.6rem;padding:0 .4rem;border-radius:999px;background:#e4e7eb;font-size:.85rem;text-align:center}
.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:.95rem}
th,td{padding:.5rem .6rem;text-align:left;border-bottom:1px solid #e4e7eb;white-space:nowrap}
th{background:#f4f6f8;font-size:.85rem}
td.num{text-align:right}
td.days.expired{color:#c81e1e;font-weight:700}
td.days.urgent{color:#c2410c;font-weight:700}
td.actions{white-space:nowrap}
.filters{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem}
.filters input,.filters select{margin:0;width:auto;flex:1 1 180px}
.badge{padding:.1rem .5rem;border-radius:999px;font-size:.8rem;background:#e4e7eb}
.badge.active{background:#def7ec;color:#03543f}
.badge.lost{background:#fde8e8;color:#9b1c1c}
.badge.renewed{background:#e1effe;color:#1e429f}
@media (max-width:600px){.top{flex-direction:column;align-items:flex-start}}
