html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

body:not(.login-page) {
  height: 100vh;
  overflow: hidden;
  min-height: 100vh;
  color: #172b4d;
  background: #f6f8fc;
}

* {
  scrollbar-color: #aebfda #f4f7fb;
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 0.7rem;
  height: 0.7rem;
}

*::-webkit-scrollbar-track {
  border-radius: 1rem;
  background: #f4f7fb;
}

*::-webkit-scrollbar-thumb {
  border: 0.18rem solid #f4f7fb;
  border-radius: 1rem;
  background: #aebfda;
}

*::-webkit-scrollbar-thumb:hover {
  background: #7d99c3;
}

body:not(.login-page) .card,
body:not(.login-page) .modal-content {
  border-color: #e3e9f2;
  border-radius: 0.7rem;
}

body:not(.login-page) .card {
  overflow: hidden;
}

body:not(.login-page) .card-header,
body:not(.login-page) .card-footer {
  padding: 0.8rem 1rem;
  border-color: #edf1f6;
  background: #fff;
}

body:not(.login-page) .card-body {
  padding: 1.25rem;
}

.form-control,
.form-select {
  min-height: 2.55rem;
  border-color: #d6e0ed;
  border-radius: 0.5rem;
  background-color: #fff;
  box-shadow: inset 0 1px 1px rgba(31, 55, 89, 0.02), 0 1px 2px rgba(31, 55, 89, 0.03);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.form-select {
  cursor: pointer;
  font-weight: 500;
}

.bootstrap-select-control {
  display: inline-block;
  min-width: 9rem;
}

.bootstrap-select-control .dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 2.55rem;
  padding: 0.5rem 0.75rem;
  border-color: #d6e0ed;
  background: #fff;
  box-shadow: inset 0 1px 1px rgba(31, 55, 89, 0.02), 0 1px 2px rgba(31, 55, 89, 0.03);
}

.bootstrap-select-control .dropdown-toggle:hover,
.bootstrap-select-control .dropdown-toggle.show {
  border-color: #6398ef;
  color: #172b4d;
  background: #fff;
}

.bootstrap-select-control .dropdown-toggle:focus-visible {
  border-color: #6398ef;
  box-shadow: 0 0 0 0.2rem rgba(31, 103, 231, 0.14), 0 0.25rem 0.65rem rgba(31, 103, 231, 0.08);
}

.bootstrap-select-control .dropdown-toggle.btn-sm {
  min-height: 2.15rem;
  padding: 0.3rem 0.6rem;
}

.bootstrap-select-menu {
  max-height: min(20rem, 50vh);
  min-width: 100%;
  overflow-y: auto;
  padding: 0.35rem;
  border-color: #d6e0ed;
  border-radius: 0.5rem;
  box-shadow: 0 0.75rem 1.5rem rgba(31, 55, 89, 0.14);
}

.bootstrap-select-menu .dropdown-item {
  border-radius: 0.35rem;
  white-space: nowrap;
}

.form-control:hover,
.form-select:hover {
  border-color: #aebfda;
  background-color: #fbfdff;
}

.form-control:focus,
.form-select:focus {
  border-color: #6398ef;
  background-color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(31, 103, 231, 0.14), 0 0.25rem 0.65rem rgba(31, 103, 231, 0.08);
}

.form-control-sm,
.form-select-sm {
  min-height: 2.15rem;
  border-radius: 0.45rem;
}

.form-control[type='file']::file-selector-button {
  margin: -0.5rem 0.75rem -0.5rem -0.75rem;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-right: 1px solid #d6e0ed;
  color: #1f67e7;
  background: #f1f6ff;
  font-weight: 600;
}

.form-check-input {
  border-color: #aebfda;
  box-shadow: 0 1px 2px rgba(31, 55, 89, 0.08);
}

.form-check-input:focus {
  border-color: #6398ef;
  box-shadow: 0 0 0 0.2rem rgba(31, 103, 231, 0.14);
}

.form-check-input:checked {
  border-color: #1f67e7;
  background-color: #1f67e7;
}

.btn {
  border-radius: 0.5rem;
  font-weight: 500;
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-primary {
  box-shadow: 0 0.2rem 0.45rem rgba(31, 103, 231, 0.2);
}

.input-group-text {
  border-color: #d6e0ed;
  background: #f7faff;
  color: #60708a;
}

body:not(.login-page) .alert {
  border-radius: 0.55rem;
  border-color: transparent;
}

body:not(.login-page) .modal-content {
  overflow: hidden;
  box-shadow: 0 1.5rem 4rem rgba(24, 47, 82, 0.2);
}

body:not(.login-page) .modal-header,
body:not(.login-page) .modal-footer {
  padding: 1rem 1.25rem;
  border-color: #edf1f6;
}

body:not(.login-page) .modal-header {
  background: #fbfcff;
}

body:not(.login-page) .modal-body {
  padding: 1.25rem;
}

.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.app-sidebar {
  display: flex;
  position: fixed;
  z-index: 10;
  flex-direction: column;
  width: 15rem;
  height: 100vh;
  overflow-y: auto;
  padding: 0.75rem;
  border-right: 1px solid #e7edf6;
  background: #fff;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.25rem;
  padding: 0.35rem 0.45rem;
  color: #172b4d;
  font-weight: 700;
  text-decoration: none;
}

.app-brand:hover {
  color: #172b4d;
}

.app-brand-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.45rem;
  color: #fff;
  background: #1f67e7;
  box-shadow: 0 0.25rem 0.75rem rgba(31, 103, 231, 0.25);
}

