/* HR employees and compact admin dropdowns */
.admin-area-dropdown {
    width: max-content;
    min-width: 260px;
    max-width: min(340px, calc(100vw - 28px));
    max-height: min(72vh, 520px);
    overflow-y: auto;
    align-content: start;
    gap: 3px;
    padding: 8px;
}

.admin-area-dropdown .admin-area-link,
.admin-area-dropdown a.admin-area-link[href*="time-clock"],
.admin-area-dropdown a.admin-area-link[href*="fichaje"] {
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    color: #172115;
    background: transparent;
    font-size: 13px;
    line-height: 1.25;
    white-space: normal;
}

.admin-area-dropdown .admin-area-link:hover,
.admin-area-dropdown .admin-area-link.is-active,
.admin-area-dropdown a.admin-area-link[href*="time-clock"]:hover,
.admin-area-dropdown a.admin-area-link[href*="fichaje"]:hover {
    color: #07120f;
    background: #edf8dd;
    text-decoration: none;
}

.admin-area-dropdown .admin-area-link strong {
    display: block;
    margin: 0;
    color: inherit;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.2;
}

.admin-area-dropdown .admin-area-link small {
    display: block;
    margin: 0;
    color: #5f6a5c;
    font-size: 11px;
    font-weight: 550;
    line-height: 1.3;
}

.hr-shell {
    width: calc(100% - 48px);
    max-width: 1392px;
    margin: 0 auto;
    padding: 28px 0 48px;
}

.hr-filter-form,
.hr-employee-form {
    display: grid;
    gap: 16px;
}

.hr-filter-form input,
.hr-filter-form select,
.hr-employee-form input,
.hr-employee-form select,
.hr-employee-form textarea {
    width: 100%;
}

.hr-form-grid,
.hr-summary-grid,
.hr-detail-grid {
    display: grid;
    gap: 16px;
}

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

.hr-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

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

.hr-summary-card,
.hr-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(24, 35, 24, .07);
}

.hr-summary-card {
    border-top: 4px solid var(--nf-green);
}

.hr-summary-card span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.hr-summary-card strong {
    display: block;
    margin-top: 6px;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 1.2rem;
}

.hr-panel {
    margin-bottom: 18px;
}

.hr-employee-table {
    min-width: 1040px;
}

.hr-employee-table small,
.table-muted-line {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.hr-status-active { color: #286436; background: #e3f5e8; }
.hr-status-inactive,
.hr-status-ended { color: #667064; background: #edf0eb; }
.hr-status-temporary_leave { color: #885910; background: #fff1d6; }

.hr-pagination {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.hr-pagination .is-active {
    color: #07120f;
    background: var(--nf-green);
    border-color: var(--nf-green);
}

@media (max-width: 900px) {
    .hr-shell { width: calc(100% - 32px); }
    .hr-summary-grid,
    .hr-detail-grid,
    .hr-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .hr-shell { width: calc(100% - 24px); }
    .admin-area-dropdown { max-width: calc(100vw - 20px); }
}

/* HR organization settings */
.hr-settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.hr-settings-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: #fff;
    font-weight: 800;
    text-decoration: none;
}

.hr-settings-tabs a.is-active {
    color: #07120f;
    border-color: var(--nf-green);
    background: var(--nf-green);
}

.hr-settings-form,
.hr-organization-forms {
    display: grid;
    gap: 16px;
}

.hr-settings-form input,
.hr-settings-form select,
.hr-settings-form textarea,
.hr-inline-card input,
.hr-inline-card select,
.hr-inline-card textarea {
    width: 100%;
}

.hr-catalog-table {
    min-width: 860px;
}

.form-check-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    font-weight: 800;
}

.form-check-inline input[type="checkbox"] {
    width: auto;
}

.hr-help-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.7;
}

.hr-organization-panel {
    border-top: 4px solid var(--nf-green);
}

.hr-organization-current {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.hr-organization-current article,
.hr-inline-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfdf8;
}

.hr-organization-current span,
.hr-organization-current small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.hr-organization-current strong {
    display: block;
    margin: 6px 0;
    color: var(--text);
    font-size: 1.05rem;
}

.hr-organization-forms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

.hr-inline-card h3,
.hr-future-changes h3 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 1rem;
}

.hr-future-changes {
    margin: 16px 0;
}

.status-pill-muted {
    color: #667064;
    background: #edf0eb;
}

@media (max-width: 900px) {
    .hr-organization-current,
    .hr-organization-forms {
        grid-template-columns: 1fr;
    }
}

/* HR employee organization management */
.hr-management-callout,
.hr-organization-readonly {
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid rgba(148, 211, 51, .35);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(148, 211, 51, .12), rgba(255, 255, 255, .92));
}

