/* ============================================
   Kukmara — Личный кабинет сотрудника
   Цветовая схема: #c32100 (красный) + #220000 (тёмный)
   ============================================ */

:root {
    --red: #c32100;
    --red-dark: #a01c00;
    --red-light: #e8350f;
    --dark: #220000;
    --dark-soft: #3d0a0a;
    --bg: #f5f5f5;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f0f0f0;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --success: #16a34a;
    --success-bg: #f0fdf4;
    --warning: #ea580c;
    --warning-bg: #fff7ed;
    --error: #dc2626;
    --error-bg: #fef2f2;
    --info: #2563eb;
    --info-bg: #eff6ff;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Бренд Kukmara
   ============================================ */
.brand-logo {
    width: 40px;
    height: 40px;
    background: var(--red);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-k {
    color: var(--white);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.brand-name {
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-subtitle {
    font-size: 11px;
    color: var(--gray-400);
    font-weight: 400;
}

/* ============================================
   Экран загрузки
   ============================================ */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    gap: 40px;
}

.loading-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo-large {
    width: 64px;
    height: 64px;
    background: var(--red);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-k-large {
    color: var(--white);
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
}

.brand-name-large {
    color: var(--white);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 4px;
}

.brand-tagline {
    color: var(--gray-400);
    font-size: 14px;
    margin-top: 8px;
}

.loading-bar {
    width: 200px;
    height: 3px;
    background: var(--dark-soft);
    border-radius: 2px;
    overflow: hidden;
}

.loading-bar-fill {
    height: 100%;
    width: 40%;
    background: var(--red);
    border-radius: 2px;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* ============================================
   Экран авторизации
   ============================================ */
.auth-screen {
    min-height: 100vh;
    display: flex;
}

.auth-left {
    flex: 1;
    background: var(--dark);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 480px;
}

.auth-brand {
    margin-bottom: 48px;
}

.auth-brand .brand-logo-large {
    margin-bottom: 16px;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: var(--gray-300);
}

.feature-item .material-icons-outlined {
    color: var(--red);
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item strong {
    display: block;
    color: var(--white);
    font-size: 15px;
    margin-bottom: 2px;
}

.feature-item p {
    font-size: 13px;
    color: var(--gray-400);
}

.auth-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    background: var(--white);
}

.auth-form-container {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.auth-header {
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--gray-500);
    font-size: 15px;
}

/* OTP таймер */
.otp-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.otp-timer-ring {
    position: relative;
    width: 60px;
    height: 60px;
}

.otp-timer-ring svg {
    transform: rotate(-90deg);
}

.otp-timer-bg {
    stroke: var(--gray-200);
}

.otp-timer-fg {
    stroke: var(--red);
    transition: stroke-dashoffset 1s linear, stroke 0.5s ease;
}

#otp-timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    font-variant-numeric: tabular-nums;
}

.otp-timer > span {
    font-size: 12px;
    color: var(--gray-400);
}

/* Формы */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 20px;
    pointer-events: none;
}

.input-group input,
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
    color: var(--dark);
}

.input-group input {
    padding-left: 42px;
}

.input-group input:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(195, 33, 0, 0.1);
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--red-dark);
}

/* Спиннер загрузки */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-full {
    width: 100%;
}

.btn-link {
    background: none;
    border: none;
    color: var(--red);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--red-dark);
}

.btn-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-back:hover {
    background: var(--gray-200);
}

/* OTP ввод */
.otp-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}

.otp-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition);
}

.otp-input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(195, 33, 0, 0.1);
}

/* Футер авторизации */
.auth-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.auth-footer .material-icons-outlined {
    color: var(--gray-400);
    font-size: 18px;
}

.auth-footer p {
    font-size: 13px;
    color: var(--gray-500);
}

.auth-copyright {
    margin-top: auto;
    padding-top: 32px;
}

.auth-copyright p {
    font-size: 12px;
    color: var(--gray-400);
}

/* ============================================
   Dashboard
   ============================================ */
.dashboard {
    display: flex;
    min-height: 100vh;
}

/* Мобильная шапка */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.menu-toggle {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.menu-toggle:hover {
    background: var(--gray-100);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    color: var(--dark);
}

.brand-k-small {
    width: 28px;
    height: 28px;
    background: var(--red);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    font-weight: 800;
}

.mobile-avatar {
    width: 32px;
    height: 32px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Оверлей */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 150;
}

.sidebar-overlay.active {
    display: block;
}

/* Боковая панель */
.sidebar {
    width: 260px;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 200;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--dark-soft);
}

