/* Mobile-first theme, loaded after Bootstrap. */
.uat-cell-value { overflow-wrap:anywhere; }
@media(max-width:767px) {
 .table-responsive.uat-grid-wrapper { width:100%; border:0; overflow:visible; }
 .uat-mobile-grid,.uat-mobile-grid > tbody { display:block; width:100%; border:0; }
 .uat-mobile-grid > caption { display:block; padding:0 0 12px; font-size:13px; }
 .uat-mobile-grid > thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
 .uat-mobile-grid > tbody > tr { display:block; margin:0 0 16px; padding:6px 14px; background:#fff; border:1px solid #dce1ec; border-radius:14px; box-shadow:0 3px 10px rgba(20,38,102,.04); }
 .table.uat-mobile-grid > tbody > tr > td { display:grid; grid-template-columns:minmax(0, .9fr) minmax(0, 1.25fr); gap:14px; width:100%; padding:10px 0; border:0; border-bottom:1px solid #edf0f6; background:transparent; white-space:normal; font-size:14px; line-height:1.5; }
 .table.uat-mobile-grid > tbody > tr > td:last-child { border-bottom:0; }
 .uat-mobile-grid td::before { content:attr(data-label); color:#65718a; font-size:12px; font-weight:600; align-self:start; }
 .uat-mobile-grid .uat-cell-value { min-width:0; font-weight:500; }
}
.uat-consultations { margin-top:28px; padding-top:24px; border-top:1px solid #dce1ec; }
.uat-query-actions { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:20px; }
.uat-section-title { font-size:16px; margin:0 0 16px; }
.uat-scan { margin-top:24px; }
.uat-finish { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:28px; padding:20px; background:#f5f6fa; border:1px solid #dce1ec; border-radius:14px; }
.uat-finish h2 { font-size:16px; margin:0 0 6px; }
.uat-finish p { font-size:13px; line-height:1.5; color:#65718a; margin:0; }
.uat-finish > .btn { flex-shrink:0; }
.uat-navigation { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; padding-top:20px; border-top:1px solid #dce1ec; }
@media(max-width:600px) {
 .uat-finish { flex-direction:column; align-items:stretch; gap:16px; padding:16px; }
 .uat-query-actions { display:grid; grid-template-columns:1fr; }
 .uat-query-actions .btn,.uat-finish > .btn { width:100%; }
 .uat-scan .search-row { flex-wrap:wrap; }
 .uat-scan .search-row > div:first-child { flex-basis:180px; }
 .uat-navigation > .btn { flex:1 1 120px; }
}
:root { --ink:#19264b; --muted:#65718a; --brand:#172b70; --line:#dce1ec; }
* { box-sizing:border-box; }
body { background:#f4f5f9; color:var(--ink); font-family:Segoe UI,Arial,sans-serif; font-size:16px; line-height:1.55; }
.container { width:100%; max-width:920px; }
.app-header { background:#142666; color:#fff; padding:16px 0; border-bottom:3px solid #ffda35; }
.app-nav { display:flex; align-items:center; gap:16px; min-height:48px; }
.brand-link { color:#fff; font-size:27px; font-weight:800; letter-spacing:-1px; line-height:1.1; }
.brand-link span { display:block; color:#ffda35; font-size:11px; font-weight:500; letter-spacing:1px; margin-top:5px; }
.brand-link:hover,.brand-link:focus { color:#fff; }
.session-label { flex:1; min-width:0; width:0; white-space:normal; overflow-wrap:anywhere; border:0; background:transparent; text-align:right; font-size:12px; color:#e1e7fb; cursor:default; }
.logout-link { color:#fff; border:1px solid #7786b4; border-radius:12px; padding:11px 13px; font-size:14px; white-space:nowrap; }
.logout-link:hover,.logout-link:focus { color:#fff; background:#243e87; }
.login-brand { display:flex; align-items:center; justify-content:space-between; gap:20px; font-size:13px; }
.login-brand .img_logo { max-width:150px; max-height:58px; margin:0; background:#fff; border-radius:8px; padding:6px; object-fit:contain; }
.app-content { margin:26px auto 0; padding:24px; background:#fff; border:1px solid var(--line); border-radius:22px; box-shadow:0 8px 35px rgba(20,38,102,.04); min-height:240px; }
.app-footer { text-align:center; color:var(--muted); font-size:12px; padding:24px 16px; }
h1 { font-size:30px; line-height:1.2; font-weight:700; letter-spacing:-.8px; margin:0 0 10px; }
h2,h3 { font-weight:700; font-size:23px; line-height:1.3; margin:0 0 18px; }
.eyebrow { text-transform:uppercase; letter-spacing:1.7px; font-size:11px; font-weight:700; color:var(--brand); margin-bottom:10px; }
.intro { color:var(--muted); margin-bottom:26px; }
.row { margin-left:-8px; margin-right:-8px; }
[class*="col-xs-"],[class*="col-sm-"] { padding-left:8px; padding-right:8px; min-width:0; overflow-wrap:anywhere; }
.form-control { height:50px; padding:12px 14px; border:1px solid #cbd3e5; border-radius:12px; font-size:16px; color:var(--ink); background:#fafbfe; box-shadow:none; }
.form-control:focus { border-color:var(--brand); box-shadow:0 0 0 3px rgba(23,43,112,.14); background:#fff; color:var(--ink); }
textarea.form-control { height:auto; min-height:110px; }
label,.field-label { display:block; font-size:13px; font-weight:600; margin:0 0 7px; }
.form-group { margin-bottom:20px; }
.btn { min-height:48px; border-radius:12px; padding:12px 18px; font-size:15px; font-weight:600; white-space:normal; max-width:100%; box-shadow:none; }
.btn-primary,.btn-success { color:#fff; background:#172b70; border-color:#172b70; }
.btn-primary:hover,.btn-success:hover,.btn-primary:focus,.btn-success:focus { background:#0e1b4e; border-color:#0e1b4e; }
.btn-warning { color:#18265c; background:#ffda35; border-color:#edc52a; }
.btn-danger { color:#a13a37; background:#fff0ed; border-color:#efcec8; }
.btn-default { color:var(--ink); background:#f2f4fa; border-color:var(--line); }
.btn:disabled { opacity:.5; }
a:focus-visible,.btn:focus-visible { outline:3px solid #b78300; outline-offset:3px; }
.span_ako { width:100%; min-width:0; text-align:left; }
.label-default { display:inline-block; padding:0; background:transparent; color:var(--ink); font-size:inherit; white-space:normal; text-align:left; }
hr { border:0!important; height:1px!important; background:var(--line)!important; margin:24px 0; }
.alert { border-radius:12px; font-size:14px; }
.text-danger,[id$="LError"] { color:#a32e30!important; }
[id$="LError"]:not(:empty) { display:block; margin-bottom:16px; }
[id$="div_datos"] { margin-top:24px; background:#f5f6fb; border:1px solid var(--line); padding:16px; border-radius:16px; }
[id$="div_datos"] .row { margin-bottom:12px; }
[id$="LDescripcion"] { color:var(--ink)!important; font-size:20px; }
[id$="div_datos"] .img-responsive { max-height:280px; margin:18px auto 0; border-radius:12px; }
.grid_linea_enana { font-size:14px; overflow-wrap:anywhere; }
.search-row { display:flex; gap:10px; margin:0; }
.search-row > div:first-child { flex:1; min-width:0; padding:0; }
.search-row > div:last-child { width:auto; padding:0; }
.action-row { display:flex; flex-wrap:wrap; gap:12px; margin:20px 0 0; }
.action-row > div { width:auto; padding:0; display:flex; flex-wrap:wrap; gap:10px; }
.dashboard-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.task-card { padding:22px; border:1px solid var(--line); border-radius:18px; background:#f6f7fb; }
.task-icon { display:inline-flex; align-items:center; justify-content:center; height:48px; width:48px; border-radius:14px; background:#e5eafa; color:#172b70; font-size:23px; margin-bottom:22px; }
.task-card h2 { font-size:21px; margin-bottom:8px; }
.task-card p { font-size:14px; color:var(--muted); min-height:44px; }
.task-card .btn { width:100%; margin-top:12px; }
.task-card.secondary { background:#fffdf2; }
.task-card.secondary .task-icon { background:#ffda35; color:#18265c; }
.login-panel { max-width:400px; margin:10px auto; }
.login-panel .btn { width:100%; }
.cookie-note { color:var(--muted); font-size:12px; text-align:center; margin:24px 0 0; }
.skip-link { position:absolute; left:16px; top:-80px; background:#fff; padding:12px; z-index:10; }
.skip-link:focus { top:8px; }
.inventory-row { padding:12px 0; border-bottom:1px solid var(--line); margin-top:0; }
.stock-grid .form-control { margin:7px 0 18px; height:auto; min-height:62px; font-size:24px; font-weight:700; background:#f0f3fb; }
@media(max-width:600px) {
 .app-content { width:calc(100% - 24px); padding:20px 16px; margin-top:18px; border-radius:18px; }
 .app-header { padding:12px 0; }
 .app-nav { gap:10px; }
 .dashboard-grid { grid-template-columns:1fr; }
 .task-card { padding:20px; }
 .task-icon { margin-bottom:14px; }
 .task-card p { min-height:0; }
 h1 { font-size:27px; }
 [id$="div_datos"] .col-xs-3 { width:38%; }
 [id$="div_datos"] .col-xs-8 { width:62%; }
 [id$="div_datos"] .col-xs-4 { width:62%; }
 .page-heading > div { width:100%; }
 .stock-grid b { font-size:13px; }
}
/* Keep Bootstrap interaction states consistent with the brand palette. */
@media(max-width:600px) {
 .home-menu > .eyebrow { margin-bottom:6px; }
 .home-menu > h1 { font-size:23px; margin-bottom:16px; }
 .home-menu > .intro { display:none; }
 .home-menu .dashboard-grid { gap:10px; }
 .home-menu .task-card { display:block; padding:0; border:0; background:transparent; }
 .home-menu .task-icon,.home-menu .task-card h2,.home-menu .task-card p { display:none; }
 .home-menu .task-card .btn { margin:0; min-height:58px; padding:16px; font-size:17px; }
 .home-menu > .top20 { margin-top:14px; }
}
.btn-primary:active,.btn-success:active,.btn-primary.active,.btn-success.active { background:#0e1b4e; border-color:#0e1b4e; color:#fff; }
.btn-warning:hover,.btn-warning:focus,.btn-warning:active { background:#f2c925; border-color:#ddb51c; color:#18265c; }
