*{box-sizing:border-box}body{margin:0;background:#f2f6f3;color:#20382c;font:15px system-ui,-apple-system,Segoe UI,sans-serif}header{background:#fff;border-bottom:3px solid #197347;padding:14px max(20px,4vw);display:flex;justify-content:space-between;align-items:center;gap:15px}.brand{display:flex;align-items:center;gap:18px}.brand img{width:155px;max-height:76px;object-fit:contain}.brand strong{display:block;font-size:30px;color:#176b43;letter-spacing:2px}.brand small{font-size:12px;color:#587061}.user{display:flex;gap:12px;align-items:center}nav{background:#176b43;padding:12px max(20px,4vw);display:flex;gap:24px;flex-wrap:wrap}nav a{color:#fff;text-decoration:none;font-weight:600}main{max-width:1300px;margin:28px auto;padding:0 20px;min-height:75vh}h1{font-size:25px}h2{font-size:18px;margin-top:0}.panel{background:#fff;padding:22px;border:1px solid #d9e7de;border-radius:13px;margin:18px 0;box-shadow:0 3px 12px #163d2610}.narrow{max-width:440px;margin:30px auto}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.stats>div{background:#fff;border:1px solid #dce9df;border-radius:12px;padding:20px}.stats small{display:block;color:#6a8071}.stats b{display:block;font-size:32px;color:#176b43;margin-top:7px}table{width:100%;border-collapse:collapse;background:white}th{text-align:left;background:#eaf3ed;color:#205e3e}th,td{padding:12px;border-bottom:1px solid #e2ebe5;vertical-align:top}td small{display:block;color:#6a8071}.scroll{overflow:auto}.tag{display:inline-block;border-radius:20px;padding:5px 10px;font-weight:700;white-space:nowrap}.success{background:#d9f4e3;color:#14643a}.warning{background:#fff0c8;color:#8b5a00}.danger{background:#ffe0e0;color:#b12020}button,.btn{display:inline-block;border:0;border-radius:8px;background:#176b43;color:white;padding:11px 17px;cursor:pointer;text-decoration:none;font:inherit;font-weight:600}button.secondary{background:#e8f0e9;color:#21563b}.dangerbutton{background:#a92929}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}label{display:block;font-weight:600}input,select{display:block;width:100%;padding:11px;margin:7px 0;border:1px solid #b8c9bd;border-radius:7px;font:inherit}label.wide{grid-column:span 2}.notice{padding:13px;background:#e5f3eb;border-radius:9px}.error{color:#b12020}footer{text-align:center;padding:25px;color:#688172}@media(max-width:750px){.stats{grid-template-columns:1fr 1fr}.formgrid{grid-template-columns:1fr}label.wide{grid-column:span 1}.brand img{width:85px}.brand strong{font-size:23px}.user{display:block}}
/* Увеличенное наименование предприятия в шапке */
.brand .enterprise{display:block;font-size:clamp(19px,2.4vw,30px);font-weight:800;letter-spacing:.7px;line-height:1.2;color:#176b43;margin-bottom:4px}
.brand strong{font-size:clamp(25px,2.8vw,34px)}
@media(max-width:750px){header{align-items:flex-start;flex-direction:column}.brand{gap:10px}.brand .enterprise{font-size:20px}.brand strong{font-size:26px}}

/* Original enterprise banner, larger and uncropped */
.brand img { width: 260px; max-width: 42vw; height: auto; object-fit: contain; }

/* v12: prominent original banner without cropping */
header{align-items:center;gap:25px}.brand{gap:22px}.brand img{width:460px;max-width:48vw;max-height:none;height:auto;object-fit:contain}.brand strong{font-size:38px}.brand small{font-size:14px}.user{flex-shrink:0}@media(max-width:850px){header{flex-direction:column;align-items:flex-start}.brand{flex-wrap:wrap}.brand img{width:min(100%,460px);max-width:100%}.brand strong{font-size:30px}}

/* v13: large color-coded duration counters */
.stats-duration{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:20px}
.stats-duration>div{border-width:2px;min-height:150px;padding:20px 22px}
.stats-duration small{font-size:15px;font-weight:750;color:inherit}
.stats-duration b{font-size:48px;line-height:1.2;margin-top:10px;color:inherit}
.stats-duration span{display:block;font-size:12px;margin-top:5px;color:inherit;opacity:.83}
.stats-duration .stat-total{background:#eaf0f5;border-color:#b6c8d7;color:#234b66}
.stats-duration .stat-green{background:#dcf6e5;border-color:#74cb96;color:#116238}
.stats-duration .stat-yellow{background:#fff1c7;border-color:#e8bb49;color:#855400}
.stats-duration .stat-red{background:#ffe1df;border-color:#e8938b;color:#a62620}
@media(max-width:1000px){.stats-duration{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.stats-duration>div{padding:14px;min-height:125px}.stats-duration b{font-size:40px}.stats-duration small{font-size:13px}}

/* v14: highlight the complete vehicle row, not just the duration badge */
table tbody tr.vehicle-green>td{background:#dcf6e5;color:#164e30;border-bottom-color:#a6dfb8}
table tbody tr.vehicle-yellow>td{background:#fff1c7;color:#674b09;border-bottom-color:#e9d58d}
table tbody tr.vehicle-danger>td{background:#ffe1df;color:#842721;border-bottom-color:#e8b0aa}
table tbody tr.vehicle-row:hover>td{filter:brightness(.965)}
table tbody tr.vehicle-row td:first-child{border-left:5px solid transparent}
table tbody tr.vehicle-green td:first-child{border-left-color:#1e9550}
table tbody tr.vehicle-yellow td:first-child{border-left-color:#c99511}
table tbody tr.vehicle-danger td:first-child{border-left-color:#c53b32}

.note-form{display:flex;flex-direction:column;gap:6px;min-width:210px}.note-form textarea{width:100%;min-height:70px;resize:vertical;box-sizing:border-box}.note-form button{align-self:flex-start}.scroll td{vertical-align:top}
