/*
 * W3 Net responsive application layer — 2.4.8
 * Loaded after portal.css so responsive rules remain cumulative and upgrade-safe.
 */

:root {
    --w3-mobile-bar-height: 58px;
    --w3-sidebar-width: 260px;
    --w3-content-gutter: clamp(12px, 2vw, 28px);
    --w3-touch-target: 44px;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scrollbar-gutter: stable;
}

body {
    min-width: 320px;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

body.w3net-sidebar-open {
    overflow: hidden;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
    height: auto;
}

pre,
code,
.w3net-ai-output,
.w3net-prose,
.w3net-record-label,
.w3net-detail-value,
.w3net-card,
.w3net-panel,
.w3net-table td,
.w3net-table th {
    overflow-wrap: anywhere;
    word-break: normal;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

input[type="date"],
input[type="datetime-local"],
input[type="time"] {
    min-width: 0;
}

button,
.w3net-admin-link,
.w3net-link-button,
.w3net-chip-link,
.w3net-pagination a,
.w3net-header-nav a,
.w3net-sidebar-nav a {
    min-height: var(--w3-touch-target);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid rgba(41, 160, 215, .42);
    outline-offset: 2px;
}

.w3net-skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 10000;
    transform: translateY(-180%);
    background: #fff;
    color: var(--w3-heading);
    border: 2px solid var(--w3-primary-2);
    padding: 10px 14px;
    font-weight: 800;
}

.w3net-skip-link:focus {
    transform: translateY(0);
}

/* Application shell */
.w3net-app-screen {
    grid-template-columns: minmax(224px, var(--w3-sidebar-width)) minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
}

.w3net-app-sidebar {
    width: 100%;
    min-width: 0;
}

.w3net-app-content {
    width: 100%;
    min-width: 0;
    padding: var(--w3-content-gutter);
}

.w3net-app-content > *,
.w3net-overview-shell,
.w3net-detail-layout,
.w3net-panel-grid,
.w3net-kpi-grid,
.w3net-field-grid,
.w3net-toolbar {
    min-width: 0;
    max-width: 100%;
}

.w3net-mobile-appbar,
.w3net-sidebar-backdrop,
.w3net-sidebar-close {
    display: none;
}

.w3net-sidebar-close {
    appearance: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .20);
    background: transparent;
    color: #fff;
    font-size: 1.55rem;
    cursor: pointer;
}

.w3net-nav-group-toggle {
    appearance: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 6px;
    padding: 7px 6px;
    border: 0;
    background: transparent;
    color: #8ca4bf;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
}

.w3net-nav-group-toggle .w3net-nav-group-caret {
    display: inline-block;
    font-size: .92rem;
    transition: transform .16s ease;
}

.w3net-nav-group-toggle[aria-expanded="false"] .w3net-nav-group-caret {
    transform: rotate(-90deg);
}

.w3net-nav-group.is-collapsed > ul {
    display: none;
}

/*
 * Integrated desktop navigation: a single browser scrollbar controls the
 * complete application. The sidebar becomes sticky only while its currently
 * expanded content fits inside the viewport; otherwise it stays in normal
 * document flow so lower navigation items are never trapped in a nested pane.
 */
@media (min-width: 1101px) {
    .w3net-app-screen {
        align-items: start;
        background:
            linear-gradient(
                to right,
                #1c2431 0,
                #1c2431 var(--w3-sidebar-width),
                #eef2f7 var(--w3-sidebar-width),
                #eef2f7 100%
            );
    }

    .w3net-sticky-sidebar {
        position: relative;
        top: auto;
        height: auto !important;
        min-height: 100vh;
        max-height: none !important;
        overflow: visible !important;
        overscroll-behavior: auto;
        align-self: start;
    }

    .w3net-sticky-sidebar.w3net-sidebar-integrated-sticky {
        position: sticky;
        top: calc(-1 * var(--w3-sidebar-overflow, 0px));
    }

    .w3net-app-sidebar::-webkit-scrollbar {
        width: 0;
        height: 0;
    }
}

