/* Runway Pages V2: the Dashboard page. The app is the business's own back office, so it takes the
   business's color (--acc) for its actions and keeps the site's black, white and Schibsted Grotesk. */
.dash-hero { padding-block: calc(var(--sec) * 0.55) var(--sec); }
.dash-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; margin-bottom: clamp(28px, 3vw, 48px); }
.dash-intro .h-sec { grid-column: 1 / 7; }
.dash-intro-copy { grid-column: 7 / 13; display: grid; gap: 16px; justify-items: start; }
.dash-intro .chooser { margin-top: 4px; }
@media (max-width: 899px) { .dash-intro .h-sec, .dash-intro-copy { grid-column: 1 / -1; } }

.dash-cap { margin-top: 14px; }
.dash {
  --acc: #000000;
  border: 1px solid var(--black); background: var(--white); font-size: 17px; line-height: 1.45;
  min-height: 560px;
}
.dash-top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--black); }
.dash-sign { height: 44px; width: auto; }
.dash-where { display: grid; line-height: 1.25; }
.dash-title { font-weight: 600; font-size: 19px; }
.dash-day { color: var(--graphite); font-size: 17px; }
.dash-new { margin-left: auto; font-weight: 600; color: var(--acc); }

.dash-tabs { display: flex; overflow-x: auto; scrollbar-width: thin; border-bottom: 1px solid #d6d6d3; padding-inline: 8px; }
.dash-tab { flex: none; }
.dash-tab {
  min-height: 52px; padding: 0 16px; border: 0; background: none; font-weight: 500; font-size: 17px; cursor: pointer;
  box-shadow: inset 0 -3px 0 transparent; color: var(--graphite);
}
.dash-tab[aria-selected="true"] { color: var(--black); box-shadow: inset 0 -3px 0 var(--acc); }
.dash-tab:hover { color: var(--black); }
.dash-tab:focus-visible, .dash-filter:focus-visible, .dash-row:focus-visible { outline-offset: -3px; }

.dash-panel { padding: 20px; }
.dash-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
@media (max-width: 899px) {
  .dash-split { grid-template-columns: minmax(0, 1fr); }
  .dash-rows li.is-open { border-bottom-color: var(--black); }
  .dash-rows li.is-open .dash-acts { order: -1; }
  .dash-rows li.is-open .dash-detail-name, .dash-rows li.is-open .dash-detail-top .dash-status { display: none; }
  .dash-rows li.is-open .dash-detail { border: 0; border-top: 1px solid #d6d6d3; padding: 16px 10px 18px 14px; box-shadow: inset 4px 0 0 var(--acc); }
}

.dash-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.dash-filter {
  min-height: 44px; padding: 0 14px; border: 1px solid #bdbdba; background: var(--white); border-radius: 2px;
  font-size: 16px; font-weight: 500; cursor: pointer;
}
.dash-filter[aria-pressed="true"] { border-color: var(--black); background: var(--black); color: var(--white); }
.dash-count { font-weight: 400; }

.dash-rows { list-style: none; border-top: 1px solid #d6d6d3; }
.dash-rows li { border-bottom: 1px solid #d6d6d3; }
.dash-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; width: 100%; padding: 12px 10px 12px 14px;
  border: 0; background: none; text-align: left; cursor: pointer; box-shadow: inset 4px 0 0 transparent;
}
.dash-row:hover { background: #f4f4f2; }
.dash-row[aria-pressed="true"], .dash-row[aria-expanded="true"] { background: #f4f4f2; box-shadow: inset 4px 0 0 var(--acc); }
.dash-row-name { font-weight: 600; }
.dash-row-when, .dash-row-what { grid-column: 1; color: var(--graphite); font-size: 17px; }
.dash-row .dash-status { grid-column: 2; grid-row: 1; justify-self: end; }
.dash-empty { padding: 16px 0; color: var(--graphite); }

.dash-status { display: inline-block; padding: 1px 8px; border: 1px solid currentColor; border-radius: 2px; font-size: 15px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.dash-status.st-new { color: var(--acc); }
.dash-status.st-no { color: var(--graphite); text-decoration: line-through; }

.dash-detail { border: 1px solid #d6d6d3; padding: 20px; display: grid; gap: 14px; align-content: start; }
.dash-detail-top { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; color: var(--graphite); font-size: 17px; }
.dash-detail-name { font-size: clamp(24px, 2.2vw, 30px); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.dash-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.dash-facts div { min-width: 0; }
.dash-facts dt { color: var(--graphite); font-size: 15px; }
.dash-facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.dash-facts a { text-decoration-color: var(--acc); text-decoration-thickness: 2px; text-underline-offset: 4px; display: inline-block; padding-block: 10px; margin-block: -10px; }
.dash-note { grid-column: 1 / -1; }
@media (max-width: 359px) { .dash-facts { grid-template-columns: minmax(0, 1fr); } }

.dash-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.dash-act {
  min-height: 48px; padding: 0 22px; border: 1px solid var(--acc); background: var(--acc); color: var(--white);
  font-weight: 600; font-size: 17px; border-radius: 2px; cursor: pointer;
}
.dash-act:hover { filter: brightness(0.9); }
.dash-act-2 { background: var(--white); color: var(--black); border-color: var(--black); }
.dash-act-2:hover { filter: none; background: #f4f4f2; }
.dash-done { color: var(--graphite); }
.dash-sent { font-size: 17px; color: var(--graphite); }
.dash-see { color: var(--black); font-weight: 500; text-decoration-color: var(--acc); text-decoration-thickness: 2px; text-underline-offset: 4px; display: inline-block; padding-block: 11px; margin-block: -11px; }

.dash-toast { margin: 0 20px 20px; padding: 12px 16px; border-left: 4px solid var(--acc); background: #f4f4f2; font-weight: 500; }

.dash-h { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th, .dash-table td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid #d6d6d3; vertical-align: middle; }
.dash-table thead th { font-size: 15px; font-weight: 600; color: var(--graphite); }
.dash-table tbody th { font-weight: 600; }
.dash-bar-td { width: 40%; }
.dash-bar { display: block; height: 10px; background: #e9e9e7; }
.dash-bar span { display: block; height: 100%; background: var(--acc); transition: width 300ms var(--ease); }
.dash-hint { margin-top: 14px; color: var(--graphite); font-size: 17px; }
.dash-people { overflow-x: auto; }
.dash-people .dash-table { min-width: 640px; }
@media (max-width: 599px) { .dash-bar-th, .dash-bar-td { display: none; } }

.dash-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
@media (max-width: 899px) { .dash-settings { grid-template-columns: minmax(0, 1fr); } }
.dash-group { border: 0; border-top: 1px solid var(--black); margin: 0; padding: 12px 0 0; display: grid; gap: 14px; min-width: 0; }
.dash-group legend { float: left; width: 100%; font-weight: 600; font-size: 19px; padding: 0; margin-bottom: 2px; }
.dash-field { display: grid; gap: 6px; }
.dash-field label { font-weight: 500; }
.dash-field input[type="text"], .dash-field input[type="number"], .dash-field select, .dash-field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #8f8f8c; border-radius: 2px; background: var(--white); font-size: 17px;
}
.dash-field textarea { resize: vertical; line-height: 1.45; }
.dash-num { display: flex; align-items: center; gap: 10px; }
.dash-num input { max-width: 120px; }
.dash-toggle { grid-template-columns: auto 1fr; align-items: center; gap: 12px; min-height: 44px; }
.dash-toggle input { width: 24px; height: 24px; accent-color: var(--acc); margin: 0; }
.dash-pricelist { list-style: none; border-top: 1px solid #d6d6d3; }
.dash-pricelist li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid #d6d6d3; }
.dash-save { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; color: var(--graphite); font-size: 17px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 599px) {
  .dash-panel { padding: 16px 12px; }
  .dash-top { padding: 12px; gap: 10px 16px; }
  .dash-sign { height: 36px; }
  .dash-new { margin-left: 0; width: 100%; }
  .dash-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 0; overflow: visible; }
  .dash-tab { padding: 0 14px; text-align: left; border-bottom: 1px solid #ececea; }
  .dash-detail { padding: 16px; }
  .dash-toast { margin: 0 12px 12px; }
}

/* ---- What gets sent: the customer's email and the owner's, side by side ---- */
.mails-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.mails-grid .h-sec { grid-column: 1 / -1; }
.mails-grid .lead { grid-column: 1 / 8; margin-bottom: 12px; }
.mail-fig { grid-column: span 6; display: grid; gap: 12px; }
.mail-fig .mail-label { font-weight: 600; font-size: 22px; color: var(--black); }
@media (max-width: 899px) { .mail-fig, .mails-grid .lead { grid-column: 1 / -1; } }
.mail { border: 1px solid var(--black); background: var(--white); font-size: 17px; line-height: 1.5; }
.mail-head { padding: 12px 18px; border-bottom: 1px solid #d6d6d3; display: grid; gap: 2px; }
.mail-head div { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); }
.mail-head dt { color: var(--graphite); }
.mail-head dd { margin: 0; overflow-wrap: anywhere; }
.mail-head div:last-child dd { font-weight: 600; }
.mail-body { padding: 22px 18px; display: grid; gap: 12px; max-width: 36em; }
.mail-sign { height: 52px; width: auto; justify-self: start; }
.mail-h { font-size: 24px; font-weight: 600; line-height: 1.2; padding-top: 4px; border-top: 4px solid var(--acc); padding-top: 14px; }
.mail-rows { border-top: 1px solid #d6d6d3; }
.mail-rows div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid #d6d6d3; }
.mail-rows dt { color: var(--graphite); }
.mail-rows dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.mail-btns { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.mail-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--acc); color: var(--white); font-weight: 600; border-radius: 2px; }
.mail-btn-2 { background: var(--white); color: var(--black); border: 1px solid var(--black); }
.mail-foot { padding: 12px 18px 16px; border-top: 1px solid #d6d6d3; color: var(--graphite); font-size: 17px; }
@media (max-width: 479px) { .mail-rows div { grid-template-columns: minmax(0, 1fr); gap: 0; } .mail-head div { grid-template-columns: 4.6em minmax(0, 1fr); } }

/* ---- What you can change, and which dashboard fits which business ---- */
.custom-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.custom-grid .h-sec { grid-column: 1 / 6; }
.custom-grid > div { grid-column: 7 / 13; display: grid; gap: 18px; }
@media (max-width: 899px) { .custom-grid .h-sec, .custom-grid > div { grid-column: 1 / -1; } }

.fits-sec .lead { margin-top: 20px; }
.fits-scroll { overflow-x: auto; margin-top: clamp(24px, 3vw, 40px); }
.fits { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 18px; }
.fits caption { text-align: left; }
.fits th, .fits td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid #d6d6d3; }
.fits thead th { border-bottom: 2px solid var(--black); font-size: 16px; }
.fits .fits-group th { padding-top: 28px; font-size: 22px; font-weight: 600; border-bottom: 1px solid var(--black); }
.fits tbody th a { font-weight: 600; }
.fits td:nth-child(2) { font-weight: 600; white-space: nowrap; }

/* ---- The still look on the home pages ---- */
.tz-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: center; }
.tz-copy { grid-column: 1 / 6; display: grid; gap: 18px; justify-items: start; }
.tz-view { grid-column: 7 / 13; display: grid; gap: 12px; }
@media (max-width: 899px) { .tz-copy, .tz-view { grid-column: 1 / -1; } }
.tz-app { border: 1px solid var(--black); background: var(--white); font-size: 17px; line-height: 1.4; }
.tz-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 18px; border-bottom: 1px solid var(--black); }
.tz-new { font-weight: 600; color: var(--acc); }
.tz-rows { list-style: none; }
.tz-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 18px; border-bottom: 1px solid #d6d6d3; }
.tz-rows li:last-child { border-bottom: 0; }
.tz-name { font-weight: 600; }
.tz-when { grid-column: 1; color: var(--graphite); font-size: 17px; }
.tz-rows .dash-status { grid-column: 2; grid-row: 1; justify-self: end; }
