/* startup: multi-branch-admin.css */
/* Multi-branch administrator assignment and branch switching */
#admin .admin-permission-group {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #dce6f2;
  border-radius: 12px;
  background: #fff;
}

#admin .admin-permission-group legend {
  padding: 0 5px;
  color: #27538f;
  font-size: 13px;
  font-weight: 850;
}

#admin .admin-permission-group-options {
  display: grid;
  gap: 8px;
}

#admin .admin-permission-option {
  align-items: flex-start !important;
}

#admin .admin-permission-option input {
  flex: 0 0 auto;
  margin: 2px 0 0 !important;
}

#admin .admin-permission-option-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

#admin .admin-permission-option-copy b {
  color: #243c5d;
  font-size: 13px;
  line-height: 1.35;
}

#admin .admin-permission-option-copy small {
  color: #697d99;
  font-size: 11px;
  line-height: 1.5;
}

#admin .branch-assignment-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

#admin .branch-assignment-fieldset legend {
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  color: #52657f;
  font-size: 12px;
  font-weight: 800;
}

#admin .branch-assignment-fieldset legend small {
  margin-left: 5px;
  color: #8190a6;
  font-size: 10px;
  font-weight: 700;
}

#admin .branch-assignment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 218px;
  padding: 9px;
  overflow: auto;
  border: 1px solid #d7e2f0;
  border-radius: 12px;
  background: #f7faff;
  scrollbar-width: thin;
}

#admin .branch-assignment-option {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  min-width: 0;
  min-height: 52px;
  margin: 0 !important;
  padding: 9px 11px;
  border: 1px solid #e0e8f3;
  border-radius: 10px;
  background: #fff;
  color: #253c5d !important;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

#admin .branch-assignment-option:hover {
  border-color: #adc4e7;
  background: #f9fbff;
}

#admin .branch-assignment-option:has(input:checked) {
  border-color: #7ba4e4;
  background: #edf4ff;
  box-shadow: inset 0 0 0 1px rgba(54, 111, 204, .1);
}

#admin .branch-assignment-option input {
  width: 18px !important;
  height: 18px !important;
  min-height: 0 !important;
  margin: 0 !important;
  flex: 0 0 auto;
  accent-color: #2f6fd1;
}

#admin .branch-assignment-option > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

#admin .branch-assignment-option b {
  overflow: hidden;
  color: #1f3658;
  font-size: 13px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#admin .branch-assignment-option small {
  color: #7c8ca3;
  font-size: 10px;
  font-weight: 700;
  text-align: left !important;
}

#admin .branch-assignment-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px;
  color: #7b8aa0;
  font-size: 12px;
  text-align: center;
}

#admin #branches-pane .manager-account-row {
  align-items: flex-start;
  flex-wrap: wrap;
}

#admin #branches-pane .manager-account-identity {
  align-content: start;
  min-width: 190px;
}

#admin #branches-pane .manager-account-identity > small {
  max-width: 420px;
  overflow: hidden;
  color: #657791;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#admin #branches-pane .manager-account-actions {
  justify-items: end;
  min-width: min(100%, 360px);
}

#admin #branches-pane .manager-account-actions > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 4px;
}

#admin #branches-pane .manager-account-actions .rider-action {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 11px;
}

#admin .manager-branch-editor {
  display: grid;
  width: 100%;
  gap: 12px;
  margin-top: 5px;
  padding: 16px;
  border-top: 1px solid #e1e9f4;
  border-radius: 0 0 12px 12px;
  background: #f8fbff;
}

#admin .manager-branch-editor[hidden] {
  display: none !important;
}

#admin .manager-branch-editor-head {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#admin .manager-branch-editor-head > div {
  display: grid;
  gap: 3px;
}

#admin .manager-branch-editor-head b {
  color: #1f3659;
  font-size: 14px;
}

#admin .manager-branch-editor-head p {
  margin: 0;
  color: #74849b;
  font-size: 11px;
  text-align: left;
}

#admin .manager-branch-editor-head > span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e9f2ff;
  color: #2c62b6;
  font-size: 10px;
  font-weight: 800;
}

#admin .manager-branch-editor-actions {
  display: flex !important;
  justify-content: flex-end;
  gap: 7px;
}

#admin .manager-branch-editor-actions .rider-action {
  min-height: 36px;
}

@media (max-width: 720px) {
  #admin .branch-assignment-options {
    grid-template-columns: 1fr;
    max-height: 240px;
  }

  #admin #branches-pane .manager-account-identity,
  #admin #branches-pane .manager-account-actions {
    width: 100%;
    min-width: 0;
  }

  #admin #branches-pane .manager-account-actions {
    justify-items: start;
  }

  #admin #branches-pane .manager-account-actions > small,
  #admin #branches-pane .manager-account-actions > p {
    text-align: left;
  }

  #admin #branches-pane .manager-account-actions > div,
  #admin .manager-branch-editor-actions {
    width: 100%;
    justify-content: flex-start;
  }

  #admin .manager-branch-editor {
    padding: 14px 0 2px;
    background: transparent;
  }
}