/* Header and page headings */
.w3net-content-topbar,
.w3net-page-head,
.w3net-panel-header,
.w3net-client-hero,
.w3net-migration-notice {
    min-width: 0;
}

.w3net-content-topbar > :first-child,
.w3net-page-head > :first-child,
.w3net-panel-header > :first-child {
    min-width: 0;
    flex: 1 1 auto;
}

.w3net-content-topbar h1,
.w3net-page-head h1 {
    font-size: clamp(1.45rem, 2.3vw, 2.1rem);
    line-height: 1.16;
}

.w3net-page-actions {
    justify-content: flex-end;
}

.w3net-page-actions > *,
.w3net-toolbar-actions > * {
    flex: 0 0 auto;
}

/* Fluid grids */
.w3net-kpi-grid,
.w3net-kpi-grid--workspace,
.w3net-kpi-grid--client {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.w3net-panel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.w3net-panel.is-span-2 {
    grid-column: span 2;
}

.w3net-panel-grid--two,
.w3net-panel-grid--nested,
.w3net-form-grid,
.w3net-detail-grid,
.w3net-rights-grid,
.w3net-governance-grid,
.w3net-health-grid,
.w3net-scope-grid,
.w3net-client-overview-grid,
.w3net-assessment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.w3net-module-card-grid,
.w3net-client-result-grid,
.w3net-quick-actions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.w3net-detail-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
}

.w3net-detail-sidebar {
    min-width: 0;
}

.w3net-field-grid {
    align-items: start;
}

.w3net-field-row,
.w3net-form label,
.w3net-toolbar-field {
    min-width: 0;
}

.w3net-field-row > input,
.w3net-field-row > select,
.w3net-field-row > textarea,
.w3net-form label > input,
.w3net-form label > select,
.w3net-form label > textarea {
    min-width: 0;
}

