/* ==========================================================================
   Organizer primitives shared with the rest of the app (.org-*)
   The tokens, pills, chips and badges that the account menu, the primary nav and
   share options draw on every page. organizer.scss imports this first; pages
   outside the organizer tools link only this file.
   ========================================================================== */
/* ---- Tokens and wash palettes ----------------------------------------------
   One navy ink at four strengths. Wash classes set the variables that callouts,
   modals, icon tiles, badges, status dots and the active sidebar item read.
   ---- */
/* Wash palettes: one set of variables per feature color. */
.is-blue {
  --org-wash-tint: #e8f3fd;
  --org-wash-ink: #0b5ea8;
  --org-wash-color: var(--color-primary); }

.is-green {
  --org-wash-tint: #e6f6ee;
  --org-wash-ink: #067a45;
  --org-wash-color: var(--color-giving); }

.is-meals {
  --org-wash-tint: #e8edfb;
  --org-wash-ink: #0030b9;
  --org-wash-color: var(--color-meals); }

.is-orange {
  --org-wash-tint: #fdeee6;
  --org-wash-ink: #b8420f;
  --org-wash-color: var(--color-todos); }

.is-plum {
  --org-wash-tint: #f7e9ef;
  --org-wash-ink: #7c2c50;
  --org-wash-color: var(--color-updates); }

.is-amber {
  --org-wash-tint: #fff3d6;
  --org-wash-ink: #8a5a00;
  --org-wash-color: #e3a008; }

.is-muted {
  --org-wash-tint: #eef1f6;
  --org-wash-ink: rgba(13, 27, 62, 0.6);
  --org-wash-color: rgba(13, 27, 62, 0.5); }

/* ---- Pills, links and kebab ------------------------------------------------
   Every action is icon + label. Ghost for secondary, primary once per page.
   ---- */
/* Pills: every action is icon + label. Ghost for secondary, primary once per page. */
.org-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: "FTPolar-Medium", sans-serif;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
  .org-pill i {
    font-size: 13.5px; }
  .org-pill:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px; }

