#reports-view,#reports-root,.report-panel,.report-scroll{min-width:0;max-width:100%}.report-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.report-filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:16px}.report-filters>label{flex:1 1 170px;min-width:0;max-width:300px}.report-filters>button{flex:0 0 auto}.report-notice{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 20px}.report-stats .stat strong{font-size:26px;overflow-wrap:anywhere}.report-panel>h2{margin-bottom:6px}.report-panel>.helper{margin-bottom:18px}.report-panel .report-filter-hint{background:#edf4f1;padding:10px 12px;border-radius:6px}.report-scroll{overflow-x:auto;margin-top:18px}.report-table{width:100%}.report-table th,.report-table td{text-align:right;padding:12px 10px;white-space:nowrap}.report-table th:first-child,.report-table td:first-child{text-align:left;padding-left:10px}.report-table th{background:#edf4f0;color:#325c50}.report-table th small{white-space:normal;max-width:160px;min-width:75px;font-size:10px}.report-table td small{display:block;color:var(--muted);font-size:11px;white-space:normal;max-width:220px}.report-table td:nth-last-child(2){text-align:right}.report-table .report-project-row td{background:#e7f0eb;font-weight:600;border-top:1px solid #c6dace;color:#244d3a}.report-table .report-week-total td{background:#dceecb;color:#294c24;font-weight:600;border-top:1px solid #b9d29e;border-bottom:1px solid #b9d29e}.report-table .report-month-total td{background:#c1dca4;color:#213f1c;font-weight:700;border-top:2px solid #83aa60}.report-table .report-unentered td{color:#71838a}.report-table .report-draft td{background:#fffaf0}.report-table .report-money{font-variant-numeric:tabular-nums;min-width:130px}.report-warning{display:block;color:#92591a;font-size:12px;font-weight:600}.report-missing{margin-bottom:20px;padding:13px 16px;background:#fff4df;border:1px solid #eed8ac;border-radius:8px;color:#79501f;font-size:13px}.report-missing summary{cursor:pointer;font-weight:550;min-height:26px}.report-missing ul{padding-left:22px;max-height:240px;overflow-y:auto}.report-missing li{margin:6px 0}.report-table caption{caption-side:top}.report-table .row-button{min-width:44px}.report-panel{margin-top:20px}.report-table tfoot td{background:#e5eedf}.report-table tr>td:last-child{padding-right:10px}
.report-scope{margin:-8px 0 20px}
@media(max-width:600px){.report-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.report-tabs .button{white-space:normal;font-size:12px;padding:9px 6px}.report-filters{gap:10px}.report-filters>label{flex:1 1 125px;max-width:none}.report-filters>button{width:100%}.report-panel{padding:14px}.report-stats .stat strong{font-size:22px}.report-stats .stat{grid-template-columns:minmax(0,1fr);gap:6px}.report-stats .stat strong{grid-column:1;grid-row:auto}.report-stats .stat span{grid-column:1}.report-notice{font-size:11px}.report-missing{padding:12px}.navigation{gap:18px}.nav-button{white-space:nowrap}}

