/* FLAG ICONS */
@import url('flag-icons.min.css');

/* PHONE INPUT */

.phone-country-item:hover {
  background-color: #f0f0f0;
}

.phone-country-item.active {
  background-color: #e9ecef;
  font-weight: 600;
}

.phone-country-btn {
  white-space: nowrap;
  border-top-left-radius: 0.375rem !important;
  border-bottom-left-radius: 0.375rem !important;
  border-top-right-radius: 0px !important;
  border-bottom-right-radius: 0px !important;
}

.phone-country-btn .fi,
.phone-country-item .fi {
  display: inline-block;
  width: 1.333em;
  height: 1em;
  vertical-align: middle;
}

.phone-input-group .phone-number-display {
  border-top-left-radius: 0px !important;
  border-bottom-left-radius: 0px !important;
  border-top-right-radius: 0.375rem !important;
  border-bottom-right-radius: 0.375rem !important;
}

/* BASE */

body {
  background-color: #ededed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.footer {
  margin-top: auto;
}

a {
  color: #000000;
}

.col {
  flex: 1;
  min-width: 0;
}


/* LAYOUT */

.bg-form-page {
  background: #f9fafe;
}

.page-content {
  max-width: 1100px;
}

.list-content {
  max-width: 90%;
}


/* NAVBAR & NAVIGATION */

.navbar {
  padding: 0%;
}

.navbar .navbar-brand {
  width: auto;
}

.navbar-brand-logo {
  width: 15%;
  height: 15%;
  margin-bottom: 1%;
  object-fit: contain;
}

.logout-form {
  margin: 0;
}

.bell-icon {
  font-size: 1.2rem;
}

.nav-link:hover,
.nav-link:focus {
  color: #0d6efd !important;
}

.nav-link.active,
.dropdown-toggle.active,
.dropdown-item.active {
  font-weight: 600;
  color: #0d6efd !important;
  background-color: transparent !important;
}

.dropdown:hover .dropnav .dropdown-menu {
  display: block;
  margin-top: 0;
}

.dropdown-menu {
  min-width: 180px;
  left: auto;
  overflow-x: auto;
  background-color: #f1f1f1;
}

.menu-right {
  right: -10px;
}

.dropdown-menu .sticky-top {
  top: 0;
  z-index: 1;
}

.dropdown-menu .sticky-bottom {
  bottom: 0;
  z-index: 1;
}

.dropdown-content a {
  display: block;
  padding: 4px 8px;
  text-decoration: none;
  color: #333;
  border-radius: 4px;
  margin-bottom: 2px;
}

.dropdown-content a:hover {
  background: #f1f1f1;
}

#overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
}


/* CARDS */

.page-card,
.section-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-card h5 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.contract-form-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
  padding: 2rem;
}

.contract-form-card label {
  font-weight: 500;
  color: #495057;
  margin-bottom: .3rem;
}

.contract-form-card .form-control {
  border-radius: .5rem;
  border: 1px solid #ced4da;
  transition: border-color .2s, box-shadow .2s;
}

.contract-form-card .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, .15);
}

.change-password-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
  padding: 2rem;
}

.change-password-card label {
  font-weight: 500;
  color: #495057;
  margin-bottom: .3rem;
}

.change-password-card .form-control {
  border-radius: .5rem;
  border: 1px solid #ced4da;
  transition: border-color .2s, box-shadow .2s;
}

.change-password-card .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, .15);
}

.change-password-card .wrapper {
  position: relative;
}

.change-password-card .wrapper input {
  padding-right: 2.5rem;
}

.change-password-card .wrapper button {
  position: absolute;
  right: .5rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #6c757d;
}

.change-password-card .btn-primary {
  border-radius: 2rem;
  padding: .6rem 1.5rem;
  font-weight: 500;
}

.login-card {
  min-width: 350px;
  max-width: 500px;
  border-radius: 18px;
}

.login-title {
  color: #2563eb;
}

.info-card {
  min-width: 400px;
  max-width: 700px;
  border-radius: 18px;
}


/* TABLE */

Table {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
}

Table thead th {
  background: #f8f9fb;
  font-weight: 600;
  color: #495057;
  border-bottom: 2px solid #dee2e6;
  padding: 0.75rem;
  text-align: center;
}

Table tbody td {
  vertical-align: middle;
  padding: 0.75rem;
  border-bottom: 1px solid #f1f3f5;
}

Table tbody tr:hover {
  background-color: #f5f7fa;
  transition: background-color 0.2s ease;
}

Table .badge {
  padding: .45em .8em;
  font-size: .8rem;
  border-radius: 2rem;
}

Table .chip-tag {
  font-size: .8rem;
  background: #fdfdfd;
}


/* FORMS & INPUTS */

.wrapper {
  position: relative;
}

.wrapper button {
  position: absolute;
  top: 0%;
  right: 5px;
}

.dt-search {
  display: none;
}

.multiselect-dropdown .form-select {
  border-radius: .5rem;
  border: 1px solid #ced4da;
}