.sidebar-nav {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--gray-400);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 500;
}

.nav-item:hover {
    background: var(--dark-soft);
    color: var(--white);
}

.nav-item.active {
    background: var(--red);
    color: var(--white);
}

.nav-item .material-icons-outlined {
    font-size: 20px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--dark-soft);
}

/* Переключатель организаций */
.sidebar-org-switcher {
    margin-bottom: 12px;
}

.org-select {
    width: 100%;
    padding: 8px 10px;
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
}

.org-select:hover {
    background-color: rgba(255,255,255,0.12);
}

.org-select option {
    background: var(--dark);
    color: var(--white);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    margin-bottom: 8px;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-email {
    font-size: 11px;
    color: var(--gray-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    color: var(--gray-400);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-logout:hover {
    background: var(--dark-soft);
    color: var(--white);
}

/* Кнопка выхода наверху (новая) */
.btn-logout-top {
    margin: 8px 12px 16px 12px;
    width: calc(100% - 24px);
    justify-content: center;
}


/* Основной контент */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
    min-height: 100vh;
}

/* Страницы */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.page-subtitle {
    color: var(--gray-500);
    font-size: 14px;
    margin-top: 4px;
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon .material-icons-outlined {
    font-size: 24px;
    color: var(--white);
}

.stat-primary .stat-icon { background: var(--red); }
.stat-success .stat-icon { background: var(--success); }
.stat-warning .stat-icon { background: var(--warning); }
.stat-info .stat-icon { background: var(--info); }

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.stat-label {
    font-size: 13px;
    color: var(--gray-500);
}

/* Быстрые действия */
.quick-actions {
    margin-top: 8px;
}

.quick-actions h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--dark);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.action-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    text-align: center;
}

.action-card:hover {
    border-color: var(--red);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon .material-icons-outlined {
    font-size: 24px;
    color: var(--white);
}

.action-red { background: var(--red); }
.action-dark { background: var(--dark); }
.action-gray { background: var(--gray-500); }

/* Списки */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    cursor: pointer;
}

.list-item:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow);
}

.list-item-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.list-item-icon .material-icons-outlined {
    font-size: 22px;
    color: var(--white);
}

.list-item-content {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.list-item-subtitle {
    font-size: 13px;
    color: var(--gray-500);
}

.list-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.list-item-date {
    font-size: 13px;
    color: var(--gray-400);
}

/* Статусы */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-new { background: var(--info-bg); color: var(--info); }
.status-processing { background: var(--warning-bg); color: var(--warning); }
.status-done { background: var(--success-bg); color: var(--success); }
.status-error { background: var(--error-bg); color: var(--error); }
.status-active { background: var(--success-bg); color: var(--success); }

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    width: 64px;
    height: 64px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.empty-icon .material-icons-outlined {
    font-size: 32px;
    color: var(--gray-400);
}

.empty-state h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.empty-state p {
    color: var(--gray-500);
    font-size: 14px;
}

/* Профиль */
.profile-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.profile-top {
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid var(--gray-100);
}

.profile-avatar-large {
    width: 72px;
    height: 72px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-info h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.profile-email {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 8px;
}

.profile-details {
    padding: 24px 32px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    color: var(--gray-500);
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

/* Табы СИЗ */
.siz-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 0;
}

.siz-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.siz-tab:hover {
    color: var(--dark);
}

.siz-tab.active {
    color: var(--red);
    border-bottom-color: var(--red);
}

.siz-tab .material-icons-outlined {
    font-size: 20px;
}

.siz-tab-content {
    display: none;
}

.siz-tab-content.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

/* Статусы СИЗ */
.status-expired { background: var(--error-bg); color: var(--error); }
.status-expiring { background: var(--warning-bg); color: var(--warning); }
.status-active-siz { background: var(--success-bg); color: var(--success); }

/* ============================================
   Модальные окна
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal-dialog {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.2s ease;
}

.modal-lg {
    max-width: 560px;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-100);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-header-dark {
    background: var(--dark);
    color: var(--white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border-bottom: none;
}

.modal-close {
    width: 32px;
    height: 32px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-200);
}

.modal-close-light {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.modal-close-light:hover {
    background: rgba(255,255,255,0.2);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
}

/* Инфо баннер */
.info-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.info-banner .material-icons-outlined {
    color: var(--gray-500);
    font-size: 20px;
    flex-shrink: 0;
}

.info-banner p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Детали обращения */
.appeal-detail h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.appeal-detail p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 12px;
}

.detail-meta {
    font-size: 13px;
    color: var(--gray-400);
}

.response-block {
    margin-top: 20px;
    padding: 16px;
    background: var(--success-bg);
    border-radius: var(--radius);
}

.response-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--success);
    font-weight: 600;
    font-size: 14px;
}

