@page worksheet{size:A4 landscape;margin:10mm}
@page invoice{size:A4 portrait;margin:12mm}
@media print{
 *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
 html,body{background:#fff!important;color:#0b2f52!important;width:auto!important;min-width:0!important;max-width:none!important}
 body{margin:0!important;padding:0!important;font-size:9pt!important;overflow:visible!important}
 body.print-root{display:block!important}
 .print-report{page:worksheet;width:100%;max-width:none;margin:0;padding:0}
 .invoice-paper{page:invoice}
 .sidebar,.topbar,.nav-scrim,.heading-actions,.filterbar,.page-footer,.simple-footer,.invoice-actions,.modal-footer,.pagination,.table-tools,.section-toolbar,.inline-editor,.inline-editor-details,.inline-panel-editor,button,.button{display:none!important}
 .main-shell,.main-content{margin:0!important;padding:0!important;width:100%!important;max-width:none!important}
 .page-heading{display:flex!important;margin:0 0 6mm!important}
 .page-heading .heading-actions{display:none!important}
 .print-masthead,.print-report>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10mm;width:100%!important;min-width:100%!important;margin:0 0 7mm;padding:0 0 5mm;border-bottom:1.5pt solid #0874b9;break-after:avoid}
 .print-masthead{margin-bottom:0!important;border-bottom:0!important;position:relative!important;isolation:isolate!important}
 .print-rule{display:block!important;width:100%!important;height:1.5pt!important;background:#0874b9!important;margin:0 0 7mm!important;break-after:avoid}
 html[dir=rtl] .print-masthead,html[dir=rtl] .print-report>header{flex-direction:row-reverse;text-align:right}
 .print-brand-logo{display:block!important;width:58mm!important;max-width:42%!important;height:auto!important;margin:0!important;filter:none!important;object-fit:contain!important;position:relative!important;z-index:2!important}
 .print-masthead>div{flex:1;text-align:end}
 .print-masthead h1,.print-report>header h1{font-size:19pt!important;line-height:1.2;margin:1mm 0 2mm!important;color:#063f70!important}
 .print-masthead h2,.print-report>header h2{font-size:16pt!important;line-height:1.2;margin:1mm 0 2mm!important;color:#063f70!important}
 .print-masthead p,.print-report>header p{font-size:9pt!important;color:#587890!important;margin:0!important}
 .print-document-footer,.print-report>footer{margin-top:7mm;padding-top:3mm;border-top:1px solid #cfe1ec;color:#668198;font-size:8pt;text-align:center;break-before:avoid}
 .panel,.stat-card,.account-card,.summary-grid,.simple-details,.ship-card,.sheet-card,.safe-sheet{box-shadow:none!important;border-color:#cfe0eb!important}
 .panel{margin-bottom:5mm!important;overflow:visible!important}
 .panel-heading{padding:4mm 4mm 3mm!important;break-after:avoid}
 .panel-heading h2{font-size:12pt!important}
 .panel-heading>a,.next-footer,.attention-row>.icon{display:none!important}
 .stats-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:3mm!important;margin-bottom:5mm!important}
 .stat-card{padding:4mm!important;break-inside:avoid}
 .stat-card>strong{font-size:15pt!important;margin:3mm 0!important;white-space:normal!important}
 .overview-grid,.overview-lower{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5mm!important}
 .chart-panel,.next-trips,.attention-row,.voyage-row,.summary-grid>div,.account-card{break-inside:avoid}
 .bar-chart{height:42mm!important}.chart-grid{height:36mm!important}.chart-note{padding-bottom:4mm!important}
 .table-scroll{overflow:visible!important;max-height:none!important;width:100%!important}
 table,.sheet-table,.safe-ledger-table,.vessel-account-table{width:100%!important;max-width:100%!important;min-width:0!important;border-collapse:collapse!important;table-layout:auto!important}
 thead{display:table-header-group}tfoot{display:table-row-group}
 tr{break-inside:avoid;page-break-inside:avoid}
 th,td,.sheet-table th,.sheet-table td{padding:2.2mm 2.6mm!important;font-size:8.2pt!important;line-height:1.35!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important}
 th{font-weight:650!important}
 .cell-sub{max-width:none!important;white-space:normal!important}
 .summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;break-inside:avoid}
 .detail-heading,.expense-sheet-heading,.vessel-sheet-heading{margin-bottom:5mm!important;break-after:avoid}
 .detail-actions,.back-link,.expense-sheet-heading>.badge,.vessel-sheet-heading>.button{display:none!important}
 .expense-sheet-grid{display:block!important}
 .sheet-side{display:block!important}
 .sheet-card{break-inside:auto!important;margin-bottom:5mm!important}
 .sheet-card .panel-heading{break-after:avoid}
 .profit-sheet .sheet-net{break-inside:avoid}
 .sheet-warning{break-inside:avoid}
 .vessel-account-table{table-layout:fixed!important}
 .vessel-account-table th,.vessel-account-table td{font-size:7.2pt!important;padding:2mm!important}
 .vessel-account-table th:last-child,.vessel-account-table td:last-child{display:none!important}
 .ship-grid,.vessel-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5mm!important;max-width:none!important}
 .ship-card{break-inside:avoid}.ship-card-cover{height:38mm!important}.ship-card-content{padding:4mm!important}
 .ship-account-button,.vessel-link{display:none!important}
 .safe-ledger-table th:first-child,.safe-ledger-table td:first-child{width:40%!important}
 .safe-sheet-title{padding:4mm!important}.safe-sheet-footer,.safe-toolbar{display:none!important}
 .safe-calendar{padding:2mm!important}.safe-calendar-cell{min-height:21mm!important;break-inside:avoid}
 .invoice-paper{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important}
 .invoice-brand img{width:62mm!important;max-height:28mm!important}.invoice-top{padding-bottom:6mm!important}.invoice-parties{margin:8mm 0!important}
 .invoice-paper table{table-layout:fixed!important}.invoice-paper footer{margin-top:8mm!important}
 a[href]{text-decoration:none!important;color:inherit!important}
 a[href]::after{content:none!important}
}
