* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 450px;
    text-align: center;
}

.container-wide {
    max-width: 760px;
}

.logo {
    width: 80px;
    height: 80px;
    padding: 0 20px; /* Добавляет место слева и справа от текста */
    width: fit-content; /* Заставляет блок подстраиваться под контент */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 24px;
    font-size: 36px;
    color: white;
    font-weight: bold;
    box-sizing: border-box; /* Чтобы padding не увеличивал высоту */
}

h1 {
    color: #333;
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 600;
}

h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
}

.subtitle {
    color: #666;
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.5;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e8e8e8;
    border-color: #d0d0d0;
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #999;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    padding: 0 16px;
}

.features {
    text-align: left;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.features h3 {
    color: #333;
    font-size: 16px;
    margin-bottom: 16px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.feature-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 12px;
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
    color: #999;
}

.footer a {
    color: #667eea;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.form-group input.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.form-group input.valid {
    border-color: #4a4a4a;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 6px;
    display: none;
    padding: 8px;
    background: #fff5f5;
    border-radius: 6px;
    border-left: 3px solid #dc3545;
}

.error-message.show {
    display: block;
}

.valid-message {
    color: #4a4a4a;
    font-size: 12px;
    margin-top: 6px;
    display: none;
    padding: 8px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 6px;
    border-left: 3px solid #4a4a4a;
}

.valid-message.show {
    display: block;
}

.warning-message {
    color: #856404;
    font-size: 12px;
    margin-top: 6px;
    display: none;
    padding: 8px;
    background: #fff8e1;
    border-radius: 6px;
    border-left: 3px solid #ffc107;
}

.warning-message.show {
    display: block;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-secondary-small {
    background: transparent;
    color: #6a6a6a;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    width: auto;
    display: inline-block;
}

.btn-secondary-small:hover {
    background: #f0f0f0;
    transform: none;
}

.status-box {
    margin-top: 24px;
    padding: 16px;
    border-radius: 8px;
    display: none;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.status-box.success {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 1px solid #c7c7c7;
    color: #4a4a4a;
    display: block;
}

.status-box.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

.status-box.info {
    background: #e2e3e5;
    border: 1px solid #d6d8db;
    color: #383d41;
    display: block;
}

.status-box.waiting {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    display: block;
}

.equipment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.equipment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    min-height: 48px;
    transition: border-color 0.2s, background 0.2s;
    text-align: left;
}

.equipment-item::before {
    content: '✓';
    width: 16px;
    color: #22c55e;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    opacity: 0;
    flex: 0 0 16px;
}

.equipment-item:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.equipment-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.equipment-item.selected,
.equipment-item:has(input:checked) {
    border-color: #4a4a4a;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.equipment-item:has(input:checked)::before {
    opacity: 1;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 10px;
}

.partner-dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    text-align: left;
}

.partner-dashboard-header h2 {
    margin: 2px 0 0;
    color: #172033;
    font-size: 24px;
}

.dashboard-eyebrow,
.partner-profile-label,
.project-card-label {
    display: block;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

#view-dashboard .dashboard-logout {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 10px 16px;
    font-size: 14px;
}

.user-info {
    font-size: 14px;
    color: #666;
}

.partner-profile-card,
.dashboard-panel {
    text-align: left;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.partner-profile-card {
    margin-bottom: 16px;
    padding: 18px;
}

.partner-profile-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.partner-profile-main strong {
    display: block;
    margin-top: 3px;
    color: #172033;
    font-size: 18px;
    overflow-wrap: anywhere;
}

.partner-profile-status {
    flex-shrink: 0;
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
}

.partner-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.partner-profile-grid span:last-child {
    display: block;
    margin-top: 3px;
    color: #273244;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.dashboard-primary-action {
    margin-bottom: 16px;
}

.dashboard-panel {
    margin-top: 16px;
    padding: 18px;
}

.dashboard-section-head {
    margin-bottom: 16px;
}

.dashboard-section-head h3 {
    color: #172033;
    font-size: 17px;
    margin-bottom: 5px;
}

.dashboard-section-head p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.45;
}

.dashboard-check-row {
    display: block;
}

.dashboard-check-field {
    margin-bottom: 0;
}

.dashboard-check-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    align-items: stretch;
    gap: 12px;
}