.org-pill-ghost {
  border-color: rgba(13, 27, 62, 0.14);
  background: #fff;
  color: #0d1b3e; }
  .org-pill-ghost:hover, .org-pill-ghost:focus {
    background: rgba(13, 27, 62, 0.04);
    color: #0d1b3e; }

.org-pill-primary {
  background: var(--color-primary);
  color: #fff; }
  .org-pill-primary:hover, .org-pill-primary:focus {
    background: #0d6ed0;
    color: #fff; }

.org-pill-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  gap: 6px; }
  .org-pill-sm i {
    font-size: 12px; }

.org-pill-block {
  display: flex;
  width: 100%;
  height: 48px;
  font-size: 15px; }

.org-icon-pill {
  width: 40px;
  padding: 0; }

/* Account + organizer pages (body.app-buttons), and the account menu anywhere: buttons in caps, primary on the home gradient. */
.app-buttons :is(.org-pill, .btn):not(.btn-link, .btn-close, .nav-account-bare),
.user-menu .org-pill {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px; }

.app-buttons :is(.org-pill-sm, .btn-sm):not(.btn-link),
.user-menu .org-pill-sm {
  font-size: 12px; }

.app-buttons .org-pill-block {
  font-size: 14px; }

.app-buttons :is(.org-pill-primary, .btn-primary):not(.org-shimmer),
.user-menu .org-pill-primary {
  border-color: transparent;
  background-image: linear-gradient(90deg, #86c2f6, #188aec);
  background-origin: border-box;
  box-shadow: 0 10px 22px -12px rgba(24, 138, 236, 0.9);
  color: #fff; }
  .app-buttons :is(.org-pill-primary, .btn-primary):not(.org-shimmer):hover, .app-buttons :is(.org-pill-primary, .btn-primary):not(.org-shimmer):focus,
  .user-menu .org-pill-primary:hover,
  .user-menu .org-pill-primary:focus {
    background-image: linear-gradient(90deg, #6fb4f2, #0d6ed0);
    box-shadow: 0 14px 28px -12px rgba(24, 138, 236, 0.95);
    color: #fff; }

/* Copy actions flip to the green wash once the clipboard has the text. */
.org-pill.is-done {
  border-color: transparent;
  background: var(--org-wash-tint);
  color: var(--org-wash-ink); }

/* Quiet text action: icon + label, no chrome. */
.org-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: rgba(13, 27, 62, 0.6);
  font-family: "FTPolar-Medium", sans-serif;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap; }
  .org-link i {
    font-size: 13px; }
  .org-link:hover, .org-link:focus {
    color: #0d1b3e; }
  .org-link.is-sm {
    height: auto;
    padding: 0;
    font-size: 13.5px; }

/* Kebab / icon-only quiet button. */
.org-kebab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(13, 27, 62, 0.45);
  font-size: 15px;
  cursor: pointer; }
  .org-kebab:hover, .org-kebab:focus {
    background: rgba(13, 27, 62, 0.06);
    color: #0d1b3e; }

/* ---- Segmented pill --------------------------------------------------------
   One track, the active segment lifts to white.
   ---- */
.org-seg {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: #eef1f6; }
  .org-seg .org-seg-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: rgba(13, 27, 62, 0.72);
    font-family: "FTPolar-Medium", sans-serif;
    font-size: 13.5px;
    text-decoration: none;
    white-space: nowrap; }
    .org-seg .org-seg-item:hover {
      color: #0d1b3e; }
  .org-seg .org-seg-item.is-active,
  .org-seg .org-seg-item.active,
  .org-seg .btn-check:checked + .org-seg-item {
    background: #fff;
    color: #0d1b3e;
    box-shadow: 0 1px 2px rgba(13, 27, 62, 0.12); }
  .org-seg .btn-check:focus-visible + .org-seg-item {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px; }

/* As a form field: each segment is the label of a hidden radio. */
.org-seg-field {
  margin-bottom: 1.5rem; }
  .org-seg-field .org-seg-label {
    display: block;
    margin-bottom: 8px;
    color: #0d1b3e;
    font-family: "FTPolar-Medium", sans-serif;
    font-size: 15px; }
  .org-seg-field .org-seg {
    display: flex;
    width: fit-content;
    max-width: 100%; }
  .org-seg-field .org-seg-item {
    flex: 1 1 auto;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    font-size: 15px;
    cursor: pointer; }
  @media (max-width: 575.98px) {
    .org-seg-field {
      /* Labels shrink with the viewport, then wrap rather than spill out of the track. */ }
      .org-seg-field .org-seg {
        width: 100%;
        border-radius: 23px; }
      .org-seg-field .org-seg-item {
        min-width: 0;
        height: auto;
        min-height: 40px;
        padding: 4px 5px;
        border-radius: 20px;
        font-size: clamp(12.5px, 3.6vw, 14px);
        line-height: 1.15;
        text-align: center;
        white-space: normal; } }
/* ---- Chips and badges ------------------------------------------------------
   Light grey filter chips with an optional status dot; amber count badges mean "waiting on you".
   ---- */
/* Chips: light grey fill, optional amber count. */
.org-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px; }

.org-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eef1f6;
  color: #0d1b3e;
  font-family: "FTPolar-Medium", sans-serif;
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap; }
  .org-chip:hover {
    color: #0d1b3e;
    background: #e4e9f1; }
  .org-chip.is-active {
    background: #0d1b3e;
    color: #fff; }

/* Chip dot: the status color inside a filter chip. */
.org-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--org-wash-color, rgba(13, 27, 62, 0.5)); }

.org-chip .org-chip-dot {
  margin-right: -1px; }

/* Dashed chip: a suggestion you tap to add, not a filter. */
.org-chip.is-dashed {
  border: 1px dashed rgba(13, 27, 62, 0.22);
  background: #fff;
  color: rgba(13, 27, 62, 0.72);
  cursor: pointer; }
  .org-chip.is-dashed i {
    font-size: 11px; }
  .org-chip.is-dashed:hover {
    border-color: rgba(13, 27, 62, 0.4);
    background: #fff;
    color: #0d1b3e; }

.org-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #fff3d6;
  color: #8a5a00;
  font-family: "FTPolar-Medium", sans-serif;
  font-size: 11px;
  letter-spacing: 0;
  line-height: 1; }

.org-badge.is-ink {
  background: #0d1b3e;
  color: #fff; }

.org-chip .org-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 12px; }

/* Account menu: org-menu look, two columns, start-a-page row at the foot. */
.dropdown-menu.user-menu {
  padding: 6px;
  border: 1px solid rgba(13, 27, 62, 0.1);
  border-radius: 16px;
  box-shadow: 0 16px 40px -16px rgba(13, 27, 62, 0.35);
  color: #0d1b3e;
  /* Navbar dropdowns are statically placed, so the gap is a margin. The pointer sits under the avatar's center. */ }
  .dropdown-menu.user-menu .user-menu-column {
    padding: 4px 0; }
  .dropdown-menu.user-menu .user-menu-heading {
    padding: 8px 10px 6px;
    font-family: "FTPolar-Medium", sans-serif;
    font-size: 11px;
    font-weight: normal;
    letter-spacing: 0.08em;
    color: rgba(13, 27, 62, 0.5); }
  .dropdown-menu.user-menu .dropdown-item {
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-family: "FTPolar-Medium", sans-serif;
    font-size: 14px;
    color: #0d1b3e; }
    .dropdown-menu.user-menu .dropdown-item i {
      width: 16px;
      margin: 0 !important;
      text-align: center;
      font-size: 14px;
      color: rgba(13, 27, 62, 0.6); }
    .dropdown-menu.user-menu .dropdown-item:hover, .dropdown-menu.user-menu .dropdown-item:focus {
      background: #f6f8fb;
      color: #0d1b3e; }
  .dropdown-menu.user-menu .role-count {
    font-size: 12px;
    color: rgba(13, 27, 62, 0.5); }
  .dropdown-menu.user-menu .user-menu-column + .user-menu-column {
    border-left-color: rgba(13, 27, 62, 0.08); }
  .dropdown-menu.user-menu .dropdown-divider {
    margin: 6px 0;
    border-color: rgba(13, 27, 62, 0.08); }
  .dropdown-menu.user-menu .user-menu-start {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 6px 4px 10px; }
  .dropdown-menu.user-menu .user-menu-start-text {
    font-family: "FTPolar-Medium", sans-serif;
    font-size: 14px;
    color: rgba(13, 27, 62, 0.72); }
  .dropdown-menu.user-menu.has-pointer {
    margin-top: 14px;
    overflow: visible; }
  .dropdown-menu.user-menu.has-pointer::before {
    content: '';
    position: absolute;
    top: -7px;
    right: calc(var(--nav-account-size, 40px) / 2 - 6px);
    width: 12px;
    height: 12px;
    background: #fff;
    border-top: 1px solid rgba(13, 27, 62, 0.1);
    border-left: 1px solid rgba(13, 27, 62, 0.1);
    border-top-left-radius: 2px;
    transform: rotate(45deg); }
