/* ============ Login Screen - Select Organization - OTP- Forgot Password ============ */
@media screen and (max-width: 1200px) {
  p, .title-heading {
    font-size: 13px;
  }

  .page-heading {
    font-size: 20px !important;
  }
}

@media screen and (max-width: 700px) {
  .login-row {
    width: 92%;
  }

  .login-form, .btn-login {
    width: 100%;
  }

  .page-heading {
    font-size: 18px !important;
  }
}

@media screen and (max-width: 520px) {
  .login-row {
    height: 64vh;
    padding: 20px 18px;
  }

  .login-form {
    margin-top: 40%;
  }

  .login-icon3 {
    top: 62%;
  }

  .btn-login {
    height: 40px;
    padding: 0px;
  }

  span.select2.select2-container.select2-container--default.select2-container--below {
    width: 100% !important;
  }

  .illustration img {
    width: 100px;
    margin-top: 20px;
  }

  h2 {
    font-size: 18px !important;
  }

  p {
    font-size: 14px;
  }
}

@media screen and (max-width: 400px) {
  .login-row {
    height: 56vh;
  }

  .form-input {
    height: 44px;
  }

  .login-form .form-label {
    font-size: 15px;
  }

  .login-form .row .col a,
  .login-form .row .col label,
  .login-form p.text-center {
    font-size: 14px !important;
  }
}

@media screen and (orientation: landscape) and (min-width: 500px) and (max-width: 850px) {
  .login-row {
    overflow: auto;
    height: 96vh !important;
    width: 84%;
  }

  .login-form {
    width: 100%;
    margin-top: 30%;
  }

  .login-form h2 {
    margin-top: 0 !important;
    margin-left: 6%;
  }

  .login-icon3 {
    top: 66px;
  }

  .illustration img {
    width: 100px;
    margin-top: 20px;
  }
  .form-logo {
    width: 120px;
    top: 16px;
  }

  .form-outline {
    margin-left: 6%;
    width: 88%;
  }

  .form-input {
    height: 40px;
  }

  .login-icon,
  .login-icon2 {
    width: 30px;
    top: 44%;
  }

  .login-form .form-label {
    font-size: 14px;
  }

  .login-form .row.px-2.mb-4 {
    width: 96%;
    margin-top: -20px;
    margin-left: 11px;
    font-size: 14px !important;
  }

  .form-outline .user-password {
    margin-top: -10px;
  }

  .btn-login {
    height: 40px;
    width: 88%;
    padding: 0;
    margin-left: 31px;
  }
}

/* =========== Signup navigation ============ */

@media screen and (max-width: 1500px) {
  .signup-row {
    width: 84%;
  }
}

@media screen and (max-width: 900px) {
  .signup-row {
    width: 94%;
    padding: 60px 50px;
  }

  .signup-row .signup-form {
    margin-top: 62px;
  }

  .logo-signup {
    width: 150px;
    top: 16px;
    left: 38%;
  }
}

@media screen and (max-width: 575px) {
  .signup-row {
    padding: 60px 28px;
  }

  .logo-signup {
    left: 30%;
  }

  .signup-form .organization-form div .col-3 {
    width: 50%;
    margin-bottom: 15px;
  }

  .signup-form .organization-form div .organization-name {
    font-size: 16px;
    line-height: 1.2;
  }

  .signup-form .organization-form div .nurse-type {
    margin-bottom: 30px;
  }
}

/* ============ Topbar Navigation ============ */

@media (max-width: 1500px) {
  .profile-section .btn-large-blue {
    width: 184px;
    font-size: 15px;
  }

  .select-organization-dropdown .form-control {
    width: 180px;
    font-size: 12px;
  }

  .user-profile-section {
    margin-right: -40px;
  }
  .user-profile-section h4 {
    font-size: 18px !important;
    margin-top: 4px;
  }

  .user-profile-section .role {
    font-size: 12px;
  }
}

@media screen and (max-width: 1200px) {
  .profile-section .col:nth-child(2) {
    display: none;
  }
}

@media screen and (max-width: 900px) {
  .form-input-class {
    display: none;
  }

  @media screen and (max-width: 500px) {
    .select-organization-dropdown {
      display: none;
    }
  }
}

/* ============ Sidebar ============ */
/* @media screen and (max-width: 1200px) {
  .navigation {
    width: 240px;
  }

  .navigation .active {
    width: 54px;
  }

  .main {
    width: calc(100% - 240px);
    left: 240px;
  }
} */

