* { box-sizing: border-box; }
body { margin: 0; font-family: 'Manrope', system-ui, sans-serif; background: #F7F7F9; color: #171A19; }
a { color: #7C3AED; text-decoration: none; }

.adm-shell { display: flex; min-height: 100vh; }

.adm-sidebar { flex-shrink: 0; width: 232px; background: #FFFFFF; border-right: 1px solid #ECEFED; padding: 22px 14px; display: flex; flex-direction: column; min-height: 100vh; }
.adm-brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 22px 10px; }
.adm-brand-mark { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, #7C3AED 0%, #14B8A6 130%); display: flex; align-items: center; justify-content: center; color: #FFFFFF; font-weight: 800; font-size: 14px; }
.adm-brand-name { font-size: 15px; font-weight: 800; }
.adm-nav { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 12px; color: #6B726F; font-size: 13.5px; font-weight: 700; margin-bottom: 2px; }
.adm-nav:hover { background: #FAFAFB; }
.adm-nav.active { background: #F2EDFC; color: #5B21B6; font-weight: 800; }

.adm-sidebar-foot { margin-top: auto; padding: 14px 14px 4px; border-top: 1px solid #ECEFED; }
.adm-sidebar-admin { font-size: 12.5px; font-weight: 800; color: #171A19; padding: 0 10px; margin-bottom: 4px; }
.adm-sidebar-logout { display: block; padding: 8px 10px; font-size: 12.5px; font-weight: 700; color: #B42318; border-radius: 10px; }
.adm-sidebar-logout:hover { background: #FDECEC; }

/* Toggle switch */
.adm-toggle-track { display: inline-block; position: relative; width: 36px; height: 20px; border-radius: 999px; cursor: pointer; vertical-align: middle; }
.adm-toggle-knob { position: absolute; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #FFFFFF; transition: left 0.15s ease; box-shadow: 0 1px 2px rgba(0,0,0,0.25); }

.adm-icon-btn { width: 28px; height: 28px; border-radius: 8px; background: #FFFFFF; border: 1px solid #ECEFED; cursor: pointer; font-weight: 800; color: #171A19; display: inline-flex; align-items: center; justify-content: center; }
.adm-icon-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.adm-link-btn { background: none; border: none; cursor: pointer; font-family: inherit; color: #B42318; font-weight: 800; font-size: 12.5px; padding: 0; }
.adm-inline-error { color: #B42318; font-size: 12px; font-weight: 700; }
.adm-kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.adm-kpi-card { background: #FFFFFF; border: 1px solid #ECEFED; border-radius: 16px; padding: 16px 18px; }
.adm-kpi-label { font-size: 11px; font-weight: 800; color: #8A8F8C; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 8px; }
.adm-kpi-value { font-size: 20px; font-weight: 800; color: #171A19; }

.adm-main { flex-grow: 1; min-width: 0; }
.adm-topbar { position: sticky; top: 0; z-index: 2; height: 64px; background: #F7F7F9; border-bottom: 1px solid #ECEFED; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; }
.adm-topbar h1 { font-size: 18px; font-weight: 800; margin: 0; }

.adm-content { padding: 24px 28px 48px 28px; }

.adm-btn-primary { height: 38px; padding: 0 16px; border-radius: 999px; background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%); color: #FFFFFF; border: none; font-family: inherit; font-size: 13px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.adm-btn-secondary { height: 44px; border-radius: 12px; background: #F6F5F9; border: none; font-family: inherit; font-size: 13.5px; font-weight: 800; color: #171A19; cursor: pointer; }

.adm-card { background: #FFFFFF; border: 1px solid #ECEFED; border-radius: 16px; overflow: hidden; }
table.adm-table { width: 100%; border-collapse: collapse; }
.adm-th { text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 800; color: #8A8F8C; text-transform: uppercase; letter-spacing: 0.02em; border-bottom: 1px solid #ECEFED; }
.adm-td { padding: 12px 16px; font-size: 13px; font-weight: 600; border-bottom: 1px solid #F4F4F6; vertical-align: middle; }
.adm-thumb { width: 30px; height: 30px; border-radius: 9px; background: #F4F2FB; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 10px; object-fit: cover; }

.adm-badge { display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 800; }
.adm-badge-active { background: #E6FBF8; color: #0E7C70; }
.adm-badge-draft { background: #FFF4EC; color: #B5690A; }
.adm-badge-inactive { background: #F6F5F9; color: #6B726F; }

/* Slide-over form */
.adm-overlay { position: fixed; inset: 0; background: rgba(23,26,25,0.35); display: none; z-index: 10; }
.adm-overlay.open { display: flex; justify-content: flex-end; }
.adm-drawer { width: 480px; max-width: 100%; height: 100%; background: #FFFFFF; display: flex; flex-direction: column; box-shadow: -8px 0 24px rgba(23,26,25,0.12); }
.adm-drawer-head { flex-shrink: 0; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid #ECEFED; }
.adm-drawer-body { flex-grow: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.adm-drawer-foot { flex-shrink: 0; padding: 16px 22px; border-top: 1px solid #ECEFED; display: flex; gap: 10px; }
.adm-close-btn { width: 32px; height: 32px; border-radius: 50%; background: #F6F5F9; border: none; cursor: pointer; }

.adm-label { display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 800; color: #6B726F; }
.adm-field { width: 100%; height: 42px; border-radius: 11px; border: 1px solid #ECEFED; background: #FAFAFB; padding: 0 13px; font-family: inherit; font-size: 13px; color: #171A19; }
.adm-field:focus { outline: none; border-color: #7C3AED; background: #FFFFFF; }
textarea.adm-field { height: auto; padding: 10px 13px; resize: vertical; }

.adm-upload-box { height: 96px; border-radius: 12px; border: 1.5px dashed #D9D4EE; background: #FAFAFB; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #7C3AED; cursor: pointer; position: relative; overflow: hidden; text-align: center; }
.adm-upload-box input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.adm-upload-box img.preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.adm-logo-row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; border: 1.5px dashed #D9D4EE; background: #FAFAFB; }
.adm-logo-circle { position: relative; flex-shrink: 0; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: #F0ECFB; border: 2px solid #FFFFFF; box-shadow: 0 2px 8px rgba(23,26,25,0.12); cursor: pointer; }
.adm-logo-circle img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: center; }
.adm-logo-circle input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 1; }

.adm-zoom-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.adm-zoom-btn { width: 26px; height: 26px; border-radius: 8px; background: #FFFFFF; border: 1px solid #ECEFED; cursor: pointer; font-weight: 800; }
.adm-zoom-track { flex-grow: 1; height: 5px; border-radius: 999px; background: #ECEFED; position: relative; }
.adm-zoom-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: #7C3AED; }

#map_preview { width: 100%; height: 170px; border-radius: 12px; border: 1px solid #ECEFED; margin-top: 8px; }
.pac-container { z-index: 10000 !important; }

.adm-ai-btn { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: #F2EDFC; border: none; color: #5B21B6; font-family: inherit; font-size: 10.5px; font-weight: 800; cursor: pointer; }
.adm-ai-option { text-align: right; width: 100%; box-sizing: border-box; padding: 9px 12px; border-radius: 10px; font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; line-height: 17px; background: #FAFAFB; border: 1.5px solid #ECEFED; color: #4A4F4D; margin-bottom: 6px; }
.adm-ai-option.selected { background: #F2EDFC; border-color: #7C3AED; color: #171A19; }

.adm-helper { display: block; margin-top: 5px; font-size: 10.5px; font-weight: 600; color: #A3A8A5; }
.adm-contact-row { display: flex; gap: 8px; }
.adm-contact-code { flex-shrink: 0; width: 72px; height: 42px; border-radius: 11px; background: #F0F1F0; display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 13px; font-weight: 800; color: #6B726F; }
