/* OPTIK JINAN POS REPORT1 — monthly revenue */
.monthly-revenue-head{align-items:flex-start;gap:14px}.monthly-revenue-filters{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.monthly-revenue-filters select,.revenue-admin-actions select{min-height:42px;border:1px solid #d8e0eb;border-radius:12px;background:#fff;padding:0 36px 0 12px;color:#24324a;font-weight:800}.monthly-revenue-mode-tabs{display:inline-flex;gap:4px;margin:0 0 14px;padding:4px;border:1px solid #dfe6f1;border-radius:14px;background:#f5f7fb}.monthly-revenue-mode-tabs button{border:0;border-radius:10px;background:transparent;padding:9px 13px;color:#66738a;font-weight:900}.monthly-revenue-mode-tabs button.active{background:#fff;color:#294fc5;box-shadow:0 4px 14px rgba(35,62,126,.12)}
.monthly-revenue-hero{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr);gap:18px;margin-bottom:14px;padding:22px;border:1px solid #dfe7f5;background:linear-gradient(135deg,#f8fbff 0%,#f5f3ff 100%);box-shadow:0 14px 35px rgba(46,68,126,.08)}.monthly-revenue-hero>div:first-child{display:flex;flex-direction:column;justify-content:center}.monthly-revenue-hero>div:first-child>span{font-size:12px;font-weight:1000;letter-spacing:.08em;text-transform:uppercase;color:#60708d}.monthly-revenue-hero>div:first-child>strong{margin:9px 0 6px;font-size:34px;line-height:1.05;color:#22345a}.monthly-revenue-hero>div:first-child>small{color:#687790;line-height:1.45}.monthly-revenue-kpis{display:grid;grid-template-columns:1fr 1fr;gap:9px}.monthly-revenue-kpis>div{padding:13px;border:1px solid rgba(183,197,226,.7);border-radius:14px;background:rgba(255,255,255,.78)}.monthly-revenue-kpis span,.dashboard-yearly-revenue-grid span{display:block;font-size:9px;font-weight:1000;letter-spacing:.06em;color:#738099}.monthly-revenue-kpis strong,.dashboard-yearly-revenue-grid strong{display:block;margin-top:6px;font-size:16px;color:#203252}.positive{color:#15803d!important}.negative{color:#b42335!important}
.monthly-revenue-chart-card{margin-bottom:14px}.monthly-revenue-chart{min-height:260px;overflow:hidden}.monthly-revenue-svg{display:block;width:100%;height:auto;min-width:620px}.monthly-revenue-svg .axis{stroke:#d8e1ee;stroke-width:1}.monthly-revenue-svg .scale,.monthly-revenue-svg text{fill:#77849a;font-size:10px;font-weight:700}.monthly-revenue-svg .line{fill:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.monthly-revenue-svg .line.selected{stroke:#4268ee}.monthly-revenue-svg .line.compare{stroke:#c6a7ef;stroke-width:3;stroke-dasharray:7 7}.chart-legend{display:flex;justify-content:center;gap:18px;margin-top:8px;font-size:11px;font-weight:900}.chart-legend span:before{display:inline-block;width:22px;height:4px;margin-right:7px;border-radius:99px;content:"";vertical-align:middle}.chart-legend .selected:before{background:#4268ee}.chart-legend .compare:before{background:#c6a7ef}
.monthly-revenue-rows{display:grid;gap:8px}.monthly-revenue-row{border:1px solid #e1e7f0;border-radius:14px;background:#fff;overflow:hidden}.monthly-revenue-row[open]{border-color:#b9c9ef;box-shadow:0 8px 20px rgba(56,74,119,.07)}.monthly-revenue-row summary{display:grid;grid-template-columns:minmax(125px,.8fr) minmax(130px,1fr) minmax(180px,1fr);gap:12px;align-items:center;padding:13px 15px;cursor:pointer;list-style:none}.monthly-revenue-row summary::-webkit-details-marker{display:none}.monthly-revenue-row summary>div:first-child{display:grid;gap:3px}.monthly-revenue-row summary strong{font-size:13px;color:#26354f}.monthly-revenue-row summary span{font-size:9px;color:#7a879a}.monthly-revenue-row summary>b{font-size:14px;color:#203252}.revenue-compare{display:flex;justify-content:flex-end;align-items:center;gap:10px}.revenue-compare em{font-size:11px;font-weight:1000;font-style:normal}.monthly-revenue-detail{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 15px 14px;border-top:1px solid #edf0f5;background:#fbfcfe}.monthly-revenue-detail>div:not(.revenue-source-note){display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:8px;padding:9px;border:1px solid #e5eaf2;border-radius:11px;background:#fff}.monthly-revenue-detail span{font-size:10px;color:#687790}.monthly-revenue-detail strong{font-size:12px;color:#253554}.revenue-source-note{grid-column:1/-1;color:#7a8799;font-size:9px}
.revenue-status{display:inline-flex;align-items:center;width:max-content;max-width:100%;border-radius:999px;padding:4px 7px;background:#eef2f7;color:#5c687a;font-size:8px;font-style:normal;font-weight:1000;white-space:nowrap}.revenue-status.complete,.revenue-status.completed,.revenue-status.live{background:#dcfce7;color:#166534}.revenue-status.incomplete,.revenue-status.partial,.revenue-status.failed{background:#fff1c7;color:#8a5b00}.revenue-status.not-open,.revenue-status.future,.revenue-status.no-data,.revenue-status.previewed{background:#e8edf5;color:#5a677c}.revenue-status.rolled-back{background:#ede9fe;color:#5b21b6}
.monthly-revenue-matrix-scroll{overflow:auto;overscroll-behavior:contain;border:1px solid #e2e8f0;border-radius:14px}.monthly-revenue-matrix{display:grid;grid-template-columns:145px repeat(var(--year-count,7),minmax(135px,1fr));min-width:max-content}.revenue-matrix-cell{min-height:64px;padding:10px;border-right:1px solid #edf0f5;border-bottom:1px solid #edf0f5;background:#fff;display:flex;flex-direction:column;justify-content:center;gap:5px}.revenue-matrix-cell.sticky{position:sticky;left:0;z-index:2;background:#f7f9fc;font-weight:900;color:#35435a}.revenue-matrix-cell.head{position:sticky;top:0;z-index:1;min-height:48px;background:#eef3ff;color:#304eaf;font-weight:1000;text-align:center}.revenue-matrix-cell strong{font-size:12px;color:#263653}.revenue-matrix-cell.total{background:#f1f5ff;font-weight:900}.revenue-matrix-cell span:not(.revenue-status){font-size:9px;color:#7b8798}
.dashboard-yearly-revenue-card{margin-bottom:14px;border-color:#dedff7;background:linear-gradient(135deg,#fff 0%,#faf8ff 100%)}.dashboard-yearly-revenue-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.dashboard-yearly-revenue-grid>div{padding:12px;border:1px solid #e5e5f5;border-radius:13px;background:#fff}
.monthly-revenue-admin-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:14px}.revenue-import-notice{margin:12px 0;padding:12px;border:1px solid #c8d6fb;border-radius:12px;background:#f2f6ff;color:#314d91;font-size:11px;line-height:1.55}.revenue-file-picker{display:flex;width:100%;min-height:43px;cursor:pointer}.revenue-import-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:11px}.revenue-import-metrics>div{padding:10px;border:1px solid #e2e8f0;border-radius:11px;background:#fff}.revenue-import-metrics span{display:block;font-size:8px;font-weight:1000;color:#758198}.revenue-import-metrics strong{display:block;margin-top:4px;font-size:16px;color:#223451}.revenue-import-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:9px;max-height:280px;overflow:auto}.revenue-import-totals article{display:grid;grid-template-columns:auto 1fr;gap:3px 8px;padding:10px;border:1px solid #e4e9f1;border-radius:11px}.revenue-import-totals strong{grid-row:1/4;align-self:center;font-size:16px;color:#2e4a9b}.revenue-import-totals span{font-size:9px;color:#6c788c}.revenue-import-totals b{font-size:10px;color:#263654}.revenue-batch-list{display:grid;gap:8px}.revenue-batch-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start;padding:11px;border:1px solid #e2e8f0;border-radius:12px}.revenue-batch-card>div:first-child{display:grid;gap:3px}.revenue-batch-card strong{font-size:11px;color:#26354f;overflow-wrap:anywhere}.revenue-batch-card span{font-size:8px;color:#748095;overflow-wrap:anywhere}.revenue-batch-actions{grid-column:1/-1;display:flex;gap:7px}.revenue-batch-actions button{flex:1}.revenue-admin-editor-card{margin-top:14px}.revenue-admin-head{align-items:flex-start}.revenue-admin-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.gross-badge.locked{background:#fee2e2;color:#991b1b}.revenue-admin-records{display:grid;gap:14px}.revenue-admin-branch{padding:12px;border:1px solid #e1e7f0;border-radius:14px;background:#fafbfd}.revenue-admin-months{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.revenue-admin-month{display:grid;gap:7px;align-content:start;padding:10px;border:1px solid #e3e8f0;border-radius:12px;background:#fff}.revenue-admin-month>div{display:flex;justify-content:space-between;gap:6px;align-items:flex-start}.revenue-admin-month strong{font-size:11px;color:#263550}.revenue-admin-month>b{font-size:12px;color:#24428f}.revenue-admin-month small{min-height:28px;font-size:8px;line-height:1.35;color:#748095}.revenue-admin-month button{min-height:34px;padding:6px 9px;font-size:10px}.revenue-edit-modal-card{max-height:min(90vh,620px);overflow:auto;overscroll-behavior:contain}
@media(max-width:980px){.monthly-revenue-admin-layout{grid-template-columns:1fr}.revenue-admin-months{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:780px){.monthly-revenue-head{display:block}.monthly-revenue-filters{display:grid;grid-template-columns:1fr 1fr;margin-top:12px}.monthly-revenue-filters select:first-child{grid-column:1/-1}.monthly-revenue-filters button{width:100%}.monthly-revenue-hero{grid-template-columns:1fr;padding:17px}.monthly-revenue-hero>div:first-child>strong{font-size:28px}.monthly-revenue-kpis{grid-template-columns:1fr 1fr}.monthly-revenue-chart{overflow-x:auto}.monthly-revenue-row summary{grid-template-columns:1fr auto;gap:7px}.monthly-revenue-row summary>.revenue-compare{grid-column:1/-1;justify-content:space-between;padding-top:7px;border-top:1px dashed #e5e9f0}.monthly-revenue-detail{grid-template-columns:1fr}.revenue-source-note{grid-column:auto}.dashboard-yearly-revenue-grid{grid-template-columns:1fr 1fr}.revenue-admin-head{display:block}.revenue-admin-actions{justify-content:flex-start;margin-top:10px}.revenue-admin-months{grid-template-columns:1fr 1fr}}
@media(max-width:430px){.monthly-revenue-mode-tabs{display:grid;grid-template-columns:1fr 1fr;width:100%}.monthly-revenue-mode-tabs button{padding:9px 7px;font-size:10px}.monthly-revenue-filters{grid-template-columns:1fr}.monthly-revenue-filters select:first-child{grid-column:auto}.monthly-revenue-kpis{grid-template-columns:1fr 1fr}.monthly-revenue-kpis strong{font-size:13px}.monthly-revenue-row summary>b{font-size:13px}.dashboard-yearly-revenue-grid{grid-template-columns:1fr 1fr}.revenue-import-metrics{grid-template-columns:1fr 1fr}.revenue-import-totals{grid-template-columns:1fr}.revenue-admin-months{grid-template-columns:1fr}.revenue-admin-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.revenue-admin-actions select{grid-column:1/-1}.revenue-admin-actions button{width:100%}}

.revenue-admin-month-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.revenue-admin-month-actions button{min-width:0}.revenue-history-modal-card{max-height:min(90vh,700px);overflow:hidden;display:flex;flex-direction:column}.revenue-history-modal-card .modal-body{overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.revenue-history-list{display:grid;gap:9px}.revenue-history-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;padding:12px;border:1px solid #e0e7f2;border-radius:13px;background:#fbfcff}.revenue-history-card>div{display:grid;gap:2px}.revenue-history-card strong{font-size:11px;color:#263650}.revenue-history-card span,.revenue-history-card small{font-size:8px;color:#788397}.revenue-history-card>b{font-size:13px;color:#294897}.revenue-history-card>em{justify-self:start}.revenue-history-card p{grid-column:1/-1;margin:0;font-size:10px;color:#4c5c73}.revenue-history-card small{grid-column:1/-1}.revenue-history-card button{grid-column:1/-1}
