:root{font:15px system-ui,Arial,sans-serif;color:#19392e;background:#f5f9f6}*{box-sizing:border-box}body{margin:0}.top{background:linear-gradient(100deg,#fff 10%,#e3f0dc);border-bottom:1px solid #d8e6d8;padding:12px 24px;display:flex;align-items:center;justify-content:space-between}.logo{font:bold 28px Georgia,serif;color:#d00083;letter-spacing:1px}.subtitle{font-size:12px;color:#59716a}.userbox{display:flex;align-items:center;gap:12px}.nav{display:flex;gap:12px;flex-wrap:wrap;background:white;border-bottom:1px solid #d5e5d9;padding:0 20px}.nav a{display:inline-block;padding:16px 12px;color:#19392e;text-decoration:none;font-weight:700}.nav a.active{color:#007c4d;border-bottom:3px solid #007c4d}main{padding:28px;max-width:1700px;margin:auto}h1{font-size:27px;margin:8px 0 14px}h2{font-size:20px}p,.muted{color:#637c70}.panel{background:#fff;border:1px solid #d9e5dc;border-radius:12px;padding:22px;margin:16px 0;box-shadow:0 2px 8px #173b2510}.narrow{max-width:560px;margin:35px auto}label{display:block;font-weight:650;margin:10px 0}input,select{display:block;width:100%;padding:11px;margin:6px 0 13px;border:1px solid #c6d7cb;border-radius:7px;background:white;color:#1b3c2f}button,.btn{display:inline-block;background:#00784b;color:#fff;border:0;border-radius:7px;padding:11px 15px;text-decoration:none;font-weight:700;cursor:pointer;font-size:14px}.secondary{background:#e8f1ea;color:#075b3b}.selected{background:#006f46;color:white}.inline{display:inline-flex;align-items:center;gap:7px;margin:2px}.inline input{width:auto;margin:0}.inline button{padding:7px 10px;font-size:12px}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.toolbar{display:flex;gap:25px;align-items:center;flex-wrap:wrap}.toolbar form{display:flex;align-items:end;gap:12px}.toolbar input{margin:4px 0}.buttons,.tabs{display:flex;gap:8px;flex-wrap:wrap}.tabs{margin:16px 0}table{border-collapse:collapse;width:100%}td,th{padding:11px;border-bottom:1px solid #e0eae2;text-align:left;vertical-align:middle}th{background:#eaf3ed}.plate{display:inline-block;background:#ffd12d;color:#17291e;padding:5px 7px;border-radius:4px;font-weight:900;white-space:nowrap}small{display:block;font-size:11px;font-weight:400;margin-top:7px;line-height:1.5}.table-wrap{overflow:auto}.message{padding:13px 16px;border-radius:8px;margin:12px 0}.error{background:#ffebea;color:#9d2020}.ok{background:#e6f5e9;color:#166338}details{border:1px solid #d6e5db;border-radius:8px;padding:14px;margin:12px 0}summary{cursor:pointer;font-weight:700;color:#087448}.calendar-scroll{overflow:auto;border:1px solid #dce8df;border-radius:10px;background:white}.calendar{width:max-content;min-width:100%;table-layout:fixed}.calendar th:first-child{position:sticky;left:0;z-index:3;background:#eaf3ed;min-width:225px;max-width:225px}.calendar .hour{min-width:33px;width:33px;padding:12px 0;border-right:1px solid #dfece3}.calendar .reserved{background:#78dca1}.calendar .blocked{background:#f2bb6c}.calendar tbody tr{height:76px}.calendar tbody tr:nth-child(even){background:#f7fbf8}.calendar thead th{font-size:12px;text-align:center}@media(max-width:700px){main{padding:12px}.top{padding:10px}.logo{font-size:20px}.heading{align-items:start;flex-direction:column}.panel{padding:12px}.nav{gap:0}.nav a{font-size:12px;padding:12px 8px}}

.fleet-calendar {--hour: 38px; width: max-content; border-collapse: separate; border-spacing: 0}
.fleet-calendar td, .fleet-calendar th {white-space: nowrap}
.fleet-calendar .fleet-hour {min-width: var(--hour); padding: 6px 0; text-align: center; font-size: 11px}
.fleet-calendar tr[hidden] {display: none}
.vehicle-photo {display: block; width: 64px; height: 42px; object-fit: contain}
.fleet-calendar .fleet-track {position: relative; min-width: calc(var(--hours) * var(--hour)); height: 64px; padding: 0; background: repeating-linear-gradient(to right,#e6f5e9 0 calc(var(--hour) - 1px),#d1e4d7 calc(var(--hour) - 1px) var(--hour))}
.fleet-event {position: absolute; top: 12px; height: 39px; left: var(--from); width: var(--width); min-width: 2px; color: #fff; border-radius: 5px; padding: 0 6px; line-height: 39px; overflow: hidden; text-overflow: ellipsis; text-decoration: none; font-size: 12px}
.fleet-event.own {background: #245e9e}
.fleet-event.other {background: #684397}
.fleet-event.maintenance {background: #56616b}
.fleet-filter {margin: 0; padding: 0; border: 0}
.fleet-filter summary[data-count]:not([data-count=""])::after {content: ' (' attr(data-count) ')'}
.fleet-filter div {position: absolute; z-index: 5; background: white; border: 1px solid #d6e5db; border-radius: 6px; padding: 10px; max-height: 235px; overflow: auto}
.fleet-filter label {display: flex; align-items: center; gap: 7px; margin: 5px 0}
.fleet-filter input {width: auto; margin: 0}
.fleet-empty {padding: 10px}
