* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Arial', system-ui, sans-serif;
}

body {
    background: #1a2e3f;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.app-container {
    max-width: 1400px;
    width: 100%;
    background: #e9eef2;
    border-radius: 30px;
    box-shadow: 0 30px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    border: 2px solid #ffb347;
    display: flex;
    flex-direction: column;
    height: 95vh;
}

/* ШАПКА */
.header {
    background: linear-gradient(145deg, #0f2b40, #1d4e6b);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #ffb347;
}

.logo h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: #ffb347;
    font-size: 0.9rem;
    display: block;
}

.company-info {
    background: rgba(0,0,0,0.3);
    padding: 10px 20px;
    border-radius: 40px;
    color: white;
    display: flex;
    gap: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid #ffb34780;
}

.company-name {
    font-weight: 700;
    color: #ffb347;
}

/* ОСНОВНОЙ КОНТЕЙНЕР */
.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ЛЕВАЯ ПАНЕЛЬ С ТАБАМИ */
.tabs-panel {
    width: 220px;
    background: #1d4e6b;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-right: 3px solid #ffb347;
    overflow-y: auto;
}

.tab-btn {
    background: none;
    border: none;
    color: white;
    padding: 15px 15px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn:hover {
    background: #2b5a8a;
    transform: translateX(5px);
}

.tab-btn.active {
    background: #ffb347;
    color: #0f2b40;
    box-shadow: 0 5px 0 #b25e00;
}

/* ПРАВАЯ ПАНЕЛЬ С КОНТЕНТОМ */
.content-panel {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    background: #f5f9ff;
}

/* ЗАГОЛОВКИ МОДУЛЕЙ */
.module-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f2b40;
    margin-bottom: 20px;
    border-left: 10px solid #ffb347;
    padding-left: 20px;
}

/* КАРТОЧКИ ДЛЯ ОБЗОРА */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 8px solid #ffb347;
}

.stat-card.income { border-left-color: #4CAF50; }
.stat-card.expense { border-left-color: #F44336; }
.stat-card.tax { border-left-color: #FF9800; }

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0f2b40;
}

/* ТАБЛИЦЫ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.data-table th {
    background: #1d4e6b;
    color: white;
    padding: 12px;
    font-weight: 600;
    text-align: left;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.data-table tr:hover {
    background: #f5f9ff;
}

/* КНОПКИ */
.btn {
    background: #1d4e6b;
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 0 #0f2b40;
    border: 1px solid #ffb347;
}

.btn:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #0f2b40;
}

.btn-orange {
    background: #ffb347;
    color: #0f2b40;
    box-shadow: 0 4px 0 #b25e00;
}

.btn-orange:hover {
    background: #ffa530;
}

/* ФИЛЬТРЫ */
.filters-panel {
    background: white;
    border-radius: 16px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    border: 1px solid #1d4e6b20;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: #1d4e6b;
}

.filter-group input, .filter-group select {
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #ccc;
}

/* ПОДВАЛ */
.footer {
    background: #0f2b40;
    color: #a0b8cc;
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 3px solid #ffb347;
}

.footer-links a {
    color: #ffb347;
    text-decoration: none;
    font-weight: 600;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* МОДАЛЬНЫЕ ОКНА */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 30px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 3px solid #ffb347;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f2b40;
    margin-bottom: 20px;
}

/* ЦВЕТОВАЯ ИНДИКАЦИЯ */
.status-red { color: #F44336; font-weight: 700; }
.status-orange { color: #FF9800; font-weight: 700; }
.status-green { color: #4CAF50; font-weight: 700; }