@font-face { font-family: Urbanist; src: url(urbanist-400.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Urbanist; src: url(urbanist-500.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Urbanist; src: url(urbanist-700.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Urbanist; src: url(urbanist-800.ttf) format("truetype"); font-weight: 800; font-display: swap; }
#qlin-flotas {
  color-scheme: light;
  --ink: #0f2234; --accent-blue: #47b1e5; --canvas: #f5f7fa; --paper: #fff;
  --text: #212121; --quiet: #536174; --line: #e0e6ec; --soft: #eef7fc;
  --happy: #126540; --happy-bg: #e8f6ee; --pending: #8c510e; --pending-bg: #fff2d8;
  font-family: Urbanist, system-ui, sans-serif; color: var(--ink); font-size: 15px;
  line-height: 1.35; width: 100%; position: relative;
}
#qlin-flotas *, #qlin-flotas *::before, #qlin-flotas *::after { box-sizing: border-box; }
#qlin-flotas h1, #qlin-flotas h2, #qlin-flotas h3, #qlin-flotas p { margin: 0; }
#qlin-flotas h1 { font-size: clamp(27px, 4vw, 39px); font-weight: 800; letter-spacing: -.045em; line-height: 1.1; }
#qlin-flotas h2 { font-size: 21px; font-weight: 800; letter-spacing: -.025em; }
#qlin-flotas h3 { font-size: 16px; font-weight: 800; }
#qlin-flotas :where(.shell) :is(button, input, select, a) { font: inherit; }
#qlin-flotas :where(.shell) button { color: inherit; }
#qlin-flotas :where(.shell) :is(button, a, input, select):focus-visible {
  outline: 2px solid #2b86b9; outline-offset: 3px;
}
#qlin-flotas :where(.shell) button:disabled { opacity: .52; }
#qlin-flotas .dim { color: var(--quiet); }
#qlin-flotas .small { font-size: 13px; }
#qlin-flotas .strong { font-weight: 800; }
#qlin-flotas .number { font-variant-numeric: tabular-nums; white-space: nowrap; }
#qlin-flotas .shell { background: var(--canvas); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
#qlin-flotas .top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px 22px;
}
#qlin-flotas .brand, #qlin-flotas .top-actions, #qlin-flotas .row, #qlin-flotas .actions {
  display: flex; align-items: center; gap: 10px; min-width: 0;
}
#qlin-flotas .top-actions, #qlin-flotas .actions { flex-wrap: wrap; }
#qlin-flotas .brand img { width: 57px; height: auto; padding: 0; display: block; }
#qlin-flotas .brand-word { border-left: 1px solid var(--line); padding-left: 11px; font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
#qlin-flotas .avatar { width: 36px; height: 36px; border-radius: 50%; background: #e6f2f9; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
#qlin-flotas .workspace { display: grid; grid-template-columns: 173px minmax(0, 1fr); min-height: 540px; }
#qlin-flotas .rail { background: var(--paper); padding: 20px 12px; border-right: 1px solid var(--line); }
#qlin-flotas .nav { display: grid; gap: 5px; }
#qlin-flotas .nav button, #qlin-flotas .ghost, #qlin-flotas .text-action {
  background: transparent; border: 0; border-radius: 10px; font-weight: 700;
}
#qlin-flotas .nav button {
  width: 100%; min-height: 40px; text-align: left; display: flex; gap: 9px; align-items: center; padding: 7px 9px;
}
#qlin-flotas .nav button[aria-current="page"] { background: #e8f4fb; color: #123952; font-weight: 800; }
#qlin-flotas .nav button:hover, #qlin-flotas .ghost:hover, #qlin-flotas .text-action:hover { background: var(--soft); }
#qlin-flotas .nav button[data-view="settings"] { margin-top: 14px; }
#qlin-flotas :where(.shell) [data-lucide], #qlin-flotas :where(.shell) svg.lucide { display: inline-block; vertical-align: middle; width: 17px; height: 17px; flex: none; }
#qlin-flotas .content { min-width: 0; padding: clamp(16px, 3vw, 28px); display: grid; align-content: start; gap: 18px; }
#qlin-flotas .heading, #qlin-flotas .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#qlin-flotas .heading p, #qlin-flotas .panel-head p { margin-top: 5px; }
#qlin-flotas .content > .heading h1 { font-size: clamp(27px, 3.8vw, 34px); }
#qlin-flotas .metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#qlin-flotas .metric, #qlin-flotas .panel, #qlin-flotas .list-item {
  background: var(--paper); border: 1px solid var(--line); border-radius: 15px; min-width: 0;
}
#qlin-flotas .metric { display: grid; align-content: start; gap: 5px; padding: 13px 14px; }
#qlin-flotas .metric .value { font-size: clamp(20px, 3vw, 29px); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; }
#qlin-flotas .activity-tools { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; }
#qlin-flotas .segment { display: inline-flex; background: var(--canvas); border-radius: 11px; padding: 3px; gap: 2px; }
#qlin-flotas .segment button { border: 1px solid transparent; border-radius: 8px; background: transparent; font-weight: 700; padding: 6px 9px; min-height: 34px; }
#qlin-flotas .segment button[aria-pressed="true"] { background: var(--paper); border-color: var(--line); color: var(--ink); }
#qlin-flotas .heading .label select, #qlin-flotas .activity-tools .label select { min-height: 36px; padding: 4px 9px; }
#qlin-flotas .activity-table th, #qlin-flotas .activity-table td { padding-block: 9px; }
#qlin-flotas .activity-table tbody tr:hover { background: #f7fafc; }
#qlin-flotas .activity-table .last-cell time, #qlin-flotas .activity-table .name-cell .small { display: block; margin-top: 2px; }
#qlin-flotas .activity-table .pill { white-space: normal; line-height: 1.2; }
#qlin-flotas .activity-table .long-wash { color: var(--pending); display: block; margin-top: 2px; }
#qlin-flotas .sort { padding: 4px 0; border: 0; background: transparent; text-align: left; font: inherit; font-weight: 700; color: inherit; }
#qlin-flotas .sort:hover { text-decoration: underline; }
#qlin-flotas .sort span { margin-left: 3px; }
#qlin-flotas .count-cell { min-width: 60px; }
#qlin-flotas .count-track { width: clamp(32px, 7vw, 68px); height: 4px; border-radius: 6px; background: #eaf0f5; display: block; margin-top: 4px; }
#qlin-flotas .count-track span { display: block; height: 100%; border-radius: inherit; background: #47b1e5; }
#qlin-flotas .mobile-label { display: none; }
#qlin-flotas .panel { padding: 17px; display: grid; gap: 12px; align-content: start; }
#qlin-flotas .items { display: grid; gap: 8px; }
#qlin-flotas .list-item { padding: 13px; display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
#qlin-flotas .list-item + .list-item { margin-top: 0; }
#qlin-flotas .list-item p, #qlin-flotas .driver-info p { margin-top: 3px; overflow-wrap: anywhere; }
#qlin-flotas .cards-two { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
#qlin-flotas .pill { display: inline-flex; border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 800; white-space: nowrap; vertical-align: middle; background: #edf1f5; color: #435469; align-items: center; gap: 5px; }
#qlin-flotas .pill.good { background: var(--happy-bg); color: var(--happy); }
#qlin-flotas .pill.wait { background: var(--pending-bg); color: var(--pending); }
#qlin-flotas .pill.info { background: var(--soft); color: #154c70; }
#qlin-flotas .action, #qlin-flotas .ghost, #qlin-flotas .text-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 6px 10px;
}
#qlin-flotas .action {
  min-height: 40px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper);
  font-weight: 800; text-align: center;
}
#qlin-flotas .action:hover { background: var(--soft); }
#qlin-flotas .action.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
#qlin-flotas .action.primary:hover { background: #1c3c53; }
#qlin-flotas .action.danger { color: #a32732; }
#qlin-flotas .text-action { color: #125982; padding-left: 5px; padding-right: 5px; }
#qlin-flotas .action-row { justify-content: space-between; flex-wrap: wrap; }
#qlin-flotas .compact-table { width: 100%; border-collapse: collapse; text-align: left; }
#qlin-flotas .compact-table th, #qlin-flotas .compact-table td { padding: 11px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
#qlin-flotas .compact-table th { font-size: 13px; color: var(--quiet); font-weight: 700; }
#qlin-flotas .compact-table td:first-child, #qlin-flotas .compact-table th:first-child { padding-left: 0; }
#qlin-flotas .compact-table td:last-child, #qlin-flotas .compact-table th:last-child { padding-right: 0; }
#qlin-flotas .compact-table tr:last-child td { border-bottom: 0; padding-bottom: 4px; }
#qlin-flotas .compact-table .end { text-align: right; }
#qlin-flotas .label { display: grid; gap: 5px; font-weight: 700; min-width: 0; }
#qlin-flotas .label input, #qlin-flotas .label select {
  color: var(--ink); background: var(--paper); border: 1px solid #c9d5df; border-radius: 10px; font-size: 16px; font-weight: 500;
  padding: 8px 10px; min-height: 41px; width: 100%; min-width: 0;
}
#qlin-flotas .filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 180px)); gap: 10px; }
#qlin-flotas .form { display: grid; gap: 13px; }
#qlin-flotas .form .actions { margin-top: 4px; }
#qlin-flotas .checkbox { display: flex; align-items: center; gap: 8px; min-height: 40px; }
#qlin-flotas .checkbox input { inline-size: 18px; block-size: 18px; accent-color: var(--ink); }
#qlin-flotas .detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
#qlin-flotas .note { background: var(--soft); color: #234964; padding: 11px; border-radius: 10px; }
#qlin-flotas dialog {
  color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 17px;
  width: min(460px, calc(100% - 24px)); max-height: calc(100% - 30px); padding: 18px; overflow: auto;
  box-shadow: 0 16px 65px #0f223438;
}
#qlin-flotas dialog::backdrop { background: #0f22346e; }
#qlin-flotas .dialog-content { display: grid; gap: 14px; }
#qlin-flotas .dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
#qlin-flotas .invoice { border-block: 1px solid var(--line); padding: 12px 0; display: grid; gap: 8px; }
#qlin-flotas .public {
  min-height: 448px; background: var(--paper); display: grid; justify-items: center; align-items: center;
  padding: clamp(20px, 5vw, 48px); color: var(--ink);
}
#qlin-flotas .public-form { width: min(100%, 350px); display: grid; gap: 22px; }
#qlin-flotas .public-form > .brand { justify-self: center; margin-bottom: 4px; }
#qlin-flotas .public .brand img { width: 83px; }
#qlin-flotas .public .brand-word { font-size: 21px; }
#qlin-flotas .public-form h1 { text-align: center; font-size: clamp(27px,4vw,34px); }
#qlin-flotas .public-form .form { gap: 15px; }
#qlin-flotas .public-form .label input { min-height: 52px; border-radius: 15px; padding-inline: 13px; }
#qlin-flotas .public-form .primary { min-height: 52px; width: 100%; border-radius: 15px; }
#qlin-flotas .public-form .auth-footer { justify-self: center; }
#qlin-flotas .public-form .auth-intro,
#qlin-flotas .public-form .auth-switch {
  display: grid; justify-items: center; gap: 8px; text-align: center;
}
#qlin-flotas .public-form .auth-switch { gap: 2px; }
#qlin-flotas .public-form .auth-switch .auth-footer { font-weight: 700; }
#qlin-flotas .public--auth .auth-links {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 16px;
}
#qlin-flotas .public--auth .auth-links a {
  display: inline-flex; align-items: center; min-height: 32px;
  color: var(--quiet); font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
}
#qlin-flotas .public--auth .auth-links a:hover { color: var(--ink); }
#qlin-flotas .public-form .auth-address { text-align: center; overflow-wrap: anywhere; }
#qlin-flotas .public-form .auth-hint { text-align: center; }
#qlin-flotas .public-form .code-input input { letter-spacing: .19em; font-variant-numeric: tabular-nums; }
#qlin-flotas .public.public--auth {
  --auth-form-width: 400px;
  row-gap: 25px; align-content: center; padding: 26px 20px;
}
#qlin-flotas .public--auth > .brand { justify-self: start; }
#qlin-flotas .public--auth > .public-form { width: min(100%, var(--auth-form-width)); }
@media (max-width: 600px) {
  #qlin-flotas .public.public--auth { grid-template-rows: auto 1fr auto auto 1fr; row-gap: 0; }
  #qlin-flotas .public--auth > .brand { grid-row: 1; margin-bottom: 25px; }
  #qlin-flotas .public--auth > .public-form { grid-row: 3; }
  #qlin-flotas .public--auth > .auth-links { grid-row: 4; margin-top: 25px; }
}
@media (min-width: 601px) {
  #qlin-flotas .public.public--auth {
    --auth-form-width: 440px;
    grid-template-columns: minmax(0, .8fr) minmax(0, var(--auth-form-width)) minmax(0, 1.2fr);
    grid-template-rows: auto 1fr auto;
    row-gap: 28px;
    padding: 32px clamp(26px, 5.5vw, 60px) 24px;
  }
  #qlin-flotas .public--auth > .brand { grid-column: 1 / -1; }
  #qlin-flotas .public--auth > .public-form { grid-column: 2; }
  #qlin-flotas .public--auth > .auth-links { grid-column: 1 / -1; justify-self: end; justify-content: flex-end; }
  #qlin-flotas .public--auth .public-form :is(h1, .auth-intro, .auth-address) { text-align: start; }
  #qlin-flotas .public--auth .public-form .auth-intro { justify-items: start; }
}
#qlin-flotas .ready-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
#qlin-flotas .ready-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
#qlin-flotas .ready-list li:last-child { border-bottom: 0; }
#qlin-flotas .toast {
  position: absolute; z-index: 2; right: 16px; bottom: 14px; padding: 10px 13px; max-width: calc(100% - 32px);
  background: var(--ink); color: #fff; border-radius: 12px; font-weight: 700; box-shadow: 0 3px 12px #0f22342b;
}
#qlin-flotas .toast:empty { display: none; }
#qlin-flotas .field-error { color: #a32732; font-weight: 700; }
#qlin-flotas .sr {
  position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
