.management-header { background: var(--hero-bg); color: white; }
.login-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; padding-top: 70px; padding-bottom: 80px; min-height: 65vh; }
.login-intro h1 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -1px; margin: 14px 0; line-height: 1.1; }
.login-intro > p:last-child { color: var(--muted); line-height: 1.7; }
.login-card { width: 100%; max-width: 440px; justify-self: end; background: white; border: 1px solid var(--border); border-radius: 14px; padding: 36px; box-shadow: 0 12px 30px #0000000d; }
.login-card > p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 24px; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 9px; }
.form-field input { width: 100%; min-height: 46px; border: 1px solid var(--border); border-radius: 8px; padding: 11px 13px; color: var(--text); background: white; }
.form-field input:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.login-card .primary { width: 100%; font-size: 14px; }
.login-back { display: block; text-align: center; color: var(--link); font-size: 13px; margin-top: 24px; }
.error-summary { color: #ac2032; background: #fff0f2; padding: 13px; font-size: 13px; border-radius: 8px; margin-bottom: 20px; }
.error-summary ul { margin: 0; padding-left: 18px; }
.field-error { color: #ac2032; font-size: 12px; }
.dashboard-shell { display: flex; min-height: 100vh; }
.dashboard-sidebar { background: var(--hero-bg); color: white; width: 260px; flex-shrink: 0; padding: 28px 20px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; }
.dashboard-sidebar .brand-logo { width: 220px; }
.sidebar-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #b7cce0; margin: 10px 12px 0; }
.dashboard-sidebar nav { display: flex; flex-direction: column; gap: 8px; }
.dashboard-sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 8px; font-size: 14px; }
.dashboard-sidebar nav a.active { background: var(--primary); font-weight: 700; }
.dashboard-sidebar nav a:hover { background: #ffffff18; }
.dashboard-sidebar nav a.active:hover { background: var(--link); }
.dashboard-sidebar nav span { font-size: 21px; }
.sidebar-logout { margin-top: auto; }
.sidebar-logout button { width: 100%; padding: 13px; border: 1px solid #ffffff50; border-radius: 8px; background: transparent; color: white; text-align: left; font-size: 13px; }
.dashboard-workspace { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dashboard-topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: white; border-bottom: 1px solid var(--border); padding: 22px 36px; font-size: 14px; }
.dashboard-user { color: var(--link); font-weight: 700; background: var(--blue-soft); border-radius: 20px; padding: 8px 16px; }
.dashboard-main { flex: 1; padding: 36px; max-width: 1400px; width: 100%; margin: 0 auto; }
.dashboard-stat { display: flex; align-items: center; gap: 20px; padding: 26px; background: white; border: 1px solid var(--border); border-radius: 14px; max-width: 360px; margin-bottom: 28px; }
.stat-icon { background: var(--blue-soft); color: var(--primary); font-size: 30px; border-radius: 12px; padding: 12px 18px; }
.dashboard-stat p { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.dashboard-stat strong { font-size: 34px; }
.dashboard-welcome { background: var(--hero-bg); color: white; border-radius: 14px; padding: 36px; }
.dashboard-welcome .eyebrow { color: var(--accent); }
.dashboard-welcome > p:not(.eyebrow) { line-height: 1.7; color: #c1d1df; }
.dashboard-welcome .primary { display: inline-flex; margin-top: 12px; }
.dashboard-footer { margin: 0 36px; justify-content: space-between; }
.dashboard-main .form-field { margin-bottom: 0; }
.dashboard-main .form-field input[type="checkbox"] { width: 20px; min-height: 20px; height: 20px; }
.dashboard-main .form-field select { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px; background: white; color: var(--text); }
.user-management .user-form-card { border-top: 4px solid var(--primary); }
.user-management .form-field input:not([type="checkbox"]), .user-management .form-field select { background: #fcfdff; transition: border-color .15s, box-shadow .15s; }
.user-management .form-field input:not([type="checkbox"]):focus, .user-management .form-field select:focus { border-color: var(--primary); outline: 2px solid var(--blue); outline-offset: 2px; background: white; }
.user-management .has-error input, .user-management .has-error select { border-color: #ac2032; }
.user-field-help { font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 8px; }
.user-field-help ul { padding-left: 18px; margin: 0; }
.user-active-field { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--blue-border); border-radius: 8px; background: var(--blue-soft); }
.user-management .user-active-field label { margin: 0; }
.user-management .user-active-field input { accent-color: var(--primary); margin: 0 0 0 auto; }
.user-status { display: inline-flex; padding: 6px 10px; border-radius: 18px; background: var(--blue-soft); color: var(--link); font-size: 12px; font-weight: 700; }
.user-status-inactive { background: var(--surface); color: var(--muted); }
.user-management .row-actions { flex-wrap: wrap; }
.user-details { padding: 20px; background: var(--surface); border-radius: 10px; line-height: 1.6; }
.user-cooperativa-field { grid-column: 1 / -1; }
.cooperativa-picker { border: 1px solid var(--blue-border); border-radius: 12px; padding: 14px; background: linear-gradient(135deg, var(--blue-soft), #f7fbff); }
.cooperativa-search { position: relative; margin-bottom: 10px; }
.cooperativa-search input { padding-right: 58px; }
.cooperativa-search > button { position: absolute; right: 5px; top: 5px; width: 38px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 6px; background: var(--primary); color: white; }
.cooperativa-search > button svg { width: 19px; height: 19px; }
.user-management .cooperativa-picker select { font-weight: 600; border-color: var(--blue-border); background-color: white; cursor: pointer; }
.user-management .form-actions { flex-wrap: wrap; }
.operations-filter { margin-bottom: 24px; }
.operations-filter form { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; }
.operations-filter .form-field { flex: 1 1 240px; }
.dashboard-sidebar { overflow-y: auto; }
@media (max-width: 760px) { .user-details { grid-template-columns: 1fr; gap: 6px; } .user-details dd { margin-bottom: 12px; } }
@media (prefers-reduced-motion: reduce) { .user-management .form-field input, .user-management .form-field select { transition: none; } }
@media (max-width: 1000px) { .dashboard-sidebar { width: 220px; padding: 22px 16px; } .dashboard-main { padding: 28px 22px; } .login-layout { gap: 32px; } }
@media (max-width: 760px) {
  .login-layout { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 40px; gap: 24px; }
  .login-card { justify-self: center; padding: 28px 22px; }
  .login-intro h1 { font-size: 32px; }
  .dashboard-sidebar { width: 160px; padding: 20px 10px; }
  .dashboard-sidebar nav a { padding: 12px 10px; gap: 8px; font-size: 12px; }
  .sidebar-label { margin-left: 8px; font-size: 10px; }
  .dashboard-topbar { padding: 16px; font-size: 12px; flex-wrap: wrap; }
  .dashboard-main { padding: 24px 16px; }
  .dashboard-main .management-heading h1 { font-size: 26px; }
  .dashboard-stat { padding: 18px; gap: 12px; flex-wrap: wrap; }
  .dashboard-welcome { padding: 24px 18px; }
  .dashboard-welcome h2 { font-size: 24px; }
  .dashboard-footer { margin: 0 16px; }
  .dashboard-main .list-heading { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .dashboard-sidebar { width: 125px; padding: 16px 8px; }
  .dashboard-sidebar nav a { flex-direction: column; align-items: flex-start; gap: 4px; }
  .sidebar-logout button { padding: 10px 8px; font-size: 11px; }
  .dashboard-main { padding: 20px 12px; }
  .dashboard-main .form-card { padding: 18px 12px; }
  .dashboard-main .card-heading { flex-wrap: wrap; }
  .dashboard-welcome .primary { white-space: normal; text-align: center; }
}
.user-icon-actions { gap:8px; flex-wrap:wrap; }
.row-actions.user-icon-actions a { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; padding:9px; border-radius:8px; }
.user-icon-actions svg { display:block; width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.user-icon-actions a:focus-visible { outline:2px solid var(--primary); outline-offset:3px; }
@media (min-width: 761px) {
  .user-management .user-password-field { grid-column: 1; align-self: start; }
  .user-management .user-password-confirm-field { grid-column: 2; align-self: start; }
}
.users-search { display:flex; align-items:flex-start; flex-wrap:wrap; gap:16px; padding:0 28px 24px; }
.users-search .form-field { flex:1 1 180px; margin:0; min-width:0; }
.users-search>button,.users-search>a { margin-top:25px; white-space:nowrap; }
@media (max-width:650px) { .users-search { padding:0 18px 20px; }.users-search .form-field { flex-basis:100%; }.users-search>button,.users-search>a { margin-top:0; } }
.cooperative-combobox { position:relative; }
.user-management .cooperative-combobox>input { padding-right:38px; }
.cooperative-toggle { position:absolute; top:1px; right:1px; width:36px; height:44px; border:0; background:transparent; color:var(--link); cursor:pointer; font-size:22px; }
.cooperative-options { position:absolute; top:calc(100% + 4px); left:0; right:0; z-index:20; max-height:240px; overflow-y:auto; border:1px solid var(--border); border-radius:8px; background:#fff; box-shadow:0 8px 24px #12233f26; }
.cooperative-options[hidden] { display:none; }
.cooperative-options button { display:block; width:100%; text-align:left; border:0; border-radius:0; background:#fff; color:var(--text); padding:11px 12px; cursor:pointer; font:inherit; font-size:13px; overflow-wrap:anywhere; }
.cooperative-options button:hover,.cooperative-options button.highlighted { background:var(--blue-soft); }
.cooperative-options button[aria-selected="true"] { font-weight:700; color:var(--link); }
.cooperative-options p { padding:12px; margin:0; font-size:12px; color:var(--muted); }
.users-list-card { overflow:visible; }
