dana-medical-site/internal/api/adminui/reports-history.css
2026-10-14 13:33:13 +00:00

135 lines
11 KiB
CSS

/* Оформление только вкладки истории: светлое стекло и цветные акценты. */
body.reports-history-view {
background: radial-gradient(ellipse at 90% 14%, #f9e6f2 0, transparent 32%), radial-gradient(ellipse at 40% 0, #e1f5ff 0, transparent 50%), #f0f7ff;
}
body.reports-history-view .top .search input,
body.reports-history-view .round { background: #fff; }
#tab-reports.rp-history-view { --rp-ink: #142447; --rp-soft: #62799e; --rp-line: #e1edf9; color: var(--rp-ink); }
.rp-history-view .rp-waves { display: none; }
.rp-history-view .rp-head { margin: 22px 0 18px; }
.rp-history-view .rp-head h1 { font-family: var(--font); font-size: 34px; font-weight: 700; letter-spacing: -.035em; }
.rp-history-view .rp-tabs { border: 1px solid #fff; border-radius: 16px; padding: 4px; box-shadow: 0 5px 14px #638cb016; margin-bottom: 22px; }
.rp-history-view .rp-tabs button { border-radius: 12px; padding: 12px 24px; }
.rp-history-view .rp-tabs button[aria-selected="true"] { background: linear-gradient(135deg, #d7eeff, #bfe2ff); color: #087ff2; box-shadow: 0 4px 9px #419bdf20; }
[data-rp-view="history"] { --rh-line: #e4edf8; --rh-muted: #61789a; }
[data-rp-view="history"] svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rh-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.rh-toolbar input, .rh-toolbar select, .rh-selection select { background: #ffffffed; border: 1px solid #e0eaf7; border-radius: 12px; height: 44px; color: #29446c; font-size: 13px; }
.rh-search { display: flex; align-items: center; flex: 1 1 230px; background: #ffffffed; border: 1px solid #e0eaf7; border-radius: 12px; padding-left: 14px; color: #6586ab; }
.rh-search > span { display: flex; }
.rh-search input { border: 0; background: none; min-width: 0; padding-left: 10px; }
.rh-search:focus-within, .rh-dates:focus-within { outline: 2px solid #6caaf0; outline-offset: 2px; }
.rh-search input:focus-visible, .rh-dates input:focus-visible { outline: none; box-shadow: none; }
.rh-toolbar select { width: auto; min-width: 155px; }
.rh-dates { display: flex; align-items: center; gap: 5px; padding: 0 12px; background: #fff; border: 1px solid #e0eaf7; border-radius: 12px; color: #637d9c; }
.rh-dates > span:first-child { display: flex; margin-right: 4px; }
.rh-dates input { width: 128px; border: 0; padding: 6px 0; font-size: 12px; }
.rh-icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #e0eaf7; background: #fff; border-radius: 12px; color: #3d6497; cursor: pointer; }
.rh-icon-button span { display: flex; }
.rh-icon-button:disabled { opacity: .5; cursor: wait; }
.rh-reset { padding: 8px; color: #367cb8; font-size: 12px; background: none; border: 0; cursor: pointer; }
.rh-feedback { padding: 12px 16px; border-radius: 12px; color: #9b4e36; background: #fff0e6; }
.rh-selection { display: flex; align-items: center; gap: 20px; margin: 0 0 18px; }
.rh-selection label { font-weight: 600; font-size: 16px; white-space: nowrap; }
.rh-selection select { flex: 1; min-width: 0; max-width: 620px; text-overflow: ellipsis; }
.rh-download { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 11px 20px; border: 0; border-radius: 14px; background: linear-gradient(115deg, #7268ff 0%, #289cff 47%, #25d6d4 100%); box-shadow: 0 7px 16px #5488fa27; color: #fff; text-decoration: none; cursor: pointer; font-size: 13px; font-weight: 500; white-space: nowrap; }
.rh-download:hover { filter: brightness(1.04); color: #fff; }
.rh-download > span { display: flex; }
.rh-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.rh-kpi { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 20px 18px; border: 1px solid #fff; border-radius: 20px; background: #ffffffed; box-shadow: 0 7px 25px #7d9abc08; }
.rh-kpi-icon { display: grid; place-items: center; flex: 0 0 50px; height: 50px; border-radius: 15px; color: #108cf3; background: #e7f5ff; }
.rh-kpi-icon svg { width: 26px; height: 26px; }
.rh-kpi--violet .rh-kpi-icon { background: #f0eaff; color: #9861f5; }
.rh-kpi--mint .rh-kpi-icon { background: #dffafa; color: #00b4a4; }
.rh-kpi--peach .rh-kpi-icon { background: #fff4e4; color: #ffad30; }
.rh-kpi > div { min-width: 0; }
.rh-kpi strong { display: block; font-size: clamp(18px, 1.6vw, 25px); line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rh-kpi div > span { display: block; color: #4b6891; font-size: 12px; margin-top: 6px; }
.rh-kpi small { display: block; color: #8b9db5; font-size: 10px; margin-top: 5px; line-height: 1.4; }
.rh-card { min-width: 0; padding: 23px; background: #fffffff2; border: 1px solid #fff; border-radius: 23px; box-shadow: 0 10px 28px #81a1c309; }
.rh-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.rh-card h2 { margin: 0; font-size: 18px; font-weight: 650; color: #192b4b; }
.rh-card h3 { margin: 0 0 14px; font-size: 14px; font-weight: 600; }
.rh-tag { color: #6a8fb7; font-size: 11px; }
.rh-result { margin-bottom: 16px; }
.rh-result-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.rh-conversion { display: flex; align-items: center; gap: 25px; min-width: 0; }
.rh-donut { position: relative; isolation: isolate; width: 174px; height: 174px; flex: 0 0 174px; display: flex; align-items: center; justify-content: center; flex-direction: column; border-radius: 50%; background: conic-gradient(from -90deg, #21c7ef 0%, #5387ff 22%, #c07aff 46%, #ff8cc2 70%, #ffba6d 88%, #80e9e5 100%); }
.rh-donut::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: conic-gradient(from -90deg, transparent 0 var(--rh-progress), #edf4fb var(--rh-progress) 100%); }
.rh-donut::after { content: ''; position: absolute; inset: 16px; z-index: -1; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px #acc5dc14; }
.rh-donut strong { font-size: 29px; font-weight: 700; letter-spacing: -.03em; }
.rh-donut span { color: #6780a2; font-size: 12px; }
.rh-facts { flex: 1; min-width: 0; }
.rh-facts > div, .rh-check-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 10px 12px; margin-bottom: 5px; border-radius: 12px; background: linear-gradient(90deg, #f3f8fe, #ecf6ff); font-size: 13px; }
.rh-facts span, .rh-check-row span { color: #5d79a0; }
.rh-facts strong, .rh-check-row strong { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.rh-control { padding-left: 30px; border-left: 1px solid #e4effa; }
.rh-check-row { padding: 8px 0; background: none; border-bottom: 1px solid #eef3fa; border-radius: 0; }
.rh-check-note { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 11px; padding: 10px 12px; border-radius: 12px; background: #f0f5fb; color: #69809e; }
.rh-check-note svg { width: 17px; height: 17px; flex-shrink: 0; }
.rh-check-note--ok { color: #139e89; background: #e7fbf6; }
.rh-check-note--warning { color: #b16a20; background: #fff4e4; }
.rh-rankings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rh-ranking { list-style: none; padding: 0; margin: 0; }
.rh-rank { display: flex; align-items: flex-start; gap: 14px; margin-top: 16px; --rank-start: #198fff; --rank-end: #3cd7e7; --rank-soft: #e1f3ff; }
.rh-rank-number { flex: 0 0 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--rank-soft); color: var(--rank-start); font-size: 16px; font-weight: 600; }
.rh-rank-data { flex: 1; min-width: 0; }
.rh-rank-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 12px; }
.rh-rank-title span { overflow-wrap: anywhere; }
.rh-rank-title strong { white-space: nowrap; font-weight: 600; }
.rh-track { background: #eaf2fa; height: 7px; border-radius: 9px; margin: 7px 0 4px; overflow: hidden; }
.rh-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--rank-start), var(--rank-end)); border-radius: inherit; }
.rh-rank small { font-size: 10px; color: #879bb6; }
.rh-ranking-empty { color: #7188a7; padding: 30px 0; font-size: 13px; }
.rh-note { margin: 12px 0 18px; font-size: 11px; line-height: 1.55; color: #7f93af; }
.rh-history-card { margin: 0; border: 1px solid #fff; box-shadow: 0 10px 28px #81a1c309; background: #fffffff2; }
.rh-history-card .rp-recent__head { align-items: center; margin-bottom: 15px; }
.rh-history-card .rh-note { margin: 4px 0 0; }
.rh-history-card .rp-table th { background: #eff6fd; color: #6580a3; font-weight: 500; }
.rh-history-card .rp-table td { border-color: #edf3fa; color: #42618a; }
.rh-history-card .rp-table .dr-name { color: #284976; }
.rh-history-card .rp-table .bn-edit { color: #198afa; background: #eef7ff; border-color: #dfedff; }
.rh-retention { font-size: 11px; color: #8ca1ba; }
.rh-empty { text-align: center; padding: 40px 24px; margin-bottom: 20px; }
.rh-empty > span { display: inline-grid; place-items: center; width: 64px; height: 64px; background: #e9f4ff; color: #4697ed; border-radius: 20px; margin-bottom: 16px; }
.rh-empty > span svg { width: 32px; height: 32px; }
.rh-empty p { font-size: 13px; color: #6a81a0; }
.rh-empty .rh-download { margin: 10px auto 0; }
@media (max-width: 1200px) {
.rh-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rh-result-grid { gap: 22px; }
.rh-conversion { gap: 16px; }
.rh-donut { width: 144px; height: 144px; flex-basis: 144px; }
.rh-control { padding-left: 22px; }
.rh-selection { flex-wrap: wrap; gap: 12px; }
.rh-selection select { max-width: none; }
}
@media (max-width: 960px) {
.rh-result-grid { grid-template-columns: 1fr; }
.rh-control { padding: 20px 0 0; border-left: 0; border-top: 1px solid #e4effa; }
.rh-selection > div { flex-basis: 100%; }
}
@media (max-width: 600px) {
.rp-history-view .rp-head h1 { font-size: 28px; }
.rh-toolbar { gap: 8px; }
.rh-search { flex-basis: 100%; }
.rh-toolbar select { flex: 1; }
.rh-dates { order: 2; width: 100%; justify-content: space-between; }
.rh-dates input { width: 42%; }
.rh-selection select { width: 100%; flex-basis: 100%; }
.rh-download { margin-left: 0; }
.rh-kpis { gap: 10px; }
.rh-kpi { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
.rh-kpi-icon { flex-basis: auto; width: 40px; height: 40px; border-radius: 12px; }
.rh-kpi strong { font-size: 21px; }
.rh-kpi small { font-size: 9px; }
.rh-card { padding: 18px; }
.rh-card-head { align-items: flex-start; }
.rh-card h2 { font-size: 16px; }
.rh-tag { text-align: right; }
.rh-conversion { flex-direction: column; }
.rh-facts { width: 100%; }
.rh-rankings { grid-template-columns: 1fr; }
.rh-history-card .rp-recent__head { flex-wrap: wrap; }
}