/* A DAO's page: its head, the tabs, the overview with its rail, and the list of the proposals of the DAOs a person follows. Colours are the roles of theme.css.
   Every rule is under .dao, so no other page is touched; the narrow rules follow the design's 390px render: one column, tiles in two, tabs that wrap. */

.dao { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dao .dao-content { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dao .tiles { grid-template-columns: repeat(auto-fit, minmax(min(132px, 100%), 1fr)); }

.dao .dh { overflow: visible; }
.dao .dh-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 16px 12px; }
.dao .dh-id { flex: 1 1 260px; gap: 6px; }
.dao .dh-id h1 { overflow-wrap: anywhere; }
.dao .logo { display: inline-flex; flex: none; width: 48px; height: 48px; border-radius: 12px; overflow: hidden; }
.dao .logo .md-media { display: block; width: 100%; height: 100%; }
.dao .logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dao .dh-id .row { gap: 4px 10px; }
.dao .dh-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dao .dh-slot { display: inline-flex; }
.dao .dh-pop:empty { display: none; }
.dao .dh-pop { display: flex; justify-content: flex-end; padding: 0 16px 12px; }
.dao .pop { width: min(440px, 100%); display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; box-shadow: var(--shadow); }
.dao .dh-need { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 16px 12px; }
.dao .dh-filters { padding: 12px 14px 10px; }

.dao .in { min-width: 0; min-height: 34px; padding: 6px 10px; border: 1px solid var(--line2); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; }
.dao .split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
.dao .dline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.dao .dline:last-child { border-bottom: 0; }

.dao .dao-layout { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.dao .dao-main { flex: 999 1 520px; min-width: 0; }
.dao .dao-rail { flex: 1 1 300px; max-width: 360px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dao .dao-rail .mono, .dao .pop .mono { min-width: 0; overflow-wrap: anywhere; }
.dao .dao-need { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dao .dao-mark:empty { display: none; }
.dao .dao-more { display: flex; flex-direction: column; }
.dao .op { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.dao .dao-need > .op { padding: 0; border-bottom: 0; }
.dao .op:last-child { border-bottom: 0; }

.dao .fr { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 4px 14px; align-items: start; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.dao .fr:last-child { border-bottom: 0; }
.dao .fk { color: var(--dim); font-weight: 500; }
.dao .fv { min-width: 0; overflow-wrap: anywhere; }
.dao .fv b { font-weight: 600; }
.dao .fv .warn { color: var(--warn); }
.dao .fl2 { justify-self: end; }

.dao .tbody { min-width: 0; }
.dao .tl2 { margin-top: 2px; }
.dao .cardf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.dao .cardf:empty { display: none; }
.dao .dao-status .card-b { gap: 6px; }

@media (max-width: 899px) {
  .dao .dao-rail { max-width: none; flex-basis: 100%; }
}

@media (max-width: 599px) {
  .dao .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dao .fr { grid-template-columns: minmax(0, 1fr); }
  .dao .fl2 { justify-self: start; }
  .dao .in, .dao .dh-act .btn, .dao .pop .btn, .dao .chip { min-height: 44px; }
  .dao .dh-pop { justify-content: stretch; }
}
/* What the Delegates tab says under its table: the plan, what the wallet will be asked to sign, and the buttons, set in from the card's edge as the table's rows are. */
.dao .tbody > .two { gap: 6px; padding: 10px 14px 14px; }
/* The review of a delegation is laid out as the vote box lays out a vote: a box with a title, what is signed, the fee, the late sentence and the presses. */
.dao .dlg-plan { display: flex; flex-direction: column; gap: 12px; min-width: 0; border: 2px solid var(--acc); border-radius: 10px; padding: 12px; background: var(--panel); }
.dao .dlg-plan h3 { margin: 0; font-size: 14px; line-height: 1.3; font-weight: 600; }
.dao .dlg-plan .btns .btn { min-height: 40px; font-weight: 600; }
/* The person's own delegation (dao-delegates-own.js), under the list or under the sentence that there is none: set in from the card's edge as the table's rows are, its parts a line apart. */
.dao .dlg-own { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.dao .dlg-own h3 { margin: 0; font-size: 14px; line-height: 1.3; font-weight: 600; }
.dao .dlg-own .dlg-to { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; align-self: stretch; }
.dao .dlg-own .dlg-to .fm-field { align-self: stretch; }
.dao .dlg-own .two { gap: 6px; }
