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

:root{
  --app-bg:#eef3f8;
  --app-surface:#ffffff;
  --app-surface-soft:#f7fafc;
  --app-text:#0f172a;
  --app-muted:#475569;
  --app-border:rgba(15,23,42,.10);
  --app-primary:#0f5bd9;
  --app-primary-dark:#0b47ad;
  --app-btn-radius:.8rem;
  --app-card-radius:1rem;
  --app-shadow:0 12px 28px rgba(15,23,42,.12);
  --app-shadow-soft:0 6px 18px rgba(15,23,42,.08);
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  color:var(--app-text);
  font-family:'Manrope','Segoe UI',Tahoma,sans-serif;
  -webkit-font-smoothing:antialiased;
  background:
    radial-gradient(circle at 14% 12%, rgba(13,148,136,.10), transparent 36%),
    radial-gradient(circle at 86% 2%, rgba(15,91,217,.12), transparent 38%),
    var(--app-bg);
}

main.container{max-width:1180px;}
.text-muted{color:var(--app-muted)!important;}

.app-navbar{
  position:sticky;
  top:0;
  z-index:1030;
  background:rgba(255,255,255,.92)!important;
  border-bottom:1px solid var(--app-border)!important;
  backdrop-filter:saturate(130%) blur(6px);
  box-shadow:0 2px 10px rgba(15,23,42,.06);
}
.app-nav-container{
  min-height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}
.app-brand{
  text-decoration:none;
  color:var(--app-text)!important;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  column-gap:1rem;
  min-width:0;
  max-width:78%;
}
.app-brand-title{
  font-size:clamp(.86rem,1.05vw,.98rem);
  font-weight:800;
  letter-spacing:.02em;
  line-height:1.2;
  text-wrap:balance;
  text-align:center;
}
.app-brand-logo{
  width:272px;
  max-width:38vw;
  height:auto;
  object-fit:contain;
  flex:0 0 auto;
  position:relative;
  top:-6px;
  margin-left:1.6rem;
  border-radius:.9rem;
  border:2px solid #ffffff;
  box-shadow:0 0 0 1px rgba(15,23,42,.16);
  background:transparent;
  padding:.2rem;
}
.app-top-actions{
  flex-shrink:0;
  display:flex;
  align-items:center;
  gap:.7rem;
  border:1px solid var(--app-border);
  border-radius:999px;
  background:var(--app-surface-soft);
  padding:.35rem .55rem .35rem .8rem;
}
.app-top-actions .btn{
  padding:.35rem .75rem;
  font-weight:700;
}
.app-calc-trigger{
  min-width:130px;
}
.app-arqueo-btn{
  min-width:96px;
}
.app-calc-modal{
  border-radius:1rem;
}
.app-calc-display{
  font-weight:800;
  letter-spacing:.02em;
  font-size:1.35rem;
  background:#f8fafc;
}
.app-calc-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.55rem;
}
.app-calc-grid .btn{
  min-height:46px;
  font-weight:800;
}

.card{
  border-radius:var(--app-card-radius);
  border:1px solid var(--app-border);
  box-shadow:var(--app-shadow-soft);
  background:var(--app-surface);
}

