﻿:root{
  --soft-bg: #eef3ff;
  --card-radius: 18px;
}

body.bg-soft{
  background: radial-gradient(1200px circle at 10% 10%, #f7fbff 0, var(--soft-bg) 55%, #e9f0ff 100%);
}

.login-card{
  width: min(520px, 92vw);
  border-radius: var(--card-radius);
  overflow: hidden;
}

.login-header{
  background: linear-gradient(180deg, #1b5cff 0%, #0d3db8 100%);
}

.card{
  border-radius: var(--card-radius);
}

.icon-circle{
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: #e7efff;
  display: grid;
  place-items: center;
}

.rounded-4{
  border-radius: 22px !important;
}

.form-control, .input-group-text{
  border-color: #d7ddea;
}

.form-control:focus{
  border-color: #86b7fe;
  box-shadow: 0 0 0 .25rem rgba(13,110,253,.15);
}

.btn-primary{
  box-shadow: 0 10px 24px rgba(13,110,253,.20);
}

.main-screen{
  min-height: calc(100dvh - 88px);
}

.main-grid-body{
  min-height: clamp(420px, calc(100dvh - 250px), 880px);
  display: flex;
  flex-direction: column;
}

.orders-panel{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  min-height: 0;
}

.orders-table-wrapper{
  flex: 1;
  min-height: 260px;
  overflow: auto;
}

.main-home-screen{
  height: calc(100dvh - 88px);
  min-height: calc(100dvh - 88px);
}

.main-home-container{
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.main-home-container .main-grid-card{
  flex: 1;
  min-height: 0;
}

.main-home-container .main-grid-body{
  height: 100%;
  min-height: 0;
}

.main-home-container .orders-table-wrapper{
  min-height: 0;
}

.hc-screen{
  height: calc(100dvh - 88px);
  min-height: calc(100dvh - 88px);
}

.hc-container{
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hc-container > .card{
  flex: 1;
  min-height: 0;
}

.hc-grid-body{
  height: 100%;
  min-height: 0;
}

.hc-main-grid-body{
  padding-top: .55rem !important;
  padding-bottom: .55rem !important;
}

.hc-orders-panel{
  gap: .35rem;
}

.home-main-grid-body{
  padding-top: .75rem !important;
  padding-bottom: .75rem !important;
}

.main-home-container .orders-panel{
  gap: .5rem;
}

.home-search-group .form-control,
.home-search-group .input-group-text{
  min-height: 42px;
}

.home-toolbar{
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: .75rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: .2rem;
}

.home-toolbar > *{
  flex: 0 0 auto;
}

.home-toolbar .home-search-group{
  flex: 1 1 560px;
  min-width: 320px;
}

.home-toolbar .form-select{
  min-width: 118px;
}

.home-pagination-row{
  margin-top: .1rem;
  padding-top: .15rem;
}

.page-loader-overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(245, 249, 255, .75);
  backdrop-filter: blur(2px);
  z-index: 2000;
}

.page-loader-overlay.show{
  display: flex;
}

.page-loader-box{
  display: inline-flex;
  align-items: center;
  padding: .8rem 1rem;
  border-radius: .8rem;
  background: #fff;
  border: 1px solid #d9e3f1;
  box-shadow: 0 8px 24px rgba(18, 62, 111, .14);
  color: #274668;
  font-weight: 600;
}

@media (max-width: 992px){
  .main-grid-body{
    min-height: calc(100dvh - 220px);
  }

  .main-home-screen{
    height: calc(100dvh - 76px);
    min-height: calc(100dvh - 76px);
  }

  .hc-screen{
    height: calc(100dvh - 76px);
    min-height: calc(100dvh - 76px);
  }

  .main-home-container .main-grid-body{
    height: auto;
    min-height: calc(100dvh - 190px);
  }

  .hc-grid-body{
    height: auto;
    min-height: calc(100dvh - 190px);
  }
}

.legacy-form-shell{
  background: #e9e9e9;
  border: 1px solid #b8bcc3;
}

.legacy-title{
  font-weight: 700;
  color: #222;
  padding: 0 6px;
}

.legacy-box{
  border: 1px solid #aeb4bc;
  background: #f2f2f2;
}

.legacy-label{
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: #30363d;
  margin-bottom: 2px;
}

.legacy-input{
  border-radius: 0;
  border-color: #9da5ae;
  background: #f9f9f9;
  box-shadow: none !important;
}

.legacy-input[readonly]{
  background: #eceff2;
}

.legacy-textarea{
  min-height: 260px;
  resize: vertical;
  white-space: pre-wrap;
}

.legacy-gender{
  border: 1px solid #9da5ae;
  background: #eceff2;
  min-height: 31px;
}

.acto-modern-page{
  background:
    radial-gradient(700px circle at 92% -10%, rgba(49, 120, 198, .15), transparent 45%),
    radial-gradient(800px circle at -8% 110%, rgba(16, 87, 154, .15), transparent 45%);
}

.acto-hero{
  border-radius: 20px;
  background: linear-gradient(145deg, #f9fbff 0%, #f0f6ff 45%, #e7f0ff 100%);
}

.acto-chip{
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: rgba(28, 102, 176, .1);
  color: #11436f;
  font-size: .82rem;
  font-weight: 600;
}

.acto-card{
  border-radius: 20px;
  overflow: hidden;
}

.acto-card .card-header h2{
  color: #163e67;
  font-weight: 700;
}

.acto-label{
  font-size: .78rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-weight: 700;
  color: #4a5e77;
  margin-bottom: .35rem;
}

.acto-input{
  border-radius: .75rem;
  border: 1px solid #ccd9ea;
  background: #f8fbff;
  min-height: 40px;
}

.acto-input[readonly]{
  background: #eef3fa;
  color: #34475e;
}

.acto-input:focus{
  border-color: #76a8df;
  box-shadow: 0 0 0 .2rem rgba(31, 108, 183, .15);
}

.acto-group .form-control{
  min-width: 0;
}

.acto-sexo-panel{
  min-height: 40px;
  border: 1px solid #ccd9ea;
  border-radius: .75rem;
  background: #f8fbff;
}

.acto-textarea{
  min-height: clamp(240px, 42vh, 520px);
  resize: vertical;
}

@media (max-width: 992px){
  .acto-hero .btn{
    width: 100%;
  }
}