.app-brand-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.app-navigation {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 1.5rem;
}

.app-navigation-title {
  margin: 1rem 0 0.25rem;
  padding: 0 0.45rem;
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-navigation-title:first-child {
  margin-top: 0;
}

.app-navigation-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.4rem;
  color: #60708a;
  font-size: 0.9rem;
  text-decoration: none;
}

.app-navigation-link > span {
  width: 1rem;
  color: #91a0b8;
  font-size: 1.05rem;
  text-align: center;
}

.app-navigation-link:hover {
  color: #1f67e7;
  background: #f1f6ff;
}

.app-navigation-link.active {
  color: #1f67e7;
  font-weight: 600;
  background: #eaf2ff;
}

.app-navigation-link.active > span {
  color: #1f67e7;
}

.app-sidebar-user {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: auto;
  padding: 0.8rem;
  border-radius: 0.5rem;
  background: #f6f9fe;
}

.app-sidebar-user-label,
.app-sidebar-user small {
  color: #7c8ca6;
  font-size: 0.7rem;
}

.app-sidebar-user strong {
  font-size: 0.85rem;
}

.app-main-shell {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  margin-left: 15rem;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  flex: 0 0 auto;
  padding: 0.6rem 1.75rem;
  border-bottom: 1px solid #e7edf6;
  background: rgba(255, 255, 255, 0.92);
}

.app-topbar strong {
  font-size: 0.9rem;
}

.app-breadcrumb {
  margin-bottom: 0.1rem;
  color: #9aa9bf;
  font-size: 0.68rem;
}

.app-logout-button {
  border-color: transparent;
  color: #64748b;
}

.app-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.65rem 1.25rem 1.5rem;
}

.app-content .card {
  border-color: #e1e8f2;
  box-shadow: 0 0.25rem 0.8rem rgba(31, 55, 89, 0.04) !important;
}

.app-ag-grid {
  width: 100%;
  --ag-font-family: inherit;
  --ag-font-size: 0.85rem;
  --ag-header-background-color: #f8faff;
  --ag-header-foreground-color: #43536d;
  --ag-border-color: #e1e8f2;
  --ag-row-border-color: #e8eef6;
  --ag-odd-row-background-color: #fbfcfe;
  --ag-selected-row-background-color: #eaf2ff;
  --ag-row-hover-color: #f2f6fc;
  --ag-wrapper-border-radius: 0.6rem;
  overflow: hidden;
}

.app-ag-grid .ag-cell {
  display: flex;
  align-items: center;
}

.app-ag-grid .task-detail-number-cell.ag-right-aligned-cell,
.app-ag-grid .dashboard-number-cell.ag-right-aligned-cell {
  justify-content: flex-end;
  text-align: right;
}

.app-ag-grid .ag-header-cell.ag-right-aligned-header .ag-header-cell-label {
  justify-content: flex-end;
  text-align: right;
}

.app-ag-grid .dashboard-results-cell {
  white-space: nowrap;
}

.app-ag-grid .targets-grid-cell {
  white-space: nowrap;
}

.app-ag-grid .platform-grid-cell {
  white-space: nowrap;
}

.app-ag-grid .tasks-grid-cell {
  white-space: nowrap;
}

.app-ag-grid .targets-url-cell .target-display-value {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}

.app-ag-grid .targets-actions-cell form {
  display: inline-block;
}

.app-ag-grid.targets-ag-grid {
  --ag-odd-row-background-color: #f2f7fd;
}

.app-ag-grid.dashboard-results-ag-grid,
.app-ag-grid.dashboard-batch-summary-ag-grid,
.app-ag-grid.platforms-ag-grid,
.app-ag-grid.tasks-ag-grid {
  --ag-odd-row-background-color: #f2f7fd;
}

.app-ag-grid.task-detail-ag-grid {
  --ag-odd-row-background-color: #f2f7fd;
}

.app-ag-grid .targets-actions-cell .target-action-button {
  border: 0;
  background-color: transparent;
  box-shadow: none;
}

.app-ag-grid .targets-actions-cell .target-action-button:hover,
.app-ag-grid .targets-actions-cell .target-action-button:focus-visible {
  background-color: #edf4ff;
  box-shadow: none;
}

.app-ag-grid .platform-actions-cell form {
  display: inline-block;
}

.app-ag-grid .platform-actions-cell .platform-action-button {
  min-width: 2rem;
  border: 0;
  background-color: transparent;
  box-shadow: none;
}

.app-ag-grid .platform-actions-cell .platform-action-button:hover,
.app-ag-grid .platform-actions-cell .platform-action-button:focus-visible {
  background-color: #edf4ff;
  box-shadow: none;
}

.app-ag-grid .ag-cell .btn,
.app-ag-grid .ag-cell form {
  white-space: nowrap;
}

.app-footer {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  padding: 0.9rem 1.75rem;
  border-top: 1px solid #e7edf6;
  color: #8694aa;
  font-size: 0.75rem;
}

@media (max-width: 767.98px) {
  .app-sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #e7edf6;
  }

  .app-shell {
    flex-direction: column;
  }

  .app-navigation {
    flex-flow: row wrap;
    margin-top: 0.75rem;
  }

  .app-navigation-title,
  .app-sidebar-user {
    display: none;
  }

  .app-navigation-link {
    min-height: 2.2rem;
    padding: 0.4rem 0.55rem;
  }

  .app-main-shell {
    height: auto;
    min-height: 0;
    margin-left: 0;
  }

  .app-topbar,
  .app-content,
  .app-footer {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .app-content {
    padding-top: 0.5rem;
  }
}
