/* Inicio BRILLEX: beige y burdeos, sin estilos sobre la web pública. */
body.admin-page { background: #f5efe5; color: #342b29; }
#admin-app .admin-sidebar { width: 240px; padding: 12px 0; background: linear-gradient(130deg,#f2eadb,#eee4d4); color: #342b29; border-right: 1px solid #e6dccd; }
#admin-app .admin-shell { margin-left: 240px; }
#admin-app .admin-brand { padding: 20px 12px 25px; text-align: center; flex-direction: column; gap: 9px; }
#admin-app .admin-brand img { width: 58px; height: 58px; object-fit: contain; }
#admin-app .admin-brand strong { font-family: Georgia,serif; color: #3f111a; font-size: 2.1rem; letter-spacing: .025em; }
#admin-app .admin-brand span { display: block; max-width: 175px; margin: 5px auto 0; color: #675a52; font-size: .8rem; line-height: 1.35; }
#admin-app .admin-sidebar nav { padding: 0 15px; margin-top: 8px; display: block; overflow-x: hidden; min-height: 0; flex: 1; }
#admin-app .admin-nav { display: flex; align-items: center; gap: 14px; background: transparent; color: #322c29; border-radius: 9px; padding: 13px 15px; margin-bottom: 7px; font-size: .88rem; font-weight: 400; text-align: left; width: 100%; }
#admin-app .admin-nav svg { width: 23px; height: 23px; flex: 0 0 23px; }
#admin-app .admin-nav.active { background: linear-gradient(120deg,#873143,#651325); color: #fffaf3; box-shadow: 0 3px 9px #6e20351a; }
#admin-app .admin-nav:hover { background: #e5d8c5; }
#admin-app .admin-nav.active:hover { background: #741c30; }
#admin-app .dash-more-nav { border-top: 1px solid #d8cbbc; margin-top: 12px; padding-top: 10px; }
#admin-app .dash-more-nav > summary { color: #7c6d63; padding: 12px 16px; cursor: pointer; font-size: .83rem; }
#admin-app .dash-nav-footer { border-top: 1px solid #d8cbbc; padding: 8px 15px 0; margin-top: 10px; flex-shrink: 0; }
#admin-app .admin-back { color: #675950; border-top: 1px solid #d8cbbc; margin: 12px 20px; }
#admin-app .admin-topbar { min-height: 74px; padding: 12px 30px; gap: 20px; background: #fcf9f3; border-bottom: 1px solid #e9dfd3; position: relative; z-index: 5; }
#admin-app #a-menu { display: none; border: 0; background: transparent; color: #74182b; padding: 8px; font-size: 1.2rem; }
#admin-app .admin-main { max-width: 1900px; padding: 24px 22px; margin: 0 auto; }
#admin-app svg { width: 22px; height: 22px; flex-shrink: 0; vertical-align: middle; }
.dash-sr-only { position: absolute!important; height: 1px!important; width: 1px!important; padding: 0!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }
.dash-global-search { flex: 1; max-width: 630px; position: relative; margin-right: auto; }
.dash-global-search label { display: flex; gap: 10px; align-items: center; background: #f2ece3; border-radius: 9px; padding: 0 13px; color: #8c7c6e; }
.dash-global-search input { width: 100%; border: 0; background: transparent; padding: 12px 0; color: #51443d; font: inherit; outline: none; }
#dash-search-results { position: absolute; top: 100%; left: 0; right: 0; max-height: 420px; overflow: auto; background: #fffdf8; border: 1px solid #e6d8c7; border-radius: 10px; box-shadow: 0 10px 30px #3f1c2020; z-index: 15; }
#dash-search-results[hidden] { display: none; }
#dash-search-results button { display: flex; gap: 14px; text-align: left; background: none; color: #392f2b; border: none; border-bottom: 1px solid #eee4d8; padding: 14px; width: 100%; cursor: pointer; }
#dash-search-results small { color: #8c2340; min-width: 52px; }
.dash-bell { background: none; border: 0; color: #3b282a; position: relative; cursor: pointer; padding: 9px; }
.dash-bell > span { background: #75182e; color: white; position: absolute; right: 0; top: 0; border-radius: 99px; font-size: .65rem; min-width: 17px; height: 17px; line-height: 17px; }
.dash-bell > span[hidden] { display: none; }
.dash-profile { position: relative; }
.dash-profile summary { display: flex; align-items: center; gap: 12px; list-style: none; cursor: pointer; }
.dash-profile summary > span { display: grid; place-items: center; background: #74182b; color: white; width: 39px; height: 39px; border-radius: 50%; font-size: .8rem; font-weight: 600; }
.dash-profile summary strong { display: block; font-size: .8rem; color: #481520; }
.dash-profile summary small { color: #75685f; font-size: .72rem; }
.dash-profile summary b { padding-left: 10px; font-size: 1.1rem; font-weight: 400; }
.dash-profile #a-logout { position: absolute; right: 0; top: 49px; white-space: nowrap; border: 1px solid #e2d4c5; background: #fffaf3; border-radius: 9px; padding: 13px; color: #74182b; cursor: pointer; box-shadow: 0 5px 15px #321a1a1a; }
.dash-home-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0 0 17px; }
.dash-home-heading h2 { font-family: Georgia,serif; color: #3d1019; font-size: 2.65rem; margin: 0; line-height: 1.1; }
.dash-home-heading p { margin: 6px 0 0; font-size: 1.05rem; color: #8b8277; }
.dash-home-heading > div:last-child { text-align: right; color: #74665c; font-size: .75rem; }
.dash-home-heading label { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 8px; }
.dash-home-heading input { border: 1px solid #e3d5c3; border-radius: 7px; padding: 6px 9px; background: #fffaf2; color: #6c4b43; font: inherit; }
.dash-home-grid { display: grid; grid-template-columns: minmax(0,1fr) 285px; gap: 15px; align-items: start; }
.dash-main-column, .dash-right-column { display: grid; gap: 15px; min-width: 0; }
.dash-financial-cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.dash-kpi { background: #fffcf7; border: 1px solid #eee6da; border-radius: 14px; padding: 18px 13px; display: flex; align-items: flex-start; gap: 11px; text-align: left; cursor: pointer; color: #342b29; min-width: 0; }
.dash-kpi-icon { display: grid; place-items: center; width: 49px; height: 54px; flex: 0 0 49px; border-radius: 13px; color: #831f35; background: #f6dfdc; }
.dash-kpi-icon.collected { background: #e0e9df; color: #426252; }
.dash-kpi-icon.sun { background: #fff2d6; color: #e1a126; }
.dash-kpi-icon.warning { background: #fbe8d9; color: #a83831; }
#admin-app .dash-kpi-icon svg { width: 28px; height: 28px; }
.dash-kpi-copy { min-width: 0; }
.dash-kpi-copy > span { font-size: .69rem; display: block; color: #6a5e56; margin-top: 3px; }
.dash-kpi-copy strong { display: block; color: #3f1520; font-family: Georgia,serif; font-size: clamp(1.35rem,1.8vw,1.9rem); margin: 5px 0 6px; white-space: nowrap; }
.dash-kpi-copy > small { display: block; font-size: .6rem; line-height: 1.4; color: #968b7d; }
.dash-kpi-comparison { margin-top: 7px; }
.dash-kpi-comparison span { display: block; color: #9b8e80; }
.dash-kpi-comparison.good { color: #469258!important; }
.dash-kpi-comparison.bad { color: #c05458!important; }
.dash-activity-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.dash-activity { background: #fffcf7; border: 1px solid #eee6da; border-radius: 14px; padding: 15px 17px; display: flex; gap: 19px; align-items: center; text-align: left; color: #51443d; cursor: pointer; }
.dash-activity > span:last-child { font-size: .75rem; }
.dash-activity strong { display: block; font-size: 1.9rem; line-height: 1.1; color: #4b1421; font-family: Georgia,serif; margin-top: 6px; }
.dash-panel { background: #fffcf7; border: 1px solid #eee5d8; border-radius: 14px; padding: 16px; box-shadow: 0 2px 8px #71543104; min-width: 0; }
.dash-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 13px; }
.dash-panel-head h3 { display: flex; gap: 10px; align-items: center; color: #42121e; font-family: Georgia,serif; font-size: 1.2rem; margin: 0; }
.dash-panel-head h3 svg { color: #811b31; }
.dash-panel-head > div { display: flex; align-items: center; gap: 12px; }
.dash-text-link, .dash-client-button, .dash-table-more { background: none; border: none; color: #7e2037; cursor: pointer; font: inherit; }
.dash-text-link { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: .72rem; }
#admin-app .dash-text-link svg { width: 16px; height: 16px; }
.dash-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #74182b; background: #74182b; color: white; border-radius: 9px; padding: 10px 15px; font: inherit; font-size: .78rem; cursor: pointer; text-decoration: none; }
#admin-app .dash-primary svg { width: 17px; height: 17px; }
.dash-service-list { display: grid; gap: 8px; }
.dash-service-row { display: flex; align-items: center; gap: 11px; border: 1px solid #e9dfd4; border-radius: 10px; padding: 11px 12px; background: #fdfaf6; }
.dash-service-time, .dash-service-house, .dash-service-open { background: none; border: none; text-align: left; color: #362627; padding: 0; cursor: pointer; }
.dash-service-time { flex: 0 0 67px; }
.dash-service-time strong { font-family: Georgia,serif; font-size: 1.2rem; color: #4a1220; }
.dash-service-time small, .dash-service-house small { display: block; font-size: .65rem; margin-top: 4px; color: #766a5f; }
.dash-service-house { display: flex; gap: 12px; align-items: center; flex: 1.4; min-width: 135px; }
.dash-service-house img, .dash-house-placeholder { width: 62px; height: 52px; border-radius: 6px; object-fit: cover; flex: 0 0 62px; }
.dash-house-placeholder { display: grid; place-items: center; background: #eee2d0; color: #9d7661; }
.dash-service-house b { display: block; font-size: .75rem; color: #263941; text-transform: uppercase; }
#admin-app .dash-service-house small svg { width: 13px; height: 13px; margin-right: 4px; }
.dash-service-people { border-left: 1px solid #e6dcd0; padding-left: 13px; flex: 1; min-width: 113px; display: grid; gap: 5px; }
.dash-service-people span { display: flex; align-items: center; gap: 8px; font-size: .65rem; color: #62564e; }
#admin-app .dash-service-people svg { width: 15px; height: 15px; }
.dash-status { background: #fff0ce; border-radius: 99px; padding: 3px 6px; max-width: 138px; }
.dash-status select { background: transparent; color: #8c5c12; border: none; font-size: .65rem; font-weight: 600; padding: 5px 1px; width: 100%; cursor: pointer; }
.dash-status.confirmed, .dash-status.reviewed { background: #e3f2da; }
.dash-status.confirmed select, .dash-status.reviewed select { color: #2f6249; }
.dash-status.in-progress { background: #ddedfb; }
.dash-status.in-progress select { color: #2d5b7c; }
.dash-status.incident { background: #f9dcda; }
.dash-service-open { padding: 5px 0; }
#admin-app .dash-service-open svg { width: 14px; height: 14px; }
.dash-row-menu { position: relative; }
.dash-row-menu summary { list-style: none; cursor: pointer; font-size: 1.25rem; padding: 4px; }
.dash-row-menu[open] { z-index: 3; }
.dash-row-menu[open] > button { display: block; position: relative; right: 0; white-space: nowrap; background: #fffaf3; border: 1px solid #e6d8c8; padding: 9px 12px; cursor: pointer; color: #742137; }
.dash-row-menu[open] { min-width: 150px; }
.dash-table-scroll { overflow-x: auto; }
.dash-debt-table { width: 100%; border-collapse: collapse; font-size: .71rem; }
.dash-debt-table th { font-weight: 400; color: #75665b; background: #f3ece1; padding: 8px 10px; text-align: left; white-space: nowrap; }
.dash-debt-table td { border-bottom: 1px solid #eee5da; padding: 9px 10px; white-space: nowrap; }
.dash-debt-table tr:last-child td { border-bottom: none; }
.dash-client-button { font-size: .71rem; font-weight: 600; color: #3f3d3b; padding: 0; }
.dash-pill { display: inline-block; background: #deedf6; color: #3c6277; border-radius: 99px; padding: 4px 13px; font-size: .65rem; }
.dash-pill.overdue { background: #f7d5d5; color: #a53747; }
.dash-pill.partial { background: #ffedba; color: #906111; }
.dash-overdue-date { color: #a73545; }
.dash-bottom-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 12px; }
.dash-bottom-grid .dash-panel-head h3 { font-size: 1.04rem; }
.dash-alert-list { display: grid; gap: 8px; }
.dash-alert-list button { display: flex; align-items: flex-start; gap: 9px; text-align: left; font-size: .7rem; line-height: 1.45; border: 0; background: none; color: #584b42; cursor: pointer; padding: 3px 0; }
.dash-alert-dot { width: 9px; height: 9px; flex: 0 0 9px; margin-top: 4px; border-radius: 50%; background: #e3ac1d; }
.dash-alert-dot.red { background: #c8404b; }
.dash-calendar { padding: 17px 16px; }
.dash-calendar > header { display: flex; align-items: center; justify-content: space-between; color: #471721; margin-bottom: 22px; }
.dash-calendar > header strong { font-size: .92rem; text-transform: capitalize; }
.dash-calendar > header button { background: none; border: 0; color: #4f2530; font-size: 1.7rem; cursor: pointer; padding: 1px 6px; }
.dash-weekdays, .dash-calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); text-align: center; }
.dash-weekdays { font-size: .68rem; color: #65594f; margin-bottom: 14px; }
.dash-calendar-grid { row-gap: 5px; }
.dash-calendar-grid button { height: 32px; width: 32px; position: relative; margin: auto; border: 0; border-radius: 50%; font-size: .72rem; background: transparent; color: #51443e; cursor: pointer; }
.dash-calendar-grid button.outside { color: #c6baac; }
.dash-calendar-grid button.today { box-shadow: inset 0 0 0 1px #b57982; }
.dash-calendar-grid button.selected { background: #791b31; color: white; box-shadow: none; }
.dash-calendar-grid i { position: absolute; width: 4px; height: 4px; border-radius: 50%; left: calc(50% - 2px); bottom: 2px; background: #af7c65; }
.dash-calendar-grid button.selected i { background: white; }
.dash-day-agenda { border-top: 1px solid #eadfd2; padding-top: 18px; margin-top: 20px; }
.dash-day-agenda h3 { font-family: Georgia,serif; font-size: 1.05rem; color: #471721; margin: 0 0 16px; }
.dash-day-agenda > button { display: flex; gap: 11px; align-items: flex-start; width: 100%; padding: 10px 0; background: none; border: 0; cursor: pointer; text-align: left; color: #382f2a; }
.dash-day-agenda i { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #d8aa24; margin-top: 5px; }
.dash-day-agenda i.confirmed { background: #5d8a69; }
.dash-day-agenda i.in-progress { background: #2d98cd; }
.dash-day-agenda time { font-size: .75rem; margin-top: 2px; }
.dash-day-agenda b { display: block; font-size: .73rem; text-transform: uppercase; }
.dash-day-agenda small { display: block; margin-top: 5px; font-size: .7rem; color: #7d6f62; }
.dash-calendar-full { width: 100%; display: flex; justify-content: center; align-items: center; gap: 13px; background: transparent; color: #742137; border: 1px solid #d7c3bc; border-radius: 10px; padding: 11px; margin-top: 18px; cursor: pointer; font-size: .72rem; }
#admin-app .dash-calendar-full svg { width: 17px; height: 17px; }
.dash-quick > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dash-quick > div > button { display: grid; gap: 9px; justify-items: center; align-content: center; min-height: 89px; padding: 12px 6px; color: #78243a; background: #fffcf7; border: 1px solid #eee2d5; border-radius: 10px; cursor: pointer; }
.dash-quick > div span { font-size: .7rem; color: #51453d; }
.gmail-wordmark b { font-family: Arial,sans-serif; color: #4285f4; font-size: 1.35rem; padding-right: 6px; }
.gmail-state { color: #817365; display: flex; gap: 7px; align-items: center; font-size: .68rem; margin-bottom: 8px; }
.gmail-dot { height: 7px; width: 7px; border-radius: 50%; background: #bda570; }
.gmail-dot.connected { background: #4e9462; }
.gmail-message { display: grid; grid-template-columns: 7px minmax(85px,.8fr) minmax(70px,1.2fr) auto; align-items: center; gap: 7px; color: #5e5147; border-bottom: 1px solid #eee3d6; text-decoration: none; padding: 8px 0; font-size: .66rem; }
.gmail-message-dot { width: 6px; height: 6px; border-radius: 50%; background: #b4b0a8; }
.gmail-message.unread .gmail-message-dot { background: #be3a48; }
.gmail-message strong { font-size: .66rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmail-message > span:nth-child(3) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmail-message time { color: #8d8176; font-size: .62rem; }
.gmail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.gmail-actions > button:not(.dash-primary), .gmail-actions > a { border: none; background: transparent; color: #81243a; font-size: .7rem; padding: 4px 0; cursor: pointer; text-decoration: none; }
.gmail-updated, .gmail-privacy { color: #8a7a6c; font-size: .65rem; line-height: 1.5; }
.dash-empty { color: #928170; font-size: .76rem; line-height: 1.55; padding: 13px 1px; margin: 0; }
.dash-source-error { background: #fff0d6; border: 1px solid #ead1a2; padding: 12px 15px; border-radius: 10px; color: #8a592e; font-size: .8rem; line-height: 1.5; }
.dash-source-error button { color: #7a1c33; background: none; border: 1px solid #d1afa0; border-radius: 6px; padding: 5px 8px; margin-left: 8px; cursor: pointer; }
.dash-directory > header { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 22px; }
.dash-directory h2 { font-family: Georgia,serif; color: #451721; margin: 0; font-size: 2rem; }
.dash-directory p { color: #857264; font-size: .85rem; line-height: 1.6; }
.dash-directory-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.dash-directory-grid h3 { font-family: Georgia,serif; color: #551b29; margin: 10px 0; }
.dash-directory-icon { color: #8c4250; }
.gmail-configuration { padding: 30px; max-width: 750px; color: #504034; background: #fffaf3; }
.gmail-configuration h2 { color: #571829; font-family: Georgia,serif; margin-top: 0; }
.gmail-configuration p, .gmail-configuration li { font-size: .88rem; line-height: 1.65; }
.gmail-configuration ol { padding-left: 22px; }
.gmail-configuration li { margin: 10px 0; }
.gmail-configuration code { overflow-wrap: anywhere; font-size: .8rem; }
.gmail-configuration form { display: grid; gap: 15px; margin-top: 20px; }
.gmail-configuration input { width: 100%; padding: 12px; border: 1px solid #dbcaba; border-radius: 8px; margin-top: 7px; font: inherit; }
.dash-gmail-full { max-width: 1150px; }
.dash-gmail-full .gmail-message { font-size: .9rem; padding: 15px 0; }
.dash-gmail-full .gmail-message strong, .dash-gmail-full .gmail-message time { font-size: .8rem; }
@media (max-width: 800px) {
  #admin-app .admin-sidebar { transform: translateX(-100%); transition: transform .2s; }
  #admin-app.menu-open .admin-sidebar { transform: translateX(0); }
  #admin-app #a-menu { display: block; }
}
@media (min-width: 1650px) { .dash-home-grid { grid-template-columns: minmax(0,1fr) 315px; } .dash-kpi { padding: 20px; } }
@media (max-width: 1250px) { .dash-home-grid { grid-template-columns: minmax(0,1fr) 255px; } .dash-kpi { flex-direction: column; padding: 12px; } .dash-kpi-icon { height: 42px; width: 42px; flex-basis: 42px; } .dash-service-people { display: none; } .dash-bottom-grid { grid-template-columns: 1fr; } }
@media (max-width: 1000px) { #admin-app .admin-sidebar { width: 215px; } #admin-app .admin-shell { margin-left: 215px; } .dash-home-grid { grid-template-columns: 1fr; } .dash-right-column { grid-template-columns: 1fr 1fr; } .dash-kpi { flex-direction: row; } .dash-directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 800px) { #admin-app .admin-sidebar { width: 240px; } #admin-app .admin-shell { margin-left: 0; } #admin-app .admin-topbar { padding: 12px 14px; gap: 8px; } #admin-app .admin-main { padding: 20px 14px; } .dash-profile summary > div, .dash-profile summary > b { display: none; } .dash-home-heading { align-items: start; } .dash-home-heading h2 { font-size: 2.1rem; } .dash-home-heading time { display: none; } .dash-kpi { padding: 13px; flex-direction: row; } .dash-financial-cards { grid-template-columns: 1fr 1fr; } .dash-service-row { gap: 8px; padding: 10px; flex-wrap: wrap; } .dash-service-house { min-width: 160px; } .dash-service-open { margin-left: auto; } .dash-service-time { flex-basis: 53px; } .dash-status { margin-left: 61px; } .dash-activity { gap: 10px; padding: 12px; } .dash-activity .dash-kpi-icon { display: none; } .dash-right-column { grid-template-columns: 1fr 1fr; } .dash-panel-head { flex-wrap: wrap; } .dash-home-heading label { flex-direction: column; align-items: flex-end; font-size: .65rem; } }
@media (max-width: 550px) { .dash-right-column, .dash-directory-grid { grid-template-columns: 1fr; } .dash-kpi-icon { width: 36px; height: 42px; flex-basis: 36px; } .dash-kpi-copy strong { font-size: 1.4rem; } .dash-kpi-copy > span { font-size: .65rem; } .dash-kpi-copy > small { font-size: .58rem; } .dash-directory > header { flex-direction: column; } .dash-panel { padding: 13px; } .dash-service-house img, .dash-house-placeholder { width: 49px; height: 46px; flex-basis: 49px; } .dash-panel-head h3 { font-size: 1.1rem; } .dash-global-search input { font-size: .75rem; } }
