.language-switch{display:flex;align-items:center;gap:2px;padding:3px;border:1px solid #dce7f1;border-radius:11px;background:#eef4fa;flex:none}
.language-switch button{padding:5px 9px;border-radius:8px;background:transparent;color:#60738a;font-family:inherit;font-size:11px;font-weight:700;line-height:1.2;cursor:pointer}
.language-switch button.active{background:#fff;color:#164d83;box-shadow:0 2px 7px rgba(18,53,87,.11)}
.language-switch button:focus-visible{outline:2px solid #1a84c8;outline-offset:2px}
.topbar .topbar-tools{display:flex;align-items:center;gap:9px}
html[dir="rtl"] body{font-family:Tahoma,"Segoe UI",Arial,sans-serif}
html[dir="rtl"] .app{direction:rtl}
html[dir="rtl"] .sidebar,html[dir="rtl"] .main,html[dir="rtl"] .settings,html[dir="rtl"] .ai-panel{text-align:right}
html[dir="rtl"] .nav button{text-align:right}
html[dir="rtl"] .nav button:hover{transform:translateX(-2px)}
html[dir="rtl"] .section-label{letter-spacing:0}
html[dir="rtl"] .topbar{direction:rtl}
html[dir="rtl"] .search{direction:rtl}
html[dir="rtl"] .summary-hero,html[dir="rtl"] .summary-section-head,html[dir="rtl"] .summary-panel,html[dir="rtl"] .summary-link{text-align:right}
html[dir="rtl"] .summary-bar-row,html[dir="rtl"] .summary-leader{direction:rtl}
html[dir="rtl"] .data-table th,html[dir="rtl"] .data-table td{text-align:right}
html[dir="rtl"] .settings input:not([type="file"]),html[dir="rtl"] .settings textarea{text-align:right}
html[dir="rtl"] #sheetUrl,html[dir="rtl"] #aiApiKey,html[dir="rtl"] #aiModel{direction:ltr;text-align:left}
html[dir="rtl"] .ai-panel{left:18px;right:auto}
html[dir="rtl"] .ai-message{direction:rtl;text-align:right}
html[dir="rtl"] .ai-message[dir="auto"]{direction:unset}
html[dir="rtl"] .quotation-page{direction:rtl}
html[dir="ltr"] .quotation-page,html[dir="ltr"] .quotation-page .quote-sheet{direction:ltr;text-align:left}
html[dir="ltr"] .quotation-page .editor-table th,html[dir="ltr"] .quotation-page .editor-table td,html[dir="ltr"] .quotation-page .quote-table .item-col{text-align:left}
html[dir="ltr"] .quotation-page .totals{margin-left:auto;margin-right:0}
.quotation-page .quote-preview-scroll{max-width:100%;overflow-x:auto;scrollbar-color:#b8c8d7 transparent}
@media(max-width:700px){.quotation-page .quote-preview-scroll:before{content:attr(data-hint);display:block;padding:6px 2px 10px;color:#688096;font-size:11px}.quotation-page .quote-preview-scroll .quote-sheet{width:720px;min-width:720px;margin:0}}
@media print{.quotation-page .quote-preview-scroll{overflow:visible!important}.quotation-page .quote-preview-scroll:before{display:none!important}.quotation-page .quote-preview-scroll .quote-sheet{width:min(794px,100%)!important;min-width:0!important}}
@media(max-width:900px){html[dir="rtl"] .nav button:hover{transform:none}}
@media(max-width:600px){.topbar .topbar-tools{gap:5px}.language-switch button{padding:5px 6px;font-size:10px}.profile small{display:none}.search{display:none}}
@media print{.language-switch{display:none!important}}
