:root{--app-bg: #f5f5f5;--app-surface: #ffffff;--app-surface-alt: #f8f9fa;--app-surface-strong: #eef2f7;--app-border: rgba(15, 23, 42, .12);--app-border-strong: rgba(15, 23, 42, .2);--app-text: #172033;--app-text-muted: #5f6b7a;--app-header-bg: #011f26;--app-header-text: #ffffff;--app-accent: #1976d2;--app-accent-strong: #1565c0;--app-danger: #d32f2f;--app-shadow: 0 10px 30px rgba(15, 23, 42, .08);--app-shadow-strong: 0 14px 32px rgba(15, 23, 42, .16);--app-overlay: rgba(255, 255, 255, .8);--app-focus-ring: rgba(25, 118, 210, .2);--app-danger-ring: rgba(211, 47, 47, .2);--app-success-soft: #e8f5e9;--app-danger-soft: #ffebee}html[data-theme=dark]{--app-bg: #121212;--app-surface: #1e1e1e;--app-surface-alt: #252525;--app-surface-strong: #2f3542;--app-border: rgba(255, 255, 255, .12);--app-border-strong: rgba(255, 255, 255, .24);--app-text: #f5f7fb;--app-text-muted: #b6c0cc;--app-header-bg: #081319;--app-header-text: #f5f7fb;--app-accent: #64b5f6;--app-accent-strong: #90caf9;--app-danger: #ef5350;--app-shadow: 0 10px 30px rgba(0, 0, 0, .28);--app-shadow-strong: 0 14px 32px rgba(0, 0, 0, .36);--app-overlay: rgba(18, 18, 18, .82);--app-focus-ring: rgba(100, 181, 246, .28);--app-danger-ring: rgba(239, 83, 80, .24);--app-success-soft: rgba(76, 175, 80, .18);--app-danger-soft: rgba(239, 83, 80, .16)}html,body,#root{min-height:100%}body{margin:0;background-color:var(--app-bg);color:var(--app-text);transition:background-color .2s ease,color .2s ease}*{box-sizing:border-box}a,button,input,select,textarea{font:inherit}.spinner-container{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;height:100dvh;width:100%;background-color:var(--app-overlay)}.spinner{border:8px solid var(--app-border);border-top:8px solid var(--app-accent);border-radius:50%;width:60px;height:60px;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.drawer{display:flex;flex-direction:row;justify-content:space-between;align-items:stretch;gap:20px;width:100%;max-width:1200px;margin:0 auto}.add-member-drawer{position:relative;height:100dvh;padding:20px 18px 24px;background-color:var(--app-surface);color:var(--app-text);border-top-left-radius:16px;border-top-right-radius:16px;overflow-y:auto;background-image:radial-gradient(circle at 14% 10%,rgba(25,118,210,.14),transparent 38%),radial-gradient(circle at 84% 2%,rgba(211,47,47,.1),transparent 30%)}.add-member-drawer__handle{width:72px;height:6px;border-radius:999px;background:var(--app-border-strong);margin:0 auto 12px}.add-member-drawer__close{position:absolute!important;top:18px;right:14px;color:var(--app-text)!important;min-width:44px;min-height:44px}.drawer__intro{flex:0 0 34%;min-width:260px;display:flex;flex-direction:column;gap:12px;padding:18px;border-radius:16px;border:1px solid var(--app-border);background:linear-gradient(145deg,var(--app-surface),var(--app-surface-alt));box-shadow:var(--app-shadow)}.drawer__intro-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.drawer__brand{display:inline-flex;align-items:center;justify-content:center;border-radius:12px;background:var(--app-surface);padding:6px 10px}.drawer__brand-logo{width:clamp(86px,12vw,122px);height:auto;display:block}.drawer__theme-toggle{min-height:40px;border-color:var(--app-border-strong)!important;color:var(--app-text)!important;background:color-mix(in srgb,var(--app-surface) 82%,transparent)!important}.drawer__theme-toggle:hover{background:color-mix(in srgb,var(--app-surface-alt) 90%,transparent)!important}.drawer__title{margin:0;line-height:1.15}.drawer__subtitle{margin:0;color:var(--app-text-muted);line-height:1.45}.drawer__highlights{margin:8px 0 0;padding-left:18px;display:flex;flex-direction:column;gap:8px;color:var(--app-text)}.drawer__highlights li{line-height:1.35}.drawer__form-panel{flex:1;min-width:0;border-radius:18px;border:1px solid var(--app-border);background:color-mix(in srgb,var(--app-surface) 82%,white 18%);box-shadow:var(--app-shadow);padding:16px}.drawer__form-title{margin:4px 0 8px;padding-left:8px;border-left:4px solid var(--app-accent)}.member-created-success{max-width:680px;margin:16px auto;border-radius:16px;border:1px solid var(--app-border);background:linear-gradient(180deg,var(--app-surface),var(--app-surface-alt));box-shadow:var(--app-shadow)}@media (max-width: 900px){.drawer{flex-direction:column;gap:14px}.drawer__intro{min-width:0;padding:14px}.drawer__intro-top{flex-wrap:wrap;justify-content:center}.drawer__brand{margin-inline:auto}.drawer__theme-toggle{width:100%}.drawer__form-panel{padding:12px}.add-member-drawer{padding:14px 10px 16px}.add-member-drawer__close{top:10px;right:8px}}.form-add-member{display:flex;flex-wrap:wrap;gap:16px;max-width:600px;margin:0 auto;padding:16px;box-sizing:border-box;background-color:transparent}.form-add-member .MuiTextField-root,.form-add-member .MuiFormControl-root{flex:1 1 48%;min-width:240px}.name-input-container,.personalId-input-container,.address-input-container{display:flex;gap:20px;flex:1 1 100%}.province-input-container,.municipality-input-container,.phone-input-container{display:flex;align-items:center;gap:10px;flex:1 1 100%;flex-wrap:wrap}.province-input-container .MuiFormControl-root,.municipality-input-container .MuiFormControl-root{width:100%;min-height:56px}.province-input-container .MuiSelect-select,.municipality-input-container .MuiSelect-select{min-height:56px;display:flex;align-items:center}.MuiTextField-root .MuiInputBase-input{font-size:18px;padding:16px}.submit-create-member{flex:1 1 100%;padding:16px;min-height:44px}@media (max-width: 900px){.form-add-member{flex-direction:column;max-width:none;padding:12px 0}.form-add-member .MuiTextField-root,.form-add-member .MuiFormControl-root{flex:1 1 100%;min-width:100%}.name-input-container,.personalId-input-container,.address-input-container,.phone-input-container{flex-direction:column;gap:10px}}.form-add-member__honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.personal-data-consent{display:flex;flex-direction:column;gap:8px}.personal-data-consent-notice{display:flex;flex-direction:column;gap:4px;padding:12px 16px;border:1px solid var(--mui-palette-divider, rgba(0, 0, 0, .12));border-radius:8px}.members-container{width:100%;max-width:100%;overflow-x:clip;color:var(--app-text);padding-bottom:16px}.member-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;padding:16px;justify-items:center}@media (max-width: 900px){.members-container{padding-bottom:12px}}.members-cards{display:flex;flex-direction:column;gap:12px;padding:12px}.member-card{border-radius:12px;border-color:#94a3b82e;background-color:#ffffff05}.member-card-content{display:flex;flex-direction:column;gap:14px;padding:16px 18px}.member-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.member-card-title{font-weight:700;font-size:1.05rem;line-height:1.2;word-break:break-word;flex:1;min-width:0}.member-card-status-dot{margin-top:4px;flex-shrink:0}.member-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px}.member-card-field{display:flex;flex-direction:column;min-width:0;gap:2px}.member-card-label{text-transform:uppercase;letter-spacing:.06em;font-size:.7rem;color:#94a3b8d9;line-height:1.2}.member-card-value{font-weight:600;font-size:.95rem;overflow-wrap:anywhere;line-height:1.3}.member-card-state.is-paid{color:#22c55e}.member-card-state.is-unpaid{color:#ef4444}.sidebar-layout{display:flex}.sidebar-layout__content{flex:1;min-width:0}.sidebar{position:sticky;top:0;display:flex;flex-direction:column;flex:none;width:248px;height:100vh;box-sizing:border-box;overflow:hidden;background:var(--app-header-bg);color:var(--app-header-text);border-right:1px solid var(--app-border);transition:width .2s ease}.sidebar-layout--collapsed .sidebar{width:72px}.sidebar__top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:64px;padding:14px 12px;box-sizing:border-box}.sidebar-layout--collapsed .sidebar__top{justify-content:center}.sidebar__logo{width:130px;height:auto;cursor:pointer}.sidebar__nav{flex:1;overflow-y:auto;padding:8px 12px}.nav-list{display:flex;flex-direction:column;gap:4px;margin:0;padding:0;list-style:none}.nav-link{display:flex;align-items:center;gap:14px;height:44px;padding:0 12px;border-radius:10px;color:var(--app-header-text);font-weight:600;text-decoration:none;white-space:nowrap;opacity:.75;transition:background-color .15s,opacity .15s}.nav-link:hover{opacity:1;background:#ffffff14}.nav-link--active{opacity:1;background:#ffffff24;box-shadow:inset 3px 0 0 var(--app-danger)}.nav-link__icon{position:relative;display:inline-flex;flex:none}.nav-link__badge{display:inline-flex;flex:none;margin-left:auto;font-size:1.1rem;color:var(--app-danger)}.nav-link__dot{position:absolute;top:-2px;right:-3px;width:8px;height:8px;border-radius:50%;background:var(--app-danger);box-shadow:0 0 0 2px var(--app-header-bg)}.nav-user{display:flex;align-items:center;gap:4px;padding:10px 12px;border-top:1px solid var(--app-border)}.nav-user--compact{flex-direction:column}.nav-user__name{flex:1;min-width:0;overflow:hidden;font-size:.9rem;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.nav-icon-button{color:var(--app-header-text)!important}.nav-links{padding:8px 12px;border-top:1px solid var(--app-border)}.nav-links__title{margin:4px 0 6px 12px;font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;opacity:.5}.nav-links__item{display:flex;align-items:center;gap:4px}.nav-links__anchor{flex:1;min-width:0}.drawer-bar{position:sticky;top:0;z-index:1100;display:flex;align-items:center;gap:8px;padding:4px 8px;background:var(--app-header-bg);color:var(--app-header-text);border-bottom:1px solid var(--app-border);box-shadow:var(--app-shadow)}.drawer-bar__logo{width:clamp(116px,28vw,180px);height:auto;cursor:pointer}.drawer-bar__end{margin-left:auto!important}.drawer-panel{display:flex;flex-direction:column;width:min(88vw,280px);background:var(--app-header-bg)!important;color:var(--app-header-text)!important}.profile-form{width:100%}.profile-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;margin-bottom:16px;background-color:var(--app-surface);border:1px solid var(--app-border);border-radius:12px;box-shadow:var(--app-shadow)}.profile-toolbar__status{display:flex;align-items:center;gap:10px;min-width:0;flex:1 1 auto}.profile-toolbar__chip{font-weight:600;letter-spacing:.02em}.profile-toolbar__hint{color:var(--app-text-muted);font-size:.85rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-toolbar__actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:flex-end;flex:0 0 auto}.profile-sections{width:100%}.profile-section{padding:20px 24px;border-radius:14px;border:1px solid var(--app-border);background-color:var(--app-surface);box-shadow:var(--app-shadow);transition:box-shadow .2s ease}.profile-section:hover{box-shadow:var(--app-shadow-strong)}.profile-section__divider{margin:16px -24px!important;border-color:var(--app-border)!important}.profile-section-header{display:flex;align-items:center;gap:14px}.profile-section-header__icon{width:44px;height:44px;border-radius:10px;background:linear-gradient(135deg,var(--app-accent),var(--app-accent-strong));color:#fff;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.profile-section-header__icon .MuiSvgIcon-root{font-size:22px}.profile-section-header__title{font-weight:600!important;line-height:1.25!important;color:var(--app-text)}.profile-section-header__subtitle{color:var(--app-text-muted)!important;font-size:.85rem!important}.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}.profile-grid>.MuiTextField-root,.profile-grid>.MuiFormControl-root{width:100%}.profile-grid__full{grid-column:1 / -1}.profile-subsection{display:flex;flex-direction:column;gap:10px;margin-top:12px}.profile-subsection+.profile-subsection{margin-top:20px}.profile-subsection__header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px}.profile-subsection__title{color:var(--app-text-muted)!important;text-transform:uppercase;letter-spacing:.06em;font-weight:600!important;font-size:.75rem!important}.profile-field-row{display:flex;align-items:flex-start;gap:8px}.profile-field-row .MuiTextField-root{flex:1}.profile-field-row__remove{margin-top:8px!important;color:var(--app-danger)!important;flex-shrink:0}.profile-field-row__remove:hover{background-color:var(--app-danger-soft)!important}.read-only{pointer-events:none;background-color:transparent!important}.read-only .MuiOutlinedInput-root{background-color:transparent!important}.read-only .MuiOutlinedInput-notchedOutline{border:none!important}.read-only .MuiInputBase-input{color:var(--app-text)!important;-webkit-text-fill-color:var(--app-text)!important;padding-left:8px!important}.read-only .MuiInputAdornment-root .MuiSvgIcon-root{color:var(--app-text-muted)}.profile-danger-zone{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-radius:14px;border:1px dashed var(--app-border-strong);background-color:var(--app-surface-alt)}.profile-danger-zone.is-danger{border-color:var(--app-danger);background-color:var(--app-danger-soft)}.profile-danger-zone.is-reactivate{border-color:var(--app-accent);background-color:var(--app-surface-alt)}.profile-danger-zone__text{display:flex;flex-direction:column;gap:4px;min-width:0}.profile-danger-zone__title{font-weight:600!important;color:var(--app-text)}.profile-danger-zone__subtitle{color:var(--app-text-muted)!important;font-size:.85rem!important}.profile-danger-zone__action{flex-shrink:0}.profile-section .MuiFormHelperText-root{margin-left:14px;margin-right:14px}.profile-section .Mui-error .MuiOutlinedInput-notchedOutline{border-color:var(--app-danger);border-width:2px}.profile-section .Mui-error .MuiFormHelperText-root{color:var(--app-danger)}@media (max-width: 768px){.profile-toolbar{padding:10px 12px;flex-direction:column;align-items:stretch}.profile-toolbar__status{justify-content:flex-start}.profile-toolbar__actions{width:100%;justify-content:stretch}.profile-toolbar__actions .MuiButton-root{flex:1 1 auto}.profile-section{padding:16px;border-radius:12px}.profile-section__divider{margin:12px -16px!important}.profile-section-header__icon{width:38px;height:38px}.profile-grid{grid-template-columns:1fr;gap:12px}.profile-grid__full{grid-column:1 / -1}.profile-danger-zone{flex-direction:column;align-items:stretch;text-align:left}.profile-danger-zone__action{width:100%}}@media (max-width: 420px){.profile-toolbar__hint{display:none}}
