:root {
  --blue: #03a9f4;
  --admin-theme: #03a9f4;
  --admin-theme-dark: #026fa1;
  --yellow: #ffc107;
  --ink: #15202b;
  --muted: #65717c;
  --line: #dfe6ea;
  --paper: #f4f7f9;
  --white: #ffffff;
  --danger: #c0392b;
  --success: #078b61;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  padding: 4px 24px 24px;
  color: #ffffff;
  background: var(--admin-theme-dark);
}

.admin-brand {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}

.admin-brand span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #111827;
  font-weight: 800;
  background: var(--yellow);
  border-radius: 10px;
}

.admin-brand img {
  width: 92px;
  max-width: 100%;
  height: 52px;
  object-fit: contain;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.admin-brand img.admin-brand-company-logo {
  width: 168px;
  height: 76px;
  justify-self: start;
  padding: 8px;
}

.admin-brand img.admin-brand-kimopaya-logo {
  width: 168px;
  height: 64px;
  justify-self: start;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.admin-brand strong {
  color: #ffffff;
  font-size: 22px;
}

.admin-brand small {
  color: rgba(255, 255, 255, 0.68);
}

.sidebar nav {
  display: grid;
  gap: 8px;
}

.sidebar nav a {
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 8px;
}

.sidebar nav a.active,
.sidebar nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.admin-main {
  margin-left: 260px;
  padding: 64px 28px 28px;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 260px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 26px;
  color: #ffffff;
  background: var(--admin-theme);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.topbar-spacer {
  min-width: 1px;
}

.mobile-topbar-left {
  display: none;
}

.mobile-module-menu {
  position: relative;
}

.mobile-module-menu summary {
  display: inline-flex;
  width: 42px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  list-style: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
}

.mobile-module-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu-icon,
.mobile-menu-icon::before,
.mobile-menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
  content: "";
}

.mobile-menu-icon {
  position: relative;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after {
  position: absolute;
  left: 0;
}

.mobile-menu-icon::before {
  top: -7px;
}

.mobile-menu-icon::after {
  top: 7px;
}

.mobile-module-menu-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  display: grid;
  min-width: 230px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #d7e0eb;
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.2);
}

.mobile-module-menu-list a {
  padding: 11px 12px;
  color: #203040;
  border-radius: 6px;
  font-weight: 800;
}

.mobile-module-menu-list a.active,
.mobile-module-menu-list a:hover,
.mobile-module-menu-list a:focus {
  color: var(--admin-theme-dark);
  background: color-mix(in srgb, var(--admin-theme) 10%, #ffffff);
  outline: none;
}

.mobile-topbar-logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.mobile-topbar-logo img {
  display: block;
  width: 128px;
  height: 42px;
  object-fit: contain;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  min-width: 0;
}

.topbar-item,
.topbar-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

button.topbar-item {
  cursor: pointer;
  background: transparent;
  padding: 0;
}

.topbar-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.24);
}

.topbar-caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.topbar-bell {
  position: relative;
  justify-content: center;
  width: 26px;
}

.topbar-bell-icon {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 18px;
}

.topbar-bell-icon::before {
  position: absolute;
  top: 2px;
  left: 3px;
  width: 11px;
  height: 12px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 9px 9px 2px 2px;
  content: "";
}

.topbar-bell-icon::after {
  position: absolute;
  right: 1px;
  bottom: 3px;
  left: 1px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  box-shadow: 7px 5px 0 -2px currentColor;
  content: "";
}

.topbar-status {
  width: 10px;
  height: 10px;
  background: #18aa18;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(24, 170, 24, 0.86);
}

