/*MAIN COLORS VARS*/
:root {
  --active-color:#0F7487;
  --hover-color:#23A3B8;
  --secondary-color:#0f738717;
  --attn-color: #b30909; 
  --attn-hover: #e22f2f; 
  --table-hover: #eef6ff;
  --main-back: #f8f9ff;
  --main-border:  #e5e7eb;
  --main-title: #304F73;
  --details-text :#5b6573;
}

/*BASIC STUFF*/

body {
    font-family:system-ui,Arial; 
}

a {
  color: var(--active-color);
  text-decoration: none;
}

a:hover {
  color: var(--hover-color);
  text-decoration: none;
}

dialog {
 margin-top: 5%;
}

.no-padding {
  padding: 0 !important;
}

.page-title {
  margin: 0;
  padding: 0 0 50px 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--main-title);
}

h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--main-title);
}
.page-title h2 {
  color: var(--main-title);
}

.page-title img{
  float: left;
  padding-right: 20px;
}

.page-subtitle{
  margin-top: 6px;
  color: #5b6573;
  font-size: 15px;
  font-weight: 550;
}

.page-meta {

  color: #5b6573;
  font-size: 14px;
  font-weight: 500;
}

input[type="checkbox"] {
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--active-color);
  border-radius: 4px;
  appearance: none;
  background-color: #fff;
  outline: none;
  transition: outline 0.1s;
  cursor: pointer;
}

input[type="checkbox"]:checked {
  background-size: cover;
  padding: 2px;
}

input[type="checkbox"]:hover {
  background-color: var(--hover-color);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' d='M7 17l6 6 12-14'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

input[type="checkbox"]:not(:disabled):checked {
  border-color: var(--active-color);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='none' stroke='%230F7487' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' d='M7 17l6 6 12-14'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

/* RADIO BUTTONS */

.radio-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
}

/* hide native */
.radio-wrap input {
  display: none;
}

/* outer circle */
.radio-ui {
  width: 14px;
  height: 14px;
  border: 1px solid #999;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  transition: all 0.2s ease;
}

/* inner dot */
.radio-ui::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: #0F7487;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s ease;
}

/* checked state */
.radio-wrap input:checked + .radio-ui {
  border-color: #0F7487;
}

.radio-wrap input:checked + .radio-ui::after {
  opacity: 1;
  transform: scale(1);
}

/* hover */
.radio-wrap:hover .radio-ui {
  border-color: #0F7487;
}

 /*.radio-wrap input:checked + .radio-ui::after {
  transform: scale(1.05);
}*/

.radio-wrap.pick-disabled {
  color: #9aa3a7;
  cursor: not-allowed;
  opacity: 0.75;
}

/* FILTERS */

.filter-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  margin-top: 20px;
}

.filter-box div {
  display: inline-flex;
  align-items: center;
}

.radio-wrap.pick-disabled .radio-ui {
  border-color: #c8cdd0;
  background: #eef1f2;
}

/* DATE PICKER force full container widht */
.flatpickr-wrapper {
  width: 100% !important;
}

/* PDF FRAME */

.pdf-frame-wrap {
  width: 100%;
  height: calc(100vh - 80px);
  background: var(--main-back);
  padding: 0;
  border-radius: 7px;
}

.pdf-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--main-back);
  border-radius: 7px;
}

/*flatPickr */

.flatpickr-day:hover, .flatpickr-day.today:hover {
  background: var(--hover-color);
}

.flatpickr-day.today {
  border-color: var(--active-color);
  color: var(--active-color);
}

/*CONTAINERS*/
.app-shell {
  min-height: 100vh;
  width: 100%;
  background: var(--main-back);
 }

.app-content {
  padding: 20px;
  width:90%; 
  margin: 0 auto;

}

.header {
  width:100%; 
  background: #fff;
  border-bottom: 1px solid var(--main-border);
}

.header-content {
  width:90%; 
  margin: 0 auto;
}

