/* Aurora UI v44 · high-impact visual refinement. Presentation only. */
:root{
  --au44-navy:#0a2b57;
  --au44-blue:#2563eb;
  --au44-indigo:#5b4cf0;
  --au44-violet:#7c3aed;
  --au44-green:#83e949;
  --au44-line:#dce5f0;
  --au44-soft:#f5f8fc;
  --au44-shadow:0 14px 38px rgba(18,41,73,.075);
  --au44-shadow-hover:0 18px 45px rgba(18,41,73,.12);
}

/* Make the application chrome feel designed rather than flat */
.main{
  background:
    radial-gradient(circle at 88% 0%,rgba(91,76,240,.065),transparent 28rem),
    linear-gradient(180deg,#f7f9fc 0%,#f2f6fa 100%)!important;
}
.topbar{
  border-bottom-color:#d7e0eb!important;
  box-shadow:0 4px 20px rgba(18,41,73,.065)!important;
}
.sidebar{
  box-shadow:10px 0 30px rgba(5,26,58,.08)!important;
}
.sidebar .nav-link.active{
  background:linear-gradient(90deg,rgba(131,233,73,.16),rgba(255,255,255,.11))!important;
  box-shadow:inset 3px 0 var(--au44-green),0 8px 18px rgba(0,0,0,.10)!important;
}

/* A real landing header for Planillas */
.au-planillas-hero{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:18px;
  margin:0 0 18px;
  padding:20px 22px;
  border:1px solid #d7e2ef;
  border-radius:18px;
  background:
    radial-gradient(circle at 92% 20%,rgba(124,58,237,.16),transparent 17rem),
    linear-gradient(135deg,#0a2b57 0%,#123d75 55%,#273b7f 100%);
  color:#fff;
  box-shadow:0 16px 36px rgba(10,43,87,.18);
}
.au-planillas-hero::after{
  content:"";
  position:absolute;
  right:-40px;
  bottom:-68px;
  width:190px;
  height:190px;
  border-radius:50%;
  border:30px solid rgba(255,255,255,.035);
}
.au-planillas-hero__icon{
  width:52px;height:52px;
  display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.18);
  border-radius:15px;
  background:rgba(255,255,255,.10);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
  font-size:1.35rem;
}
.au-planillas-hero__copy{min-width:0}
.au-planillas-hero__copy>span{
  display:block;
  margin-bottom:4px;
  color:#bcd0ee;
  font-size:.61rem;
  font-weight:900;
  letter-spacing:.12em;
}
.au-planillas-hero__copy h1{
  margin:0 0 4px!important;
  color:#fff!important;
  font-size:1.45rem!important;
  line-height:1.1!important;
  letter-spacing:-.025em;
}
.au-planillas-hero__copy p{
  margin:0!important;
  color:#d9e6f6!important;
  font-size:.79rem!important;
}
.au-planillas-hero__metric{
  position:relative;
  z-index:1;
  min-width:112px;
  padding:11px 14px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:13px;
  background:rgba(255,255,255,.09);
  text-align:center;
}
.au-planillas-hero__metric strong{
  display:block;
  color:#fff;
  font-size:1.45rem;
  line-height:1;
}
.au-planillas-hero__metric span{
  display:block;
  margin-top:4px;
  color:#c8d8ec;
  font-size:.63rem;
  font-weight:750;
}

/* Stronger card language everywhere */
.main .card{
  border:1px solid #d9e3ef!important;
  border-radius:17px!important;
  box-shadow:var(--au44-shadow)!important;
  background:linear-gradient(180deg,#fff 0%,#fdfefe 100%)!important;
}
.main .card:hover{
  box-shadow:var(--au44-shadow-hover)!important;
}
.main .card:has(table){
  padding:18px 20px 20px!important;
  border-top:3px solid #d9d6ff!important;
}

/* Tables — applied broadly so every operational area benefits */
.main .table-wrap,
.main .table-scroll{
  overflow:auto;
  padding:0 8px 8px!important;
  border:1px solid #dce5ef!important;
  border-radius:15px!important;
  background:linear-gradient(180deg,#f7f9fc,#f4f7fb)!important;
}
.main table{
  width:100%!important;
  border-collapse:separate!important;
  border-spacing:0 9px!important;
  background:transparent!important;
}
.main table thead th{
  padding:11px 14px 7px!important;
  border:0!important;
  background:transparent!important;
  color:#536178!important;
  font-size:.62rem!important;
  font-weight:900!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
.main table tbody tr{
  filter:drop-shadow(0 3px 8px rgba(21,42,72,.035));
}
.main table tbody td{
  padding:13px 14px!important;
  border-top:1px solid #e0e8f1!important;
  border-bottom:1px solid #e0e8f1!important;
  background:#fff!important;
  color:#33445b!important;
  vertical-align:middle!important;
  transition:background .15s ease,border-color .15s ease,transform .15s ease!important;
}
.main table tbody td:first-child{
  border-left:1px solid #e0e8f1!important;
  border-radius:12px 0 0 12px!important;
  box-shadow:inset 3px 0 transparent;
}
.main table tbody td:last-child{
  border-right:1px solid #e0e8f1!important;
  border-radius:0 12px 12px 0!important;
}
.main table tbody tr:hover td{
  background:#fbfcff!important;
  border-color:#cbd8e7!important;
}
.main table tbody tr:hover td:first-child{
  box-shadow:inset 3px 0 var(--au44-indigo)!important;
}
.main table tbody td strong{
  color:#33445b!important;
  font-weight:800!important;
}
.main table tbody td small{
  color:#7a8798!important;
  font-size:.68rem!important;
}

/* Planillas gets a richer document-library treatment */
html[data-aurora-route="planillas"] .main>.card,
html[data-aurora-route="planillas"] .main .card:has(.au-planillas-table){
  padding:18px 20px 22px!important;
}
html[data-aurora-route="planillas"] .au-planillas-table td:nth-child(1){
  color:#3f31ba!important;
  font-weight:900!important;
}
html[data-aurora-route="planillas"] .au-planillas-table td:nth-child(1) a,
html[data-aurora-route="planillas"] .au-planillas-table td:nth-child(1) .mono{
  display:inline-flex!important;
  align-items:center!important;
  padding:6px 9px!important;
  border:1px solid #dedafe!important;
  border-radius:8px!important;
  background:linear-gradient(135deg,#f8f7ff,#f0edff)!important;
  color:#4232bf!important;
  font-weight:900!important;
  text-decoration:none!important;
}
html[data-aurora-route="planillas"] .au-planillas-table td:nth-child(2){
  font-size:.79rem!important;
  line-height:1.35!important;
}
html[data-aurora-route="planillas"] .au-planillas-table td:nth-child(2) strong,
html[data-aurora-route="planillas"] .au-planillas-table td:nth-child(2)>div:first-child{
  color:#2d3c52!important;
}
html[data-aurora-route="planillas"] .au-planillas-table td:nth-child(3){
  color:#687891!important;
  font-weight:750!important;
}
html[data-aurora-route="planillas"] .au-planillas-table td:nth-child(4){
  color:#53667f!important;
}
html[data-aurora-route="planillas"] .au-planillas-table td:last-child{
  min-width:104px!important;
}
html[data-aurora-route="planillas"] .au-planillas-table td:last-child .btn,
html[data-aurora-route="planillas"] .au-planillas-table td:last-child a{
  min-height:34px!important;
  min-width:74px!important;
  border-radius:9px!important;
  font-size:.72rem!important;
  font-weight:850!important;
}
html[data-aurora-route="planillas"] .au-planillas-table td:last-child .btn-primary,
html[data-aurora-route="planillas"] .au-planillas-table td:last-child a.btn-primary{
  background:linear-gradient(135deg,#6250ee,#7c3aed)!important;
  box-shadow:0 7px 16px rgba(91,76,240,.18)!important;
}
html[data-aurora-route="planillas"] .au-planillas-table td:last-child .btn-light,
html[data-aurora-route="planillas"] .au-planillas-table td:last-child a.btn-light{
  border-color:#d4deea!important;
  background:#fff!important;
  color:#273850!important;
}

/* Inputs / secondary components */
.main .input,
.main input,
.main select,
.main textarea{
  border-color:#d4deea!important;
}
.main .input:focus,
.main input:focus,
.main select:focus,
.main textarea:focus{
  border-color:#9187ef!important;
  box-shadow:0 0 0 4px rgba(91,76,240,.09)!important;
}
.main .btn-primary{
  background:linear-gradient(135deg,#6250ee,#7c3aed)!important;
  box-shadow:0 7px 16px rgba(91,76,240,.17)!important;
}
.main .btn-light{
  border-color:#d4deea!important;
  background:linear-gradient(180deg,#fff,#fafbfd)!important;
}

@media(max-width:820px){
  .au-planillas-hero{
    grid-template-columns:auto 1fr;
    padding:16px;
  }
  .au-planillas-hero__metric{
    grid-column:1/-1;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-width:0;
  }
  .au-planillas-hero__metric span{margin-top:0}
  .main .card:has(table){padding:12px!important}
}
@media print{
  .au-planillas-hero{display:none!important}
}


/* AURORA_TYPOGRAPHY_V45
   Modern system typography only. No functional changes.
*/
:root{
  --aurora-font:"Segoe UI Variable Text","Segoe UI Variable","Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
}

html,body,
button,input,select,textarea,
.topbar,.sidebar,.main,.card,.modal,
.data-table,.template-card,.program-card,
.au-planillas-hero{
  font-family:var(--aurora-font)!important;
  font-optical-sizing:auto;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Reduce the heavy visual weight seen in the current interface */
body{
  font-weight:400;
  letter-spacing:-.006em;
}
.topbar .brand-lockup strong{
  font-weight:760!important;
  letter-spacing:.045em!important;
}
.topbar-context strong,
.workspace-card strong{
  font-weight:720!important;
  letter-spacing:-.012em!important;
}
.nav-link,
.sidebar .nav>a,
.av-nav-group a{
  font-weight:610!important;
  letter-spacing:-.012em!important;
}
.nav-label,.av-nav-label{
  font-weight:720!important;
  letter-spacing:.095em!important;
}
.page-head h1,
.au-planillas-hero__copy h1{
  font-weight:720!important;
  letter-spacing:-.035em!important;
}
.card h2,.card h3,
.template-card h3,
.program-card h3{
  font-weight:700!important;
  letter-spacing:-.025em!important;
}
.data-table thead th,
.main table thead th{
  font-weight:720!important;
  letter-spacing:.055em!important;
}
.data-table tbody td,
.main table tbody td{
  font-weight:420!important;
  letter-spacing:-.008em!important;
}
.data-table tbody td strong,
.main table tbody td strong{
  font-weight:680!important;
  letter-spacing:-.018em!important;
}
.data-table td small,
.main table td small{
  font-weight:430!important;
}
.btn{
  font-family:var(--aurora-font)!important;
  font-weight:650!important;
  letter-spacing:-.015em!important;
}
.badge{
  font-weight:650!important;
  letter-spacing:0!important;
}
input,select,textarea,.input{
  font-weight:420!important;
  letter-spacing:-.006em!important;
}
.mono,
code,pre{
  font-family:ui-monospace,"Cascadia Code","SFMono-Regular",Consolas,monospace!important;
  letter-spacing:0!important;
}


/* AURORA_RECORD_PDF_V46 */
.record-pdf-cell{width:92px!important;white-space:nowrap}
.record-pdf-link{
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  padding:7px 9px!important;
  border:1px solid #fecaca!important;
  border-radius:9px!important;
  background:linear-gradient(180deg,#fff,#fff7f7)!important;
  color:#b42318!important;
  font-size:.7rem!important;
  font-weight:750!important;
  text-decoration:none!important;
  box-shadow:0 4px 12px rgba(180,35,24,.06)!important;
}
.record-pdf-link:hover{
  background:#fff1f1!important;
  border-color:#fda4af!important;
  box-shadow:0 7px 16px rgba(180,35,24,.10)!important;
}
.record-pdf-icon{
  display:grid;
  place-items:center;
  min-width:28px;
  height:24px;
  padding:0 5px;
  border-radius:6px;
  background:#b42318;
  color:#fff;
  font-size:.58rem;
  font-weight:900;
  letter-spacing:.04em;
}
.record-pdf-label{white-space:nowrap}
.record-pdf-empty{
  color:#98a2b3;
  font-size:.75rem;
}
.record-pdf-draft{
  display:inline-block;
  margin-top:8px;
  color:#98a2b3;
  font-size:.7rem;
}
.mobile-record-actions{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
  flex-wrap:wrap;
}
.mobile-record-actions .record-pdf-link{
  min-height:34px;
}
@media(max-width:820px){
  .record-pdf-label{display:inline}
}
@media print{
  .record-pdf-link,.record-pdf-empty,.record-pdf-draft,.mobile-record-actions{display:none!important}
}
