*{box-sizing:border-box;font-family:Segoe UI, Roboto, Arial, sans-serif}
body{margin:0;display:flex;flex-direction:column;height:100vh}
header{padding:0;margin:0;line-height:0;background:#6f1726}
main{flex:1;display:flex;min-height:0}
#screenNav{display:flex;gap:8px;padding:12px 16px;border-bottom:1px solid #ddd;background:#fff;align-items:center}
.screenButton{flex:1;padding:10px 12px;border:1px solid #ddd;background:#faf2f4;color:#111;cursor:pointer;border-radius:6px;transition:background .2s,border-color .2s}
.screenButton.active{background:#7a1b31;color:#fff;border-color:#7a1b31}
.screenButton:hover{background:#f4e5e8}

.screen{display:none!important;flex:1;min-height:0;overflow:hidden}
.screen.active{display:flex!important}
#screenDashboard{flex-direction:column}
#screenAdmin{display:none}
.hidden{display:none!important}
#adminButton:not(.hidden){display:flex!important}
#sidebar{width:320px;border-right:1px solid #ddd;padding:12px;display:flex;flex-direction:column;min-height:0;flex:0 0 320px;overflow:hidden}
#sidebar input{width:100%;padding:8px;margin-bottom:8px}
#listContainer{flex:1;min-height:0;overflow-y:auto;border-top:1px solid #eee;padding-top:6px}
#list{list-style:none;padding:0;margin:0}
#list li{margin-bottom:6px}
#list button{width:100%;text-align:left;padding:8px;border:1px solid #eee;background:#fff;color:#111;cursor:pointer;border-radius:4px;transition:background .2s,border-color .2s}
#list button:hover,#list button:focus{background:#f6e5e8;border-color:#d7b4bd;outline:none}
#list button.selected{background:#f5d5dc;border-color:#c98a97}
#dashboard{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));grid-auto-rows:auto;gap:16px;padding:16px;overflow:auto;min-height:0}
.donut-card{min-width:260px;}
.pending-card{border:1px solid #e6d7dd;border-radius:12px;padding:16px;background:#faf2f4;display:flex;align-items:center;justify-content:space-between;gap:16px}
.pending-card span{font-size:1rem;color:#111}
.pending-actions{display:flex;gap:10px}
.pending-actions button{padding:8px 12px;border:none;border-radius:8px;cursor:pointer;transition:background .2s}
.pending-actions button.approve{background:#1a7c3f;color:#fff}
.pending-actions button.reject{background:#b23a48;color:#fff}
.pending-actions button.delete{background:#555;color:#fff}
.status-badge{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;font-size:.85rem;font-weight:700;text-transform:capitalize;color:#fff;min-width:86px;text-align:center}
.status-pending{background:#d97706}
.status-approved{background:#1a7c3f}
.status-rejected{background:#9f1239}
.pending-card .status{font-size:.95rem;color:#555}
.dashboard-card{background:#fff;border:1px solid #e8d9de;border-radius:16px;padding:16px;box-shadow:0 8px 24px rgba(43,17,37,.08);display:flex;flex-direction:column;transition:transform .22s ease,box-shadow .22s ease,grid-column .22s ease}
.dashboard-card:hover{transform:translateY(-3px);box-shadow:0 16px 32px rgba(43,17,37,.14)}
.dashboard-card h3{margin:0 0 14px;font-size:1.15rem;color:#7a1b31;letter-spacing:.01em}
.dashboard-card{font-size:0.96rem}
.dashboard-card .card-body{flex:1;display:flex;flex-direction:column;justify-content:flex-start;gap:12px;overflow:visible;min-height:auto}
.bar-chart,
.column-chart{width:100%;overflow-x:auto;overflow-y:hidden;padding:4px 0;min-height:auto}
.bar-chart svg,
.column-chart svg{width:auto;min-width:100%;max-width:none;max-height:none;height:auto;display:block}
.bar-chart svg text,
.column-chart svg text{font-family:inherit;fill:#111}
.bar-chart svg text.wrapped-label,
.column-chart svg text.wrapped-label{dominant-baseline:hanging}
.bar-chart svg tspan,
.column-chart svg tspan{white-space:pre;}
.pie-chart{display:flex;justify-content:center;align-items:center;min-height:280px;overflow:hidden;padding:10px 0}
.pie-chart svg{width:100%;max-width:380px;height:auto;display:block}
.pie-score{font-size:1.05rem;color:#333;text-align:center;margin-top:12px}
.pie-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px;max-height:260px;overflow:auto}
.pie-item{display:flex;align-items:flex-start;gap:12px}
.pie-item span{font-size:1.4rem;line-height:1.5;word-break:break-word}
.pie-swatch{width:18px;height:18px;border-radius:4px}
.stat-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.stat-row span{display:block}
.stat-bar{height:12px;border-radius:999px;background:#f2e8ea;overflow:hidden;flex:1;margin-left:10px}
.stat-bar-fill{height:100%;background:#7a1b31;border-radius:999px}
#dashboard .empty-state{padding:16px;color:#555;background:#f8eff2;border:1px solid #e6d7dd;border-radius:8px}
#detail{flex:1;padding:16px;overflow:auto}
#meta{margin-bottom:12px}
#imageContainer img{max-width:100%;height:auto;border:1px solid #ccc}
.field{margin-bottom:6px}
.field strong{display:inline-block;width:140px}
.site-header {
    width: 100%;
    height: 100px;
    margin: 0;
    padding: 0;
    background-color: #6f1726;
    overflow: hidden;
    line-height: 0;
}

.site-logo {
    width: 100%;
    height: 100px;
    object-fit: cover;
    object-position: center;
    display: block;
}