*{box-sizing:border-box}
:root{
  --bg:#f4f6f4;--card:#fff;--ink:#16231d;--muted:#6c756f;--line:#dfe5e1;
  --brand:#123b2d;--brand2:#1f6b50;--danger:#a22828;
}
html,body{margin:0;padding:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body{min-height:100vh}
.shell{width:min(760px,100%);margin:0 auto;padding:18px 12px 110px}
.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:16px;margin-bottom:12px;box-shadow:0 4px 16px rgba(0,0,0,.04)}
.login-card{max-width:430px;margin:8vh auto 0;padding:22px}
.brand{display:flex;gap:12px;align-items:center;margin-bottom:24px}
.brand-login{flex-direction:column;text-align:center;gap:10px}
.brand-copy{width:100%}
.loran-logo{display:block;width:min(290px,88%);max-height:132px;object-fit:contain;margin:0 auto}
.loran-logo-small{width:112px;max-height:54px;object-fit:contain;display:block}
.topbar-brand{display:flex;align-items:center;gap:12px;min-width:0}
.remember-row{display:flex;align-items:center;gap:9px;margin:14px 0 0;font-weight:600;font-size:13px;cursor:pointer}
.remember-row input{width:18px;height:18px;margin:0;flex:0 0 auto;accent-color:var(--brand)}
h1,h2,p{margin-top:0}
h1{font-size:24px;margin-bottom:2px}
h2{font-size:21px;margin-bottom:2px}
.brand p,.muted{color:var(--muted);margin:0}
.eyebrow{font-size:12px;letter-spacing:.08em;font-weight:800;color:var(--brand2)}
label{display:block;font-weight:700;font-size:14px;margin:12px 0 6px}
input,textarea{width:100%;border:1px solid #cfd8d2;border-radius:10px;padding:12px 13px;font:inherit;background:#fff;color:var(--ink)}
input:focus,textarea:focus{outline:2px solid rgba(31,107,80,.18);border-color:var(--brand2)}
button{font:inherit;cursor:pointer}
.primary{width:100%;border:0;border-radius:11px;padding:14px 18px;background:var(--brand);color:#fff;font-weight:800}
.login-card .primary{margin-top:16px}
.ghost{border:1px solid var(--line);background:white;border-radius:10px;padding:9px 12px;font-weight:700}
.topbar{display:flex;justify-content:space-between;align-items:center;padding:4px 2px 12px}
.controls{display:grid;grid-template-columns:1fr 1.4fr;gap:12px}
.controls label{margin-top:0}
.table-card{padding:0;overflow:hidden}
.table-head,.product-row{display:grid;grid-template-columns:minmax(0,1fr) 86px 86px;gap:8px;align-items:center}
.table-head{padding:11px 12px;background:#eef3f0;border-bottom:1px solid var(--line);font-size:12px;font-weight:800;text-transform:uppercase}
.table-head div:nth-child(n+2){text-align:center}
.product-row{padding:10px 12px;border-bottom:1px solid #edf0ee}
.product-row:last-child{border-bottom:0}
.product-name{min-width:0}
.product-code{font-size:12px;color:var(--brand2);font-weight:800}
.product-desc{font-size:14px;line-height:1.25}
.qty{padding:10px 6px;text-align:center;font-weight:700}
.product-row.active{background:#f2faf6}
.actionbar{position:fixed;left:0;right:0;bottom:0;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-top:1px solid var(--line);padding:10px 12px calc(10px + env(safe-area-inset-bottom));display:flex;gap:12px;align-items:center;justify-content:center}
.actionbar .primary{max-width:500px}
.selected-count{font-size:13px;color:var(--muted);min-width:90px;text-align:right}
.msg{min-height:20px;color:var(--danger);font-size:14px;margin:12px 0 0}
.msg.success{color:var(--brand2)}
.center{text-align:center}
.hidden{display:none!important}
@media(max-width:560px){
  .shell{padding-left:8px;padding-right:8px}
  .loran-logo{width:min(260px,92%)}
  .loran-logo-small{width:84px}
  .topbar-brand{gap:8px}
  .controls{grid-template-columns:1fr}
  .table-head,.product-row{grid-template-columns:minmax(0,1fr) 68px 68px;gap:6px}
  .product-row{padding:9px 8px}
  .table-head{padding:10px 8px}
  .qty{padding:10px 3px}
  .product-desc{font-size:13px}
  .actionbar{justify-content:stretch}
  .actionbar .primary{flex:1}
  .selected-count{min-width:72px}
}

/* V13.5.1 - Cabecera responsive estilo opcion 1 */
.dashboard-header{margin:0 0 14px;padding:10px 4px 4px}
.dashboard-brand-row,.dashboard-user-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
.dashboard-brand-row{padding-bottom:14px;border-bottom:1px solid var(--line)}
.dashboard-user-row{padding-top:14px}
.brand-headings{min-width:0}
.dashboard-title{font-size:21px;line-height:1.08;font-weight:850;letter-spacing:-.02em;color:var(--ink);white-space:nowrap}
.loran-logo-small{width:108px;height:58px;max-height:none;object-fit:contain;display:block;background:transparent}
.quick-nav,.module-nav{display:flex;align-items:stretch;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.nav-tile{min-height:72px;min-width:110px;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:14px;padding:10px 13px;text-decoration:none;font-weight:800;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;line-height:1.15;box-shadow:0 2px 8px rgba(0,0,0,.025)}
.nav-tile:hover,.nav-tile:focus-visible{border-color:#b9cbc1;box-shadow:0 4px 14px rgba(18,59,45,.08);outline:none}
.nav-tile-compact{min-height:48px;min-width:auto;padding:10px 16px;flex-direction:row;white-space:nowrap}
.nav-button{font:inherit;cursor:pointer}
.nav-icon{display:block;color:var(--brand);font-size:18px;line-height:1;margin-bottom:6px;letter-spacing:-3px}
.user-summary{display:flex;align-items:center;gap:13px;min-width:180px;flex:1}
.user-summary-copy{min-width:0}
.user-summary-copy h2{font-size:20px;margin:0 0 4px;overflow-wrap:anywhere}
.user-avatar{width:66px;height:66px;flex:0 0 66px;border-radius:16px;background:linear-gradient(145deg,#ef6b61,#e74a42);display:flex;align-items:center;justify-content:center;color:#fff;font-size:0;position:relative;box-shadow:0 4px 12px rgba(183,55,45,.15)}
.user-avatar:before{content:"";width:20px;height:20px;border-radius:50%;background:#fff;position:absolute;top:13px}
.user-avatar:after{content:"";width:38px;height:21px;border-radius:22px 22px 10px 10px;background:#fff;position:absolute;bottom:11px}

@media(max-width:700px){
  .shell{padding-top:8px}
  .dashboard-header{padding:3px 0 2px}
  .dashboard-brand-row{align-items:flex-start;gap:10px}
  .topbar-brand{gap:9px;flex:1;min-width:0}
  .loran-logo-small{width:96px;height:54px;flex:0 0 96px}
  .dashboard-title{font-size:18px;white-space:normal}
  .eyebrow{font-size:11px}
  .quick-nav{flex:0 0 auto;gap:6px}
  .nav-tile-compact{min-height:44px;padding:9px 12px;border-radius:12px;font-size:14px}
  .dashboard-user-row{display:block;padding-top:12px}
  .user-summary{margin-bottom:12px}
  .module-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}
  .module-nav .nav-tile{min-width:0;width:100%;min-height:74px;padding:8px 6px;font-size:13px}
}

@media(max-width:430px){
  .dashboard-brand-row{display:grid;grid-template-columns:1fr;gap:9px}
  .quick-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .nav-tile-compact{width:100%}
  .loran-logo-small{width:88px;height:50px;flex-basis:88px}
  .dashboard-title{font-size:17px}
  .user-avatar{width:58px;height:58px;flex-basis:58px;border-radius:14px}
  .user-avatar:before{width:18px;height:18px;top:11px}
  .user-avatar:after{width:34px;height:19px;bottom:9px}
  .module-nav{grid-template-columns:repeat(3,minmax(0,1fr))}
  .module-nav .nav-tile{font-size:12px;min-height:70px}
}
