/* Acabado visual compartido: superficies serenas, lectura y controles coherentes. */
:root {
  --spg-space-xs: 8px;
  --spg-space-sm: 12px;
  --spg-space-md: 16px;
  --spg-space-lg: 24px;
  --spg-space-xl: 32px;
  --spg-card-radius: 20px;
  --spg-control-radius: 12px;
  --spg-border: #dce3da;
  --spg-shadow: 0 4px 20px rgba(36, 51, 43, .035);
}
body { color: #24332b; background-color: #f5f6f2; }
p { line-height: 1.65; }
h1, h2, h3 { text-wrap: balance; }
:is(.employee-content, .workspace, .client-shell) :is(h1, h2, h3) { font-weight: 700; }
:is(.employee-heading, .workspace-heading) p { font-size: 14px; color: #59675f; line-height: 1.7; }
:is(.employee-heading, .workspace-heading) h1 { letter-spacing: -.035em; }
:is(.employee-card, .panel, .report-panel, .report-filter-panel, .account-profile, .employee-metric, .evidence-library-card) {
  min-width: 0;
  background: #fff;
  border-color: var(--spg-border);
  border-radius: var(--spg-card-radius);
  box-shadow: var(--spg-shadow);
}
:is(.employee-card-header, .panel-heading, .report-panel-heading) { gap: var(--spg-space-md); }
.employee-card-header { padding: 20px 24px; border-color: #e7ebe3; }
.employee-card h2 { font-size: 18px; font-weight: 700; }
.employee-card-header > span { font-size: 12px; color: #59675f; }
.employee-card-header h2 small { font-size: 12px; border-radius: 999px; padding: 4px 9px; }
.employee-card-bottom { padding: 14px 24px; font-size: 12px; background: #f5f6f2; color: #59675f; }
.employee-metric { padding: 24px; }
.employee-metric.primary { background: #24332b; color: #fff; border-color: #24332b; }
.employee-metric > small, .employee-metric p { font-size: 12px; }
.employee-metric > small { color: #59675f; }
.employee-metric strong { font-size: 30px; font-weight: 700; margin-block: 12px; }
.employee-metric.primary > small, .employee-metric.primary p { color: #deefa1; }
:is(.report-metrics strong, .timer-controls > strong, .daily-table, .report-table, .metric strong) { font-variant-numeric: tabular-nums; }
:is(.account-profile, .explanatory-card, .evidence-delivery) { padding: 24px; }
.account-profile h3 { margin-block: 16px 8px; }
.account-profile > p { margin-block: 8px; font-size: 14px; }
.account-profile > small { font-size: 12px; color: #59675f; }
.account-profile details { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e7ebe3; }
.account-profile details form { margin-top: 16px; }
.account-profile summary { font-size: 14px; font-weight: 600; }
.account-profile-top { gap: 12px; }
.report-person { background: #fff; border-radius: 20px; padding: 20px; gap: 8px; }
.daily-employee { border-radius: 20px; }
.employee-shell .report-day:hover, .employee-shell .report-day:focus-visible { background: #eef3e7; color: #24332b; }
.employee-shell .report-day small { color: #59675f; }
.report-person p { font-size: 14px; color: #59675f; }
.report-person.selected { background: #e8eedf; border-color: #8f9f86; }
.report-filter-panel { background: #f8faf5; }
.report-note, .report-filter-status { color: #59675f; line-height: 1.65; }
.employee-shell .daily-table { font-size: 13px; }
.employee-shell .daily-table th { font-size: 12px; font-weight: 700; letter-spacing: .025em; color: #59675f; background: #f5f6f2; }
.employee-shell .daily-table td small { font-size: 12px; color: #59675f; }
:is(.daily-table, .report-table) :is(th, td) { padding: 16px; border-color: #e7ebe3; }
.task-fields label { font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.task-fields :is(input, select, textarea) { font-size: 14px; padding: 12px; }
.timer-controls > small, .timer-controls p { font-size: 12px; color: #59675f; }
.timer-controls .actions { gap: 12px; }
:is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea) {
  border-radius: var(--spg-control-radius);
  border-color: #c6d0c4;
  color: #24332b;
  transition: border-color .2s ease, background-color .2s ease;
}
:is(input, textarea)::placeholder { color: #68756c; opacity: 1; }
:is(.button, button:not(.report-day):not(.report-person):not(.daily-employee):not([data-day]):not([data-person])) {
  border-radius: 999px;
  font-weight: 650;
}
.timer-controls .button { border-radius: 999px; font-size: 13px; padding: 11px 16px; }
.sidebar-bottom form > button { border-radius: 999px; font-size: 13px; padding: 12px 16px; background: #405b3d; border-color: #698064; color: #fff; }
.button { transition: color .22s ease, background-color .22s ease, border-color .22s ease; }
.button:not(.outline):not(.light):hover { background: #3b5141; border-color: #3b5141; color: #fff; }
.button.outline:hover { background: #e8eedf; border-color: #a5b49e; color: #24332b; }
.button.light:hover { background: #e7f4bb; color: #24332b; }
:is(a, button, input, select, textarea, summary, [role=button]):focus-visible { outline: 3px solid #71895e; outline-offset: 3px; }
:is(.employee-shell, .client-shell) :is(a, button):hover { text-decoration: none; }
.employee-topbar { background: rgba(245, 246, 242, .94); color: #59675f; font-size: 13px; }
.employee-topbar b { font-weight: 700; }
.employee-topbar > small { font-size: 12px; }
.employee-sidebar nav a { font-size: 13px; border-radius: 12px; padding: 12px 14px; }
.employee-sidebar nav a.active { background: #deefa1; color: #24332b; }
.employee-sidebar nav a:not(.active):hover { background: #35493b; }
.employee-notice { background: #e8eedf; color: #354c39; font-size: 14px; border-radius: 16px; padding: 16px 20px; }
.site-navigation { background: rgba(245, 246, 242, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: #dce3da; }
.service-card { border-radius: 20px; border-color: #dce3da; box-shadow: var(--spg-shadow); }
.service-card h3 { font-weight: 700; line-height: 1.35; }
.service-card p { line-height: 1.75; }
.service-card-top { margin-bottom: 24px; }
.service-subtitle { line-height: 1.5; }
.service-icon { border-radius: 12px; }
.contact-banner { border-radius: 24px; }
.contact-banner p { line-height: 1.7; }
.public-footer { background: #f0f3eb; }
/* La información documental permanece opaca y fácil de recorrer. */
:is(.ticket-compose-panel, .ticket-list-panel, .ticket-reply-panel, .ticket-message, .evidence-library-card, .contact-form) {
  border-radius: 20px;
  border-color: var(--spg-border);
  background: #fff;
  box-shadow: var(--spg-shadow);
}
.ticket-message.own-message { background: #f1f5e9; }
.ticket-row { border-radius: 16px; border-color: var(--spg-border); }
.ticket-row:hover, .inbox-drawer-item:hover { background-color: #f1f5e9; }
.ticket-message-heading { gap: 12px; }
.ticket-message-body { line-height: 1.7; }
.ticket-attachments { gap: 12px; }
.ticket-form input[type=file]::file-selector-button, .evidence-file-input::file-selector-button { border-radius: 999px; }
.evidence-card-content { padding: 20px; }
.evidence-card-meta { gap: 12px; color: #59675f; }
.evidence-card-meta small, .evidence-card-meta span { font-size: 12px; }
.contact-form :is(label, input, select, textarea), .access-form-surface :is(label, input, textarea) { font-size: 14px; }
.contact-form p, .access-form-surface p { line-height: 1.7; }
:is(.table-scroll, .report-table-scroll, .inbox-drawer, .report-day-dialog) { scrollbar-width: thin; scrollbar-color: #b8c4b2 #f5f6f2; }
:is(.table-scroll, .report-table-scroll, .inbox-drawer, .report-day-dialog)::-webkit-scrollbar { width: 8px; height: 8px; }
:is(.table-scroll, .report-table-scroll, .inbox-drawer, .report-day-dialog)::-webkit-scrollbar-thumb { background: #b8c4b2; border-radius: 999px; border: 2px solid #f5f6f2; }
@media (max-width: 760px) {
  .employee-card-header { padding: 16px; }
  .employee-card-bottom { padding: 12px 16px; }
  .employee-metric { padding: 16px 12px; }
  .employee-metric strong { font-size: 24px; }
  .employee-metric > small, .employee-metric p { font-size: 12px; }
  .employee-sidebar nav a { font-size: 13px; }
  :is(.account-profile, .explanatory-card, .evidence-delivery) { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .button, input, select, textarea { transition: none; }
}
/* Acciones suaves: sin subrayados animados en ninguna pantalla. */
a[href], .service-card h3, .service-card .card-link > span {
  text-decoration: none;
  transition: color .22s ease, background-color .22s ease, border-color .22s ease;
}
.site-navigation nav a.selected { border-bottom-color: transparent; }
.button { min-height: 44px; }
.employee-sidebar { scrollbar-width: thin; scrollbar-color: #698064 #24332b; }
a[href]:not(.service-card), .service-card h3, .service-card .card-link > span {background-image:none!important;text-decoration:none!important;transition:color .22s ease,background-color .22s ease,border-color .22s ease!important;}
/* Las tarjetas completas son enlaces: ninguno de sus textos lleva subrayado. */
.home-page a.service-card,
.home-page a.service-card *,
.home-page a.service-card:is(:hover, :focus-visible, :active),
.home-page a.service-card:is(:hover, :focus-visible, :active) * {
  text-decoration: none !important;
  background-image: none !important;
}
.home-page a.service-card,
.home-page a.service-card h3,
.home-page a.service-card .card-link > span {
  transition: color .22s ease, background-color .22s ease, border-color .22s ease !important;
}
/* Bordes suaves señalan contenido fuera de vista sin mostrar barras. */
* { scrollbar-width: none !important; }
*::-webkit-scrollbar { display: none !important; width: 0; height: 0; }
.scroll-edge-fade {
  -webkit-mask-image: linear-gradient(to bottom,rgba(0,0,0,var(--scroll-top-alpha,1)),#000 18px,#000 calc(100% - 18px),rgba(0,0,0,var(--scroll-bottom-alpha,1))),linear-gradient(to right,rgba(0,0,0,var(--scroll-left-alpha,1)),#000 18px,#000 calc(100% - 18px),rgba(0,0,0,var(--scroll-right-alpha,1)));
  mask-image: linear-gradient(to bottom,rgba(0,0,0,var(--scroll-top-alpha,1)),#000 18px,#000 calc(100% - 18px),rgba(0,0,0,var(--scroll-bottom-alpha,1))),linear-gradient(to right,rgba(0,0,0,var(--scroll-left-alpha,1)),#000 18px,#000 calc(100% - 18px),rgba(0,0,0,var(--scroll-right-alpha,1)));
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.page-scroll-cue { position:fixed;right:0;height:18px;pointer-events:none;z-index:45; }
.page-scroll-cue[hidden] { display:none; }
.page-scroll-cue-top { background:linear-gradient(to bottom,#f5f6f2,transparent); }
.page-scroll-cue-bottom { bottom:0;background:linear-gradient(to top,#f5f6f2,transparent); }
@media(forced-colors:active) { * {scrollbar-width:auto!important;} .scroll-edge-fade {mask-image:none;-webkit-mask-image:none;} .page-scroll-cue {display:none;} }
.client-support-companies{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.client-support-placeholder{margin-top:24px}.client-support-placeholder>p{font-size:14px;line-height:1.7;color:#526258;max-width:740px}

/* Los grupos conservan su orden y su altura natural en el menú responsive. */
.employee-sidebar nav .sidebar-navigation-group{display:flex;flex-direction:column;flex:0 0 auto;width:100%;gap:6px}
@media(max-width:760px){
.employee-sidebar nav{flex-direction:column;flex-wrap:nowrap;align-items:stretch}
.employee-sidebar nav>a,.employee-sidebar nav .sidebar-navigation-group{width:100%;flex:0 0 auto}
.employee-sidebar nav a{white-space:normal;min-width:0;min-height:46px;justify-content:flex-start}
.employee-sidebar .sidebar-tools>a{margin-top:0}
.employee-sidebar .sidebar-tools>span{margin-bottom:4px}
}

.employee-shell .floating-timer{bottom:calc(92px + env(safe-area-inset-bottom,0px))}


.employee-sidebar>nav{order:0}.employee-sidebar>.sidebar-tools,.employee-sidebar>.sidebar-bottom{order:0}

