/* FileShare UI · css/admin.css · docEdge-style admin windows. Loaded in the order listed in index.html. */
/* ---------------------------------------------------------------- admin windows (docEdge style) */
.win { border: 0; padding: 0; width: min(1500px, 97vw); height: min(900px, 92vh); border-radius: 4px; box-shadow: 0 24px 60px rgba(0,0,0,.3); overflow: hidden; }
.win::backdrop { background: rgba(20, 30, 40, .45); }
.win[open] { display: grid; grid-template-rows: auto 1fr; }
.win-head { display: flex; align-items: center; background: #4F8BA5; color: #fff; padding: 8px 14px; }
.win-head h2 { margin: 0; font-size: 17px; font-weight: 500; flex: 1; }
.win-head button { border: 0; background: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.win-body { display: grid; grid-template-columns: 76px 1fr; min-height: 0; }
.win-rail { display: flex; flex-direction: column; gap: 8px; padding: 14px 8px; border-right: 1px solid var(--line); background: #fff; }
.rail-btn { display: grid; justify-items: center; gap: 3px; border: 1px solid transparent; background: none; padding: 8px 2px; border-radius: 6px; cursor: pointer; font-size: 11px; color: var(--muted); }
.rail-btn .ic { width: 30px; height: 30px; stroke-width: 1.4; }
.rail-btn:hover { background: var(--hover); }
.rail-btn[aria-current="true"] { background: var(--select-soft); border-color: #EADB70; color: var(--ink); }
.win-main { display: grid; grid-template-rows: auto auto 1fr; min-height: 0; min-width: 0; background: var(--panel); }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #fff; border-bottom: 1px solid var(--line-soft); }
.win-bar .btn-primary { background: #2B8FD6; border-color: #2B8FD6; padding: 7px 26px; }
.win-bar .btn-primary:hover { background: #1F77B8; }
.win-count { margin-left: auto; font-size: 14px; }
.win-split { --top-h: 55%; display: grid; grid-template-rows: var(--top-h) 5px 1fr; min-height: 0; }
.win-split.single { grid-template-rows: 1fr; }
.win-list { overflow: auto; background: #fff; min-height: 0; }
.win-list .grid td, .win-list .grid th { text-align: left; }
.filter-row th { padding: 4px; background: #fff; position: sticky; top: 0; z-index: 2; }
.filter-row input { width: 100%; padding: 5px 7px; font-size: 13px; }
.win-list .grid thead tr:nth-child(2) th { top: 33px; }
.dot-on, .dot-off { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 3px solid #2E8B2E; background: #9BDC6A; vertical-align: middle; }
.dot-off { border-color: #9AA5B1; background: #E3E7EB; }
.win-detail { display: grid; grid-template-rows: auto 1fr; min-height: 0; background: #fff; }
.win-tabs { display: flex; gap: 4px; padding: 6px 8px 0; background: var(--panel); }
.win-tab { border: 0; padding: 8px 28px; border-radius: 4px 4px 0 0; background: #BFC5CB; color: #fff; font-weight: 700; cursor: pointer; font-size: 13.5px; }
.win-tab[aria-selected="true"] { background: #6F7780; }
.win-pane { overflow: auto; padding: 12px 14px 20px; min-height: 0; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 10px 14px; max-width: 760px; }
.form-grid .field input, .form-grid .field select { width: 100%; }
.form-grid .span-3 { grid-column: 1 / -1; }
.form-grid input:disabled { background: #EEF0F2; color: var(--muted); }
.form-actions { display: flex; gap: 8px; margin-top: 14px; }
.settings-form { max-width: 760px; display: grid; gap: 12px; }
.settings-form h3 { margin: 6px 0 0; font-size: 15px; font-weight: 500; }
.hint { margin: 0; font-size: 12.5px; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.stat { background: #F4F6F8; border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; }
.stat b { display: block; font-size: 20px; font-weight: 500; color: var(--brand-deep); }
.stat span { font-size: 12.5px; color: var(--muted); }
.menu .mi.has-sub::after { content: "›"; margin-left: auto; color: var(--muted); font-size: 16px; }
.c-green-i .ic { color: var(--c-green); } .c-red-i .ic { color: var(--c-red); } .c-blue-i .ic { color: var(--c-blue); }
.c-orange-i .ic { color: var(--c-orange); } .c-teal-i .ic { color: var(--c-teal); } .c-purple-i .ic { color: var(--c-purple); }
.c-navy-i .ic { color: var(--c-navy); } .c-gray-i .ic { color: var(--c-gray); }
.menu button:disabled .ic { color: #C3CAD1 !important; }
.viewer-wrap { display: grid; grid-template-rows: auto 1fr; min-height: 0; height: 100%; background: #EEF1F4; }
.viewer-bar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: #3A3F44; color: #E8EAED; font-size: 12.5px; flex-wrap: wrap; }
.viewer-bar button { border: 1px solid #5A6068; background: #474D53; color: #fff; border-radius: 4px; padding: 3px 10px; cursor: pointer; font-size: 12.5px; }
.viewer-bar button:hover { background: #555C63; }
.viewer-bar .info { margin-left: auto; color: #B9C0C7; }
.viewer-canvas { position: relative; min-height: 0; overflow: hidden; }
.viewer-canvas canvas { display: block; }
.layer-panel { position: absolute; top: 8px; right: 8px; max-height: 70%; overflow: auto; background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; font-size: 12.5px; z-index: 3; }
.layer-panel label { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.cad-card { overflow: auto; padding: 14px; display: grid; gap: 12px; align-content: start; justify-items: start; background: #fff; }
.cad-card img { max-width: 100%; max-height: 60vh; border: 1px solid var(--line); background: #fff; }
