/* Data room: folders, files and the viewer. Uses the shared look (base.css, desk.css). */
.dr-ic { width: 16px; height: 16px; flex: none; }
.dr-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; align-items: start; }
.dr-side { padding: 8px 0 12px; position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow: auto; }
.dr-side-h { font-size: 11.5px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); padding: 10px 18px 8px; }
.dr-tl { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: none; padding: 7px 12px 7px 10px; text-align: left; cursor: pointer; color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 600; border-radius: 0; }
.dr-tl:hover { background: var(--tint); color: var(--ink); }
.dr-tl.on { background: var(--brand-soft); color: var(--brand-ink); box-shadow: inset 3px 0 0 var(--brand-strong); }
.dr-tl .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-tl .c { font-size: 11.5px; color: var(--ink-3); font-weight: 650; }
.dr-tw { width: 14px; display: inline-flex; color: var(--ink-3); }
.dr-tw .dr-ic { width: 13px; height: 13px; transition: transform .15s; }
.dr-tw.open .dr-ic { transform: rotate(90deg); }
.dr-fold { color: #d4a514; fill: #fdf3cf; }
.dr-fold.big { width: 30px; height: 30px; }
.dr-main { min-height: 360px; transition: box-shadow .15s; }
.dr-main.over { box-shadow: 0 0 0 3px var(--brand-strong); }
.dr-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.dr-crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-width: 0; }
.dr-crumbs button { border: 0; background: none; font: inherit; font-weight: 700; font-size: 14px; color: var(--brand-strong); cursor: pointer; padding: 3px 4px; border-radius: 6px; }
.dr-crumbs button:last-child { color: var(--ink); }
.dr-crumbs button:hover { background: var(--line-2); }
.dr-crumbs .dr-ic { width: 13px; height: 13px; color: var(--ink-3); }
.dr-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: #fff; min-width: 240px; }
.dr-search .dr-ic { color: var(--ink-3); }
.dr-search input { border: 0 !important; outline: 0; box-shadow: none !important; padding: 9px 0; min-width: 0; flex: 1; background: transparent; }
.dr-t td { padding-top: 11px; padding-bottom: 11px; }
.dr-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dr-name b { font-weight: 650; word-break: break-word; }
.dr-badge { flex: none; width: 34px; height: 40px; border-radius: 6px; display: inline-flex; align-items: flex-end; justify-content: center; padding-bottom: 5px; font-size: 9.5px; font-weight: 800; color: #fff; letter-spacing: .02em; position: relative; }
.dr-badge::before { content: ""; position: absolute; top: 0; right: 0; border-width: 0 10px 10px 0; border-style: solid; border-color: var(--bg) rgba(255, 255, 255, .45) rgba(255, 255, 255, .45) var(--bg); border-top-right-radius: 0; }
.k-pdf { background: #dc2626; } .k-word { background: #2563eb; } .k-slides { background: #ea580c; } .k-sheet { background: #16a34a; }
.k-img { background: #7c3aed; } .k-text { background: #64748b; } .k-other { background: #94a3b8; }

/* viewer */
.dr-noscroll { overflow: hidden; }
.dr-view { position: fixed; inset: 0; z-index: 80; background: #1f2427; display: flex; flex-direction: column; animation: fade .15s; }
.dr-vh { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.dr-vt { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dr-vt b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-vt .small { color: var(--ink-3); }
.dr-vo { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-weight: 650; }
.dr-vb { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; }
.dr-pages { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 12px 40px; }
.dr-pages img { width: min(900px, 100%); height: auto; background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.dr-pages.wide img { width: min(1200px, 100%); }
.dr-wait { color: #e5e7eb; text-align: center; padding: 60px 20px; font-weight: 600; line-height: 1.6; }
.dr-wait a { color: #FDC010; }
.dr-spin { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #FDC010; border-radius: 50%; animation: drspin .8s linear infinite; vertical-align: -3px; margin-right: 10px; }
@keyframes drspin { to { transform: rotate(360deg); } }
.dr-text { background: #fff; margin: 18px auto; max-width: 900px; padding: 24px 28px; white-space: pre-wrap; word-break: break-word; font: 13.5px/1.6 ui-monospace, Menlo, monospace; border-radius: 6px; }
.dr-sheets { display: flex; gap: 2px; padding: 8px 12px 0; background: #2a3034; overflow-x: auto; position: sticky; top: 0; z-index: 3; }
.dr-sheets button { border: 0; background: #3a4146; color: #cbd5e1; padding: 8px 14px; border-radius: 8px 8px 0 0; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.dr-sheets button.on { background: #fff; color: #14532d; }
.dr-grid { background: #fff; min-height: 100%; }
.dr-grid table { border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.dr-grid th, .dr-grid td { border-right: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; padding: 5px 8px; max-width: 420px; vertical-align: top; white-space: pre-wrap; word-break: break-word; }
.dr-grid thead th { position: sticky; top: 37px; background: #f1f5f9; color: #64748b; font-weight: 700; text-align: center; z-index: 2; }
.dr-grid tbody th { position: sticky; left: 0; background: #f1f5f9; color: #64748b; font-weight: 600; text-align: right; z-index: 1; }

/* the shared data room page */
.dr-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; background: #093717; color: #fff; position: sticky; top: 0; z-index: 20; }
.dr-top img { height: 34px; }
.dr-top .who { display: flex; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 600; }
.dr-top .btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.dr-top .btn:hover { background: rgba(255, 255, 255, .1); }
.dr-wrap { max-width: 1320px; margin: 0 auto; padding: 18px 24px 40px; }
.dr-foot { text-align: center; color: var(--ink-3); font-size: 12px; padding: 0 16px 28px; }
.dr-login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(160deg, #093717 0%, #0f4d22 60%, #14532d 100%); }
.dr-login .card { width: min(420px, 100%); padding: 30px 28px 26px; }
.dr-login h1 { font-size: 22px; margin: 18px 0 4px; }
.dr-login .err { color: var(--alert); font-weight: 650; font-size: 13.5px; min-height: 20px; margin: 4px 0 8px; }

@media (max-width: 900px) {
  .dr-layout { grid-template-columns: 1fr; }
  .dr-side { position: static; max-height: 260px; }
  .dr-search { min-width: 0; width: 100%; }
  .hide-s { display: none; }
  .dr-wrap { padding: 14px 16px 30px; }
  .dr-top { padding: 10px 16px; }
  .dr-top .who span.nm { display: none; }
}
