/* Tema BAN sobre Bootstrap. Los archivos del framework se sirven localmente. */
:root {
  --bs-primary: #285c45;
  --bs-primary-rgb: 40, 92, 69;
  --bs-body-color: #243c33;
  --bs-body-bg: #f5f6f3;
  --bs-border-color: #e5e9e2;
  --bs-border-radius: .7rem;
  --bs-link-color: #285c45;
  --bs-link-hover-color: #193e2e;
  --bs-success: #346e46;
  --bs-success-rgb: 52, 110, 70;
}
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 46px; padding: 11px 17px; font-size: .85rem; font-weight: 600; border-radius: 10px; white-space: nowrap; text-decoration: none; }
.btn-primary { --bs-btn-color: #fff; --bs-btn-bg: #285c45; --bs-btn-border-color: #285c45; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #1c4734; --bs-btn-hover-border-color: #1c4734; --bs-btn-active-bg: #173c2b; --bs-btn-active-border-color: #173c2b; --bs-btn-disabled-bg: #285c45; --bs-btn-disabled-border-color: #285c45; --bs-btn-focus-shadow-rgb: 90, 133, 88; }
.btn-outline-secondary { --bs-btn-color: #52634c; --bs-btn-border-color: #dbe2d4; --bs-btn-hover-color: #285c45; --bs-btn-hover-bg: #edf2e6; --bs-btn-hover-border-color: #bdceb0; --bs-btn-active-bg: #e7efdf; --bs-btn-active-color: #285c45; --bs-btn-active-border-color: #b4c6a6; --bs-btn-focus-shadow-rgb: 90, 133, 88; background: #fff; }
.btn-light { --bs-btn-bg: #edf2e6; --bs-btn-border-color: #edf2e6; --bs-btn-hover-bg: #e3ecd9; --bs-btn-color: #285c45; --bs-btn-hover-color: #285c45; }
.btn-sm { min-height: 44px; padding: 9px 13px; font-size: .78rem; }
.form-control, .form-select { min-height: 50px; border-color: #dce2d7; border-radius: 10px; font-size: 16px; color: var(--ink); }
.form-control:focus, .form-select:focus { border-color: #92ac81; box-shadow: 0 0 0 .2rem #7091541a; }
.form-label { margin: 0; color: #53634d; font-size: .79rem; font-weight: 600; }
.form-text { margin: 0; }
.form-check-input:checked { background-color: var(--green); border-color: var(--green); }
.form-check-input:focus { border-color: #92ac81; box-shadow: 0 0 0 .2rem #7091541a; }
.form-check-input { min-height: 0; padding: 0; }
.alert-success { --bs-alert-color: #365c37; --bs-alert-bg: #edf4e5; --bs-alert-border-color: #d7e6c7; color: #365c37; background: #edf4e5; border-color: #d7e6c7; }
.alert .btn-close { min-width: 44px; min-height: 44px; box-sizing: border-box; top: 50%; transform: translateY(-50%); padding: 15px; background-size: 11px; }
.alert-dismissible { padding-right: 50px; }
.badge { font-weight: 500; line-height: 1.55; }
.user-summary { margin-bottom: 26px; }
.summary-card { padding: 21px 22px; display: flex; flex-direction: row; align-items: center; gap: 16px; border-color: var(--line); border-radius: 14px; background: #fcfdfb; box-shadow: 0 2px 4px #243c3302; }
.summary-icon { display: grid; flex-shrink: 0; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: #698653; background: #edf2e5; }
.summary-card > div { display: flex; flex-direction: column; }
.summary-label { font-size: .73rem; color: #718067; }
.summary-value { font-size: 1.8rem; letter-spacing: -.05em; font-weight: 600; line-height: 1.4; }
.summary-detail { font-size: .66rem; color: #8c9684; }
.users-heading { margin-bottom: 25px; }
.users-heading h1 { margin-bottom: 10px; }
.users-heading .muted { margin-bottom: 0; }
.users-card { border-color: var(--line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 3px 10px #243c3303; }
.directory-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 25px 26px 20px; }
.directory-heading h2 { font-size: 1.05rem; font-weight: 600; margin: 0 0 5px; }
.directory-heading p { color: #7d8974; font-size: .8rem; margin: 0; }
.directory-count { font-size: .7rem; color: #6c7e60; padding: 5px 11px; background: #f1f5eb; border: 1px solid #e8eddf; border-radius: 30px; white-space: nowrap; }
.users-filters { display: grid; grid-template-columns: minmax(180px, 1.6fr) minmax(135px, 1fr) minmax(140px, 1fr) 92px auto; gap: 13px; align-items: end; padding: 0 26px 25px; }
.users-filters > .filter-search { display: grid; gap: 8px; }
.users-filters .form-control, .users-filters .form-select { min-height: 46px; font-size: .8rem; padding-top: 10px; padding-bottom: 10px; }
.users-filters .form-select { padding-right: 30px; }
.users-filters .input-group-text { border-color: #dce2d7; border-radius: 10px 0 0 10px; background: #fff; color: #8b9a7f; padding: 10px 12px; border-right: 0; }
.users-filters .input-group .form-control { padding-left: 0; border-left: 0; }
.users-filters .input-group:focus-within { border-radius: 10px; box-shadow: 0 0 0 .2rem #7091541a; }
.users-filters .input-group:focus-within .form-control { box-shadow: none; }
.filter-actions { display: flex; align-items: center; gap: 6px; }
.filter-actions .btn { margin: 0; padding: 10px 13px; min-height: 46px; font-size: .78rem; }
.clear-filters { width: 44px; padding: 0 !important; }
.users-table { --bs-table-bg: #fff; --bs-table-color: #52634a; --bs-table-hover-bg: #f7f9f3; --bs-table-hover-color: #243c33; margin: 0; font-size: .83rem; }
.users-table > thead > tr > th { background: #f8faf5; color: #7b896f; font-size: .65rem; letter-spacing: .055em; text-transform: uppercase; font-weight: 600; padding: 16px 26px; border-top: 1px solid var(--line); border-bottom-color: var(--line); }
.users-table > tbody > tr > td { padding: 17px 26px; border-color: #edf0e8; }
.users-table tbody tr:last-child td { border-bottom: 0; }
.user-identity { min-width: 230px; }
.user-identity > .user-avatar { vertical-align: middle; }
.user-avatar { display: inline-grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; background: #eaf0e1; color: #708857; border: 1px solid #e2e9d8; border-radius: 13px; font-size: .72rem; font-weight: 650; }
.user-details { display: inline-flex; flex-direction: column; vertical-align: middle; max-width: 280px; margin-left: 13px; gap: 3px; }
.user-details > strong { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: #2e4433; white-space: normal; overflow-wrap: anywhere; }
.user-handle { color: #849279; font-size: .73rem; overflow-wrap: anywhere; white-space: normal; }
.self-label { font-size: .57rem; color: #70845c; background: #f0f4e8; border: 1px solid #e3ebd7; border-radius: 5px; padding: 1px 5px; font-weight: 500; }
.role-label { display: inline-flex; align-items: center; gap: 7px; color: #6c7d60; font-size: .77rem; }
.role-label > .icon { color: #91a081; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 7px; font-size: .68rem; font-weight: 550; border: 1px solid transparent; }
.status-active { background: #edf5e5; color: #567c3d; border-color: #e3eed7; }
.status-inactive { background: #f2f3f0; color: #7d8575; border-color: #e7e9e1; }
.status-dot { width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.users-table td a.btn { padding: 9px 13px; color: #5d7550; }
.directory-footer { padding: 20px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); background: #fcfdfb; }
.directory-footer > p { font-size: .73rem; color: #8a9681; margin: 0; }
.directory-footer strong { font-weight: 550; color: #627653; }
.pagination { --bs-pagination-color: #6e815f; --bs-pagination-bg: #fff; --bs-pagination-border-color: #e1e7d9; --bs-pagination-hover-color: #285c45; --bs-pagination-hover-bg: #eef3e6; --bs-pagination-hover-border-color: #c9d6bd; --bs-pagination-active-bg: #285c45; --bs-pagination-active-border-color: #285c45; --bs-pagination-disabled-bg: #f5f7f1; --bs-pagination-disabled-color: #bdc6b3; --bs-pagination-disabled-border-color: #e8ecdf; --bs-pagination-focus-color: #285c45; --bs-pagination-focus-bg: #eef3e6; --bs-pagination-focus-box-shadow: 0 0 0 .2rem #7091541a; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.page-link { display: grid; place-items: center; min-width: 42px; min-height: 44px; padding: 8px 12px; border-radius: 8px !important; font-size: .77rem; }
.pagination .page-item:not(:first-child) .page-link { margin-left: 0; }
.empty-state { padding: 54px 25px; border-top: 1px solid var(--line); display: grid; justify-items: center; text-align: center; }
.empty-state-icon { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 22px; background: #f0f4e9; color: #9aae88; margin-bottom: 20px; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 9px; }
.empty-state p { font-size: .85rem; color: #8a977f; max-width: 300px; margin-bottom: 22px; }
.user-form { padding: 28px; max-width: 710px; border-radius: 16px; border-color: var(--line); gap: 22px; }
.form-section-heading { display: flex; gap: 14px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.form-section-heading h2 { font-size: 1rem; margin: 0 0 4px; }
.form-section-heading p { font-size: .78rem; color: #87937c; margin: 0; }
.account-switch { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px; background: #f8faf5; border: 1px solid #e7eddf; border-radius: 10px; }
.account-switch p { margin: 5px 0 0; font-size: .76rem; color: #839178; }
.account-switch .form-check { margin: 0; min-height: auto; }
.account-switch .form-check-input { min-width: 44px; height: 24px; margin-top: 0; cursor: pointer; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; }
.back { gap: 8px; text-decoration: none; color: #788a6a; }
@media (max-width: 1199px) { .users-filters { grid-template-columns: minmax(140px, 1fr) minmax(130px, 1fr) 95px auto; } .filter-search { grid-column: 1 / -1; } .summary-card { padding: 17px; gap: 12px; } .summary-detail { display: none; } .summary-icon { width: 39px; height: 39px; } .summary-label { font-size: .67rem; } .users-table > tbody > tr > td, .users-table > thead > tr > th { padding-left: 20px; padding-right: 20px; } }
@media (max-width: 900px) { .users-filters { grid-template-columns: 1fr 1fr; } .filter-search { grid-column: 1 / -1; } .filter-size { max-width: 100%; } .filter-actions .btn-primary { flex: 1; } .summary-card { display: block; } .summary-card .summary-icon { display: none; } .directory-footer { flex-direction: column; align-items: flex-start; } .directory-footer nav { align-self: flex-end; } }
@media (max-width: 600px) {
  .users-heading { align-items: flex-start; gap: 20px; }
  .users-heading > .btn { width: 100%; }
  .user-summary { --bs-gutter-x: 10px; --bs-gutter-y: 10px; margin-bottom: 22px; }
  .user-summary > div { width: 33.33333%; }
  .summary-card { padding: 14px 11px; border-radius: 11px; }
  .summary-label { font-size: .62rem; min-height: 30px; line-height: 1.4; }
  .summary-value { font-size: 1.65rem; }
  .directory-heading { padding: 20px 18px; }
  .directory-heading h2 { font-size: 1rem; }
  .directory-heading p { font-size: .72rem; }
  .directory-count { font-size: .62rem; padding: 4px 8px; }
  .users-filters { padding: 0 18px 22px; gap: 14px 12px; }
  .users-filters .form-control, .users-filters .form-select { font-size: 16px; min-height: 48px; }
  .filter-actions .btn { min-height: 48px; }
  .users-table-wrap { padding: 16px 14px; background: #f7f9f3; border-top: 1px solid var(--line); overflow: visible; }
  .users-table, .users-table tbody { display: block; width: 100%; }
  .users-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .users-table tbody { display: grid; gap: 13px; }
  .users-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #e0e7d7; border-radius: 12px; background: white; overflow: hidden; }
  .users-table > tbody > tr > td { display: block; border: 0; padding: 12px 16px; background: none; box-shadow: none; }
  .users-table > tbody > tr > td.user-identity { grid-column: 1 / -1; padding: 17px 16px 14px; display: flex; align-items: center; min-width: 0; border-bottom: 1px solid #f0f3e9; }
  .user-details { margin-left: 12px; max-width: calc(100% - 54px); }
  .user-details > strong { font-size: .88rem; }
  .user-handle { font-size: .75rem; }
  .users-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 8px; font-size: .62rem; color: #8c997e; }
  .users-table > tbody > tr > td.user-actions { grid-column: 1 / -1; padding: 4px 16px 16px; }
  .users-table .user-actions .btn { width: 100%; min-height: 46px; }
  .role-label { font-size: .74rem; gap: 5px; }
  .status-pill { font-size: .7rem; }
  .directory-footer { padding: 18px; gap: 16px; align-items: center; }
  .directory-footer nav { align-self: center; max-width: 100%; }
  .pagination { justify-content: center; gap: 4px; }
  .page-link { min-width: 36px; min-height: 44px; padding: 7px 9px; }
  .user-form { padding: 22px 18px; }
  .form-actions { display: grid; grid-template-columns: 1fr; }
  .form-actions > button { grid-row: 1; }
  .account-switch { padding: 15px; }
  .form-section-heading { gap: 10px; }
}
@media (max-width: 359px) { .directory-heading { align-items: flex-start; } .directory-count { display: none; } .users-filters { grid-template-columns: 1fr; } .filter-search { grid-column: auto; } .pagination { gap: 3px; } .page-link { min-width: 30px; padding: 6px; } }
.form-control, .form-select { background-color: #fff; }
.mobile-page-info { display: none; }
@media (max-width: 600px) {
  .directory-footer nav { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; }
  .mobile-page-info { display: block; color: #738366; font-size: .7rem; }
  .pagination .page-item:not(:first-child):not(:last-child):not(.active) { display: none; }
}
.users-filters .filter-toggle { display: none; }
.users-filters .filter-options, .users-filters .filter-options.collapse:not(.show) { display: contents; }
.filter-options > div { display: grid; gap: 8px; }
@media (max-width: 600px) {
  .users-filters .filter-search { order: 0; }
  .users-filters .filter-toggle { display: inline-flex; order: 1; min-height: 48px; }
  .users-filters .filter-actions { order: 1; }
  .users-filters .filter-options { grid-column: 1 / -1; order: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .users-filters .filter-options.collapse:not(.show) { display: none; }
  .users-filters .form-select { padding-left: 12px; padding-right: 26px; }
  .users-filters .filter-options > .filter-size { grid-column: 1 / -1; }
}
@media (max-width: 359px) { .users-filters .filter-options { grid-template-columns: 1fr; } }
@media (min-width: 601px) and (max-width: 991px) {
  .users-table > tbody > tr > td, .users-table > thead > tr > th { padding-left: 12px; padding-right: 12px; }
  .users-table .user-identity { min-width: 180px; }
  .users-table .user-avatar { width: 36px; height: 36px; border-radius: 10px; }
  .users-table .user-details { max-width: 110px; margin-left: 10px; }
  .users-table .role-label { font-size: .72rem; }
  .users-table .role-label .icon { display: none; }
  .users-table .status-pill { font-size: .65rem; padding: 5px 8px; }
  .users-table td a.btn { padding: 8px 10px; font-size: .73rem; }
}
.card { --bs-card-bg: #fff; }