.btn{
  border-radius:var(--app-btn-radius);
  font-weight:700;
  transition:transform .12s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover{transform:translateY(-1px);}
.btn-primary{
  border-color:transparent;
  background:linear-gradient(135deg,var(--app-primary),#2b7fff);
  box-shadow:0 6px 16px rgba(15,91,217,.3);
}
.btn-primary:hover{
  border-color:transparent;
  background:linear-gradient(135deg,var(--app-primary-dark),#1f66d8);
}
.btn-outline-primary{border-color:#5f8ee2;color:var(--app-primary);}
.btn-outline-primary:hover{background:#ecf3ff;color:var(--app-primary-dark);border-color:#4f80d9;}

.hero{
  position:relative;
  overflow:hidden;
  border:1px solid var(--app-border);
  border-radius:1.25rem;
  background:linear-gradient(135deg,#ffffff 0%,#f6fbff 52%,#ecf5ff 100%);
}
.hero::after{
  content:"";
  position:absolute;
  inset:auto -30px -55px auto;
  width:230px;
  height:230px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(15,91,217,.15), rgba(15,91,217,0));
  pointer-events:none;
}
.hero .hero-inner{padding:1.2rem;}
@media (min-width:992px){.hero .hero-inner{padding:1.65rem 1.9rem;}}
.hero-illus{
  width:100%;
  max-width:360px;
  height:auto;
  border-radius:1rem;
  object-fit:cover;
  box-shadow:0 10px 24px rgba(15,23,42,.16);
}

.module-card{
  transition:transform .15s ease, box-shadow .2s ease;
}
.module-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--app-shadow);
}
.module-icon{
  width:52px;
  height:52px;
  object-fit:contain;
  padding:.45rem;
  border-radius:.85rem;
  border:1px solid rgba(15,91,217,.18);
  background:linear-gradient(160deg,#f4f9ff,#ebf3ff);
}
.module-step-badge{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:74px;
  padding:.42rem .68rem;
  border-radius:.72rem;
  border:1px solid rgba(122,18,0,.25);
  background:linear-gradient(135deg,#ffe08a,#ffc24b);
  box-shadow:0 6px 12px rgba(255,149,0,.28);
  color:#7a1200;
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  white-space:nowrap;
}

.table-responsive{
  border-radius:.95rem;
  border:1px solid var(--app-border);
}
.table{margin-bottom:0;min-width:760px;}
.table thead th{
  text-transform:uppercase;
  letter-spacing:.03em;
  font-size:.76rem;
  color:#334155;
}

.form-control,.form-select{
  border-radius:.72rem;
  border-color:rgba(15,23,42,.15);
  min-height:42px;
}
.form-control:focus,.form-select:focus{
  border-color:#6b99eb;
  box-shadow:0 0 0 .2rem rgba(15,91,217,.14);
}

.login-screen{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding-top:2.2rem;
  padding-bottom:2.2rem;
}
.login-shell{
  width:min(100%,820px);
}
.login-card{
  border-radius:1.25rem;
  box-shadow:0 18px 46px rgba(15,23,42,.16);
  overflow:hidden;
}
.login-grid{
  display:grid;
  grid-template-columns:minmax(300px,42%) minmax(0,58%);
  min-height:540px;
}
.login-side{
  position:relative;
  overflow:hidden;
  padding:1.25rem 1.2rem;
  background:linear-gradient(160deg,#0b3a86 0%, #0f5bd9 56%, #2e7cf2 100%);
}
.login-side-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 16% 14%, rgba(255,255,255,.26), rgba(255,255,255,0) 42%),
    radial-gradient(circle at 84% 92%, rgba(148,197,255,.24), rgba(148,197,255,0) 44%);
  pointer-events:none;
}
.login-side-inner{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:.55rem;
  height:100%;
  justify-content:center;
}
.login-mark{
  width:192px;
  height:auto;
  border-radius:0;
  border:none;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:none;
  flex:0 0 auto;
  margin-left:.35rem;
}
.login-mark img{
  width:192px;
  height:auto;
  object-fit:contain;
  border:2px solid #ffffff;
  border-radius:1rem;
  padding:.2rem;
  filter:drop-shadow(0 3px 10px rgba(15,23,42,.22));
}
.login-kicker{
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.66rem;
  font-weight:800;
  color:rgba(228,239,255,.96);
  margin-bottom:.12rem;
}
.login-title{
  margin:0;
  font-size:clamp(1.2rem,2.05vw,1.72rem);
  line-height:1.2;
  color:#ffffff;
}
.login-side-text{
  max-width:36ch;
  font-size:.84rem;
  line-height:1.38;
  color:rgba(236,244,255,.92);
}
.login-main{
  padding:1.12rem 1.25rem .95rem;
  background:linear-gradient(180deg,#ffffff 0%, #fbfdff 100%);
}
.login-main-head{
  margin-bottom:.6rem;
}
.login-main-head h2{
  font-weight:800;
  color:#12305f;
  font-size:1.18rem;
}
.login-main .alert{
  border-radius:.82rem;
}
.login-main .form-control,
.login-main .form-select{
  min-height:34px;
}
.login-main form.mb-4{
  margin-bottom:.72rem !important;
}
.login-divider{
  display:flex;
  align-items:center;
  gap:.8rem;
  margin:.65rem 0 .55rem;
  color:var(--app-muted);
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.login-divider::before,.login-divider::after{
  content:"";
  height:1px;
  flex:1 1 auto;
  background:var(--app-border);
}
.login-note{
  max-width:980px;
  margin-left:auto;
  margin-right:auto;
}
.login-card .btn{
  min-height:38px;
}

.treasury-report-buttons-card{
  margin-top:.35rem;
}
.treasury-report-action{
  display:flex;
  align-items:stretch;
  gap:.55rem;
}
.treasury-report-main-btn{
  flex:1 1 auto;
}
.treasury-report-excel-btn{
  flex:0 0 auto;
  width:46px;
  min-width:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border-radius:.75rem;
  box-shadow:0 6px 14px rgba(22,101,52,.24);
}
.treasury-report-excel-btn img{
  width:20px;
  height:20px;
  display:block;
}

footer.container{
  margin-top:1rem;
  padding-top:.4rem;
}

@media (max-width:991.98px){
  .app-nav-container{
    min-height:unset;
    padding:.65rem 0;
    flex-direction:column;
    align-items:stretch;
  }
  .app-brand{
    max-width:100%;
    grid-template-columns:minmax(0,1fr) auto;
    column-gap:.65rem;
  }
  .app-brand-title{font-size:.85rem;}
  .app-brand-logo{width:170px;max-width:40vw;margin-left:1rem;}
  .app-top-actions{
    width:100%;
    justify-content:space-between;
    border-radius:.9rem;
    padding:.45rem .55rem;
  }
  .app-top-actions .small{
    max-width:70vw;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .app-calc-trigger{
    min-width:unset;
  }
  .app-arqueo-btn{
    min-width:unset;
  }
  .hero .hero-inner{padding:1rem;}
  .table{min-width:660px;}
  .treasury-report-buttons-card{margin-top:.25rem;}
  .treasury-report-excel-btn{
    width:44px;
    min-width:44px;
  }
  .login-shell{width:min(100%,640px);}
  .login-grid{
    grid-template-columns:1fr;
    min-height:auto;
  }
  .login-side{
    padding:1rem .95rem;
  }
  .login-side-inner{
    justify-content:flex-start;
  }
  .login-side-text{
    max-width:none;
  }
  .login-main{
    padding:1rem .95rem .9rem;
  }
}

@media (max-width:575.98px){
  main.container{padding-left:.85rem;padding-right:.85rem;}
  .app-brand-title{font-size:.78rem;}
  .app-brand-logo{width:148px;margin-left:.7rem;}
  .app-top-actions .small{font-size:.78rem;}
  .btn{font-size:.93rem;}
  .hero-illus{max-width:100%;}
  .login-screen{padding-top:1.2rem;padding-bottom:1.2rem;}
  .login-side{padding:1rem .9rem;}
  .login-mark{width:160px;height:auto;margin-left:.25rem;}
  .login-mark img{width:160px;height:auto;}
  .login-main{padding:.85rem .75rem .9rem;}
  .login-main-head h2{font-size:1.08rem;}
  .login-title{font-size:1.2rem;}
}