.topbar-user-icon {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.topbar-user-icon::before {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

.topbar-user-icon::after {
  position: absolute;
  right: 3px;
  bottom: 2px;
  left: 3px;
  height: 5px;
  background: currentColor;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  content: "";
}

.topbar-logout {
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
}

.topbar-logout:hover,
.topbar-logout:focus {
  color: #101c27;
  background: var(--yellow);
  outline: none;
}

.account-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(12, 18, 28, 0.26);
}

.account-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 61;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  width: min(430px, 100vw);
  height: 100vh;
  height: 100dvh;
  color: #24316d;
  background: #ffffff;
  box-shadow: -18px 0 45px rgba(15, 23, 42, 0.18);
  visibility: hidden;
  transform: translateX(100%);
  transition: transform .22s ease;
}

@supports (height: 100svh) {
  .account-drawer {
    min-height: 100svh;
  }
}

.account-drawer.is-open {
  visibility: visible;
  transform: translateX(0);
}

.account-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 28px;
  border-bottom: 1px solid #e2e7f0;
}

.account-drawer-header h2 {
  margin: 0;
  color: #001c66;
  font-size: 24px;
  font-weight: 900;
}

.account-drawer-close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #334064;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.account-drawer-close:hover,
.account-drawer-close:focus {
  background: #eef3ff;
  outline: none;
}

.account-drawer-profile {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 26px 28px 24px;
  text-align: center;
  border-bottom: 1px solid #e2e7f0;
}

