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;*/
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgb(0 139 111);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.company-view-switcher .btn {
    min-width: 6.75rem;
}

.company-view-switcher .btn.active,
.company-view-switcher .btn[aria-selected="true"] {
    color: #fff;
    background-color: var(--pantone-bg-main);
    border-color: var(--pantone-bg-main);
    box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.45);
    font-weight: 600;
}

.company-card-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    align-items: stretch;
}

/* Tokens visuales alineados con .entity-card (wwwroot/css/components/EntityCard.css)
   para que las tarjetas de la estructura empresarial pertenezcan a la misma familia. */
.company-entity-card {
    border: 1px solid rgba(0, 139, 111, 0.14);
    border-radius: 0.5rem;
    background: #fff;
    color: #253b36;
    padding: 1rem;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 1px 4px rgba(31, 56, 50, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.company-entity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(31, 56, 50, 0.12);
}

.company-entity-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.company-entity-card__title {
    margin: 0;
    color: #1f3934;
    font-size: 1rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.company-entity-card__subtitle {
    margin: 0.2rem 0 0;
    color: #5c706c;
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

.company-entity-status {
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    font-size: 0.76rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.company-entity-status.is-active {
    background: rgba(21, 128, 61, 0.12);
    color: #166534;
}

.company-entity-status.is-archived {
    background: rgba(107, 114, 128, 0.14);
    color: #4b5563;
}

.company-entity-card__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.company-entity-metric {
    border: 1px solid rgba(0, 139, 111, 0.18);
    border-radius: 6px;
    color: #28534c;
    padding: 0.4rem 0.55rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    background: rgba(0, 139, 111, 0.04);
}

.company-entity-metric:hover {
    color: #123b34;
    border-color: rgba(0, 139, 111, 0.36);
}

.company-entity-card__actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.company-entity-card__actions .btn {
    min-width: 5.5rem;
}

.company-empty-state {
    border: 1px dashed rgba(0, 139, 111, 0.35);
    border-radius: 8px;
    color: #4a665f;
    padding: 1rem;
    text-align: center;
    background: rgba(0, 139, 111, 0.04);
}
/* Reload button spinner animation */
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}
.btn-reloading {
  pointer-events: none;
  opacity: 0.75;
}
.btn-reloading i {
  display: inline-block;
  animation: btn-spin 0.7s linear infinite;
}
