/* Note: Base layout */
html, body{
  height:100%;
  margin:0;
}

#wrapper{
  height:100vh;
  display:flex;
  flex-direction:column;
  min-height:0;
}

/* Note: Embedded forms must be allowed to shrink inside flex containers */
#main\.webpanel{
  min-height:0;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
}

#main\.webpanel > *{
  min-height:0;
}

/* Note: Primary button color */
.btn-primary{
  background-color:#286090 !important;
  border-color:#286090 !important;
  color:#fff !important;
}

.btn-primary:hover{
  background-color:#204d74 !important;
  border-color:#204d74 !important;
}

/* Note: Navbar tweaks */
#view\.main\.apptitle{
  display:flex;
  align-items:center;
}

.navbar-nav .nav-link.active{
  color:#fff !important;
  background-color:#004F84 !important;
  font-weight:700;
}

.navbar-nav .nav-link:hover{
  color:#fff !important;
  background-color:#286090 !important;
}

.navbar-toggler{
  display:none;
}

/* Note: Dropdown menu items */
.dropdown-menu a{
  display:flex;
  align-items:center;
  width:100%;
  padding:.5rem 1rem;
  color:#000;
  text-decoration:none;
}

.dropdown-menu a:hover{
  background-color:#204d74;
  color:#fff;
}

.dropdown-menu a span{
  flex-grow:1;
}

/* Note: Login card (used on login view) */
.login-card{
  display:inline-block;
  width:300px;
  padding:0;
  border-radius:10px;
  box-shadow:0 4px 8px rgba(0,0,0,.1);
  background-color:#fff;
}

/* Note: Validation helpers */
.is-invalid .form-check-input{
  border:1px solid #dc3545 !important;
}

.is-invalid .form-check-label{
  color:#dc3545 !important;
}

/* Note: Toast animation */
@keyframes slideInLeft{
  from{transform:translateX(-120%);opacity:0;}
  to{transform:translateX(0);opacity:1;}
}

.toast.slide-in{
  animation:slideInLeft .4s ease-out forwards;
}

/* Note: Spinner overlay */
#spinner{
  position:fixed !important;
  z-index:9999 !important;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
}

/* Note: TasksHTML (table experiment) */
#tasks_table_host{
  height:100%;
  min-height:0;
}

#tasks_table_host .tasks-vscroll{
  height:100%;
  overflow-y:auto;
  overflow-x:hidden;
}

#tasks_table_host .tasks-hscroll{
  overflow-x:auto;
}

#tasks_table_host .tasks-hscroll table{
  width:max-content;
  min-width:100%;
  table-layout:fixed;
}

#tasks_table_host thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:var(--bs-body-bg);
}

#tasks_table_host td,
#tasks_table_host th{
  padding:.25rem;
}

#tasks_table_host .nowrap-cell{white-space:nowrap;}
#tasks_table_host .wrap-cell{white-space:normal;word-break:break-word;}

#tasks_table_host .cell-input,
#tasks_table_host .cell-textarea{
  border:0;
  background:transparent;
  border-radius:0;
  padding:0;
  margin:0;
  box-shadow:none;
}

#tasks_table_host .cell-input:focus,
#tasks_table_host .cell-textarea:focus{
  outline:0;
  box-shadow:inset 0 -2px 0 var(--bs-primary);
}

#tasks_table_host .cell-textarea{
  resize:none;
  overflow:hidden;
  white-space:pre-wrap;
}

/* Note: TasksDataGrid (TWebDataGrid experiment) */
#data_grid_tasks{
  height:100%;
  min-height:0;
}

#data_grid_tasks .ag-cell{
  line-height:1.25;
  padding-top:4px;
  padding-bottom:4px;
}

#data_grid_tasks .ag-cell-inline-editing textarea{
  line-height:1.25;
  padding:4px 6px;
  resize:none;
  height:100%;
  box-sizing:border-box;
}