.hr-organization-readonly {
    border-color: var(--line);
    background: #fbfdf8;
}

.hr-management-callout strong,
.hr-organization-readonly strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-weight: 900;
}

.hr-management-callout p,
.hr-organization-readonly p,
.hr-form-help {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.hr-inline-card .hr-form-help {
    margin-bottom: 12px;
}

.hr-future-list {
    display: grid;
    gap: 12px;
}

.hr-future-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.hr-future-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hr-future-card-header strong,
.hr-future-card-header small {
    display: block;
}

.hr-future-card-header strong {
    margin-top: 8px;
    color: var(--text);
    font-size: 1rem;
}

.hr-future-card-header small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.hr-future-actions {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.hr-future-edit {
    padding: 10px 12px;
    border: 1px dashed rgba(15, 36, 24, .18);
    border-radius: 10px;
    background: #fbfdf8;
}

.hr-future-edit summary {
    cursor: pointer;
    color: var(--text);
    font-weight: 900;
}

.hr-future-edit form {
    margin-top: 12px;
}

.hr-future-cancel {
    display: flex;
    justify-content: flex-end;
    margin: 0;
}

@media (max-width: 700px) {
    .hr-future-card-header,
    .hr-future-cancel {
        display: block;
    }

    .hr-future-cancel .danger-link {
        width: 100%;
        margin-top: 8px;
    }
}
/* HR and Marketing UI polish */
.hr-shell,
.marketing-shell {
    max-width: 1440px;
}

.hr-shell .admin-header,
.marketing-shell .admin-header {
    display: flex;
    justify-content: space-between;
    gap: 22px;
}

.hr-shell .admin-header .header-actions,
.marketing-shell .admin-header .header-actions {
    align-self: center;
}

.hr-shell .table-panel,
.hr-shell .filter-panel,
.hr-shell .hr-panel,
.marketing-shell .table-panel,
.marketing-shell .filter-panel,
.marketing-shell .form-panel,
.marketing-shell .dashboard-section {
    border: 1px solid var(--nf-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 16px 42px rgba(16, 20, 24, .08);
}

.hr-shell .hr-panel,
.marketing-shell .dashboard-section {
    padding: 20px;
}

.hr-shell .hr-panel + .hr-panel,
.marketing-shell .dashboard-section + .dashboard-section {
    margin-top: 18px;
}

.hr-shell .table-panel-header,
.marketing-shell .table-panel-header,
.marketing-shell .section-heading {
    align-items: flex-start;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(221, 232, 210, .78);
}

.hr-shell .table-panel-header h2,
.marketing-shell .table-panel-header h2,
.marketing-shell .section-heading h2 {
    color: var(--nf-black);
    font-size: 1.15rem;
    letter-spacing: 0;
}

.hr-shell .table-panel-header p,
.marketing-shell .table-panel-header p,
.marketing-shell .section-heading p {
    max-width: 760px;
    color: var(--nf-muted);
    line-height: 1.45;
}

.hr-shell .dashboard-cards,
.marketing-shell .dashboard-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.hr-shell .dashboard-card,
.hr-shell .hr-summary-card,
.marketing-shell .dashboard-card {
    min-width: 0;
    padding: 17px;
    border: 1px solid var(--nf-border);
    border-top: 4px solid var(--nf-green);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(16, 20, 24, .07);
}

.hr-shell .dashboard-card-title,
.hr-shell .hr-summary-card span,
.marketing-shell .dashboard-card-title {
    color: #60705d;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.hr-shell .dashboard-card-value,
.hr-shell .hr-summary-card strong,
.marketing-shell .dashboard-card-value {
    display: block;
    margin-top: 7px;
    color: var(--nf-black);
    font-size: clamp(1.25rem, 2vw, 2rem);
    line-height: 1.05;
}

.hr-shell .dashboard-card-value.small-value,
.marketing-shell .dashboard-card-value.small-value {
    font-size: clamp(1rem, 1.4vw, 1.35rem);
    line-height: 1.16;
}

.hr-detail-grid,
.marketing-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
    gap: 18px;
    align-items: start;
}

.hr-shell .form-grid,
.marketing-shell .form-grid,
.hr-form-grid,
.hr-filter-form .form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    align-items: start;
}

.hr-shell .form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hr-shell .form-field-wide,
.marketing-shell .form-field-wide,
.hr-shell .client-data-wide {
    grid-column: 1 / -1;
}

.hr-shell label,
.marketing-shell label,
.hr-shell .form-field,
.marketing-shell .form-field {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: #172033;
    font-weight: 700;
}

.hr-shell input,
.hr-shell select,
.hr-shell textarea,
.marketing-shell input,
.marketing-shell select,
.marketing-shell textarea {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--nf-ink);
    border: 1px solid #cfdcc5;
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.hr-shell textarea,
.marketing-shell textarea {
    min-height: 108px;
    line-height: 1.5;
    resize: vertical;
}

.hr-shell input[type="checkbox"],
.marketing-shell input[type="checkbox"] {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    padding: 0;
    accent-color: var(--nf-green);
}

.hr-shell input[type="file"],
.marketing-shell input[type="file"] {
    min-height: 46px;
    padding: 9px;
    background: #f9fbf5;
}

.hr-shell input:focus,
.hr-shell select:focus,
.hr-shell textarea:focus,
.marketing-shell input:focus,
.marketing-shell select:focus,
.marketing-shell textarea:focus {
    border-color: var(--nf-green);
    box-shadow: 0 0 0 4px rgba(157, 202, 63, .18);
    outline: 0;
}

.hr-shell .form-check-inline,
.hr-shell .checkbox-label,
.marketing-shell .checkbox-label,
.marketing-shell .checkbox-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #dce8d1;
    border-radius: 12px;
    background: #fbfdf8;
}

.hr-shell fieldset,
.marketing-shell fieldset {
    min-width: 0;
    padding: 16px;
    border: 1px solid #dce8d1;
    border-radius: 14px;
    background: #fbfdf8;
}

.hr-shell legend,
.marketing-shell legend {
    padding: 0 6px;
    color: var(--nf-black);
    font-weight: 900;
}

.checkbox-grid,
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hr-shell .form-actions,
.marketing-shell .form-actions,
.marketing-shell .project-card-actions,
.marketing-shell .table-actions,
.hr-shell .table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.hr-shell .filters-form,
.marketing-shell .filters-form,
.hr-filter-form {
    display: grid;
    gap: 16px;
}

.marketing-shell .filters-form > input,
.marketing-shell .filters-form > select,
.marketing-shell .filters-form > label,
.marketing-shell .filters-form > button,
.marketing-shell .filters-form > a {
    min-width: 0;
}

.marketing-shell .filters-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
}

