/* Rotta Clara · identidade de avaliação, baseada na apresentação de conceito. */
:root {
  --navy: #072b59;
  --navy-dark: #052247;
  --green: #00c394;
  --ink: #12345a;
  --muted: #61758c;
  --teal: #007e61;
  --line: #dfe7ef;
  --bg: #f3f6fa;
  --red: #b72c42;
}
body { font-family: 'Segoe UI', Arial, sans-serif; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, .buttonlink { transition: background .16s, border-color .16s, box-shadow .16s; border-radius: 10px; }
button:hover { background: #eef8f4; border-color: #6bb7a4; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #04b98e; outline-offset: 3px; }
button.primary, .primary { background: var(--green); border-color: var(--green); color: var(--navy-dark); font-weight: 750; }
button.primary:hover { background: #00ae83; border-color: #00ae83; box-shadow: 0 4px 12px #00a57b25; }
.ui-icon { width: 21px; height: 21px; flex: 0 0 21px; vertical-align: middle; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0; color: white; letter-spacing: -.8px; font-size: 25px; line-height: 1; white-space: nowrap; }
.brand img { width: 43px; height: 43px; border-radius: 12px; object-fit: cover; }
.brand>span { font-weight: 750; }
.brand-clara { font-weight: 450; margin-left: 4px; }
.brand small { display: block; margin-top: 8px; font-size: 8px; letter-spacing: 2.2px; color: #a8c6de; font-weight: 500; }
.brand-compact { color: var(--navy); font-size: 21px; gap: 8px; }
.brand-compact img { width: 33px; height: 33px; border-radius: 9px; }
.brand-compact small { display: none; }
.shell { grid-template-columns: 242px minmax(0, 1fr); }
.shell>main { min-width: 0; }
.sidebar { background: var(--navy); padding: 32px 18px 24px; gap: 6px; }
.sidebar>.brand { margin: 0 4px 36px; }
.nav-caption { color: #96b1cc; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; padding: 0 15px 12px; }
.sidebar button { color: #c4d5e7; display: flex; align-items: center; gap: 12px; padding: 14px; font-size: 13px; border-radius: 10px; }
.sidebar button:hover { background: #ffffff0c; color: white; }
.sidebar button.active { background: #00c39419; color: #7df2cf; box-shadow: inset 3px 0 0 var(--green); }
.sidefoot { padding: 32px 14px 0; }
.sidefoot .badge { color: #7df2cf; background: #00c39419; border: 1px solid #00c39440; letter-spacing: .7px; font-size: 9px; }
.sidefoot p { font-size: 15px; line-height: 1.5; color: #e3edf6; }
.sidefoot small { color: #9bb7d0; font-size: 10px; }
.topbar { padding: 16px 30px; min-height: 80px; }
.topbar>div>small { font-size: 9px; letter-spacing: 1.6px; font-weight: 700; }
.topbar select { padding-left: 0; margin-top: 0; font-size: 14px; }
.avatar { background: #e2f7f0; color: var(--teal); border: 1px solid #caede0; width: 39px; height: 39px; }
.topbar .user { font-size: 12px; }
.topbar .user button { margin-left: 8px; font-size: 11px; }
.demo { display: flex; align-items: center; gap: 10px; padding: 10px 30px; font-size: 11px; color: #526a7e; background: #eaf2f8; border-color: #dbe7f0; }
.demo b { color: var(--navy); font-size: 9px; letter-spacing: 1px; }
.demo-dot { background: #00a77d; width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px; }
.content { padding: 30px; max-width: 1920px; }
h1 { color: var(--navy); font-size: clamp(26px, 2.1vw, 34px); letter-spacing: -1.1px; font-weight: 720; line-height: 1.18; }
h2, h3 { color: var(--navy); font-weight: 700; }
h2 { font-size: 17px; letter-spacing: -.35px; }
h3 { font-size: 14px; }
.heading { margin-bottom: 26px; }
.heading>div>small { color: #6a8096; font-size: 9px; font-weight: 750; letter-spacing: 1.6px; }
.heading p { font-size: 13px; margin-top: 10px; max-width: 670px; }
.heading .actions button { font-size: 12px; padding: 11px 16px; }
.stats { gap: 14px; margin-bottom: 22px; }
.card, .stat { border-radius: 15px; border-color: #e0e7ef; box-shadow: 0 3px 12px #15335403; }
.stat { padding: 19px 21px; position: relative; overflow: hidden; }
.stat:before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: #cedceb; }
.stat:first-child:before { background: var(--green); }
.stat>small:first-child { font-size: 9px; letter-spacing: .9px; font-weight: 700; }
.stat strong { font-size: 35px; color: var(--navy); margin: 8px 0 7px; font-weight: 650; }
.badge { border-radius: 6px; background: #dff6ec; color: #00674f; padding: 5px 8px; font-size: 10px; }
.badge.gray { background: #edf2f7; color: #5b7189; }
.badge.warn { background: #fff2d9; color: #895707; }
.workspace { grid-template-columns: minmax(210px, 235px) minmax(270px, 1fr) minmax(235px, 270px); gap: 14px; }
.card { padding: 22px; }
.routes { padding: 18px 14px; }
.routes>.row { padding: 0 4px 4px; }
.routes>.row small { font-size: 10px; }
.route { padding: 16px 13px; border-radius: 11px; margin-top: 11px; }
.route b { font-size: 14px; }
.route small { font-size: 10px; line-height: 1.6; }
.route.selected { background: #effaf5; border-color: #58b99d; box-shadow: inset 3px 0 var(--green); }
.route .row>span:last-child { font-weight: 750; color: var(--navy); }
.map { border-radius: 15px; min-height: 470px; }
.maptag, .maplegend, .geo-title, .geo-caption { border: 1px solid #e1e9ef; color: var(--navy); box-shadow: 0 4px 16px #082b5910; }
.maptag { font-weight: 700; letter-spacing: .6px; font-size: 9px; }
.maplegend { flex-wrap: wrap; gap: 6px 16px; }
.geo-title { font-weight: 700; border-radius: 7px; }
.geo-caption { border-radius: 7px; line-height: 1.5; }
.vehicle-pin { background: var(--navy); border-radius: 10px; }
.next { background: #e9f8f1; border: 1px solid #d5eee2; border-left: 3px solid var(--green); border-radius: 10px; padding: 15px; }
.next>small:first-child { color: #006c51; font-size: 9px; font-weight: 750; letter-spacing: 1px; }
.eta { background: #f1f5fa; border: 1px solid #e3eaf3; border-radius: 11px; }
.eta strong { font-size: 35px; letter-spacing: -1px; line-height: 1.1; color: var(--navy); }
.eta>small:first-child { font-size: 10px; }
.eta.late { background: #fff0ec; border-color: #f2d8d1; color: #a73529; }
.eta.late strong { color: #a73529; }
.detail>small { font-size: 11px; }
.detail .row { flex-wrap: wrap; }
.detail .row h2 { margin-bottom: 0; }
.detail .row { margin-bottom: 12px; }
.detail>button { font-size: 12px; }
.stops li { padding: 16px 0; align-items: flex-start; }
.stops li button { padding: 5px 10px; }
.stops li b { font-size: 13px; }
.stops li small { font-size: 11px; line-height: 1.6; }
.num { background: #e0f5eb; color: #007653; width: 29px; height: 29px; font-size: 12px; }
.bottomgrid { gap: 16px; margin-top: 22px; }
.event { padding: 15px 0; font-size: 13px; }
.event small { line-height: 1.7; font-size: 11px; }
.notice { background: #edf3fa; color: #425f7c; font-size: 12px; border: 1px solid #e0e9f3; border-radius: 10px; }
.notice.amber { background: #fff7e9; border-color: #f0e2c4; color: #88621e; }
.notice.red { border-color: #f1d1d8; }
.routes .notice { font-size: 10px; padding: 12px; }
label { color: var(--navy); font-size: 12px; }
input, select, textarea { border-radius: 9px; padding: 12px; border-color: #d4dfea; color: #22415f; background: #fff; }
input:hover, select:hover, textarea:hover { border-color: #91a8c1; }
input:focus, select:focus, textarea:focus { border-color: #009f79; }
.editgrid { gap: 22px; grid-template-columns: minmax(0, 1fr) 320px; }
.editgrid>aside>.card { padding: 22px; }
.stopedit { padding: 22px; border-radius: 13px; border-color: #dfe7ef; margin: 14px 0; }
.stopedit .actions { margin-top: 16px; }
.stopedit .actions button, .stopedit .buttonlink { font-size: 12px; }
.tablewrap { padding: 22px; }
th { padding: 16px 12px; background: #f5f8fb; color: #61778e; font-size: 10px; letter-spacing: .8px; }
td { padding: 18px 12px; }
tbody tr:hover { background: #f8fbfd; }
.phonearea { grid-template-columns: minmax(320px, 420px) minmax(280px, 550px); gap: 34px; }
.phone { border-color: var(--navy); padding: 21px; border-radius: 34px; box-shadow: 0 20px 55px #072b5915; }
.phone .head { flex-wrap: wrap; gap: 14px; padding-top: 8px; }
.phone .head .badge { font-size: 9px; }
.phone h1 { font-size: 24px; }
.phone .notice { font-size: 11px; }
.phone .map { border-radius: 12px; }
.drivealert { border: 1px solid #b72c42; background: #b72c42; border-radius: 12px; }
.voice i { background: #00a780; }
.camera { background: linear-gradient(145deg, #072b59, #0e3a6c); border: 1px solid #1c477a; border-radius: 13px; min-height: 230px; }
.camera strong { color: #54dfb5; }
.camera small { color: #aac5e2; }
dialog { padding: 28px; border: 0; border-radius: 18px; box-shadow: 0 24px 100px #05224740; }
dialog::backdrop { background: #05224799; backdrop-filter: blur(4px); }
dialog>.row { margin-bottom: 15px; }
dialog .row>button { padding: 6px 12px; }
#toast { background: var(--navy); border-left: 4px solid var(--green); box-shadow: 0 10px 35px #072b592b; line-height: 1.6; }
.address-options { border-color: #c7ddd4; box-shadow: 0 8px 24px #082b590b; }
.address-option { font-size: 12px; }
.address-option[aria-selected=true] { background: #e2f7ee; }
.buttonlink { color: #007858; background: #edf9f3; font-size: 12px; border-color: #b9dfcd; }
footer { font-size: 10px; color: #778ba0; padding: 18px 0 4px; border-top: 1px solid var(--line); margin-top: 30px; }
.empty { line-height: 1.7; padding: 45px 20px; }
/* Acesso: o logo original tem seu próprio campo claro, como na capa do conceito. */
.login { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: white; }
.loginhero { padding: 0; background: var(--navy); display: flex; flex-direction: column; overflow: hidden; }
.loginhero:after { content: none; }
.logo-paper { background: #fffefe; padding: 30px 44px; border-bottom: 5px solid var(--green); }
.logo-paper img { width: 100%; height: auto; max-height: 210px; object-fit: contain; display: block; }
.login-story { position: relative; flex: 1; padding: 52px clamp(32px, 4.7vw, 78px) 36px; overflow: hidden; }
.login-story:after { content: ''; position: absolute; pointer-events: none; width: 560px; height: 560px; border: 1px solid #00c39426; border-radius: 50%; right: -380px; bottom: -180px; box-shadow: 0 0 0 65px #00c39408, 0 0 0 130px #00c39405; }
.eyebrow { font-size: 10px; font-weight: 750; letter-spacing: 1.8px; color: #6a8198; display: flex; gap: 9px; align-items: center; }
.login-story>.eyebrow { color: #a5e9d7; font-size: 9px; }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.loginhero h1 { color: white; font-size: clamp(36px, 3.6vw, 55px); line-height: 1.13; margin: 25px 0 19px; letter-spacing: -1.8px; }
.loginhero h1 em { color: #52e0b9; font-style: normal; }
.loginhero p { font-size: 15px; color: #bdd0e3; line-height: 1.8; margin: 0; }
.journey { margin: 35px 0 38px; display: flex; align-items: center; gap: 14px; max-width: 470px; }
.journey>span { color: #54d6b5; font-size: 10px; }
.journey b { color: #e0ebf6; display: block; margin-top: 7px; font-weight: 500; font-size: 11px; }
.journey i { height: 1px; background: #3c6383; flex: 1; min-width: 15px; }
.login-note { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.login-note .badge { background: #00c39415; border: 1px solid #00c39450; color: #8aeacc; font-size: 9px; letter-spacing: .8px; }
.login-note small { color: #92b1cc; font-size: 10px; }
.loginform { padding: 42px; }
.loginform>div { width: min(100%, 420px); }
.loginform h1 { font-size: 33px; margin: 13px 0 13px; }
.loginform>.eyebrow { font-size: 9px; }
.loginform p { font-size: 13px; line-height: 1.75; }
.rolecards { gap: 10px; margin: 25px 0; }
.rolecards button { padding: 18px 14px; display: flex; text-align: left; align-items: flex-start; gap: 10px; border: 1px solid #dbe4ed; position: relative; min-height: 99px; }
.rolecards .selected { background: #effbf5; border: 1px solid #00a87c; box-shadow: 0 0 0 1px #00a87c; }
.rolecards .ui-icon { color: #007c5b; width: 20px; height: 20px; }
.rolecards button b { font-size: 13px; }
.rolecards small { display: block; font-size: 10px; font-weight: 400; margin-top: 8px; line-height: 1.5; }
.rolecards i { width: 8px; height: 8px; border: 1px solid #b3c4d5; border-radius: 50%; position: absolute; right: 12px; top: 12px; }
.rolecards .selected i { background: #00a378; border-color: #00a378; }
.loginform label { font-size: 11px; margin-bottom: 18px; }
.loginform select { font-size: 12px; padding: 13px; }
.enter-demo { padding: 14px 17px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-top: 7px; }
.login-disclaimer { margin-top: 24px; background: #f3f6fa; font-size: 11px; border: 0; }
.login-bottom { display: flex; gap: 8px; align-items: center; margin-top: 22px; color: #6a8198; }
.login-bottom .ui-icon { width: 16px; height: 16px; flex-basis: 16px; }
.login-bottom small { font-size: 10px; }
.tv-brand { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.tv .workspace { grid-template-columns: minmax(250px, 290px) minmax(300px, 1fr) minmax(280px, 330px); }
.tv .map { min-height: 62vh; }
.tv .demo { justify-content: center; }
@media(min-width:1800px) { .tv .route small, .tv .detail small { font-size: 15px; } .tv .route b { font-size: 18px; } }
@media(max-width:1280px) {
  .shell { grid-template-columns: 218px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .sidebar>.brand { font-size: 23px; gap: 8px; }
  .sidebar button { font-size: 12px; gap: 10px; }
  .content { padding: 25px; }
  .workspace { grid-template-columns: 220px minmax(260px, 1fr); }
  .tv .workspace { grid-template-columns: 260px minmax(0, 1fr); }
  .workspace>.detail { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; align-items: start; }
  .detail>.row, .detail>small { grid-column: 1; }
  .detail .eta { grid-column: 2; grid-row: 1/4; margin: 0 0 12px; }
  .detail>button { grid-column: 2; }
  .detail>p { grid-column: 1; margin-bottom: 0; }
  .bottomgrid { grid-template-columns: 1fr; }
  .stats .stat { padding: 17px; }
  .stats .stat>small:first-child { font-size: 8px; letter-spacing: .4px; }
}
@media(max-width:980px) {
  .login-story { padding: 36px 30px; }
  .logo-paper { padding: 28px; }
  .loginform { padding: 35px 28px; }
  .loginhero h1 { font-size: 39px; }
  .editgrid { grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; }
  .phonearea { gap: 20px; }
  .phone { padding: 16px; }
}
@media(max-width:760px) {
  .shell { display: block; }
  .sidebar { padding: 9px 12px; gap: 4px; border-bottom: 2px solid var(--green); flex-direction: row; align-items: center; position: sticky; top: 0; overflow-x: auto; z-index: 800; }
  .sidebar { scrollbar-width: none; }
  .sidebar::-webkit-scrollbar { display: none; }
  .sidebar>.brand { margin: 0 13px 0 0; font-size: 0; }
  .sidebar>.brand>span { display: none; }
  .sidebar .brand img { width: 34px; height: 34px; border-radius: 9px; }
  .nav-caption, .sidefoot { display: none; }
  .sidebar button { padding: 9px 11px; font-size: 11px; gap: 7px; white-space: nowrap; }
  .sidebar .ui-icon { width: 17px; height: 17px; flex-basis: 17px; }
  .sidebar button.active { box-shadow: inset 0 -2px var(--green); }
  .topbar { padding: 13px 16px; min-height: 74px; gap: 8px; }
  .topbar select { max-width: 185px; font-size: 11px; }
  .topbar .user { gap: 6px; }
  .topbar .user>span:nth-child(2) { display: none; }
  .topbar .user button { margin-left: 0; padding: 8px; font-size: 10px; }
  .avatar { width: 31px; height: 31px; font-size: 11px; }
  .demo { padding: 10px 16px; align-items: flex-start; gap: 7px; font-size: 9px; line-height: 1.7; }
  .demo-dot { margin-top: 5px; }
  .demo b { font-size: 8px; line-height: 1.9; }
  .content { padding: 23px 16px; }
  .heading { gap: 18px; }
  .heading p { font-size: 12px; line-height: 1.7; }
  h1 { font-size: 27px; letter-spacing: -.9px; }
  .stats { gap: 10px; }
  .stats .stat { padding: 15px; border-radius: 12px; }
  .stats .stat>small:first-child { font-size: 8px; line-height: 1.7; display: block; min-height: 27px; }
  .stat strong { font-size: 30px; margin: 4px 0 8px; }
  .stat>small:last-child { font-size: 10px; }
  .workspace, .editgrid, .bottomgrid, .phonearea { display: block; }
  .workspace>.detail { display: block; }
  .detail .eta { margin: 16px 0; }
  .workspace>.card, .workspace>.map { margin-bottom: 16px; }
  .workspace .routes { max-height: 265px; }
  .map { min-height: 360px; }
  .card, .stopedit { padding: 18px; }
  .editgrid aside { margin-top: 18px; }
  .formgrid { grid-template-columns: 1fr; }
  .bottomgrid>.card { margin-bottom: 16px; }
  .phonearea>.card { margin-top: 25px; }
  .phone { padding: 18px; max-width: 420px; border-width: 6px; border-radius: 30px; }
  .login { display: block; }
  .logo-paper { padding: 18px 30px; border-bottom-width: 3px; }
  .logo-paper img { max-height: 125px; }
  .login-story { padding: 26px 26px 28px; }
  .loginhero h1 { font-size: 34px; letter-spacing: -1px; margin: 17px 0 13px; }
  .loginhero p { font-size: 13px; }
  .journey { margin: 22px 0 24px; max-width: 340px; }
  .journey b { font-size: 10px; }
  .login-note { flex-direction: row; align-items: center; gap: 12px; }
  .login-note small { font-size: 9px; max-width: 150px; }
  .loginform { padding: 32px 24px; }
  .loginform>div { width: 100%; max-width: 420px; }
  .loginform h1 { font-size: 29px; }
  .rolecards button { padding: 18px 12px; }
  .rolecards small { font-size: 9px; }
  .tv .workspace { display: block; }
  .tv-brand { gap: 15px; flex-wrap: wrap; }
  dialog { padding: 22px 18px; }
  footer { line-height: 1.8; }
}
@media(prefers-reduced-motion:reduce) { button, .buttonlink { transition: none; } }