/* Tabs and horizontal toolbars */
.w3net-client-tabs,
.w3net-tabs,
.w3net-tab-nav,
.w3net-workspace-tabs,
.w3net-filter-tabs {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.w3net-client-tabs > *,
.w3net-tabs > *,
.w3net-tab-nav > *,
.w3net-workspace-tabs > *,
.w3net-filter-tabs > * {
    flex: 0 0 auto;
}

/* Tables: desktop/tablet scroll layer */
.w3net-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.w3net-table {
    min-width: 720px;
}

.w3net-table th,
.w3net-table td {
    line-height: 1.42;
}

.w3net-table td:last-child,
.w3net-table th:last-child {
    min-width: 120px;
}

.w3net-table-actions {
    align-items: flex-start;
}

.w3net-table-actions form {
    margin: 0;
}

.w3net-table-scroll-hint {
    display: none;
    padding: 8px 12px;
    border-bottom: 1px solid var(--w3-border);
    background: #f8fafc;
    color: var(--w3-muted);
    font-size: .78rem;
}

/* Search combobox */
.w3net-search-select,
.w3net-search-select-control,
.w3net-search-select-menu {
    min-width: 0;
    max-width: 100%;
}

.w3net-search-select-menu {
    max-height: min(360px, 48vh);
    overscroll-behavior: contain;
}

.w3net-search-select-option {
    min-height: 44px;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Records, assignments and attachments */
.w3net-list-row,
.w3net-mini-row,
.w3net-activity-row,
.w3net-data-row,
.w3net-assignment-row,
.w3net-attachment-row,
.w3net-related-record-row,
.w3net-team-option,
.w3net-record-strip a {
    min-width: 0;
}

.w3net-list-row > *,
.w3net-mini-row > *,
.w3net-activity-row > *,
.w3net-data-row > *,
.w3net-assignment-row > *,
.w3net-attachment-row > *,
.w3net-related-record-row > * {
    min-width: 0;
}

.w3net-record-strip strong,
.w3net-mini-row strong,
.w3net-list-row strong {
    overflow-wrap: anywhere;
}

/* Wizard */
.w3net-wizard-steps {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
}

.w3net-wizard-steps > * {
    scroll-snap-align: start;
}

.w3net-wizard-actions {
    position: sticky;
    bottom: 0;
    z-index: 9;
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--w3-border);
    padding-block: 12px;
}

/* Auth/public screens */
.w3net-login-card,
.w3net-verification-card {
    max-width: 100%;
}

.w3net-header-nav form {
    margin: 0;
}

/* Desktop compactness */
@media (min-width: 1440px) {
    .w3net-app-content {
        padding: 26px 30px 40px;
    }
}

@media (max-width: 1280px) {
    :root {
        --w3-sidebar-width: 232px;
    }

    .w3net-kpi-grid,
    .w3net-kpi-grid--workspace,
    .w3net-kpi-grid--client {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .w3net-panel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .w3net-panel.is-span-2 {
        grid-column: span 2;
    }

    .w3net-module-card-grid,
    .w3net-client-result-grid,
    .w3net-quick-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .w3net-table-scroll-hint {
        display: block;
    }
}

/* Off-canvas application navigation for tablets and phones. */
@media (max-width: 1100px) {
    body.logged-in.home .w3net-header,
    .w3net-route-app .w3net-header {
        display: none !important;
    }

    body.logged-in.home .w3net-main,
    .w3net-route-app .w3net-main {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .w3net-app-screen {
        display: block;
        min-height: 100dvh;
        background: #eef2f7;
    }

    .w3net-app-sidebar,
    .w3net-sticky-sidebar {
        position: fixed !important;
        inset: 0 auto 0 0;
        z-index: 1002;
        width: min(86vw, 330px);
        max-width: 330px;
        height: 100dvh !important;
        margin: 0 !important;
        border-right: 1px solid #2c3a4d !important;
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform .2s ease, visibility 0s linear .2s;
        padding-top: 16px;
        box-shadow: 18px 0 46px rgba(9, 18, 31, .25) !important;
    }

    body.w3net-sidebar-open .w3net-app-sidebar {
        transform: translateX(0);
        visibility: visible;
        transition-delay: 0s;
    }

    .w3net-sidebar-close {
        display: inline-flex;
    }

    .w3net-sidebar-brand {
        padding-right: 50px;
    }

    .w3net-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1001;
        display: block;
        background: rgba(7, 15, 27, .56);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s ease, visibility 0s linear .2s;
    }

    body.w3net-sidebar-open .w3net-sidebar-backdrop {
        opacity: 1;
        visibility: visible;
        transition-delay: 0s;
    }

    .w3net-mobile-appbar {
        position: sticky;
        top: 0;
        z-index: 900;
        min-height: var(--w3-mobile-bar-height);
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 44px 44px;
        align-items: center;
        gap: 10px;
        margin: calc(-1 * var(--w3-content-gutter)) calc(-1 * var(--w3-content-gutter)) 2px;
        padding: 7px var(--w3-content-gutter);
        background: rgba(255, 255, 255, .97);
        border-bottom: 1px solid var(--w3-border);
        box-shadow: 0 2px 10px rgba(15, 35, 66, .06);
        backdrop-filter: blur(12px);
    }

    .w3net-mobile-menu-button,
    .w3net-mobile-notification-link,
    .w3net-mobile-home-link {
        width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--w3-border);
        background: #fff;
        color: var(--w3-heading);
        font-weight: 800;
        text-decoration: none;
        cursor: pointer;
    }

    .w3net-mobile-menu-button {
        font-size: 1.35rem;
    }

    .w3net-mobile-appbar-title {
        min-width: 0;
        display: grid;
        line-height: 1.2;
    }

    .w3net-mobile-appbar-title strong,
    .w3net-mobile-appbar-title span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .w3net-mobile-appbar-title strong {
        color: var(--w3-heading);
        font-size: .96rem;
    }

    .w3net-mobile-appbar-title span {
        color: var(--w3-muted);
        font-size: .75rem;
    }

    .w3net-app-content {
        min-height: 100dvh;
        padding: var(--w3-content-gutter);
    }

    .w3net-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .w3net-detail-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .w3net-toolbar {
        grid-template-columns: minmax(0, 1fr) minmax(190px, .55fr) auto;
    }

    .w3net-client-hero {
        align-items: flex-start;
    }
}

@media (max-width: 820px) {
    .w3net-panel-grid,
    .w3net-panel-grid--two,
    .w3net-panel-grid--nested,
    .w3net-form-grid,
    .w3net-detail-grid,
    .w3net-rights-grid,
    .w3net-governance-grid,
    .w3net-health-grid,
    .w3net-scope-grid,
    .w3net-client-overview-grid,
    .w3net-assessment-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .w3net-panel.is-span-2,
    .w3net-panel.is-full {
        grid-column: auto;
    }

    .w3net-detail-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .w3net-toolbar {
        grid-template-columns: minmax(0, 1fr) minmax(180px, .6fr);
    }

    .w3net-toolbar-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .w3net-content-topbar,
    .w3net-page-head,
    .w3net-panel-header,
    .w3net-client-hero,
    .w3net-migration-notice {
        flex-direction: column;
        align-items: stretch;
    }

    .w3net-page-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .w3net-client-hero-meta {
        justify-content: flex-start;
        width: 100%;
    }

    .w3net-progress-wrap {
        grid-template-columns: minmax(130px, 160px) minmax(0, 1fr);
    }

    .w3net-chart-card {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .w3net-chart-bars {
        min-width: 620px;
    }
}

@media (max-width: 680px) {
    :root {
        --w3-content-gutter: 12px;
    }

    body {
        background: #eef2f7;
    }

    .w3net-app-content {
        gap: 13px;
    }

    .w3net-mobile-appbar {
        margin-bottom: 0;
    }

    .w3net-card,
    .w3net-panel,
    .w3net-toolbar,
    .w3net-kpi-card {
        padding: 16px;
    }

    .w3net-kpi-grid,
    .w3net-kpi-grid--workspace,
    .w3net-kpi-grid--client,
    .w3net-module-card-grid,
    .w3net-client-result-grid,
    .w3net-quick-actions-grid,
    .w3net-field-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .w3net-kpi-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 5px 14px;
    }

    .w3net-kpi-card .w3net-kpi-label {
        margin: 0;
    }

    .w3net-kpi-card .w3net-kpi-value {
        grid-row: 1 / span 2;
        grid-column: 2;
        margin: 0;
        font-size: 1.65rem;
    }

    .w3net-kpi-card .w3net-kpi-meta {
        grid-column: 1;
    }

    .w3net-toolbar {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .w3net-toolbar-actions {
        grid-column: auto;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .w3net-toolbar-actions > *,
    .w3net-page-actions > *,
    .w3net-page-actions form,
    .w3net-page-actions button,
    .w3net-page-actions a,
    .w3net-transition-form button,
    .w3net-detail-sidebar .w3net-admin-link,
    .w3net-detail-sidebar .w3net-link-button {
        width: 100%;
    }

    .w3net-page-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .w3net-panel-header {
        margin-bottom: 13px;
    }

    .w3net-progress-wrap {
        grid-template-columns: minmax(0, 1fr);
    }

    .w3net-progress-ring {
        width: 128px;
        height: 128px;
    }

    .w3net-progress-ring::before {
        width: 94px;
        height: 94px;
    }

    .w3net-list-row,
    .w3net-mini-row,
    .w3net-activity-row,
    .w3net-data-row,
    .w3net-assignment-row,
    .w3net-attachment-row,
    .w3net-related-record-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .w3net-list-row > span,
    .w3net-mini-row > .w3net-badge,
    .w3net-data-row > span {
        align-self: flex-start;
    }

    .w3net-search-select-menu {
        position: fixed;
        inset: auto 10px 10px 10px;
        z-index: 1100;
        width: auto;
        max-height: min(60vh, 480px);
        box-shadow: 0 -12px 40px rgba(15, 35, 66, .18);
    }

    .w3net-search-select.is-open::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 1099;
        background: rgba(7, 15, 27, .35);
    }

    /* Mobile tables become labeled record cards. */
    .w3net-table.is-responsive-card {
        min-width: 0;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 10px;
        background: transparent;
    }

    .w3net-table.is-responsive-card thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .w3net-table.is-responsive-card tbody,
    .w3net-table.is-responsive-card tr,
    .w3net-table.is-responsive-card td {
        display: block;
        width: 100%;
    }

    .w3net-table.is-responsive-card tr {
        border: 1px solid var(--w3-border);
        background: #fff;
    }

    .w3net-table.is-responsive-card td {
        min-width: 0 !important;
        padding: 10px 12px;
        border: 0;
        border-bottom: 1px solid #edf2f7;
        display: grid;
        grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
        gap: 10px;
        align-items: start;
        text-align: left;
    }

    .w3net-table.is-responsive-card td:last-child {
        border-bottom: 0;
    }

    .w3net-table.is-responsive-card td::before {
        content: attr(data-label);
        color: var(--w3-muted);
        font-size: .72rem;
        font-weight: 800;
        letter-spacing: .035em;
        text-transform: uppercase;
    }

    .w3net-table.is-responsive-card td[data-label=""],
    .w3net-table.is-responsive-card td.is-empty-row {
        display: block;
    }

    .w3net-table.is-responsive-card td[data-label=""]::before,
    .w3net-table.is-responsive-card td.is-empty-row::before {
        content: none;
    }

    .w3net-table.is-responsive-card .w3net-table-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .w3net-table.is-responsive-card .w3net-table-actions > *,
    .w3net-table.is-responsive-card .w3net-table-actions a,
    .w3net-table.is-responsive-card .w3net-table-actions button {
        width: 100%;
    }

    .w3net-table-scroll-hint {
        display: none;
    }

    .w3net-pagination {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .w3net-client-tabs,
    .w3net-tabs,
    .w3net-tab-nav,
    .w3net-workspace-tabs,
    .w3net-filter-tabs {
        flex-wrap: nowrap !important;
    }

    .w3net-wizard-steps {
        display: flex !important;
        gap: 7px;
        padding-bottom: 8px;
    }

    .w3net-wizard-steps > * {
        min-width: 176px;
        flex: 0 0 176px;
    }

    .w3net-wizard-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-inline: -16px;
        padding-inline: 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }

    .w3net-auth-wrap {
        min-height: calc(100dvh - 120px);
        padding: 10px 0 24px;
    }

    .w3net-login-card,
    .w3net-verification-card {
        padding: 20px 16px;
    }

    .w3net-card-links {
        display: grid;
        gap: 10px;
    }

    .w3net-footer {
        gap: 12px;
        padding: 16px 12px;
    }
}

@media (max-width: 420px) {
    .w3net-mobile-appbar {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 8px;
    }

    .w3net-toolbar-actions,
    .w3net-table.is-responsive-card .w3net-table-actions,
    .w3net-wizard-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .w3net-table.is-responsive-card td {
        grid-template-columns: minmax(82px, 38%) minmax(0, 1fr);
    }

    .w3net-kpi-card {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media print {
    .w3net-app-sidebar,
    .w3net-mobile-appbar,
    .w3net-sidebar-backdrop,
    .w3net-page-actions,
    .w3net-toolbar,
    .w3net-sidebar-signout,
    .w3net-footer {
        display: none !important;
    }

    .w3net-app-screen,
    .w3net-app-content {
        display: block !important;
        padding: 0 !important;
        background: #fff !important;
    }

    .w3net-card,
    .w3net-panel,
    .w3net-table-card {
        break-inside: avoid;
        box-shadow: none !important;
    }
}

/* Consistent actions generated by module tables, including legacy buttons. */
.w3net-table-actions button,
.w3net-table-actions input[type="submit"] {
    appearance: none;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid var(--w3-border);
    background: #fff;
    color: var(--w3-heading);
    font-weight: 700;
    cursor: pointer;
}

.w3net-table-actions button:hover,
.w3net-table-actions input[type="submit"]:hover {
    background: #f3f7fb;
}

@media (max-width: 1100px) and (min-width: 821px) {
    .w3net-panel-grid > .w3net-panel.is-span-2 {
        grid-column: auto;
    }
}

@media (max-width: 680px) {
    .w3net-app-content {
        font-size: 14px;
        line-height: 1.45;
    }

    .w3net-field-row small,
    .w3net-muted,
    .w3net-panel-header p,
    .w3net-kpi-meta {
        font-size: 12px;
    }

    .w3net-form textarea,
    .w3net-field-row textarea {
        min-height: 118px;
    }
}


/* W3 Net 2.4.1 — document workspace breakpoints shared by every workflow module */
@media (max-width: 1480px) {
    .w3net-attachment-metadata-grid {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }
}

@media (max-width: 1180px) {
    .w3net-attachment-upload-grid,
    .w3net-document-access-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .w3net-attachment-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 1100px) {
    .w3net-detail-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .w3net-attachment-metadata-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .w3net-detail-sidebar,
    .w3net-attachment-metadata-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .w3net-attachment-submit-row {
        align-items: stretch;
        flex-direction: column;
    }
    .w3net-attachment-submit-row button {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 680px) {
    .w3net-attachments-panel {
        margin-top: 13px;
    }
    .w3net-attachment-form {
        gap: 14px;
    }
    .w3net-attachment-file-field input[type="file"] {
        min-height: 62px;
    }
    .w3net-document-access-fieldset {
        padding: 12px;
    }
    .w3net-attachment-item {
        flex-direction: column;
    }
    .w3net-attachment-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .w3net-attachment-actions .w3net-link-button {
        width: 100%;
    }
}

/* Email branding responsive rules */
@media (max-width:1100px){.w3net-email-layout{grid-template-columns:1fr}.w3net-email-side-card{position:static}.w3net-email-transport-card{min-width:0;max-width:none;width:100%}.w3net-email-topbar{flex-direction:column}.w3net-email-assignment-grid{grid-template-columns:1fr 1fr}}
@media (max-width:760px){.w3net-email-tabs{display:flex;overflow-x:auto;scrollbar-width:thin}.w3net-email-tabs a{flex:0 0 auto}.w3net-email-form-grid{grid-template-columns:1fr}.w3net-email-assignment-grid{grid-template-columns:1fr}.w3net-span-2{grid-column:auto}.w3net-card-header{flex-direction:column}.w3net-email-profile-actions{flex-direction:column}.w3net-email-profile-actions form,.w3net-email-profile-actions button,.w3net-email-profile-actions .w3net-admin-link{width:100%}.w3net-summary-list>div{grid-template-columns:1fr}.w3net-email-form-grid .w3net-form-actions{justify-content:stretch}.w3net-email-form-grid .w3net-form-actions button{width:100%}.w3net-email-preview-frame{padding:6px}.w3net-email-preview-frame table{max-width:100%!important}.w3net-email-preview-frame td{max-width:100%;overflow-wrap:anywhere}}


/* Bulk list actions remain usable on tablets and mobile record cards. */
@media (max-width: 900px) {
    .w3net-bulk-actions {
        grid-template-columns: 1fr 1fr;
    }
    .w3net-bulk-actions__summary,
    .w3net-bulk-actions small {
        grid-column: 1 / -1;
    }
}
@media (max-width: 680px) {
    .w3net-bulk-actions {
        grid-template-columns: 1fr;
        padding: 12px;
    }
    .w3net-bulk-actions__summary,
    .w3net-bulk-actions small {
        grid-column: auto;
    }
    .w3net-bulk-actions__summary {
        justify-content: space-between;
    }
    .w3net-bulk-actions .w3net-button-danger,
    .w3net-bulk-actions select {
        width: 100%;
    }
    .w3net-table.is-responsive-card .w3net-select-cell {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 900px) {
  .w3net-hard-delete-fields { grid-template-columns: 1fr 1fr; }
  .w3net-hard-delete-fields label:first-of-type { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .w3net-hard-delete-fields { grid-template-columns: 1fr; }
  .w3net-hard-delete-fields label:first-of-type { grid-column: auto; }
  .w3net-hard-delete-warning { display: grid; gap: 4px; }
  .w3net-hard-delete-form .w3net-button-danger,
  .w3net-hard-delete-fields + .w3net-button-danger { width: 100%; }
}
