﻿/* App-Owns-Data Lab Styles from Power BI Dev Camp */

ul i {  padding-right: 4px; }
h1 {  font-size: 1.35em; }
h2 {  font-size: 1.25em; }
h3 {  font-size: 1.1em; }
h4 {  font-size: 1.0em; }

.mb-3, .my-3 {
  margin-bottom: 0 !important;
}

nav {
  margin-bottom: 0px;
}

i {
  margin-right: 4px;
}


#banner {
  padding-left: 0px;
  padding-right: 0px;
}

.jumbotron {
  background-color: #EDBE11;
  border: 1px solid #AAA;
  margin-top: 16px;
}

/* styles for embed page */

#content-box {
  padding-left: 0;
  padding-right: 0;
  border: solid 1px black;
}

#embed-layout.sidebar-collapsed #content-box {
  flex: 0 0 100%;
  max-width: 100%;
}

#left-nav {
  background-color: black;
  color: white;
  padding: 0;
  border: 1px solid black;
}

#embed-layout.sidebar-collapsed #left-nav {
  display: none;
}

#left-nav .navbar-header {
  color: black;
  background-color: rgb(191, 200, 214) !important;
  padding: 2px;
  padding-left: 4px;
  border-bottom: 1px solid #333333;
  font-size: 14px;
}

#workspace-selector {
  width: 100%;
  padding: 0;
}

#workspace-selector-dropdown {
  padding: 0px;
}

.dropdown-toggle::after {
  position: absolute;
  right: 8px;
  top: 45%;
}

#left-nav .navbar-collapse, #left-nav .dropdown {
  background-color: white;
  color: black;
  padding: 8px;
  font-size: 12px;
  border-bottom: 1px solid #333333;
}

#left-nav .navbar-collapse {
  padding: 8px;
}

#left-nav .dropdown {
  padding: 0px;
}

  #left-nav .dropdown button {
    margin: 0px;
    padding: 4px;
    width: 100%;
    text-align: left;
  }

/* Modern responsive embed container - scales with viewport */
#embed-container {
  width: 100%;
  height: 100%; /* Fill the parent content-box which is set by JavaScript */
  min-height: 600px; /* Minimum for smaller screens */
}

/* Responsive breakpoints for optimal viewing */
@media (min-width: 1920px) {
  /* 1080p and larger displays */
  #embed-container {
    min-height: 800px;
  }
}

@media (max-width: 768px) {
  /* Tablets and mobile */
  #embed-container {
    min-height: 480px;
  }
}


.no-content {
  font-style: italic;
  margin-left: 16px;
  color: #88AAAA;
}

#embedding-instructions {
  margin: 24px;
  color: #BBBBBB;
}

#embed-toolbar {
  margin-top: -1px;
  background-color: black;
  color: white;
  padding: 4px;
  font-size: 12px;
}

  #embed-toolbar button {
    margin: 0px;
    font-size: 9px;
    font-weight: bold;
    padding: 2px;
    color: #222;
    background-color: #F2C811;
    border-color: #111;
    display: inline;
    float: right;
    margin-left: 8px;
    padding-left: 6px;
    padding-right: 6px;
  }

#embed-toolbar #sidebar-toggle {
  background-color: #dc3545;
  border-color: #b02a37;
  color: #ffffff;
  margin-left: 18px;
}

#embed-toolbar #sidebar-toggle:hover {
  background-color: #bb2d3b;
  border-color: #a52834;
}

.workspaces-toolbar {
  background-color: #CCCCCC;
  border: 1px solid #666666;
  border-top-style: none;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  padding: 8px;
  margin-bottom: 16px;
  text-align: left;
}

#create-workspace-button, #back-to-workspaces-button {
  background-color: #F2C811;
  color: black;
  border: 1px solid black;
}

table a.nav-link {
  margin: 0px;
  padding: 4px;
  padding-left: 6px;
  background-color: #F2C811;
  color: black;
  border: 1px solid black;
  border-radius: 4px;
  text-align: center;
}

.create-workspace-fieldset {
  background-color: #EEEEEE;
  border: solid 1px #AAAAAA;
  padding: 24px;
}

  .create-workspace-fieldset legend {
    width: auto;
    padding: 8px;
  }

/* Admin dropdown fixes */
.nav-item.dropdown .nav-link.dropdown-toggle {
  padding-right: 24px !important;
}

.nav-item.dropdown .nav-link.dropdown-toggle i {
  margin-right: 8px;
}

/* FIX: Prevent checkboxes from floating above scrolling table content */
/* Remove Bootstrap's absolute positioning on table checkboxes */
.table .form-check-input,
.table-responsive .form-check-input,
.table td .form-check-input,
.table th .form-check-input {
  position: static !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
}

/* Ensure table cells with checkboxes flow normally */
.table td.text-center,
.table th.text-center {
  vertical-align: middle;
}

/* Override any form-check positioning in tables */
.table .form-check {
  position: static !important;
  display: inline-block !important;
  padding-left: 0 !important;
  margin-bottom: 0 !important;
}

/* Ensure checkbox inputs are inline and not positioned */
.table input[type="checkbox"] {
  position: static !important;
  margin: 0 !important;
}

/* Branding and theming variables */
:root {
  /* CMYK C100 M78 Y0 K54 -> #001A75 */
  --brand-blue: #001A75;
  /* CMYK C25 M20 Y0 K13 -> #A6B2DE */
  --brand-blue-light: #A6B2DE;
}

body,
button,
input,
select,
textarea {
  font-family: Arial, sans-serif;
}

/* Primary blue usage */
.text-primary,
.text-info {
  color: var(--brand-blue) !important;
}

.bg-primary,
.bg-info {
  background-color: var(--brand-blue) !important;
  background-image: none !important;
  color: #ffffff !important;
}

.btn-primary,
.btn-info {
  background-color: var(--brand-blue) !important;
  border-color: var(--brand-blue) !important;
  background-image: none !important;
  color: #ffffff !important;
}

.btn-outline-primary {
  color: var(--brand-blue) !important;
  border-color: var(--brand-blue) !important;
}

.btn-outline-primary:hover {
  background-color: var(--brand-blue) !important;
  background-image: none !important;
  color: #ffffff !important;
}

/* Secondary blue usage (optional second blue) */
.btn-outline-info {
  color: var(--brand-blue-light) !important;
  border-color: var(--brand-blue-light) !important;
}

.btn-outline-info:hover {
  background-color: var(--brand-blue-light) !important;
  background-image: none !important;
  color: #001A75 !important;
}

.nav-link-signout {
        background: rgba(220, 53, 69, 0.1) !important;
        border: 1px solid rgba(220, 53, 69, 0.3);
        color: rgb(206, 14, 45) !important;
    }

    .nav-link-signout:hover {
        background: rgba(220, 53, 69, 0.2) !important;
        border-color: rgba(220, 53, 69, 0.5);
        color: rgb(206, 14, 45) !important;
    }