@media (max-width: 460px) {
  #admin #branches-pane .manager-account-actions > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #admin #branches-pane .manager-account-actions [data-manager-branch-toggle] {
    grid-column: 1 / -1;
  }

  #admin #branches-pane .manager-account-actions .rider-action {
    width: 100%;
  }
}


/* startup: design-safety-polish.css */
/*
  2026-10-06 visual safety polish
  Presentation-only overrides. Settlement parsing, totals, payment states and
  permissions remain untouched.
*/

/* Keep the complete selected settlement name readable outside the native select. */
.rider-period-control {
  display: grid;
  width: 100%;
  min-width: 0;
  padding-top: 2px;
  gap: 7px;
}

#rider > .page-heading {
  align-items: start !important;
}

#rider-period-current {
  display: -webkit-box;
  max-height: 3em;
  margin: 0 2px;
  overflow: hidden;
  color: #5f7088;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#rider-period-current[hidden] {
  display: none !important;
}

/* Meaningful helper copy must remain legible; tiny English kickers stay compact. */
.rider-feature-group-heading p,
.rider-monthly-report-heading p,
.rider-monthly-report-heading label,
.rider-monthly-report-note,
.rider-monthly-report-empty span {
  color: #66778e !important;
  font-size: 11px !important;
}

.rider-monthly-report-primary small,
.rider-monthly-report-section-title span,
.rider-monthly-platform small,
.rider-monthly-statuses span,
.rider-monthly-statuses small,
.rider-monthly-insights span {
  color: #687990 !important;
  font-size: 10px !important;
}

/* Consistent keyboard focus without changing normal mouse/touch appearance. */
:where(button, a, summary, select, input, textarea):focus-visible {
  outline: 3px solid rgba(53, 109, 243, .34);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  /* The frequently used admin navigation remains reachable after long lists. */
  #admin .admin-sidebar {
    position: sticky !important;
    z-index: 12;
    top: 74px !important;
  }

  #admin .admin-mobile-quick-nav {
    box-shadow: 0 8px 22px rgba(27, 49, 82, .11);
  }

  #admin .admin-mobile-quick-item > b {
    font-size: 10px;
  }

  /* Long Korean labels may wrap to two lines instead of being cut with an ellipsis. */
  .admin-mobile-menu-item {
    min-height: 70px;
  }

  .admin-mobile-menu-item > b {
    display: -webkit-box;
    align-self: center;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.28;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .admin-mobile-menu-item > small {
    color: #748297;
    font-size: 9.5px;
  }

  /* Preserve priority while shortening long, one-column mobile summaries. */
  #admin :is(.dashboard-metrics, .payment-work-summary, .settlement-type-summary) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #admin :is(.dashboard-metrics, .payment-work-summary, .settlement-type-summary) > article:first-child {
    grid-column: 1 / -1;
  }

  #admin .held-dashboard-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #admin :is(.dashboard-metrics, .payment-work-summary, .settlement-type-summary, .held-dashboard-summary) article {
    min-width: 0;
  }

  #admin :is(.dashboard-metrics, .payment-work-summary, .settlement-type-summary, .held-dashboard-summary) strong {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 620px) {
  .rider-period-control {
    padding-top: 0;
  }

  #rider-period-current {
    margin-inline: 1px;
    font-size: 11px;
  }

  /* Keep the compact right-side status while reserving space for long amounts. */
  #rider .stats .pay-card > #rider-pay {
    max-width: calc(100% - 104px);
    padding-right: 6px;
    font-size: clamp(26px, 8vw, 32px) !important;
    white-space: nowrap;
  }

  /* The summary already contains the title; keep only useful guidance/status inside. */
  #rider :is(.settlement-settings, .bank-settings, .notification-settings, .inquiry-settings)[open] .section-title {
    min-height: 0 !important;
    padding: 13px 15px !important;
  }

  #rider :is(.settlement-settings, .bank-settings, .notification-settings, .inquiry-settings)[open] .section-title .section-icon,
  #rider :is(.settlement-settings, .bank-settings, .notification-settings, .inquiry-settings)[open] .section-title h2 {
    display: none !important;
  }

  #rider :is(.settlement-settings, .bank-settings, .notification-settings, .inquiry-settings)[open] .section-title p {
    margin: 0 !important;
    color: #62748d !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
  }
}

