/* Farbwelt der HSP-Wohnumfeldverbesserung-Webseite: Blau als Hauptfarbe,
   Grün fuer Fertig/Positiv (wie dort --blue-dark/--blue/--green). */
:root {
    --primary: #1d4d80;
    --primary-light: #2f6fae;
    --primary-bg: #eaf2fa;
    --gruen: #1f9d55;
    --gruen-dark: #167a42;
    --gruen-bg: #e7f5ec;
    --gelb: #f1c40f;
    --gelb-bg: #fdf6dd;
    --orange: #e67e22;
    --orange-bg: #fef0e4;
    --rot: #e74c3c;
    --rot-bg: #fdecea;
    --blau: #2f6fae;
    --blau-bg: #eaf2fa;
    --text-dark: #26303a;
    --text-medium: #55606a;
    --text-light: #8a97a3;
    --bg: #f4f6f8;
    --card: #ffffff;
    --border: #e1e6ea;
    --shadow: 0 1px 4px rgba(31, 61, 90, 0.08);
    --radius: 12px;
    --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

.view { min-height: 100vh; }
.hidden { display: none !important; }

/* ── LOGIN ─────────────────────────────────────────────────────────────── */

.login-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    min-height: 100vh;
    justify-content: center;
}

.login-logo { text-align: center; }

.logo-img-wrap {
    background: white;
    border-radius: 16px;
    padding: 14px 20px;
    display: inline-block;
    margin: 0 auto 16px;
    box-shadow: 0 4px 20px rgba(31, 61, 90, 0.15);
    border: 1px solid var(--border);
}

.login-logo-img { width: 180px; height: auto; display: block; }
.login-logo h1 { font-size: 22px; font-weight: 700; }
.login-logo p { font-size: 14px; color: var(--text-medium); margin-top: 4px; }

.login-card { width: 100%; display: flex; flex-direction: column; gap: 14px; }

/* ── CARDS / FORMS ─────────────────────────────────────────────────────── */

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-medium); flex: 1; }

input, select, textarea {
    font: inherit;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-dark);
    width: 100%;
    min-height: 42px;
}

textarea { resize: vertical; min-height: 70px; }

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(47, 111, 174, 0.18);
}

.check-label { flex-direction: row; align-items: center; gap: 10px; font-size: 14px; }
.check-label input { width: 20px; height: 20px; min-height: 0; flex: none; }

.form-card { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.form-row { display: flex; gap: 14px; }

.form-error, .form-msg { font-size: 14px; border-radius: var(--radius-sm); padding: 10px 12px; }
.form-error { background: var(--rot-bg); color: var(--rot); }
.form-msg.ok { background: var(--gruen-bg); color: var(--gruen-dark); }
.form-msg.err { background: var(--rot-bg); color: var(--rot); }

/* ── BUTTONS ───────────────────────────────────────────────────────────── */

.btn {
    font: inherit;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    padding: 11px 18px;
    cursor: pointer;
    min-height: 44px;
    transition: filter .15s;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { filter: brightness(0.95); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--text-medium); border: 1px solid var(--border); }
.btn-small { padding: 6px 12px; min-height: 34px; font-size: 13px; }
.btn-danger { background: var(--rot-bg); color: var(--rot); }

/* ── TOPBAR / TABS ─────────────────────────────────────────────────────── */

.topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: none; }
.topbar-logo { height: 34px; width: auto; }
.topbar-title { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.topbar-title strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title span { font-size: 11px; color: var(--text-light); }
.topbar-username { font-size: 13px; font-weight: 600; color: var(--text-medium); white-space: nowrap; }

.tabs { display: flex; gap: 2px; overflow-x: auto; flex: none; }

.tab {
    font: inherit;
    font-weight: 600;
    font-size: 13.5px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-medium);
    padding: 8px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.tab:hover { background: var(--primary-bg); color: var(--primary); }
.tab.active { color: #fff; background: var(--primary); }

.topbar-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; min-width: 0; }

.searchbox { position: relative; min-width: 0; }
.searchbox input {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 13.5px;
    width: 230px;
    max-width: 100%;
    border-radius: 999px;
    background: var(--bg);
}
.bellbox { position: relative; flex: none; }
.btn-icon {
    font: inherit;
    font-size: 17px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    position: relative;
    transition: background .15s;
}
.btn-icon:hover { background: var(--primary-bg); }
.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--rot);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 999px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0 4px;
    text-align: center;
}

