:root{--sti-navy:#111744;--sti-blue:#3b76e1;--sti-bg:#f1f3f7;--sti-border:#e2e5e8}.sti-shell{min-height:100vh;background:var(--sti-bg);display:flex}.sti-sidebar{width:245px;background:var(--sti-navy);color:#fff;flex:0 0 245px;min-height:100vh}.sti-brand{display:flex;align-items:center;gap:12px;padding:22px 20px;border-bottom:1px solid rgba(255,255,255,.08)}.sti-brand strong{font-size:.95rem;display:block;letter-spacing:.05em}.sti-brand small{opacity:.65}.sti-mark{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#fff;color:var(--sti-navy);font-weight:700}.sti-nav{padding:18px 12px}.sti-nav a{display:flex;align-items:center;gap:9px;color:rgba(255,255,255,.72);padding:10px 12px;margin:3px 0;border-radius:9px}.sti-nav a:hover,.sti-nav a.active{background:rgba(255,255,255,.1);color:#fff}.sti-nav-title{font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;opacity:.45;padding:18px 12px 6px}.sti-main{flex:1;min-width:0}.sti-topbar{min-height:76px;background:#fff;border-bottom:1px solid var(--sti-border);display:flex;align-items:center;gap:14px;padding:12px 28px}.sti-topbar h1{font-size:1.15rem;margin:2px 0 0}.sti-context{font-size:.7rem;letter-spacing:.08em;color:#8495ab}.sti-top-actions{margin-left:auto;display:flex;align-items:center;gap:18px}.sti-user{text-align:right;display:flex;flex-direction:column}.sti-user small{color:#8495ab}.notif-link{font-size:1.35rem;position:relative;color:#545965}.notif-link span{position:absolute;top:-7px;right:-10px;background:#f56e6e;color:#fff;border-radius:20px;font-size:.62rem;min-width:18px;height:18px;display:grid;place-items:center}.sti-menu-toggle{display:none;border:0;background:transparent;font-size:1.4rem}.sti-content{padding:24px 28px}.metric-card{border:0}.metric-card .metric{font-size:1.7rem;font-weight:600;color:#141b2b}.metric-card .label{color:#7f838b}.timeline{border-left:2px solid #e2e5e8;margin-left:8px;padding-left:22px}.timeline-item{position:relative;padding:0 0 20px}.timeline-item:before{content:'';position:absolute;width:10px;height:10px;background:#3b76e1;border-radius:50%;left:-28px;top:5px}.module-hero{background:#fff;border-radius:.75rem;border:1px solid var(--sti-border);padding:20px}.module-hero .eyebrow{font-size:.72rem;text-transform:uppercase;letter-spacing:.09em;color:#8495ab}.module-hero h2{font-size:1.35rem;margin:4px 0}.ssma-gate{border-left:4px solid #f9c256}.ssma-gate.ok{border-left-color:#63ad6f}.form-section-title{font-size:.82rem;text-transform:uppercase;letter-spacing:.07em;color:#7f838b;margin-bottom:12px}.document-card{border-left:4px solid #e2e5e8}.document-card.complete{border-left-color:#63ad6f}.document-card.pending{border-left-color:#f9c256}.document-card.error{border-left-color:#f56e6e}.table-actions{white-space:nowrap}.empty-state{padding:48px 20px;text-align:center;color:#7f838b}.provider-body{background:#f1f3f7;color:#545965;font-family:var(--bs-font-sans-serif,"Work Sans",Arial,sans-serif);margin:0;min-height:100vh}.provider-wrap{max-width:1180px;margin:0 auto;padding:24px}.provider-brand{display:flex;justify-content:space-between;align-items:center;background:#111744;color:#fff;padding:16px 20px;border-radius:.75rem;margin-bottom:20px;box-shadow:0 4px 14px rgba(17,23,68,.10)}.provider-brand strong{letter-spacing:.04em}.provider-brand span{opacity:.75}.provider-wrap .card{border-color:#e2e5e8;box-shadow:0 2px 8px rgba(20,27,43,.04)}.provider-wrap .card-body{padding:1.25rem}.provider-wrap h4,.provider-wrap h5{color:#141b2b}.provider-wrap .btn-primary{background:#3b76e1;border-color:#3b76e1}.provider-wrap .btn-primary:hover{background:#3268c9;border-color:#3268c9}.workflow-steps{display:flex;gap:8px;flex-wrap:wrap}.workflow-step{padding:8px 12px;border-radius:20px;background:#eff0f2;color:#7f838b;font-size:.78rem}.workflow-step.active{background:#e7efff;color:#3b76e1;font-weight:600}.workflow-step.done{background:#e6f4e8;color:#4f8f59}.readonly-block{background:#f8f9fa;border:1px solid #eff0f2;border-radius:.75rem;padding:14px}.choices__inner{background:#fff!important;border-color:#e2e5e8!important;border-radius:.75rem!important;min-height:39px!important}.signature-canvas{width:100%;height:180px;border:1px dashed #8495ab;border-radius:.75rem;background:#fff;touch-action:none}.small-muted{font-size:.78rem;color:#8495ab}@media(max-width:900px){.sti-sidebar{position:absolute;z-index:50;transform:translateX(-100%);transition:.2s}.sti-shell.menu-open .sti-sidebar{transform:translateX(0)}.sti-menu-toggle{display:inline-block}.sti-content{padding:18px}.sti-topbar{padding:12px 18px}.sti-user span{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.provider-wrap{padding:12px}}
/* Portal SSMA independiente 2.1.0 */
body{margin:0;background:var(--sti-bg);color:#545965}.sti-sidebar{position:relative;display:flex;flex-direction:column}.sti-nav{flex:1}.sti-sidebar-footer{padding:16px 20px;font-size:.72rem;color:rgba(255,255,255,.45)}.sti-nav .nav-count{margin-left:auto;background:#f56e6e;color:#fff;border-radius:20px;padding:1px 7px;font-size:.68rem}.sti-topbar{position:sticky;top:0;z-index:40}.sti-user-button{display:flex;align-items:center;padding:0;border:0;background:transparent!important;box-shadow:none!important;color:#141b2b}.sti-user-button:focus{box-shadow:none}.sti-user-button:after{margin-left:.5rem}.sti-content>.alert{display:none}.sti-content .card,.sti-content .app-card{border:1px solid var(--sti-border);border-radius:.9rem;box-shadow:0 2px 8px rgba(20,27,43,.04)}.sti-content .card .card-body{padding:1.25rem}.sti-content .app-card-header{border-bottom:1px solid var(--sti-border)}
/* Admin experience */
.admin-grid{display:grid;grid-template-columns:minmax(360px,.9fr) minmax(520px,1.5fr);gap:24px;align-items:start}.admin-stack{display:grid;gap:20px}.admin-card{background:#fff;border:1px solid var(--sti-border);border-radius:.9rem;padding:20px;box-shadow:0 2px 8px rgba(20,27,43,.04)}.admin-card h4,.admin-card h5{margin-bottom:.2rem;color:#141b2b}.admin-card .subcopy{color:#7f838b;font-size:.9rem;margin-bottom:1rem}.admin-user-line small{display:block;color:#8495ab;text-transform:uppercase;font-size:.7rem;letter-spacing:.02em}.admin-principal{display:flex;align-items:center;gap:14px}.admin-principal .avatar-token{width:46px;height:46px;display:grid;place-items:center;border-radius:50%;background:#eef3ff;color:#3b76e1;font-weight:700}.mail-layout{display:grid;grid-template-columns:minmax(420px,.9fr) minmax(560px,1.4fr);gap:24px}.audit-json{font-size:.73rem;color:#f56e6e;word-break:break-word;white-space:normal}.badge-mail-ok{background:#63ad6f!important}.badge-mail-error{background:#f56e6e!important}.table td small{display:block;color:#8495ab}.table thead th{white-space:nowrap}.dataTables_wrapper .dataTables_filter input,.dt-container .dt-search input{border:1px solid #e2e5e8!important;border-radius:.65rem!important;padding:.35rem .65rem!important}.dataTables_wrapper .dataTables_length select,.dt-container .dt-length select{border:1px solid #e2e5e8!important;border-radius:.5rem!important}.dt-container .dt-layout-row{margin:.65rem 0}.dt-container .dt-paging .dt-paging-button.current{background:#3b76e1!important;color:#fff!important;border-color:#3b76e1!important}.dt-container .dt-paging .dt-paging-button{border-radius:.35rem!important}.form-check-input:checked{background-color:#3b76e1;border-color:#3b76e1}.btn-primary{background:#3b76e1;border-color:#3b76e1}.btn-primary:hover{background:#3268c9;border-color:#3268c9}
/* Choices and Flatpickr consistent with the suite */
.choices{margin-bottom:0}.choices__inner{padding:.45rem .75rem!important}.choices__list--dropdown,.choices__list[aria-expanded]{z-index:1055!important;border-radius:.75rem!important;border-color:#e2e5e8!important;box-shadow:0 8px 22px rgba(20,27,43,.10)}.choices__input{background:#fff!important}.flatpickr-calendar{border-radius:.75rem;box-shadow:0 8px 24px rgba(20,27,43,.12)}
/* Provider */
.provider-brand div{display:flex;flex-direction:column}.provider-brand small{opacity:.7}.provider-wrap{max-width:1280px}.provider-wrap .app-card{border-radius:.9rem}.provider-wrap .section-title{color:#141b2b}
@media(max-width:1200px){.admin-grid,.mail-layout{grid-template-columns:1fr}}@media(max-width:900px){.sti-sidebar{position:fixed;height:100vh}.sti-top-actions .sti-user small{display:none}.sti-top-actions{gap:10px}.sti-content{padding:16px}.admin-grid,.mail-layout{display:block}.admin-card{margin-bottom:18px}}
/* v2.3.0 personalización */
.sti-sidebar{background:var(--sti-navy);color:var(--sti-sidebar-text,#fff)}
.sti-nav a{color:color-mix(in srgb,var(--sti-sidebar-text,#fff) 72%,transparent)}
.sti-nav a:hover,.sti-nav a.active{background:var(--sti-sidebar-active,#2f3a73);color:var(--sti-sidebar-text,#fff)}
.sti-topbar{background:var(--sti-topbar,#fff)}
.sti-brand-logo{width:40px;height:40px;object-fit:contain;border-radius:8px;background:rgba(255,255,255,.08);padding:3px}
.provider-brand{background:var(--provider-navy,#111744)}.provider-brand-main{display:flex!important;flex-direction:row!important;align-items:center;gap:12px}.provider-brand-logo{max-width:120px;max-height:44px;object-fit:contain}.provider-wrap .btn-primary{background:var(--provider-accent,var(--sti-blue));border-color:var(--provider-accent,var(--sti-blue))}
.btn-primary{background:var(--sti-blue);border-color:var(--sti-blue)}.form-check-input:checked{background-color:var(--sti-blue);border-color:var(--sti-blue)}
.login-page{background:var(--sti-bg);min-height:100vh}.login-visual{background-color:var(--login-bg);background-image:linear-gradient(135deg,rgba(4,8,40,.72),rgba(17,23,68,.48)),var(--login-image,none);background-size:cover;background-position:center}.login-logo{max-width:220px;max-height:80px;object-fit:contain;margin-bottom:22px}.captcha-row{display:flex;gap:8px;align-items:center}.captcha-row img{height:70px;max-width:220px;border:1px solid var(--sti-border);border-radius:10px;background:#f6f8fc}.captcha-row .btn{height:70px}
.branding-preview{min-height:80px;display:flex;align-items:center;justify-content:center;background:#f8fafc;border:1px dashed var(--sti-border);border-radius:10px;padding:10px}.branding-preview img{max-width:240px;max-height:120px;object-fit:contain}.existing-signature{border:1px solid #e7ebf2;border-radius:9px;background:#f8fafc;padding:8px;margin-bottom:8px;display:flex;flex-direction:column;gap:4px}.existing-signature span{font-size:.72rem;font-weight:700;color:#6b7280}.existing-signature img{max-width:100%;height:70px;object-fit:contain;background:#fff;border-radius:6px}.existing-signature small{color:#8495ab;font-size:.68rem}.mail-template-list .list-group-item small{display:block;opacity:.7}.mail-template-list .list-group-item.active{background:var(--sti-blue);border-color:var(--sti-blue)}
/* v2.3.0 colores administrables adicionales */
.sti-topbar h1,.sti-content .section-title,.sti-content h2,.sti-content h3{color:var(--sti-title-color,#141b2b)}
.provider-brand{color:var(--provider-header-text,#fff)}
.login-visual-content,.login-visual-content h2,.login-visual-content p{color:var(--login-text,#fff)}
/* v2.4.0 */
.table-responsive{overflow-x:auto;overflow-y:visible!important}.app-card>.table-responsive{border-radius:0 0 .9rem .9rem}.table thead th,.datatable thead th{background:var(--table-head-bg,#f8fafc)!important;color:var(--table-head-text,#545965)!important;text-align:var(--table-head-align,left)!important;vertical-align:middle}.table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-accent-bg:rgba(17,23,68,.018)}.table-hover>tbody>tr:hover>*{--bs-table-accent-bg:rgba(59,118,225,.045)}
.profile-matrix{border:1px solid var(--sti-border);border-radius:.8rem;overflow:hidden}.profile-matrix-head,.profile-matrix-row{display:grid;grid-template-columns:minmax(180px,1fr) repeat(3,minmax(90px,.35fr));align-items:center}.profile-matrix-head{background:var(--table-head-bg,#f8fafc);color:var(--table-head-text,#545965);font-weight:700;text-align:center}.profile-matrix-head span:first-child{text-align:left}.profile-matrix-head span,.profile-matrix-row>*{padding:11px 12px;border-bottom:1px solid var(--sti-border)}.profile-matrix-row:last-child>*{border-bottom:0}.profile-matrix-row label{text-align:center;margin:0;cursor:pointer}.profile-matrix-row input{margin-right:5px}
.provider-order-header{display:grid;grid-template-columns:auto 1fr auto;gap:24px;align-items:center;background:var(--provider-navy,#111744);color:var(--provider-header-text,#fff);padding:24px 28px;border-radius:18px;margin-bottom:24px;box-shadow:0 10px 28px rgba(17,23,68,.14)}.provider-order-brand{display:flex;align-items:center;gap:12px;padding-right:24px;border-right:1px solid color-mix(in srgb,var(--provider-header-text,#fff) 22%,transparent)}.provider-order-logo img{max-width:140px;max-height:48px;object-fit:contain}.provider-order-mark{width:44px;height:44px;border-radius:11px;background:#fff;color:var(--provider-navy);display:grid;place-items:center;font-weight:800}.provider-company{font-weight:800;font-size:1.05rem}.provider-system{opacity:.7;font-size:.76rem}.provider-order-main h1{color:inherit;margin:3px 0 5px;font-size:1.45rem}.provider-order-main p{margin:0;opacity:.78}.provider-order-main .eyebrow{color:var(--provider-accent,#7ca6ff);text-transform:uppercase;letter-spacing:.08em;font-size:.72rem}.provider-meta{display:grid;grid-template-columns:auto auto;gap:6px 16px;align-items:center;border-left:1px solid color-mix(in srgb,var(--provider-header-text,#fff) 22%,transparent);padding-left:24px}.provider-meta span{opacity:.65;text-transform:uppercase;font-size:.68rem}.provider-meta strong{text-align:right}.provider-login-card{max-width:560px;margin:8vh auto}.captcha-img{height:70px;border:1px solid var(--sti-border);border-radius:10px;background:#fff}.provider-access-box{background:#f7f9fc;border:1px solid var(--sti-border);border-radius:12px;padding:12px}.orders-list-card,.orders-filter-card{overflow:visible!important}.orders-list-card .dataTables_wrapper,.orders-list-card .dt-container{overflow:visible!important}.orders-list-card .table-responsive{overflow-x:auto!important;overflow-y:visible!important;max-height:none!important}
@media(max-width:900px){.provider-order-header{grid-template-columns:1fr}.provider-order-brand,.provider-meta{border:0;padding:0}.profile-matrix-head,.profile-matrix-row{grid-template-columns:1fr repeat(3,72px)}.profile-matrix-row span{display:none}}

/* v2.5.0 - matriz de perfiles por nivel */
.profile-matrix-levels .profile-matrix-head,
.profile-matrix-levels .profile-matrix-row{
    grid-template-columns:minmax(190px,1.35fr) repeat(5,minmax(92px,.45fr));
}
.profile-matrix-levels .profile-na{
    text-align:center;
    color:#a5acb8;
    font-weight:600;
}
.executor-capability{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    border:1px solid var(--sti-border);
    border-radius:.8rem;
    padding:1rem 1.1rem;
    background:#fbfcfe;
}
.executor-capability small{display:block;color:var(--sti-muted);margin-top:.2rem}
@media(max-width:1100px){
    .profile-matrix-levels{overflow-x:auto}
    .profile-matrix-levels .profile-matrix-head,
    .profile-matrix-levels .profile-matrix-row{min-width:820px;grid-template-columns:200px repeat(5,120px)}
    .profile-matrix-levels .profile-matrix-row span{display:inline}
}
/* v3.4.0 · Gestión de Servicios */
.profile-matrix-levels .profile-matrix-head,.profile-matrix-levels .profile-matrix-row{grid-template-columns:minmax(190px,1.25fr) repeat(5,minmax(88px,.4fr))}
.supplier-score{font-size:1.6rem;font-weight:800}.supplier-risk-low{color:#2e9d57}.supplier-risk-medium{color:#a97700}.supplier-risk-high,.supplier-risk-critical{color:#d9534f}.maintenance-owner{font-size:.72rem;color:var(--sti-muted)}
@media(max-width:900px){.profile-matrix-levels{overflow-x:auto}.profile-matrix-levels .profile-matrix-head,.profile-matrix-levels .profile-matrix-row{min-width:760px}}

/* ================================================================
   GPV v3.5.1 - Select2 + cards de altura natural (referencia v1)
   ================================================================ */
.sti-content .app-card,
.sti-content .admin-card,
.provider-wrap .card{
  max-height:none!important;
  overflow:visible!important;
}
.sti-content .table-responsive,
.provider-wrap .table-responsive,
.orders-list-card .table-responsive{
  height:auto!important;
  max-height:none!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
}
.sti-content .dataTables_wrapper,
.sti-content .dt-container,
.provider-wrap .dataTables_wrapper,
.provider-wrap .dt-container{
  max-height:none!important;
  overflow:visible!important;
}
.select2-container{
  width:100%!important;
  min-width:0!important;
  margin:0;
}
.select2-container .select2-selection--single{
  min-height:39px;
  border:1px solid #e2e5e8;
  border-radius:.65rem;
  background:#fff;
}
.select2-container .select2-selection--single .select2-selection__rendered{
  min-height:39px;
  padding:8px 36px 8px 12px;
  line-height:21px;
  color:#545965;
}
.select2-container .select2-selection--single .select2-selection__arrow{
  width:32px;
  height:37px;
  right:3px;
}
.select2-container .select2-selection--multiple{
  min-height:39px;
  border:1px solid #e2e5e8;
  border-radius:.65rem;
  background:#fff;
  padding:3px 7px;
}
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--multiple{
  border-color:color-mix(in srgb,var(--sti-blue,#3b76e1) 68%,#fff)!important;
  box-shadow:0 0 0 .15rem color-mix(in srgb,var(--sti-blue,#3b76e1) 14%,transparent);
}
.select2-container--open,
.select2-dropdown{
  z-index:1095!important;
}
.select2-dropdown{
  border:1px solid #e2e5e8!important;
  border-radius:.65rem!important;
  box-shadow:0 10px 26px rgba(20,27,43,.13);
  overflow:hidden;
}
.select2-search--dropdown{padding:8px}
.select2-search--dropdown .select2-search__field{
  min-height:36px;
  border:1px solid #dce2ea!important;
  border-radius:.5rem;
  outline:0;
}
.select2-results__option{padding:8px 11px}
.select2-container--default .select2-results__option--highlighted[aria-selected]{
  background:var(--sti-blue,#3b76e1)!important;
  color:#fff!important;
}
#providerModal .modal-content,
#providerModal .modal-body{
  overflow:visible!important;
}