@media (max-width: 360px) {
  #admin :is(.dashboard-metrics, .payment-work-summary, .settlement-type-summary, .held-dashboard-summary) {
    grid-template-columns: 1fr !important;
  }

  #admin :is(.dashboard-metrics, .payment-work-summary, .settlement-type-summary) > article:first-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

#admin .payment-cross-permission-note {
  display: inline-block;
  max-width: 210px;
  color: #8b5a2b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  text-align: right;
}

@media (max-width: 760px) {
  #admin .payment-adjustment-row > .payment-cross-permission-note {
    grid-column: 1 / -1;
    max-width: none;
    text-align: left;
  }

  #admin .paid-payment-row .payment-cross-permission-note {
    text-align: left;
  }
}

/* Rider directory: recent access and bank details are information, not actions. */
@media (min-width: 1280px) {
  #admin #riders-pane .rider-row {
    grid-template-columns: minmax(150px, .7fr) minmax(190px, .8fr) minmax(440px, 2.2fr) !important;
    grid-template-areas: "identity payout actions" "login account account" !important;
    align-items: center !important;
    gap: 10px 15px !important;
    padding-bottom: 14px !important;
  }

  #admin #riders-pane .rider-row:not(:has(.rider-account-summary)) {
    grid-template-areas: "identity payout actions" "login . ." !important;
  }

  #admin #riders-pane .rider-row > .rider-account-summary {
    grid-area: account;
    grid-column: 2 / -1 !important;
    justify-self: start;
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px !important;
    width: max-content;
    max-width: 100%;
    min-width: 0;
    padding: 3px 8px;
    box-sizing: border-box;
  }

  #admin #riders-pane .rider-account-summary-meta {
    display: contents;
  }

  #admin #riders-pane .rider-account-summary-meta > span {
    order: 1;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  #admin #riders-pane .rider-account-summary > b {
    order: 2;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #admin #riders-pane .rider-account-summary-meta > small {
    order: 3;
    flex: 0 0 auto;
  }

  #admin #riders-pane .rider-row > .rider-last-login {
    grid-area: login;
    grid-column: 1 !important;
    width: auto !important;
    margin: 0 !important;
    text-align: left !important;
    white-space: nowrap;
  }

  #admin #riders-pane .rider-row > .rider-row-actions {
    grid-area: actions;
    grid-column: 3 !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    padding-top: 0 !important;
    border-top: 0 !important;
  }
}

@media (min-width: 761px) and (max-width: 1279px) {
  #admin #riders-pane .rider-row {
    grid-template-areas: "identity payout account" "login login login" "actions actions actions" !important;
  }

  #admin #riders-pane .rider-row > .rider-last-login {
    grid-area: login;
    grid-column: 1 / -1 !important;
    width: auto !important;
    margin: 0 !important;
    text-align: left !important;
  }
}

@media (max-width: 760px) {
  #admin #riders-pane .rider-row {
    grid-template-areas: "identity" "payout" "account" "login" "actions" !important;
  }

  #admin #riders-pane .rider-row > .rider-last-login {
    grid-area: login;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
    white-space: normal;
  }
}

/* Keep the Beta suffix visible even in narrow sidebar/menu columns. */
#admin .admin-nav .tab[data-tab="settlement-automation"] b,
.admin-mobile-menu-item[data-admin-tab-target="settlement-automation"] > b {
  white-space: normal !important;
  overflow: visible;
  line-height: 1.4 !important;
}

/* Keep long desktop menus independent of the settlement workspace scroll.
   Scroll the details element itself: its native content wrapper does not need
   to participate in a nested flex layout. Mobile keeps its existing menu sheet. */
@media (min-width: 761px) {
  #admin .admin-sidebar {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 108px);
    max-height: calc(100dvh - 108px);
  }

  #admin .admin-sidebar-brand,
  #admin .admin-sidebar-footer {
    flex: 0 0 auto;
  }

  #admin .admin-navigation {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #b6c5d9 transparent;
  }

  #admin .admin-navigation::-webkit-scrollbar {
    width: 7px;
  }

  #admin .admin-navigation > .admin-nav {
    position: static !important;
    top: auto;
  }

  #admin .admin-navigation::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 8px;
    background: #b6c5d9;
    background-clip: padding-box;
  }
}

/* Leave room for the actual menu on short laptop/landscape viewports. */
@media (min-width: 761px) and (max-height: 480px) {
  #admin .admin-sidebar-brand,
  #admin .admin-sidebar-footer {
    display: none;
  }
}

/* Equal label space keeps the two-line automation shortcut aligned on phones. */
@media (max-width: 760px) {
  #admin .admin-mobile-quick-item > b {
    min-height: 2.4em;
    line-height: 1.2;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    text-align: center;
  }
}


