.agripay-org-layout {
    display: grid;
    gap: 24px;
}

.agripay-org-card {
    padding: clamp(22px, 4vw, 36px);
    border: 1px solid #dce8df;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(22, 66, 42, 0.06);
}

.agripay-org-card h2 {
    margin: 0 0 24px;
    font-size: 22px;
}

.agripay-org-form,
.agripay-org-form label {
    display: grid;
    gap: 8px;
}

.agripay-org-form {
    gap: 18px;
}

.agripay-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.agripay-org-form input,
.agripay-org-form select {
    width: 100%;
    min-height: 48px;
    padding: 8px 12px;
    border: 1px solid #cfdcd3;
    border-radius: 10px;
    background: #fbfdfb;
    font: inherit;
}

.agripay-org-form input:focus,
.agripay-org-form select:focus {
    border-color: #16834a;
    outline: 3px solid rgba(22, 131, 74, 0.12);
}

.agripay-org-form button {
    width: max-content;
    min-height: 48px;
    padding: 8px 28px;
    border: 0;
    border-radius: 10px;
    background: #16834a;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.agripay-org-form small {
    color: #66776d;
}

.agripay-org-form .agripay-checkbox {
    display: flex;
    align-items: center;
}

.agripay-org-form .agripay-checkbox input {
    width: 18px;
    min-height: 18px;
}

.agripay-table-wrap {
    overflow-x: auto;
}

.agripay-org-list table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.agripay-org-list th,
.agripay-org-list td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5ece7;
    text-align: right;
}

.agripay-org-list th {
    color: #516258;
    font-size: 14px;
}

.agripay-org-list a {
    color: #16834a;
    font-weight: 700;
    text-decoration: none;
}

.agripay-org-notice {
    padding: 14px 18px;
    border-radius: 12px;
}

.agripay-org-notice.is-success {
    background: #e7f7ed;
    color: #126b3d;
}

.agripay-org-notice.is-error {
    background: #fff0f0;
    color: #a32020;
}

@media (max-width: 700px) {
    .agripay-form-grid {
        grid-template-columns: 1fr;
    }
}
.agripay-row-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agripay-delete-form {
    display: inline;
    margin: 0;
}

.agripay-delete-form button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #b42318;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}
.agripay-department-tree-name {
    position: relative;
    display: inline-block;
    padding-inline-start: calc(var(--tree-depth) * 26px);
    font-weight: 700;
}

.agripay-department-tree-name[style*="--tree-depth: 0"] {
    color: #173226;
}

.agripay-department-tree-name:not([style*="--tree-depth: 0"])::before {
    content: "↳";
    position: absolute;
    inset-inline-start: calc((var(--tree-depth) - 1) * 26px);
    color: #829087;
}
.agripay-filter-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.agripay-filter-form label {
    display: grid;
    gap: 8px;
}

.agripay-filter-form input,
.agripay-filter-form select {
    width: 100%;
    min-height: 48px;
    padding: 8px 12px;
    border: 1px solid #cfdcd3;
    border-radius: 10px;
    background: #fbfdfb;
    font: inherit;
}

.agripay-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 18px;
}

.agripay-filter-actions button {
    min-height: 46px;
    padding: 8px 24px;
    border: 0;
    border-radius: 10px;
    background: #16834a;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.agripay-filter-actions a {
    color: #66776d;
    text-decoration: none;
}

.agripay-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.agripay-list-heading h2 {
    margin: 0;
}

.agripay-list-heading span {
    color: #66776d;
}

.agripay-danger-zone {
    margin-top: 32px;
    padding: 20px;
    border: 1px solid #f2b8b5;
    border-radius: 12px;
    background: #fff8f7;
}

.agripay-danger-zone strong {
    color: #b42318;
}

.agripay-danger-zone p {
    margin: 8px 0 16px;
}

.agripay-danger-zone button {
    min-height: 42px;
    padding: 8px 18px;
    border: 0;
    border-radius: 8px;
    background: #b42318;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

@media (max-width: 700px) {
    .agripay-filter-form {
        grid-template-columns: 1fr;
    }
}