/* Предпросмотр Excel во всплывающем окне */
.xf-tabs button{font:inherit;font-size:12px;padding:5px 11px;border:0;color:var(--muted);white-space:nowrap;border-radius:99px;background:#f4f9f4;cursor:pointer;transition:background .15s,color .15s}
.xf-tabs button:first-child{background:#e3f2e5;color:var(--ink);font-weight:600}
.xf-tabs button:hover{background:#e3f2e5;color:var(--ink)}
.xf-tabs button:focus-visible{outline:2px solid #4a7157;outline-offset:1px}
.xf-screen{cursor:zoom-in}
html.xp-open{overflow:hidden}
.xp{width:min(1180px,calc(100vw - 32px));height:min(860px,calc(100vh - 32px));max-width:none;max-height:none;margin:auto;padding:0;border:0;border-radius:22px;background:#fff;color:var(--ink);box-shadow:0 30px 80px #13281a40;display:none;flex-direction:column;overflow:hidden}
.xp[open]{display:flex}
.xp::backdrop{background:#16271d8c;backdrop-filter:blur(2px)}
.xp-head{display:flex;align-items:center;gap:12px;padding:12px 14px 12px 18px;background:#24352a;color:#e9f4ec}
.xp-file{display:flex;align-items:center;gap:10px;font-weight:650;font-size:15px;min-width:0;flex:1}
.xp-file>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.xp-ico{flex:0 0 auto;width:24px;height:24px;border-radius:6px;background:#9cd5a5;color:#24352a;display:grid;place-items:center;font-size:13px;font-weight:800}
.xp-dl{flex:0 0 auto;background:#9cd5a5;color:#1d3024;border-radius:999px;padding:9px 16px;font-weight:700;font-size:14px;text-decoration:none}
.xp-dl:hover{background:#b6e3bd}
.xp-close{flex:0 0 auto;width:44px;height:44px;border-radius:50%;border:0;background:#ffffff1f;color:#fff;font-size:26px;line-height:1;cursor:pointer}
.xp-close:hover{background:#ffffff33}
.xp-dl:focus-visible,.xp-close:focus-visible{outline:3px solid #9cd5a5;outline-offset:2px}
.xp-tabs{display:flex;gap:2px;overflow-x:auto;padding:6px 8px 0;background:#eef5ee;border-bottom:1px solid #d9e8db;scrollbar-width:thin;flex:0 0 auto}
.xp-tabs button{flex:0 0 auto;font:inherit;font-size:13px;padding:9px 13px;border:0;border-radius:10px 10px 0 0;background:none;color:#3f5a47;cursor:pointer;white-space:nowrap;min-height:40px}
.xp-tabs button:hover{background:#ffffffa6}
.xp-tabs button[aria-selected=true]{background:#fff;color:#1f2f25;font-weight:650;box-shadow:inset 0 -3px 0 #4a7157}
.xp-tabs button:focus-visible{outline:2px solid #4a7157;outline-offset:-2px}
.xp-body{flex:1;overflow:auto;background:#fff;overscroll-behavior:contain}
.xp-body:focus-visible{outline:3px solid #4a7157;outline-offset:-3px}
.xp-msg{padding:28px;color:var(--muted)}
.xp-note{margin:0;padding:12px 16px 18px;font-size:13px;color:var(--muted)}
.xp-img{display:block;max-width:100%;height:auto;margin:0 auto}
.xp-t{border-collapse:collapse;table-layout:fixed;font:12.5px/1.35 Arial,Helvetica,sans-serif;color:#1f1f1f}
.xp-t col.xp-rn{width:44px}
.xp-t th,.xp-t td{border:1px solid #e2e6e3;padding:3px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:top}
.xp-t thead th{position:sticky;top:0;z-index:2;background:#f3f5f3;color:#5c6b61;font-weight:600;text-align:center;font-size:11px}
.xp-t tbody th{position:sticky;left:0;z-index:1;background:#f3f5f3;color:#5c6b61;font-weight:600;font-size:11px;text-align:center}
.xp-t thead th:first-child{left:0;z-index:3}
@media(max-width:640px){
  .xp{width:100vw;height:100vh;height:100dvh;border-radius:0}
  .xp-head{padding:10px 10px 10px 14px;gap:8px}
  .xp-file{font-size:14px}
  .xp-dl{padding:9px 12px;font-size:13px}
}
@media(prefers-reduced-motion:no-preference){.xp[open]{animation:xp-in .18s ease-out}@keyframes xp-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}}
.xp-t .xp-w{overflow:hidden}
.xp-t td{height:auto}
.xf-foot .xf-dash{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:9px 16px;border-radius:99px;background:#e3f2e5;color:var(--ink);font-weight:700;font-size:14px;text-decoration:none;margin-left:8px}
.xf-foot .xf-dash:hover{background:#d4ecd8}
.xf-foot .xf-dash:focus-visible{outline:3px solid #4a7157;outline-offset:2px}
.xf-foot:has(.xf-dash){flex-wrap:wrap;gap:8px}.xf-foot:has(.xf-dash) .xf-dash{margin-left:0}