/* startup: rider-push-header.css */
/* Installed rider PWA: keep the existing notification control in the header. */
.app-header .notification-settings--header {
  position: relative;
  flex: 0 0 auto;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.app-header .notification-settings--header > summary {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px;
  min-height: 40px !important;
  padding: 0 13px !important;
  border: 1px solid rgba(255, 255, 255, .19);
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  list-style: none;
  white-space: nowrap;
  cursor: pointer;
}

.app-header .notification-settings--header > summary::-webkit-details-marker {
  display: none;
}

.app-header .notification-settings--header > summary::after {
  display: none !important;
  content: none !important;
}

.app-header .notification-settings--header > summary:hover,
.app-header .notification-settings--header[open] > summary {
  background: rgba(255, 255, 255, .15);
}

.app-header .notification-settings--header > summary:focus-visible {
  outline: 3px solid rgba(132, 169, 255, .5);
  outline-offset: 2px;
}

.app-header .notification-settings--header > summary small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: #b8c7df;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
}

.app-header .notification-settings--header > summary small::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #91a0b8;
  content: "";
}

.app-header .notification-settings--header[data-push-state="enabled"] > summary small {
  color: #9ee7c9;
}

.app-header .notification-settings--header[data-push-state="enabled"] > summary small::before {
  background: #37d69a;
  box-shadow: 0 0 0 3px rgba(55, 214, 154, .14);
}

.app-header .notification-settings--header[data-push-state="blocked"] > summary small,
.app-header .notification-settings--header[data-push-state="unsupported"] > summary small {
  color: #ffd6a3;
}

.app-header .notification-settings--header[data-push-state="blocked"] > summary small::before,
.app-header .notification-settings--header[data-push-state="unsupported"] > summary small::before {
  background: #ffae5b;
}

.app-header .notification-settings--header > .notification-settings-card {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: min(380px, calc(100vw - 24px));
  margin: 0;
  padding: 20px;
  border: 1px solid #dce5f3;
  border-radius: 18px;
  background: #fff;
  color: #142743;
  box-shadow: 0 22px 55px rgba(8, 25, 54, .24);
}

.app-header .notification-settings--header .section-title {
  padding-bottom: 15px;
}

.app-header .notification-settings--header .section-title h2 {
  color: #142743;
  font-size: 18px;
}

.app-header .notification-settings--header .section-title p,
.app-header .notification-settings--header .bank-account-note {
  color: #6f7e94;
}

.app-header .notification-settings--header #toggle-rider-push {
  min-height: 46px !important;
  margin-top: 17px;
  padding: 12px 16px !important;
  border: 0 !important;
  background: linear-gradient(135deg, #356df3, #2857ce) !important;
  color: #fff !important;
  font-size: 13px !important;
}

.app-header .notification-settings--header #toggle-rider-push:disabled {
  opacity: .62;
}

@media (max-width: 820px) {
  .app-header .notification-settings--header > .notification-settings-card {
    position: fixed;
    top: 76px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100dvh - 92px);
    overflow: auto;
  }
}

@media (min-width: 561px) and (max-width: 620px) {
  body.rider-push-panel-open .app-header {
    padding-bottom: var(--rider-push-panel-space, 252px) !important;
  }

  body.rider-push-panel-open #rider > .rider-mobile-quick-nav {
    top: calc(76px + var(--rider-push-panel-space, 252px));
  }

  .app-header .notification-settings--header > .notification-settings-card {
    /* Open directly below the header; the quick menu is pushed beneath it. */
    top: 84px;
    max-height: calc(100dvh - 100px);
  }
}

@media (max-width: 560px) {
  body.rider-push-panel-open .app-header {
    padding-bottom: var(--rider-push-panel-space, 252px) !important;
  }

  body.rider-push-panel-open #rider > .rider-mobile-quick-nav {
    top: calc(68px + var(--rider-push-panel-space, 252px));
  }

  body.rider-push-header-active .app-header .header-actions > button {
    min-height: 38px;
    padding: 0 8px !important;
    font-size: 11px !important;
  }

  .app-header .notification-settings--header > summary {
    min-height: 38px !important;
    padding: 0 9px !important;
    font-size: 11px;
  }

  .app-header .notification-settings--header > summary small {
    width: 7px;
    overflow: hidden;
    color: transparent !important;
    font-size: 0;
  }

  .app-header .notification-settings--header > summary small::before {
    flex: 0 0 auto;
  }

  .app-header .notification-settings--header > .notification-settings-card {
    /* Open directly below the header; the quick menu is pushed beneath it. */
    top: 76px;
    max-height: calc(100dvh - 92px);
  }

}

