/* App-specific layer on top of the Liner theme (assets/css/theme.css). */

/* Brand mark used in the sidebar and the mobile header. */
.brand-mark {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgb(var(--p-500));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-sidebar.collapsed .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 11px;
}

.brand-mark-sm {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 10px;
}

.app-sidebar .brand-name {
    font-size: 15px;
}

/* Footer sits as the last block of .app-main. */
.app-footer {
    border-top: 1px solid var(--surface-border);
    padding-top: 1rem;
    font-size: 12px;
    color: var(--text-secondary);
}

.app-footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.app-footer a:hover {
    color: rgb(var(--p-600));
}

html.dark .app-footer a:hover {
    color: rgb(var(--p-400));
}

/* Table cards: the table draws its own borders, the card only clips them. */
.table-card {
    overflow: hidden;
}

.table-card > .table-responsive > .table {
    margin-bottom: 0;
}

.table-card .table > thead th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    white-space: nowrap;
}

.table-card .table > :not(caption) > * > * {
    padding: 0.6rem 0.75rem;
}

html.dark .table-card .table > thead th {
    background: rgb(51 65 85 / 0.4);
}

/* Definition pairs used on detail pages. */
.data-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.data-value {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Pagination sits directly in the .app-main flow. */
.app-main .pagination {
    margin-bottom: 0;
}

/* Auth screens (no sidebar/header shell). */
.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--body-bg);
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

/* Sidebar / flyout count badges (support tickets, etc.). */
.sidebar-nav-badge {
    margin-inline-start: auto;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 .35rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.app-sidebar.collapsed .sidebar-nav-badge {
    display: none;
}

.sidebar-flyout-link .sidebar-nav-badge {
    margin-inline-start: auto;
}
