/* Document sheet, email preview and Drive folder modals (screens/docsheet.js). */
.ds-modal .modal-body {
  max-height: 70vh;
  overflow: auto;
}
.docsheet {
  background: #fff;
  color: #1c2430;
  border: 1px solid var(--line, #d9dde3);
  border-radius: 8px;
  padding: 24px;
  font-size: 13px;
}
.docsheet .ds-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 2px solid #1c2430;
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.docsheet .ds-kind {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b6573;
}
.docsheet h3 {
  margin: 2px 0 0;
  font-size: 20px;
  color: #1c2430;
}
.docsheet .ds-brand {
  font-weight: 600;
  font-size: 12px;
  color: #5b6573;
  text-align: right;
}
.docsheet .ds-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 16px;
  margin: 0 0 16px;
}
.docsheet .ds-meta dt {
  font-size: 11px;
  color: #5b6573;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.docsheet .ds-meta dd {
  margin: 2px 0 0;
  font-weight: 500;
}
.docsheet .ds-tbl {
  width: 100%;
  border-collapse: collapse;
}
.docsheet .ds-tbl th,
.docsheet .ds-tbl td {
  padding: 7px 8px;
  border-bottom: 1px solid #e3e6ea;
  text-align: left;
}
.docsheet .ds-tbl .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.docsheet .ds-tbl tfoot td {
  font-weight: 700;
  border-top: 2px solid #1c2430;
  border-bottom: 0;
}
.docsheet .ds-total {
  text-align: right;
  font-size: 16px;
  padding: 8px 0;
}
.docsheet .ds-notes {
  margin: 14px 0 0;
  color: #394353;
}
.docsheet .ds-foot {
  margin-top: 20px;
  font-size: 11px;
  color: #7a8492;
}
.ds-mail .ds-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--hair, #d9dde3);
}
.ds-mail .ds-row label {
  width: 68px;
  font-size: 12px;
  color: var(--mut, #667085);
}
.ds-mail .ds-val {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.ds-mail .ds-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--hair, #d9dde3);
  border-radius: 999px;
  font-size: 12px;
}
.ds-mail .ds-body {
  padding: 14px 0;
  line-height: 1.5;
}
.ds-mail .ds-note {
  font-size: 12px;
  color: var(--mut, #667085);
  margin: 0;
}
.ds-drive .ds-path {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.ds-drive .ds-grp {
  border: 1px solid var(--hair, #d9dde3);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.ds-drive summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-weight: 600;
  list-style: none;
}
.ds-drive summary::-webkit-details-marker {
  display: none;
}
.ds-drive ul {
  list-style: none;
  margin: 0;
  padding: 0 0 6px;
}
.ds-drive .ds-file {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 14px 7px 36px;
  background: none;
  border: 0;
  text-align: left;
  font: inherit;
  color: inherit;
}
.ds-drive button.ds-file {
  cursor: pointer;
  color: var(--accent, #1a56db);
}
.ds-drive button.ds-file:hover {
  background: rgba(120, 130, 150, 0.12);
}
@media print {
  body.print-sheet > *:not(#modal-root) {
    display: none !important;
  }
  body.print-sheet #modal-root .ov {
    position: static !important;
    background: none !important;
    display: block !important;
  }
  body.print-sheet #modal-root .modal {
    position: static !important;
    box-shadow: none !important;
    max-width: none !important;
    width: auto !important;
  }
  body.print-sheet .modal-head,
  body.print-sheet .modal-foot {
    display: none !important;
  }
  body.print-sheet .ds-modal .modal-body {
    max-height: none;
    overflow: visible;
  }
}
/* The dialog takes focus when it opens (demo-app.js:642-644); the ring belongs on the controls inside it, not on the whole sheet. */
.ds-modal:focus,
.ds-modal:focus-visible,
.pcm:focus,
.pcm:focus-visible,
.dcm:focus,
.dcm:focus-visible {
  outline: none;
}