@media (max-width: 380px) {
  body.rider-push-header-active .app-header .brand-logo {
    width: 94px !important;
  }

  body.rider-push-header-active .app-header .header-actions {
    gap: 3px;
  }

  body.rider-push-header-active .app-header .header-actions > button {
    padding: 0 6px !important;
    font-size: 10px !important;
  }

  .app-header .notification-settings--header > summary {
    padding: 0 6px !important;
    font-size: 10px;
  }

  .app-header .notification-settings--header > summary small {
    display: none;
  }
}


/* startup: notices.css */
#notices-pane .admin-notice-scope {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 20px 0;
  padding: 14px 17px;
  border: 1px solid #dce8fa;
  border-radius: 15px;
  background: #f5f9ff;
}

#notices-pane .admin-notice-scope > span {
  color: #5c7398;
  font-size: 12px;
  font-weight: 800;
}

#notices-pane .admin-notice-scope > strong {
  color: #183c72;
  font-size: 14px;
}

#notices-pane .admin-notice-scope > small {
  margin-left: auto;
  color: #64748b;
  font-size: 11px;
}

#notices-pane .admin-notice-form {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid #e1e9f4;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff, #f9fbff);
  box-shadow: 0 12px 30px rgba(26, 48, 86, .05);
}

#notices-pane .admin-notice-form-heading,
#notices-pane .admin-notice-list-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
}

#notices-pane .admin-notice-form-heading {
  margin-bottom: 8px;
}

#notices-pane .admin-notice-form-heading span,
#notices-pane .admin-notice-list-heading span {
  color: #4074c9;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
}

#notices-pane .admin-notice-form-heading h3,
#notices-pane .admin-notice-list-heading h3 {
  margin: 4px 0 0;
  color: #172746;
  font-size: 19px;
  letter-spacing: -.035em;
}

#notices-pane .admin-notice-form-heading p {
  max-width: 360px;
  margin: 0;
  color: #6b7b92;
  font-size: 12px;
  line-height: 1.5;
}

#notices-pane .admin-notice-form > label {
  color: #334760;
  font-size: 12px;
  font-weight: 800;
}

#notices-pane .admin-notice-form > input,
#notices-pane .admin-notice-form > textarea {
  width: 100%;
  margin: 0 0 7px;
  padding: 13px 14px;
  border: 1px solid #d8e2f0;
  border-radius: 12px;
  background: #fff;
  color: #172746;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
}

#notices-pane .admin-notice-form > textarea {
  min-height: 150px;
  resize: vertical;
}

#notices-pane .admin-notice-form > :is(input, textarea):focus-visible {
  outline: 3px solid rgba(53, 109, 243, .2);
  border-color: #5a86e8;
}

#notices-pane .admin-notice-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

#notices-pane .admin-notice-form-actions .primary {
  width: auto;
  min-width: 158px;
  margin: 0;
}

#notices-pane .admin-notice-form-actions small {
  color: #728097;
  font-size: 11px;
  line-height: 1.5;
}

#notices-pane #admin-notice-message {
  min-height: 1.5em;
  margin: 12px 0 0;
}

#notices-pane .admin-notice-list-heading {
  margin: 25px 0 13px;
}

#notices-pane #admin-notice-count {
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf3ff;
  color: #315fa8;
  font-size: 12px;
}

#notices-pane #admin-notice-count:empty {
  display: none;
}

#notices-pane .admin-notice-list {
  display: grid;
  gap: 12px;
}

#notices-pane .admin-notice-empty {
  margin: 0;
  padding: 22px;
  border: 1px dashed #d5e0ef;
  border-radius: 14px;
  background: #f8fafd;
  color: #6d7b90;
  font-size: 13px;
  text-align: center;
}

#notices-pane .admin-notice-item {
  overflow: hidden;
  border: 1px solid #e1e8f2;
  border-radius: 16px;
  background: #fff;
}

#notices-pane .admin-notice-item.is-inactive {
  background: #f8f9fb;
  opacity: .8;
}

#notices-pane .admin-notice-list-toggle,
#rider-notices-section .rider-notice-list-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 13px 18px;
  border: 0;
  background: transparent;
  color: #1c3555;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

#notices-pane .admin-notice-list-toggle strong,
#rider-notices-section .rider-notice-list-toggle strong {
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#notices-pane .admin-notice-list-toggle:hover,
#rider-notices-section .rider-notice-list-toggle:hover {
  background: #f2f7ff;
}

#notices-pane .admin-notice-list-toggle:focus-visible,
#rider-notices-section .rider-notice-list-toggle:focus-visible {
  outline: 3px solid #8bb8ff;
  outline-offset: -3px;
}

#notices-pane .admin-notice-list-trailing,
#rider-notices-section .rider-notice-list-trailing {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

#notices-pane .admin-notice-chevron,
#rider-notices-section .rider-notice-chevron {
  color: #7389a8;
  font-size: 19px;
  line-height: 1;
  transition: transform .15s ease;
}

