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

.home-summary-cards {
  align-items: stretch;
}

.home-summary-cards>.column {
  display: flex;
}

.home-summary-cards>.column>.box {
  flex: 1;
}

.has-text-link {
  color: #4183C4 !important;
}

.table-container {
  overflow-x: auto;
  border-radius: 0.9rem;
  border: 1px solid #e8ebf0;
  background-color: #ffffff;
  box-shadow: 0 0.35rem 1rem rgba(10, 10, 10, 0.05);
}

.table-container .table {
  margin-bottom: 0;
}

.table thead {
  background-color: #F9FAFB;
}

.table thead th {
  font-weight: 600;
  letter-spacing: 0.01em;
  vertical-align: middle;
}

.table td,
.table th {
  vertical-align: middle;
}

.table td.has-text-right,
.table th.has-text-right {
  white-space: nowrap;
}

.table.is-hoverable tbody tr:not(.is-selected):hover {
  background-color: #f7f4ff;
}

.table {
  border-top: 0.1em solid #DB2828;
}

.navbar.is-dark .navbar-item.is-active {
  background-color: #6435C9;
}

.button.is-primary {
  background-color: #6435C9;
  color: #FFFFFF;
  text-shadow: none;
  background-image: none;
}

.button.is-secondary {
  background-color: #9627ba;
  color: #FFFFFF;
  text-shadow: none;
  background-image: none;
}

.button.is-red {
  background-color: #DB2828;
  color: #FFFFFF;
  text-shadow: none;
  background-image: none;
}

.button.is-back {
  background-color: #E03997;
  color: #FFFFFF;
  text-shadow: none;
  background-image: none;
}

html {
  font-size: 14px;
}

body {
  font-size: 1rem;
}

/* App Shell Layout */
.app-shell {
  min-height: 100vh;
}

.app-shell.has-sidebar .app-shell__backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 10, 10, 0.4);
  z-index: 39;
}

.app-shell.has-sidebar .app-layout {
  min-height: 100vh;
  margin-bottom: 0;
}

.app-shell.has-sidebar .app-sidebar-column {
  width: 16rem;
  flex: none;
  transition: width 0.25s ease, transform 0.25s ease;
}

.app-shell.has-sidebar .app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  padding: 0.75rem;
  overflow-y: auto;
  z-index: 40;
  transition: width 0.25s ease, transform 0.25s ease;
  box-shadow: 0 0.5rem 1.5rem rgba(10, 10, 10, 0.18);
}

.app-shell.has-sidebar .app-sidebar__inner {
  min-height: calc(100vh - 1.5rem);
  display: flex;
  flex-direction: column;
}

.app-shell.has-sidebar .app-sidebar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.app-shell.has-sidebar .app-sidebar__brand .icon,
.app-shell.has-sidebar .app-sidebar__link .icon {
  flex-shrink: 0;
  min-width: 1.5rem;
  justify-content: center;
}

.app-shell.has-sidebar .app-sidebar__toggle {
  min-width: 2.5rem;
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.app-shell.has-sidebar .app-sidebar__footer .box {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-shell.has-sidebar .app-sidebar__user-card {
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: #f5f5f5 !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-shell.has-sidebar .app-sidebar .menu-label {
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.app-shell.has-sidebar .app-sidebar__link {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  border-radius: 0.85rem;
  padding: 0.75rem 0.9rem;
  background-color: transparent !important;
  border: none;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.92) !important;
}

.app-shell.has-sidebar .app-sidebar__link:hover,
.app-shell.has-sidebar .app-sidebar__link:focus {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.app-shell.has-sidebar .app-sidebar__link.is-active {
  background-color: rgba(100, 53, 201, 0.85) !important;
  color: #ffffff !important;
  font-weight: 600;
}

.app-shell.has-sidebar .app-sidebar__link--danger {
  color: #ffb3b3 !important;
}

.app-shell.has-sidebar .app-sidebar__link--danger:hover,
.app-shell.has-sidebar .app-sidebar__link--danger:focus {
  background-color: rgba(219, 40, 40, 0.18) !important;
  color: #ffffff !important;
}

.app-shell.has-sidebar .app-main-column {
  min-width: 0;
}

.app-shell.has-sidebar .app-content {
  min-height: 100vh;
}

.app-shell.has-sidebar .app-sidebar__mobile-trigger {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 30;
  display: none;
}

.app-shell.has-sidebar.is-sidebar-collapsed .app-sidebar-column,
.app-shell.has-sidebar.is-sidebar-collapsed .app-sidebar {
  width: 5.25rem;
}

.app-shell.has-sidebar.is-sidebar-collapsed .app-sidebar__label,
.app-shell.has-sidebar.is-sidebar-collapsed .app-sidebar .menu-label,
.app-shell.has-sidebar.is-sidebar-collapsed .app-sidebar__user-card {
  display: none;
}

.app-shell.has-sidebar.is-sidebar-collapsed .app-sidebar__brand,
.app-shell.has-sidebar.is-sidebar-collapsed .app-sidebar__link {
  justify-content: center;
}

.app-shell.has-sidebar.is-sidebar-collapsed .app-sidebar__header .is-flex {
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 1023px) {
  .app-shell.has-sidebar .app-layout {
    display: block;
  }

  .app-shell.has-sidebar .app-sidebar-column {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 16rem;
    z-index: 40;
    transform: translateX(-110%);
  }

  .app-shell.has-sidebar .app-sidebar {
    position: relative;
    width: 16rem;
  }

  .app-shell.has-sidebar .app-sidebar__mobile-trigger {
    display: inline-flex;
  }

  .app-shell.has-sidebar .app-content {
    padding-top: 4.25rem;
  }

  .app-shell.has-sidebar.is-sidebar-open .app-sidebar-column {
    transform: translateX(0);
  }
}