/* Workspace-wide layout; reserve the fixed logo's own header column. */
#page-ana-sayfa .cards{max-width:none;width:100%;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
.topbar{height:auto;min-height:104px;padding:16px 294px 16px 28px;gap:20px;flex-wrap:wrap}
.topbar .crumb{flex:0 1 auto;min-width:0}
.header-tools{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:20px;min-width:0;flex-wrap:wrap}
.header-clock,.header-rates{display:flex;flex-direction:column;gap:5px;font-size:11px;color:#817568;line-height:1.4}
.header-clock strong{font-variant-numeric:tabular-nums;font-size:14px;color:#51483f;font-weight:550}
.header-rates strong{font-size:12px;font-weight:550;white-space:nowrap;font-variant-numeric:tabular-nums}
.header-rates small{font-size:10px}.header-rates:hover{text-decoration:underline}
.language-switch{display:flex;gap:3px;border:1px solid #e8e0d8;border-radius:9px;padding:3px;background:#fff}
.language-switch button{border:0;border-radius:6px;background:transparent;color:#817568;font-size:11px;font-weight:650;padding:8px;min-height:32px}
.language-switch button[aria-pressed=true]{background:#918477;color:#fff}
.public-header-tools{position:absolute;left:32px;top:28px;z-index:61}
.profile-open{display:flex;align-items:center;gap:14px;width:100%;padding:9px 0;border:0;background:none;color:#827363;white-space:nowrap;text-align:left}
.profile-open svg{flex:none;width:20px;height:20px}.profile-open:hover{color:#493a2c}
.account-avatar{overflow:hidden}.account-avatar img{width:100%;height:100%;object-fit:cover}
.profile-dialog{width:min(540px,calc(100vw - 28px));max-height:90dvh;overflow:auto}
.profile-photo-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:20px}
.profile-avatar{width:72px;height:72px;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:#f1ebe4;color:#85705c;font-size:22px;flex:none}
.profile-avatar img{width:100%;height:100%;object-fit:cover}.profile-photo-row input{max-width:100%;font-size:12px}
.profile-dialog .field{margin:14px 0}.profile-dialog textarea{width:100%;resize:vertical;min-height:70px;border:1px solid #e6e0d9;border-radius:8px;padding:12px;font:inherit;color:inherit;background:#fff}
.profile-dialog details{margin-top:22px;border-top:1px solid #eeeae6;padding-top:18px}.profile-dialog summary{cursor:pointer;color:#786858;font-weight:600}.profile-dialog .dialog-actions{flex-wrap:wrap}
@media(max-width:1050px){.topbar{padding-right:282px;gap:12px}.header-tools{margin-left:0;gap:12px}.header-clock{font-size:10px}.header-rates strong{font-size:11px}}
@media(max-width:650px){.topbar{padding:104px 16px 14px;margin-left:62px;gap:12px}.topbar .crumb{width:100%}.header-tools{width:100%;justify-content:space-between;gap:12px}.header-clock{font-size:10px}.header-rates strong{font-size:10px}.header-rates small{font-size:9px}.language-switch button{padding:6px}.public-header-tools{left:18px;top:28px;width:auto}.profile-dialog{padding:20px}}

.profile-photo-picker{display:inline-flex;align-items:center;cursor:pointer}.profile-photo-picker:focus-within{outline:3px solid #b4a291;outline-offset:3px}

/* Aligned clock, quotes and language control with unchanged information. */
.topbar .header-tools{gap:16px;flex-wrap:nowrap}
.header-clock{gap:3px;min-width:120px}
.header-clock>span{font-size:10px;white-space:nowrap}
.header-clock strong{font-size:18px;font-weight:650;letter-spacing:.4px;line-height:1.2}
.header-rates{padding-left:16px;border-left:1px solid #e9e2da;gap:5px;text-decoration:none}
.header-rates:hover{text-decoration:none}
.header-rate-values{display:flex;gap:8px}
.header-rate-quote{display:flex;align-items:center;gap:6px;background:#f7f5f2;border:1px solid #eee8e1;border-radius:7px;padding:5px 7px;white-space:nowrap}
.header-rate-code{font-size:9px;font-weight:650;letter-spacing:.3px;color:#96816d}
.header-rates .header-rate-quote strong{font-size:11px;font-weight:600;color:#584b40}
.header-rates small{font-size:9px;line-height:1.3;color:#958b80}
.topbar .language-switch{flex:none;align-self:center;padding:3px;border-radius:8px}
.topbar .language-switch button{padding:7px;min-height:30px;font-size:10px}
@media(max-width:1200px){.topbar .header-tools{gap:10px}.header-rates{padding-left:10px}.header-rate-values{gap:5px}.header-rate-quote{padding:4px 5px;gap:4px}}
@media(max-width:650px){.topbar .header-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;width:100%}.header-clock{grid-column:1;grid-row:1}.header-rates{grid-column:1 / -1;grid-row:2;padding:8px 0 0;border-left:0;border-top:1px solid #e9e2da}.topbar .language-switch{grid-column:2;grid-row:1}.header-rate-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.header-rate-quote{justify-content:space-between;padding:6px 8px}.header-rates .header-rate-quote strong{font-size:11px}}

/* One compact account row leaves the remaining sidebar height to navigation. */
.sidebar .sidebar-account,.sidebar.open .sidebar-account{display:flex;align-items:center;gap:4px;padding:8px;min-height:52px}
.sidebar-account .profile-open{flex:1;min-width:0;width:auto;height:36px;padding:2px 0;border-radius:8px;overflow:hidden}
.sidebar-account .profile-open:hover{background:#f7f3ee}
.sidebar-account .profile-open:focus-visible,.sidebar-account .logout-button:focus-visible{outline:2px solid #918477;outline-offset:1px}
.sidebar-account .account-row{width:100%;min-width:0;min-height:0;margin:0;gap:8px}
.sidebar-account .account-avatar{width:32px;height:32px;border-radius:10px;font-size:11px}
.sidebar-account .account-details{display:none;flex:1;min-width:0}
.sidebar.open .sidebar-account .account-details{display:block}
.sidebar-account .account-name{max-width:none;font-size:12px;line-height:1.3;white-space:nowrap}
.sidebar-account .account-role{display:none}
.sidebar-account .logout-button{flex:0 0 28px;width:28px;height:32px;padding:5px 4px;justify-content:center;border-radius:7px}
.sidebar-account .logout-button svg{width:18px;height:18px}
.sidebar:not(.open) .sidebar-account{padding-left:4px;padding-right:4px}
@media(max-width:650px){.sidebar:not(.open) .sidebar-account .account-avatar{width:24px;height:24px;font-size:10px;border-radius:8px}.sidebar:not(.open) .sidebar-account .logout-button{flex-basis:24px;width:24px;padding:4px 2px}}

.home-sections{display:flex;flex-direction:column;gap:25px;width:100%;min-width:0}
.home-section{min-width:0}
.home-section-title{font-size:13px;font-weight:650;color:#8c7c6c;letter-spacing:.03em;margin:0 0 10px;padding-bottom:9px;border-bottom:1px solid #eee8e1}
#page-ana-sayfa .home-section .cards{margin:0;gap:12px;grid-template-columns:repeat(4,minmax(0,1fr))}
.home-editor-group{list-style:none;font-size:12px;font-weight:650;color:#8c7c6c;padding:12px 0 3px}
@media(max-width:1100px){#page-ana-sayfa .home-section .cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){#page-ana-sayfa .home-section .cards{grid-template-columns:minmax(0,1fr)}.home-sections{gap:20px}}

/* Readable sales columns with scrolling confined to the table. */
main #sales-table{width:3095px!important;min-width:3095px!important;max-width:none;table-layout:fixed!important}
#sales-table col:nth-child(1){width:150px}
#sales-table col:nth-child(2){width:110px}
#sales-table col:nth-child(3){width:340px}
#sales-table col:nth-child(4){width:140px}
#sales-table col:nth-child(5){width:300px}
#sales-table col:nth-child(6){width:170px}
#sales-table col:nth-child(7){width:185px}
#sales-table col:nth-child(8){width:130px}
#sales-table col:nth-child(9){width:140px}
#sales-table col:nth-child(10){width:145px}
#sales-table col:nth-child(11){width:95px}
#sales-table col:nth-child(12){width:135px}
#sales-table col:nth-child(13){width:110px}
#sales-table col:nth-child(14){width:140px}
#sales-table col:nth-child(15){width:140px}
#sales-table col:nth-child(16){width:140px}
#sales-table col:nth-child(17){width:140px}
#sales-table col:nth-child(18){width:105px}
#sales-table col:nth-child(19){width:125px}
#sales-table col:nth-child(20){width:155px}
main #sales-table th,main #sales-table td{padding:8px 10px!important}
.table-wrap{scrollbar-color:#b6a38b #f5f1eb;scrollbar-width:auto}
main .table-wrap tbody tr:hover>td{background:#fff2b3!important;color:#292723}
main .table-wrap tbody tr>td:hover{background:#ffe88a!important;box-shadow:inset 0 0 0 2px #c18b12}

.sales-scroll-controls{display:flex;align-items:center;gap:10px;padding:7px 10px;background:#faf8f4;border-block:1px solid #eee7dc}
.sales-scroll-controls[hidden]{display:none}
.sales-scroll-controls button{width:30px;height:26px;padding:0;border:1px solid #d4c5b2;border-radius:5px;background:#fff;color:#705b43;font-size:22px;line-height:1}
.sales-scroll-controls button:disabled{opacity:.35;cursor:default}
.business-page input.sales-scroll-slider{appearance:none;-webkit-appearance:none;flex:1;min-width:0;width:100%;height:22px;margin:0;padding:0;border:0;border-radius:0;background:transparent;cursor:ew-resize}
.sales-scroll-slider::-webkit-slider-runnable-track{height:8px;border-radius:5px;background:#e2d9ce}
.sales-scroll-slider::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:70px;height:18px;margin-top:-5px;background:#9a856b;border:1px solid #7d6951;border-radius:6px}
.sales-scroll-slider::-moz-range-track{height:8px;border-radius:5px;background:#e2d9ce}
.sales-scroll-slider::-moz-range-thumb{width:70px;height:18px;background:#9a856b;border:1px solid #7d6951;border-radius:6px}
#sales-scroll-region{overflow-x:scroll;max-width:100%}

/* Give monthly dates and values enough room to remain readable. */
.sales-charts{grid-template-columns:repeat(2,minmax(0,1fr))}
.sales-month-panel{grid-column:1/-1}
.sales-chart-scroll{overflow-x:auto;max-width:100%;scrollbar-color:#a48d73 #f4eee6;padding-bottom:6px}
.sales-chart-scroll .sales-month-chart{width:100%;height:290px;max-height:none;min-height:0}
.sales-month-chart text{stroke:none;fill:#716353;font-weight:400;font-size:12px}
.sales-month-chart .sales-bar-value{fill:#463a2e;font-size:12px;font-weight:650;paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}
.sales-month-chart .sales-date-label{font-size:13px;font-weight:600;fill:#594a3b}
.sales-month-chart .sales-date-year{font-size:11px;font-weight:400;fill:#91816e}
@media(max-width:700px){.sales-charts{grid-template-columns:minmax(0,1fr)}}

.sales-chart-mode{grid-column:1/-1;display:flex;gap:3px;justify-self:start;padding:3px;border:1px solid #e4dcd1;border-radius:8px;background:#f7f4ef}
.sales-chart-mode button{padding:7px 16px;border:0;border-radius:5px;background:transparent;font-size:12px}
.sales-chart-mode button[aria-pressed=true]{background:#94816c;color:white}
.sales-branch-legend{display:flex;gap:22px;flex-wrap:wrap;margin:0 0 7px;font-size:12px;color:#72604e}
.sales-branch-legend span{display:flex;align-items:center;gap:7px}
.sales-branch-legend i{width:10px;height:10px;border-radius:3px}
.sales-branch-bar{cursor:default}
.sales-branch-pies{grid-column:1/-1}
.sales-branch-pie-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.sales-branch-pie-grid>.panel{padding:12px;border-color:#eee7df}
.sales-branch-pie-grid h2{font-size:12px}
@media(max-width:1000px){.sales-branch-pie-grid{grid-template-columns:minmax(0,1fr)}}

.sales-chart-toolbar{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.sales-chart-year-button{width:auto;min-width:150px;max-width:100%;font-size:12px}.sales-chart-toolbar .sales-chart-mode{flex-shrink:0}

.sales-chart-heading{flex-wrap:wrap}.sales-chart-years{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-left:auto}.sales-chart-years button{padding:6px 11px;border:1px solid #ddd5cb;border-radius:6px;background:#fff;color:#716353;font-size:12px;cursor:pointer}.sales-chart-years button[aria-pressed=true]{background:#756553;color:#fff;border-color:#756553}.sales-chart-years button[data-year-action]{font-size:11px}.sales-chart-years button:focus-visible{outline:2px solid #245a81;outline-offset:2px}

main #stock-table{width:2340px!important;min-width:2340px!important;table-layout:fixed!important}#stock-table col{width:150px}#stock-table col:nth-child(4){width:260px}#stock-table col:nth-child(11){width:300px}#stock-table col:nth-child(12),#stock-table col:nth-child(13){width:170px}.stock-sort{border:0;background:transparent;color:inherit;font:inherit;font-weight:600;padding:0;cursor:pointer}#cost-table{width:100%;min-width:0;table-layout:fixed}#cost-table col:nth-child(1){width:8%}#cost-table col:nth-child(2){width:13%}#cost-table col:nth-child(3){width:9%}#cost-table col:nth-child(4){width:10%}#cost-table col:nth-child(5){width:5%}#cost-table col:nth-child(6){width:6%}#cost-table col:nth-child(7){width:7%}#cost-table col:nth-child(8){width:8%}#cost-table col:nth-child(9){width:7%}#cost-table col:nth-child(10){width:10%}#cost-table col:nth-child(11){width:6%}#cost-table col:nth-child(12){width:11%}#cost-table th{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.35}#cost-totals{display:flex;gap:12px;margin-bottom:12px}

.direct-table-scroll{cursor:grab}.direct-table-scroll.is-dragging,.direct-table-scroll.is-dragging *{cursor:grabbing!important;user-select:none}.direct-table-scroll::-webkit-scrollbar:horizontal{height:0}.direct-table-scroll button,.direct-table-scroll input,.direct-table-scroll select{cursor:auto}

.stock-matrix-panel{margin-bottom:18px}.stock-matrix-panel h2{font-size:15px}.stock-matrix-panel>.table-wrap{max-height:490px;overflow:auto}main #stock-matrix-table{table-layout:fixed!important;min-width:100%;max-width:none}#stock-matrix-table th,#stock-matrix-table td{width:115px;min-width:115px;white-space:nowrap;padding:5px 7px!important}#stock-matrix-table th:nth-child(1),#stock-matrix-table td:nth-child(1){width:85px;min-width:85px;left:0}#stock-matrix-table th:nth-child(2),#stock-matrix-table td:nth-child(2){width:100px;min-width:100px;left:85px}#stock-matrix-table th:nth-child(3),#stock-matrix-table td:nth-child(3){width:190px;min-width:190px;left:185px}#stock-matrix-table td:nth-child(-n+3){position:sticky;z-index:2;background:white}#stock-matrix-table thead{position:sticky;top:0;z-index:4}#stock-matrix-table th{background:#eef0f2}#stock-matrix-table th:nth-child(-n+3){position:sticky;z-index:5}#stock-matrix-table td:nth-child(3),#stock-matrix-table th:nth-child(3){border-right:1px solid #ddd5cc}#stock-matrix-table .matrix-incomplete{color:#99621f}.matrix-marker{font-weight:700}

.direct-table-scroll{scrollbar-width:none!important}.direct-table-scroll::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}

#stock-matrix-table .matrix-totals th{background:#e9e3d9;font-weight:700;color:#51483f}#stock-matrix-table .column-filters th{background:#fff}#stock-matrix-table .column-filters button{min-width:0;width:100%;font-size:10px;padding:5px} .stock-export-dialog form{display:flex;flex-direction:column;gap:12px}.stock-export-dialog h2{font-size:18px;margin:0 0 8px}

#stock-matrix-table .matrix-sort{border:0;background:none;color:inherit;font:inherit;font-weight:600;padding:0;cursor:pointer;white-space:nowrap}
#stock-matrix-table .matrix-drill{cursor:pointer}#stock-matrix-table .matrix-drill:focus-visible,#stock-matrix-table .matrix-drill-selected{outline:2px solid #ad8318;outline-offset:-2px;background:#fff0aa}
.stock-drill-info{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;background:#fff6d8;font-size:12px}.stock-drill-info span{overflow-wrap:anywhere}.stock-drill-info button{flex-shrink:0}

.stock-edit-button{float:right;border:0;background:transparent;color:#806d55;cursor:pointer}.stock-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stock-edit-dialog{max-width:680px}.stock-edit-dialog h2{font-size:20px;margin-bottom:18px}.stock-edit-grid input,.stock-edit-grid select{width:100%;min-width:0}@media(max-width:600px){.stock-edit-grid{grid-template-columns:1fr}}

#stock-matrix-table th:nth-last-child(3),#stock-matrix-table td:nth-last-child(3),#stock-matrix-table th:nth-last-child(2),#stock-matrix-table td:nth-last-child(2){width:150px;min-width:150px}#stock-matrix-table th:last-child,#stock-matrix-table td:last-child{width:200px;min-width:200px}#stock-matrix-table .matrix-stat{background:#f8f5f0;border-left:1px solid #e3dcd3}

.calculation-settings-panel h2{font-size:18px;margin:0 0 18px}.calculation-catalog{padding:20px;margin-top:18px}.calculation-catalog>input{width:100%;margin-bottom:16px}.calculation-group{border-top:1px solid #e8e0d8;padding:14px 0}.calculation-group summary{font-weight:650;cursor:pointer}.calculation-formula{display:grid;grid-template-columns:minmax(160px,1fr) 3fr;gap:18px;padding:12px 0;font-size:13px;border-bottom:1px solid #f3efeb}.calculation-formula p{margin:0;line-height:1.6}.calculation-formula[hidden]{display:none}@media(max-width:650px){.calculation-formula{grid-template-columns:1fr;gap:6px}}

/* Match the clock divider between exchange rates and language controls. */
@media(min-width:651px){.topbar .header-rates{position:relative}.topbar .header-rates::after{content:"";position:absolute;right:-8px;top:0;bottom:0;border-right:1px solid #e9e2da;pointer-events:none}}
@media(min-width:651px) and (max-width:1200px){.topbar .header-rates::after{right:-5px}}

/* Shared page-level shortcut; remains below modal dialogs and filter popovers. */
.back-to-top{position:fixed;right:max(22px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));z-index:80;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #d4c7b7;border-radius:50%;background:#918477;color:#fff;box-shadow:0 3px 12px #332a2026;cursor:pointer}
.back-to-top[hidden]{display:none}.back-to-top:hover{background:#756553}.back-to-top:focus-visible{outline:3px solid #b4a291;outline-offset:3px}.back-to-top svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:600px){.back-to-top{right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom))}}

.cost-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:16px}.cost-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:155px;margin-left:auto}.cost-actions>*{justify-content:center;text-align:center}.cost-import-dates{font-size:12px;color:#897d70;line-height:1.7}.cost-column-filter{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;border:0;background:transparent;color:inherit;font:inherit;font-weight:600;text-align:left;cursor:pointer;padding:0;white-space:normal}.cost-column-filter.active{color:#795a2d}.cost-column-filter:focus-visible{outline:2px solid #a68b64;outline-offset:4px}.cost-filter-panel{max-height:350px}.cost-filter-panel .multi-options{max-height:225px}@media(max-width:650px){.cost-heading{flex-wrap:wrap}.cost-actions{width:155px!important}}

#cost-table th,#cost-table td,#cost-table td.number{text-align:center;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;padding:10px 6px;font-size:12px;vertical-align:middle}#cost-table .cost-column-filter{text-align:center;justify-content:center;overflow-wrap:anywhere}#cost-table td{line-height:1.45}

.cost-summary{display:flex;align-items:center;gap:24px;flex:1;min-width:0;flex-wrap:wrap}.cost-summary #cost-totals{margin-bottom:0;flex-shrink:0}.cost-summary .cost-import-dates{padding-left:20px;border-left:1px solid #e6dfd7;overflow-wrap:anywhere}@media(max-width:800px){.cost-summary{gap:14px}.cost-summary .cost-import-dates{padding-left:0;border-left:0}}

#page-satinalma-maliyet,#page-satinalma-maliyet .business-table-panel,#page-satinalma-maliyet .table-wrap{min-width:0;max-width:100%;box-sizing:border-box}#cost-table{width:100%!important;min-width:0!important;max-width:100%;table-layout:fixed}#cost-table .cost-edit-row{cursor:pointer}#cost-table .cost-edit-row:focus-visible{outline:2px solid #a68b64;outline-offset:-2px}.cost-edit-guide{overflow-wrap:anywhere}

#products-table .master-edit-row{cursor:pointer}#products-table .master-edit-row:focus-visible{outline:2px solid #a68b64;outline-offset:-2px}#products-totals{grid-template-columns:repeat(6,minmax(0,1fr))}#products-totals .metric-card{min-width:0}#products-totals .metric-card span{min-height:30px}@media(max-width:1100px){#products-totals{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:650px){#products-totals{grid-template-columns:repeat(2,minmax(0,1fr))}}

.master-heading{display:flex;align-items:center;gap:20px;margin-bottom:16px}.master-heading #products-totals{flex:1;min-width:0;margin:0}.master-actions{flex:none;justify-content:flex-end}.master-panel{margin-top:0!important}.master-heading .metric-card{padding:16px 12px}#products-table .cost-column-filter{white-space:normal}@media(max-width:1000px){.master-heading{flex-wrap:wrap}.master-heading #products-totals{flex-basis:100%}.master-actions{margin-left:auto}}

.master-actions{flex-direction:column;align-items:stretch;gap:8px;min-width:160px}.master-actions>*{justify-content:center;text-align:center}