#notices-pane .admin-notice-list-toggle[aria-expanded="true"] .admin-notice-chevron,
#rider-notices-section .rider-notice-list-toggle[aria-expanded="true"] .rider-notice-chevron {
  transform: rotate(180deg);
}

#notices-pane .admin-notice-detail {
  padding: 13px 18px 18px;
  border-top: 1px solid #edf0f5;
}

#notices-pane .admin-notice-detail[hidden],
#rider-notices-section .rider-notice-detail[hidden] {
  display: none !important;
}

#notices-pane .admin-notice-item-heading-meta {
  color: #718097;
  font-size: 11px;
  line-height: 1.6;
}

#notices-pane .admin-notice-pagination,
#rider-notices-section .rider-notices-pagination {
  margin-top: 16px;
}

#admin-notice-list,
#rider-notices-list {
  scroll-margin-top: 90px;
}

#notices-pane .admin-notice-pagination[hidden],
#rider-notices-section .rider-notices-pagination[hidden] {
  display: none !important;
}

#notices-pane .admin-notice-item-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 14px;
}

#notices-pane .admin-notice-item-heading h4 {
  margin: 0;
  color: #172746;
  font-size: 15px;
}

#notices-pane .admin-notice-item-heading small,
#notices-pane .admin-notice-item-meta {
  color: #718097;
  font-size: 11px;
}

#notices-pane .admin-notice-status {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e7f7ef;
  color: #147c55;
  font-size: 11px;
  font-weight: 850;
}

#notices-pane .admin-notice-item.is-inactive .admin-notice-status {
  background: #e9edf3;
  color: #66758b;
}

#notices-pane .admin-notice-item-body {
  margin: 12px 0;
  color: #34445b;
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

#notices-pane .admin-notice-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #edf0f5;
}

#notices-pane [data-notice-deactivate-id] {
  padding: 8px 12px;
  border: 1px solid #e5c8cb;
  border-radius: 9px;
  background: #fff7f7;
  color: #ad3a45;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

#notices-pane [data-notice-deactivate-id]:hover {
  background: #ffeded;
}

#notices-pane [data-notice-deactivate-id]:disabled {
  cursor: wait;
  opacity: .6;
}

#notices-pane .admin-notice-action-buttons,
#notices-pane .admin-notice-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#notices-pane .admin-notice-action-buttons button,
#notices-pane .admin-notice-edit-actions button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #d7e1ef;
  border-radius: 9px;
  background: #f7faff;
  color: #245aa6;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

#notices-pane .admin-notice-action-buttons [data-notice-delete-id] {
  border-color: #efcbd0;
  background: #fff6f7;
  color: #b52f42;
}

#notices-pane .admin-notice-action-buttons button:hover,
#notices-pane .admin-notice-edit-actions button:hover {
  filter: brightness(.97);
}

#notices-pane .admin-notice-action-buttons button:focus-visible,
#notices-pane .admin-notice-edit-actions button:focus-visible,
#notices-pane .admin-notice-edit-form :is(input, textarea):focus-visible {
  outline: 3px solid #8bb8ff;
  outline-offset: 2px;
}

#notices-pane .admin-notice-edit-form {
  display: grid;
  gap: 11px;
  margin-top: 14px;
}

#notices-pane .admin-notice-edit-form label {
  display: grid;
  gap: 6px;
  color: #34445b;
  font-size: 12px;
  font-weight: 800;
}

#notices-pane .admin-notice-edit-form :is(input, textarea) {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #cbd8e9;
  border-radius: 9px;
  background: #fff;
  color: #172746;
  font: inherit;
  font-size: 13px;
}

#notices-pane .admin-notice-edit-form textarea {
  min-height: 110px;
  resize: vertical;
}

#notices-pane .admin-notice-edit-form small {
  color: #66758b;
  line-height: 1.5;
}

#notices-pane .admin-notice-edit-actions button:first-child {
  border-color: #285fc0;
  background: #285fc0;
  color: #fff;
}

#notices-pane .admin-notice-edit-actions button:disabled {
  cursor: wait;
  opacity: .55;
}

#rider > #rider-notices-section {
  order: 8;
  width: 100%;
  margin: 0 0 16px;
  padding: 23px;
  border: 1px solid #dce5f1;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(25, 50, 89, .055);
}

#rider-notices-section .rider-notices-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 17px;
  border-bottom: 1px solid #e9eef5;
}

#rider-notices-section .rider-notices-heading > div > span {
  color: #4d76b5;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
}

#rider-notices-section .rider-notices-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0 4px;
  color: #1d3556;
  font-size: 21px;
  letter-spacing: -.04em;
}

.rider-notice-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: #d93646;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rider-notice-unread-badge[hidden] {
  display: none !important;
}