.multiselect-dropdown .dropdown-menu {
  border-radius: .5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.dropdown-select-btn {
  min-height: 46px;
}

.dropdown-select-menu {
  max-width: 350px;
  bottom: 100% !important;
  top: auto !important;
  transform: none !important;
  margin-bottom: 4px;
}

.dropdown-select-list {
  max-height: 300px;
}


/* BUTTONS */

.btn {
  border-radius: 2rem;
  padding: .5rem 1.5rem;
  font-weight: 500;
}

.buttondownload {
  position: relative;
  overflow: hidden;
  height: 2rem;
  padding: 0 1rem;
  border-radius: 1.5rem;
  background: #3d3a4e;
  background-size: 400%;
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.buttondownload::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: 0 50%;
  width: 100%;
  height: inherit;
  border-radius: inherit;
  background: linear-gradient(82.3deg, rgb(0, 132, 255) 10.8%, rgb(17, 0, 255) 94.3%);
  transition: all 0.475s;
}

.buttondownload:hover::before,
.buttondownload.active::before {
  transform: scaleX(1);
}

.buttondownload-content {
  position: relative;
  z-index: 1;
}


/* TAGS & CHIPS */

.tag-label {
  background-color: #e2e1e1;
  border-radius: 20px;
  padding: 2px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tag-label .remove-tag {
  cursor: pointer;
  font-weight: bold;
}

.chip-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border-radius: 999px;
  padding: .25rem .7rem;
  margin: .2rem;
  background: #fff;
  border: 1px solid #dee2e6;
  font-size: .85rem;
}

.chip-tag .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid #ccc;
}

.selected-display .chip-tag {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: .25rem .6rem;
  font-size: .85rem;
}

.tag-filter {
  display: none;
}

.color-picker {
  width: 60px;
  height: 40px;
  cursor: pointer;
}


/* LIST GROUP */

.list-group-item {
  border: none;
  border-bottom: 1px solid #eee;
}

.list-group-item:last-child {
  border-bottom: none;
}


/* ALERTS & TOASTS */

.toast-wrapper {
  z-index: 1080;
  min-width: 320px;
}

.toast-icon {
  margin-left: 1em;
  height: 1.5em;
}

#alertData {
  display: none;
}


/* DIALOGS & MODALS */

dialog.dialog-large {
  max-width: 800px;
  width: 90%;
}

dialog.dialog-large::backdrop {
  background: rgba(0, 0, 0, .5);
}

dialog[open] {
  animation: zoom 0.2s ease-out;
}

.deleteDialog {
  background-color: white;
  border-radius: 8px;
}

.confirm-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  min-width: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.c-modal {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
  z-index: 1050;
}

.c-modal:target {
  opacity: 1;
  visibility: visible;
}

.c-backdrop {
  position: absolute;
  inset: 0;
  display: block;
  background: rgba(0, 0, 0, .5);
}

.c-modal__card {
  position: relative;
  margin: 10vh auto;
  max-width: 420px;
  background: #fff;
  border-radius: .75rem;
  padding: 1.25rem;
}


/* PAGE HEADERS */

.user-header {
  font-size: 0.85rem;
  color: #6c757d;
  background-color: #f9f9f9;
  border-bottom: 2px solid #dee2e6;
}

.list-header-bar {
  background: #ebebeb !important;
}

.header-actions {
  max-width: 400px;
}

.search-input-sm {
  max-width: 200px;
}


/* UTILITIES */

.muted-label {
  font-size: .9rem;
  font-weight: 500;
  color: #6c757d;
}

.toggle-icon {
  transition: transform 0.35s ease;
  transform: rotate(0deg);
}

.change-password-main {
  min-height: 80vh;
}

.info-page-wrapper {
  height: calc(90vh - 80px);
}

#pdfInline {
  width: 100%;
  height: 65vh;
  border: 0;
  border-radius: .5rem;
}


/* COMPACT MODE */

.compact .muted-label {
  font-size: .875rem;
  margin-bottom: .125rem;
}

.compact h2 {
  font-size: 1.5rem;
}

.compact p {
  margin-bottom: 10px;
}

.compact .dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
}

body.compact .container,
body.compact .container-fluid {
  padding-left: 100px;
  padding-right: 100px;
}

body.compact .row {
  --bs-gutter-x: .75rem;
  --bs-gutter-y: .75rem;
}

body.compact .section-card {
  padding: .75rem .875rem;
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
}

body.compact .list-group-item {
  padding: .5rem .625rem;
  border-color: #e5e7eb;
}

body.compact .chip-tag {
  border: 1px solid #e5e7eb;
}


/* ANIMATIONS */

@keyframes zoom {
  from {
    transform: scale(.95);
  }

  to {
    transform: scale(1);
  }
}


/* MEDIA QUERIES */

@media (min-width: 1900px) {
  .container-xxl {
    max-width: 1750px;
  }
}

@media (prefers-color-scheme: dark) {
  .c-modal__card {
    background: white;
    color: black;
  }
}
