/* Compact, top-aligned navigation; retain the existing mobile menu. */
@media(min-width:801px){#app > aside{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch}#nav{flex:0 0 auto;margin-top:10px;display:block}#nav .nav{min-height:34px;padding:7px 12px;margin:1px 0}#nav .nav-divider{margin:5px 10px}#nav .sub{padding-left:12px}.side-logo{flex-shrink:0}}
@media(max-width:800px){#nav .nav{min-height:44px;margin:0;padding:8px 12px}#nav .nav-divider{margin:3px 10px}}
.bible-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:18px 0 14px;padding:13px 16px;border:1px solid #dce3db;border-radius:12px;background:#fff;box-shadow:0 1px 2px #15382d08}.bible-field{display:grid;gap:5px;min-width:190px;margin:0}.bible-field span{color:#61746b;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.bible-controls select{width:100%;min-height:38px;padding:8px 34px 8px 11px;border:1px solid #ccd8cd;border-radius:7px;background:#fbfcfa;color:#183a32;font:inherit;font-weight:600}.bible-control-actions{display:flex;align-items:center;gap:12px;min-height:38px;flex:1;justify-content:flex-end}.bible-upload{border:1px solid #245b46;border-radius:7px;padding:9px 12px;background:#245b46;color:#fff;font:inherit;font-size:13px;font-weight:650;cursor:pointer}.bible-controls [role=status]{font-size:12px;color:#61746b}#bible-content{min-width:0}
/* A modal drawer, isolated from the app sidebar's aside rules. */
.bible-event-panel{position:fixed;inset:0 0 0 auto;margin:0;width:min(460px,100%);max-width:100%;height:100dvh;max-height:100dvh;padding:0;border:0;border-left:1px solid #d5ded2;border-radius:0;background:#f7f9f5;color:#183a32;box-shadow:-12px 0 40px #102f2826;overflow:auto;overscroll-behavior:contain}
.bible-event-panel:not([open]){display:none!important}
.bible-event-panel::backdrop{background:#102f284d}
.bible-event-panel-head{position:sticky;top:0;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:24px;background:#fff;border-bottom:1px solid #dce3db}
.bible-event-panel h2{margin:0 0 6px;font-size:22px}
.bible-event-panel-head p{margin:0;font-size:13px;color:#61746b;line-height:1.5}
.bible-event-close{flex-shrink:0;min-height:44px;padding:10px 14px;border:1px solid #ccd8cd;border-radius:8px;background:#fff;color:#245b46;font-size:13px}
.bible-event-list{padding:20px;display:grid;gap:16px}
.bible-event-list article{padding:20px;border:1px solid #dce3db;border-radius:12px;background:#fff;overflow-wrap:anywhere}
.bible-event-list h3{margin:0;font-size:18px;line-height:1.4}
.bible-event-list p{font-size:14px;line-height:1.6}
.bible-event-category{display:inline-block;margin:10px 0 0;padding:3px 9px;border-radius:6px;background:#e8efe5;color:#245b46;font-weight:600;font-size:12px!important}
.bible-event-description{margin:14px 0 0;white-space:pre-wrap}
.bible-event-notes{margin-top:16px;padding:14px;border-left:3px solid #b9974b;background:#fffaf0;border-radius:0 6px 6px 0}
.bible-event-notes h4{margin:0;font-size:13px}.bible-event-notes p{margin:6px 0 0;white-space:pre-wrap}
@media(max-width:700px){.bible-controls{align-items:stretch}.bible-field{flex:1;min-width:min(150px,100%)}.bible-control-actions{width:100%;justify-content:space-between}.bible-event-panel{width:min(460px,calc(100% - 20px))}.bible-event-panel-head{padding:18px}.bible-event-list{padding:14px}.bible-event-list article{padding:16px}}

.sales-report{max-width:1100px;margin:24px auto}.sales-report-heading h2{font-size:28px;margin:0}.sales-report-heading p{color:#61746b}.sales-report form{padding:24px;background:#fff;border:1px solid #dce3db;border-radius:14px}.sales-report-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.sales-report small{display:block;color:#61746b;font-size:12px;margin-top:7px}.sales-report-amounts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:12px 0 24px}.sales-report-money{display:flex;align-items:center;border:1px solid #ccd9d4;border-radius:8px;margin-top:8px;overflow:hidden}.sales-report-money>span{padding-left:14px;color:#61746b}.sales-report-money input{border:0;margin:0;width:100%;text-align:right}.sales-report-total{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;padding:18px 20px;background:#245b46;color:white;border-radius:10px}.sales-report-total output{font-size:28px;font-weight:700}.sales-report-notes{display:grid;gap:8px}.sales-report textarea{resize:vertical;min-height:130px;margin-top:8px}.sales-report-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:20px}.sales-report-send{background:#245b46;color:#fff;min-width:150px}.sales-report-error,#sales-report-confirm-error{color:#a52424}.sales-report dialog{max-width:620px;width:calc(100% - 32px);max-height:85dvh;overflow:auto}.sales-report dialog p{white-space:pre-wrap;overflow-wrap:anywhere}.sales-report dialog h2{margin-top:0}@media(max-width:700px){.sales-report-grid,.sales-report-amounts{grid-template-columns:1fr 1fr}.sales-report form{padding:16px}.sales-report-grid label{grid-column:1/-1}}@media(max-width:380px){.sales-report-amounts{grid-template-columns:1fr}}

.sales-report textarea[name="description"]{min-height:260px}
.sales-report-upload{margin:0 0 20px;padding:14px;background:#f5f8f5;border:1px dashed #b9ccc1;border-radius:8px}
.sales-report-upload input{display:block;width:100%;margin-top:8px}
.sales-report-history{margin-top:36px;padding:24px;background:#fff;border:1px solid #dce3db;border-radius:14px}
.sales-report-history h2{margin-top:0}.sales-report-log-entry{border:1px solid #dce3db;border-radius:9px;padding:16px;margin-top:12px}
.sales-report-log-entry summary{cursor:pointer;font-weight:700;color:#245b46;line-height:1.7}
.sales-report-log-entry p{white-space:pre-wrap;overflow-wrap:anywhere}.sales-report-log-entry h3{font-size:15px;margin-bottom:4px}
.sales-report-log-entry button{display:block;margin-top:10px;overflow-wrap:anywhere;max-width:100%;text-align:left}
.sales-report-upload{border:1px solid #e0e8e3;border-radius:12px;background:#fafcfb;padding:16px;margin-bottom:18px}
.report-upload-row{display:flex;align-items:center;gap:12px;position:relative}.report-upload-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:#e8f0eb;color:#245b46;font-size:24px}.report-upload-row strong{font-size:14px}.report-upload-row small{margin-top:4px;font-weight:400}.sales-report .report-add-files{margin-left:auto;white-space:nowrap;background:white;color:#245b46;border:1px solid #cddbd3;border-radius:9px;padding:10px 15px;font-weight:600;box-shadow:0 1px 2px #183a3208}.sales-report .report-add-files:hover{background:#eaf2ed;border-color:#8eaf9b}.sales-report .report-file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;pointer-events:none;margin:0;padding:0;border:0}.sales-report .report-upload-limit{margin-top:10px;color:#7a8981;font-size:11px;font-weight:400}.report-file-chips{display:flex;flex-wrap:wrap;gap:8px}.report-file-chips:empty{display:none}.report-file-chip{display:inline-flex;align-items:center;gap:10px;max-width:100%;border:1px solid #d9e5dd;background:#edf4ef;padding:5px 8px 5px 12px;border-radius:7px;margin-top:12px;font-size:12px}.report-file-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sales-report .report-file-chip button{padding:1px 6px;border:0;background:transparent;color:#527060;font-size:20px;min-height:28px}
.sales-report-history{padding:20px 0 0;overflow:hidden}.report-log-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 20px}.report-log-toolbar h2{font-size:20px;margin:0}.report-log-toolbar p{font-size:13px;color:#718077;margin:5px 0}.report-log-filters{display:flex;align-items:center;gap:12px}.report-log-filters label{display:flex;align-items:center;gap:8px;font-size:12px;margin:0}.report-log-filters input{width:155px;margin:0;padding:8px;font-size:12px}.report-log-filters button,.report-log-pagination button{padding:8px 12px;background:#fff;border:1px solid #dce5df;border-radius:8px;color:#365b48;font-size:12px}.report-table-wrap{overflow-x:auto;margin-top:16px}.sales-report .report-log-table{width:100%;border-collapse:collapse;margin:0;table-layout:auto;font-size:13px}.sales-report .report-log-table th{padding:10px 16px;background:#f6f8f6;color:#77857c;font-size:11px;text-align:left;font-weight:600;letter-spacing:.04em;text-transform:uppercase;border:0;white-space:nowrap}.sales-report .report-log-table td{padding:8px 16px;border:0;border-top:1px solid #edf1ed;white-space:nowrap;height:48px}.report-log-table td:nth-child(2){font-weight:600;font-variant-numeric:tabular-nums}.report-log-table .report-log-sender{max-width:210px;overflow:hidden;text-overflow:ellipsis;color:#738178}.sales-report .report-log-table button{border:0;background:#edf3ee;border-radius:6px;color:#245b46;padding:6px 12px;font-size:12px;font-weight:600}.report-status-badge{display:inline-block;padding:4px 8px;border-radius:20px;font-size:11px;font-weight:600}.report-status-badge.sent{background:#e9f5ed;color:#36744d}.report-status-badge.attention{background:#fff0e3;color:#996222}.report-status-badge.pending{background:#edf1f8;color:#516a8c}.report-log-pagination{border-top:1px solid #e7eee8;padding:12px 20px;display:flex;justify-content:space-between;align-items:center;color:#7a877e;font-size:12px}.report-log-pagination>div{display:flex;gap:8px}.report-log-pagination button:disabled{opacity:.4;cursor:default}#sales-report-log-status{margin:8px 20px;font-size:13px;color:#738178}#sales-report-log-status:empty{display:none}.report-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.report-detail-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.report-detail-head h2{font-size:21px}.report-detail-head button{border:0;background:#eff3ef;border-radius:50%;width:34px;height:34px;padding:0}.report-detail-figures{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;background:#f4f7f4;padding:16px;border-radius:10px}.report-detail-figures strong{display:block;margin-top:6px}.report-detail-figures>div:last-child{grid-column:1/-1;border-top:1px solid #dce6dd;padding-top:8px}#sales-report-detail-body>p{color:#627168;font-size:14px}#sales-report-detail-body h3{font-size:14px;margin-top:22px}
@media(max-width:700px){.report-log-toolbar{align-items:stretch;flex-direction:column}.report-log-filters{justify-content:space-between}.report-upload-row{flex-wrap:wrap}.sales-report .report-add-files{margin-left:0}.report-upload-icon{display:none}.report-log-table .report-log-sender{max-width:130px}}
.sales-report .report-log-table td{height:44px;padding:5px 16px;box-sizing:border-box}.sales-report .report-log-table button{min-height:28px;line-height:18px;padding:4px 12px}.sales-report .report-log-pagination button,.sales-report .report-log-filters button{min-height:34px}
.report-targets{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0 8px}.report-targets>div{border:1px solid #dce7df;border-radius:12px;background:#f2f7f3;padding:18px 20px}.report-targets span{display:block;font-size:12px;color:#607769;font-weight:600}.report-targets strong{display:block;margin-top:8px;color:#245b46;font-size:25px;font-variant-numeric:tabular-nums}#report-target-status{font-size:12px;color:#77867c;margin:8px 0}#report-target-status:empty{display:none}@media(max-width:480px){.report-targets>div{padding:14px}.report-targets strong{font-size:21px}}
.report-microsoft-connection{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;margin:18px 0 24px;background:#edf5f2;border:1px solid #d5e6dc;border-radius:14px;color:#164638}
.report-microsoft-connection p{margin:6px 0 0;font-size:13px}
.report-microsoft-connection button{flex-shrink:0;padding:11px 16px;border-radius:9px;border:1px solid #164638;background:#fff;color:#164638;font-weight:600;cursor:pointer}
@media(max-width:650px){.report-microsoft-connection{align-items:stretch;flex-direction:column}}

/* Keep the currency control focus ring around its full boundary, not clipped inside. */
.sales-report-money:focus-within{outline:2px solid #e2a354;outline-offset:2px}.sales-report-money input:focus-visible{outline:none}.sales-report-money input[type=number]{appearance:textfield;-moz-appearance:textfield}.sales-report-money input::-webkit-inner-spin-button,.sales-report-money input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

.bible-controls{padding:10px 14px;gap:12px;align-items:center}.bible-controls [hidden]{display:none!important}.bible-controls #bible-year{min-width:90px;width:100px;padding:6px 10px}.bible-controls .bible-field{flex:0 0 auto}.bible-controls .bible-control-actions{margin-left:auto}