.header-top {
  min-height: 70px;
}

/*USER CPANEL HEADER*/

.user_box {
  display: flex;
  align-items:start ;
  justify-content: flex-end;
  gap: 14px;
  text-align: right;
}

.user_icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
}

.user_text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
}

.user_text strong {
  font-weight: 700;
}

.user_text a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/*TOP TABS NAV */
.top-nav {
  width: 100%;
  background: #ffffff;
  
}

.top-nav__inner {
  display: flex;
  align-items: center;
}

.top-nav__link {
  top: 1px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  width: 140px;
  border-top-left-radius:7px;
  border-top-right-radius: 7px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--active-color);
  white-space: nowrap;
  overflow:hidden;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.top-nav__recents {
  justify-content: center;
  font-size: 14px;
  padding-left: 15px;
  padding-right: 15px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.top-nav-label {
  width: 110 px; 
  font-size: 14px;
  padding-left: 15px;
  padding-right: 15px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.top-nav__link.is-active {
  top: 1px;
  background: var(--main-back);
  color: var(--active-color);
  border-left: 1px solid var(--main-border);
  border-top: 1px solid var(--main-border);
  border-right: 1px solid var(--main-border);
  border-bottom: 1px solid var(--main-back);
  z-index: 2;
}

.top-nav__link:hover {
  background: var(--active-color);
  color: #fff;
}

/*TYPE INPUT DEFAULT & FORM STUFF*/
.pass-toggle{
  cursor:pointer;
  color:var(--active-color);
  margin-left: -40px;
}
.form-input {
    position: relative;
    font-size: inherit;
    margin-top:20px;
}

.form-input input, .form-input textarea {
    width:100%; 
    box-sizing:border-box; 
    border-width: 1px;
    background-color: #fff;
    border-radius: 7px;
    border-color: #ccc;
    border-style: solid;
    height: 40px;
    padding-left:10px; 
    transition: 0.1s;
    outline: none;
}

.form-input textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.4;
}

/*style="padding:10px;border:1px solid #ccc;border-radius:8px;width:100%;"*/
.form-input select {
    width:100%; 
    box-sizing:border-box; 
    border-width: 1px;
    background-color: #fff;
    border-radius: 7px;
    border-color: #ccc;
    border-style: solid;
    height: 40px;
    padding-left:10px; 
    transition: 0.1s;
    outline: none;
}

.form-input input:hover {
  border-color: #121212;
}

.form-input input:focus {
    border-color: var(--active-color);
}

.form-input label {
  position: absolute;
  z-index: 3;
  font-size:12px;
  font-weight:700; 
  top: 12px;
  left: 10px;
  pointer-events: none;
  transition: 0.2s;
  color: #0009;
}

.l-align {
  left: 0 !important;
}
.form-input:has(input:focus) label {
  color: var(--active-color);
}

.form-input:has(input:focus) label,
.form-input:not(:has(input:placeholder-shown)) label {
  top: -15px;
  left: 10px;
}

.form-input input::placeholder {
  opacity: 0;
  transition: 0.2s;
  color: #2b292997;
}

.form-input input:focus::placeholder {
  opacity: 1;
}

.form-info {
  align-items:center;
  justify-content:space-between;
  margin:15px 0 ;
  padding:10px;
  border:1px solid #d9e7ff;
  background:#f5f9ff;
  border-radius:7px;
  font-size:13px;
}

.form-inline-flex {
  display: flex;
  gap: 10px;
  align-items: center;
  height: 40px; /* matches inputs */
}

.form-inline-flex label {
  font-size:12px;
  font-weight:700; 
  pointer-events: none;
  transition: 0.2s;
  color: #0009;
}

.form-input.has-error input,
.form-input.has-error select,
.form-input.has-error textarea {
  background: #fff1f1;
  border-color: #d64545;
}

.form-input.has-error label {
  color: #b42318;
}

.form-field-error {
  margin-top: 5px;
  font-size: 12px;
  color: #b42318;
  font-weight: 600;
}

.form-error-summary {
  border: 1px solid #f0b4b4;
  background: #fff1f1;
  color: #8a1f1f;
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 13px;
}

.form-error-summary strong {
  display: block;
  margin-bottom: 6px;
}

.form-error-summary ul {
  margin: 0;
  padding-left: 18px;
}

/* modal*/
.modal_box:not([open]) {
  display: none;
}

.modal_box[open] {
  display: flex;
  flex-direction: column;
  min-width: 400px;
  overflow-y: auto;
}

.modal_box{
  border:1px solid #ddd; 
  border-radius:7px; 
  padding:0;
  width: 50%;
  display: flex;
  flex-direction: column;
}

.half{
  width: 30%;
}

.modal_box > form {
  flex: 0 0 auto;
  background: #fff;
  border-radius:7px; 
  z-index: 2;
}

#modalBody {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px;
}

