/* Import results report (reports-import.hbs) — summary tiles + collapsible detail. */
.import-report { font-size: 14px; color: #232830; }

.import-summary {
    color: #8a929e; font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
    margin: 0 0 14px;
}

/* ---- summary tiles ---- */
.import-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.import-tile { border: 1px solid; border-radius: 9px; padding: 14px 16px; position: relative; }
.import-tile::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; }
.import-tile .irt-n { font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.import-tile .irt-l { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; color: #5b636f; font-weight: 600; }

/* ---- collapsible categories ---- */
.import-cat { border-top: 1px solid #e3e7ec; }
.import-cat:last-child { border-bottom: 1px solid #e3e7ec; }
.import-cat-head { display: flex; align-items: center; gap: 10px; padding: 11px 2px; cursor: pointer; }
.import-cat-head .irc-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.import-cat-head .irc-name { font-weight: 600; font-size: 14px; }
.import-cat-head .irc-count { font-size: 12px; padding: 1px 8px; border-radius: 20px; border: 1px solid; font-weight: 600; font-variant-numeric: tabular-nums; }
.import-cat-head .irc-sub { color: #8a929e; font-size: 12px; }
.import-cat-head .import-cat-actions { margin-left: auto; }
.import-cat-head .irc-chev { color: #8a929e; margin-left: 4px; transition: transform .15s ease; display: inline-block; }
.import-cat.open .import-cat-head .irc-chev { transform: rotate(90deg); }

.import-cat-body { display: none; padding: 0 2px 12px 20px; }
.import-cat.open .import-cat-body { display: block; }

.import-list { max-height: 200px; overflow: auto; margin: 0; padding: 0; list-style: none; border: 1px solid #e3e7ec; border-radius: 8px; }
.import-list li { display: flex; gap: 12px; padding: 6px 12px; border-bottom: 1px solid #eef1f5; font-size: 13px; }
.import-list li:last-child { border-bottom: none; }
.import-list .irc-id { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12.5px; color: #5b636f; font-variant-numeric: tabular-nums; }
.import-list .irc-term { color: #232830; }
.import-list .irc-ctx { margin-left: auto; color: #5b636f; white-space: nowrap; }
.import-more { padding: 8px 12px; font-size: 12px; color: #8a929e; }
.import-empty { color: #8a929e; font-size: 13px; padding: 8px 2px; font-style: italic; }

/* ---- semantic colors ---- */
.import-tile.ir-ok  { background: #e9f5ee; border-color: #bfe2cd; }
.import-tile.ir-ok::before { background: #3f9b6d; }
.import-tile.ir-ok .irt-n, .import-tile.ir-ok .irt-l .ic { color: #3f9b6d; }
.import-tile.ir-warn { background: #fbf1df; border-color: #ecd6a8; }
.import-tile.ir-warn::before { background: #c1852b; }
.import-tile.ir-warn .irt-n, .import-tile.ir-warn .irt-l .ic { color: #c1852b; }
.import-tile.ir-bad { background: #f8e9e8; border-color: #eec4c2; }
.import-tile.ir-bad::before { background: #bb524f; }
.import-tile.ir-bad .irt-n, .import-tile.ir-bad .irt-l .ic { color: #bb524f; }

.import-cat.ir-ok  .irc-dot { background: #3f9b6d; }
.import-cat.ir-ok  .irc-count { color: #3f9b6d; background: #e9f5ee; border-color: #bfe2cd; }
.import-cat.ir-warn .irc-dot { background: #c1852b; }
.import-cat.ir-warn .irc-count { color: #c1852b; background: #fbf1df; border-color: #ecd6a8; }
.import-cat.ir-bad .irc-dot { background: #bb524f; }
.import-cat.ir-bad .irc-count { color: #bb524f; background: #f8e9e8; border-color: #eec4c2; }

/* ---- import-in-progress state: hide the form, show only the progress bar ---- */
#create-assignments-panel.importing { display: flex; align-items: center; justify-content: center; }
#create-assignments-panel.importing > *:not(#import-progress-wrapper) { display: none !important; }
#import-progress-wrapper { width: 100%; max-width: 440px; padding: 20px 10px; text-align: center; }
#import-progress-wrapper .ip-title { font-size: 18px; font-weight: 600; color: #232830; margin-bottom: 6px; }
#import-progress-wrapper .ip-label { font-size: 13px; color: #8a929e; margin-bottom: 14px; }
#import-progress-wrapper .progress { margin: 0; height: 22px; }
#import-progress-wrapper .progress-bar { line-height: 22px; font-size: 12px; }

/* ---- per-type explanation under the Type dropdown ---- */
.type-description { margin: 8px 0 4px; padding: 10px 12px; border-radius: 8px; font-size: 12.5px; line-height: 1.5; border: 1px solid; }
.type-description-info { background: #eef4f8; border-color: #cfe0ea; color: #3a4a56; }
.type-description-warn { background: #fbf1df; border-color: #ecd6a8; color: #6f5219; }
.type-description-warn i.fa { color: #c1852b; margin-right: 5px; }
.type-cols { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(0,0,0,.08); font-size: 12px; line-height: 1.7; }
.type-cols b { font-weight: 600; }
.type-description #download-template-wrapper { margin-top: 10px; padding: 0; }
.type-description #download-template-wrapper a { font-size: 12.5px; }
