/* Estilos compartidos de GMT. Las reglas operativas se mantienen en sus módulos. */
:root {
  --gmt-ink: #17283c; --gmt-muted: #657587; --gmt-primary: #183b5d;
  --gmt-canvas: #f4f6f8; --gmt-surface: #fff; --gmt-line: #e3e9ee;
  --gmt-sidebar: 245px; --gmt-topbar: 72px; --gmt-radius: 10px;
}
.sisadmin-app { margin: 0; background: var(--gmt-canvas); color: var(--gmt-ink); font-family: "Segoe UI", system-ui, sans-serif; font-size: 14px; line-height: 1.5; }
.sisadmin-app [hidden] { display: none !important; }
.sisadmin-app :is(button, a, input, select, textarea):focus-visible { outline: 3px solid #789bbd; outline-offset: 3px; }
.sisadmin-app .btn { border-radius: 6px; font-size: 13px; font-weight: 600; padding: 8px 13px; }
.sisadmin-app .btn-primary { --bs-btn-bg: #183b5d; --bs-btn-border-color: #183b5d; --bs-btn-hover-bg: #102e4b; --bs-btn-hover-border-color: #102e4b; --bs-btn-disabled-bg: #183b5d; --bs-btn-disabled-border-color: #183b5d; }
.sisadmin-app .form-control, .sisadmin-app .form-select { border-color: #d9e2ea; border-radius: 6px; font-size: 13px; min-height: 38px; }
.sisadmin-app .form-control:focus, .sisadmin-app .form-select:focus { border-color: #789bbd; box-shadow: 0 0 0 .18rem #789bbd26; }
.gmt-muted { color: var(--gmt-muted); }
.gmt-eyebrow { margin: 0 0 9px; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; color: #687c8e; }
.gmt-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gmt-field label { color: #4f6578; font-size: 12px; font-weight: 500; }
.gmt-field label > input { margin-top: 8px; }
.gmt-field small { font-size: 11px; }
.gmt-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #67af95; flex-shrink: 0; }

/* Navegación permanente, compatible con las ventanas de Bootstrap. */
.gmt-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--gmt-sidebar); z-index: 1062; display: flex; flex-direction: column; background: #142c44; color: #c1cedb; }
.gmt-brand { display: flex; align-items: center; gap: 12px; margin: 28px 24px 24px; padding: 0; background: transparent; border: 0; color: inherit; text-align: left; }
.gmt-brand img { padding: 2px; background: #fff; border-radius: 5px; object-fit: contain; }
.gmt-brand strong { display: block; font-size: 20px; color: #fff; letter-spacing: 2px; line-height: 1.2; }
.gmt-brand small { display: block; font-size: 10px; margin-top: 4px; }
.gmt-workspace-label { display: flex; align-items: center; gap: 8px; border: 1px solid #3d5165; border-radius: 7px; padding: 11px; margin: 0 20px 20px; font-size: 11px; }
.gmt-sidebar > nav { padding: 0 12px; overflow: auto; flex: 1; }
.gmt-nav-home { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; border-radius: 6px; background: transparent; color: inherit; text-align: left; padding: 12px; font-size: 13px; }
.gmt-nav-section { margin: 23px 12px 10px; color: #a7b9ca; font-size: 9px; font-weight: 600; letter-spacing: 1.3px; }
#menusapp ul { list-style: none; padding: 0; margin: 0; }
#menusapp a { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border-radius: 6px; color: #c1cedb; text-decoration: none; font-size: 13px; line-height: 1.4; }
#menusapp a > .gmt-menu-chevron { margin-left: auto; font-size: 9px; }
#menusapp a[aria-expanded="true"] > .gmt-menu-chevron { transform: rotate(90deg); }
#menusapp a:hover, #menusapp a.active, .gmt-nav-home:hover { background: #2b465f; color: white; }
#menusapp a.active { box-shadow: inset 3px 0 #9dbbd5; }
#menusapp a[aria-disabled="true"] { color: #8fa2b5; cursor: default; }
#menusapp .gmt-submenu { padding-left: 12px; border-left: 1px solid #3d5165; margin-left: 17px; }
#menusapp .gmt-submenu a { font-size: 12px; padding: 9px 10px; }
#menusapp .gmt-client-search { margin: 18px 8px; }
#menusapp .gmt-client-search label { font-size: 11px; display: block; margin-bottom: 8px; }
#menusapp .gmt-client-search input { width: 100%; background: #203b54; color: white; border-color: #3d5165; }
#menusapp .gmt-client-search input::placeholder { color: #b0c0cf; }
.gmt-nav-loading { padding: 12px; font-size: 12px; }
.gmt-sidebar-bottom { padding: 19px 24px; font-size: 11px; border-top: 1px solid #30485f; }
.gmt-sidebar-bottom small { display: block; margin-top: 4px; color: #a7b9ca; font-size: 10px; }
.gmt-topbar { position: fixed; top: 0; left: var(--gmt-sidebar); right: 0; height: var(--gmt-topbar); z-index: 1061; background: #fff; border-bottom: 1px solid var(--gmt-line); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; }
.gmt-topbar-start { display: flex; align-items: center; gap: 9px; color: var(--gmt-muted); font-size: 12px; }
.gmt-icon-button { border: 0; background: transparent; color: #3e586d; min-width: 40px; min-height: 40px; border-radius: 6px; font-size: 22px; }
#gmt-nav-toggle { display: none; }
.gmt-account-area { display: flex; align-items: center; gap: 22px; position: relative; }
.gmt-session-status { display: flex; align-items: center; gap: 7px; color: #526978; font-size: 11px; }
.gmt-user-button { display: flex; align-items: center; gap: 10px; border: 0; border-left: 1px solid var(--gmt-line); padding: 0 0 0 20px; color: var(--gmt-ink); background: transparent; text-align: left; }
.gmt-user-button > i { font-size: 10px; color: #708698; }
.gmt-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; object-fit: cover; background: #edf2f6; color: var(--gmt-primary); font-weight: 600; }
.gmt-user-copy strong { display: block; font-size: 12px; font-weight: 600; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmt-user-copy small { display: block; color: var(--gmt-muted); font-size: 10px; }
.gmt-user-menu { position: absolute; right: 0; top: 49px; min-width: 230px; padding: 8px; background: white; border: 1px solid var(--gmt-line); border-radius: 8px; box-shadow: 0 10px 28px #102e4b18; }
.gmt-user-menu .nav-link { font-size: 13px; color: #3e586d; border-radius: 5px; }
.gmt-user-menu .nav-link:hover { background: #eef3f7; }
.gmt-user-menu li:last-child { border-top: 1px solid var(--gmt-line); margin-top: 4px; padding-top: 4px; }
.gmt-nav-scrim { display: none; }

/* Área de trabajo y controles compartidos. No se fuerza el color de las filas. */
.sisadmin-app .gmt-workspace-modal { left: var(--gmt-sidebar); top: var(--gmt-topbar); width: calc(100% - var(--gmt-sidebar)); height: calc(100% - var(--gmt-topbar)); padding: 0 !important; }
.sisadmin-app .gmt-workspace-modal .modal-dialog.modal-fullscreen { width: 100%; max-width: 100%; height: 100%; margin: 0; }
.sisadmin-app .gmt-workspace-modal .modal-content { border-color: var(--gmt-line); color: var(--gmt-ink); }
.sisadmin-app .gmt-workspace-modal .modal-header { padding: 14px 26px !important; border-bottom: 1px solid var(--gmt-line) !important; background: white; gap: 16px; flex-wrap: wrap; }
.sisadmin-app .gmt-workspace-modal .modal-header h6 { margin: 0; font-size: 14px; font-weight: 600; }
.sisadmin-app .gmt-workspace-modal .modal-header > div { flex-wrap: wrap; gap: 8px; }
.sisadmin-app .gmt-workspace-modal .modal-header .controls { margin-left: auto; }
.sisadmin-app .gmt-workspace-modal .modal-body { background: var(--gmt-canvas); padding: 25px 28px; }
.sisadmin-app .gmt-workspace-modal .modal-body { min-width: 0; }
.sisadmin-app .gmt-workspace-modal .modal-footer { background: white; border-top: 1px solid var(--gmt-line); padding: 10px 25px; gap: 10px; justify-content: space-between; font-size: 11px; }
.gmt-session-info { color: var(--gmt-muted); }
.gmt-windows { flex-wrap: wrap; gap: 7px; margin: 0 !important; }
.gmt-windows a { font-size: 11px; background: #eef3f7; color: #405b73 !important; border-color: #d8e3eb !important; margin: 0 !important; padding: 6px 10px !important; border-radius: 5px !important; }
.gmt-date { font-size: 11px; color: var(--gmt-muted); }
.gmt-home-body { padding: 36px 32px !important; }
.gmt-home-intro { margin-bottom: 35px; }
.gmt-home-intro h1, .gmt-page-heading h1 { font-size: clamp(23px, 2.05vw, 31px); font-weight: 650; letter-spacing: -.6px; margin: 0; line-height: 1.25; }
.gmt-home-intro .gmt-muted, .gmt-page-heading .gmt-muted { margin: 10px 0 0; font-size: 13px; }
.gmt-home-section { margin-bottom: 30px; }
.gmt-home-section h2 { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.gmt-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gmt-shortcut { border: 1px solid var(--gmt-line); border-radius: 10px; background: #fff; padding: 23px 20px; color: #324d64; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.gmt-shortcut > i { font-size: 23px; color: #526d84; }
.gmt-shortcut strong { font-size: 14px; font-weight: 600; }
.gmt-shortcut small { color: var(--gmt-muted); font-size: 11px; }
.gmt-shortcut:hover { border-color: #9eb4c7; box-shadow: 0 3px 12px #102e4b0a; }
.gmt-client-panel > div { gap: 14px; }
.gmt-client-panel img[role="button"] { width: 125px; height: 70px; max-height: 70px; object-fit: contain; background: white; padding: 6px; border: 0 !important; box-shadow: none !important; margin: 12px !important; }
.gmt-client-panel > div > div { border: 1px solid var(--gmt-line); background: white !important; padding: 8px 12px 16px; min-width: 180px; border-radius: 10px !important; }
.gmt-client-panel span { color: #405b73 !important; font-size: 12px; }
.sisadmin-app .gmt-workspace-modal .table { font-size: 12px; border-color: var(--gmt-line); }
.sisadmin-app .gmt-workspace-modal .table th { font-size: 11px; font-weight: 600; color: #596f82; padding: 11px 10px; }
.sisadmin-app .gmt-workspace-modal .table td { padding: 9px 10px; vertical-align: middle; }
.sisadmin-app .gmt-workspace-modal .table th { background: #f7f9fb; }
.sisadmin-app .gmt-workspace-modal .rounded-pill { border-radius: 6px !important; }
.sisadmin-app .gmt-workspace-modal .border-dark { border-color: #d9e2ea !important; }
.sisadmin-app .gmt-workspace-modal .border-4 { border-width: 1px !important; }
.sisadmin-app .gmt-workspace-modal .form-label { color: #4f6578; font-size: 11px; margin-bottom: 7px; }
.gmt-service-section { border: 1px solid var(--gmt-line) !important; border-radius: 9px; background: white; padding: 18px 14px !important; margin-bottom: 18px; }
.gmt-service-section > div { gap: 12px; }
.sisadmin-app .gmt-client-form .modal-header { border-top: 5px solid var(--gmt-client-color) !important; }
.sisadmin-app .gmt-client-form .modal-body { background: var(--gmt-client-color); }
.sisadmin-app .gmt-client-form .gmt-service-section { background: var(--gmt-client-color); color: var(--gmt-client-ink); }
.sisadmin-app .gmt-client-form .gmt-service-section .form-label { color: var(--gmt-client-ink); background: transparent !important; }
.sisadmin-app .gmt-client-form .gmt-service-section :is(.bg-light,.bg-dark) { color: var(--gmt-client-ink) !important; background: #ffffff20 !important; }
.gmt-location-trigger { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; white-space: nowrap; }
.gmt-location-dialog { width: min(1120px,calc(100vw - 36px)); max-width: none; max-height: calc(100dvh - 36px); padding: 24px; border: 1px solid #d5e0ea; border-radius: 12px; color: #172f45; background: white; box-shadow: 0 18px 65px #122b4466; overflow: auto; }
.gmt-location-dialog[open] { display: flex; flex-direction: column; gap: 16px; }
.gmt-location-dialog::backdrop { background: #112b4480; }
.gmt-location-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.gmt-location-header h2 { font-size: 21px; margin: 0; }
.gmt-location-header .gmt-eyebrow { margin-bottom: 5px; }
.gmt-location-instructions { margin: 0; font-size: 13px; color: #536b7c; }
.gmt-location-search { display: flex; align-items: flex-end; gap: 12px; margin: 0; }
.gmt-location-search > div { flex: 1; min-width: 0; }
.gmt-location-dialog label { display: block; margin-bottom: 6px; font-size: 12px; color: #4f6578; }
.gmt-location-dialog .form-control { width: 100%; min-height: 40px; font-size: 13px; }
.gmt-location-dialog .btn { min-height: 40px; font-size: 13px; }
.gmt-location-content { display: grid; grid-template-columns: minmax(230px,300px) minmax(0,1fr); gap: 16px; min-height: 340px; }
.gmt-location-results { max-height: 400px; overflow: auto; font-size: 13px; }
.gmt-location-results > p { padding: 12px; margin: 0 0 10px; border-radius: 6px; background: #f3f6f9; color: #526978; }
.gmt-location-results > p.is-error { background: #fff0ed; color: #994638; }
.gmt-location-result { display: block; width: 100%; margin-bottom: 8px; padding: 12px; border: 1px solid #d9e2ea; border-radius: 6px; background: white; color: #263e50; font-size: 12px; text-align: left; overflow-wrap: anywhere; }
.gmt-location-result:hover,.gmt-location-result.is-selected { border-color: #327499; background: #eef6fc; }
.gmt-location-map { min-height: 340px; height: 400px; border: 1px solid #d9e2ea; border-radius: 8px; z-index: 0; }
.gmt-location-pin { color: #155c87; font-size: 34px; line-height: 38px; background: transparent; filter: drop-shadow(0 2px 2px #ffffffcc); }
.gmt-location-footer { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid #e1e8ee; padding-top: 16px; }
.gmt-location-coordinates { flex: 1 1 260px; max-width: 440px; }
.gmt-location-coordinates p { font-size: 11px; color: #526978; margin: 6px 0 0; }
.gmt-location-actions { display: flex; align-items: center; gap: 10px; }
@media(max-width:760px) {
  .gmt-location-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); padding: 16px; }
  .gmt-location-header h2 { font-size: 18px; }
  .gmt-location-search { flex-wrap: wrap; gap: 8px; }
  .gmt-location-search > div { flex-basis: 100%; }
  .gmt-location-search > .btn { width: 100%; }
  .gmt-location-content { grid-template-columns: 1fr; min-height: 0; }
  .gmt-location-results { max-height: 180px; }
  .gmt-location-map { min-height: 290px; height: 290px; }
  .gmt-location-coordinates { max-width: none; }
  .gmt-location-actions { width: 100%; }
  .gmt-location-actions .btn { flex: 1; }
}
.gmt-module-notice { padding: 13px 16px; margin: 0 0 16px; border: 1px solid var(--gmt-line); border-radius: 7px; background: white; color: #526978; font-size: 13px; }
.gmt-module-notice.is-error { background: #fff0ed; color: #994638; border-color: #f0d9d2; }
.gmt-module-notice .btn { margin-left: 12px; }
.gmt-search-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 22px; margin: 24px 0 18px; }
.gmt-search-options { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.gmt-search-options label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #4f6578; }
.gmt-search-options button { margin-left: auto; }
.gmt-search-results { overflow-x: auto; margin-bottom: 16px; }
.gmt-search-results .table { margin-bottom: 0; white-space: nowrap; }
.sisadmin-app .gmt-workspace-modal .gmt-map-body { display: flex; flex-direction: column; min-height: 0; }
.gmt-map-canvas { width: 100%; min-height: 320px; flex: 1 0 320px; border: 1px solid var(--gmt-line); border-radius: 8px; z-index: 0; }
.gmt-map-stats { flex-shrink: 0; font-size: 12px; padding: 0 0 10px; }
.gmt-map-legend { flex-shrink: 0; margin-bottom: 12px; color: #526978; font-size: 12px; }
.gmt-map-legend summary { cursor: pointer; }
.gmt-map-legend > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px; background: white; border: 1px solid var(--gmt-line); border-radius: 6px; }
.gmt-map-legend img { margin-left: 8px !important; }
@media (max-width: 760px) { .gmt-search-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 17px; gap: 14px; } .gmt-search-filters .gmt-field:first-child { grid-column: 1 / -1; } .gmt-search-options { gap: 14px; } .gmt-search-options button { width: 100%; margin-left: 0; } }
.gmt-workspace-modal .modal-body:has([name="subcliente"]) .bg-dark { background: #edf2f6 !important; color: #405b73 !important; border-radius: 6px !important; font-size: 11px; }

/* Acceso. */
.gmt-login { display: grid; grid-template-columns: 1.03fr .97fr; min-height: 100vh; min-height: 100dvh; }
.gmt-login-hero { display: flex; flex-direction: column; padding: 52px 55px; position: relative; color: white; background: linear-gradient(120deg,#142e46e8,#142e46c7),url('../images/pano_11.jpg') center / cover; }
.gmt-login-brand { display: flex; align-items: center; gap: 19px; }
.gmt-login-brand img { background: white; object-fit: contain; border-radius: 5px; padding: 3px; }
.gmt-login-brand strong { font-size: 23px; letter-spacing: 2px; }
.gmt-login-brand span { display: block; font-size: 11px; margin-top: 7px; color: #d7e2ec; }
.gmt-login-copy { margin-top: auto; margin-bottom: auto; padding: 55px 0; }
.gmt-login-copy .gmt-eyebrow { color: #c4d4e2; }
.gmt-login-copy h1 { font-size: clamp(30px,3vw,44px); line-height: 1.3; font-weight: 650; letter-spacing: -.7px; margin: 25px 0 18px; }
.gmt-login-copy > p:last-child { color: #d7e2ec; font-size: 13px; line-height: 1.8; }
.gmt-login-hero-footer { color: #c4d4e2; font-size: 11px; }
.gmt-login-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 35px; background: white; position: relative; }
.gmt-login-card { width: 100%; max-width: 350px; }
.gmt-login-card h2 { font-size: 32px; font-weight: 650; margin-bottom: 9px; }
.gmt-login-card > .gmt-muted { margin-bottom: 31px; font-size: 13px; }
.gmt-login-card .gmt-field { margin-bottom: 20px; }
.gmt-login-card .form-control { min-height: 44px; padding: 10px 13px; }
.gmt-login-card .form-control[readonly] { background: #f4f7fa; }
.gmt-login-options { margin: 3px 0 24px; font-size: 12px; color: #657587; }
.gmt-login-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 46px; }
.gmt-login-message { padding: 11px 12px; background: #fff0ed; color: #a8443c; border: 1px solid #f1d9d4; border-radius: 6px; margin-bottom: 17px; font-size: 12px; }
.gmt-login-footer { position: absolute; bottom: 23px; font-size: 10px; color: #788c9c; }

/* Cumplimiento: estados explícitos, indicadores y tabla/tarjetas. */
.gmt-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.gmt-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 26px; }
.gmt-stat { padding: 20px; border: 1px solid var(--gmt-line); border-radius: var(--gmt-radius); background: white; }
.gmt-stat > span { display: block; font-size: 12px; color: #556b7d; }
.gmt-stat > strong { display: block; font-size: 32px; font-weight: 650; margin: 8px 0 5px; line-height: 1.3; }
.gmt-stat small { font-size: 11px; color: #667c8e; }
.gmt-progress { height: 4px; border-radius: 5px; background: #e6edf3; margin: 20px 0 10px; overflow: hidden; }
.gmt-progress > div { height: 100%; width: 0; background: #306e97; }
.gmt-panel { background: white; border: 1px solid var(--gmt-line); border-radius: var(--gmt-radius); overflow: hidden; }
.gmt-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px; }
.gmt-panel-heading h2 { font-size: 15px; font-weight: 600; margin: 0; }
.gmt-panel-heading p { font-size: 11px; margin: 6px 0 0; }
.gmt-refresh-status { font-size: 10px; color: #708698; white-space: nowrap; }
.gmt-panel-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; }
.gmt-hc-detail { width: min(560px,calc(100% - 30px)); border: 1px solid var(--gmt-line); border-radius: 10px; padding: 25px; color: var(--gmt-ink); max-height: calc(100dvh - 40px); }
.gmt-hc-detail::backdrop { background: #112b4466; }
.gmt-detail-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.gmt-detail-header h2 { font-size: 19px; margin: 0; }
.gmt-hc-detail dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 0; }
.gmt-hc-detail dt { color: var(--gmt-muted); font-size: 11px; font-weight: 400; }
.gmt-hc-detail dd { margin: 5px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.gmt-hc-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px; padding: 0 24px 23px; }
.gmt-hc-filters .gmt-field { flex: 1 1 150px; }
.gmt-hc-filters .gmt-hc-criteria { flex: 2 1 240px; }
.gmt-hc-filters .btn { min-height: 38px; }
.gmt-panel-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--gmt-line); border-bottom: 1px solid var(--gmt-line); padding: 0 24px; }
.gmt-state-tabs { display: flex; gap: 20px; align-self: stretch; }
.gmt-state-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; color: #6a7e8f; font-size: 12px; padding: 15px 0; white-space: nowrap; }
.gmt-state-tabs button.active { color: var(--gmt-primary); border-bottom-color: var(--gmt-primary); }
.gmt-state-tabs span { display: inline-block; margin-left: 5px; padding: 0 5px; border-radius: 3px; background: #eff3f6; font-size: 10px; }
.gmt-hc-search { padding: 7px 0; width: min(250px,35%); }
.gmt-hc-search input { font-size: 12px !important; min-height: 33px !important; }
.gmt-request-message { padding: 13px 24px; font-size: 12px; color: #526978; background: #f4f7fa; }
.gmt-request-message:empty { display: none; }
.gmt-request-message.is-error { background: #fff0ed; color: #a8443c; }
.gmt-table-scroll { overflow: auto; }
.gmt-table-scroll:focus-visible { outline: 3px solid #789bbd; outline-offset: -3px; }
.gmt-hc-table { min-width: 940px; margin: 0; }
.sisadmin-app .gmt-hc-table th { padding: 13px 17px !important; white-space: nowrap; }
.sisadmin-app .gmt-hc-table td { padding: 17px !important; border-color: #eef2f5; }
.gmt-cell-secondary { display: block; font-size: 10px; color: #718497; margin-top: 4px; }
.gmt-record-id { font-weight: 600; color: #274f70; white-space: nowrap; }
.gmt-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 4px; font-size: 10px; white-space: nowrap; }
.gmt-badge-recorded { color: #216347; background: #eef6f0; }
.gmt-badge-pending, .gmt-badge-review { color: #93610c; background: #fff6e5; }
.gmt-badge-overdue { color: #a8443c; background: #fff0ed; }
.gmt-badge-progress { color: #285e82; background: #edf5fa; }
.gmt-row-action { border: 1px solid #d9e4ec; border-radius: 5px; padding: 7px 10px; color: #27577b; font-size: 12px; background: white; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.gmt-row-action:hover { background: #eff5fa; }
.gmt-row-action:disabled { opacity: .5; cursor: default; }
.gmt-empty-state { padding: 40px 20px; text-align: center; color: #738799; }
.gmt-empty-state > i { font-size: 25px; }
.gmt-empty-state h3 { font-size: 15px; color: #445f75; margin: 14px 0 8px; }
.gmt-empty-state p { font-size: 12px; }
.gmt-panel-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--gmt-line); padding: 16px 24px; color: #7b8c9b; font-size: 10px; }
.gmt-hc-mobile { display: none; }
.gmt-monitor-row.gmt-alert-urgent > td { background: #f1ecfa !important; --bs-table-bg: #f1ecfa; }
.gmt-monitor-grid { display: grid; grid-template-columns: minmax(260px, .28fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.gmt-monitor-grid > :is(.gmt-monitor-operators,.gmt-monitor-services) { min-width: 0; overflow-x: auto; border: 1px solid var(--gmt-line); border-radius: 8px; background: white; }
.gmt-monitor-operators { position: sticky; top: 0; }
.gmt-monitor-services { min-width: 0; }
.gmt-monitor-empty-operators { padding: 0 15px 15px; margin: 0; color: #687e8e; font-size: 12px; }
.gmt-monitor-grid .table { margin-bottom: 0; }
.gmt-monitor-grid .table.ms-2 { margin-left: 0 !important; min-width: 900px; max-width: none !important; }
.gmt-monitor-grid caption { caption-side: top; padding: 15px; color: #405b73; font-size: 13px; font-weight: 600; }
.gmt-monitor-row.gmt-alert-unassigned > td { background: #fff0ed !important; --bs-table-bg: #fff0ed; }
.gmt-monitor-row.gmt-alert-appointment > td { background: #fff6e5 !important; --bs-table-bg: #fff6e5; }
.gmt-monitor-row .gmt-monitor-alert-label { display: block; font-size: 10px; font-weight: 600; color: #69483b; margin-top: 4px; border-left: 3px solid #a8443c; padding-left: 5px; }
#modal48 .modal-header { flex-wrap: wrap; gap: 10px; }
.gmt-monitor-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; width: 100%; font-size: 11px; }
.gmt-monitor-header button { margin-left: auto; }
.gmt-monitor-header kbd { font-size: 10px; color: #526679; background: #eef2f6; }
.gmt-monitor-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.gmt-monitor-toolbar > label:first-child { flex: 1 1 260px; }
.gmt-monitor-toolbar label, .gmt-monitor-op-search, .gmt-monitor-dialog label { color: #536b80; font-size: 11px; display: block; }
.gmt-monitor-toolbar .gmt-monitor-check { display: flex; gap: 6px; align-items: center; padding-bottom: 10px; }
.gmt-monitor-summary { font-size: 12px; padding: 14px 0; color: #405b73; }
.gmt-monitor-grid h3 { font-size: 13px; display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 16px; border-bottom: 1px solid var(--gmt-line); }
.gmt-monitor-grid h3 span { font-size: 11px; color: #647b8c; }
.gmt-monitor-op-search { padding: 12px 16px; }
.gmt-monitor-scroll { overflow: auto; max-height: 58vh; scrollbar-gutter: stable; }
.gmt-monitor-grid .table { width: 100%; table-layout: fixed; font-size: 11px; }
.gmt-monitor-grid .table :is(th,td) { white-space: normal !important; overflow-wrap: anywhere; vertical-align: top; padding: 10px 8px; }
.gmt-monitor-grid .table th { position: sticky; top: 0; z-index: 1; background: #edf2f6; color: #405b73; }
.gmt-monitor-services .table { min-width: 650px; }
.gmt-monitor-services th:nth-child(1) { width: 15%; }
.gmt-monitor-services th:nth-child(2) { width: 22%; }
.gmt-monitor-services th:nth-child(3) { width: 13%; }
.gmt-monitor-services th:nth-child(4) { width: 18%; }
.gmt-monitor-services th:nth-child(5) { width: 25%; }
.gmt-monitor-services th:nth-child(6) { width: 68px; }
.gmt-monitor-operators th:first-child { width: 50px; }
.gmt-monitor-operators th:nth-child(2) { width: 36%; }
.gmt-monitor-operators .is-out-shift { background: #fff6e5; }
.gmt-monitor-open { border: 0; padding: 0; background: transparent; text-align: left; font-weight: 600; color: #1a567f; overflow-wrap: anywhere; }
.gmt-monitor-route { display: block; margin-bottom: 5px; }
.gmt-monitor-note, .gmt-monitor-no-match { font-size: 11px; color: #63788b; padding: 12px 16px; margin: 0; }
.gmt-monitor-row > td { background: color-mix(in srgb, var(--gmt-monitor-status, white) 22%, white); --bs-table-bg: transparent; box-shadow: none; }
.gmt-monitor-row.is-selected > td { outline: 1px solid #9bb7cd; outline-offset: -1px; }
.gmt-monitor-hide-vehicle [data-monitor-vehicle-column] { display: none !important; }
.gmt-monitor-large .gmt-monitor-grid .table { font-size: 13px; }
.gmt-monitor-large .gmt-cell-secondary { font-size: 12px; }
.gmt-monitor-animation :is(.gmt-alert-unassigned,.gmt-alert-appointment) .gmt-monitor-alert-label { animation: gmt-appointment-pulse 2.6s ease-in-out infinite; }
@keyframes gmt-appointment-pulse { 50% { background: #ffe2ae; border-color: #b1680b; } }
@media (prefers-reduced-motion: reduce) { .gmt-monitor-animation .gmt-monitor-alert-label { animation: none; } }
.gmt-monitor-menu { position: fixed; width: min(290px, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow: auto; z-index: 1080; padding: 7px; border: 1px solid #d1dde6; border-radius: 8px; background: white; box-shadow: 0 10px 32px #163b5526; }
.gmt-monitor-menu p { padding: 8px; margin: 0; color: #63788b; font-size: 11px; }
.gmt-monitor-menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: white; padding: 10px 8px; color: #294b65; font-size: 12px; border-radius: 4px; }
.gmt-monitor-menu button:is(:hover,:focus-visible) { background: #eef5fa; }
.gmt-monitor-dialog { border: 1px solid #d1dde6; border-radius: 10px; padding: 22px; width: min(820px, calc(100vw - 24px)); max-height: 85vh; color: #294b65; }
.gmt-monitor-dialog::backdrop { background: #142d4659; }
.gmt-monitor-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.gmt-monitor-dialog h2 { font-size: 16px; margin: 0; }
.gmt-monitor-dialog label { margin-bottom: 12px; }
.gmt-monitor-dialog [data-popup-status] { font-size: 12px; margin-top: 12px; }
.gmt-monitor-event { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.gmt-monitor-event label { margin: 0; min-width: 0; }
.gmt-monitor-event input { min-width: 0; width: 100%; margin-top: 5px; }
.gmt-monitor-event .gmt-monitor-note, .gmt-monitor-event button { grid-column: 1 / -1; }
.gmt-monitor-event button { justify-self: start; }
@media (max-width: 600px) { .gmt-monitor-event { grid-template-columns: minmax(0, 1fr); } }
.gmt-monitor-details { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 10px; font-size: 12px; }
.gmt-monitor-details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 1200px) { .gmt-monitor-grid { grid-template-columns: minmax(0,1fr); } .gmt-monitor-operators { position: static; } .gmt-monitor-operators .gmt-monitor-scroll { max-height: 170px; } }
@media (max-width: 760px) {
  .gmt-monitor-grid { grid-template-columns: minmax(0,1fr); }
  .gmt-monitor-grid > :is(.gmt-monitor-operators,.gmt-monitor-services) { flex: 0 0 auto; width: 100%; }
  .gmt-monitor-operators { position: static; }
  .gmt-monitor-services .table { min-width: 0; }
  .gmt-monitor-services thead { display: none; }
  .gmt-monitor-services .table tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); border-bottom: 6px solid #f1f4f7; }
  .gmt-monitor-services .table td { display: block; border: 0; }
  .gmt-monitor-services .table td:nth-child(5) { grid-column: 1 / -1; }
  .gmt-monitor-services .table td::before { content: attr(data-label); display: block; font-size: 10px; color: #5e7487; margin-bottom: 3px; }
  .gmt-monitor-toolbar > label { flex: 1 1 120px; }
  .gmt-monitor-header .indicadores { width: 100%; }
  .gmt-monitor-dialog { padding: 16px; }
  .gmt-monitor-details { grid-template-columns: 95px minmax(0,1fr); }
}

@media (max-width: 1100px) {
  :root { --gmt-sidebar: 220px; }
  .gmt-brand { margin-left: 18px; gap: 9px; }
  .gmt-shortcuts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gmt-workspace-modal .modal-body { padding: 22px !important; }
  .gmt-stats { gap: 11px; } .gmt-stat { padding: 16px 14px; }
  .gmt-stat > span { font-size: 11px; }
  .gmt-login-hero { padding: 45px 35px; }
}
@media (max-width: 760px) {
  :root { --gmt-sidebar: 0px; --gmt-topbar: 64px; }
  .gmt-sidebar { width: 260px; transform: translateX(-100%); transition: transform .2s ease; z-index: 1072; }
  .gmt-sidebar.is-open { transform: translateX(0); }
  .gmt-nav-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 1071; border: 0; background: #112b4466; }
  .gmt-topbar { padding: 0 15px; }
  #gmt-nav-toggle { display: inline-grid; place-items: center; }
  .gmt-topbar-start { font-size: 11px; gap: 3px; }
  .gmt-session-status, .gmt-user-copy { display: none; }
  .gmt-user-button { border: 0; padding-left: 0; }
  .gmt-user-menu { top: 46px; }
  .sisadmin-app .gmt-workspace-modal .modal-header { padding: 12px 16px !important; }
  .sisadmin-app .gmt-workspace-modal .modal-body { padding: 22px 15px !important; }
  .sisadmin-app .gmt-workspace-modal .modal-footer { padding: 10px 15px; justify-content: flex-start; }
  .gmt-windows { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 3px; }
  .gmt-windows a { flex-shrink: 0; }
  .gmt-session-info { font-size: 10px; }
  .gmt-home-intro { margin-bottom: 26px; }
  .gmt-home-intro h1 { font-size: 27px; }
  .gmt-shortcuts { gap: 12px; } .gmt-shortcut { padding: 18px 14px; }
  .gmt-shortcut strong { font-size: 12px; }
  .gmt-home-section h2 { font-size: 14px; }
  .gmt-client-panel > div > div { min-width: 145px; }
  .gmt-workspace-modal .modal-body:has([name="subcliente"]) > .d-flex { flex-direction: column !important; }
  .gmt-workspace-modal .modal-body:has([name="subcliente"]) .d-flex.flex-row { flex-wrap: wrap; gap: 10px; }
  .gmt-workspace-modal .modal-body:has([name="subcliente"]) :is(.form-control,.form-select) { width: 100% !important; max-width: 100% !important; }
  .gmt-workspace-modal .modal-body:has([name="subcliente"]) .d-flex.flex-wrap { gap: 13px !important; }
  .gmt-workspace-modal .modal-body:has([name="subcliente"]) .bg-dark { background: #edf2f6 !important; color: #405b73 !important; border-radius: 6px !important; width: 100%; font-size: 12px; }
  .gmt-workspace-modal .modal-body:has([name="subcliente"]) .border-4 { max-width: 100%; margin-left: 0 !important; }
  .gmt-workspace-modal .gmt-service-section:first-child > .d-flex { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 0 !important; }
  .gmt-workspace-modal .gmt-service-section:first-child > .d-flex > div:last-child { grid-column: 1 / -1; }
  .gmt-page-heading { align-items: flex-start; flex-direction: column; gap: 17px; }
  .gmt-page-heading h1 { font-size: 26px; }
  .gmt-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .gmt-stat { padding: 16px 13px; } .gmt-stat > strong { font-size: 29px; } .gmt-stat small { font-size: 10px; }
  .gmt-panel-heading { padding: 20px 17px; flex-wrap: wrap; gap: 8px; }
  .gmt-hc-filters { padding: 0 17px 20px; gap: 12px; }
  .gmt-hc-filters .gmt-field { flex-basis: 130px; } .gmt-hc-filters .gmt-hc-criteria { flex-basis: 100%; }
  .gmt-panel-toolbar { flex-wrap: wrap; padding: 0 17px 12px; gap: 0; }
  .gmt-state-tabs { width: 100%; gap: 17px; } .gmt-state-tabs button { font-size: 11px; }
  .gmt-hc-search { width: 100%; padding: 0; }
  .gmt-hc .gmt-table-scroll { display: none; }
  .gmt-hc-mobile { display: block; }
  .gmt-hc-card { padding: 18px 17px; border-bottom: 1px solid var(--gmt-line); }
  .gmt-hc-card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .gmt-hc-card h3 { margin: 0; font-size: 13px; }
  .gmt-hc-card p { font-size: 12px; color: #425e75; margin: 11px 0; }
  .gmt-hc-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
  .gmt-hc-card dt { font-size: 10px; color: #718497; font-weight: 400; }
  .gmt-hc-card dd { font-size: 12px; margin: 4px 0 0; overflow-wrap: anywhere; }
  .gmt-hc-card .gmt-row-action { min-height: 40px; }
  .gmt-panel-footer { flex-direction: column; gap: 6px; padding: 15px 17px; }
  .gmt-login { display: block; background: white; }
  .gmt-login-hero { padding: 24px 25px; min-height: 180px; }
  .gmt-login-brand img { width: 66px; height: 46px; } .gmt-login-brand strong { font-size: 17px; } .gmt-login-brand span { font-size: 10px; }
  .gmt-login-copy { margin: 24px 0 0; padding: 0; } .gmt-login-copy h1 { font-size: 23px; margin: 0; }
  .gmt-login-copy h1 br, .gmt-login-copy p, .gmt-login-hero-footer { display: none; }
  .gmt-login-main { padding: 50px 25px 75px; min-height: max(620px,calc(100dvh - 180px)); }
  .gmt-login-card { max-width: 370px; } .gmt-login-card h2 { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) { .sisadmin-app *, .sisadmin-app *::before, .sisadmin-app *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Escritorio: barra compacta y expansión sobre el contenido al pasar el cursor. */
.gmt-menu-icon { width: 18px; flex: 0 0 18px; font-size: 17px; text-align: center; }
@media (min-width: 761px) {
  :root { --gmt-sidebar: 68px; }
  .gmt-sidebar { width: 68px; overflow: hidden; transition: width .18s ease; box-shadow: 2px 0 8px #142c4412; }
  .gmt-sidebar.is-expanded { width: 245px; box-shadow: 8px 0 24px #142c4430; }
  .gmt-sidebar .gmt-brand { margin: 24px 10px; gap: 12px; white-space: nowrap; }
  .gmt-sidebar .gmt-brand img { width: 48px; flex: 0 0 48px; }
  .gmt-sidebar > nav { padding: 0 10px; overflow-x: hidden; }
  .gmt-sidebar :is(.gmt-nav-home, #menusapp a) { white-space: nowrap; }
  .gmt-sidebar:not(.is-expanded) :is(.gmt-brand > span, .gmt-nav-label, .gmt-menu-label, .gmt-menu-chevron,
    .gmt-workspace-label, .gmt-nav-section, .gmt-sidebar-bottom, .gmt-client-search, .gmt-submenu) { display: none !important; }
  .gmt-sidebar:not(.is-expanded) :is(.gmt-nav-home, #menusapp a) { justify-content: center; padding: 13px 10px; }
  #gmt-nav-toggle { display: inline-grid; place-items: center; }
}
@media (prefers-reduced-motion: reduce) { .gmt-sidebar { transition: none; } }