.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    max-width: 88vw;
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(31, 61, 90, 0.18);
    z-index: 40;
}
.searchbox .dropdown { left: 0; right: auto; }
.dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
    transition: background .12s;
}
.dd-item:last-child { border-bottom: none; }
.dd-item:hover { background: var(--primary-bg); }
.dd-item .dd-main { flex: 1; min-width: 0; }
.dd-item .dd-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-item .dd-sub { font-size: 12px; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-empty { padding: 16px; font-size: 13.5px; color: var(--text-light); text-align: center; }
.dd-head { padding: 9px 14px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-light); border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; }

.content { max-width: 1440px; margin: 0 auto; padding: 18px 20px 60px; }

.section-title { font-size: 17px; margin: 22px 0 12px; }

/* ── DASHBOARD: WILLKOMMEN ─────────────────────────────────────────────── */

.welcome { margin: 4px 0 16px; }
.welcome h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.3px; }
.welcome p { font-size: 14px; color: var(--text-medium); margin-top: 3px; }

/* ── DASHBOARD: KPI-ZEILE ──────────────────────────────────────────────── */

.kpi-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}
.kpi {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    border-top: 3px solid var(--primary);
    cursor: pointer;
    transition: transform .12s, box-shadow .12s, border-color .12s;
}
.kpi:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(31, 61, 90, 0.14); }
.kpi .kpi-num { font-size: 26px; font-weight: 800; line-height: 1.1; }
.kpi .kpi-label { font-size: 12px; color: var(--text-medium); font-weight: 600; margin-top: 2px; }
.kpi.gelb { border-top-color: var(--gelb); }
.kpi.orange { border-top-color: var(--orange); }
.kpi.rot { border-top-color: var(--rot); }
.kpi.blau { border-top-color: var(--blau); }
.kpi.gruen { border-top-color: var(--gruen); }

.fin-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.fin-kpi {
    background: linear-gradient(135deg, #fffdf5, #fff);
    border: 1px solid var(--border);
    border-left: 4px solid #d4af37;
    border-radius: var(--radius);
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform .12s, box-shadow .12s;
}
.fin-kpi:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(160, 130, 30, 0.16); }
.fin-kpi .fk-num { font-size: 18px; font-weight: 800; }
.fin-kpi .fk-num.neg { color: var(--rot); }
.fin-kpi .fk-label { font-size: 12px; color: var(--text-medium); font-weight: 600; }

/* ── DASHBOARD: ARBEITSBEREICH ─────────────────────────────────────────── */

.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 14px;
    margin-bottom: 14px;
    align-items: start;
}

.dash-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.dash-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.dash-card-head h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-medium); }
.dash-link { font-size: 13px; font-weight: 700; color: var(--primary); background: none; border: none; cursor: pointer; font-family: inherit; }
.dash-link:hover { text-decoration: underline; }