.modal_grid { 
    display:grid; 
    grid-template-columns: repeat(7, 1fr); 
    gap:10px; 
    width: 100%;
}

.modal_line{
   border:0;
   border-bottom:1px solid var(--main-border);
   margin:5px 0; 
   padding-bottom:10px;
   font-size: 14px;
   color: var(--details-text);
}

.confirm-modal {
  width: min(460px, 92vw);
  max-height: none;
  padding: 0;
  border:1px solid #ddd; 
  border-radius:7px; 
  overflow: hidden;
}
.help-modal {
  width: min(560px, 92vw);

}

.help-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  margin-left:5px;
  vertical-align: -0.18em;
  background-image: url('/internal/assets/img/questionv2.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  cursor: pointer;
}

.help-icon:hover  {
  transform: scale(1.25);
  transition: transform 0.15s ease;
}


.confirm-card {
  padding: 20px;
  background: #fff;
}

.confirm-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--main-title);
}

.confirm-text {
  font-size: 14px;
  margin-bottom: 18px;
  color: var(--main-title);
}

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

/* action message */

.flash-message {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  border-radius: 7px;
  margin-bottom: 10px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  opacity: 1;
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.flash-icon img {
  width: auto;
  height: 45px;
  flex-shrink: 0;
}

.flash-text {
  flex: 1;
}

.flash-message.success {
  background: #e6f7ec;
  color: #1e7e34;
  border: 1px solid #b7e4c7;
}
.flash-message.demo_restriction {
  background: #fad37e;
  color: #2b4f34;
  border: 1px solid #ad9d61;
}

.flash-message.fade-out {
  opacity: 0;
  transform: translateY(-5px);
}

/*12 col grid */

.grid { 
    display:grid; 
    grid-template-columns: repeat(12, 1fr); 
    gap:10px; 
    width: 100%;
}

.c12 {
    grid-column:span 12;
} 

.c11 {
    grid-column:span 11;
    align-self: start;
} 

.c10 {
    grid-column:span 10;
    align-self: start;
} 

.c9 {
    grid-column:span 9;
    align-self: start;
} 

.c8 {
    grid-column:span 8;
    align-self: start;
} 

.c7 {
    grid-column:span 7;
} 

.c6 {
    grid-column:span 6;
} 

.c5 {
    grid-column:span 5;
} 

.c4 {
    grid-column:span 4;
} 

.c3 {
    grid-column:span 3;
} 

.c2 {
    grid-column:span 2;
} 

.c1 {
    grid-column:span 1;
    display:grid;
    justify-content: left;
}

.c1-fixed {
    grid-column:span 1;
    
}

.c-auto {
  grid-column: auto;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.actions {
  display: flex;
  gap: 10px;
}

.dashboard-side {
  position: sticky;
  top: 20px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-self: start;
}
  
.main-card {
  align-items:center;
  justify-content:space-between;
  min-height: 200px;
  margin:15px 0 0 10px;
  padding:10px;
  border:1px solid #d9e7ff;
  background:#f5f9ff;
  border-radius:7px;
  font-size:13px;
}

/* TABLE DEFAULTS */

table {
    border-collapse:collapse; 
    width:100%; 
    border-style: hidden;
    font-size: 14px;
}

tbody tr:hover{
  background: var(--table-hover);
  overflow: hidden;
}

th, td { 
    border:1px solid #ddd; 
    padding:5px; 
    text-align:left; 

}

th {
    background: var(--secondary-color);
    overflow: hidden;
    font-weight: 600;
    vertical-align:center; 
}

th:first-of-type {
  border-top-left-radius: 7px;
}
th:last-of-type {
  border-top-right-radius: 7px;
}
tr:last-of-type td:first-of-type {
  border-bottom-left-radius: 7px;
}
tr:last-of-type td:last-of-type {
  border-bottom-right-radius: 7px;
}

.table-wrapper {
  border: 1px solid #ddd;
  border-radius: 7px;
  margin-top:16px;
  background: #fff;
  }

.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: var(--active-color);
}

.table-action:hover {
  background: #eaf5f8;
}  

.expired {
  background-image:url('data:image/svg+xml,<svg height="10" width="10" xmlns="http://www.w3.org/2000/svg"><circle r="4" cx="4" cy="6" fill="red" /></svg>');
  background-repeat: no-repeat;
  background-position: 5px center;
  padding-left:20px;
  line-height: 1.2em;
}

.soon {
  background-image:url('data:image/svg+xml,<svg height="10" width="10" xmlns="http://www.w3.org/2000/svg"><circle r="4" cx="4" cy="6" fill="orange" /></svg>');
  background-repeat: no-repeat;
  background-position: 5px center;
  padding-left:20px;
  line-height: 1.2em;
}

.ok {
  background-image:url('data:image/svg+xml,<svg height="10" width="10" xmlns="http://www.w3.org/2000/svg"><circle r="4" cx="4" cy="6" fill="green" /></svg>');
  background-repeat: no-repeat;
  background-position: 5px center;
  padding-left:20px;
  line-height: 1.2em;
}

/* BUTTONS */
.icon {
  height: 20px;
  width: 20px;
  margin-right: 10px;
}

.btn, .btn-large, .btn-small {
  border: none;
  border-radius: 7px;
  display: flex;
  align-items: center;
  height: 40px;
  line-height: 40px;
  padding: 0 16px;
  text-transform: uppercase;
  vertical-align: middle;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  color: #fff;
  background-color: var(--active-color);
  text-align: center;
  letter-spacing: .5px;
  -webkit-transition: background-color .2s ease-out;
  transition: background-color .2s ease-out;
  cursor: pointer;
  white-space: nowrap;
  font-size:14px;
}

 .btn-small {
  border: none;
  border-radius: 4px;
  display: flex;
  align-items: center;
  height: 30px;
  line-height: 30px;
  padding: 0 10px;
  text-transform: uppercase;
  vertical-align: middle;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  color: #fff;
  background-color: var(--active-color);
  text-align: center;
  letter-spacing: .5px;
  -webkit-transition: background-color .2s ease-out;
  transition: background-color .2s ease-out;
  cursor: pointer;
  white-space: nowrap;
  font-size:12px;
}

.doc-actions {
  position: sticky;
  top: 20px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-btn {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  justify-content: center;
}

.btn-floating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  z-index: 1;
  width: 27px;
  height: 27px;
  line-height: 27px;
  padding: 0;
  background-color: var(--active-color);
  border-radius: 5px;
  -webkit-transition: background-color .3s;
  transition: background-color .3s;
  cursor: pointer;
  vertical-align: middle;
  outline: none;
  border:none;
}

/*i.left {
  position: absolute;
  justify-self: start;
}*/

.grey{
  background-color: var(--main-back);
  color: var(--active-color);
  border: 1px solid var(--active-color);
}

.btn-floating .material-icons {
  font-size: 20px;
}

.btn:hover, .btn-large:hover, .btn-small:hover, .btn-floating:hover {
  background-color: var(--hover-color);
    color:#fff;
}

.btn-floating:hover {
  color:#fff;
}

.attention {
 background-color: var(--attn-color);
}

.attention:hover {
 background-color: var(--attn-hover);
}
/* MESSAGE CARDS TO FIX !!!!!!!!!!!!!!!!!!!!!!! */
.msg-ok {
    background:#e6ffed; 
    border:1px solid #9be9a8; 
    padding:10px; 
    border-radius:8px; 
    margin:10px 0; 
}

.msg-err { 
    background:#ffeef0; 
    border:1px solid #ffb8c0; 
    padding:10px; 
    border-radius:8px; 
    margin:10px 0; 
}

/* PAGINATION */

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.pagination li {
  display: flex;
}

.pagination a,
.pagination span {
  min-width: 35px;
  height: 35px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--main-border);
  border-radius: 7px;
  background: #fff;
  color: #374151;
  text-decoration: none;
  font-weight: 600;
  transition: 0.15s ease;
  box-sizing: border-box;
}

