/* You can add global styles to this file, and also import other style files */

.p-dropdown {
  width: 100% !important;
  min-width: auto !important;
}

.p-dropdown .p-dropdown-panel {
  min-width: 100%;
  width: max-content;
  z-index: 9999;
}

.p-dropdown-panel .p-dropdown-items .p-dropdown-item:not(.p-highlight):not(.p-disabled).p-focus {
  color: #3560d6 !important;
  background: #EFF6FF !important;
}

.p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight {
  color: #fff;
  background: #1D4ED8;
}


.p-calendar {
  width: 100% !important;
}
/* .ng-star-inserted {
  text-align: left !important;
} */
.spinner_overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #0000009e;
  opacity: 0.2;
  z-index: 9999;
}

@media only screen and (max-width: 600px) {
  body .p-dialog {
    width: 100% !important;
  }
}

body .p-dialog .p-dialog-content {
  max-height: 600px;
  overflow-y: auto;
}

.error-message {
  color: red;
}

.p-datatable .p-datatable-tbody > tr > td {
  word-wrap: break-word;
}

.btn-file {
  position: relative;
  overflow: hidden;
}

.btn-file input[type="file"] {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 100%;
  min-height: 100%;
  font-size: 100px;
  text-align: right;
  filter: alpha(opacity=0);
  opacity: 0;
  outline: none;
  cursor: inherit;
  display: block;
}

.image {
  position: fixed;
  top: 50%;
  left: 50%;
  margin: -60px 0 0 -60px;
  -webkit-animation: spin 4s linear infinite;
  -moz-animation: spin 4s linear infinite;
  animation: spin 4s linear infinite;
  z-index: 9999;
}

@-moz-keyframes spin {
  100% {
    -moz-transform: rotate(360deg);
  }
}

@-webkit-keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@media screen and (max-width: 40em) {
  body .p-tabview.p-tabview-top .p-tabview-nav li {
    width: 100% !important;
  }
  body .p-datatable.p-datatable-responsive .p-datatable-tbody > tr > td {
    border: 1px solid #c8c8c8 !important;
  }
}

/* input[readonly],
input[disabled] {
  background-color: #c8c8c899 !important;
  color: navy !important;
} */

body .p-state-disabled,
body .p-widget:disabled {
  opacity: 1 !important;
}

.angular-editor-toolbar {
  display: none;
}

.angular-editor-textarea {
  min-height: 200px !important;
}

body .p-dialog {
  z-index: 2000 !important;
}

body .p-dropdown-panel {
  z-index: 3000 !important;
}

.flex-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-around;
}
/* Chrome, Safari, Edge, Opera */

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Firefox */

input[type="number"] {
  -moz-appearance: textfield;
}


div:where(.swal2-container) .swal2-input {
  height: 2em !important;
}



/* SweetAlert2 checkbox styling for responsibility confirm */
.swal2-checkbox {
  background: transparent !important;   /* remove the white block behind the label */
  padding: 0 !important;
  border: 0 !important;
}

/* Our hook class added via customClass.input */
.dr-confirm-checkbox {
  /* Ensure the label text looks neat */
  .swal2-checkbox span {
    margin-left: 8px;
  }

  /* Make the native checkbox transparent and blue when checked */
  .swal2-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    /* Transparent background; rely on system checkbox with blue accent */
    background-color: transparent !important;
    /* Modern, easiest way to colour the checkbox tick */
    accent-color: #2563eb; /* blue-600 */
    /* For older browsers, keep it native (no heavy custom paint) */
  }

  /* Optional: remove any hover bg from the label */
  .swal2-checkbox:hover {
    background: transparent !important;
  }
}

/* Disabled confirm button appearance (optional, if your theme needs it) */
.swal2-actions .swal2-confirm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}


div:where(.swal2-container) .swal2-radio input, div:where(.swal2-container) .swal2-checkbox input {
  width: 20px;
    height: 20px;
    accent-color: #6555C5 !important;
}

/* The box that SweetAlert2 paints */
.swal2-checkbox .swal2-label::before {
  border: 2px solid #2563eb !important;   /* blue border */
  background: transparent !important;     /* transparent background */
}

/* When checked, fill the box blue */
.swal2-checkbox input[type="checkbox"]:checked ~ .swal2-label::before,
.swal2-checkbox input[type="checkbox"]:checked + .swal2-label::before {
  background: #2563eb !important;
  border-color: #2563eb !important;
}





:host ::ng-deep .dr-ack-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent !important;
  padding: 0;
  margin-top: 8px;
}

:host ::ng-deep .dr-ack-input {
  width: 18px;
  height: 18px;
  margin: 0;
  background: transparent !important;
  accent-color: #2563eb !important; /* blue tick */
}

:host ::ng-deep .dr-ack-label {
  font-weight: 600;
}

/* Optional: disabled Proceed look */
:host ::ng-deep .swal2-actions .swal2-confirm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}
