/* Shared component polish. Selectors deliberately stay within the MVC content shell. */
.app-content-shell .card,
.app-content-shell .modal-content {
    border: 1px solid var(--brw-line, var(--bs-border-color));
    border-radius: var(--brw-radius-md, 1rem);
    box-shadow: var(--brw-shadow-sm, 0 2px 8px rgba(0, 0, 0, .06));
}

.app-content-shell .card-header,
.app-content-shell .card-footer {
    background: color-mix(in srgb, var(--bs-tertiary-bg) 70%, transparent);
    border-color: var(--brw-line, var(--bs-border-color));
}

.app-content-shell .btn {
    border-radius: .68rem;
    font-weight: 600;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.app-content-shell .btn:not(:disabled):hover { transform: translateY(-1px); }
.app-content-shell .btn:not(:disabled):active { transform: translateY(0); }
.app-content-shell .btn-primary {
    box-shadow: 0 4px 12px color-mix(in srgb, var(--brw-accent, #15856d) 20%, transparent);
}

.app-content-shell .form-control,
.app-content-shell .form-select,
.app-content-shell .input-group-text {
    border-radius: .68rem;
    min-height: 2.65rem;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.app-content-shell textarea.form-control { min-height: unset; }
.app-content-shell .form-control:focus,
.app-content-shell .form-select:focus {
    border-color: var(--brw-accent, var(--bs-primary));
    box-shadow: 0 0 0 .22rem color-mix(in srgb, var(--brw-accent, var(--bs-primary)) 19%, transparent);
}
.app-content-shell .form-label { color: var(--bs-body-color); font-weight: 600; }
.app-content-shell .invalid-feedback,
.app-content-shell .text-danger { font-size: .86rem; }

.app-content-shell .table-responsive {
    border: 1px solid var(--brw-line, var(--bs-border-color));
    border-radius: var(--brw-radius-sm, .7rem);
    background: var(--bs-body-bg);
}
.app-content-shell .table { margin-bottom: 0; }
.app-content-shell .table thead th {
    color: var(--bs-secondary-color);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .035em;
    vertical-align: middle;
}
.app-content-shell .table tbody tr { transition: background-color .15s ease; }

.app-content-shell .nav-tabs { border-bottom-color: var(--brw-line, var(--bs-border-color)); }
.app-content-shell .nav-tabs .nav-link {
    color: var(--bs-secondary-color);
    border-radius: .7rem .7rem 0 0;
    font-weight: 600;
    transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}
.app-content-shell .nav-tabs .nav-link.active {
    color: var(--brw-forest, var(--bs-primary));
    background: var(--bs-body-bg);
    border-color: var(--brw-line, var(--bs-border-color)) var(--brw-line, var(--bs-border-color)) var(--bs-body-bg);
}

.app-content-shell .alert { border-radius: var(--brw-radius-sm, .7rem); }
.app-content-shell .dropdown-menu { border-radius: var(--brw-radius-sm, .7rem); box-shadow: var(--brw-shadow-md, 0 12px 32px rgba(0,0,0,.12)); }
.app-content-shell .badge { font-weight: 650; letter-spacing: .01em; }

/* Home hub: hierarchy follows the actual application catalog, without fabricated KPIs. */
.app-content-shell .home-hero {
    position: relative;
    margin-bottom: 1.25rem;
    padding: clamp(1.1rem, 2.3vw, 1.8rem);
    overflow: hidden;
    border: 1px solid var(--brw-line);
    border-radius: var(--brw-radius-lg);
    background: linear-gradient(118deg, color-mix(in srgb, var(--brw-mint) 68%, var(--bs-body-bg)), var(--bs-body-bg) 72%);
}
.app-content-shell .home-hero::after {
    position: absolute;
    right: -3.25rem;
    bottom: -6rem;
    width: 13rem;
    height: 13rem;
    border: 1px solid color-mix(in srgb, var(--brw-accent) 16%, transparent);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}
.app-content-shell .home-hero > * { position: relative; z-index: 1; }
.app-content-shell .home-hero .page-title { margin-bottom: .3rem; color: var(--brw-forest); font-weight: 750; letter-spacing: -.035em; }
.app-content-shell .home-card {
    height: 100%;
    overflow: hidden;
    background: var(--brw-panel);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.app-content-shell .home-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--brw-accent);
    content: "";
    transform: scaleY(.25);
    transform-origin: center;
    opacity: .65;
    transition: transform .22s ease, opacity .22s ease;
}
.app-content-shell .home-card:hover,
.app-content-shell .home-card:focus-visible {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--brw-accent) 48%, var(--brw-line));
    box-shadow: var(--brw-shadow-md);
}
.app-content-shell .home-card:hover::before,
.app-content-shell .home-card:focus-visible::before { transform: scaleY(1); opacity: 1; }
.app-content-shell .home-card .icon {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    flex: 0 0 2.8rem;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--brw-accent) 20%, transparent);
    border-radius: .85rem;
    background: var(--brw-mint);
    color: var(--brw-forest);
    font-size: 1.25rem;
}
.app-content-shell .home-card .card-title { color: var(--brw-ink); font-weight: 700; }
.app-content-shell .home-card .card-text { line-height: 1.5; }

/* Ticket intake and technical dashboard components. */
.app-content-shell form.needs-validation { overflow: hidden; }
.app-content-shell form.needs-validation > .card-body { padding: clamp(1rem, 2.4vw, 1.8rem); }
.app-content-shell .kpi-card {
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.app-content-shell .kpi-card:hover { transform: translateY(-2px); box-shadow: var(--brw-shadow-md); }
.app-content-shell .kpi-card .card-body { position: relative; z-index: 1; }

@media (max-width: 575.98px) {
    .app-content-shell .home-hero { border-radius: var(--brw-radius-md); }
    .app-content-shell .home-hero .d-flex { align-items: flex-start !important; }
    .app-content-shell .table-responsive { max-width: 100%; }
    .app-content-shell .nav-tabs { flex-wrap: nowrap; overflow-x: auto; }
    .app-content-shell .nav-tabs .nav-link { white-space: nowrap; }
}