.response-header .material-icons-outlined {
    font-size: 20px;
}

/* ============================================
   Toast уведомления
   ============================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--white);
    padding: 14px 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 400px;
    animation: toastIn 0.3s ease;
    border-left: 4px solid var(--gray-300);
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }
.toast.info { border-left-color: var(--info); }

.toast .material-icons-outlined {
    font-size: 20px;
    flex-shrink: 0;
}

.toast.success .material-icons-outlined { color: var(--success); }
.toast.error .material-icons-outlined { color: var(--error); }
.toast.info .material-icons-outlined { color: var(--info); }

.toast span:last-child {
    font-size: 14px;
    color: var(--gray-700);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   Адаптивность
   ============================================ */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .auth-left {
        display: none;
    }
    
    .auth-right {
        padding: 24px;
    }
    
    .mobile-header {
        display: flex;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 72px 16px 24px;
    }
    
    .page-header {
        flex-direction: column;
    }
    
    .page-header .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .otp-input {
        width: 42px;
        height: 50px;
        font-size: 20px;
    }
    
    .otp-container {
        gap: 8px;
    }
    
    .profile-top {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .profile-details {
        padding: 16px 24px;
    }
    
    .modal-dialog {
        max-width: 100%;
        margin: 16px;
        max-height: calc(100vh - 32px);
    }
    
    .toast-container {
        top: auto;
        bottom: 20px;
        right: 16px;
        left: 16px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .list-item-meta {
        width: 100%;
        justify-content: space-between;
        margin-top: 8px;
    }
}

/* ============================================
   СТИЛИ ДЛЯ НАРЯДОВ
   ============================================ */

.work-order-detail {
    padding: 16px 0;
}

.work-order-detail .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.work-order-detail .detail-row:last-child {
    border-bottom: none;
}

.work-order-detail .detail-label {
    font-weight: 500;
    color: var(--gray-600);
}

.work-order-detail .detail-value {
    color: var(--gray-800);
    text-align: right;
    max-width: 60%;
}

.work-order-detail .detail-block {
    margin-top: 16px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.work-order-detail .detail-block h4 {
    margin-bottom: 8px;
    color: var(--gray-700);
}

.work-order-detail .detail-block p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ============================================
   СТИЛИ ДЛЯ СТОЛОВОЙ
   ============================================ */

.canteen-details-header {
    margin-bottom: 24px;
}

.btn-back-to-months {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 16px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition);
}

.btn-back-to-months:hover {
    background: var(--gray-200);
}

.canteen-details-header h3 {
    color: var(--dark);
    font-size: 24px;
    font-weight: 700;
}

.canteen-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.summary-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.summary-card .material-icons-outlined {
    font-size: 40px;
    color: var(--white);
    padding: 12px;
    border-radius: 50%;
}

.summary-card.summary-food .material-icons-outlined {
    background: var(--success);
}

.summary-card.summary-goods .material-icons-outlined {
    background: var(--info);
}

.summary-card.summary-total .material-icons-outlined {
    background: var(--red);
}

.summary-card .summary-label {
    display: block;
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.summary-card .summary-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.canteen-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.canteen-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
}

.canteen-tab.active {
    background: var(--red);
    color: var(--white);
}

.canteen-tab .material-icons-outlined {
    font-size: 20px;
}

/* Адаптивность для столовой */
@media (max-width: 768px) {
    .canteen-summary-cards {
        grid-template-columns: 1fr;
    }

    .summary-card {
        padding: 16px;
    }

    .summary-card .summary-value {
        font-size: 20px;
    }

    .canteen-tabs {
        flex-direction: column;
    }

    .canteen-tab {
        width: 100%;
        justify-content: center;
    }
}