.marketing-shell .filters-form .primary-link,
.marketing-shell .filters-form .secondary-link {
    justify-content: center;
    min-height: 44px;
}

.dashboard-tabs,
.hr-settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    padding: 8px;
    border: 1px solid var(--nf-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 12px 28px rgba(16, 20, 24, .06);
}

.dashboard-tabs a,
.hr-settings-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    color: var(--nf-ink);
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
}

.dashboard-tabs a:hover,
.hr-settings-tabs a:hover,
.dashboard-tabs a.is-active,
.hr-settings-tabs a.is-active {
    color: var(--nf-black);
    border-color: var(--nf-green);
    background: var(--nf-green);
}

.hr-shell .table-scroll,
.marketing-shell .table-scroll {
    border: 1px solid #e2eadb;
    border-radius: 14px;
    background: #fff;
}

.hr-shell .data-table,
.marketing-shell .data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.hr-shell .data-table th,
.marketing-shell .data-table th {
    color: #596853;
    background: #f5f8f1;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hr-shell .data-table th,
.hr-shell .data-table td,
.marketing-shell .data-table th,
.marketing-shell .data-table td {
    padding: 13px 14px;
    vertical-align: top;
    border-bottom: 1px solid #edf2e8;
}

.hr-shell .data-table tbody tr:hover,
.marketing-shell .data-table tbody tr:hover {
    background: #fbfdf8;
}

.table-muted-line,
.hr-shell small,
.marketing-shell small,
.proposal-muted,
.amount-muted {
    color: var(--nf-muted);
    line-height: 1.45;
}

.hr-shell .empty-state,
.hr-shell .empty-copy,
.marketing-shell .empty-state,
.marketing-shell .proposal-muted:only-child {
    margin: 0;
    padding: 22px;
    color: #64715f;
    border: 1px dashed #cddbc4;
    border-radius: 16px;
    background: #f8fbf4;
}

.hr-shell .status-pill,
.marketing-shell .status-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    min-height: 26px;
    padding: 5px 10px;
    color: #26301f;
    border: 1px solid #d9e7cd;
    border-radius: 999px;
    background: #eef8dc;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
}

