@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root{
  --primary:#075bff;
  --primary-dark:#003fbd;
  --primary-soft:#eaf1ff;
  --navy:#061426;
  --navy-soft:#0b203c;
  --cyan:#27a9ff;
  --background:#f3f6fb;
  --surface:#ffffff;
  --text:#0b1930;
  --muted:#67768d;
  --border:#dce5f1;
  --success:#0c9f68;
  --warning:#e99016;
  --shadow:0 12px 32px rgba(6,20,38,.08);
}

.admin-form-card {
  display: grid;
  gap: 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.admin-grid.single-column {
  grid-template-columns: 1fr;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(118, 137, 169, .18);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
}

.admin-card.simple {
  display: grid;
  align-items: start;
}

.admin-card h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 1rem;
}

.admin-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.compact-action {
  width: auto;
  min-height: 42px;
  padding: 0 14px;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.success-pill {
  color: #066441;
  background: rgba(16, 185, 129, .14);
}

.warning-pill {
  color: #8a5200;
  background: rgba(245, 158, 11, .16);
}

@media (max-width: 760px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-card {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-actions {
    justify-content: stretch;
  }

  .admin-actions button {
    width: 100%;
  }
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:"Manrope","Segoe UI",Arial,sans-serif;
}

[hidden]{
  display:none !important;
}

html{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

body{
  width:100%;
  max-width:100%;
  background:var(--background);
  color:var(--text);
  padding-bottom:calc(90px + env(safe-area-inset-bottom,0px));
  overflow-x:hidden;
}

/* HEADER */

.topbar{
  background:#5b3df5;
  color:white;
  padding:18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:18px;
  font-weight:bold;
}

/* CONTENIDO */

.container{
  padding:16px;
}

/* ESTADISTICAS */

.stats-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-bottom:20px;
}

.card{
  background:white;
  border-radius:16px;
  padding:18px;
  box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

.stat-card h3{
  font-size:14px;
  margin-bottom:10px;
}

.stat-card p{
  font-size:28px;
  font-weight:bold;
}

/* COLORES */

.purple{
  border-left:6px solid #5b3df5;
}

.blue{
  border-left:6px solid #3498db;
}

.orange{
  border-left:6px solid #f39c12;
}

.green{
  border-left:6px solid #2ecc71;
}

/* MODULOS */

.modules{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-bottom:24px;
}

.module-btn{
  background:white;
  border:none;
  border-radius:18px;
  padding:24px 10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  font-size:18px;
  font-weight:bold;
  box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

/* TITULOS */

.section-title{
  font-size:18px;
  font-weight:bold;
  margin-bottom:14px;
}

/* PAQUETES */

.package-card{
  background:white;
  border-radius:16px;
  padding:16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
  box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

.package-card h4{
  margin-bottom:5px;
}

.package-card p{
  color:#666;
  font-size:14px;
}

/* ESTADOS */

.status{
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:bold;
  color:white;
}

.assigned{
  background:#f39c12;
}

.picked{
  background:#3498db;
}

.pending{
  background:#9b59b6;
}

/* BUSCADOR */

.search-box{
  margin-bottom:16px;
}

.search-box input{
  width:100%;
  padding:14px;
  border:none;
  border-radius:14px;
  font-size:16px;
  box-shadow:0 2px 10px rgba(0,0,0,0.05);
  outline:none;
}

/* FILTROS */

.filters{
  display:flex;
  gap:10px;
  overflow-x:auto;
  margin-bottom:20px;
}

.filter-btn{
  border:none;
  padding:10px 16px;
  border-radius:999px;
  background:white;
  font-weight:bold;
  color:#666;
  box-shadow:0 2px 10px rgba(0,0,0,0.05);
  white-space:nowrap;
}

.active-filter{
  background:#5b3df5;
  color:white;
}

/* MENU INFERIOR */

.bottom-nav{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  width:auto;
  max-width:100vw;
  background:white;
  display:flex;
  justify-content:space-around;
  padding:10px 0 max(10px,env(safe-area-inset-bottom,0px));
  border-top:1px solid #ddd;
}

.nav-btn{
  min-width:0;
  flex:1 1 0;
  background:none;
  border:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  font-size:12px;
  color:#666;
}

.nav-btn.active{
  color:#5b3df5;
  font-weight:bold;
}

/* ========================= */
/* ASIGNACIONES */
/* ========================= */

.select-cadete{
  width:100%;
  padding:14px;
  border:none;
  border-radius:12px;
  background:#f1f2f6;
  font-size:16px;
  margin-top:10px;
  outline:none;
}

.scanner-card{
  margin-top:16px;
}

.scan-btn{
  width:100%;
  border:none;
  background:#5b3df5;
  color:white;
  padding:16px;
  border-radius:14px;
  font-size:16px;
  font-weight:bold;
  margin-top:10px;
  margin-bottom:16px;
}

#reader{
  width:100%;
  max-width:100%;
  min-width:0;
  overflow:hidden;
  border-radius:16px;
}

#reader *{
  max-width:100% !important;
  box-sizing:border-box !important;
}

#reader video,
#reader canvas,
#reader img{
  width:100% !important;
  height:auto !important;
  object-fit:cover;
}

.contador-card{
  margin-top:16px;
  text-align:center;
}

.contador-card p{
  font-size:42px;
  font-weight:bold;
  margin-top:10px;
  color:#5b3df5;
}

.assignment-card{
  background:white;
  border-radius:16px;
  padding:16px;
  margin-bottom:12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

.assignment-card h4{
  margin-bottom:6px;
}

.assignment-card p{
  color:#666;
  font-size:14px;
}

/* FLUJO DE RECOLECCION */

.page-container{
  width:min(100%,720px);
  max-width:100%;
  min-width:0;
  margin:0 auto;
}

.title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.title-row .section-title{
  margin-bottom:0;
}

.eyebrow{
  margin-bottom:5px;
  color:var(--primary);
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.small-counter{
  min-width:38px;
  padding:8px 10px;
  border-radius:999px;
  background:#eeebff;
  color:var(--primary);
  font-size:14px;
  font-weight:800;
  text-align:center;
}

.field-label{
  display:block;
  margin:20px 0 8px;
  font-size:14px;
  font-weight:700;
}

.form-control{
  width:100%;
  min-height:48px;
  padding:12px 14px;
  border:1px solid #e1e3ea;
  border-radius:12px;
  background:#f8f9fc;
  color:var(--text);
  font-size:16px;
  outline:none;
}

.form-control:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(91,61,245,.12);
}

.inline-form{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  margin-top:12px;
}

.secondary-btn,
.outline-btn{
  min-height:48px;
  padding:12px 18px;
  border-radius:12px;
  font-size:15px;
  font-weight:700;
}

.secondary-btn{
  border:none;
  background:#ece9ff;
  color:var(--primary);
}

.outline-btn{
  width:100%;
  border:1px solid var(--primary);
  background:white;
  color:var(--primary);
}

.undo-btn{
  width:100%;
  min-height:44px;
  padding:10px 14px;
  border:1px solid #f0c98f;
  border-radius:12px;
  background:#fff8eb;
  color:#9a5a05;
  font-size:14px;
  font-weight:800;
}

button:disabled{
  cursor:not-allowed;
  opacity:.5;
}

.danger-link{
  margin-top:14px;
  padding:4px 0;
  border:none;
  background:transparent;
  color:#c0392b;
  font-size:14px;
  font-weight:700;
}

.helper-text{
  display:block;
  margin-top:7px;
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
}

.selection-summary{
  margin:2px 0 12px;
  padding:11px 13px;
  border-radius:10px;
  background:#f3f1ff;
  color:#4934bd;
  font-size:14px;
  font-weight:700;
}

.button-stack{
  display:grid;
  gap:10px;
}

.button-stack .scan-btn{
  margin:0;
}

.feedback{
  display:none;
  margin-top:14px;
  padding:12px 14px;
  border-radius:10px;
  font-size:14px;
  line-height:1.4;
}

.feedback:not(:empty){
  display:block;
}

.feedback.info{
  background:#eaf4ff;
  color:#1769aa;
}

.feedback.success{
  background:#e8f8ef;
  color:#187a45;
}

.feedback.error{
  background:#fdecea;
  color:#b33228;
}

.list-section{
  margin-top:22px;
}

.empty-state{
  padding:24px 18px;
  border:1px dashed #ced2dc;
  border-radius:14px;
  color:#777;
  font-size:14px;
  text-align:center;
}

.picked{
  background:#3498db;
}

.bottom-nav{
  z-index:20;
}

@media (max-width:480px){
  .inline-form{
    grid-template-columns:1fr;
  }

  .secondary-btn{
    width:100%;
  }

  .topbar .user{
    font-size:14px;
  }
}

@media (min-width:900px){
  .container:not(.page-container){
    width:min(100%,1100px);
    margin:0 auto;
  }
}

/* SESION */

.session-user{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
}

.session-email{
  max-width:190px;
  overflow:hidden;
  font-size:13px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.logout-btn{
  padding:7px 10px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:9px;
  background:rgba(255,255,255,.14);
  color:white;
  font-size:12px;
  font-weight:700;
}

.login-page{
  min-height:100vh;
  padding:0;
  background:
    radial-gradient(circle at top right,rgba(91,61,245,.22),transparent 35%),
    linear-gradient(155deg,#f7f5ff 0%,#eef1f8 100%);
}

.login-shell{
  min-height:100vh;
  padding:24px 16px;
  display:grid;
  place-items:center;
}

.login-card{
  width:min(100%,430px);
  padding:34px 28px;
  border:1px solid rgba(255,255,255,.7);
  border-radius:24px;
  background:rgba(255,255,255,.94);
  box-shadow:0 18px 50px rgba(45,37,92,.12);
}

.login-brand{
  width:58px;
  height:58px;
  margin-bottom:22px;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:var(--primary);
  box-shadow:0 10px 24px rgba(91,61,245,.28);
  font-size:28px;
}

.login-card h1{
  margin-bottom:8px;
  font-size:30px;
}

.login-subtitle{
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
}

.login-form{
  margin-top:24px;
  display:grid;
  gap:18px;
}

.login-form .field-label{
  margin:0 0 8px;
}

.login-form .scan-btn{
  margin:4px 0 0;
}

.password-field{
  position:relative;
}

.password-field .form-control{
  padding-right:72px;
}

.password-toggle{
  position:absolute;
  top:50%;
  right:8px;
  padding:7px 9px;
  border:none;
  border-radius:8px;
  background:#ece9ff;
  color:var(--primary);
  font-size:12px;
  font-weight:800;
  transform:translateY(-50%);
}

.login-help{
  margin-top:22px;
  color:#777;
  font-size:12px;
  text-align:center;
}

.package-controls{
  margin-bottom:20px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.package-list-title{
  margin-bottom:14px;
}

.package-list-title .section-title{
  margin-bottom:0;
}

.package-card-detailed{
  gap:14px;
  flex-wrap:wrap;
}

.package-detail{
  min-width:0;
}

.package-detail h4{
  overflow-wrap:anywhere;
}

.package-detail small{
  display:block;
  margin-top:6px;
  color:#8a8a8a;
  font-size:12px;
}

.package-actions{
  display:flex;
  align-items:flex-end;
  flex-direction:column;
  gap:9px;
}

.correction-toggle{
  padding:7px 10px;
  border:1px solid #b9cdf0;
  border-radius:9px;
  background:#f3f7ff;
  color:var(--primary-dark);
  font-size:12px;
  font-weight:800;
}

.correction-panel{
  width:100%;
  padding:14px;
  display:grid;
  gap:10px;
  border:1px solid #d9e5f7;
  border-radius:13px;
  background:#f7faff;
}

.correction-panel[hidden]{
  display:none;
}

.correction-panel .field-label{
  margin:0 0 -4px;
}

.correction-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.correction-actions button{
  min-height:42px;
  padding:9px 12px;
  border-radius:10px;
  font-size:13px;
  font-weight:800;
}

.save-correction-btn{
  border:none;
  background:var(--primary);
  color:#fff;
}

.unassign-btn{
  border:1px solid #edb6b0;
  background:#fff2f0;
  color:#a83429;
}

.corrections-history{
  margin:24px 0 10px;
}

.corrections-list{
  display:grid;
  gap:9px;
}

.correction-entry{
  padding:12px 13px;
  display:grid;
  gap:4px;
  border:1px solid #e4eaf2;
  border-radius:12px;
  background:#f8fafc;
}

.correction-entry strong{
  color:var(--navy);
  font-size:13px;
}

.correction-entry span,
.correction-entry small{
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
}

/* DASHBOARD DIARIO */

.dashboard-container{
  width:min(100%,1100px);
  margin:0 auto;
}

.dashboard-heading{
  margin:4px 0 20px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
}

.dashboard-heading h1{
  font-size:28px;
}

.dashboard-subtitle{
  margin-top:6px;
  color:var(--muted);
  font-size:14px;
  text-transform:capitalize;
}

.date-control{
  width:min(100%,210px);
}

.date-control span{
  display:block;
  margin-bottom:6px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.dashboard-stats{
  grid-template-columns:repeat(4,1fr);
}

.stat-card span{
  color:#777;
  font-size:12px;
}

.dashboard-container .modules{
  grid-template-columns:repeat(4,1fr);
}

.daily-grid{
  margin-bottom:18px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.report-card,
.latest-section{
  min-width:0;
}

.latest-section{
  margin-bottom:20px;
}

.report-heading{
  margin-bottom:14px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.report-heading .section-title{
  margin-bottom:0;
}

.report-list{
  display:grid;
  gap:9px;
}

.report-row{
  min-width:0;
  padding:12px 13px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border-radius:12px;
  background:#f7f8fb;
}

.report-row div{
  min-width:0;
  display:grid;
  gap:4px;
}

.report-row strong{
  overflow:hidden;
  font-size:14px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.report-row span{
  color:#777;
  font-size:12px;
}

.report-row b{
  max-width:50%;
  flex-shrink:1;
  color:var(--primary);
  font-size:20px;
  overflow-wrap:anywhere;
  text-align:right;
}

.compact-empty{
  padding:18px 14px;
}

@media (max-width:560px){
  .session-email{
    max-width:105px;
  }

  .login-card{
    padding:28px 22px;
  }

  .package-controls{
    grid-template-columns:1fr;
  }

  .dashboard-heading{
    align-items:stretch;
    flex-direction:column;
  }

  .date-control{
    width:100%;
  }

  .dashboard-stats{
    grid-template-columns:1fr 1fr;
  }

  .dashboard-container .modules{
    grid-template-columns:1fr 1fr;
  }

  .daily-grid{
    grid-template-columns:1fr;
  }
}

/* REPORTES */

.report-page{
  width:min(100%,1180px);
  margin:0 auto;
}

.report-page-heading{
  align-items:flex-start;
}

.report-filter-card{
  margin-bottom:18px;
}

.report-filter-grid{
  display:grid;
  grid-template-columns:minmax(160px,1fr) minmax(160px,1fr) auto;
  align-items:end;
  gap:12px;
}

.report-apply-btn{
  width:auto;
  min-width:160px;
  margin:0;
}

.period-shortcuts{
  margin-top:12px;
  display:flex;
  gap:8px;
}

.report-export-bar{
  margin-bottom:18px;
  padding:16px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border:1px solid rgba(39,169,255,.24);
  border-radius:18px;
  background:linear-gradient(135deg,var(--navy),var(--navy-soft));
  color:#fff;
  box-shadow:var(--shadow);
}

.report-export-bar .eyebrow{
  color:var(--cyan);
}

.report-export-bar strong{
  font-size:15px;
}

.export-actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}

.export-btn{
  min-height:44px;
  padding:10px 15px;
  border-radius:11px;
  font-size:13px;
  font-weight:800;
}

.excel-btn{
  border:none;
  background:#1d9b63;
  color:#fff;
}

.pdf-btn{
  border:1px solid rgba(255,255,255,.38);
  background:rgba(255,255,255,.1);
  color:#fff;
}

.report-grid{
  margin-bottom:16px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.report-table-card{
  min-width:0;
  margin-bottom:16px;
}

.table-scroll{
  max-width:100%;
  overflow-x:auto;
  border:1px solid #e5ebf3;
  border-radius:13px;
}

.table-scroll .empty-state{
  border:0;
}

.data-table{
  width:100%;
  min-width:560px;
  border-collapse:collapse;
  background:#fff;
  font-size:12px;
}

.data-table th,
.data-table td{
  padding:11px 12px;
  border-bottom:1px solid #e9eef5;
  text-align:left;
  vertical-align:top;
}

.data-table th{
  position:sticky;
  top:0;
  background:#edf3ff;
  color:var(--primary-dark);
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.data-table tbody tr:last-child td{
  border-bottom:0;
}

.data-table tbody tr:nth-child(even){
  background:#f9fbfd;
}

@media (max-width:720px){
  .report-filter-grid,
  .report-grid{
    grid-template-columns:1fr;
  }

  .report-apply-btn{
    width:100%;
  }

  .report-export-bar{
    align-items:stretch;
    flex-direction:column;
  }

  .export-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .export-btn{
    width:100%;
  }

  .report-stats{
    grid-template-columns:1fr 1fr;
  }
}

@media (min-width:561px) and (max-width:850px){
  .dashboard-stats{
    grid-template-columns:1fr 1fr;
  }
}

/* IDENTIDAD PRONTO EXPRESS */

body{
  background:
    radial-gradient(circle at 92% 3%,rgba(39,169,255,.08),transparent 25rem),
    var(--background);
}

button,
input,
select{
  font:inherit;
}

button{
  cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}

button:not(:disabled):active{
  transform:scale(.98);
}

.topbar{
  position:sticky;
  top:0;
  z-index:30;
  min-height:72px;
  padding:10px clamp(14px,3vw,32px);
  background:
    linear-gradient(115deg,rgba(7,91,255,.2),transparent 34%),
    linear-gradient(135deg,var(--navy),#091d37 70%,#0a2b55);
  border-bottom:1px solid rgba(39,169,255,.35);
  box-shadow:0 8px 24px rgba(6,20,38,.16);
}

.brand-lockup{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
}

.brand-symbol{
  position:relative;
  width:48px;
  height:46px;
  flex:0 0 auto;
  overflow:hidden;
  border:1px solid rgba(39,169,255,.3);
  border-radius:13px;
  background:#fff;
  box-shadow:inset 0 0 18px rgba(7,91,255,.12),0 8px 18px rgba(0,0,0,.22);
}

.brand-symbol img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

.brand-wordmark{
  display:grid;
  line-height:1;
}

.brand-wordmark strong{
  color:#fff;
  font-size:15px;
  font-weight:800;
  letter-spacing:.18em;
}

.brand-wordmark small{
  margin-top:5px;
  color:var(--cyan);
  font-size:9px;
  font-weight:800;
  letter-spacing:.38em;
}

.page-name{
  margin-left:5px;
  padding-left:15px;
  border-left:1px solid rgba(255,255,255,.22);
  color:#cbd8e9;
  font-size:13px;
  font-weight:600;
}

.container{
  padding:clamp(18px,3vw,32px) 16px;
}

.card,
.package-card,
.assignment-card,
.module-btn{
  border:1px solid rgba(220,229,241,.9);
  background:rgba(255,255,255,.97);
  box-shadow:var(--shadow);
}

.card{
  border-radius:20px;
}

.stat-card{
  position:relative;
  overflow:hidden;
  padding:20px;
  border-left:none;
}

.stat-card::before{
  position:absolute;
  top:0;
  right:0;
  left:0;
  height:4px;
  background:var(--card-accent,var(--primary));
  content:"";
}

.stat-card h3{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.stat-card p{
  color:var(--navy);
  font-size:32px;
  font-weight:800;
}

.purple{--card-accent:var(--primary)}
.orange{--card-accent:var(--warning)}
.blue{--card-accent:var(--cyan)}
.green{--card-accent:var(--success)}

.dashboard-heading h1{
  color:var(--navy);
  font-size:clamp(27px,4vw,38px);
  font-weight:800;
  letter-spacing:-.04em;
}

.eyebrow{
  color:var(--primary);
  letter-spacing:.13em;
}

.section-title{
  color:var(--navy);
  font-weight:800;
  letter-spacing:-.02em;
}

.module-btn{
  min-height:122px;
  border-radius:20px;
  color:var(--navy);
  font-size:24px;
}

.module-btn span{
  font-size:14px;
  font-weight:800;
}

.app-icon{
  width:22px;
  height:22px;
  display:block;
  flex:0 0 auto;
  background:currentColor;
  -webkit-mask-position:center;
  -webkit-mask-repeat:no-repeat;
  -webkit-mask-size:contain;
  mask-position:center;
  mask-repeat:no-repeat;
  mask-size:contain;
}

.module-btn .app-icon{
  width:34px;
  height:34px;
  color:var(--primary);
}

.icon-home{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11.5 12 4l9 7.5v7.2A1.3 1.3 0 0 1 19.7 20h-5.2v-5.3h-5V20H4.3A1.3 1.3 0 0 1 3 18.7z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11.5 12 4l9 7.5v7.2A1.3 1.3 0 0 1 19.7 20h-5.2v-5.3h-5V20H4.3A1.3 1.3 0 0 1 3 18.7z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.icon-scan{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 3H4a1 1 0 0 0-1 1v4M16 3h4a1 1 0 0 1 1 1v4M8 21H4a1 1 0 0 1-1-1v-4M16 21h4a1 1 0 0 0 1-1v-4'/%3E%3Crect x='8' y='8' width='8' height='8' rx='1'/%3E%3C/g%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 3H4a1 1 0 0 0-1 1v4M16 3h4a1 1 0 0 1 1 1v4M8 21H4a1 1 0 0 1-1-1v-4M16 21h4a1 1 0 0 0 1-1v-4'/%3E%3Crect x='8' y='8' width='8' height='8' rx='1'/%3E%3C/g%3E%3C/svg%3E");
}

.icon-package{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='m4 7 8-4 8 4-8 4zM4 7v10l8 4 8-4V7M12 11v10M8 5l8 4v4'/%3E%3C/g%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='m4 7 8-4 8 4-8 4zM4 7v10l8 4 8-4V7M12 11v10M8 5l8 4v4'/%3E%3C/g%3E%3C/svg%3E");
}

.icon-truck{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h11v12H3zM14 9h4l3 4v4h-7zM7 20a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM18 20a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z'/%3E%3C/g%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h11v12H3zM14 9h4l3 4v4h-7zM7 20a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM18 20a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z'/%3E%3C/g%3E%3C/svg%3E");
}

.icon-report{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 20V10M12 20V4M19 20v-7M3 20h18'/%3E%3C/g%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 20V10M12 20V4M19 20v-7M3 20h18'/%3E%3C/g%3E%3C/svg%3E");
}

.module-btn:hover{
  border-color:#b8cdf5;
  box-shadow:0 14px 34px rgba(7,91,255,.13);
  transform:translateY(-2px);
}

.form-control,
.search-box input{
  border:1px solid var(--border);
  border-radius:13px;
  background:#f8fafd;
  color:var(--text);
  box-shadow:none;
}

.form-control:focus,
.search-box input:focus{
  border-color:var(--primary);
  background:#fff;
  box-shadow:0 0 0 4px rgba(7,91,255,.11);
}

.scan-btn{
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  border-radius:13px;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  box-shadow:0 10px 22px rgba(7,91,255,.22);
  font-weight:800;
}

.secondary-btn{
  background:var(--primary-soft);
  color:var(--primary-dark);
}

.outline-btn{
  border-color:#9ebcf2;
  color:var(--primary-dark);
}

.selection-summary{
  background:var(--primary-soft);
  color:var(--primary-dark);
}

.small-counter{
  background:var(--primary-soft);
  color:var(--primary-dark);
}

.contador-card{
  background:
    radial-gradient(circle at 100% 0,rgba(39,169,255,.22),transparent 48%),
    linear-gradient(135deg,var(--navy),var(--navy-soft));
  border-color:rgba(39,169,255,.24);
  color:#fff;
}

.contador-card h3{
  color:#c5d3e5;
  font-size:13px;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.contador-card p{
  color:var(--cyan);
  font-weight:800;
}

.contador-card .helper-text{
  color:#9fb1c8;
}

.report-row{
  border:1px solid #edf1f6;
  background:#f7f9fc;
}

.package-card,
.assignment-card{
  border-radius:16px;
}

.status{
  letter-spacing:.02em;
}

.assigned{background:var(--warning)}
.picked{background:var(--primary)}
.pending{background:var(--muted)}

.filter-btn{
  border:1px solid var(--border);
  color:var(--muted);
  box-shadow:none;
}

.active-filter{
  border-color:var(--primary);
  background:var(--primary);
  color:#fff;
}

.bottom-nav{
  z-index:40;
  padding:9px 4px max(9px,env(safe-area-inset-bottom,0px));
  border-top:1px solid rgba(39,169,255,.23);
  background:rgba(6,20,38,.97);
  box-shadow:0 -10px 28px rgba(6,20,38,.16);
  backdrop-filter:blur(12px);
}

.nav-btn{
  color:#8799b1;
  font-size:16px;
}

.nav-btn span{
  font-size:10px;
  font-weight:700;
}

.nav-btn.active{
  color:#fff;
}

.nav-btn.active span{
  color:var(--cyan);
}

.logout-btn{
  border-color:rgba(39,169,255,.45);
  background:rgba(39,169,255,.1);
}

.login-page{
  background:
    radial-gradient(circle at 15% 12%,rgba(7,91,255,.28),transparent 30rem),
    radial-gradient(circle at 90% 90%,rgba(39,169,255,.11),transparent 26rem),
    var(--navy);
}

.login-card{
  padding:0 30px 30px;
  overflow:hidden;
  border:1px solid rgba(39,169,255,.24);
  border-radius:28px;
  background:#fff;
  box-shadow:0 28px 70px rgba(0,0,0,.3);
}

.login-logo{
  height:205px;
  margin:0 -30px 27px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:#fff;
  border-bottom:1px solid rgba(39,169,255,.28);
}

.login-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  transform:scale(1.6);
}

.login-card h1{
  color:var(--navy);
  font-size:32px;
  font-weight:800;
  letter-spacing:-.04em;
}

.password-toggle{
  background:var(--primary-soft);
  color:var(--primary-dark);
}

.login-help{
  color:var(--primary);
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

@media (max-width:560px){
  .topbar{
    min-height:66px;
    padding:8px 12px;
  }

  .brand-symbol{
    width:43px;
    height:42px;
  }

  .brand-wordmark strong{
    font-size:13px;
  }

  .brand-wordmark small{
    font-size:8px;
  }

  .page-name{
    display:none;
  }

  .session-email{
    display:none;
  }

  .logout-btn{
    min-height:36px;
    padding:7px 11px;
  }

  .card{
    border-radius:18px;
  }

  .login-shell{
    padding:18px 14px;
  }

  .login-card{
    padding:0 22px 24px;
  }

  .login-logo{
    height:190px;
    margin:0 -22px 24px;
  }
}
