


.docs-box{
  background: #fff;
  border: 1px solid rgba(2, 6, 23, .08);
  border-radius: 16px;
  padding: 18px 18px;
  box-shadow: 0 10px 28px rgba(2, 6, 23, .05);
  position: relative; 
}


.docs-subtitle{
  font-weight: 900;
  letter-spacing: .2px;
  color: #0f172a;
}


.docs-box .text-muted,
.docs-box p.text-muted,
.docs-box p{
  color: #475569;
}


.docs-box ul.sc-bullets{
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

.docs-box ul.sc-bullets li{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(2, 6, 23, .10);
  position: relative;
  z-index: 1;
}

.docs-box ul.sc-bullets li:last-child{
  border-bottom: 0;
}

.docs-box ul.sc-bullets li strong{
  color: #0f172a;
}



.docs-link{
  appearance: none;
  -webkit-appearance: none;

  border: 1px solid rgba(220, 38, 38, .25);
  background: rgba(220, 38, 38, .08);
  color: #b91c1c;

  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;

  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  cursor: pointer;
  white-space: nowrap;
  transition: transform .08s ease, filter .15s ease, background .15s ease, border-color .15s ease;

  
  position: relative;
  z-index: 5;           
  pointer-events: auto; 
}


.docs-link::before{
  content: "ⓘ";
  font-size: 14px;
  line-height: 1;
  opacity: .95;
  pointer-events: none; 
}

.docs-link:hover{
  background: rgba(220, 38, 38, .12);
  border-color: rgba(220, 38, 38, .35);
  filter: brightness(.98);
}

.docs-link:active{
  transform: translateY(1px);
}

.docs-link:focus{
  outline: 3px solid rgba(220, 38, 38, .18);
  outline-offset: 2px;
}


.ms-10{ margin-left: 10px; }


.docs-box ul.sc-bullets li .docs-link{
  margin-left: auto;
}



.docs-nav-list .docs-nav-link{
  border-radius: 999px;
  padding: 12px 14px;
  border: 1px solid rgba(2, 6, 23, .08);
  background: #fff;
  box-shadow: 0 8px 20px rgba(2, 6, 23, .04);
  transition: filter .15s ease, transform .08s ease, background .15s ease;
}

.docs-nav-list .docs-nav-link:hover{
  filter: brightness(.99);
}

.docs-nav-list .docs-nav-link:active{
  transform: translateY(1px);
}

.docs-nav-list .docs-nav-link.active{
  background: rgba(220, 38, 38, .10);
  border-color: rgba(220, 38, 38, .18);
}

.docs-nav-list .docs-nav-link span{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  background: rgba(220, 38, 38, .12);
  color: #b91c1c;
}



.modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  padding: 24px;

  
  pointer-events: none;
}

.modal.is-open{
  display: grid;
  place-items: center;
  pointer-events: auto;
}

.modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.60);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal__content{
  position: relative;
  width: min(720px, 100%);
  max-height: min(80vh, 760px);
  overflow: auto;

  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(2, 6, 23, .10);
  box-shadow: 0 22px 70px rgba(2, 6, 23, .45);

  z-index: 1;
}


.modal__header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;

  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(2, 6, 23, .08);
  background: linear-gradient(180deg, rgba(220,38,38,.08), rgba(255,255,255,0));
}

.modal__title{
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
}

.modal__body{
  padding: 14px 18px 18px;
}

.modal__text{
  margin: 0 0 12px;
  color: #334155;
  font-size: 15px;
  line-height: 1.7;
}

.modal__actions{
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}


.modal__link,
.modal__btn{
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.modal__link{
  background: #0b5fff;
  color: #fff;
}

.modal__btn{
  background: #f1f5f9;
  color: #0f172a;
}


.modal__close{
  width: 40px;
  height: 40px;
  border: 1px solid rgba(2, 6, 23, .08);
  border-radius: 12px;
  cursor: pointer;
  background: rgba(2, 6, 23, .06);
  color: #0f172a;
  font-size: 20px;
  line-height: 1;
}


.modal__body .docs-box{
  border-radius: 14px;
  padding: 14px 14px;
  box-shadow: 0 10px 24px rgba(2, 6, 23, .04);
}


.modal__content::-webkit-scrollbar{ width: 10px; }
.modal__content::-webkit-scrollbar-track{
  background: rgba(2, 6, 23, .04);
  border-radius: 999px;
}
.modal__content::-webkit-scrollbar-thumb{
  background: rgba(2, 6, 23, .18);
  border-radius: 999px;
}


@media (max-width: 575px){
  .docs-box ul.sc-bullets li{
    align-items: flex-start;
    flex-direction: column;
  }
  .docs-box ul.sc-bullets li .docs-link{
    margin-left: 0;
  }
}


#modalA4 .modal__content{
  width: min(1200px, 96vw);   
  max-width: 1200px;
}


#modalA4 .modal__content{
  max-height: 88vh;
}


#modalA4 .modal__body{
  padding: 18px 18px 20px;
}


#modalA4 .modal__content{
  width: min(1200px, 96vw);
  max-width: 1200px;
  max-height: 88vh;
}


#modalA4 .table-wrap{
  width: 100%;
  overflow: auto;                 
  border: 1px solid rgba(2,6,23,.12);
  border-radius: 14px;
  background: #fff;
}


#modalA4 table.docs-table{
  width: 100%;
  min-width: 980px;              
  border-collapse: collapse;     
  table-layout: fixed;           
}


#modalA4 table.docs-table thead th{
  position: sticky;              
  top: 0;
  z-index: 2;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 900;
  font-size: 14px;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(2,6,23,.16);
  border-right: 1px solid rgba(2,6,23,.12);
  text-align: left;
}


#modalA4 table.docs-table td{
  vertical-align: top;
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(2,6,23,.10);
  border-right: 1px solid rgba(2,6,23,.12);
  background: #fff;
}


#modalA4 table.docs-table th:last-child,
#modalA4 table.docs-table td:last-child{
  border-right: 0;
}


#modalA4 table.docs-table tbody tr:nth-child(even) td{
  background: rgba(2,6,23,.02);
}


#modalA4 table.docs-table col.col-cat{ width: 280px; }
#modalA4 table.docs-table col.col-serv{ width: auto; }
#modalA4 table.docs-table col.col-time{ width: 160px; }


#modalA4 .cell-cat{
  font-weight: 800;
  color: #0f172a;
}


#modalA4 .svc-code{
  font-weight: 900;
  color: #0f172a;
}


#modalA4 .notes{
  margin-top: 14px;
  color: #475569;
  font-size: 14px;
  line-height: 1.65;
}
#modalA4 .notes p{
  margin: 6px 0;
}


@media (max-width: 575px){
  #modalA4 table.docs-table td,
  #modalA4 table.docs-table thead th{
    font-size: 13px;
    padding: 10px 10px;
  }
}
