/* Основные стили приложения */
body.app-body {
    background: #f7fafc;
    color: #222;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
}
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.shop-select-wrapper {
    display: flex;
    align-items: center;
}
 .disabled-link {
    pointer-events: none; /* Запрещает любые клики */
    color:  #d7d7d7 !important;          /* Делаем ссылку визуально неактивной */
    text-decoration: none;
    cursor: default;
  }
.shop-select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 1rem;
}
.user-panel {
    display: flex;
    align-items: center;
    gap: 16px;
}
.user-name {
    color: #555;
    font-size: 1rem;
}
.logout-link {
    color: #888;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}
.logout-link:hover {
    color: #e53e3e;
}
.main-layout {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}
.sidebar {
    width: 240px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    padding: 32px 16px;
    box-shadow: 2px 0 8px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar-link {
    display: block;
    padding: 10px 18px;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.sidebar-link:hover {
    background: #e0e7ff;
    color: #1d4ed8;
}
.main-content {
    flex: 1 1 auto;
    padding: 32px;
    background: #f7fafc;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: hidden;
}
.footer {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    color: #aaa;
    font-size: 0.95rem;
}
/* Dashboard */
.dashboard-main {
    width: 100%;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
}
.dashboard-welcome-card {
    max-width: 420px;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 40px 32px;
    margin-top: 40px;
    text-align: center;
}
.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 18px;
}
.dashboard-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0;
}
/* Shops */
.shops-main {
    width: 100%;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
}
.shops-container {
    max-width: 1100px;
    width: 100%;
    padding: 48px 0;
}
.shops-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 32px;
}
.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.shop-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.shop-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1d4ed8;
    margin-bottom: 8px;
}
.shop-info {
    color: #444;
    font-size: 1rem;
    margin: 0;
}
.shop-label {
    font-weight: 500;
    color: #888;
}
/* Reports */
.report-main {
    width: 100%;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
}
.report-container {
    max-width: 900px;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 40px 32px;
    margin-top: 40px;
}
.report-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 18px;
}
.report-summary {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 18px;
    font-size: 1rem;
    color: #222;
    overflow-x: auto;
}
/* Auth (login/register) */
.auth-body {
    min-height: 100vh;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-form-wrapper {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 40px 32px;
    margin: 40px 0;
    text-align: center;
}
.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 24px;
}
.auth-error {
    margin-bottom: 18px;
    color: #e53e3e;
    font-size: 1rem;
    text-align: center;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.auth-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 1rem;
    background: #f9fafb;
    transition: border 0.2s;
}
.auth-input:focus {
    border: 1.5px solid #2563eb;
    outline: none;
    background: #fff;
}
.auth-button {
    width: 100%;
    padding: 12px 0;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.auth-button:hover {
    background: #1d4ed8;
}
.auth-link-wrapper {
    margin-top: 24px;
    text-align: center;
}
.auth-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: text-decoration 0.2s;
}
.auth-link:hover {
    text-decoration: underline;
}
.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
    letter-spacing: 0.5px;
}

/* Стили для страницы отчётов */
.reports-main {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.reports-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
}

.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
}

.reports-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.reports-actions {
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #3b82f6;
    color: #fff;
}

.btn-primary:hover {
    background: #2563eb;
}

/* Стили для таблицы с закрепленными заголовками и скроллом */
.reports-table-wrapper {
    width: 100%;
    max-width: 100%;
    height: 850px;
    overflow-x: auto;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
}

.reports-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
}

.reports-table-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc;
}

.reports-th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    background: #f8fafc;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.reports-td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
    color: #374151;
    white-space: nowrap;
}

.reports-row:hover {
    background: #f9fafb;
}

/* Стилизация скроллбара */
.reports-table-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.reports-table-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.reports-table-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.reports-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .reports-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .reports-table-wrapper {
        height: 400px;
    }
    
    .reports-th,
    .reports-td {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
} 