/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/*
 *= require actiontext
 *= require notes
 *= require point
 *= require breadcrumb
 *= require projects
 *= require manpower

 */

html, body {
    font-size: 16px;
}

[class*="col-"] .chosen-container {
    width:98%!important;
}
[class*="col-"] .chosen-container .chosen-search input[type="text"] {
    padding:2px 4%!important;
    width:90%!important;
    margin:5px 2%;
}
[class*="col-"] .chosen-container .chosen-drop {
    width: 100%!important;
}

/*
Hide required because its conflict with client
 */
.required::after {
    display: none;
}

.dt-column-title {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    font-size: 14px;
    color: #A0A3B1;
    gap: 5px;
}

.dt-column-order .sort-arrow {
    font-size: 12px;
    color: #A0A3B1;
    transition: color 0.2s ease;
    visibility: visible !important;
    opacity: 1 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.dt-column-order .arrow.active {
    color: black; 
}

.dt-column-order {
    display: inline-flex;  
    align-items: center;   
    overflow: visible !important;
   
}

.dt-column-title a {
    font-weight: bold;
    color: #A0A3B1 !important; 
    text-decoration: none;
    display: inline-block;
}

.date-column .dt-column-title a {
    color: black !important;
}

.duration-column .dt-column-title a {
    color: #A0A3B1 !important; 
}

.sort-arrow {
    font-size: 10px !important;
    width: 10px !important;
    height: 12px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-left: 4px;
    line-height: 1;
    position: relative;
    top: 3px;
}

.custom-toggle-switch {
    position: relative;
    width: 42px;
    height: 26px;
  }

  .custom-switch-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .custom-switch-label {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 34px;
    width: 100%;
    height: 100%;
    transition: background-color 0.3s;
  }

  .custom-switch-label::before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 2px;
    top: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
  }

  /* Checked state */
  .custom-switch-checkbox:checked + .custom-switch-label {
    background-color: #3E97FF;
  }

  .custom-switch-checkbox:checked + .custom-switch-label::before {
    transform: translateX(16px);
  }

  .table {
    border-radius: 8px;
    border: 1px solid #F1F1F2;
    background: #FFF;
    border-collapse: collapse;
  }

  .table th, .table td {
    padding: 12px 20px;
    border-left: none;
    border-right: none;
  }


  .breadcrumb-item + .breadcrumb-item::before {
    content: " > ";
    color: #6c757d;
    padding: 0 0.5rem;
  }



  .project-outer-container {
    display: flex;
    width: 1128px;
    padding: 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    border-radius: 16px;
    border: 1px solid #F1F1F2;
    background: #FFF;
    margin: 0 auto;
  }


.app-header {
    background-color: #FFFFFF !important;
}

  .card-header {
    border-bottom: none !important;
  }

  
  .select2-selection__choice {
    display: flex !important;
    flex-direction: row !important;
    height: 24px !important;
    padding: 4px 10px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 4px !important;

    border-radius: 9999px !important;
    background: #ECF8FF !important;

    color: #009EF6 !important;
    border: none !important;
    padding-right: 30px !important;

    /* Prevent text wrapping and handle overflow */
    max-width: 200px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

.select2-selection__choice .select2-selection__choice__display {
  margin-left: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.select2-selection__choice__remove:hover {
    color: #007acc !important;
    cursor: pointer;
}

.select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px;
    padding: 4px !important;
    align-items: center;
}

.select2-selection__choice__remove {
    position: absolute !important;
    right: 10px !important;
    background: none;
    border: none;
    color: #2884EF;
    font-size: 16px;
    width: 16px;
    height: 16px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

  
.btn-delete-custom {
  display: flex;
  padding: 12px 18px;
  align-items: center;
  gap: 6px;

  border-radius: 6px;
}



/* Notification Dropdown Responsive Styles */
.notification-dropdown {
  top: 100%;
  right: 0;
}

/* Desktop positioning */
.notification-dropdown-desktop {
  position: absolute !important;
  top: 100%;
  right: 0;
}

/* Mobile positioning */
.notification-dropdown-mobile {
  position: fixed !important;
  z-index: 1050 !important;
  -webkit-overflow-scrolling: touch;
}

/* iOS specific positioning */
.notification-dropdown-ios {
  position: absolute !important;
  z-index: 1050 !important;
  -webkit-overflow-scrolling: touch;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Fallback positioning */
.notification-dropdown-fallback {
  position: absolute !important;
  z-index: 1050 !important;
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
}

/* Touch-friendly improvements */
.notification-dropdown {
  touch-action: manipulation;
}

.notification-dropdown .d-flex.flex-stack {
  min-height: 44px; /* Minimum touch target size for iOS */
  cursor: pointer;
}

.notification-dropdown a {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  tap-highlight-color: rgba(0, 0, 0, 0.1);
  touch-action: manipulation;
}

/* Mobile styles for notification dropdown */
@media screen and (max-width: 767px) {
  .notification-dropdown {
    max-width: calc(100vw - 20px) !important;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  }
  
  .notification-dropdown .scroll-y {
    max-height: 60vh !important;
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
  }
  
  .notification-dropdown .menu-column {
    width: 100% !important;
  }
}

/* iOS Safari/Chrome specific fixes */
@supports (-webkit-appearance: none) {
  @media screen and (max-width: 767px) {
    .notification-dropdown-ios {
      /* Account for iOS safe areas */
      margin-left: max(10px, env(safe-area-inset-left));
      margin-right: max(10px, env(safe-area-inset-right));
      margin-top: max(5px, env(safe-area-inset-top));
    }
    
    .notification-dropdown-ios .scroll-y {
      /* Account for iOS dynamic viewport */
      max-height: min(60vh, 60dvh) !important;
    }
  }
}

/* Prevent iOS zoom on input focus (if any inputs are added later) */
@media screen and (max-device-width: 480px) {
  .notification-dropdown input[type="text"],
  .notification-dropdown input[type="email"],
  .notification-dropdown input[type="search"] {
    font-size: 16px !important;
  }
}

/* Notification badge alignment fixes */
.app-navbar-item .position-relative .badge {
  /* Position badge to overlap the top-right corner of the bell icon */
  position: absolute !important;
  top: 6px !important;
  right: 2px !important;
  transform: none !important;
  
  /* Ensure consistent size and appearance */
  min-width: 18px;
  min-height: 18px;
  padding: 0 !important;
  border-radius: 50% !important;
  font-size: 10px !important;
  line-height: 18px;
  font-weight: 600;
  text-align: center;
  display: flex !important;
  align-items: center;
  justify-content: center;
  
  /* Add subtle shadow and border for better visibility */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 2px solid #ffffff;
  
  /* Ensure it's above other elements */
  z-index: 10;
}

/* Specific positioning for notification bell */
.app-navbar-item .position-relative {
  /* Ensure the container has proper relative positioning */
  position: relative !important;
}

/* Override Bootstrap's translate-middle for better control */
.app-navbar-item .badge.translate-middle {
  transform: none !important;
}

/* Mobile adjustments for notification badge */
@media screen and (max-width: 767px) {
  .app-navbar-item .position-relative .badge {
    /* Slightly larger on mobile for better touch accessibility */
    min-width: 20px;
    min-height: 20px;
    line-height: 20px;
    font-size: 11px !important;
    top: 4px !important;
    right: 0px !important;
  }
}