@media (max-width: 1200px) {
  .navigation.active {
    width: 0px;
    left: -10px;
  }

  .navigation {
    width: 260px;
  }

  .topbar .search-bar {
    position: absolute;
    top: -2px;
    right: 210px;
  }

  .search-bar .search-input {
    width: 190px;
    font-size: 12px;
  }

  .search-bar .toggle {
    z-index: 9;
    right: -200px;
  }

  .search-bar .form-input-class {
    position: absolute;
  }

  .profile-section {
    position: absolute;
  }

  .profile-section col:last-child {
    top: 0%;
  }

  .main,
  .main.active {
    width: 100%;
    left: 0;
    padding: 0 18px;
  }
}

@media (max-width: 800px) {
  .action-column {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
  }

  .page-heading {
    margin-bottom: 10px;
  }

  .profile-section {
    top: -10px;
  }
  
  .btn-group {
    justify-content: flex-start !important;
  }

  .modal-body .btn-group {
    flex-direction: row;
  }
}

@media screen and (max-width: 540px) {
  .action-column h2 {
    font-size: 25px;
    font-weight: 600;
  }

  .add-button {
    font-size: 14px;
    padding: 6px 9px;
    font-weight: 600;
    width: auto;
  }
}

@media screen and (max-width: 500px) {
  .btn-group {
    justify-content: flex-start !important;
    flex-direction: column;
  }
}

/* ============ Table View ============ */
@media screen and (max-width: 1200px) {
  .btn-group .add-button,
  .btn-group .cancel-button,
  .btn-group .close-button,
  .btn-group .notes__button-yes,
  .btn-group .notes__button-no {
    font-size: 13px;
  }
}

@media screen and (max-width: 800px) {
  th,
  td {
    font-size: 14px;
  }

  div.dataTables_wrapper div.dataTables_length,
  div.dataTables_wrapper div.dataTables_filter,
  div.dataTables_wrapper div.dataTables_paginate {
    text-align: left !important;
    margin-bottom: 10px !important;
  }

  .btn-group .add-button,
  .btn-group .cancel-button,
  .btn-group .close-button,
  .btn-group .notes__button-yes,
  .btn-group .notes__button-no {
    width: max-content;
    font-size: 12px;
    text-wrap: nowrap;
  }

}

/* ============ Display Information - View Screen ============ */

@media screen and (max-width: 1000px) {
  .detail-information {
    width: 100%;
  }

  .detail-information .row {
    width: 100%;
  }
}

@media screen and (max-width: 540x) {
  .detail-information .row {
    width: 48%;
  }

  .profile-section .dropdown {
    position: relative;
    top: -5px;
  }
}

/* ============ Edit Information - Form View ============ */
@media screen and (max-width: 1200px) {
  footer {
    width: 100% !important;
  }
  footer span {
    font-size: 9px;
  }
}

@media screen and (max-width: 640px) {
  .organization-form {
    width: 98%;
  }

  .btn-group .add-button {
    width: max-content;
    padding: 0 20px;
  }
}

/* ============ Footer Section ============ */

@media screen and (max-width: 756px) {
  footer span {
    display: none;
    position: relative;
  }
}

/* ============ Error Page ============ */

@media screen and (max-width: 540px) {
  .container {
    width: 94% !important;
    margin: 60px auto;
    padding: 40px 32px;
  }

  .error-image {
    width: 240px;
  }
}

/* ============ Event Log - Date Filter ============ */

@media screen and (max-width: 1260px) {
  .date-filter {
    top: 204px;
    right: 22px;
  }

  .date-filter__left .date-filter-form {
    display: flex;
    justify-content: start;
  }

  .date-filter__left .date-filter-form label {
    width: 140px;
  }

  .event-log {
    margin-top: 60px;
  }

  @media screen and (max-width: 880px) {
    .date-filter {
      top: 198px;
      left: 16px;
      width: auto;
    }

    .event-log {
      margin-top: 20px;
    }

    .date-filter__left .date-filter-form input,
    .date-filter__left .date-filter-form select {
      width: 100% !important;
    }

    .event-log {
      margin-top: 20px;
    }

    .date-filter {
      top: 250px;
      height: auto;
      width: 100%;
      padding: 20px 18px;
    }

    .date-filter__left {
      margin: 0;
    }

    .date-filter__left h4 {
      margin-bottom: 15px !important;
    }

    .date-filter__left .date-filter-form div {
      width: 100%;
    }

    .date-filter form label {
      margin-left: 0 !important;
      margin-right: 10px;
      width: 100px;
    }

    .date-filter form .search__date-button .search__date-button-search,
    .date-filter form .search__date-button .search__date-button-reset {
      display: none;
    }

    .date-filter form .search__date-button .search__date-button-hidden {
      display: inline-flex;
    }
  }

  @media screen and (max-width: 540px) {
    .date-filter {
      top: 204px;
      width: 100%;
    }
  }
}

/* ============ Settings Page ============ */

@media screen and (max-width: 1600px) {
  .setting-dropdown-option div {
    width: 50%;
  }
}

