/*
 * 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.
 */

 /* NOTE: Project configured with tailwindcss-rails. Import css in ../tailwind/application.css instead of this file. */

 trix-toolbar .trix-button-group{
    margin-bottom: 0 !important;
    margin-left: 0 !important;
  }

  /* Attachments are not supported — hide file/attach control everywhere Trix is used */
  trix-toolbar .trix-button-group--file-tools,
  trix-toolbar [data-trix-action="attachFiles"] {
    display: none !important;
  }
  .trix-button-row{
    background: #F1F2F3 !important;
  }
  .trix-button-group{
    border: none !important;
  }
  trix-toolbar .trix-button--icon::before{
    background-size: auto !important;
    
  }
  .trix-container:has(.trix-content:focus){
    border: 2px solid #DD6202 !important;
  }

  /* Not working - selector revised below */
  trix-toolbar .trix-button-group .trix-button--icon:not(:last-child)::before{
    margin: 10px 0;
    border-right: 1px solid #C2C5CB;
  }
  .trix-button--icon-link{
    border-right: 1px solid #C2C5CB;

  }
  trix-toolbar .trix-button--icon{
    height: 44px !important;
  }
  .trix-button--icon{
    border: none !important;
  }
  .trix-content{
    border: none !important;
    p {
      margin-bottom: 16px;

      &:last-child {
        margin-bottom: 0;
      }
    }
    a {
      color: #2563eb;
      text-decoration: underline;
    }
  }
  .trix-container{
    border: 1px solid #C2C5CB;
    border-radius: 12px;
    overflow: hidden;
  }


  /* Smoother progress-bar–like animation using background-size and a solid color stop for #FAFAFA. */
  .card-approved {
    background: linear-gradient(90deg, #FAFAFA 0 100%, transparent 100% 100%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    animation: card-progress-fill 3s cubic-bezier(0.4,0,0.2,1) forwards;
    position: relative;
    z-index: 0;
    transition: background-size 3s cubic-bezier(0.4,0,0.2,1);
  }

  @keyframes card-progress-fill {
    0% {
      background-size: 0% 100%;
    }
    100% {
      background-size: 100% 100%;
    }
  }

  @media (max-width: 767px) {
    body:has(.communication-right-pane){
      #communications_left_pane{
        display: none;
      }
      .info-section{
        display: none;
      }
      #top_bar_info{
        display: none;
      }
    }
   
  }
  body{
    font-family: "Poppins", ui-sans-serif, system-ui, sans-serif !important;
    font-weight: 400;
  } 

 
  @media (max-width: 767px) {
    .note-popover [data-contacts--note-popover-target="panel"] {
      position: fixed !important;
      left: 50% !important;
      top: 50% !important;
      transform: translate(-50%, -50%) !important;
      max-width: 400px !important;
      z-index: 1000 !important;
      height: 162px !important;
    }
  }

  .border-green {
    border-color: #16A34A;
  }
  .border-blue {
    border-color: #0EA5E9;
  }
 