.account-company-avatar {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background: #ffffff;
  border: 4px solid color-mix(in srgb, var(--admin-theme) 18%, #ffffff);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.account-company-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.account-company-avatar span {
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.account-drawer-profile strong {
  color: #001c66;
  font-size: 24px;
  font-weight: 900;
}

.account-drawer-profile span {
  color: #3a458d;
}

.account-drawer-profile div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.account-drawer-profile em {
  padding: 6px 10px;
  color: #344080;
  background: #e7ebf8;
  border-radius: 3px;
  font-style: normal;
  font-weight: 800;
}

.account-drawer-profile .account-plan {
  color: #ffffff;
  background: var(--admin-theme);
}

.account-drawer-links {
  display: grid;
  align-content: start;
  gap: 2px;
  overflow-y: auto;
  padding: 22px 28px;
}

.account-drawer-links strong {
  margin-bottom: 12px;
  color: #344080;
  font-size: 16px;
}

.account-drawer-links a {
  padding: 14px 18px;
  color: #344080;
  border-radius: 6px;
}

.account-drawer-links a:hover,
.account-drawer-links a:focus {
  color: var(--admin-theme-dark);
  background: #eef3ff;
  outline: none;
}

.account-drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid #e2e7f0;
}

.account-drawer-footer span {
  padding: 8px 11px;
  border: 1px solid #d9e0ec;
  border-radius: 4px;
}

.account-drawer-footer a {
  color: #0044cc;
  font-weight: 900;
}

body.has-account-drawer {
  overflow: hidden;
}

.page-heading {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 34px;
}

.logout,
.panel button,
.login-card button {
  border: 0;
  color: #101c27;
  font-weight: 800;
  background: var(--yellow);
  border-radius: 8px;
  cursor: pointer;
}

.logout {
  padding: 11px 14px;
}

.status,
.panel,
.metric-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.status {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  padding: 16px 18px;
}

.status.ok {
  border-color: rgba(7, 139, 97, 0.25);
}

.status.ok strong {
  color: var(--success);
}

.status.bad strong {
  color: var(--danger);
}

.status span,
.panel p,
.metric-card small {
  color: var(--muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.metric-card {
  padding: 20px;
}

.metric-card small {
  display: block;
}

.metric-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.metric-card-head span {
  color: var(--ink);
  font-weight: 800;
}

.metric-icon {
  position: relative;
  display: inline-flex;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--admin-theme);
  background: color-mix(in srgb, var(--admin-theme) 12%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--admin-theme) 24%, #ffffff);
  border-radius: 8px;
}

.metric-icon::before,
.metric-icon::after {
  position: absolute;
  content: "";
}

.metric-icon-company::before {
  width: 20px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 3px;
  box-shadow: inset 0 -7px 0 color-mix(in srgb, currentColor 20%, transparent);
}

.metric-icon-company::after {
  width: 3px;
  height: 3px;
  background: currentColor;
  box-shadow: -6px -5px 0 currentColor, 0 -5px 0 currentColor, 6px -5px 0 currentColor, -6px 2px 0 currentColor, 6px 2px 0 currentColor;
}

.metric-icon-city::before {
  bottom: 10px;
  width: 24px;
  height: 18px;
  border-bottom: 2px solid currentColor;
  background: linear-gradient(to top, currentColor 0 100%) 2px 6px / 4px 12px no-repeat,
    linear-gradient(to top, currentColor 0 100%) 10px 0 / 5px 18px no-repeat,
    linear-gradient(to top, currentColor 0 100%) 19px 8px / 4px 10px no-repeat;
}

.metric-icon-agency::before {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.metric-icon-agency::after {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}

.metric-icon-bus::before {
  width: 24px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.metric-icon-bus::after {
  bottom: 9px;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: -9px 0 0 currentColor, 9px 0 0 currentColor, -7px -8px 0 -1px currentColor, 0 -8px 0 -1px currentColor, 7px -8px 0 -1px currentColor;
}

.metric-icon-route::before {
  width: 22px;
  height: 22px;
  border: 2px dashed currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-20deg);
}

.metric-icon-route::after {
  right: 10px;
  bottom: 10px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.metric-icon-booking::before {
  width: 24px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.metric-icon-booking::after {
  width: 14px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor;
}

.metric-card strong {
  display: block;
  margin: 10px 0 4px;
  font-size: 34px;
}

.panel {
  padding: 22px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel button {
  min-height: 42px;
  padding: 0 16px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.empty-state {
  padding: 22px;
  color: var(--muted);
  background: #f8fafb;
  border: 1px dashed #cfd9df;
  border-radius: 8px;
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.responsive-table {
  overflow-x: auto;
}

.legacy-toolbar {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cfd9df;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
}

.is-hidden {
  display: none !important;
}

.list-frame {
  background: #ffffff;
  border: 1px solid #cfd9df;
  border-radius: 8px 8px 0 0;
}

.data-list {
  border-collapse: collapse;
  font-size: 13px;
  min-width: 940px;
  width: 100%;
}

.data-list th {
  background: #101c27;
  border-bottom: 3px solid var(--yellow);
  color: #ffffff;
  font-size: 11px;
  letter-spacing: .02em;
  padding: 11px 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-list td {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  color: #203040;
  padding: 10px;
  vertical-align: middle;
}

.clickable-row {
  cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease;
}

.data-list .clickable-row:hover td,
.data-list .clickable-row:focus td {
  background: #eef6ff;
}

.data-list .clickable-row.is-selected td {
  background: #dff2ff;
  border-bottom-color: rgba(3, 169, 244, .35);
}

.data-list .clickable-row.is-selected td:first-child {
  box-shadow: inset 4px 0 0 var(--blue);
}

.empty-row {
  color: #65717c;
  font-weight: 800;
  padding: 26px 12px;
  text-align: center;
}

.selected-row-panel {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cfd9df;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 12px 18px;
}

.selected-row-panel.is-active {
  background: #eef6ff;
  border-color: rgba(3, 169, 244, .35);
}

.selected-row-label {
  color: #65717c;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.selected-row-panel strong {
  color: #17202a;
}

.selected-row-panel span:last-child {
  color: #65717c;
}

.icon-button,
.row-edit-button {
  align-items: center;
  background: #eef3f8;
  border: 1px solid #b8c4d2;
  border-radius: 6px;
  color: #223047;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  text-transform: uppercase;
}

.row-edit-button:hover,
.row-edit-button:focus {
  background: var(--yellow);
  border-color: #b59400;
  color: #101c27;
  outline: none;
}

.action-modal {
  align-items: center;
  background: rgba(7, 15, 24, .72);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 50;
}

.action-modal.is-open {
  display: flex;
}

.action-modal-card {
  background: #ffffff;
  border: 1px solid #cfd9df;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  max-height: calc(100vh - 48px);
  max-width: 720px;
  overflow: hidden;
  width: min(720px, 100%);
}

.action-modal-header {
  align-items: center;
  background: #101c27;
  border-bottom: 4px solid var(--yellow);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
}

.action-modal-header h2 {
  color: #ffffff;
  font-size: 18px;
  letter-spacing: .02em;
  margin: 0;
  text-transform: uppercase;
}

.modal-close {
  align-items: center;
  background: var(--yellow);
  border: 0;
  border-radius: 6px;
  color: #101c27;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  line-height: 1;
  width: 34px;
}

.action-modal-body {
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  padding: 22px;
}

.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.settings-form-grid label {
  color: #223047;
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.settings-form-grid label span {
  font-size: 13px;
}

.settings-form-grid input,
.settings-form-grid select,
.settings-form-grid textarea {
  background: #f7f9fb;
  border: 1px solid #ccd6e2;
  border-radius: 6px;
  color: #18212f;
  min-height: 42px;
  padding: 9px 11px;
  width: 100%;
}

.settings-form-grid input:focus,
.settings-form-grid select:focus,
.settings-form-grid textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(3, 169, 244, .18);
}

.settings-form-grid textarea {
  min-height: 110px;
  resize: vertical;
}

.form-wide {
  grid-column: 1 / -1;
}

.company-theme-picker {
  border: 0;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.company-theme-picker legend {
  color: #223047;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.company-theme-picker > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.company-theme-picker label {
  align-items: center;
  background: #ffffff;
  border: 1px solid #ccd6e2;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
}

.company-theme-picker input {
  accent-color: var(--blue);
  min-height: auto;
  width: auto;
}

.company-theme-picker label span {
  background: var(--swatch-color);
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 999px;
  display: inline-block;
  height: 20px;
  width: 20px;
}

.company-color-field input[type="color"] {
  cursor: pointer;
  height: 48px;
  padding: 4px;
}

.company-settings-title {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.span-2 {
  grid-column: span 2;
}

.company-settings-form {
  display: grid;
  gap: 18px;
}

.company-settings-card {
  padding: 18px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.company-identity-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 20px;
  align-items: center;
}

.company-identity-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.company-identity-card p {
  margin: 0;
  color: var(--muted);
}

.company-logo-control {
  display: flex;
  justify-content: flex-end;
}

.company-logo-uploader {
  display: grid;
  place-items: center;
  width: 160px;
  height: 88px;
  color: var(--admin-theme);
  background: color-mix(in srgb, var(--admin-theme) 7%, #ffffff);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
}

.company-logo-uploader img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  background: transparent;
  border: 0;
}

.company-logo-uploader > span {
  position: relative;
  width: 34px;
  height: 34px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.company-logo-uploader > span::before,
.company-logo-uploader > span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.company-logo-uploader > span::after {
  width: 2px;
  height: 16px;
}

.company-logo-uploader input {
  display: none;
}

.modal-actions {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
  padding-top: 18px;
}

.legacy-action-button {
  background: var(--yellow);
  border: 1px solid #b59400;
  border-radius: 6px;
  color: #111111;
  cursor: pointer;
  font-weight: 850;
  min-height: 40px;
  padding: 0 14px;
  text-transform: uppercase;
}

.legacy-action-button.secondary {
  background: #eef3f8;
  border-color: #b8c4d2;
  color: #223047;
}

.login-body {
  background:
    linear-gradient(135deg, rgba(12, 25, 40, .78), rgba(12, 34, 31, .6)),
    url("../img/login-bg.png") center / cover fixed no-repeat,
    #102236;
  min-height: 100vh;
}

.login-screen {
  align-items: stretch;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) 430px;
  margin: 0 auto;
  min-height: 100vh;
  max-width: 1180px;
  padding: 34px 24px;
}

.login-brand {
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 54px 42px 0;
}

.app-mark {
  align-items: center;
  background: transparent;
  border-radius: 8px;
  display: inline-flex;
  height: 76px;
  justify-content: center;
  margin-bottom: 28px;
  padding: 0;
  width: 230px;
}

.app-mark img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.login-brand .eyebrow {
  color: #cbd8e7;
}

.login-brand h1 {
  max-width: 620px;
}

.login-brand p {
  color: #d7e1ec;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 560px;
}

.login-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.login-stats span {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 6px;
  color: #ffffff;
  font-weight: 800;
  padding: 10px 14px;
}

.login-card {
  align-self: center;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
  padding: 28px;
}

.login-card-head {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.login-card-head h2 {
  font-size: 1.55rem;
  font-weight: 850;
  margin: 0;
}

.lock-icon {
  align-items: center;
  background: #e8f1ee;
  border-radius: 8px;
  color: var(--blue);
  display: inline-flex;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.login-logo-mark {
  background: #ffffff;
  border: 1px solid #dde4ec;
  padding: 6px;
  width: 48px;
}

.login-logo-mark img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.alert {
  background: #fff1f0;
  border: 1px solid #ffd0cc;
  border-radius: 6px;
  color: #9a2b20;
  font-weight: 700;
  margin-bottom: 16px;
  padding: 12px;
}

.success-alert {
  background: #ecfff7;
  border-color: #b9efd7;
  color: #08704f;
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form label {
  color: #223047;
  font-weight: 800;
  margin-top: 6px;
}

.login-form input {
  background: #f7f9fb;
  border: 1px solid #ccd6e2;
  border-radius: 6px;
  color: #18212f;
  font: inherit;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.login-form input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(3, 169, 244, .18);
}

.password-field {
  display: flex;
}

.password-field input {
  border-right: 0;
}

.password-toggle {
  align-items: center;
  background: #eef3f8;
  border: 1px solid #b8c4d2;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 44px;
  font: inherit;
  justify-content: center;
  min-height: 46px;
  padding: 0;
}

.password-field input:first-child {
  border-radius: 6px 0 0 6px;
}

.password-toggle img {
  display: block;
  height: 21px;
  width: 21px;
}

.password-toggle:hover,
.password-toggle:focus {
  background: #c9dff5;
  border-color: #4c89c3;
  outline: none;
}

.login-form > button.login-submit {
  align-items: center;
  background: var(--yellow);
  border: 1px solid #b59400;
  border-radius: 6px;
  color: #111111;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: .88rem;
  font-weight: 850;
  justify-content: center;
  margin-top: 12px;
  min-height: 48px;
  padding: 0 12px;
  white-space: nowrap;
}

.login-form > button.login-submit:hover,
.login-form > button.login-submit:focus {
  background: #c9dff5;
  border-color: #4c89c3;
  outline: none;
}

.login-note {
  color: #687589;
  font-size: .9rem;
  line-height: 1.5;
  margin: 18px 0 0;
}

.company-logo-thumb {
  background: #fff;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  display: block;
  height: 34px;
  max-width: 120px;
  object-fit: contain;
  padding: 4px;
}

@media (max-width: 860px) {
  .login-screen {
    grid-template-columns: 1fr;
    max-width: 620px;
    padding: 24px;
  }

  .login-brand {
    padding: 12px 0 26px;
  }

  .login-brand h1 {
    font-size: 2rem;
  }

  .sidebar {
    display: none;
  }

  .sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-main {
    margin-left: 0;
    padding: 20px;
  }

  .topbar {
    position: sticky;
    top: 0;
    left: auto;
    min-height: 48px;
    margin: -20px -20px 22px;
    padding: 0 12px;
  }

  .mobile-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .mobile-module-menu-list {
    position: fixed;
    top: 48px;
    left: 0;
    width: 100vw;
    min-width: 0;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 18px;
    color: #ffffff;
    background: var(--admin-theme-dark);
    border: 0;
    border-radius: 0;
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.24);
  }

  .mobile-module-menu-list a {
    min-height: 48px;
    align-content: center;
    padding: 14px 16px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 16px;
  }

  .mobile-module-menu-list a.active,
  .mobile-module-menu-list a:hover,
  .mobile-module-menu-list a:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    outline: none;
  }

  .topbar-spacer,
  .topbar-bell,
  .topbar-divider {
    display: none;
  }

  .topbar-actions {
    width: auto;
    justify-content: flex-end;
  }

  .account-drawer {
    top: 48px;
    width: min(430px, 100vw);
    height: calc(100vh - 48px);
    height: calc(100dvh - 48px);
    min-height: 0;
  }

  .account-drawer-header {
    min-height: 58px;
    padding: 0 18px;
  }

  .account-drawer-profile {
    gap: 8px;
    padding: 16px 18px 14px;
  }

  .account-company-avatar {
    width: 72px;
    height: 72px;
    border-width: 3px;
  }

  .account-drawer-profile strong {
    font-size: 20px;
  }

  .account-drawer-links {
    padding: 14px 18px;
  }

  .account-drawer-links a {
    min-height: 44px;
    padding: 11px 14px;
  }

  .account-drawer-footer {
    padding: 10px 14px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) and (orientation: landscape) {
  .mobile-module-menu-list {
    width: 50vw;
    max-width: 420px;
  }

  .admin-main {
    padding: 16px;
  }

  .topbar {
    margin: -16px -16px 16px;
  }

  .account-drawer {
    width: min(430px, 50vw);
  }

  .account-drawer-profile {
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
  }

  .account-company-avatar {
    grid-row: span 4;
  }

  .account-drawer-links {
    padding-block: 10px;
  }

  .page-heading {
    margin-bottom: 14px;
  }

  .panel,
  .metric-card,
  .company-settings-card {
    padding: 16px;
  }

  .metric-grid,
  .settings-form-grid,
  .company-settings-form {
    gap: 12px;
  }
}

@media (max-width: 560px) and (orientation: portrait) {
  body {
    background: #f7f9fb;
  }

  .admin-main {
    padding: 8px;
  }

  .topbar {
    margin: -8px -8px 10px;
  }

  .account-drawer {
    width: 100vw;
  }

  .account-drawer-header {
    min-height: 54px;
  }

  .account-drawer-profile {
    gap: 6px;
    padding: 12px 14px;
  }

  .account-company-avatar {
    width: 62px;
    height: 62px;
  }

  .account-drawer-profile strong {
    font-size: 18px;
  }

  .account-drawer-links {
    padding: 10px 14px;
  }

  .account-drawer-links a {
    min-height: 40px;
    padding: 9px 12px;
  }

  .page-heading {
    margin-bottom: 8px;
  }

  h1 {
    font-size: 24px;
  }

  .status {
    margin-bottom: 8px;
    padding: 10px;
  }

  .panel,
  .metric-card,
  .company-settings-card {
    padding: 10px;
  }

  .panel-head {
    gap: 8px;
    margin-bottom: 8px;
  }

  .metric-grid {
    gap: 8px;
  }

  .settings-form-grid,
  .company-settings-form {
    gap: 8px;
  }

  .legacy-toolbar {
    margin-bottom: 6px;
    padding: 6px;
  }

  th,
  td {
    padding: 8px 6px;
  }
}

@media (max-width: 560px) {
  .login-screen {
    padding: 18px;
  }

  .login-brand {
    text-align: left;
  }

  .login-card {
    padding: 22px;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    overflow-x: auto;
  }

  .mobile-topbar-logo img {
    width: 112px;
    height: 38px;
  }

  .topbar-account span:nth-child(3) {
    max-width: 98px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .metric-grid,
  .sidebar nav {
    grid-template-columns: 1fr;
  }

  .settings-form-grid {
    grid-template-columns: 1fr;
  }

  .company-identity-card {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }
}

/* Kimopaya Manager polish */
body {
  background: #eef4f7;
}

.sidebar {
  width: 248px;
  padding: 18px 18px 22px;
  background: #0f1c24 !important;
  box-shadow: 8px 0 24px rgba(15, 23, 42, .08);
}

.admin-brand {
  align-items: center;
  min-height: 78px;
  margin-bottom: 16px;
  padding: 0 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.admin-brand img.admin-brand-kimopaya-logo {
  width: 178px;
  height: 58px;
}

.sidebar nav {
  gap: 7px;
}

.sidebar nav a {
  min-height: 42px;
  align-content: center;
  padding: 11px 14px;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  font-weight: 800;
  border-radius: 7px;
}

.sidebar nav a.active {
  color: #111827;
  background: #f6bd43;
}

.sidebar nav a:hover,
.sidebar nav a:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, .14);
  outline: none;
}

.sidebar nav a.active:hover,
.sidebar nav a.active:focus {
  color: #111827;
  background: #f6bd43;
}

.admin-main {
  margin-left: 248px;
  padding: 78px 30px 34px;
}

.topbar {
  left: 248px;
  min-height: 54px;
  padding: 0 30px;
  background: #057f98 !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 10px 24px rgba(15, 23, 42, .08);
}

.topbar-account {
  min-height: 36px;
  padding: 0 10px !important;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 6px;
}

.page-heading {
  margin-bottom: 18px;
}

.page-heading h1 {
  color: #102033;
  font-size: 28px;
  font-weight: 900;
}

.status,
.panel,
.metric-card {
  border-color: #d7e1e8;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  min-height: 128px;
  padding: 18px;
}

.metric-card strong {
  margin-top: 14px;
  color: #102033;
  font-size: 32px;
}

.metric-icon {
  color: #057f98;
  background: #e9f7fa;
  border-color: #bfe4ec;
}

.panel {
  padding: 20px;
}

.panel h2,
.panel-head h2 {
  margin-bottom: 4px;
  color: #102033;
  font-size: 20px;
}

.panel p {
  margin-bottom: 0;
  line-height: 1.55;
}

.panel button,
.legacy-action-button {
  background: #f6bd43;
  border-color: #d39a1f;
  border-radius: 6px;
}

.legacy-toolbar {
  background: #ffffff;
  border-color: #d7e1e8;
}

.list-frame {
  border-color: #d7e1e8;
}

.data-list th {
  background: #0f1c24;
  border-bottom-color: #f6bd43;
}

.data-list td {
  padding: 11px 10px;
}

.selected-row-panel {
  border-color: #d7e1e8;
}

.action-modal-card {
  max-width: 780px;
}

.action-modal-header {
  background: #0f1c24;
  border-bottom-color: #f6bd43;
}

.account-company-avatar {
  color: #ffffff;
  background: #057f98;
  border-color: #d8f2f7;
}

.account-company-avatar span {
  color: #ffffff;
}

.login-body {
  background:
    linear-gradient(135deg, rgba(8, 24, 34, .86), rgba(5, 127, 152, .62)),
    url("../img/login-bg.png") center / cover fixed no-repeat,
    #102236;
}

.login-card {
  border: 0;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}

.login-brand h1 {
  font-size: 42px;
  line-height: 1.08;
}

.login-stats span {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .22);
}

@media (max-width: 1120px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .admin-main {
    margin-left: 0;
    padding: 18px;
  }

  .topbar {
    left: auto;
    margin: -18px -18px 18px;
    padding: 0 14px;
  }

  .mobile-module-menu-list {
    background: #0f1c24;
  }
}

@media (max-width: 560px) {
  .admin-main {
    padding: 10px;
  }

  .topbar {
    margin: -10px -10px 12px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .login-brand h1 {
    font-size: 32px;
  }
}
