/* app/views/sandbox/lab-cards/lab-cards-sandbox.css */
.lab-cards-scope{
  --lab-cards-header-offset: calc(60px + 16px);
  --lab-cards-header-height: 128px;
  padding: 16px 0 32px;
  font-family: 'Public Sans';
  color: #111827;
}

.lab-cards-header-component{
  position: sticky;
  top: var(--lab-cards-header-offset);
  z-index: 100;
  display: block;
  width: 100%;
  background: #ffffff;
}

.lab-cards-content{
  margin-top: calc(-1 * var(--lab-cards-header-height));
  padding-top: var(--lab-cards-header-height);
}

.lab-cards-header{
  margin-bottom: 12px;
}

.lab-cards-title-wrap{
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.lab-cards-heading{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.lab-cards-header-actions{
  margin-left: auto;
  margin-top: -5px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lab-cards-header-actions .btn{
  text-decoration: none;
  font-family: 'Public Sans';
}

.lab-cards-title-icon{
  font-size: 28px;
  color: #292929;
}

.lab-cards-title{
  margin: 0 0 4px;
  font-weight: 700;
}

.lab-cards-subtitle{
  margin: 0;
  color:#6c6c6c;
  font-size: 13px;
}

.lab-cards-toolbar{
  margin-bottom: 10px;
}


lab-cards-header-filter.lab-cards-header-filter--compact{
  max-width: 520px;
}

lab-cards-header-filter.lab-cards-header-filter--compact .lab-cards-header-filter{
  width: 100%;
}

.lab-cards-filtersBar{
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  flex-wrap: nowrap;
}

.lab-cards-filtersBar__grow{
  flex: 1 1 auto;
  min-width: 0;
}

.lab-cards-filtersBar__fixed{
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.lab-cards-filtersBar__grow lab-cards-header-filter{
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.lab-cards-filtersBar__fixed lab-date-range-filter{
  flex: 0 0 auto;
  min-width: 220px;
}

.lab-cards-filtersBar__grow .asTickets-filters,
.lab-cards-header-filter .asTickets-filters{
  display: flex;
  width: 100%;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.lab-cards-filtersBar__grow .asTickets-filterSearch,
.lab-cards-header-filter .asTickets-filterSearch{
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
}

.lab-cards-filtersBar__grow .lab-cards-header-filter-slot,
.lab-cards-header-filter .lab-cards-header-filter-slot{
  flex: 0 1 auto;
  min-width: 0;
}

.lab-cards-filtersBar__grow .lab-cards-header-filter-slot:empty,
.lab-cards-header-filter .lab-cards-header-filter-slot:empty{
  display: none;
}

.lab-cards-filtersBar__grow lab-date-range-filter{
  flex: 0 0 auto;
  
}

.lab-cards-filtersBar__grow .asTickets-selectWrap,
.lab-cards-header-filter .asTickets-selectWrap{
  flex: 0 0 auto;
  min-width: 160px;
}

.lab-cards-filtersBar__grow .asTickets-select,
.lab-cards-header-filter .asTickets-select{
  width: 100%;
}

.lab-cards-scope .lab-selectTrigger,
.lab-cards-header-filter .lab-selectTrigger{
  position: relative;
  flex: 0 0 auto;
  width: auto;
  min-width: 160px;
}

.lab-cards-scope .lab-selectTrigger .asTickets-select,
.lab-cards-header-filter .lab-selectTrigger .asTickets-select{
  height: 36px;
  padding: 0 32px 0 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-size: 1.2rem;
  line-height: 1.1;
}

.lab-cards-scope .lab-selectTrigger .asTickets-select:focus,
.lab-cards-header-filter .lab-selectTrigger .asTickets-select:focus{
  outline: none;
  border-color: #171818;

}

.lab-cards-scope .lab-selectTrigger .asTickets-selectIcon,
.lab-cards-header-filter .lab-selectTrigger .asTickets-selectIcon{
  right: 10px;
  font-size: 18px;
  color:#6c6c6c;
}

.lab-cards-search{
  position: relative;
}

@media (max-width: 767px){
  .lab-cards-filtersBar{
    flex-wrap: wrap;
  }

  .lab-cards-filtersBar__grow,
  .lab-cards-filtersBar__fixed{
    flex: 1 1 100%;
    min-width: 0;
    white-space: normal;
  }

  .lab-cards-filtersBar__fixed{
    flex-wrap: wrap;
  }

  .lab-cards-filtersBar__grow .asTickets-filters,
  .lab-cards-header-filter .asTickets-filters{
    flex-wrap: wrap;
  }

  .lab-cards-filtersBar__grow .lab-cards-header-filter-slot,
  .lab-cards-header-filter .lab-cards-header-filter-slot{
    min-width: 0;
    flex: 1 1 100%;
    width: 100%;
  }
}

.lab-cards-scope .asTickets-searchIcon,
.lab-cards-header-filter .asTickets-searchIcon{
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color:#6c6c6c;
}

.lab-cards-scope .asTickets-input,
.lab-cards-header-filter .asTickets-input{
  width: 100%;
  height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 0.875rem;
  background: #ffffff;
  color: #111827;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.lab-cards-scope .asTickets-input:focus,
.lab-cards-header-filter .asTickets-input:focus{
  outline: none;
  border-color: #171818;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.lab-cards-scope .asTickets-input--search,
.lab-cards-header-filter .asTickets-input--search{
  padding-left: 32px; 
}

.lab-cards-scope .asTickets-input::placeholder,
.lab-cards-header-filter .asTickets-input::placeholder{
  font-size: 1.2rem;
}

.lab-cards-add{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  font-size: 0.75rem;
  line-height: 1.2;
  text-transform: none;
  text-decoration: none;
  font-family: 'Public Sans';
  border: 1px solid #FF7A32 !important;
}

.lab-cards-add .material-icons-outlined{
  font-size: 16px;
}

.lab-cards-add--outline{
  background: transparent;
  border: 1px solid #3f3f3f !important;
  color: #3f3f3f;
}

.lab-cards-add--outline:hover,
.lab-cards-add--outline:focus{
  border: 1px solid #121212;
  color: #ffffff;
}

.lab-cards-add--outline .material-icons-outlined{
  color: inherit;
}

.lab-cards-viewToggle{
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  color: #334155;
}

.lab-cards-viewToggle .material-icons-outlined{
  font-size: 16px;
}

.lab-cards-moreFilters{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #eef1f4;
  color: #6b7280;
  font-family: 'Public Sans';
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.lab-cards-moreFilters:hover,
.lab-cards-moreFilters:focus{
  background: #e5e9ee;
  color: #374151;
  box-shadow: none;
}

.lab-cards-moreFilters .material-icons-outlined{
  font-size: 16px;
}

.lab-cards-filterExtras{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

@media (max-width: 767px){
  .lab-cards-filterExtras{
    flex: 1 1 100%;
    width: 100%;
    flex-wrap: wrap;
  }
}

.lab-cards-meta{
  margin-bottom: 12px;
}

.lab-cards-count{
  font-size: 12px;
  color:#6c6c6c;
  font-weight: 600;
}

.labActionsMenu-gridFooter{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px 0;
  font-size: 0.75rem;
  color: #475569;
}

.labActionsMenu-gridPager{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.labActionsMenu-gridButton{
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
}

.labActionsMenu-gridButton[disabled],
.labActionsMenu-gridButton[disabled]:hover,
.labActionsMenu-gridButton[disabled]:focus{
  color: #94a3b8;
  border-color: #e2e8f0;
  background: #ffffff;
  cursor: not-allowed;
}

.labActionsMenu-grid{
  margin-bottom: 0;
}

.labActionsMenu-grid > thead > tr > th,
.labActionsMenu-grid > tbody > tr > td{
  font-size: 0.75rem;
  line-height: 1.2;
  padding: 6px 12px;
  vertical-align: middle;
  border-bottom: 1px solid #e5e7eb;
  background-color: transparent;
}

.labActionsMenu-grid > thead > tr > th{
  font-weight: 600;
  color: #334155;
  border-top: 0;
}

.labActionsMenu-grid > tbody > tr{
  background-color: transparent;
}

.labActionsMenu-grid > tbody > tr > td{
  border-top: 0;
}

.labActionsMenu-grid .labActionsMenu-cell{
  text-align: right;
}

.lab-cards-state{
  padding: 24px 0;
}

.lab-cards-loading,
.lab-cards-empty{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color:#6c6c6c;
}

.lab-cards-loading .lab-spin{
  animation: lab-spin 1s linear infinite;
}

.lab-cards-grid{
  margin-top: 8px;
}

@media (max-width: 767px){
  .lab-cards-scope{
    --lab-cards-header-height: 160px;
  }
}

.lab-card{
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: none;
}

.lab-card-body{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lab-card-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.lab-card-title{
  font-weight: 700;
  font-size: 16px;
  color: #0f172a;
}

.lab-card-status{
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.lab-card-status--success{
  background: #d1fae5;
  color: #065f46;
}

.lab-card-status--warning{
  background: #fef3c7;
  color: #92400e;
}

.lab-card-status--default{
  background: #e5e7eb;
  color: #374151;
}

.lab-card-subtitle{
  margin: 6px 0 10px;
  color: #475569;
  font-size: 13px;
}

.lab-card-meta{
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
}

.lab-card-meta-label{
  font-weight: 600;
}

.lab-card-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.lab-card-tag{
  background: #f1f5f9;
  color: #475569;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
}

.lab-card-actions{
  display: flex;
  align-items: center;
  gap: 8px;
}

.lab-card-actions .btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lab-cards-form-header{
  margin-bottom: 12px;
}

.lab-cards-form-title{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lab-cards-form-heading{
  margin: 0;
  font-weight: 700;
}

.lab-cards-form-subtitle{
  margin: 6px 0 0;
  font-size: 13px;
  color:#6c6c6c;
}

.lab-back-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 0;
  margin-left: auto;
}

.lab-cards-panel{
  border-radius: 12px;
  border-color: #e5e7eb;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.lab-cards-form-actions{
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.lab-cards-help{
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color:#6c6c6c;
}

.lab-cards-alert{
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}

@media (min-width: 768px){
  .lab-card-body{
    flex-direction: row;
    align-items: flex-start;
  }
  .lab-card-main{
    flex: 1;
  }
  .lab-card-actions{
    flex-direction: column;
    align-items: flex-end;
  }
}

@media (max-width: 991px){
  .lab-cards-header-actions{
    width: 100%;
  }
  .lab-cards-add{
    width: 100%;
    justify-content: center;
  }
  .lab-cards-form-actions{
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes lab-spin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}