.hr-shell .status-pill-success,
.hr-shell .status-approved,
.hr-shell .status-active,
.marketing-shell .status-approved,
.marketing-shell .status-published {
    color: #0f5132;
    border-color: #badbcc;
    background: #dff3e8;
}

.hr-shell .status-pill-warning,
.hr-shell .status-pending,
.marketing-shell .status-draft,
.marketing-shell .status-pending_review,
.marketing-shell .status-changes_requested,
.marketing-shell .status-scheduled {
    color: #6f4e0c;
    border-color: #f4d28b;
    background: #fff5d8;
}

.hr-shell .status-pill-danger,
.hr-shell .status-rejected,
.hr-shell .status-cancelled,
.marketing-shell .status-cancelled,
.marketing-shell .status-archived,
.marketing-shell .status-rejected {
    color: #842029;
    border-color: #f1b6bd;
    background: #fdecef;
}

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

.marketing-shell .project-list-card {
    border-radius: 18px;
    border-top-color: var(--nf-green);
}

.marketing-shell .project-card-head h3 {
    margin: 0;
    color: var(--nf-black);
    font-size: 1.1rem;
    line-height: 1.2;
}

.marketing-shell .project-card-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.marketing-shell .project-card-meta dt {
    color: var(--nf-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.marketing-shell .project-card-meta dd {
    margin: 4px 0 0;
    color: var(--nf-ink);
    font-weight: 800;
}

.marketing-shell .proposal-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.marketing-shell .proposal-detail-grid > div {
    min-width: 0;
    padding: 15px;
    border: 1px solid #e2eadb;
    border-radius: 14px;
    background: #fbfdf8;
}

.marketing-shell .proposal-detail-grid strong {
    display: block;
    margin-bottom: 6px;
    color: #596853;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.marketing-shell .proposal-detail-grid p {
    margin: 0;
}

.marketing-shell .proposal-detail-wide {
    grid-column: 1 / -1;
}

.marketing-shell details.internal-note-edit,
.hr-shell details.internal-note-edit {
    padding: 12px 14px;
    border: 1px solid #dce8d1;
    border-radius: 14px;
    background: #fbfdf8;
}

.marketing-shell details.internal-note-edit summary,
.hr-shell details.internal-note-edit summary {
    cursor: pointer;
    color: var(--nf-black);
    font-weight: 900;
}

.marketing-shell .inline-form,
.hr-shell .inline-form {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.hr-shell .pagination,
.marketing-shell .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.hr-shell .pagination .is-active,
.marketing-shell .pagination .is-active {
    color: var(--nf-black);
    border-color: var(--nf-green);
    background: var(--nf-green);
}

.admin-area-nav {
    min-height: 72px;
}

.admin-area-nav-inner {
    max-width: 1600px;
}

.admin-area-group > summary,
.portal-notifications > summary,
.admin-area-quick,
.admin-area-logout {
    white-space: nowrap;
}

.admin-area-dropdown {
    width: min(360px, calc(100vw - 28px));
    max-height: min(76vh, 620px);
    overflow-y: auto;
    padding: 10px;
}

.admin-area-dropdown .admin-area-link {
    border-radius: 12px;
}

.admin-area-dropdown .admin-area-link strong {
    line-height: 1.2;
}

.admin-area-dropdown .admin-area-link small {
    line-height: 1.35;
}

.admin-area-user {
    min-width: 0;
}

.admin-area-user > span {
    min-width: 0;
    max-width: 220px;
}

.admin-area-user strong,
.admin-area-user small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .hr-shell .dashboard-cards,
    .marketing-shell .dashboard-cards,
    .marketing-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .marketing-shell .filters-form,
    .hr-shell .form-grid,
    .marketing-shell .form-grid,
    .hr-form-grid,
    .hr-filter-form .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-area-user > span {
        max-width: 150px;
    }
}

@media (max-width: 820px) {
    .hr-shell,
    .marketing-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hr-shell .admin-header,
    .marketing-shell .admin-header,
    .hr-detail-grid,
    .marketing-detail-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .hr-shell .admin-header .header-actions,
    .marketing-shell .admin-header .header-actions {
        align-self: stretch;
        justify-content: flex-start;
    }

    .hr-shell .dashboard-cards,
    .marketing-shell .dashboard-cards,
    .marketing-card-grid,
    .marketing-shell .filters-form,
    .hr-shell .form-grid,
    .marketing-shell .form-grid,
    .hr-form-grid,
    .hr-filter-form .form-grid,
    .checkbox-grid,
    .checkbox-group,
    .marketing-shell .project-card-meta,
    .marketing-shell .proposal-detail-grid {
        grid-template-columns: 1fr;
    }

    .hr-shell .table-panel,
    .hr-shell .filter-panel,
    .hr-shell .hr-panel,
    .marketing-shell .table-panel,
    .marketing-shell .filter-panel,
    .marketing-shell .form-panel,
    .marketing-shell .dashboard-section {
        padding: 16px;
        border-radius: 16px;
    }
}

/* HR and Marketing UI polish refinements */
.marketing-shell .filters-form > .form-grid,
.marketing-shell .filters-form > .form-actions,
.hr-shell .hr-filter-form > .form-grid,
.hr-shell .hr-filter-form > .form-actions {
    grid-column: 1 / -1;
}

.marketing-shell .filters-form > .form-actions,
.hr-shell .hr-filter-form > .form-actions {
    justify-content: flex-end;
}

.marketing-shell .compact-filter-label,
.marketing-shell .checkbox-inline {
    min-height: 44px;
}

.hr-shell .admin-form:not(.hr-settings-form) {
    display: grid;
    gap: 16px;
}

.hr-shell .admin-form:not(.hr-settings-form) .table-scroll {
    margin-top: 2px;
}

.hr-shell .admin-form:not(.hr-settings-form) .data-table input[type="time"] {
    max-width: 150px;
}
/* HR compact filters */
.hr-shell .compact-filter-form,
.hr-shell .compact-form {
    align-items: end;
    gap: 12px;
    padding: 16px;
}

.hr-shell .compact-filter-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hr-shell .compact-form .filters-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.hr-shell .compact-filter-form > label,
.hr-shell .compact-form .filters-grid > label {
    display: grid;
    gap: 6px;
    margin: 0;
}

.hr-shell .compact-filter-form > button,
.hr-shell .compact-form .form-actions {
    align-self: end;
    justify-self: end;
    width: auto;
}

@media (max-width: 1100px) {
    .hr-shell .compact-filter-form,
    .hr-shell .compact-form .filters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hr-shell .compact-filter-form > button,
    .hr-shell .compact-form .form-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .hr-shell .compact-filter-form,
    .hr-shell .compact-form .filters-grid {
        grid-template-columns: 1fr;
    }

    .hr-shell .compact-filter-form > button,
    .hr-shell .compact-form .form-actions,
    .hr-shell .compact-form .form-actions button {
        width: 100%;
    }
}