.dashboard-check-button {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.notification-panel {
    margin-bottom: 16px;
}

.notification-button {
    width: 100%;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-notification-button {
    width: auto;
    padding: 8px 16px;
    font-size: 14px;
}

.project-list {
    display: grid;
    gap: 12px;
    margin-top: 0;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.project-item {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #4f46e5;
    text-align: left;
    overflow-wrap: anywhere;
}

.project-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.project-item-header strong {
    display: block;
    margin-top: 3px;
    color: #172033;
    font-size: 16px;
    line-height: 1.3;
}

.project-meta,
.project-comment,
.project-empty {
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.project-meta span {
    display: block;
    color: #64748b;
    font-size: 12px;
}

.project-meta strong {
    display: block;
    color: #273244;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.project-comment {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.project-empty {
    text-align: center;
    margin: 20px 0;
}

.project-state {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 28px 18px;
    color: #64748b;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}

.project-state strong {
    color: #273244;
    font-size: 15px;
}

.project-state span {
    max-width: 320px;
    font-size: 13px;
    line-height: 1.45;
}

.project-state-error {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.project-state-error strong {
    color: #7f1d1d;
}

.dashboard-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(79, 70, 229, 0.18);
    border-left-color: #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.error-text {
    color: #dc3545;
}

.project-status {
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    display: inline-block;
    padding: 5px 11px;
    border-radius: 20px;
}

.status-pending {
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.status-approved {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.test-panel {
    background: #f8f9fa;
    border: 1px dashed #a0a0a0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    text-align: left;
}

.test-panel h4 {
    color: #6a6a6a;
    font-size: 14px;
    margin-bottom: 10px;
}

.test-panel p {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.test-panel code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.test-btn {
    background: linear-gradient(135deg, #6a6a6a 0%, #4a4a4a 100%);
    color: white;
    font-size: 14px;
    padding: 10px 16px;
    margin-top: 8px;
}

.test-btn:hover {
    box-shadow: 0 5px 15px rgba(106, 106, 106, 0.3);
    transform: translateY(-1px);
}

.hidden {
    display: none !important;
}

.text-left {
    text-align: left;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #667eea;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin-top: 15px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    background: #667eea;
    color: white;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 5px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 16px;
    cursor: pointer;
}

.back-link:hover {
    text-decoration: underline;
}

.back-link::before {
    content: '←';
    margin-right: 6px;
}

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    min-width: 300px;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.toast.success {
    background: linear-gradient(135deg, #4a4a4a 0%, #2d2d2d 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(74, 74, 74, 0.3);
}

.toast.error {
    background: #dc3545;
    color: white;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3);
}

.form-step {
    animation: fadeIn 0.3s ease;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

#view-admindashboard {
    align-self: flex-start;
    width: 100%;
}

/* admin layout */
.admin-layout {
    display: flex;
    height: auto;
}
.admin-sidebar {
    width: fit-content;
    background: #fff;
    border-radius: 12px;
    padding: 8px 12px;
    margin: 0 16px 16px 16px; /* убрали верхний margin */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.admin-sidebar-item {
    padding: 8px 16px;
    cursor: pointer;
    color: #666;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s;
}
.admin-sidebar-item:hover {
    background: #f5f5f5;
}
.admin-sidebar-item.active {
    background: #667eea;
    color: #fff;
    font-weight: 500;
}

.admin-content {
    flex: 1;
    min-width: 0;
    padding: 20px;
    overflow: visible;
}
.admin-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.btn-filter { padding: 8px 16px; border: 1px solid #d0d0d0; background: #fff; border-radius: 6px; cursor: pointer; }
.btn-filter.active { background: #667eea; color: #fff; border-color: #667eea; }
.btn-approve, .btn-reject {
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    margin: 0 4px;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-view {
    padding: 6px 12px;
    border: 1px solid #cfd6e4;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}
.btn-view:hover {
    background: #f8fafc;
    border-color: #667eea;
}
.btn-approve {
    background: #d4edda;
    color: #155724;
}
.btn-approve:hover {
    background: #c3e6cb;
}
.btn-reject {
    background: #f8d7da;
    color: #721c24;
}
.btn-reject:hover {
    background: #f5c6cb;
}
.admin-table-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 0 10px;
    min-height: 400px;
    max-height: 80vh;
    overflow: auto;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.admin-table th, .admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-table th:last-child, .admin-table td:last-child {
    width: 17%;
    min-width: 17%;
}
/* Partners table column widths */
.tab-partners.admin-table th:nth-child(1) { width: 13%; }
.tab-partners.admin-table th:nth-child(2) { width: 10%; }
.tab-partners.admin-table th:nth-child(3) { width: 20%; }
.tab-partners.admin-table th:nth-child(4) { width: 20%; }
.tab-partners.admin-table th:nth-child(5) { width: 10%; }
.tab-partners.admin-table th:nth-child(6) { width: 10%; }

/* Projects table column widths */
.tab-projects.admin-table th:nth-child(1) { width: 10%; }
.tab-projects.admin-table th:nth-child(2) { width: 10%; }
.tab-projects.admin-table th:nth-child(3) { width: 10%; }
.tab-projects.admin-table th:nth-child(4) { width: 20%; }
.tab-projects.admin-table th:nth-child(5) { width: 15%; }
.tab-projects.admin-table th:nth-child(6) { width: 8%; }
.tab-projects.admin-table th:nth-child(7) { width: 10%; }
.admin-table th { color: #666; }
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 20px; }
.pagination button { padding: 6px 12px; border: 1px solid #ddd; background: #fff; border-radius: 4px; cursor: pointer; }
.pagination button.active { background: #667eea; color: #fff; border-color: #667eea; }
#partners-empty { text-align: center; padding: 20px; color: #999; }

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    width: min(620px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
    position: relative;
}

.modal-card h3 {
    margin: 0 36px 18px 0;
    color: #1f2937;
    font-size: 20px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.modal-body {
    display: grid;
    gap: 10px;
}

.modal-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}

.modal-row span {
    color: #64748b;
    font-size: 13px;
}

.modal-row strong {
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 10px 36px 10px 36px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
    background: #fff;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box input::placeholder {
    color: #aaa;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #999;
    pointer-events: none;
}

#btn-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #f0f0f0;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

#btn-search-clear:hover {
    background: #e0e0e0;
    color: #333;
}

.filter-row {
    display: flex;
    gap: 10px;
}

.filter-row .btn-filter {
    flex: 1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 760px) {
    body {
        align-items: flex-start;
        padding: 12px;
    }

    .container {
        width: 100%;
        padding: 24px 18px;
        border-radius: 12px;
    }

    h1 {
        font-size: 24px;
    }

    .logo {
        font-size: 28px;
        min-height: 64px;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .partner-dashboard-header,
    .partner-profile-main,
    .project-item-header {
        flex-direction: column;
    }

    .dashboard-logout,
    .dashboard-check-button {
        width: 100%;
    }

    .dashboard-check-button {
        margin-top: 0;
    }

    .dashboard-check-input-row {
        grid-template-columns: 1fr;
    }

    .admin-header-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .admin-notification-button {
        width: 100%;
    }

    .partner-profile-grid,
    .project-meta-grid {
        grid-template-columns: 1fr;
    }

    .project-status {
        white-space: normal;
    }

    #view-admindashboard {
        width: 100%;
    }

    .admin-layout {
        flex-direction: column;
        height: auto;
    }

    .admin-sidebar {
        width: auto;
        flex-direction: row;
        overflow-x: auto;
        margin: 0 12px 12px;
    }

    .admin-content {
        padding: 12px;
    }

    .filter-row {
        flex-direction: column;
    }

    .admin-table-wrapper {
        max-height: 70vh;
        overflow-x: auto;
        padding: 0;
    }

    .admin-table {
        min-width: 920px;
    }

    .admin-table td:last-child {
        white-space: nowrap;
    }

    .btn-approve,
    .btn-reject {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        margin: 3px 0;
        padding: 7px 8px;
        font-size: 12px;
        line-height: 1.2;
    }

    .modal-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
