:root { --ink: #1d2a27; --muted: #68736e; --line: #dfe5df; --paper: #f6f8f4; --white: #fff; --green: #1d6b57; --green-dark: #12483c; --mint: #dceee6; --orange: #df7047; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 85% 0%, #e8f2e9 0, transparent 32rem), var(--paper); font-family: "Avenir Next", Avenir, sans-serif; }
button, input, select { font: inherit; }
.app-shell { max-width: 1340px; margin: 0 auto; padding: 52px 32px 76px; }
.app-header, .section-heading, .dialog-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.app-header { margin-bottom: 38px; }
.eyebrow { margin: 0 0 8px; color: var(--orange); font: 500 11px/1.2 "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; } h1 { margin-bottom: 10px; font-size: clamp(38px, 6vw, 72px); line-height: .96; letter-spacing: -.05em; } h2 { margin-bottom: 0; font-size: 28px; letter-spacing: -.04em; } h3 { font-size: 16px; margin: 0 0 12px; }
.intro { max-width: 400px; margin-bottom: 0; color: var(--muted); font-size: 15px; }
.header-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.button { border: 1px solid transparent; cursor: pointer; padding: 11px 16px; font-size: 12px; font-weight: 800; transition: transform .15s ease, background .15s ease; } .button:hover { transform: translateY(-1px); } .button-primary { background: var(--green); color: var(--white); } .button-primary:hover { background: var(--green-dark); } .button-quiet { border-color: var(--line); background: rgba(255,255,255,.7); color: var(--ink); } .text-button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; text-decoration: underline; }
.summary-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; margin-bottom: 46px; }
.summary-card { min-height: 150px; padding: 24px; border: 1px solid var(--line); background: rgba(255,255,255,.72); } .summary-card-accent { border-color: #b8d9c9; background: var(--mint); } .summary-label, .summary-detail { display: block; color: var(--muted); font-size: 12px; } .summary-card strong { display: block; margin: 19px 0 9px; font-size: 32px; letter-spacing: -.05em; }
.content-section { margin-bottom: 44px; } .section-heading { align-items: end; margin-bottom: 18px; } .section-note { color: var(--muted); font: 11px "DM Mono", monospace; } .table-actions { display: flex; align-items: end; gap: 14px; } .filter-field { min-width: 190px; margin: 0; color: var(--muted); font: 500 10px "DM Mono", monospace; letter-spacing: .05em; text-transform: uppercase; } .filter-field input { display: block; width: 100%; margin-top: 6px; padding: 9px 10px; border: 1px solid var(--line); background: rgba(255,255,255,.75); color: var(--ink); font: 13px "Avenir Next", Avenir, sans-serif; letter-spacing: normal; text-transform: none; } .filter-field input:focus { outline: 2px solid #9bcbb7; outline-offset: 1px; }
.table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); background: rgba(255,255,255,.72); } table { width: 100%; border-collapse: collapse; text-align: left; } th { padding: 14px 16px; color: var(--muted); font: 500 10px "DM Mono", monospace; letter-spacing: .05em; text-transform: uppercase; } td { padding: 16px; border-top: 1px solid var(--line); font-size: 13px; white-space: nowrap; } tbody tr { cursor: pointer; transition: background .15s ease; } tbody tr:hover { background: #eef5ee; } .date-cell strong, .charge-main { display: block; font-weight: 800; } .date-cell span, .charge-sub { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; } .energy-cell { color: var(--green-dark); font-weight: 800; } .energy-cell .charge-sub { font-weight: 400; } .cost-cell { font-family: "DM Mono", monospace; } .details-cell { color: var(--muted); white-space: normal; min-width: 180px; }
.action-cell { width: 42px; padding-right: 10px; text-align: right; } .delete-charge-button { width: 28px; height: 28px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-size: 20px; line-height: 1; } .delete-charge-button:hover, .delete-charge-button:focus { border-color: #e6b9ae; background: #fff3ef; color: #b6462d; }
.empty-state { padding: 70px 20px; text-align: center; } .empty-mark { display: inline-grid; width: 36px; height: 36px; place-items: center; margin-bottom: 15px; border: 1px solid var(--green); border-radius: 50%; color: var(--green); font-size: 22px; } .empty-state h3 { margin-bottom: 6px; } .empty-state p { color: var(--muted); font-size: 13px; }
.period-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; } .summary-section .table-wrap { border-top-width: 1px; } .compact-table-wrap td { padding: 12px 14px; } .compact-table-wrap th { padding: 12px 14px; } .summary-empty { color: var(--muted); font-size: 13px; }
dialog { width: min(900px, calc(100% - 32px)); padding: 0; border: 0; color: var(--ink); box-shadow: 0 24px 80px rgba(29,42,39,.24); } dialog::backdrop { background: rgba(18,72,60,.42); } dialog form { padding: 28px; background: var(--white); } .dialog-header { align-items: start; margin-bottom: 24px; } .icon-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 25px; line-height: 1; } label { display: block; margin-bottom: 16px; font-size: 11px; font-weight: 800; } .optional { color: var(--muted); font-weight: 400; } label input, label select { display: block; width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 0; background: #fbfcfa; color: var(--ink); font-size: 13px; } label input:focus, label select:focus { outline: 2px solid #9bcbb7; outline-offset: 1px; } .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .form-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .span-four { grid-column: span 4; } .span-three { grid-column: span 3; } .form-divider { height: 1px; margin: 6px 0 22px; background: var(--line); } .dialog-actions { display: flex; justify-content: end; gap: 9px; margin-top: 12px; }
@media (max-width: 760px) { .app-shell { padding: 30px 16px 54px; } .app-header, .section-heading { display: block; } .header-actions { justify-content: start; margin-top: 24px; } .table-actions { align-items: start; flex-wrap: wrap; margin-top: 18px; } .filter-field { flex: 1 1 190px; } .summary-grid, .period-grid { grid-template-columns: 1fr; } .summary-grid { gap: 8px; margin-bottom: 36px; } .summary-card { min-height: 0; padding: 20px; } .summary-card strong { margin: 12px 0 5px; } .section-note { display: block; margin-top: 8px; } .form-grid, .form-grid-four { grid-template-columns: 1fr 1fr; gap: 0 12px; } .form-grid-four .span-four, .form-grid-four .span-three { grid-column: span 2; } }