/
Pitonx
/
MyFinance
Обзор
Документация
Войти
/
Pitonx
/
MyFinance
Код
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/styles.css
1 317 строк
29 KB
agent
fix(reorder): replace RBD with native HTML5 DnD
13 июн 2026, 20:19
13 июн 2026, 20:19
76edcd8
Код
Авторство
О чём код?
/* ===== 1C:Enterprise 8 Style ===== */ :root { --1c-yellow: #ffe699; --1c-yellow-dark: #ffd54f; --1c-yellow-light: #fff8e1; --1c-panel: #f5f5f5; --1c-border: #c0c0c0; --1c-border-dark: #a0a0a0; --1c-header: #e8e8e8; --1c-active: #ffdb6d; --1c-blue: #0066cc; --1c-blue-hover: #0052a3; --1c-text: #333; --1c-text-muted: #666; --1c-hover: #fff3cd; --1c-white: #ffffff; --1c-shadow: rgba(0,0,0,0.15); } * { box-sizing: border-box; margin: 0; padding: 0; } html, body, #root { height: 100%; overflow: hidden; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-size: 12px; color: var(--1c-text); background: var(--1c-panel); line-height: 1.4; } /* ===== System Title Bar ===== */ .system-bar { height: 28px; background: linear-gradient(to bottom, #f0f0f0 0%, #d0d0d0 100%); border-bottom: 1px solid var(--1c-border-dark); display: flex; align-items: center; padding: 0 8px; gap: 8px; flex-shrink: 0; } .system-bar .app-icon { width: 16px; height: 16px; background: var(--1c-yellow-dark); border-radius: 2px; display: flex; align-items: center; justify-content: center; font-size: 10px; } .system-bar .app-title { font-size: 12px; font-weight: 600; flex: 1; } .system-bar .sys-menu { padding: 2px 8px; cursor: pointer; border: 1px solid transparent; } .system-bar .sys-menu:hover { border-color: var(--1c-border); background: var(--1c-white); } .system-bar .sys-commands { display: flex; gap: 4px; } .system-bar .sys-btn { width: 20px; height: 20px; border: 1px solid var(--1c-border); background: linear-gradient(to bottom, #fff 0%, #f0f0f0 100%); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 11px; border-radius: 2px; } .system-bar .sys-btn:hover { background: linear-gradient(to bottom, #f5f5f5 0%, #e0e0e0 100%); } /* ===== Sections Panel (Yellow ribbon) ===== */ .sections-panel { height: 52px; background: linear-gradient(to bottom, #fff9c4 0%, #ffe082 100%); border-bottom: 1px solid var(--1c-border-dark); display: flex; align-items: stretch; flex-shrink: 0; overflow-x: auto; } .section-item { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3px 14px; min-width: 70px; cursor: pointer; border-right: 1px solid rgba(0,0,0,0.08); transition: all 0.15s; gap: 1px; } .section-item:hover { background: rgba(255,255,255,0.3); } .section-item.active { background: linear-gradient(to bottom, #ffe082 0%, #ffd54f 100%); box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); font-weight: 600; } .section-icon { font-size: 20px; line-height: 1; } .section-label { font-size: 10px; white-space: nowrap; } /* ===== Functions Panel ===== */ .functions-panel { height: 42px; background: var(--1c-yellow-light); border-bottom: 1px solid var(--1c-border); display: flex; align-items: center; padding: 0 10px; gap: 6px; flex-shrink: 0; overflow-x: auto; } .function-item { padding: 6px 16px; cursor: pointer; white-space: nowrap; font-size: 13px; border-radius: 3px; color: var(--1c-blue); text-decoration: underline; text-decoration-color: transparent; transition: all 0.15s; } .function-item:hover { background: rgba(0,102,204,0.08); text-decoration-color: var(--1c-blue); } .function-item.active { background: var(--1c-white); border: 1px solid var(--1c-border-dark); text-decoration: none; color: var(--1c-text); font-weight: 700; box-shadow: inset 0 -3px 0 var(--1c-blue), 0 1px 3px rgba(0,0,0,0.1); } /* ===== Main Layout ===== */ .main-layout { display: flex; flex: 1; overflow: hidden; min-height: 0; } /* ===== Tools Panel (Left sidebar) ===== */ .tools-panel { width: 36px; background: linear-gradient(to right, #e8e8e8 0%, #d8d8d8 100%); border-right: 1px solid var(--1c-border-dark); display: flex; flex-direction: column; align-items: center; padding-top: 4px; gap: 2px; flex-shrink: 0; } .tool-btn { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid transparent; border-radius: 2px; font-size: 16px; color: #555; } .tool-btn:hover { background: var(--1c-white); border-color: var(--1c-border); } .tool-btn.active { background: var(--1c-yellow); border-color: var(--1c-border-dark); } /* ===== Content Area ===== */ .content-area { flex: 1; display: flex; flex-direction: column; background: var(--1c-white); overflow: hidden; } /* ===== Window Header ===== */ .window-header { height: 28px; background: linear-gradient(to bottom, #f8f8f8 0%, #e0e0e0 100%); border-bottom: 1px solid var(--1c-border); display: flex; align-items: center; padding: 0 8px; gap: 8px; flex-shrink: 0; } .window-header .nav-btns { display: flex; gap: 2px; } .window-header .nav-btn { width: 22px; height: 22px; border: 1px solid var(--1c-border); background: linear-gradient(to bottom, #fff 0%, #f0f0f0 100%); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; border-radius: 2px; } .window-header .nav-btn:hover:not(:disabled) { background: linear-gradient(to bottom, #f5f5f5 0%, #e0e0e0 100%); } .window-header .nav-btn:disabled { opacity: 0.4; cursor: default; } .window-header .window-title { font-weight: 600; font-size: 13px; flex: 1; } .window-header .window-actions { display: flex; gap: 4px; } /* ===== Toolbar ===== */ .toolbar { height: 36px; background: linear-gradient(to bottom, #fafafa 0%, #e0e0e0 100%); border-bottom: 1px solid var(--1c-border); display: flex; align-items: center; padding: 0 8px; gap: 6px; flex-shrink: 0; } .btn { height: 26px; padding: 0 12px; border: 1px solid var(--1c-border-dark); background: linear-gradient(to bottom, #fff 0%, #f0f0f0 100%); cursor: pointer; font-size: 12px; font-family: inherit; border-radius: 2px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; } .btn:hover:not(:disabled) { background: linear-gradient(to bottom, #f5f5f5 0%, #e0e0e0 100%); border-color: #909090; } .btn:disabled { opacity: 0.5; cursor: default; } .btn-primary { background: linear-gradient(to bottom, #ffd54f 0%, #ffc107 100%); border-color: #e6a000; font-weight: 600; } .btn-primary:hover:not(:disabled) { background: linear-gradient(to bottom, #ffc107 0%, #ffb300 100%); } .btn-success { background: linear-gradient(to bottom, #c8e6c9 0%, #a5d6a7 100%); border-color: #81c784; } .btn-danger { background: linear-gradient(to bottom, #ffcdd2 0%, #ef9a9a 100%); border-color: #e57373; } .toolbar-separator { width: 1px; height: 20px; background: var(--1c-border); margin: 0 4px; } /* ===== Search Panel ===== */ .search-panel { background: #fafafa; border-bottom: 1px solid var(--1c-border); padding: 8px 12px; display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; flex-shrink: 0; } .form-group { display: flex; flex-direction: column; gap: 2px; } .form-group label { font-size: 11px; color: var(--1c-text-muted); white-space: nowrap; } .form-group input, .form-group select, .form-group textarea { height: 24px; padding: 0 6px; border: 1px solid var(--1c-border-dark); border-radius: 1px; font-size: 12px; font-family: inherit; background: var(--1c-white); min-width: 120px; } .form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--1c-blue); } .form-group textarea { height: auto; min-height: 50px; resize: vertical; padding: 4px 6px; } /* ===== Table ===== */ .table-container { flex: 1; overflow: auto; background: var(--1c-white); position: relative; } .data-table { width: 100%; border-collapse: collapse; font-size: 12px; table-layout: fixed; } .data-table th { background: linear-gradient(to bottom, #f0f0f0 0%, #d8d8d8 100%); border: 1px solid var(--1c-border); padding: 4px 8px; text-align: left; font-weight: 600; position: sticky; top: 0; z-index: 10; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .data-table th .resize-handle { position: absolute; right: 0; top: 0; bottom: 0; width: 5px; cursor: col-resize; z-index: 2; } .data-table th .resize-handle:hover { background: var(--1c-blue); } .data-table td { border: 1px solid #e0e0e0; padding: 3px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .data-table tbody tr:hover { background: var(--1c-hover); } .data-table tbody tr.selected { background: var(--1c-active) !important; } .data-table tbody tr.selected td { border-color: #e6c200; } /* ===== Modal (1C auxiliary window) ===== */ .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.25); display: flex; justify-content: center; align-items: flex-start; z-index: 1000; padding: 20px; } .modal-window { background: var(--1c-panel); border: 1px solid var(--1c-border-dark); border-radius: 3px; width: auto; min-width: 600px; max-width: 720px; max-height: 92vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 20px var(--1c-shadow); margin: 8vh auto 0; align-self: flex-start; } .modal-title-bar { height: 26px; background: linear-gradient(to bottom, #f0f0f0 0%, #d0d0d0 100%); border-bottom: 1px solid var(--1c-border-dark); display: flex; align-items: center; padding: 0 8px; gap: 8px; cursor: grab; user-select: none; } .modal-title-bar:active { cursor: grabbing; } .modal-title-bar .modal-icon { font-size: 14px; } .modal-title-bar h2 { font-size: 12px; font-weight: 600; flex: 1; } .modal-title-bar .modal-close { width: 18px; height: 18px; border: 1px solid var(--1c-border); background: linear-gradient(to bottom, #fff 0%, #f0f0f0 100%); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; line-height: 1; border-radius: 2px; } .modal-title-bar .modal-close:hover { background: #ff6b6b; color: white; border-color: #d32f2f; } .modal-toolbar { height: 34px; background: linear-gradient(to bottom, #fafafa 0%, #e0e0e0 100%); border-bottom: 1px solid var(--1c-border); display: flex; align-items: center; padding: 0 8px; gap: 6px; } .modal-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--1c-white); } .form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; } .form-grid .form-group.full-width { grid-column: 1 / -1; } .modal-footer { height: 40px; background: var(--1c-panel); border-top: 1px solid var(--1c-border); display: flex; align-items: center; justify-content: flex-end; padding: 0 12px; gap: 8px; } /* ===== Calculator ===== */ .calc-popup { position: absolute; background: var(--1c-panel); border: 1px solid var(--1c-border-dark); box-shadow: 0 4px 12px var(--1c-shadow); padding: 8px; border-radius: 2px; z-index: 200; width: 180px; } .calc-display { width: 100%; height: 28px; padding: 0 6px; margin-bottom: 6px; text-align: right; font-size: 14px; border: 1px solid var(--1c-border-dark); background: var(--1c-white); font-family: 'Courier New', monospace; } .calc-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; } .calc-buttons button { height: 28px; border: 1px solid var(--1c-border); background: linear-gradient(to bottom, #fff 0%, #f0f0f0 100%); cursor: pointer; font-size: 13px; font-family: inherit; } .calc-buttons button:hover { background: linear-gradient(to bottom, #f5f5f5 0%, #e0e0e0 100%); } .calc-trigger { display: inline-flex; align-items: center; margin-left: 4px; cursor: pointer; color: var(--1c-blue); font-size: 14px; padding: 2px; } .calc-trigger:hover { background: var(--1c-hover); border-radius: 2px; } /* ===== Payments Section ===== */ .payments-section { margin-top: 16px; border-top: 2px solid var(--1c-border); padding-top: 12px; } .payments-section h4 { font-size: 12px; margin-bottom: 8px; color: var(--1c-text-muted); } .payment-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-bottom: 4px; align-items: center; font-size: 12px; } /* ===== Status Badges ===== */ .badge { display: inline-block; padding: 1px 6px; border-radius: 2px; font-size: 11px; font-weight: 600; border: 1px solid transparent; } .badge-success { background: #c8e6c9; color: #2e7d32; border-color: #a5d6a7; } .badge-warning { background: #fff3e0; color: #ef6c00; border-color: #ffe0b2; } /* ===== Bottom Tabs Panel ===== */ .bottom-tabs { height: 28px; background: linear-gradient(to bottom, #e8e8e8 0%, #d0d0d0 100%); border-top: 1px solid var(--1c-border-dark); display: flex; align-items: flex-end; padding: 0 4px; gap: 2px; flex-shrink: 0; } .bottom-tab { padding: 4px 12px 4px 8px; background: linear-gradient(to bottom, #f0f0f0 0%, #d8d8d8 100%); border: 1px solid var(--1c-border-dark); border-bottom: none; border-radius: 3px 3px 0 0; cursor: pointer; font-size: 11px; display: flex; align-items: center; gap: 6px; max-width: 200px; white-space: nowrap; overflow: hidden; } .bottom-tab:hover { background: linear-gradient(to bottom, #f5f5f5 0%, #e0e0e0 100%); } .bottom-tab.active { background: var(--1c-white); border-bottom: 1px solid var(--1c-white); position: relative; top: 1px; font-weight: 600; } .bottom-tab .tab-close { font-size: 14px; line-height: 1; color: #999; cursor: pointer; padding: 0 2px; } .bottom-tab .tab-close:hover { color: #d32f2f; background: #ffcdd2; border-radius: 2px; } /* ===== Auth Window ===== */ .auth-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display: flex; justify-content: center; align-items: center; z-index: 2000; } .auth-window { background: var(--1c-panel); border: 1px solid var(--1c-border-dark); border-radius: 3px; width: 380px; box-shadow: 0 8px 32px rgba(0,0,0,0.3); } .auth-title-bar { height: 28px; background: linear-gradient(to bottom, #f0f0f0 0%, #d0d0d0 100%); border-bottom: 1px solid var(--1c-border-dark); display: flex; align-items: center; padding: 0 12px; } .auth-title-bar h1 { font-size: 13px; font-weight: 600; } .auth-body { padding: 24px; } .auth-body .form-group { margin-bottom: 12px; } .auth-body .form-group label { font-size: 12px; color: var(--1c-text); margin-bottom: 4px; } .auth-body input { height: 28px; width: 100%; } /* ===== Responsive ===== */ @media (max-width: 768px) { .sections-panel { height: 48px; } .section-icon { font-size: 18px; } .section-label { font-size: 9px; } .tools-panel { width: 32px; } .form-grid { grid-template-columns: 1fr; } .search-panel { flex-direction: column; align-items: stretch; gap: 8px; } .search-panel .form-group { width: 100%; } .search-panel .form-group input, .search-panel .form-group select { width: 100%; } .mobile-filter-toggle { width: 100%; justify-content: center; padding: 8px; } .data-table { font-size: 11px; } .data-table th, .data-table td { padding: 2px 4px; } /* Модальное окно на мобильном — fullscreen */ .modal-overlay { padding: 0; align-items: stretch; } .modal-window { width: 100vw; min-width: 0; max-width: 100vw; margin: 0; border-radius: 0; max-height: 100vh; height: 100vh; align-self: auto; } .modal-title-bar { cursor: default; height: 40px; } .modal-body { max-height: calc(100vh - 70px); } .modal-title-bar .modal-close { display: none; } } @media (max-width: 480px) { .sections-panel { height: 44px; } .section-item { padding: 2px 8px; min-width: 60px; } .toolbar { flex-wrap: wrap; height: auto; padding: 4px; } .btn { height: 24px; padding: 0 8px; font-size: 11px; } } /* ===== Mobile List View (Expenses / Incomes) ===== */ .mobile-list-view { background: #fafafa; } .mobile-day-group { border-bottom: 1px solid #e0e0e0; } .mobile-day-header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #e8e8e8; cursor: pointer; user-select: none; position: sticky; top: 0; z-index: 5; } .mobile-day-toggle { font-size: 10px; color: #666; width: 14px; text-align: center; } .mobile-day-date { flex: 1; font-size: 13px; font-weight: 600; color: #333; } .mobile-day-total { font-size: 13px; font-weight: 600; color: #333; white-space: nowrap; } .mobile-day-items { background: #fafafa; } .mobile-item { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; cursor: pointer; touch-action: pan-y; -webkit-user-select: none; user-select: none; } .mobile-item:last-child { border-bottom: none; } .mobile-item.selected { background: #e3f2fd; } .mobile-item-main { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; } .mobile-item-account { font-size: 13px; font-weight: 600; color: #ff9800; word-break: break-word; } .mobile-item-amount { font-size: 13px; font-weight: 600; color: #ff9800; white-space: nowrap; flex-shrink: 0; } .mobile-item-details { font-size: 11px; color: #666; line-height: 1.4; } .mobile-item-details span { display: block; } .mobile-item-note { color: #888; font-style: italic; margin-top: 2px; } .mobile-item-paid { text-decoration: line-through; opacity: 0.6; } /* HTML5 Drag & Drop reorder */ .dragging { opacity: 0.5; } .dragging-active { opacity: 0.5; transform: scale(1.02) rotate(0.5deg); box-shadow: 0 4px 12px rgba(0,0,0,0.15); } .drag-over { border-top: 2px solid #1976d2; } /* Зелёное мигание для новых записей */ .new-record-highlight { animation: shimmer-outline-green 1.2s ease-in-out 3; } .new-record-highlight td, .new-record-highlight div { animation: shimmer-bg-green 1.2s ease-in-out 3; } @keyframes shimmer-outline-green { 0% { outline: 2px solid rgba(76, 175, 80, 0.3); outline-offset: -2px; } 50% { outline: 3px solid rgba(76, 175, 80, 0.9); outline-offset: -2px; } 100% { outline: 2px solid rgba(76, 175, 80, 0.3); outline-offset: -2px; } } @keyframes shimmer-bg-green { 0% { background-color: rgba(76, 175, 80, 0.02); } 50% { background-color: rgba(76, 175, 80, 0.08); } 100% { background-color: rgba(76, 175, 80, 0.02); } } /* Красное мигание для дубликатов */ .duplicate-highlight { animation: shimmer-outline-red 1.2s ease-in-out 3; } .duplicate-highlight td, .duplicate-highlight div { animation: shimmer-bg-red 1.2s ease-in-out 3; } @keyframes shimmer-outline-red { 0% { outline: 2px solid rgba(244, 67, 54, 0.3); outline-offset: -2px; } 50% { outline: 3px solid rgba(244, 67, 54, 0.9); outline-offset: -2px; } 100% { outline: 2px solid rgba(244, 67, 54, 0.3); outline-offset: -2px; } } @keyframes shimmer-bg-red { 0% { background-color: rgba(244, 67, 54, 0.02); } 50% { background-color: rgba(244, 67, 54, 0.08); } 100% { background-color: rgba(244, 67, 54, 0.02); } } @keyframes spin { to { transform: rotate(360deg); } } /* Красные кнопки C и CE в калькуляторе */ .calc-btn-clear { color: #d32f2f !important; font-weight: 700; } .mobile-sentinel { text-align: center; padding: 12px; color: #999; font-size: 11px; } .mobile-empty { text-align: center; padding: 30px; color: #999; font-size: 13px; } /* ===== Mobile Form (Expenses/Incomes) ===== */ .mobile-form-body { background: #fafafa; min-height: 100%; } .mobile-form-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: linear-gradient(to bottom, #f5f5f5 0%, #e0e0e0 100%); border-bottom: 1px solid #ccc; position: sticky; top: 0; z-index: 10; } .mobile-form-title { font-size: 14px; font-weight: 600; color: #333; text-align: center; flex: 1; } .mobile-form-header-btn { background: none; border: none; font-size: 13px; color: #1976d2; cursor: pointer; padding: 4px 8px; white-space: nowrap; } .mobile-form-header-btn.primary { color: #1976d2; font-weight: 600; } .mobile-form-row { display: flex; align-items: center; padding: 12px; border-bottom: 1px solid #eee; background: #fff; cursor: pointer; min-height: 48px; position: relative; } .mobile-form-label { font-size: 13px; color: #333; flex: 1; } .mobile-form-value { font-size: 13px; color: #666; margin-right: 4px; } .mobile-form-arrow { font-size: 16px; color: #bbb; margin-left: 4px; } /* Нативные пикеры: скрываем текст через ::-webkit-datetime-edit, а сам input оставляем невидимым но КЛИКАБЕЛЬНЫМ (opacity НЕ трогаем). pointer-events: auto гарантирует, что события проходят. Иконка календаря растянута на всю область через ::-webkit-calendar-picker-indicator. */ .mobile-form-native-input, .mobile-form-native-select { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; cursor: pointer; z-index: 5; border: none; font-size: 16px; -webkit-appearance: none; appearance: none; color: transparent; background: transparent; pointer-events: auto; opacity: 1; } /* Скрываем текст даты — webkit (Chrome, Safari, iOS) */ .mobile-form-native-input::-webkit-datetime-edit { color: transparent; background: transparent; } /* Растягиваем иконку календаря на всю область input */ .mobile-form-native-input::-webkit-calendar-picker-indicator { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; cursor: pointer; opacity: 1; background: transparent; color: transparent; } /* Firefox: скрываем текст */ .mobile-form-native-input::-moz-datetime-edit { color: transparent; } .mobile-form-amount-row { display: flex; align-items: center; justify-content: space-between; padding: 20px 12px; background: #fff; border-bottom: 1px solid #eee; } .mobile-form-amount-input { font-size: 32px; font-weight: 300; color: #333; border: none; outline: none; background: transparent; flex: 1; min-width: 0; text-align: center; } .mobile-form-amount-input::placeholder { color: #bbb; } .mobile-form-calc-icon { font-size: 22px; margin-left: 8px; cursor: pointer; padding: 6px; -webkit-tap-highlight-color: transparent; flex-shrink: 0; } .mobile-form-note { padding: 12px; background: #fff; border-bottom: 1px solid #eee; } .mobile-form-note label { display: block; font-size: 13px; color: #333; margin-bottom: 6px; } .mobile-form-note textarea { width: 100%; border: none; outline: none; font-size: 13px; color: #333; resize: none; background: transparent; padding: 0; } .mobile-form-note textarea::placeholder { color: #ccc; } .mobile-form-save-btn { display: block; width: calc(100% - 24px); margin: 16px 12px; padding: 14px; background: linear-gradient(to bottom, #ffb74d 0%, #ffa726 100%); border: 1px solid #f57c00; border-radius: 3px; color: #fff; font-size: 14px; font-weight: 500; text-align: center; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 1px 2px rgba(0,0,0,0.15); } .mobile-form-save-btn:active { background: linear-gradient(to bottom, #ffa726 0%, #fb8c00 100%); } .dashboard-container { flex: 1; overflow-y: auto; padding: 16px; background: #f5f5f5; } .dashboard-header { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; } .dashboard-header h2 { font-size: 16px; margin: 0; display: flex; align-items: center; gap: 8px; } .dashboard-period { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .dashboard-period input { height: 24px; padding: 0 6px; border: 1px solid var(--1c-border-dark); font-size: 12px; font-family: inherit; } .dashboard-period button { height: 24px; padding: 0 10px; font-size: 11px; } .dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; } .dashboard-card { background: var(--1c-white); border: 1px solid var(--1c-border); border-radius: 2px; padding: 12px; } .dashboard-card h3 { font-size: 11px; color: var(--1c-text-muted); margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.5px; } .dashboard-card .value { font-size: 24px; font-weight: 600; color: var(--1c-text); } .dashboard-card .delta { font-size: 12px; margin-top: 4px; } .dashboard-card .positive { color: #388e3c; } .dashboard-card .negative { color: #d32f2f; } .dashboard-row { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-bottom: 16px; } .dashboard-chart-box { background: var(--1c-white); border: 1px solid var(--1c-border); border-radius: 2px; padding: 12px; min-width: 0; } .dashboard-chart-box h3 { font-size: 13px; margin: 0 0 12px; color: var(--1c-text); } .dashboard-accounts { background: var(--1c-white); border: 1px solid var(--1c-border); border-radius: 2px; padding: 12px; min-width: 280px; } .dashboard-accounts h3 { font-size: 13px; margin: 0 0 12px; color: var(--1c-text); } .account-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #eee; font-size: 12px; } .account-row:last-child { border-bottom: none; } .dashboard-tops { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; } .dashboard-top { background: var(--1c-white); border: 1px solid var(--1c-border); border-radius: 2px; padding: 12px; } .dashboard-top h4 { font-size: 13px; margin: 0 0 12px; color: var(--1c-text); } .top-row { margin-bottom: 8px; } .top-label { font-size: 11px; margin-bottom: 2px; color: var(--1c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .top-bar-bg { background: #e8e8e8; height: 16px; border-radius: 2px; overflow: hidden; } .top-bar-fill { height: 100%; border-radius: 2px; transition: width 0.3s; } .top-value { font-size: 11px; color: var(--1c-text-muted); text-align: right; margin-top: 2px; } /* ===== Responsive Dashboard ===== */ @media (max-width: 768px) { .dashboard-grid { grid-template-columns: 1fr; } .dashboard-row { grid-template-columns: 1fr; } .dashboard-tops { grid-template-columns: 1fr; } .dashboard-accounts { width: auto; } } /* ===== Mobile Calculator Fullscreen ===== */ .mobile-calc-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #fafafa; z-index: 10000; display: flex; flex-direction: column; } .mobile-calc-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: linear-gradient(to bottom, #f5f5f5 0%, #e0e0e0 100%); border-bottom: 1px solid #ccc; flex-shrink: 0; } .mobile-calc-back { background: none; border: none; font-size: 14px; color: #1976d2; cursor: pointer; padding: 4px 0; white-space: nowrap; } .mobile-calc-save { background: none; border: none; font-size: 14px; color: #1976d2; cursor: pointer; padding: 4px 0; font-weight: 600; } .mobile-calc-display-wrap { display: flex; align-items: center; padding: 8px 12px; background: #fff; border-bottom: 1px solid #eee; flex-shrink: 0; gap: 8px; } .mobile-calc-clear { background: linear-gradient(to bottom, #ef5350 0%, #e53935 100%); border: 1px solid #c62828; color: #fff; border-radius: 3px; padding: 8px 14px; font-size: 13px; cursor: pointer; min-width: 44px; text-align: center; } .mobile-calc-display { flex: 1; font-size: 28px; font-weight: 300; text-align: right; color: #333; padding: 4px 8px; overflow: hidden; text-overflow: ellipsis; } .mobile-calc-grid { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); gap: 1px; background: #ddd; } .mobile-calc-btn { background: #fff; border: none; font-size: 32px; font-weight: 500; color: #333; cursor: pointer; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; min-height: 64px; } .mobile-calc-btn:active { background: #f0f0f0; } .mobile-calc-btn.op { color: #ff9800; font-size: 28px; } .mobile-calc-btn.eq { color: #ff9800; font-size: 28px; } /* ===== Mobile Actions Panel (Documents) ===== */ .mobile-actions-panel { display: flex; gap: 1px; background: #ccc; border-top: 1px solid #ccc; flex-shrink: 0; } .mobile-action-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px; background: #f5f5f5; border: none; cursor: pointer; font-size: 10px; color: #333; -webkit-tap-highlight-color: transparent; } .mobile-action-btn:active { background: #e0e0e0; } .mobile-action-btn:disabled { opacity: 0.4; cursor: not-allowed; } .mobile-action-btn.create { color: #388e3c; } .mobile-action-btn.delete { color: #d32f2f; }