@media (max-width: 790px) {
  #qlin-flotas .workspace { grid-template-columns: 154px minmax(0, 1fr); }
}
@media (max-width: 640px) {
  #qlin-flotas .workspace { grid-template-columns: minmax(0,1fr); }
  #qlin-flotas .rail { padding: 9px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  #qlin-flotas .nav { display: flex; flex-wrap: wrap; gap: 3px; }
  #qlin-flotas .nav button { width: auto; font-size: 13px; min-height: 36px; padding: 6px 7px; gap: 5px; }
  #qlin-flotas .nav button[data-view="settings"] { margin: 0; }
  #qlin-flotas .nav button .nav-count { display: none; }
  #qlin-flotas .public { min-height: 380px; }
  #qlin-flotas .top { padding: 11px 13px; }
}
@media (max-width: 700px) {
  #qlin-flotas .activity-table, #qlin-flotas .activity-table tbody { display: block; }
  #qlin-flotas .activity-table thead {
    position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden;
  }
  #qlin-flotas .activity-table thead:focus-within {
    position: static; clip-path: none; width: auto; height: auto;
  }
  #qlin-flotas .activity-table tr { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px 8px; }
  #qlin-flotas .activity-table tbody tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  #qlin-flotas .activity-table tbody tr:last-child { border-bottom: 0; }
  #qlin-flotas .activity-table td, #qlin-flotas .activity-table th { padding: 1px 0; border: 0; }
  #qlin-flotas .activity-table .name-cell { grid-column: 1 / 3; }
  #qlin-flotas .activity-table .history-cell { grid-column: 3; grid-row: 1; text-align: right; }
  #qlin-flotas .activity-table .count-cell { min-width: 0; }
  #qlin-flotas .activity-table .last-cell { overflow-wrap: anywhere; }
  #qlin-flotas .mobile-label { display: block; margin-bottom: 3px; color: var(--quiet); font-size: 12px; }
}
@media (max-width: 480px) {
  #qlin-flotas .content { padding: 13px; gap: 12px; }
  #qlin-flotas .panel { padding: 12px; }
  #qlin-flotas .metrics { gap: 6px; }
  #qlin-flotas .metric { padding: 8px; }
  #qlin-flotas .metric .small { font-size: 12px; }
  #qlin-flotas .cards-two, #qlin-flotas .detail-grid { grid-template-columns: minmax(0,1fr); }
  #qlin-flotas .history-table, #qlin-flotas .history-table tbody, #qlin-flotas .history-table tr { display: block; }
  #qlin-flotas .history-table thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  #qlin-flotas .history-table tr { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  #qlin-flotas .history-table tr:last-child { border-bottom: 0; }
  #qlin-flotas .history-table td, #qlin-flotas .history-table tr:last-child td { border: 0; padding: 0; }
  #qlin-flotas .history-table td:nth-child(2) { grid-row: 2; }
}
@media (pointer: coarse) {
  #qlin-flotas :where(.shell) button { min-height: 44px; }
  #qlin-flotas .public--auth .auth-links a { min-height: 44px; }
}

body { margin: 0; background: #f5f7fa; }
#qlin-flotas .shell { min-height: 100vh; min-height: 100dvh; border: 0; border-radius: 0; display: flex; flex-direction: column; }
#qlin-flotas .workspace, #qlin-flotas .public { flex: 1; }
#qlin-flotas .public { padding-block: clamp(28px, 7vh, 68px); }
#qlin-flotas .text-action { text-decoration: none; }
#qlin-flotas button:not(:disabled), #qlin-flotas select { cursor: pointer; }
#qlin-flotas .toast { position: fixed; }
#qlin-flotas .toast:empty { display: block; padding: 0; }
#qlin-flotas .ready-list .text-action { flex-shrink: 0; }
