/* style_corporate.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
}
body {
    background: #f2f4f8;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
}
.container {
    max-width: 1400px;
    width: 100%;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 28px 24px;
    border: 1px solid #e2e8f0;
}
h1 {
    font-size: 1.6rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}
.week-panel {
    background: #f8fafc;
    border-radius: 6px;
    padding: 12px 20px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid #e2e8f0;
}
.week-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.week-btn {
    border: 1px solid #94a3b8;
    background: white;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    color: #1e293b;
    transition: all 0.2s;
}
.week-btn.odd { background: #ffffff; }
.week-btn.even { background: #f8fafc; }
.week-btn.active {
    background: #0f3b5c;
    border-color: #0f3b5c;
    color: white;
}
.week-btn:hover:not(.active) { background: #eef2f6; border-color: #94a3b8; }
.excel-tools { display: flex; gap: 10px; }
.btn {
    background: white;
    border: 1px solid #94a3b8;
    padding: 4px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: 0.2s;
}
.btn:hover { background: #f1f5f9; border-color: #94a3b8; }
.action-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
}
.action-btn {
    background: white;
    border: 1px solid #94a3b8;
    padding: 4px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: 0.2s;
}
.action-btn:hover { background: #f1f5f9; border-color: #94a3b8; }
.copy-indicator {
    font-size: 0.8rem;
    color: #475569;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 4px;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
td {
    padding: 8px 6px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
select, input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    font-size: 0.85rem;
    background: white;
    transition: 0.2s;
    outline: none;
}
select:focus, input:focus {
    border-color: #0f3b5c;
    box-shadow: 0 0 0 2px rgba(15,59,92,0.1);
}
.group-multiselect { position: relative; }
.group-select-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    background: white;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    padding: 4px 6px;
    min-height: 34px;
    cursor: pointer;
}
.group-tag {
    background: #eef2ff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #1e293b;
}
.group-tag-remove { cursor: pointer; font-weight: bold; color: #64748b; }
.group-tag-remove:hover { color: #b91c1c; }
.group-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10000;
    margin-top: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.group-dropdown.show { display: block; }
.group-option {
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}
.group-option:hover { background: #f8fafc; }
.group-option input { width: auto; margin: 0; }
.duplicate-ctrl { display: flex; gap: 10px; justify-content: center; font-size: 0.75rem; }
.dup-checkbox { display: flex; align-items: center; gap: 4px; }
.row-actions { display: flex; gap: 6px; justify-content: center; }
.icon-btn {
    background: none;
    border: none;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 3px;
    color: #1e293b;
}
.icon-btn:hover { background: #f1f5f9; }
.remove-btn {
    background: none;
    border: none;
    font-size: 0.8rem;
    cursor: pointer;
    color: #b91c1c;
    padding: 2px 8px;
    border-radius: 3px;
}
.remove-btn:hover { background: #fee2e2; }
td.field-audience.capacity-warning { background-color: #fee2e2; border-left: 2px solid #b91c1c; }
.hour-warning { background-color: #fffbeb !important; border-left: 2px solid #d97706 !important; }
.conflict-warning { background-color: #fee2e2 !important; border-left: 2px solid #b91c1c !important; }
input[type="checkbox"] { width: 16px; height: 16px; margin: 0 auto; display: block; cursor: pointer; accent-color: #0f3b5c; }
#fileInput {
    display: inline-block;
    background: white;
    border: 1px solid #94a3b8;
    padding: 4px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: 0.2s;
    width: auto;
}
#fileInput:hover { background: #f1f5f9; border-color: #94a3b8; }
#fileInput::file-selector-button { display: none; }
th.col-type, td.field-type { min-width: 80px; width: auto; }
th.col-group, td.field-group { min-width: 100px; width: auto; }
table, tbody, tr, td { overflow: visible !important; }
.group-multiselect { position: relative; overflow: visible !important; }
.group-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10000;
    margin-top: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Панель фильтров */
.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
}
.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 160px;
}
.filter-group label {
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 4px;
    color: #334155;
}
.filter-multiselect {
    position: relative;
    width: 100%;
}
.filter-select-container {
    background: white;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    padding: 4px 6px;
    min-height: 32px;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    font-size: 0.8rem;
}
.filter-tag {
    background: #e0e7ff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.filter-tag-remove {
    cursor: pointer;
    font-weight: bold;
}
.filter-tag-remove:hover {
    color: #b91c1c;
}
.filter-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 10001;
    margin-top: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.filter-dropdown.show {
    display: block;
}
.filter-option {
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}
.filter-option:hover {
    background: #f1f5f9;
}
.filter-option input {
    width: auto;
    margin: 0;
}
#clearFiltersBtn {
    align-self: flex-end;
    margin-left: auto;
}

.container {
        border: 2px solid #94a3b8;

}