.rider-mobile-quick-item[data-rider-mobile-view="notices"] > span:last-child {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.rider-mobile-quick-item .rider-notice-unread-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 10px;
}

#rider-notices-section .rider-notices-heading p {
  margin: 0;
  color: #718096;
  font-size: 12px;
  line-height: 1.6;
}

#rider-notices-section .rider-notices-message {
  margin: 12px 0 0;
  color: #63758f;
  font-size: 12px;
  line-height: 1.6;
}

#rider-notices-section .rider-notices-message:empty {
  display: none;
}

#rider-notices-section .rider-notices-message.error {
  color: #b03b44;
}

#rider-notices-section .rider-notices-list {
  display: grid;
  gap: 11px;
  padding-top: 17px;
}

#rider-notices-section .rider-notice-list-empty {
  margin: 0;
  padding: 23px 15px;
  border: 1px dashed #d6e1ef;
  border-radius: 13px;
  background: #f8faff;
  color: #718096;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

#rider-notices-section .rider-notice-list-item {
  overflow: hidden;
  border: 1px solid #dfe8f4;
  border-radius: 15px;
  background: #fbfcff;
}

#rider-notices-section .rider-notice-detail {
  padding: 13px 17px 17px;
  border-top: 1px solid #e5ebf3;
}

#rider-notices-section .rider-notice-list-item.is-read {
  border-color: #e5eaf1;
  background: #fff;
}

#rider-notices-section .rider-notice-list-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 7px 13px;
}

#rider-notices-section .rider-notice-list-head strong {
  margin: 0;
  color: #1c3555;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#rider-notices-section .rider-notice-read-status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e7efff;
  color: #2b60b4;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

#rider-notices-section .rider-notice-list-item.is-read .rider-notice-read-status {
  background: #edf1f5;
  color: #68778c;
}

#rider-notices-section .rider-notice-list-meta {
  display: block;
  margin-top: 6px;
  color: #7a899d;
  font-size: 11px;
  line-height: 1.5;
}

#rider-notices-section .rider-notice-detail > p {
  margin: 12px 0 0;
  color: #3a4d65;
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

#rider-notices-section .rider-notice-list-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e5ebf3;
}

#rider-notices-section .rider-notice-list-acknowledge {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #b8cdef;
  border-radius: 10px;
  background: #eaf2ff;
  color: #245799;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

#rider-notices-section .rider-notice-list-acknowledge:hover {
  border-color: #93b7ec;
  background: #dfeeff;
}

#rider-notices-section .rider-notice-list-acknowledge:focus-visible {
  outline: 3px solid rgba(53, 109, 243, .28);
  outline-offset: 3px;
}

#rider-notices-section .rider-notice-list-acknowledge:disabled {
  cursor: wait;
  opacity: .65;
}

@media (max-width: 620px) {
  #notices-pane .admin-notice-scope > small {
    width: 100%;
    margin-left: 0;
  }

  #notices-pane .admin-notice-form {
    padding: 18px;
  }

  #notices-pane .admin-notice-form-actions .primary {
    width: 100%;
  }

  #rider > #rider-notices-section {
    min-height: 260px;
    padding: 18px;
    border-radius: 16px;
  }

  #rider-notices-section .rider-notices-heading h2 {
    font-size: 19px;
  }

  #rider-notices-section .rider-notice-list-item {
    border-radius: 13px;
  }

  #notices-pane .admin-notice-list-toggle,
  #rider-notices-section .rider-notice-list-toggle {
    min-height: 52px;
    padding: 12px 14px;
  }

  #rider-notices-section .rider-notice-detail {
    padding: 12px 14px 14px;
  }

  #rider-notices-section .rider-notice-list-acknowledge {
    width: 100%;
  }
}


/* startup: admin-menu-categories.css */
/* Catalog-driven administrator categories. Keep the existing quick menu intact. */
#admin .admin-nav .admin-menu-pool[hidden],
#admin-mobile-menu-modal .admin-menu-pool[hidden],
#admin .admin-nav .admin-menu-group[hidden],
#admin-mobile-menu-modal .admin-mobile-menu-group[hidden] {
  display: none !important;
}

#admin .admin-nav .admin-menu-home,
#admin .admin-nav details.admin-menu-category {
  display: block;
  margin: 0 0 7px;
  padding: 0;
}

#admin .admin-nav details.admin-menu-category {
  border-top: 1px solid #e6edf6;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.admin-menu-category-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 10px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.admin-menu-category-summary::-webkit-details-marker { display: none; }