.btable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.btable th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-light);
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    white-space: nowrap;
}
.btable td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.btable tr:last-child td { border-bottom: none; }
.btable tbody tr { cursor: pointer; transition: background .12s; }
.btable tbody tr:hover { background: var(--primary-bg); }
.bt-name { font-weight: 700; white-space: nowrap; }
.bt-dim { color: var(--text-medium); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-progress { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.bt-progress .progress { width: 80px; }
.bt-progress span { font-size: 12px; font-weight: 700; color: var(--text-medium); min-width: 36px; }
.bt-step { font-size: 12.5px; color: var(--text-medium); white-space: nowrap; }

.heute-list { display: flex; flex-direction: column; }
.heute-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .12s;
    font-size: 13.5px;
}
.heute-item:last-child { border-bottom: none; }
.heute-item:hover { background: var(--primary-bg); }
.heute-item .hi-icon { font-size: 17px; flex: none; }
.heute-item .hi-count {
    font-weight: 800;
    font-size: 15px;
    min-width: 26px;
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 2px 6px;
    flex: none;
}
.hi-count.rot { background: var(--rot-bg); color: var(--rot); }
.hi-count.gelb { background: var(--gelb-bg); color: #9a7d0a; }
.hi-count.orange { background: var(--orange-bg); color: var(--orange); }
.hi-count.blau { background: var(--blau-bg); color: var(--blau); }
.hi-count.gruen { background: var(--gruen-bg); color: var(--gruen-dark); }
.heute-item .hi-label { flex: 1; font-weight: 600; color: var(--text-dark); }

.aufgabe-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .12s;
}
.aufgabe-item:last-child { border-bottom: none; }
.aufgabe-item:hover { background: var(--primary-bg); }
.prio-chip {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .5px;
    padding: 3px 8px;
    border-radius: 999px;
    flex: none;
}
.prio-dringend  { background: var(--rot-bg); color: var(--rot); }
.prio-offen     { background: var(--orange-bg); color: var(--orange); }
.prio-ausstehend{ background: var(--gelb-bg); color: #9a7d0a; }
.aufgabe-item .at-titel { flex: 1; font-size: 13.5px; font-weight: 600; min-width: 0; }
.aufgabe-item .at-wann { font-size: 12px; color: var(--text-light); flex: none; }

.fin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
    cursor: pointer;
    transition: background .12s;
}
.fin-row:last-child { border-bottom: none; }
.fin-row:hover { background: var(--primary-bg); }
.fin-row .fr-label { font-weight: 600; color: var(--text-medium); }
.fin-row .fr-val { font-weight: 800; }
.fin-row .fr-val.neg { color: var(--rot); }

/* ── DASHBOARD: STATES ─────────────────────────────────────────────────── */

.empty-state { padding: 26px 16px; text-align: center; color: var(--text-light); font-size: 13.5px; }
.empty-state .es-icon { font-size: 26px; display: block; margin-bottom: 6px; }

.error-card { text-align: center; padding: 30px 16px; }
.error-card p { color: var(--text-medium); font-size: 14px; margin-bottom: 14px; }

.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, #e7f0ea 25%, #f2f7f4 50%, #e7f0ea 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skel-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 10px; }
.skel-row .skeleton { height: 72px; }
.skel-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 14px; }
.skel-grid .skeleton { height: 300px; }

/* ── AMPEL ─────────────────────────────────────────────────────────────── */