@media screen and (max-width: 1200px) {
  .setting-dropdown-option div {
    width: 100%;
  }
}

@media screen and (max-width: 500px) {
  .settings-container .main-settings {
    padding: 15px 14px;
  }

  .setting-dropdown-option {
    margin-top: 0px;
  }

  .setting-dropdown-option .title-heading,
  .form-label {
    line-height: 1.2;
  }
}

/* ============ Interactions Page ============ */
@media screen and (max-width: 1400px) {
  .interaction-type-table #example_wrapper .row:nth-child(1) {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
  }
}

/* ============ Client - Details Section ============ */
@media screen and (max-width: 1200px) {
  .client-navigation .tab-navigation {
    margin-top: 70px;
  }

  .tab-navigation .nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: scroll;
    overflow-y: hidden;
  }

  .tab-navigation .nav::-webkit-scrollbar {
    display: none;
  }

  .client-name-heading {
    top: 126px;
    left: 25px;
  }

  .report-text {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .client-name-heading {
    top: 124px;
    left: 25px;
  }
}

/* ============ Client - Template Page ============ */
@media screen and (max-width: 600px) {
  .treatment-new-template .form-heading {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .template-form-btn {
    padding: 2px 8px !important;
  }

  .accordion-header .add-member {
    top: 5px;
  }
}

/* ============ Client - Task Instructions ============ */
@media screen and (max-width: 1400px) {
  .delegate-task-client .left-column {
    display: flex;
    gap: 20px;
  }
}

@media screen and (max-width: 800px) {
  .delegate-task-client .left-column {
    flex-direction: column;
    gap: 0px;
  }

  .client-number {
    padding: 4px 10px;
  }
}

/* ============ Billing - Section ============ */
@media screen and (max-width: 1200px) {
  .billing-category-layout {
    width: 100%;
  }
}

@media screen and (max-width: 900px) {
  .add-billing-exclusion {
    width: 100%;
  }
}

/* ============ Reports Section ============ */
@media screen and (max-width: 1200px) {
  .report-filter,
  .report-table {
    padding: 0;
  }
}

/* ============ Record Management ============ */
@media screen and (max-width: 1200px) {
  .action-button .form-input-class {
    display: block;
    width: 100%;
  }

  .report-filter {
    border-right: 0px;
  }

  .report-filter .page-heading {
    font-size: 16px !important;
    margin-bottom: 0.2rem;
  }

  .action-button .form-input-class {
    display: block;
    width: 100%;
  }

  #current-reassignment .modal-dialog {
    max-width: 600px;
  }
}

@media screen and (max-width:800px) {
  .btn-group .form-input-class {
    width: 95vw;
  }
}

@media screen and (max-width: 600px) {
  .record-card .form-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    height: auto;
  }

  .record-card .page-heading {
    font-size: 15px !important;
  }

  .record-detail-card {
    width: 100%;
  }

  .btn-group .form-input-class {
    width: 90vw;
  }

  .btn-group .form-input-class.resource {
    width: 90vw !important;
  }
}

/* ============ Client - Treatments ============ */
@media screen and (min-width: 1200px) {
  .form-checkbox-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .form-checkbox-container .form-checkbox {
    margin-right: 20px;
  }
}

@media screen and (max-width: 800px) {
  .delegated-task-detail .form-heading {
    padding: 0;
  }
  .action-button {
    display: flex !important;
    justify-content: flex-start;
  }

  .task-instruction-status {
    top: 107px;
    right: 21px;
  }
}

@media screen and (max-width: 650px) {
  .delegated-task-detail .action-button .btn-group {
    flex-direction: column;
  }

  .treatment-heading-group {
    flex-direction: column;
    gap: 0;
  }

  .page-heading.new-template {
    margin-bottom: 24px;
  }

  .task-instruction-status {
    top: 118px;
    right: 32px;
  }

  #template-blue-btn,
  #template-green-btn {
    font-size: 14px;
  }
}

@media screen and (max-width: 450px) {
  .page-heading.new-template {
    margin-top: 30px;
    margin-bottom: 5px;
  }

  .task-instruction-status {
    top: 132px;
    left: 20px;
  }
}

/* ============ Client - Instructions ============ */
@media screen and (max-width: 1400px) {
  .delegated-task-detail .form-heading {
    padding: 15px 25px !important;
  }

  .delegated-task-detail .first-row {
    height: 67%;
  }

  .delegated-task-detail.instructions .action-button .btn-group {
    flex-direction: column;
    margin-bottom: 0;
  }
}

/* ============ Care Teams ============ */
@media screen and (max-width: 800px) {
  .reassign-client_right {
    border-left: none;
    padding-left: 10px; 
  }
}