.admin-menu-category-summary::marker { content: ''; }
.admin-menu-category-title { flex: 1 1 auto; min-width: 0; font-size: 12px; font-weight: 850; }
.admin-menu-category-count { flex: 0 0 auto; min-width: 20px; font-size: 10px; font-weight: 800; text-align: center; }
.admin-menu-category-chevron { flex: 0 0 auto; width: 6px; height: 6px; margin: -3px 2px 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.admin-menu-category[open] > .admin-menu-category-summary .admin-menu-category-chevron { margin-top: 3px; transform: rotate(225deg); }
.admin-menu-category-summary:focus-visible { outline: 2px solid #7bb7ff; outline-offset: -2px; border-radius: 9px; }
.admin-menu-category:not([open]) > .admin-menu-category-items { display: none !important; }

#admin .admin-menu-category-summary { color: #36577f; border-radius: 9px; }
#admin .admin-menu-category-summary:hover,
#admin .admin-menu-category[open] > .admin-menu-category-summary { color: #183454; background: #edf3fc; }
#admin .admin-menu-category-count { color: #52749d; background: #e6edf6; border-radius: 5px; padding: 2px 3px; }
#admin .admin-menu-category-items { display: grid; gap: 3px; padding: 0 0 5px; }
#admin .admin-menu-home > .admin-menu-category-items { padding: 0; }
#admin .admin-menu-category-items > .tab { min-height: 48px !important; }

#admin .manual-upload-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 6px; border: 1px solid #e3eaf4; border-radius: 12px; background: #f5f8fc; }
#admin .manual-upload-tabs > button { flex: 1 1 160px; min-height: 43px; margin: 0; padding: 10px 15px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #61758f; font-size: 13px; font-weight: 800; cursor: pointer; }
#admin .manual-upload-tabs > button[aria-selected="true"] { color: #214e8b; border-color: #d9e5f5; background: #fff; box-shadow: 0 2px 5px rgba(27, 57, 95, .06); }
#admin .manual-upload-tabs > button[hidden],
#admin .manual-upload-panel[hidden] { display: none !important; }
#admin .manual-upload-template-note { margin: 0 0 12px; color: #61758f; font-size: 12px; line-height: 1.7; }
#admin #templates-pane > .settlement-template-manager { margin-top: 0; }

#admin .admin-permission-category-toggle {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 4px 0;
  color: #233e60;
  cursor: pointer;
}
#admin .admin-permission-category-toggle > input { width: 17px; height: 17px; margin: 0; accent-color: #2f65b8; }
#admin .admin-permission-category-toggle > span { font-size: 13px; font-weight: 800; line-height: 1.5; }
#admin [data-permission-category-status] { color: #52749d; background: #edf3fb; border-radius: 6px; padding: 4px 7px; font-size: 11px; white-space: nowrap; }
#admin .admin-permission-category-details { margin-top: 9px; border-top: 1px solid #edf1f6; }
#admin .admin-permission-category-details > summary { padding: 10px 0 0; color: #61758f; font-size: 12px; font-weight: 700; cursor: pointer; }
#admin .admin-permission-category-details > .admin-permission-group-options { padding-top: 10px; }
#admin .admin-permission-category-help { margin: 10px 0 0; color: #6e7f94; font-size: 11px; line-height: 1.65; }
#admin .admin-permission-category-toggle:focus-within,
#admin .admin-permission-category-details > summary:focus-visible { outline: 2px solid #77a8ed; outline-offset: 4px; border-radius: 5px; }

@media (max-width: 760px) {
  #admin-mobile-menu-modal .admin-mobile-menu-groups { gap: 9px; }
  #admin-mobile-menu-modal details.admin-menu-category,
  #admin-mobile-menu-modal .admin-menu-home { margin: 0; padding: 0; }
  #admin-mobile-menu-modal details.admin-menu-category { border: 1px solid #e0e7f0; border-radius: 12px; background: #f8fafc; }
  #admin-mobile-menu-modal .admin-menu-category-summary { min-height: 48px; padding: 12px; color: #243d5d; }
  #admin-mobile-menu-modal .admin-menu-category-title { font-size: 13px; }
  #admin-mobile-menu-modal .admin-menu-category-count { color: #71849b; }
  #admin-mobile-menu-modal .admin-menu-category-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 8px 8px; }
  #admin-mobile-menu-modal .admin-menu-home > .admin-menu-category-items { padding: 0; }
  #admin-mobile-menu-modal .admin-menu-category-items > .admin-mobile-menu-item:only-child { grid-column: 1 / -1; }
  #admin .admin-permission-category-toggle { grid-template-columns: 20px minmax(0, 1fr); }
  #admin [data-permission-category-status] { grid-column: 2; justify-self: start; padding: 3px 7px; }
}

@media (max-width: 380px) {
  #admin-mobile-menu-modal .admin-menu-category-items { grid-template-columns: minmax(0, 1fr); }
}