.ampel-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    font-size: 13px;
    color: var(--text-medium);
    padding: 12px 16px;
    margin-bottom: 6px;
}
.legend-item { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

.dot { width: 13px; height: 13px; border-radius: 50%; display: inline-block; flex: none; }
.dot-gruen { background: var(--gruen); }
.dot-gelb { background: var(--gelb); }
.dot-rot { background: var(--rot); }

.ampel {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    background: #2c3e50;
    border-radius: 7px;
    padding: 5px;
    flex: none;
}
.ampel .lamp { width: 11px; height: 11px; border-radius: 50%; background: #46586a; }
.ampel .lamp.on-rot { background: var(--rot); box-shadow: 0 0 6px var(--rot); }
.ampel .lamp.on-gelb { background: var(--gelb); box-shadow: 0 0 6px var(--gelb); }
.ampel .lamp.on-gruen { background: var(--gruen); box-shadow: 0 0 6px var(--gruen); }

/* ── PATIENTEN-LISTE ───────────────────────────────────────────────────── */

.list-toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
.list-toolbar input { flex: 2; }
.list-toolbar select { flex: 1; max-width: 220px; }

.patient-list { display: flex; flex-direction: column; gap: 10px; }

.patient-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: border-color .15s, transform .1s;
}
.patient-card:hover { border-color: var(--primary-light); }
.patient-card:active { transform: scale(0.995); }

.pc-main { flex: 1; min-width: 0; }
.pc-name { font-weight: 700; font-size: 15px; }
.pc-sub { font-size: 13px; color: var(--text-medium); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }

.chip {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.chip-aufnahme    { background: var(--gelb-bg); color: #9a7d0a; }
.chip-bearbeitung { background: var(--gelb-bg); color: #9a7d0a; }
.chip-genehmigt   { background: var(--blau-bg); color: var(--blau); }
.chip-im_bau      { background: var(--orange-bg); color: var(--orange); }
.chip-fertig      { background: var(--gruen-bg); color: var(--gruen-dark); }
.chip-abgelehnt   { background: var(--rot-bg); color: var(--rot); }
.chip-website     { background: var(--blau-bg); color: var(--blau); }
.chip-zuzahlung   { background: var(--orange-bg); color: var(--orange); }

.progress {
    width: 130px;
    height: 8px;
    border-radius: 999px;
    background: var(--border);
    overflow: hidden;
}
.progress > div { height: 100%; background: var(--gruen); border-radius: 999px; }

.empty-hint { color: var(--text-light); font-size: 14px; padding: 20px; text-align: center; }

/* ── MODAL ─────────────────────────────────────────────────────────────── */

.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 40, 30, 0.45); }
.modal-panel {
    position: relative;
    background: var(--bg);
    width: 100%;
    max-width: 760px;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.modal-head h3 { font-size: 17px; }
.modal-body { padding: 16px 18px 40px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.detail-item { font-size: 14px; }
.detail-item .dl { font-size: 12px; color: var(--text-light); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.detail-item .dv { margin-top: 2px; font-weight: 600; }

.finanz-row { display: flex; justify-content: space-between; font-size: 14px; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.finanz-row:last-child { border-bottom: none; }
.finanz-row.total { font-weight: 800; font-size: 16px; }
.finanz-row.total .pos { color: var(--gruen-dark); }
.finanz-row.total .neg { color: var(--rot); }

.note-item { border-left: 3px solid var(--primary-light); padding: 8px 12px; background: #fff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.note-meta { font-size: 12px; color: var(--text-light); margin-bottom: 3px; }
.note-item p { font-size: 14px; white-space: pre-wrap; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.photo-grid a { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 1; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }

.log-item { font-size: 13px; color: var(--text-medium); padding: 5px 0; border-bottom: 1px dashed var(--border); display: flex; gap: 8px; align-items: center; }
.log-item:last-child { border-bottom: none; }

.inline-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.inline-actions label { flex: 1; min-width: 150px; }
.inline-actions .btn { flex: none; }

.range-wrap { display: flex; align-items: center; gap: 10px; }
.range-wrap input[type=range] { min-height: 0; padding: 0; }
.range-wrap output { font-weight: 800; min-width: 46px; text-align: right; }

/* ── BENUTZER ──────────────────────────────────────────────────────────── */

.user-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.user-row:last-child { border-bottom: none; }
.user-row .un { font-weight: 700; font-size: 14px; }
.user-row .um { font-size: 12px; color: var(--text-light); }

/* ── CREDIT ────────────────────────────────────────────────────────────── */

.credit {
    text-align: center;
    color: var(--text-light);
    font-size: 12.5px;
    padding: 22px 0 4px;
    margin: 0;
}
.credit strong { color: var(--primary); font-weight: 700; }

/* ── TABLET / MOBILE ───────────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .topbar-inner { flex-wrap: wrap; row-gap: 6px; }
    .tabs { order: 3; width: 100%; }
    .topbar-tools { margin-left: auto; }
    .searchbox input { width: 170px; }
    .kpi-row { grid-template-columns: repeat(3, 1fr); }
    .fin-strip { grid-template-columns: repeat(2, 1fr); }
    .dash-grid { grid-template-columns: 1fr; }
    .skel-grid { grid-template-columns: 1fr; }
    .bt-hide-md { display: none; }
}

@media (max-width: 640px) {
    .form-row { flex-direction: column; }
    .topbar-username { display: none; }
    .topbar-title strong { font-size: 13px; }
    .searchbox input { width: 130px; }
    .pc-right .progress { width: 90px; }
    .detail-grid { grid-template-columns: 1fr; }
    .list-toolbar { flex-direction: column; }
    .list-toolbar select { max-width: none; }
    .kpi-row { grid-template-columns: repeat(2, 1fr); }
    .kpi .kpi-num { font-size: 22px; }
    .fin-strip { grid-template-columns: repeat(2, 1fr); }
    .welcome h1 { font-size: 20px; }
    .bt-hide-sm { display: none; }
    .btable th, .btable td { padding: 9px 10px; }
    .bt-progress { min-width: 0; }
    .bt-progress .progress { width: 54px; }
}

@media (min-width: 641px) {
    .modal { align-items: center; padding: 24px; }
    .modal-panel { border-radius: 16px; }
}