.sheet-options{display:flex;align-items:center;gap:8px;font-size:13px;margin:12px 0}.sheet-options input{width:18px;min-height:18px;height:18px}.customer-sheet{padding:0;overflow:hidden;margin:18px 0 24px}.customer-sheet-title{padding:14px 18px;background:#fbe4d5;border-bottom:1px solid #8799a5;text-align:center}.customer-sheet-title h2{font-size:20px;color:#162f3a;font-weight:750}.customer-sheet-title p{font-size:12px;margin-top:4px;color:#536c79}.customer-sheet .report-scroll{margin:0;max-height:70vh;overflow:auto}.customer-sheet-table{font-size:13px;border-collapse:separate;border-spacing:0}.customer-sheet-table th,.customer-sheet-table td{border-right:1px solid #9cabb2;border-bottom:1px solid #aebac0;padding:7px 9px;height:34px}.customer-sheet-table th{position:sticky;top:0;z-index:2;background:#bed8eb;color:#112b3b;font-weight:750;text-align:center;min-width:95px;white-space:normal}.customer-sheet-table th small{color:#173645;font-size:12px;font-weight:650;max-width:140px;min-width:80px}.customer-sheet-table td:first-child,.customer-sheet-table th:first-child{min-width:105px;position:sticky;left:0;background:white;z-index:1}.customer-sheet-table th:first-child{background:#bed8eb;z-index:3}.customer-sheet-table td:nth-child(2){text-align:left;min-width:95px}.customer-sheet-table td.sheet-category-total,.customer-sheet-table td.report-money{background:#fbe7d9;font-weight:650}.customer-sheet-table td.sheet-note{white-space:normal;min-width:160px;max-width:260px;text-align:left}.customer-sheet-table tfoot td{position:sticky;bottom:0;background:#c4dff1!important;color:#142f3c;font-weight:750;border-top:2px solid #506f80;z-index:2}.customer-sheet-table .sheet-draft td{background:#fff8e8}.sheet-date-button{border:0;background:transparent;padding:0;color:#15548c;font-size:12px;white-space:nowrap;text-decoration:none}.sheet-date-button:hover{text-decoration:underline}.sheet-footnote{padding:12px 16px}.customer-sheet-table .report-money{min-width:130px}.customer-sheet-table .sheet-grand-total td:first-child{z-index:3}.customer-sheet-table tbody tr:hover td{box-shadow:inset 0 0 0 999px #1a7c6409}@media(max-width:600px){.customer-sheet-title h2{font-size:18px}.customer-sheet-table{font-size:12px}.customer-sheet-table th,.customer-sheet-table td{padding:6px}.report-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}

.customer-sheet-title{position:relative;padding-right:190px;padding-left:190px;min-height:66px}.sheet-fit-button{position:absolute;right:12px;top:12px;font-size:12px;min-height:36px;padding:7px 10px}body:has(.sheet-screen-fit){overflow:hidden}.customer-sheet.sheet-screen-fit{position:fixed;inset:8px;z-index:2000;margin:0;display:flex;flex-direction:column;background:white;border:1px solid #8799a5;border-radius:8px;max-width:none}.sheet-screen-fit .customer-sheet-title{padding-top:8px;padding-bottom:8px;min-height:58px;flex:none}.sheet-screen-fit .customer-sheet-title h2{font-size:17px}.sheet-screen-fit .customer-sheet-title p{font-size:11px;margin-top:2px}.sheet-screen-fit .report-scroll{max-height:none;flex:1;min-height:0;overflow:auto}.sheet-screen-fit .customer-sheet-table{table-layout:fixed;font-size:clamp(10px,1.5vh,13px);width:100%;height:100%}.sheet-screen-fit .customer-sheet-table td{height:calc((100dvh - 180px)/var(--sheet-body-rows));padding:0 4px;line-height:1.05;min-width:0}.sheet-screen-fit .customer-sheet-table th{height:54px;padding:3px;min-width:0;font-size:10px}.sheet-screen-fit .customer-sheet-table th small{font-size:10px;min-width:0;max-width:none;line-height:1.15}.sheet-screen-fit .customer-sheet-table td:first-child,.sheet-screen-fit .customer-sheet-table th:first-child{width:88px;min-width:0}.sheet-screen-fit .customer-sheet-table td:nth-child(2),.sheet-screen-fit .customer-sheet-table th:nth-child(2){width:88px;min-width:0}.sheet-screen-fit .customer-sheet-table td.sheet-note{min-width:0;max-width:none;overflow:hidden}.sheet-screen-fit .customer-sheet-table .report-money{min-width:0}.sheet-screen-fit .sheet-date-button{font-size:inherit;line-height:1.05}.sheet-screen-fit .sheet-footnote{font-size:10px;padding:4px 8px;flex:none}.sheet-screen-fit .report-week-total td{font-size:10px}.sheet-screen-fit .customer-sheet-table td small{font-size:9px}@media(max-width:700px){.customer-sheet-title{padding:12px}.sheet-fit-button{position:static;display:block;margin:8px auto 0}.sheet-screen-fit .customer-sheet-title{padding:6px;min-height:0}.sheet-screen-fit .customer-sheet-table{min-width:850px}.sheet-screen-fit .sheet-fit-button{margin:4px auto 0;min-height:28px;padding:3px 8px}.sheet-screen-fit .customer-sheet-title h2{font-size:14px}}
.sheet-screen-fit .customer-sheet-table{height:calc(100% - 10px)}

.sheet-extra-product{font-size:12px;line-height:1.35;color:#21564b;margin-top:2px;font-weight:550}.sheet-screen-fit .sheet-extra-product{font-size:inherit;line-height:1.05;display:inline;margin-right:6px}.sheet-screen-fit .sheet-extra-product:after{content:"; "}.sheet-screen-fit .sheet-extra-product:last-child:after{content:""}.sheet-screen-fit .customer-sheet-table td.sheet-note{white-space:nowrap;text-overflow:ellipsis}

/* A full month remains in the normal page flow; no overlay or page zoom. */
body.reports-compact .report-tabs{gap:6px;margin-bottom:7px}
body.reports-compact .report-tabs>.button{min-height:30px;padding:4px 11px;font-size:12px}
body.reports-compact .report-filters{gap:8px;margin-bottom:8px}
body.reports-compact .report-filters>label{font-size:11px;gap:3px}
body.reports-compact .report-filters input,
body.reports-compact .report-filters select{min-height:32px;padding:5px 9px;font-size:12px}
body.reports-compact .report-filters>.button{min-height:32px;padding:5px 12px;font-size:12px}
body.reports-compact .report-filters .tr-date-display{font-size:12px;left:10px}
body.reports-compact .report-filters .tr-calendar-trigger{font-size:20px}
body.reports-compact #reports-root>.feedback:empty{display:none}
body.reports-compact #reports-root>.feedback:not(:empty){margin:0 0 6px;padding:6px 10px;font-size:12px}
#reports-root.monthly-compact{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;align-items:end}
#reports-root.monthly-compact>*{grid-column:1/-1;min-width:0}
#reports-root.monthly-compact>.report-tabs{margin:0}
#reports-root.monthly-compact>.report-filters{grid-column:1;grid-row:2;display:grid;grid-template-columns:minmax(110px,140px) minmax(135px,1fr) minmax(150px,1fr) auto;gap:8px;margin:0}
#reports-root.monthly-compact>.report-filters>label{max-width:none;min-width:0}
#reports-root.monthly-compact>.sheet-options{grid-column:2;grid-row:2;align-self:end;display:flex;align-items:center;gap:6px;min-height:32px;margin:0;white-space:nowrap;font-size:11px;font-weight:400}
#reports-root.monthly-compact .sheet-options input{width:16px;height:16px;min-height:16px;margin:0;accent-color:var(--teal)}
#reports-root.monthly-compact>.report-missing{padding:4px 8px;margin:0;font-size:11px}
#reports-root.monthly-compact .report-missing summary{min-height:0;font-size:11px;line-height:1.3}
#reports-root.monthly-compact .customer-sheet{--sheet-row-height:clamp(13px,calc((100dvh - 260px - var(--report-alert-height,0px) - var(--report-warning-height,0px))/var(--sheet-body-rows,32)),24px);margin:0;padding:0;border-radius:7px}
#reports-root.monthly-compact .customer-sheet-title{display:flex;align-items:baseline;justify-content:center;flex-wrap:wrap;gap:4px 10px;min-height:0;padding:4px 10px;text-align:center}
#reports-root.monthly-compact .customer-sheet-title h2{font-size:15px;line-height:1.15}
#reports-root.monthly-compact .customer-sheet-title p{margin:0;font-size:11px;line-height:1.15}
#reports-root.monthly-compact .sheet-fit-button{display:none}
#reports-root.monthly-compact .customer-sheet .report-scroll{margin:0;max-height:calc(100dvh - 205px - var(--report-alert-height,0px) - var(--report-warning-height,0px));overflow:auto}
#reports-root.monthly-compact .customer-sheet-table{font-size:clamp(11px,calc(100dvh / 75),12px);line-height:1.05}
#reports-root.monthly-compact .customer-sheet-table th{height:40px;min-width:64px;padding:3px 5px;font-size:11px;line-height:1.1}
#reports-root.monthly-compact .customer-sheet-table th small{min-width:54px;max-width:120px;margin-top:2px;font-size:10px;line-height:1.1}
#reports-root.monthly-compact .customer-sheet-table td{height:var(--sheet-row-height);padding:0 5px;line-height:1.05}
#reports-root.monthly-compact .customer-sheet-table td:first-child,
#reports-root.monthly-compact .customer-sheet-table th:first-child{min-width:84px}
#reports-root.monthly-compact .customer-sheet-table td:nth-child(2),
#reports-root.monthly-compact .customer-sheet-table th:nth-child(2){min-width:78px}
#reports-root.monthly-compact .customer-sheet-table .report-money{min-width:98px}
#reports-root.monthly-compact .customer-sheet-table td.sheet-note{min-width:130px;max-width:250px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.05}
#reports-root.monthly-compact .sheet-date-button{font-size:inherit;line-height:1;min-height:0;padding:0}
#reports-root.monthly-compact .customer-sheet-table td small{margin-top:0;font-size:10px;line-height:1.1}
#reports-root.monthly-compact .sheet-extra-product{display:inline;font-size:inherit;line-height:1.15;margin:0 6px 0 0}
#reports-root.monthly-compact .sheet-extra-product:after{content:"; "}
#reports-root.monthly-compact .sheet-extra-product:last-child:after{content:""}
#reports-root.monthly-compact .sheet-footnote{font-size:10px;line-height:1.2;padding:4px 8px}
body.reports-compact:has(#billing-alerts-root:not([hidden])){--report-alert-height:34px}
body.reports-compact:has(#reports-root.monthly-compact>.report-missing){--report-warning-height:26px}
@media(max-width:1000px) and (min-width:701px){
  #reports-root.monthly-compact{grid-template-columns:minmax(0,1fr)}
  #reports-root.monthly-compact>.report-filters{grid-column:1;grid-template-columns:130px minmax(120px,1fr) minmax(140px,1fr) auto}
  #reports-root.monthly-compact>.sheet-options{grid-column:1;grid-row:3;min-height:22px;justify-self:end}
  #reports-root.monthly-compact .customer-sheet{--sheet-row-height:clamp(13px,calc((100dvh - 282px - var(--report-alert-height,0px) - var(--report-warning-height,0px))/var(--sheet-body-rows,32)),24px)}
}
@media(max-width:700px){
  body.reports-compact .report-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  body.reports-compact .report-tabs>.button{min-height:40px;padding:7px 8px;font-size:12px;white-space:normal}
  #reports-root.monthly-compact{grid-template-columns:minmax(0,1fr);gap:8px}
  #reports-root.monthly-compact>.report-filters{grid-column:1;grid-row:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #reports-root.monthly-compact>.report-filters>label:nth-child(3){grid-column:1/-1}
  #reports-root.monthly-compact>.report-filters>.button{grid-column:1/-1;width:100%;min-height:40px}
  body.reports-compact .report-filters input,body.reports-compact .report-filters select{min-height:40px;font-size:16px;padding:7px 10px}
  body.reports-compact .report-filters .tr-date-display{font-size:16px}
  #reports-root.monthly-compact>.sheet-options{grid-column:1;grid-row:auto;justify-self:start;min-height:36px;font-size:12px;white-space:normal}
  #reports-root.monthly-compact .sheet-options input{width:18px;height:18px;min-height:18px}
  #reports-root.monthly-compact .customer-sheet-title{padding:7px 10px;gap:4px}
  #reports-root.monthly-compact .customer-sheet-title h2{font-size:15px}
  #reports-root.monthly-compact .customer-sheet-title p{font-size:11px}
  #reports-root.monthly-compact .customer-sheet .report-scroll{max-height:70dvh;overflow:auto}
  #reports-root.monthly-compact .customer-sheet-table{font-size:12px;line-height:1.2}
  #reports-root.monthly-compact .customer-sheet-table td{height:30px;padding:4px 6px;line-height:1.2}
  #reports-root.monthly-compact .customer-sheet-table th{height:44px;padding:5px 6px;font-size:11px}
  #reports-root.monthly-compact .sheet-date-button{display:inline-flex;align-items:center;min-height:28px;font-size:12px}
  #reports-root.monthly-compact .sheet-footnote{font-size:11px;padding:7px 8px}
}

@media(min-width:701px){#reports-root.monthly-compact .customer-sheet-table th{height:34px;padding:2px 4px;line-height:1.05}#reports-root.monthly-compact .customer-sheet-table th small{font-size:9.5px;line-height:1.05}#reports-root.monthly-compact .sheet-date-button{font-size:11px;line-height:1}#reports-root.monthly-compact .customer-sheet{--sheet-row-height:clamp(12px,calc((100dvh - 275px)/var(--sheet-body-rows,32)),24px)}}

#reports-root.monthly-compact .customer-sheet-table .sheet-quantity-heading{background:#bad9ee;color:#113f60;font-size:11px;font-weight:750}#reports-root.monthly-compact .customer-sheet-table .sheet-quantity-heading small{color:#3c5d72;font-weight:500}#reports-root.monthly-compact .customer-sheet-table .sheet-details-heading{background:#d9ece5;color:#164c40;text-align:left;padding-left:10px;font-size:11px}#reports-root.monthly-compact .customer-sheet-table .sheet-details-heading small{max-width:none;color:#45675f;font-weight:500}#reports-root.monthly-compact .customer-sheet-table td.sheet-quantity{background:#f0f7fc;border-right:2px solid #89b7d0;font-weight:600}#reports-root.monthly-compact .customer-sheet-table td.sheet-note{min-width:230px;border-right:2px solid #93b9aa;padding-left:10px;background:#fbfdfb}#reports-root.monthly-compact .customer-sheet-table th:last-child{background:#f3d5bd;color:#603a20;font-size:11px}

/* Aylık müşteri raporu: gün kartları. */
.monthly-cards{min-width:0;border:1px solid #d8e1f0;border-radius:16px;background:#f4f7fc;overflow:hidden;font-family:"Segoe UI",Inter,Arial,sans-serif}
.month-card-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;background:linear-gradient(110deg,#213d72,#30335f);color:#fff}
.month-project{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#9ce1ec}
.month-card-heading h2{font-size:21px;font-weight:650;letter-spacing:-.025em;margin:2px 0}
.month-card-heading p,.month-amount small{font-size:11px;color:#c6d5ef}
.month-amount{display:grid;text-align:right;gap:2px}.month-amount strong{font-size:23px;letter-spacing:-.025em;font-variant-numeric:tabular-nums}
.month-day-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;padding:10px}
.month-day-card{display:flex;flex-direction:column;gap:6px;min-width:0;padding:9px;border-radius:11px;border:1px solid #dce4f1;background:#fff;box-shadow:0 2px 5px #1d386008}
.month-day-card.weekend{background:#f8f9ff}.month-day-card.draft{border-color:#d3b6eb;background:#fbf7ff}
.month-day-card.missing{background:#f6f8fb;box-shadow:none}
.month-day-top{display:flex;align-items:center;justify-content:space-between;gap:4px}
.month-date-button{display:flex;align-items:baseline;gap:5px;border:0;background:none;padding:0;color:#243b68;min-height:28px}
.month-date-button strong{font-size:20px;font-weight:650;letter-spacing:-.04em}.month-date-button span{font-size:10px;color:#6d7c97}
.month-date-button:hover{color:#2563ce}.month-date-button:focus-visible{outline:2px solid #486cca;outline-offset:2px;border-radius:4px}
.month-day-status{font-size:8px;white-space:nowrap;color:#71809a}.submitted .month-day-status{color:#19755e}.draft .month-day-status{color:#8047aa}
.month-counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;flex:1}
.month-count{min-width:0;padding:4px 6px;border-radius:6px;background:#edf3fd;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 4px}
.month-count>span{font-size:9px;color:#445b83;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.month-count>strong{font-size:12px;color:#254d94;font-weight:650;font-variant-numeric:tabular-nums}.month-count>small{grid-column:1/-1;font-size:8px;color:#74819b}
.month-count:nth-child(3n+2){background:#f2ecfa}.month-count:nth-child(3n+2)>strong{color:#755099}.month-count:nth-child(3n){background:#e8f5f2}.month-count:nth-child(3n)>strong{color:#216e66}
.month-empty{grid-column:1/-1;font-size:10px;color:#8a96a9;align-self:center;padding:5px 0}
.month-day-amount{padding-top:5px;border-top:1px solid #e8edf5;color:#263f6d;font-weight:650;font-size:12px;text-align:right;font-variant-numeric:tabular-nums}
.month-product-details{font-size:10px;color:#306b69;overflow-wrap:anywhere}.month-product-details summary{cursor:pointer}.month-product-details p{padding:4px 0;color:#3e526e;line-height:1.4}
.month-card-totals{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;padding:10px 14px;border-top:1px solid #dce4f1;font-size:11px;color:#284574;background:#edf2fb}
.month-total-chip{border-radius:6px;padding:4px 7px;background:#fff;color:#425a80;font-size:10px}.month-week-total{grid-column:1/-1;border:1px solid #cfe5df;border-radius:8px;background:#eaf5ef}
.month-cards-footnote{font-size:10px;padding:8px 14px;color:#71809a}
#reports-root.monthly-compact>.monthly-cards{grid-column:1/-1}
@media(min-width:1400px){.month-day-card{padding:8px 10px}.month-day-grid{gap:6px}.month-count>span{font-size:10px}.month-count>strong{font-size:13px}}
@media(min-width:701px) and (max-width:900px){.month-day-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.month-day-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px}.month-card-heading{padding:12px;align-items:flex-start}.month-card-heading h2{font-size:18px}.month-amount strong{font-size:18px}.month-day-card{padding:10px}.month-date-button{min-height:36px}.month-day-status{font-size:9px}.month-count>span{font-size:10px}.month-count>small{font-size:9px}.month-day-amount{font-size:13px}.month-counts{gap:5px}}

/* Çizgili hesap tablosu yerine yumuşak, satır bazlı aylık görünüm. */
#reports-root.monthly-compact>.monthly-rows{grid-column:1/-1}
.monthly-rows{min-width:0;border:1px solid #dce4f1;border-radius:14px;background:#f6f8fc;overflow:hidden;font-family:"Segoe UI",Inter,Arial,sans-serif}
.monthly-rows .month-card-heading{padding:10px 16px}.monthly-rows .month-card-heading h2{font-size:19px}.monthly-rows .month-amount strong{font-size:21px}
.monthly-rows .report-scroll{margin:0;padding:6px 10px;overflow:auto;max-height:none}
.modern-month-table{width:100%;min-width:800px;border-collapse:separate;border-spacing:0 3px;table-layout:auto;font-size:11.5px;line-height:1.2;font-variant-numeric:tabular-nums}
.modern-month-table th{position:sticky;top:0;z-index:1;padding:7px 8px;background:#eaf0fb;color:#486189;font-size:10px;font-weight:650;border:0;text-align:center;white-space:nowrap}
.modern-month-table th small{display:block;font-size:9px;font-weight:450;color:#71819d;max-width:145px;margin:3px auto 0;white-space:normal}
.modern-month-table td{height:clamp(18px,calc((100dvh - 290px)/var(--month-rows,32)),27px);padding:1px 8px;border:0;background:#fff;color:#354e75;text-align:right;white-space:nowrap}
.modern-month-table td:first-child{border-radius:6px 0 0 6px;text-align:left}.modern-month-table td:last-child{border-radius:0 6px 6px 0;font-weight:650;color:#244f85}
.modern-month-table .modern-weekday{text-align:left;color:#8290a8;font-size:10px}
.modern-date-button{border:0;padding:1px 0;background:none;color:#3e6498;font-size:11px;font-weight:550;min-height:0}
.modern-date-button:hover{color:#163c81;text-decoration:underline}
.modern-status-dot{display:inline-block;width:5px;height:5px;border-radius:50%;margin-left:6px;background:#cad4e4}.submitted .modern-status-dot{background:#36a58a}.draft .modern-status-dot{background:#ab75ce}
.modern-month-table .modern-quantity{text-align:center}
.modern-number{display:inline-block;border-radius:4px;background:#eaf1ff;color:#345e9c;min-width:30px;padding:2px 7px;font-weight:650;font-size:11px}
.modern-number.tone-1{background:#f1eafa;color:#7a5298}.modern-number.tone-2{background:#e7f4f0;color:#337c6c}
.modern-month-table .modern-note{text-align:left;white-space:normal;min-width:190px;width:35%;font-size:10px;color:#5a6d88;line-height:1.3}
.modern-note small{display:block;color:#8c60a7;font-size:9px}.modern-month-table .modern-category-total{background:#f0f4fb;color:#597095;font-weight:550}
.modern-day-row.weekend td{background:#f8faff}.modern-day-row.draft td{background:#fbf7ff}.modern-day-row:hover td{background:#eaf2ff}
.modern-month-table .modern-week-total td{background:#e9f4f0;color:#326f60;font-weight:650;padding:5px 8px}
.modern-month-table .modern-grand-total td{background:#263f6c;color:#fff;padding:6px 8px;font-weight:650;position:sticky;bottom:0}
.modern-month-table th:last-child{color:#42649c}.modern-month-table .report-money{min-width:110px}
@media(max-width:700px){.monthly-rows .report-scroll{padding:4px 6px;max-height:72dvh}.modern-month-table{font-size:12px;min-width:850px;border-spacing:0 5px}.modern-month-table td{height:32px;padding:4px 8px}.modern-date-button{min-height:28px;font-size:12px}.modern-number{font-size:12px;padding:4px 8px}.monthly-rows .month-card-heading{gap:8px;padding:12px}.monthly-rows .month-amount strong{font-size:17px}.modern-month-table .modern-note{font-size:11px}}

/* Her gün için kesintisiz açık/koyu satır ayrımı. */
.modern-month-table .modern-day-row.day-odd td{background:#ffffff}
.modern-month-table .modern-day-row.day-even td{background:#dce6f5}
.modern-month-table .modern-day-row.day-odd .modern-category-total{background:#edf2fa}
.modern-month-table .modern-day-row.day-even .modern-category-total{background:#cedcf0}
.modern-month-table .modern-day-row .modern-weekday{color:#526785}
.modern-month-table .modern-day-row:hover td{background:#c7dbf7}
.modern-month-table .modern-day-row.draft .modern-status-dot{background:#9860bb}

/* Rapor sekmeleri: dalgalı ışık, kabartma ve basılma hissi. */
#reports-root .report-tabs{gap:10px;padding:2px 2px 7px;overflow:visible}
#reports-root .report-tabs>.button{--tab-top:#497fce;--tab-bottom:#234f9d;--tab-edge:#17366f;position:relative;isolation:isolate;overflow:hidden;border:1px solid #ffffff55;border-radius:12px 16px 12px 16px;background:linear-gradient(155deg,var(--tab-top),var(--tab-bottom));color:#fff;text-shadow:0 1px 1px #07193466;font-weight:650;min-height:38px;padding:9px 16px;box-shadow:inset 0 1px 1px #ffffff70,inset 0 -2px 3px #07132e30,0 4px 0 var(--tab-edge),0 7px 12px #18396524;transform:translateY(0);transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}
#reports-root .report-tabs>.button:before{content:'';position:absolute;z-index:-1;pointer-events:none;left:-12%;top:-85%;width:128%;height:150%;border-radius:42% 58% 45% 55%;background:linear-gradient(130deg,#ffffff38,#ffffff04);transform:rotate(-9deg)}
#reports-root .report-tabs>.button:nth-child(2){--tab-top:#259ea9;--tab-bottom:#136778;--tab-edge:#0d4956}
#reports-root .report-tabs>.button:nth-child(3){--tab-top:#9a66c5;--tab-bottom:#68429d;--tab-edge:#472a74}
#reports-root .report-tabs>.button:nth-child(4){--tab-top:#d19251;--tab-bottom:#a95b36;--tab-edge:#7d3c24}
#reports-root .report-tabs>.button:hover:not(:disabled){filter:brightness(1.09);transform:translateY(-1px);box-shadow:inset 0 1px 1px #ffffff85,0 5px 0 var(--tab-edge),0 9px 15px #18396530}
#reports-root .report-tabs>.button[aria-pressed=true],#reports-root .report-tabs>.button:active:not(:disabled){transform:translateY(3px);box-shadow:inset 0 2px 4px #07193445,inset 0 0 0 1px #ffffff55,0 1px 0 var(--tab-edge),0 2px 5px #18396520;filter:saturate(1.18)}
#reports-root .report-tabs>.button[aria-pressed=true]:after{content:'';position:absolute;left:25%;right:25%;bottom:3px;height:3px;border-radius:4px;background:#fff;box-shadow:0 0 5px #ffffff80}
#reports-root .report-tabs>.button:focus-visible{outline:3px solid #284c9d;outline-offset:5px}
@media(max-width:700px){#reports-root .report-tabs{gap:8px;padding-bottom:7px}#reports-root .report-tabs>.button{min-height:42px;padding:8px 10px;font-size:12px}}
@media(prefers-reduced-motion:reduce){#reports-root .report-tabs>.button{transition:none}}

/* Aylık raporda tarih ve gün okunabilirliği. */
.modern-month-table .modern-date-button{font-size:14px;font-weight:650;line-height:1.25}
.modern-month-table .modern-weekday{font-size:13px;font-weight:550;color:#425b7d;line-height:1.25}
.modern-month-table th:first-child,.modern-month-table th:nth-child(2){font-size:12px;min-width:108px}
.modern-month-table .modern-day-row td{min-height:21px}
@media(max-width:700px){.modern-month-table .modern-date-button{font-size:14px}.modern-month-table .modern-weekday{font-size:13px}}

/* Telefon: filtreler ve raporlar kendi alanının dışına taşmaz. */
@media(max-width:700px){
  #reports-view,#reports-root{width:100%;min-width:0;max-width:100%}
  body.reports-compact #reports-root>.report-filters,
  #reports-root.monthly-compact>.report-filters{display:grid;grid-template-columns:minmax(0,1fr);width:100%;min-width:0;gap:10px;margin:6px 0 12px;grid-column:1/-1;grid-row:auto}
  body.reports-compact .report-filters>label,
  #reports-root.monthly-compact>.report-filters>label,
  #reports-root.monthly-compact>.report-filters>label:nth-child(3){grid-column:1;min-width:0;max-width:100%;width:100%;font-size:12px;gap:5px}
  body.reports-compact .report-filters input,body.reports-compact .report-filters select{display:block;width:100%;max-width:100%;min-width:0;min-inline-size:0;min-height:44px;font-size:16px;box-sizing:border-box;padding:9px 11px}
  body.reports-compact .report-filters .tr-date-control{display:block;width:100%;min-width:0;max-width:100%;overflow:hidden}
  body.reports-compact .report-filters .tr-date-display{font-size:16px;left:11px;right:40px}
  #reports-root .report-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;min-width:0;margin-bottom:8px}
  #reports-root .report-tabs>.button{width:100%;min-width:0;max-width:100%;white-space:normal;line-height:1.25;padding:10px 8px;min-height:44px;font-size:12px}
  #reports-root.monthly-compact{grid-template-columns:minmax(0,1fr);align-items:stretch;gap:7px}
  #reports-root.monthly-compact>.sheet-options{grid-column:1;grid-row:auto;max-width:100%;white-space:normal}
  .report-stats{grid-template-columns:minmax(0,1fr);gap:10px}
  .report-stats .stat{min-width:0;display:block;padding:14px 16px}
  .report-stats .stat strong{font-size:24px;margin:6px 0;overflow-wrap:anywhere}
  .report-panel{padding:12px;min-width:0;max-width:100%}
  .report-panel .report-scroll,.monthly-rows .report-scroll{width:100%;min-width:0;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .monthly-rows .month-card-heading{flex-wrap:wrap;gap:8px}
  .monthly-rows .month-amount{margin-left:auto}
  .modern-month-table .modern-date{position:sticky;left:0;z-index:1}
  .modern-month-table th:first-child{left:0;z-index:3}
  .report-notice{font-size:11px;line-height:1.5;margin:6px 0 12px}
}

/* Başlık, miktar ve alt toplamlar aynı sütun hizasında. */
.modern-month-table th.modern-head-label,.modern-month-table th.modern-head-note{text-align:left;padding-left:8px}
.modern-month-table th.modern-head-quantity,.modern-month-table th.modern-head-category{text-align:center}
.modern-month-table th.modern-head-money{text-align:right;padding-right:8px}
.modern-month-table td.modern-quantity,.modern-month-table td.modern-quantity-total,.modern-month-table td.modern-category-total{text-align:center}
.modern-month-table td.modern-note{text-align:left}
.modern-month-table td.report-money{text-align:right;padding-right:8px}
.modern-month-table th.modern-head-quantity small{margin-left:auto;margin-right:auto;text-align:center}
.modern-month-table th.modern-head-note small{margin-left:0;margin-right:auto;text-align:left;max-width:none}
.modern-month-table .modern-week-total td:first-child,.modern-month-table .modern-grand-total td:first-child{text-align:left}

/* Fatura hazırlığında merkez kutularının kompakt sürümü. */
.report-card-overview{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin:6px 0 12px;padding:10px 14px;border:1px solid #d5dfef;border-radius:10px;background:#edf2fb;color:#35547e}
.report-card-overview>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px}.report-card-overview>div>span{font-size:10px;font-weight:650;letter-spacing:.04em}.report-card-overview strong{font-size:21px;font-weight:650;font-variant-numeric:tabular-nums}.report-card-overview>span,.report-card-overview small{font-size:11px;color:#657e9f}
.report-stock-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin:0 0 20px}
.report-stock-cards .center-stock-card{padding:11px 13px;border-radius:12px;box-shadow:inset 0 1px 2px #ffffff70,0 4px 0 var(--card-edge),0 7px 12px #18345520}
.report-stock-cards .center-stock-code{font-size:9px;opacity:.75}.report-stock-cards h2{font-size:13px;font-weight:650;margin:2px 0 0;overflow-wrap:anywhere}
.report-stock-cards .center-stock-quantity{margin:6px 0 7px}.report-stock-cards .center-stock-quantity strong{font-size:27px}.report-stock-cards .center-stock-quantity>span{font-size:10px}
.report-stock-cards .center-stock-revenue{padding-top:6px;gap:1px}.report-stock-cards .center-stock-revenue>span{font-size:9px}.report-stock-cards .center-stock-revenue strong{font-size:17px}.report-stock-cards .center-stock-revenue small{font-size:9px}
@media(max-width:700px){.report-stock-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}.report-stock-cards .center-stock-card{padding:11px 10px}.report-stock-cards .center-stock-revenue strong{font-size:16px}.report-card-overview{padding:10px 12px}.report-card-overview strong{font-size:20px}}
@media(max-width:350px){.report-stock-cards{grid-template-columns:minmax(0,1fr)}}

/* Uzun fatura dökümünde aşağıdaki müşterilerde de başlıklar görünür. */
.invoice-details-panel .invoice-scroll{position:relative;max-height:min(70dvh,720px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid #dbe5e7;border-radius:8px}
.invoice-scroll .report-table{border-collapse:separate;border-spacing:0}
.invoice-scroll .report-table thead th{position:sticky;top:0;z-index:5;background:#e6eef1;color:#32546a;box-shadow:0 2px 0 #c5d5de;vertical-align:middle}
.invoice-scroll .report-table thead th:nth-child(3){white-space:normal;min-width:160px}
.invoice-scroll:focus-visible{outline:2px solid #5e8bc9;outline-offset:3px}
@media(max-width:700px){.invoice-details-panel .invoice-scroll{max-height:65dvh}}
