.mvc-page {
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: 30px 0;
}
.mvc-page h2 {
    font-size: 17px;
    margin: 0 0 18px;
}
.client-form-card {
    margin-bottom: 18px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.field-full {
    grid-column: 1/-1;
}
.field b {
    color: #dc2626;
}
.field textarea {
    width: 100%;
    min-height: 88px;
    padding: 12px;
    border: 1px solid #cdd5e1;
    border-radius: 8px;
    resize: vertical;
    outline: 0;
}
.field input:focus,
.field textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px #2563eb18;
}
.field em {
    display: block;
    color: #dc2626;
    font-size: 12px;
    font-style: normal;
    margin-top: 5px;
}
.check-field {
    grid-column: 1/-1;
    color: #536076;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}
.secondary-btn {
    padding: 10px 15px;
    border: 1px solid #d4dbe6;
    color: #536076;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}
.success-message {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    padding: 11px 13px;
    border-radius: 8px;
    margin-bottom: 18px;
}
.client-list h2 span {
    color: #6f7b91;
    font-size: 13px;
    font-weight: 500;
    margin-left: 5px;
}
.table-wrap {
    overflow-x: auto;
}
table {
    border-collapse: collapse;
    width: 100%;
    min-width: 680px;
}
th {
    text-align: left;
    color: #6f7b91;
    font-size: 12px;
    padding: 0 12px 12px;
    border-bottom: 1px solid #e5eaf2;
}
td {
    padding: 14px 12px;
    border-bottom: 1px solid #eef1f5;
    color: #536076;
}
td strong {
    color: #172033;
}
.status {
    border-radius: 99px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 600;
}
.status.active {
    background: #dcfce7;
    color: #15803d;
}
.status.inactive {
    background: #f1f5f9;
    color: #64748b;
}
.edit-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}
@media (max-width: 700px) {
    .server-sidebar {
        display: none;
    }
    .mvc-page {
        padding: 22px 0;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .field-full,
    .check-field {
        grid-column: auto;
    }
    .form-actions {
        justify-content: stretch;
    }
    .form-actions > * {
        flex: 1;
        text-align: center;
    }
    .table-wrap {
        overflow: visible;
    }
    table,
    thead,
    tbody,
    tr,
    th,
    td {
        display: block;
        min-width: 0;
    }
    thead {
        display: none;
    }
    tr {
        padding: 12px 0;
        border-bottom: 1px solid #e5eaf2;
    }
    td {
        border: 0;
        display: flex;
        justify-content: space-between;
        gap: 15px;
        padding: 6px 0;
        text-align: right;
    }
    td:before {
        content: attr(data-label);
        font-size: 12px;
        color: #6f7b91;
        text-align: left;
    }
    td:last-child {
        justify-content: flex-end;
    }
}