.pagination-icon {
  font-size: 20px;
  line-height: 1;
}

.pagination a:hover, .pagination .pagination-icon a:hover{
  background: var(--hover-color);
  color: #fff;
}

.pagination li.active span {
  background: var(--active-color);
  color: #fff;
  border-color: var(--active-color);
}

.pagination li.disabled span {
  color: #9ca3af;
  background: #f8f8f8;
  border-color: var(--main-border);
  cursor: default;
}

.pagination li.chevron a,
.pagination li.chevron span {
  border: none;
  background: transparent;
  padding: 0 6px;
  min-width: auto;
}

.pagination li.chevron a:hover {
  background: transparent;
  color: var(--active-color);
  transform: translateX(1px);
}

.pagination li.chevron.disabled span {
  color: #cbd5e1;
}


/*OLD STUFFF TO CHECK OUT */


.panel {
    border:1px solid #e5e5e5; 
    border-radius:12px; padding:14px; 
    margin:12px 0; 
}

    
.req { 
    color:#b30000; 
    margin-left:4px; 
}


.icon-btn {
      background:transparent;
      border:1px solid #ddd;
      color:#111;
      padding:6px 8px;
      border-radius:8px;
      cursor:pointer;
      margin-right:6px;
    }

.icon-btn:hover { 
    background:#f4f6f8; 
}
#modal { 
      max-height: 90vh;
      overflow: hidden;
}

