:root {
  color-scheme: light;
  --ink: #242633;
  --muted: #858897;
  --line: #ececf1;
  --canvas: #f7f7fa;
  --purple: #6d64d8;
  --purple-dark: #5d54c4;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
  --font-display: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font-body); font-size: 13px; }
button, input { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; }

.sidebar { background: #fff; border-right: 1px solid #ededf1; bottom: 0; display: flex; flex-direction: column; left: 0; padding: 27px 16px 16px; position: fixed; top: 0; width: 226px; z-index: 4; }
.brand { align-items: center; color: inherit; display: flex; gap: 10px; margin: 1px 0 54px 6px; text-decoration: none; }
.brand-logo { background: #fff; border-radius: 7px; display: block; flex: 0 0 auto; height: 43px; object-fit: contain; width: 43px; }
.brand-name { color: #092c59; font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: .3px; line-height: 1.1; }
.brand-name small { color: #ed7412; display: block; font-family: var(--font-body); font-size: 8px; font-weight: 700; letter-spacing: 1.15px; margin-top: 5px; }
.side-label { color: #a1a3af; font-size: 9px; font-weight: 700; letter-spacing: 1.12px; margin: 0 0 12px 12px; }
.nav-item { align-items: center; background: transparent; border: 0; border-radius: 8px; color: #707282; cursor: pointer; display: flex; font-size: 12px; font-weight: 600; gap: 12px; height: 41px; margin-bottom: 5px; padding: 0 11px; text-align: left; width: 100%; }
.nav-item:hover { background: #f7f6ff; color: var(--purple-dark); }
.nav-item.active { background: #f0effc; color: #5d54c4; }
.nav-icon { align-items: center; display: inline-flex; font-size: 17px; height: 21px; justify-content: center; width: 20px; }
.nav-arrow { font-size: 19px; margin-left: auto; }
.nav-count { background: #f0eff6; border-radius: 10px; color: #737587; font-size: 10px; margin-left: auto; padding: 3px 7px; }
.sidebar-bottom { border-top: 1px solid #f0f0f3; display: flex; flex-direction: column; gap: 11px; margin-top: auto; padding: 16px 2px 3px; }
.profile-account { align-items: center; display: flex; gap: 9px; min-width: 0; }
.profile-avatar { align-items: center; background: #eae7fb; border: 0; border-radius: 50%; color: #5d54c4; display: inline-flex; flex: 0 0 auto; font-weight: 700; justify-content: center; }
.profile-avatar { height: 34px; width: 34px; }
.profile-text { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.profile-text strong { font-size: 11px; font-weight: 600; }
.profile-text span { color: var(--muted); font-size: 10px; }
.logout-button { align-items: center; background: #fff; border: 1px solid #eeeef2; border-radius: 7px; color: #737482; cursor: pointer; display: flex; font-size: 10px; font-weight: 600; gap: 9px; min-height: 34px; padding: 0 10px; text-align: left; width: 100%; }
.logout-button:hover, .logout-button:focus-visible { background: #fff5f4; border-color: #f0d1cf; color: #b44f4f; }
.logout-icon { font-size: 16px; line-height: 1; }
.logout-label { white-space: nowrap; }
.online-dot, .live-dot, .footer-dot { background: #53bb8d; border-radius: 50%; display: inline-block; height: 7px; width: 7px; }

.main-content { margin-left: 226px; min-height: 100vh; padding: 0 34px 15px; }
.topbar { align-items: center; border-bottom: 1px solid #ececf0; display: flex; height: 59px; justify-content: space-between; }
.breadcrumbs { align-items: center; color: #9597a3; display: flex; font-size: 11px; gap: 10px; }
.breadcrumbs strong { color: #484a57; font-weight: 600; }
.crumb-slash { color: #c2c3cb; }
.topbar-actions { align-items: center; display: flex; gap: 18px; }
.save-indicator { align-items: center; color: #828593; display: flex; font-size: 10px; gap: 6px; }
.save-indicator .online-dot { height: 6px; width: 6px; }
.pages-preview-notice { background: #fff7e8; border: 1px solid #efd8ac; border-radius: 7px; color: #755727; margin: 12px 0; padding: 10px 12px; }
.pages-preview-notice > strong { display: block; font-size: 10px; margin-bottom: 4px; }
.pages-preview-notice p { font-size: 10px; line-height: 1.5; margin: 0; }
.pages-preview-notice a { color: #5749aa; font-weight: 700; }
.activity-button { align-items: center; background: #fff; border: 1px solid #e9e9ee; border-radius: 50%; color: #777987; cursor: pointer; display: inline-flex; font-size: 15px; height: 27px; justify-content: center; padding: 0; position: relative; width: 27px; }
.activity-button:hover { border-color: #bcb7ef; color: var(--purple); }
.activity-badge { align-items: center; background: #dc5d62; border: 2px solid #fff; border-radius: 10px; color: #fff; display: flex; font-size: 8px; font-weight: 700; height: 17px; justify-content: center; min-width: 17px; padding: 0 3px; position: absolute; right: -7px; top: -6px; }
.icon-button { background: white; border: 1px solid #e9e9ee; border-radius: 50%; color: #797b89; cursor: pointer; font-size: 12px; font-weight: 700; height: 24px; padding: 0; width: 24px; }
.icon-button:hover { border-color: #bcb7ef; color: var(--purple); }
.page-heading { align-items: flex-end; display: flex; justify-content: space-between; margin: 27px 0 22px; }
.eyebrow { align-items: center; color: #7e79ca; display: flex; font-size: 9px; font-weight: 700; gap: 8px; letter-spacing: 1.25px; margin-bottom: 7px; }
.eyebrow-line { background: #8379e6; display: inline-block; height: 2px; width: 17px; }
h1, h2, p { margin-top: 0; }
h1 { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 29px); font-weight: 700; letter-spacing: -1.1px; line-height: 1.25; margin-bottom: 5px; }
.page-subtitle { color: #888a97; font-size: 12px; margin: 0; }
.button { align-items: center; border: 1px solid transparent; border-radius: 7px; cursor: pointer; display: inline-flex; font-size: 11px; font-weight: 600; gap: 7px; justify-content: center; min-height: 34px; padding: 0 12px; transition: background .15s, border-color .15s, transform .15s; }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--purple); box-shadow: 0 2px 5px #7168df25; color: white; }
.button-primary:hover { background: var(--purple-dark); }
.button-plus { font-size: 17px; font-weight: 400; line-height: 1; }
.button-quiet { background: #fff; border-color: #e8e8ee; color: #606271; }
.button-quiet:hover { background: #f9f8ff; border-color: #d1cdf2; color: var(--purple-dark); }

.summary-row { display: grid; gap: 13px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 24px; }
.summary-card { align-items: center; background: #fff; border: 1px solid #efeff3; border-radius: 9px; display: flex; min-height: 72px; padding: 13px 16px; }
.summary-icon { align-items: center; border-radius: 8px; display: inline-flex; flex: 0 0 auto; font-size: 16px; height: 34px; justify-content: center; margin-right: 12px; width: 34px; }
.icon-violet { background: #f0effd; color: #766ee0; }
.icon-green { background: #e9f8f1; color: #38a776; }
.icon-amber { background: #fff5e7; color: #e09b34; }
.summary-copy { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.summary-copy > span { color: #989aa6; font-size: 8px; font-weight: 700; letter-spacing: .72px; white-space: nowrap; }
.summary-copy strong { font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.2; }
.summary-note { color: #a0a2ad; font-size: 9px; margin-left: 8px; white-space: nowrap; }

.planning-section { background: #fff; border: 1px solid #ededef; border-radius: 10px; min-height: 460px; overflow: hidden; }
.board-toolbar { align-items: center; border-bottom: 1px solid #eeeff2; display: flex; justify-content: space-between; min-height: 52px; padding: 0 15px; }
.board-tabs { align-self: stretch; display: flex; gap: 19px; }
.board-tab { background: transparent; border: 0; border-bottom: 2px solid transparent; color: #9698a4; cursor: pointer; font-size: 11px; font-weight: 600; margin-bottom: -1px; padding: 1px 2px 0; }
.board-tab.active { border-bottom-color: #6e66d7; color: #514bb1; }
.board-tab:not(.active):hover { color: #635bd0; }
.board-actions { align-items: center; color: #858794; display: flex; gap: 7px; }
.board-hint { align-items: center; color: #9294a0; display: inline-flex; font-size: 9px; gap: 6px; margin-right: 8px; }
.hint-dot { background: #a5a0ed; border-radius: 50%; height: 6px; width: 6px; }
.column-count { color: #777987; font-size: 9px; min-width: 55px; text-align: center; }
.board-actions .button { min-height: 27px; padding: 0 8px; }
.board-actions #removeColumn { font-size: 16px; padding: 0 7px; }
.undo-button { font-size: 9px; white-space: nowrap; }
.undo-button:disabled { cursor: not-allowed; opacity: .45; }

.workspace { align-items: stretch; display: grid; grid-template-columns: minmax(0, 1fr) 258px; min-height: 399px; }
.board-scroll { min-width: 0; overflow: auto; padding: 15px 14px 17px; }
.client-grid { align-items: start; display: grid; gap: 12px; grid-template-columns: repeat(var(--column-count, 3), minmax(210px, 1fr)); min-width: 100%; }
.client-card { background: #fff; border: 1px solid #e9e9ee; border-radius: 8px; min-width: 0; overflow: hidden; transition: border-color .16s, box-shadow .16s, background .16s; }
.client-card.drag-over { background: #faf9ff; border-color: #8a83e2; box-shadow: 0 0 0 3px #756ce61a; }
.client-section { min-width: 0; }
.client-section + .client-section { border-top: 1px solid #ededf1; }
.client-subclients { background: #fafafd; border-top: 1px solid #ededf1; padding-left: 12px; }
.client-subclient { background: #fff; border-left: 2px solid #d9d6f6; }
.client-subclient .client-card-header { background: #f8f7fc; }
.client-card-header { align-items: center; background: #fbfbfd; border-bottom: 1px solid #ededf1; display: flex; gap: 8px; min-height: 47px; padding: 7px 10px; }
.client-number { align-items: center; background: #eeedfb; border-radius: 6px; color: #6b63cc; display: inline-flex; flex: 0 0 auto; font-size: 9px; font-weight: 700; height: 23px; justify-content: center; width: 23px; }
.client-name-input { background: transparent; border: 0; color: #343644; font-family: var(--font-display); font-size: 11px; font-weight: 700; min-width: 0; outline: none; padding: 5px 2px; width: 100%; }
.client-name-input:focus { border-bottom: 1px solid #a9a4e9; }
.client-name-input::placeholder { color: #a0a1ad; font-weight: 500; }
.client-menu { background: transparent; border: 0; border-radius: 5px; color: #9b9ca7; cursor: pointer; flex: 0 0 auto; font-size: 17px; height: 25px; line-height: 1; padding: 0; width: 22px; }
.client-menu:hover { background: #f0effa; color: var(--purple); }
.driver-cards { display: flex; flex-direction: column; gap: 8px; min-height: 76px; padding: 9px; }
.driver-card { background: white; border: 1px solid #ededef; border-left: 3px solid var(--trailer-color, #7b73e8); border-radius: 7px; cursor: grab; padding: 8px 8px 7px; position: relative; transition: box-shadow .15s, opacity .15s; }
.driver-card:hover { box-shadow: 0 3px 12px #20203b0d; }
.driver-card:active { cursor: grabbing; }
.driver-card.is-dragging { opacity: .45; }
.driver-card-top { align-items: center; display: flex; gap: 7px; min-height: 32px; padding-right: 2px; }
.driver-photo { align-items: center; background: #eeedfa; border-radius: 50%; color: #5f58bb; display: inline-flex; flex: 0 0 auto; font-size: 9px; font-weight: 700; height: 29px; justify-content: center; object-fit: cover; width: 29px; }
.driver-card-name { color: #363744; flex: 1; font-size: 10px; font-weight: 600; line-height: 1.3; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.driver-company { color: #898a96; font-size: 8px; margin: 4px 0 0 36px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trailer-tag { align-items: center; background: color-mix(in srgb, var(--trailer-color, #7b73e8) 11%, white); border-radius: 4px; color: #555663; display: inline-flex; flex: 0 0 auto; font-size: 8px; font-weight: 600; gap: 4px; max-width: 91px; overflow: hidden; padding: 4px 6px; text-overflow: ellipsis; white-space: nowrap; }
.trailer-tag::before { background: var(--trailer-color, #7b73e8); border-radius: 50%; content: ""; height: 6px; width: 6px; }
.card-remove { background: #fff; border: 0; border-radius: 50%; color: #a7a8b1; cursor: pointer; font-size: 15px; height: 20px; line-height: 1; opacity: 0; padding: 0; position: absolute; right: 6px; top: -7px; transition: opacity .15s; width: 20px; }
.driver-card:hover .card-remove, .card-remove:focus-visible { opacity: 1; }
.card-remove:hover { background: #fff0f0; color: #cd5555; }
.card-dates { display: grid; gap: 5px; grid-template-columns: 1fr 1fr; margin-bottom: 7px; }
.date-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.date-field > span { color: #a0a1ad; font-size: 7px; font-weight: 700; letter-spacing: .24px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.date-field input { background: #fafafd; border: 1px solid #f0f0f3; border-radius: 4px; color: #676978; font-size: 8px; height: 23px; min-width: 0; padding: 2px 4px; width: 100%; }
.date-field input:focus, .note-input:focus { border-color: #b9b4ed; outline: 0; }
.note-input { background: #fafafd; border: 1px solid #f0f0f3; border-radius: 4px; color: #626473; font-size: 9px; height: 25px; margin-top: 6px; padding: 4px 6px; width: 100%; }
.note-input::placeholder { color: #adaeb8; }
.client-footer { border-top: 1px solid #f1f1f4; padding: 7px 9px; }
.add-subclient-button { background: transparent; border: 0; color: #7770d7; cursor: pointer; font-size: 8px; margin-top: 6px; padding: 3px 2px 0; }
.add-subclient-button:hover { color: #5148bd; text-decoration: underline; }
.assign-button { background: #fff; border: 1px dashed #dcdce6; border-radius: 5px; color: #777987; cursor: pointer; font-size: 9px; font-weight: 600; height: 29px; text-align: left; transition: all .15s; width: 100%; }
.assign-button span { color: #7c74dc; font-size: 14px; margin-right: 5px; vertical-align: -1px; }
.assign-button:hover { background: #fbfaff; border-color: #a9a4e9; color: #5e56be; }
.client-empty { color: #b1b2bd; font-size: 9px; padding: 14px 6px 10px; text-align: center; }
.add-client-card { align-items: center; background: #fcfcfe; border: 1px dashed #dedee8; border-radius: 8px; color: #777987; cursor: pointer; display: flex; flex-direction: column; justify-content: center; margin-top: 12px; min-height: 70px; padding: 10px; text-align: center; transition: all .15s; width: 100%; }
.add-client-card:hover { background: #faf9ff; border-color: #aaa5e9; }
.add-client-icon { color: #837bdd; font-size: 19px; line-height: 1.2; }
.add-client-card strong { font-size: 10px; font-weight: 600; margin-top: 3px; }
.add-client-card > span:last-child { color: #a5a6b0; font-size: 8px; margin-top: 3px; }

.driver-panel { border-left: 1px solid #ededf1; display: flex; flex-direction: column; min-width: 0; padding: 13px 11px 9px; }
.driver-panel-heading { align-items: flex-start; display: flex; justify-content: space-between; margin-bottom: 12px; padding: 0 2px; }
.driver-panel-heading h2 { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: -.2px; margin: 1px 0 5px; }
.driver-panel-subtitle { align-items: center; color: #999aa5; display: inline-flex; font-size: 9px; gap: 5px; }
.live-dot { height: 6px; width: 6px; }
.driver-panel-subtitle strong { color: #686a77; font-weight: 600; }
.mini-icon-button { background: #f3f2fd; border: 0; border-radius: 6px; color: #6a62d3; cursor: pointer; font-size: 18px; height: 27px; line-height: 1; padding: 0; width: 27px; }
.mini-icon-button:hover { background: #e9e7fc; }
.search-box { align-items: center; background: #fbfbfd; border: 1px solid #ededf1; border-radius: 6px; color: #9c9daa; display: flex; gap: 7px; height: 32px; padding: 0 8px; }
.search-box:focus-within { border-color: #aaa5e9; box-shadow: 0 0 0 2px #746be30c; }
.search-box > span { font-size: 18px; line-height: 1; }
.search-box input { background: transparent; border: 0; color: #454653; font-size: 9px; min-width: 0; outline: 0; width: 100%; }
.search-box input::placeholder { color: #a5a6b1; }
.search-box kbd { background: #f1f1f5; border-radius: 3px; color: #9a9ba7; flex: 0 0 auto; font-family: inherit; font-size: 8px; padding: 2px 4px; }
.drag-instruction { align-items: center; color: #a1a2ad; display: flex; font-size: 8px; gap: 5px; margin: 10px 1px 8px; }
.drag-instruction span { color: #7770d7; font-size: 13px; }
.driver-list { flex: 1; max-height: 310px; min-height: 160px; overflow: auto; padding-right: 3px; }
.roster-item { align-items: center; border-bottom: 1px solid #f2f2f5; cursor: grab; display: flex; gap: 8px; min-height: 46px; padding: 5px 3px; }
.roster-item:hover { background: #faf9ff; }
.roster-item:active { cursor: grabbing; }
.roster-item.is-dragging { opacity: .4; }
.roster-avatar { align-items: center; background: #eeedfa; border-radius: 50%; color: #625cc3; display: inline-flex; flex: 0 0 auto; font-size: 8px; font-weight: 700; height: 28px; justify-content: center; object-fit: cover; width: 28px; }
.roster-info { flex: 1; min-width: 0; }
.roster-name { color: #484a58; display: block; font-size: 9px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-trailer { align-items: center; color: #999aa5; display: flex; font-size: 8px; gap: 4px; margin-top: 3px; }
.roster-color { border-radius: 50%; display: inline-block; height: 6px; width: 6px; }
.roster-status { color: #aaaab4; flex: 0 0 auto; font-size: 8px; }
.roster-status.placed { color: #4ca982; }
.roster-edit { background: transparent; border: 0; border-radius: 4px; color: #aaaab4; cursor: pointer; flex: 0 0 auto; font-size: 12px; height: 23px; opacity: 0; padding: 0; width: 23px; }
.roster-item:hover .roster-edit, .roster-edit:focus-visible { opacity: 1; }
.roster-edit:hover { background: #eeedfa; color: #625bc3; }
.manage-drivers-button { align-items: center; background: #fff; border: 1px solid #ececf1; border-radius: 6px; color: #696b78; cursor: pointer; display: flex; font-size: 9px; font-weight: 600; gap: 7px; height: 31px; justify-content: flex-start; margin-top: 10px; padding: 0 8px; }
.manage-drivers-button span:first-child { color: #8179d9; font-size: 12px; }
.manage-drivers-button span:last-child { font-size: 16px; margin-left: auto; }
.manage-drivers-button:hover { background: #faf9ff; border-color: #c9c5ee; }
.empty-roster { color: #a2a3ae; font-size: 9px; padding: 25px 5px; text-align: center; }
.page-footer { align-items: center; color: #9b9ca7; display: flex; font-size: 9px; justify-content: space-between; padding: 11px 2px 0; }
.page-footer > span { align-items: center; display: inline-flex; gap: 6px; }
.footer-dot { height: 6px; width: 6px; }
.page-footer button { background: transparent; border: 0; color: #a0a1ab; cursor: pointer; font-size: 9px; padding: 4px; }
.page-footer button:hover { color: #b45050; }

.modal { background: #fff; border: 1px solid #e9e8ef; border-radius: 11px; box-shadow: 0 20px 70px #21213a2b; color: var(--ink); max-height: min(85vh, 720px); max-width: min(480px, calc(100% - 28px)); overflow: auto; padding: 22px; width: 460px; }
.modal::backdrop { background: #17172564; backdrop-filter: blur(2px); }
.modal-heading { align-items: flex-start; display: flex; justify-content: space-between; margin-bottom: 20px; }
.modal-heading h2 { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -.5px; margin: 4px 0 0; }
.modal-kicker { color: #8179d4; font-size: 8px; font-weight: 700; letter-spacing: 1.1px; }
.modal-close { background: #f7f7f9; border: 0; border-radius: 50%; color: #81828d; cursor: pointer; font-size: 20px; height: 27px; line-height: 1; padding: 0; width: 27px; }
.modal-close:hover { background: #efeff5; }
.photo-upload { align-items: center; background: #fbfbfd; border: 1px dashed #dddde7; border-radius: 7px; cursor: pointer; display: flex; gap: 11px; margin-bottom: 17px; padding: 10px; }
.photo-upload:hover { border-color: #aaa5e9; }
.photo-upload input { display: none; }
.photo-preview { align-items: center; background: #eeedfa; border-radius: 50%; color: #6b63cc; display: inline-flex; flex: 0 0 auto; font-size: 17px; height: 42px; justify-content: center; object-fit: cover; width: 42px; }
.photo-upload > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 4px; }
.photo-upload strong { color: #555764; font-size: 10px; font-weight: 600; }
.photo-upload small { color: #9b9ca7; font-size: 9px; }
.upload-cta { border: 1px solid #e7e6ed; border-radius: 5px; color: #6c63cc; font-size: 9px; padding: 6px 8px; }
.form-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.form-field { color: #696b78; display: flex; flex-direction: column; font-size: 9px; font-weight: 600; gap: 6px; }
.form-field-wide { grid-column: 1 / -1; }
.form-field > input { border: 1px solid #e8e8ee; border-radius: 5px; color: #41434f; font-size: 11px; height: 34px; outline: none; padding: 0 9px; }
.form-field > input:focus { border-color: #aaa5e9; }
.form-field > input::placeholder { color: #b4b5be; }
.color-field { align-items: center; border: 1px solid #e8e8ee; border-radius: 5px; color: #7b7d89; display: flex; font-size: 10px; gap: 8px; height: 34px; padding: 0 8px; }
.color-field input { background: transparent; border: 0; cursor: pointer; height: 23px; padding: 0; width: 25px; }
.modal-footer { border-top: 1px solid #f0f0f3; display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; padding-top: 14px; }
.client-modal .form-field { margin-bottom: 12px; }
.client-target-form-field { max-width: 190px; }
.client-modal .modal-description { line-height: 1.5; }
.picker-modal { width: 420px; }
.modal-description { color: #92939f; font-size: 10px; margin: 6px 0 0; }
.picker-search { margin-bottom: 10px; }
.picker-list { max-height: 350px; overflow: auto; }
.picker-item { align-items: center; border-bottom: 1px solid #f0f0f3; display: flex; gap: 9px; min-height: 51px; padding: 6px 2px; }
.picker-item .roster-avatar { height: 31px; width: 31px; }
.picker-item .roster-info { flex: 1; }
.picker-item-button { background: #f1f0fc; border: 0; border-radius: 5px; color: #625bc1; cursor: pointer; font-size: 9px; font-weight: 600; padding: 6px 8px; }
.picker-item-button:hover { background: #e8e6fb; }
.picker-item-button.move { background: #f5f5f8; color: #777987; }
.picker-empty { color: #999aa5; font-size: 10px; padding: 20px 5px; text-align: center; }
.help-modal { width: 480px; }
.activity-modal { width: 500px; }
.activity-list { max-height: min(55vh, 440px); overflow-y: auto; }
.activity-item { align-items: flex-start; border-top: 1px solid #f0f0f3; display: flex; gap: 10px; padding: 12px 2px; }
.activity-avatar { align-items: center; background: #eeedfb; border-radius: 50%; color: #625bc3; display: inline-flex; flex: 0 0 auto; font-size: 9px; font-weight: 700; height: 30px; justify-content: center; width: 30px; }
.activity-copy { min-width: 0; }
.activity-copy p { color: #686a77; font-size: 10px; line-height: 1.5; margin: 0 0 4px; overflow-wrap: anywhere; }
.activity-copy strong { color: #3d3f4b; }
.activity-copy time { color: #a0a1ab; font-size: 9px; }
.activity-empty { color: #92939f; font-size: 10px; padding: 20px 3px; text-align: center; }
.help-list { list-style: none; margin: 0; padding: 0; }
.help-list li { align-items: flex-start; display: flex; gap: 10px; margin: 13px 0; }
.help-list li > span { align-items: center; background: #f0effc; border-radius: 50%; color: #655dc5; display: inline-flex; flex: 0 0 auto; font-size: 10px; font-weight: 700; height: 23px; justify-content: center; width: 23px; }
.help-list strong { color: #4a4b58; display: block; font-size: 10px; margin: 2px 0 4px; }
.help-list p { color: #8f909c; font-size: 9px; line-height: 1.5; margin: 0; }
.help-note { background: #f6f5fd; border-radius: 6px; color: #716db0; font-size: 9px; margin-top: 18px; padding: 10px; }
.toast { background: #282938; border-radius: 7px; bottom: 20px; box-shadow: 0 7px 24px #1b1b2e30; color: white; font-size: 11px; left: 50%; max-width: calc(100% - 30px); opacity: 0; padding: 11px 15px; pointer-events: none; position: fixed; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s; z-index: 10; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
[hidden] { display: none !important; }
.login-screen { align-items: center; background: radial-gradient(ellipse at 50% 35%, #f1efff 0, #f7f7fa 47%, #f7f7fa 100%); display: flex; flex-direction: column; justify-content: center; min-height: 100vh; padding: 35px 18px; position: relative; }
.login-brand { align-items: center; display: flex; justify-content: center; margin-bottom: 14px; }
.login-logo { background: transparent; border-radius: 0; height: 132px; width: 132px; }
.login-card { background: #fff; border: 1px solid #edecf1; border-radius: 13px; box-shadow: 0 16px 55px #25233a0d; max-width: 408px; padding: 29px 30px 22px; width: 100%; }
.login-icon { align-items: center; background: #f0effd; border-radius: 10px; color: #6b63d1; display: flex; font-size: 18px; height: 38px; justify-content: center; margin-bottom: 20px; width: 38px; }
.login-card > .modal-kicker { display: block; }
.login-card h1 { font-size: 23px; letter-spacing: -.7px; margin: 7px 0 5px; }
.login-subtitle { color: #888a97; font-size: 11px; margin: 0 0 21px; }
.login-card form { display: flex; flex-direction: column; gap: 13px; }
.login-card .form-field { font-size: 10px; gap: 6px; }
.login-card .form-field input { background: #fff; border: 1px solid #e7e7ed; border-radius: 6px; color: #41434f; font-size: 11px; height: 39px; outline: 0; padding: 0 10px; }
.login-card .form-field input:focus { border-color: #aaa5e9; box-shadow: 0 0 0 3px #746be310; }
.login-card .form-field input::placeholder { color: #b4b5be; }
.login-error { background: #fff3f2; border-radius: 5px; color: #b44f4f; font-size: 10px; margin: -3px 0 0; padding: 9px; }
.login-submit { font-size: 11px; height: 39px; justify-content: space-between; margin-top: 1px; padding: 0 13px; width: 100%; }
.login-submit span { font-size: 16px; }
.login-submit:disabled, .account-form button:disabled { cursor: wait; opacity: .65; }
.local-warning { align-items: flex-start; color: #a07c3e; display: flex; font-size: 9px; gap: 6px; line-height: 1.5; margin: 14px 2px 0; }
.local-warning span { flex: 0 0 auto; }
.login-footer { bottom: 19px; color: #b1b2bd; font-size: 8px; font-weight: 600; letter-spacing: 1px; position: absolute; }
.admin-button { align-items: center; background: #f3f2fd; border: 1px solid #e9e7fb; border-radius: 6px; color: #645cc4; cursor: pointer; display: inline-flex; font-size: 10px; font-weight: 600; gap: 5px; height: 29px; padding: 0 9px; }
.admin-button:hover { background: #eae8fc; }
.user-greeting { color: #717381; font-size: 10px; max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.accounts-modal { width: 510px; }
.accounts-notice { background: #fff8eb; border: 1px solid #f5ecd9; border-radius: 6px; color: #96723a; font-size: 9px; line-height: 1.45; margin: -7px 0 15px; padding: 9px 10px; }
.accounts-notice span { margin-right: 5px; }
.account-form { align-items: end; display: grid; gap: 9px; grid-template-columns: 1fr 1fr; }
.account-form .form-field { gap: 5px; }
.account-form .form-field input { border: 1px solid #e7e7ed; border-radius: 5px; font-size: 10px; height: 33px; outline: 0; padding: 0 8px; }
.account-form .form-field input:focus { border-color: #aaa5e9; }
.account-form .form-field:nth-child(3) { grid-column: 1 / -1; }
.account-form > button { grid-column: 1 / -1; justify-self: start; min-height: 32px; }
.accounts-list-heading { align-items: center; border-top: 1px solid #efeff3; color: #575966; display: flex; font-size: 10px; justify-content: space-between; margin-top: 17px; padding: 14px 0 7px; }
.accounts-list-heading > span { color: #9899a5; font-size: 9px; }
.accounts-list { max-height: 260px; overflow: auto; }
.account-row { border-bottom: 1px solid #f0f0f3; display: flex; flex-direction: column; gap: 8px; padding: 10px 1px; }
.account-row-top { align-items: center; display: flex; gap: 9px; min-height: 38px; }
.account-permissions { display: flex; flex-wrap: wrap; gap: 7px; padding-left: 38px; }
.account-permissions label { align-items: center; background: #f8f7fc; border: 1px solid #eeedf4; border-radius: 6px; color: #696b78; cursor: pointer; display: inline-flex; font-size: 9px; gap: 5px; padding: 5px 7px; }
.account-permissions input { accent-color: #6d64d8; height: 13px; margin: 0; width: 13px; }
.account-permissions label:has(input:checked) { background: #f0effd; border-color: #e2defb; color: #5d54c4; }
.account-admin-access, .permission-help { color: #90919e; font-size: 9px; line-height: 1.5; margin: 0; }
.account-admin-access { padding-left: 38px; }
.permission-help { margin: -1px 0 10px; }
.account-avatar { align-items: center; background: #eeedfa; border-radius: 50%; color: #625bc3; display: flex; flex: 0 0 auto; font-size: 8px; font-weight: 700; height: 29px; justify-content: center; width: 29px; }
.account-details { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.account-details strong { color: #494b58; font-size: 9px; font-weight: 600; }
.account-details > span { color: #92939e; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-role { border-radius: 4px; font-size: 8px; padding: 4px 6px; }
.account-role.admin { background: #f0effd; color: #625bc3; }
.account-role.member { background: #edf7f2; color: #469473; }
.account-password-reset { background: #f7f6ff; border: 1px solid #e9e7fb; border-radius: 4px; color: #655dc5; cursor: pointer; flex: 0 0 auto; font-size: 8px; padding: 5px 7px; }
.account-password-reset:hover { background: #eeecfc; }
.account-delete { background: transparent; border: 0; border-radius: 4px; color: #aaaab4; cursor: pointer; font-size: 16px; height: 24px; width: 24px; }
.account-delete:hover { background: #fff1f0; color: #bd5858; }
.stat-grid { display: grid; gap: 11px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
.compact-card { min-width: 0; }
.compact-card .summary-copy > span { overflow-wrap: anywhere; white-space: normal; }
.trailer-company { color: #737b91 !important; font-size: 9px; font-weight: 600; margin-top: 2px; }
.password-reset-modal .form-field { margin-top: 7px; }
.password-reset-modal .form-field input { border: 1px solid #e7e7ed; border-radius: 5px; font-size: 11px; height: 36px; outline: 0; padding: 0 9px; }
.password-reset-modal .form-field input:focus { border-color: #aaa5e9; }
.reset-password-note { background: #f6f5fd; border-radius: 5px; color: #76738f; font-size: 9px; line-height: 1.5; margin: 11px 0 0; padding: 9px; }

.gestion-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 16px;
}

.gestion-actions-top {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gestion-board {
  background: linear-gradient(180deg, #ffffff 0%, #faf9ff 100%);
  border: 1px solid #eceaf8;
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(51, 43, 103, 0.06);
  margin-bottom: 18px;
  padding: 18px;
}

.gestion-board-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.gestion-board-header h2 {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.6px;
  margin: 4px 0 0;
}

.board-pill {
  background: #f0effd;
  border: 1px solid #e4e1fb;
  border-radius: 999px;
  color: #635ac5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.7px;
  padding: 6px 10px;
  text-transform: uppercase;
}

.pairing-board {
  display: grid;
  gap: 12px;
}

.pair-row {
  align-items: center;
  background: #fff;
  border: 1px solid #efedf7;
  border-radius: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(180px, 1fr) 36px minmax(180px, 1fr);
  padding: 12px 14px;
}

.pair-drop-zone {
  align-items: center;
  background: #f8f8fe;
  border: 1.5px dashed #d7d4f1;
  border-radius: 12px;
  display: flex;
  min-height: 82px;
  padding: 8px;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.pair-drop-zone.drag-over {
  background: #f0f6ff;
  border-color: #6d64d8;
  transform: translateY(-1px);
}

.management-card.drag-over {
  background: #f0f6ff;
  border-color: #6d64d8;
  box-shadow: 0 0 0 3px #6d64d81a;
}

.pair-trailer-input {
  background: #fff;
  border: 1px solid #e2e0f1;
  border-radius: 8px;
  color: #56596a;
  flex: 0 0 145px;
  font: inherit;
  font-size: 10px;
  height: 36px;
  max-width: 100%;
  padding: 0 8px;
}

.pair-trailer-input:focus {
  border-color: #8b83e6;
  outline: 3px solid #746be31a;
}

.trailer-selection {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 7px;
  min-width: 120px;
}

.pair-clear {
  align-items: center;
  background: #fff2f1;
  border: 1px solid #f3d8d5;
  border-radius: 50%;
  color: #b65757;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 17px;
  height: 25px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 25px;
}

.pair-clear:hover {
  background: #ffe7e5;
}

.pair-empty-cell {
  align-items: center;
  color: #9a9bb0;
  display: flex;
  font-size: 11px;
  justify-content: center;
  min-height: 60px;
  width: 100%;
}

.driver-tile,
.trailer-tile,
.management-card {
  align-items: center;
  background: #fff;
  border: 1px solid #eceaf7;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(63, 53, 128, 0.05);
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  width: 100%;
}

.driver-tile,
.trailer-tile {
  min-height: 58px;
}

.driver-avatar,
.management-avatar {
  border-radius: 50%;
  flex: 0 0 auto;
  height: 42px;
  object-fit: cover;
  width: 42px;
}

.tile-copy,
.management-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tile-copy strong,
.management-copy strong {
  color: #2f3240;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-copy span,
.management-copy span {
  color: #8a8d9d;
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-swatch,
.management-swatch {
  border-radius: 10px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.pair-link {
  align-items: center;
  color: #7a77bf;
  display: flex;
  font-size: 20px;
  font-weight: 700;
  justify-content: center;
}

.management-split {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.management-panel {
  background: #fff;
  border: 1px solid #efedf4;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(63, 52, 118, 0.04);
  padding: 18px 14px 14px;
}

.management-panel-header {
  align-items: center;
  border-bottom: 1px solid #f1f0f7;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.management-panel-header h2 {
  font-family: var(--font-display);
  font-size: 15px;
  margin: 0;
}

.management-panel-header span {
  background: #f5f3ff;
  border-radius: 999px;
  color: #635ac5;
  display: inline-flex;
  font-size: 9px;
  font-weight: 700;
  min-height: 23px;
  padding: 5px 9px;
}

.management-list {
  display: grid;
  gap: 10px;
}

.management-card {
  min-height: 76px;
  position: relative;
}

.management-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.mini-action {
  background: #f6f5ff;
  border: 1px solid #e6e1ff;
  border-radius: 7px;
  color: #625bc1;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  min-height: 27px;
  padding: 0 7px;
}

.mini-action.danger {
  background: #fff5f5;
  border-color: #f5d7d7;
  color: #b85b5b;
}

.management-status {
  border-radius: 999px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  position: absolute;
  right: 11px;
  top: 10px;
}

.management-status.free {
  background: #edf7f1;
  color: #2c8f5c;
}

.management-status.paired {
  background: #f0effd;
  color: #5d54c4;
}

.drag-driver:active,
.drag-trailer:active,
.management-card:active {
  cursor: grabbing;
}

.dragging {
  opacity: 0.72;
}

@media (max-width: 760px) {
  .gestion-header,
  .gestion-board-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .gestion-actions-top {
    width: 100%;
  }

  .management-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .pair-row {
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
    padding: 8px;
  }

  .pair-drop-zone {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 7px;
  }

  .pair-trailer-input {
    flex: 0 0 auto;
    width: 100%;
  }

  .trailer-selection {
    min-width: 0;
  }

  .trailer-tile,
  .driver-tile {
    gap: 6px;
    padding: 8px;
  }

  .driver-avatar {
    height: 32px;
    width: 32px;
  }

  .management-card {
    align-items: flex-start;
    padding-top: 35px;
  }
}

@media (min-width: 1500px) {
  .main-content { padding-left: 42px; padding-right: 42px; }
  .workspace { grid-template-columns: minmax(0, 1fr) 286px; }
  .client-grid { grid-template-columns: repeat(var(--column-count, 3), minmax(235px, 1fr)); }
}
@media (max-width: 1050px) {
  .main-content { padding-left: 22px; padding-right: 22px; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .driver-panel { border-left: 0; border-top: 1px solid #ededf1; }
  .driver-list { max-height: 250px; }
  .client-grid { grid-template-columns: repeat(var(--column-count, 3), minmax(195px, 1fr)); }
  .board-hint { display: none; }
}
@media (max-width: 760px) {
  .sidebar { align-items: center; padding: 12px 8px; width: 58px; }
  .brand { margin: 1px 0 35px; }
  .brand-name, .side-label, .nav-item:not(.active), .nav-item.active { display: none; }
  .sidebar::after { color: #625bc1; content: "▦"; font-size: 19px; margin-top: -34px; pointer-events: none; position: absolute; top: 135px; }
  .nav-item { display: none; }
  .sidebar-bottom { align-items: center; border: 0; gap: 10px; padding: 0; }
  .profile-account { justify-content: center; }
  .profile-text, .profile-account .online-dot, .logout-label { display: none; }
  .logout-button { border: 0; border-radius: 7px; height: 38px; justify-content: center; min-height: 38px; padding: 0; width: 38px; }
  .main-content { margin-left: 58px; padding: 0 14px 12px; }
  .page-heading { align-items: flex-start; gap: 12px; }
  .page-heading .button { flex: 0 0 auto; margin-top: 4px; }
  .summary-row { gap: 7px; }
  .summary-card { align-items: flex-start; flex-direction: column; gap: 5px; min-height: 92px; padding: 10px; position: relative; }
  .summary-icon { height: 25px; margin: 0; width: 25px; }
  .summary-copy { gap: 2px; }
  .summary-copy > span { font-size: 7px; white-space: normal; }
  .summary-copy strong { font-size: 17px; }
  .summary-note { bottom: 14px; margin: 0; position: absolute; right: 8px; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .driver-panel { border-bottom: 1px solid #ededf1; border-left: 0; border-top: 1px solid #ededf1; grid-row: 1; max-height: 220px; padding: 11px; }
  .driver-panel-heading { margin-bottom: 8px; }
  .driver-list { display: flex; flex: 0 0 auto; gap: 7px; max-height: 76px; min-height: 0; overflow-x: auto; overflow-y: hidden; }
  .roster-item { border: 1px solid #eeeef2; border-radius: 6px; flex: 0 0 160px; min-height: 44px; padding: 4px; }
  .roster-edit { opacity: 1; }
  .manage-drivers-button { margin-top: 7px; }
  .board-scroll { grid-row: 2; }
  .board-toolbar { gap: 8px; padding: 0 10px; }
  .board-actions { gap: 4px; }
  .board-actions .button { font-size: 9px; padding: 0 6px; }
  .column-count { display: none; }
}
@media (max-width: 480px) {
  .main-content { padding-left: 10px; padding-right: 10px; }
  .topbar { height: 48px; }
  .topbar-actions { gap: 10px; }
  .save-indicator { font-size: 9px; }
  .page-heading { flex-direction: column; margin: 20px 0 15px; }
  .page-heading .button { align-self: flex-start; }
  .page-subtitle { font-size: 10px; }
  .summary-row { grid-template-columns: 1fr 1fr 1fr; }
  .summary-icon { display: none; }
  .summary-card { min-height: 76px; padding: 9px 7px; }
  .summary-copy > span { font-size: 6px; letter-spacing: .2px; }
  .summary-copy strong { font-size: 16px; }
  .summary-note { bottom: 9px; font-size: 7px; left: 7px; right: auto; }
  .board-hint { display: none; }
  .board-tabs { gap: 12px; }
  .board-tab { font-size: 10px; }
  .board-actions #removeColumn { display: none; }
  .board-actions .button { min-height: 24px; }
  .board-scroll { padding: 10px; }
  .client-grid { grid-template-columns: repeat(var(--column-count, 3), minmax(225px, 1fr)); }
  .modal { padding: 17px; }
  .page-footer { font-size: 8px; }
  .login-card { padding: 24px 19px 19px; }
  .admin-button span { display: none; }
  .topbar-actions { gap: 6px; }
  .user-greeting, .save-indicator #saveLabel { display: none; }
  .save-indicator { gap: 0; }
  .account-form { grid-template-columns: 1fr; }
  .account-form .form-field:nth-child(3), .account-form > button { grid-column: auto; }
  .account-permissions { padding-left: 0; }
  .stat-grid { gap: 6px; }
  .compact-card .summary-note { bottom: 7px; font-size: 7px; }
  .compact-card .summary-copy > span { font-size: 6px; }
}

/* Wide, lane-based layout inspired by the dispatch whiteboard. */
.main-content { padding-left: 28px; padding-right: 28px; }
.page-heading { margin: 18px 0 14px; }
.page-heading .eyebrow { display: none; }
h1 { font-size: 24px; }
.page-subtitle { font-size: 11px; }
.summary-row { gap: 10px; margin-bottom: 15px; }
.summary-card { min-height: 57px; padding: 8px 12px; }
.summary-icon { height: 29px; margin-right: 9px; width: 29px; }
.summary-copy strong { font-size: 18px; }
.planning-section { border-radius: 8px; }
.board-toolbar { min-height: 43px; padding: 0 14px; }
.workspace { display: flex; flex-direction: column; min-height: 0; }
.board-scroll { background-color: #fdfdfb; background-image: linear-gradient(#ffffff50 1px, transparent 1px); background-size: 100% 34px; border-bottom: 1px solid #e9e8e2; display: flex; gap: 10px; min-height: 420px; overflow-x: auto; overflow-y: hidden; padding: 12px; }
.client-grid { align-items: stretch; display: flex; flex: 0 0 auto; gap: 0; min-height: 100%; min-width: 0; }
.client-card { background: #fffefa; border: 0; border-left: 1px solid #d8d7d0; border-radius: 0; display: flex; flex: 0 0 var(--lane-width, 242px); flex-direction: column; min-height: 100%; overflow: visible; }
.client-card:first-child { border-left: 2px solid #d8d7d0; }
.client-card:nth-child(4n + 1) { --lane-color: #398f82; }
.client-card:nth-child(4n + 2) { --lane-color: #526eaa; }
.client-card:nth-child(4n + 3) { --lane-color: #c06b58; }
.client-card:nth-child(4n + 4) { --lane-color: #83954a; }
.client-card.drag-over { background: #f6fff9; box-shadow: inset 0 0 0 2px #58a989; }
.client-card-header { align-items: center; background: transparent; border-bottom: 2px solid var(--lane-color, #638b83); gap: 6px; min-height: 47px; padding: 5px 8px; }
.client-number { background: color-mix(in srgb, var(--lane-color, #638b83) 12%, white); border-radius: 3px; color: var(--lane-color, #638b83); font-size: 9px; height: 22px; width: 22px; }
.client-name-input { color: #36423e; font-family: var(--font-body); font-size: 12px; font-weight: 700; }
.client-name-input:focus { background: #fff; }
.client-driver-summary { align-items: center; color: #85877e; display: flex; font-size: 8px; justify-content: space-between; padding: 5px 8px 0; }
.client-driver-summary strong { color: #4f6459; font-weight: 700; }
.client-driver-summary label { align-items: center; display: inline-flex; gap: 4px; }
.client-driver-summary input { background: #fff; border: 1px solid #e4e2dc; border-radius: 3px; color: #4f6459; font-size: 8px; height: 21px; outline: 0; padding: 0 3px; width: 39px; }
.client-driver-summary input:focus { border-color: #aaa5e9; }
.driver-slot { align-items: center; border: 1px dashed #d9d8cf; border-radius: 3px; color: #a2a297; display: flex; flex: 0 0 auto; font-size: 8px; gap: 6px; min-height: 34px; padding: 5px 8px; }
.driver-slot span { color: #8f9d89; font-size: 13px; line-height: 1; }
.client-menu { color: #999990; }
.driver-cards { align-content: start; flex: 1; gap: 5px; min-height: 95px; padding: 7px 7px 8px; }
.driver-card { background: #fff; border: 1px solid #e4e2dc; border-left: 3px solid var(--trailer-color, #7b73e8); border-radius: 3px; padding: 6px 6px 5px; }
.driver-card:hover { box-shadow: 0 2px 6px #36352814; }
.card-dates { gap: 4px; margin-bottom: 5px; }
.date-field { align-items: center; flex-direction: row; gap: 3px; }
.date-field > span { color: #898c7d; font-size: 7px; letter-spacing: 0; }
.date-field input { background: #fbfbf7; border: 0; border-bottom: 1px dotted #cecec3; border-radius: 0; font-size: 8px; height: 18px; padding: 1px; }
.driver-card-top { gap: 6px; min-height: 30px; }
.driver-photo { background: #f0eee5; border: 1px solid #e8e5da; border-radius: 2px; color: #5d695f; height: 30px; width: 28px; }
.driver-card-name { color: #333c38; font-size: 10px; }
.trailer-tag { background: color-mix(in srgb, var(--trailer-color, #7b73e8) 10%, white); border-radius: 2px; color: #484943; font-size: 8px; padding: 3px 4px; }
.note-input { background: #fffefa; border-color: #efeee8; border-radius: 2px; font-size: 8px; height: 21px; margin-top: 4px; }
.client-empty { align-items: center; color: #b4b3a9; display: flex; flex: 1; justify-content: center; min-height: 88px; }
.client-footer { border-top: 1px solid #eeece4; margin-top: auto; padding: 6px; }
.assign-button { border-color: #e6e3d8; border-radius: 3px; font-size: 9px; height: 26px; }
.add-client-card { align-self: flex-start; background: #fffefa; border-color: #d8d7d0; border-radius: 3px; flex: 0 0 178px; margin: 0; min-height: 64px; }
.driver-panel { border: 0; display: flex; padding: 12px 14px 10px; }
.driver-panel-heading { align-items: center; margin-bottom: 8px; }
.driver-panel-heading h2 { font-size: 12px; margin: 0 0 3px; }
.driver-panel-subtitle { font-size: 8px; }
.search-box { max-width: 440px; }
.drag-instruction { margin: 7px 1px 5px; }
.driver-list { display: grid; flex: 0 0 auto; gap: 0 12px; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); max-height: 145px; min-height: 0; overflow: auto; padding: 0 3px 0 0; }
.roster-item { min-height: 39px; }
.roster-avatar { border: 1px solid #e8e5da; border-radius: 3px; height: 28px; width: 25px; }
.manage-drivers-button { align-self: flex-start; margin-top: 7px; }
.page-footer { padding-top: 8px; }

@media (min-width: 1051px) {
  .workspace { display: flex; flex-direction: column; }
  .driver-panel { border-top: 1px solid #eeece4; }
  .driver-list { max-height: 145px; }
}
@media (max-width: 760px) {
  .main-content { padding-left: 13px; padding-right: 13px; }
  .workspace { display: flex; }
  .board-scroll { min-height: 380px; }
  .driver-panel { max-height: none; }
  .driver-list { display: grid; grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); max-height: 140px; min-height: 0; overflow: auto; }
}
@media (max-width: 480px) {
  .page-heading { align-items: center; flex-direction: row; }
  .page-heading .button { align-self: auto; margin: 0; }
  h1 { font-size: 19px; }
  .summary-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary-card { align-items: center; flex-direction: row; min-height: 63px; padding: 7px; }
  .summary-icon { display: flex; flex: 0 0 23px; height: 23px; margin-right: 6px; width: 23px; }
  .summary-copy > span { font-size: 6px; }
  .summary-copy strong { font-size: 15px; }
  .summary-note { display: none; }
}
