/* vehicle intake: warnings, photo queue, main photo */
.crm-badge--state-error{background:var(--err-l);color:var(--err)}
.crm-field--warn input,.crm-field--warn select,.crm-field--warn textarea{border-color:#d9822b;box-shadow:inset 3px 0 0 #d9822b}
.crm-flag{margin:.3rem 0 0;padding:.35rem .55rem;border-radius:6px;background:#fdecdc;color:#8a3d00;font-size:.85rem;line-height:1.35}
.crm-queue{list-style:none;margin:.8rem 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:.5rem}
.crm-queue:empty{display:none}
.crm-queue li{position:relative;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff}
.crm-queue img{display:block;width:100%;height:84px;object-fit:cover}
.crm-queue button{position:absolute;top:4px;right:4px;min-width:32px;min-height:32px;border:0;border-radius:50%;background:rgba(14,26,43,.75);color:#fff;font-size:16px;line-height:1;cursor:pointer}
.crm-queue__info{grid-column:1/-1;font-size:.85rem;color:var(--muted)}
.crm-photos__main{display:flex;align-items:center;gap:.35rem;padding:.4rem .5rem;font-size:.85rem;cursor:pointer}
.crm-photos__main input{width:1.15rem;height:1.15rem}
.crm-manual-doc{margin:.3rem .3rem .3rem 0}
@media (max-width:640px){.crm-queue{grid-template-columns:repeat(3,1fr)}.crm-photos--intake{grid-template-columns:repeat(2,1fr)}}
.crm-grid-3{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;align-items:start}
.crm-grid-3 .crm-card{margin:0}
.crm-grid-3 .crm-inline{margin:0}

/* Business rules 08.10.2026: overdue rentals (after the grace period) in red */
.crm-tl-bar--late,.crm-month__ev--late{background:#c62828!important;color:#fff!important;border-color:#8e0000!important}
.crm-swatch--late{background:#c62828!important}
/* Customer request box on the booking page */
.crm-request{border-left:4px solid #c9a35a;padding:.75rem 1rem;background:#fff8e7;border-radius:6px;margin:0 0 1rem}
.crm-request dl{margin:.25rem 0 .75rem}

/* 0.6.1 agreements: inline remove button next to a driver */
.crm-inline{display:inline-block;margin:0 0 0 .5rem;vertical-align:middle}
.crm-inline .crm-btn{padding:.25rem .6rem}
/* 0.8.1: required fields, one-page booking process, printing */
.crm-req{color:#b42318;font-weight:700}
.crm-req-note{margin:.25rem 0 .75rem}
.rl-bk-req{margin-top:0}
.crm-flow{counter-reset:flowstep}
.crm-flow-step{border:1px solid #e3e6ec;border-radius:12px;margin:0 0 14px;background:#fff}
.crm-flow-step>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;padding:12px 16px;font-weight:700}
.crm-flow-step>summary::-webkit-details-marker{display:none}
.crm-flow-step>summary::before{counter-increment:flowstep;content:counter(flowstep);display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#14284b;color:#fff;font-size:13px;flex:none}
.crm-flow-step.is-done>summary::before{content:"\2713";background:#1f7a4d}
.crm-flow-step.is-current{border-color:#c9a14a;box-shadow:0 0 0 2px rgba(201,161,74,.25)}
.crm-flow-step>summary .crm-flow-state{margin-left:auto;font-weight:500;font-size:13px;color:#5b6475}
.crm-flow-body{padding:0 16px 16px}
/* 0.8.2: simple reservation page */
.sb-page{max-width:820px}
.sb-info{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:0}
.sb-info dt{font-size:12px;color:#5b6475;text-transform:uppercase;letter-spacing:.03em}
.sb-info dd{margin:2px 0 0;font-weight:600}
.sb-info small{display:block;font-weight:400;color:#5b6475}
.sb-step--done{background:#f3faf6}
.sb-done{margin:0;color:#1f7a4d;font-weight:700}
.sb-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;margin:0 0 14px}
.sb-check{display:flex;align-items:flex-start;gap:8px;font-weight:600;cursor:pointer}
.sb-check input{width:1.3rem;height:1.3rem;flex:none;margin-top:1px}
.sb-check small{font-weight:400;color:#5b6475}
.sb-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:0 0 12px}
.sb-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:14px}
.sb-actions .crm-btn[disabled]{opacity:.45;cursor:not-allowed}
.crm-field--optional label,.crm-field--optional input{color:#8a909c}
.crm-field--optional input{background:#f4f5f7;border-color:#dfe2e8}
.crm-opt{font-size:11px;font-weight:600;text-transform:uppercase;color:#8a909c;background:#eceef2;border-radius:4px;padding:1px 5px;margin-left:4px}
.sb-form .crm-sig canvas{width:100%;max-width:600px;height:auto;background:#fff;border:1px dashed #b8bfcc;border-radius:8px;touch-action:none}
@media (max-width:640px){.sb-actions .crm-btn{flex:1 1 100%;text-align:center}}
/* 0.8.3: pop-up for new reservations */
.rl-ntf{position:fixed;right:16px;bottom:16px;z-index:9999;display:flex;flex-direction:column;gap:10px;max-width:340px;width:calc(100% - 32px)}
.rl-ntf__card{background:#fff;border:2px solid #c9a14a;border-radius:12px;box-shadow:0 10px 30px rgba(20,40,75,.25);padding:14px 16px;animation:rlNtfIn .25s ease-out}
.rl-ntf__title{margin:0 0 4px;font-weight:700;color:#14284b}
.rl-ntf__no{margin:0 0 4px;font-size:18px;font-weight:700}
.rl-ntf__line{margin:0;color:#3d4657;font-size:14px}
.rl-ntf__act{display:flex;gap:8px;margin-top:10px}
@keyframes rlNtfIn{from{transform:translateY(12px);opacity:0}to{transform:none;opacity:1}}
/* 0.8.4: price to accept at the handover (reserved without prices) */
.sb-price-accept{margin:12px 0 0;padding:10px 14px;border-radius:10px;background:#FFF6E5;border:1px solid #E8C27A;color:#3D2A08}