#modalBody {  
      max-height: calc(90vh - 90px);
      overflow-y: auto; 
      overscroll-behavior: contain;
}


.modal{
      position:fixed; inset:0;
      background:rgba(0,0,0,.35);
      display:none; align-items:center; justify-content:center;
      padding:24px;
    }

.modal.open { 
    display:flex; 

}
.modal-card {
      width:min(1100px, 100%);
      background:#fff;
      border-radius:14px;
      padding:16px;
      box-shadow:0 10px 30px rgba(0,0,0,.25);
      max-height:90vh;
      overflow:auto;
}

#modalTitle {
  color: var(--main-title);
}
.sk-row{
      height: 18px;
      border-radius: 8px;
      margin: 10px 0;
      background: linear-gradient(90deg, #eee 25%, #f6f6f6 37%, #eee 63%);
      background-size: 400% 100%;
      animation: sk 1.2s ease infinite;
}

@keyframes sk {
      0% { background-position: 100% 0; }
      100% { background-position: 0 0; }
}

@media (max-width: 980px) { 
    .c6,.c4,.c3 {
        grid-column:span 12;
    } 
    .c1 {grid-column:span 6;
    } 
}    

@media (max-width: 640px) {
  .top-nav__inner {
    padding: 12px 14px;
    gap: 8px;
  }

  .top-nav__link {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }
}