@import url("/static/css/menu.css") layer(mydrop-menu);

:root {
  color-scheme: dark;
  --public-page-bg:
    radial-gradient(circle at 12% 18%, rgb(var(--amb-2) / 0.14), transparent 38%),
    radial-gradient(circle at 88% 80%, rgb(var(--amb-2) / 0.08), transparent 42%),
    var(--bg-black);
  --public-toggle-bg: var(--surface);
  --public-toggle-hover: var(--hover-color);
  --public-toggle-border: var(--border-color);
  --public-toggle-text: var(--font-black);
  --public-toggle-muted: var(--font-gray);
  --public-toggle-track: var(--border-color);
  --public-toggle-thumb: var(--font-black);
}

html[data-theme="light"] {
  color-scheme: light;
}

body.mydrop-approval-body,
body.mydrop-portal-body,
body.mydrop-public-report-body {
  display: flex;
  justify-content: normal;
  align-items: normal;
  flex-direction: column;
  min-width: 0;
  max-width: none;
  min-height: 100vh;
  height: 100vh;
  max-height: none;
  overflow-x: hidden;
  overflow-y: hidden;
  background: var(--public-page-bg);
  color: var(--font-black);
  font-family: var(--font-family);
}

body.mydrop-link-public-body {
  justify-content: normal;
  align-items: normal;
  min-width: 0;
  max-width: none;
  min-height: 100vh;
  height: auto;
  max-height: none;
  display: block;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg-black-2);
  color: var(--font-black);
  font-family: var(--font-family);
}

#mydrop-link-public-root {
  flex: initial;
}

.mydrop-public-main {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.mydrop-approval-topbar {
  position: relative;
  flex: 0 0 auto;
  background: var(--bg-black-2);
  border-bottom: 1px solid var(--border-color);
}

.mydrop-approval-topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mydrop-approval-brand img {
  height: 26px;
  display: block;
}

.mydrop-approval-topbar-tag {
  min-width: 0;
  overflow: hidden;
  color: var(--font-gray);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.mydrop-approval-footer {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 28px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--font-gray);
  font-size: 12px;
}

.mydrop-approval-footer p {
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.mydrop-approval-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.mydrop-approval-footer a:hover {
  text-decoration: underline;
}

.mydrop-public-theme-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mydrop-link-public-footer {
  padding: 18px;
  border-top: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--font-gray);
  font-family: var(--font-family);
  font-size: 12px;
}

.mydrop-public-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 6px 10px 6px 12px;
  border: 1px solid var(--public-toggle-border);
  border-radius: var(--radius-small);
  background: var(--public-toggle-bg);
  color: var(--public-toggle-text);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  
}

.mydrop-public-theme-toggle:hover {
  background: var(--public-toggle-hover);
}

.mydrop-public-theme-toggle svg {
  width: 15px;
  height: 15px;
  color: var(--public-toggle-muted);
  fill: currentColor;
  flex: 0 0 auto;
}

.mydrop-public-theme-toggle-text {
  min-width: 82px;
  color: var(--public-toggle-text);
  text-align: left;
}

.mydrop-public-theme-options {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(52px, 1fr));
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--public-toggle-border);
  border-radius: var(--radius-small);
  background: var(--public-toggle-track);
}

.mydrop-public-theme-option {
  min-width: 0;
  min-height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: calc(var(--radius-small) - 2px);
  background: transparent;
  color: var(--public-toggle-muted);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  
  cursor: pointer;
  white-space: nowrap;
}

.mydrop-public-theme-option:hover {
  color: var(--public-toggle-text);
  background: var(--public-toggle-hover);
}

.mydrop-public-theme-option.is-active {
  color: var(--public-toggle-text);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.mydrop-public-theme-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


/* Touch size (2026-09-03): the Light / Dark / System segments measured 24px
   tall on the report and approval pages. Shared by every public page. */
@media (max-width: 600px), (hover: none) and (pointer: coarse) {
  .mydrop-public-theme-option {
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }
}

/* ---- Tab selector on the public pages: the same ONE recipe. --------------
   Mirror of the "Tab selector" block in system.css (the app's contract layer),
   repeated here because portal.html / approval.html / report.html do not load
   system.css — publicTheme.css is the only stylesheet all three share.
   A selector is a row of labels on ONE hairline: no box, no fill, no folder tab.
   Active = 2px accent underline. Keep the two files in step. */
/* NOT .mydrop-portal-tabs: despite the name that one is the portal's vertical
   nav rail (235x566, flex-direction: column), and an underline under a stacked
   nav item reads as a divider, not a selection. */
.mydrop-approval-tabs,
.mydrop-report-profile-tabs-row {
    display: flex !important;
    align-items: flex-end !important;
    gap: 18px !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.1)) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* The hairline used to be a painted pseudo-element behind the folder tabs. */
.mydrop-approval-tabs::after,
.mydrop-approval-tab::after {
    display: none !important;
}

.mydrop-approval-tab,
.mydrop-report-profile-tabs-row .mydrop-report-profile-tab {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    flex: 0 0 auto !important;
    height: 36px !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin-bottom: -1px !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--ap-text-soft, var(--font-gray-clair, #6A6C8E)) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none !important;
}

.mydrop-approval-tab:hover,
.mydrop-report-profile-tabs-row .mydrop-report-profile-tab:hover {
    color: var(--ap-text, var(--font-black, #191A2B)) !important;
    background: transparent !important;
}

.mydrop-approval-tab.active, .mydrop-approval-tab.is-active,
.mydrop-report-profile-tabs-row .mydrop-report-profile-tab.active,
.mydrop-report-profile-tabs-row .mydrop-report-profile-tab.is-active {
    color: var(--ap-text, var(--font-black, #191A2B)) !important;
    background: transparent !important;
    /* --ap-accent on approval, --mydrop-report-accent on a shared report, the
       workspace accent on the portal: the underline follows the page's own. */
    border-bottom-color: var(--ap-accent, var(--mydrop-report-accent, var(--accent-ui, #0056D6))) !important;
    cursor: default;
}

/* mydropReport.css sizes this row as a pill and gives it `align-self: flex-start`,
   so as a flex item of the tabs SECTION it shrank to its labels: measured 820px
   of hairline under a 1155px report column, a line that stops in mid-air. The
   underline recipe needs the hairline to run the width of the content it heads. */
.mydrop-report-profile-tabs-row {
    align-self: stretch !important;
    width: 100% !important;
}

.mydrop-approval-tab svg,
.mydrop-report-profile-tabs-row .mydrop-report-profile-tab svg {
    width: 15px !important;
    height: 15px !important;
    color: inherit !important;
}
