/* Staff admin — shared by both garage sites. Brand accent comes from config.ACCENT. */
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, 'Segoe UI', sans-serif; background: #F5F5F4; color: #1C1917; font-size: 15px; }
a { color: #1D4ED8; }
.top { background: #1C1917; color: #fff; }
.top .in { max-width: 1200px; margin: 0 auto; padding: 10px 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.top img { height: 40px; background: #fff; border-radius: 4px; padding: 3px; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.top nav a { color: #E7E5E4; text-decoration: none; padding: 8px 12px; border-radius: 4px; }
.top nav a.on, .top nav a:hover { background: #44403C; color: #fff; }
.top .who { color: #A8A29E; font-size: 13px; }
.top .who a { color: #E7E5E4; }
main { max-width: 1200px; margin: 0 auto; padding: 24px 20px 60px; }
h1 { font-size: 24px; margin: 0 0 16px; }
.card { background: #fff; border: 1px solid #E7E5E4; border-radius: 8px; padding: 20px; }
.flash { background: #ECFDF3; border: 1px solid #ABEFC6; color: #067647; padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; }
.error { background: #FEF3F2; border: 1px solid #FECDCA; color: #B42318; padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; }
.btn { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 6px; border: 1px solid transparent; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; cursor: pointer; font: inherit; font-weight: 600; }
.btn.secondary { background: #fff; color: #1C1917; border-color: #D6D3D1; }
.btn.danger { background: #fff; color: #B42318; border-color: #FECDCA; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tabs a { text-decoration: none; color: #44403C; padding: 7px 12px; border-radius: 999px; border: 1px solid #D6D3D1; background: #fff; font-size: 14px; }
.tabs a.on { background: #1C1917; color: #fff; border-color: #1C1917; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.toolbar form { display: flex; gap: 8px; }
input, select, textarea { font: inherit; border: 1px solid #D6D3D1; border-radius: 6px; padding: 9px 10px; min-height: 40px; background: #fff; width: 100%; }
textarea { resize: vertical; }
.toolbar input { width: 260px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: start; padding: 10px 12px; border-bottom: 1px solid #E7E5E4; vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #78716C; background: #FAFAF9; }
tr:hover td { background: #FAFAF9; }
.table-wrap { overflow-x: auto; border: 1px solid #E7E5E4; border-radius: 8px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.s-new { background: #EFF8FF; color: #175CD3; }
.s-confirmed { background: #F4F3FF; color: #5925DC; }
.s-in_progress { background: #FFFAEB; color: #B54708; }
.s-completed { background: #ECFDF3; color: #067647; }
.s-cancelled { background: #F2F4F7; color: #475467; }
.muted { color: #78716C; font-size: 13px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 13px; color: #44403C; }
dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; margin: 0; }
dt { color: #78716C; }
dd { margin: 0; white-space: pre-wrap; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.login { max-width: 380px; margin: 10vh auto; }
.login img { height: 80px; margin: 0 auto 16px; display: block; }
.empty { padding: 40px; text-align: center; color: #78716C; }

.brand-admin { display: flex; flex-direction: column; gap: 14px; }
.brand-row { display: grid; grid-template-columns: 180px 1fr auto; gap: 18px; align-items: start; }
.brand-logo-box { height: 100px; border: 1px dashed #D6D3D1; border-radius: 6px; display: flex; align-items: center; justify-content: center; background: #fff; padding: 10px; }
.brand-logo-box img { max-width: 100%; max-height: 80px; object-fit: contain; }
@media (max-width: 760px) { .brand-row { grid-template-columns: 1fr; } }
