
#broker-calculator-container {
    background: #fff;
    border-radius: 4px;
}

.column-headers {
    display: flex;
    background: #f0f0f0;
    border: 1px solid #000000;
    border-bottom: none;
    font-family: 'Arial', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 11px;
}

.column-header {
    flex: 1;
    padding: 4px;
    text-align: center;
    font-weight: bold;
    color: #000000;
    background: #f0f0f0;
    border-right: 1px solid #000000;
    min-width: 60px;
}

.column-header:last-child {
    border-right: none;
}

.row-number {
    color: #000000 !important;
    text-align: center !important;
    font-weight: bold !important;
    border: 1px solid #C3C7C5 !important;
    padding: 8px !important;
    font-size: 11px !important;
    font-family: 'Arial', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
}

.row-number-header {
    background: #f0f0f0 !important;
    color: #000000 !important;
    text-align: center !important;
    font-weight: bold !important;
    /* border: 1px solid #000000 !important; */
    padding: 4px 8px !important;
    font-size: 11px !important;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
}

.calculator-content {
    font-family: Arial, Arial, sans-serif;
    font-size: 12px;
    background: white;
    /* border: 1px solid #d0d7de; */
    max-width: 100%;
    overflow-x: auto;
}

.excel-column-headers {
    display: flex;
    background: #f0f0f0;
    border-bottom: 1px solid #d0d7de;
    position: sticky;
    top: 0;
    z-index: 10;
}

.row-header-space {
    width: 40px;
    min-width: 40px;
    background: #f0f0f0;
    border-right: 1px solid #d0d7de;
    height: 20px;
}

.column-header {
    min-width: 80px;
    padding: 4px 8px;
    text-align: center;
    font-weight: bold;
    background: #f0f0f0;
    border-right: 1px solid #d0d7de;
    color: #333;
    height: 20px;
    line-height: 12px;
}

.calculator-header-section,
.calculator-subtitle-section {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #d0d7de;
    min-height: 20px;
}

.calculator-title {
    text-align: center;
}

.calculator-title h2{
    font-size: 22px !important;
    font-weight: 600 !important;
    margin: 0;
}
.calculator-title p{
    font-size: 10px !important;
    font-weight: 400 !important;
    margin: 0;
}
.calculator-subtitle {
    padding: 4px 8px;
    color: #333;
    font-size: 12px;
}

.excel-cell {
    background: white;
    min-width: 80px;
    font-size: 9px;
    position: relative;
}

.excel-cell:hover {
    background: #f8f9fa;
}

.excel-cell:focus-within {
    background: #fff2cc;
    border: 2px solid #4472c4;
}

.excel-cell input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 12px;
    font-family: 'Arial', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: right;
    color: #000000;
}

.excel-cell input:focus {
    outline: 2px solid #0078d4;
    background-color: #ffffff;
}

.excel-grid tr:nth-child(1) .excel-cell {
    background-color: #ffffff;
    font-weight: bold;
    text-align: center;
    font-size: 14px;
}

.excel-grid tr:nth-child(2) .excel-cell,
.excel-grid tr:nth-child(3) .excel-cell,
.excel-grid tr:nth-child(4) .excel-cell {
    background-color: #ffffff;
    text-align: center;
    font-size: 12px;
}

.excel-grid tr:nth-child(6) .excel-cell {
    background-color: #92d050;
    color: #000000;
    font-weight: bold;
    text-align: center;
}

.excel-grid tr:nth-child(7) .excel-cell {
    background-color: #92d050;
    color: #000000;
    font-weight: bold;
    text-align: center;
}

.excel-grid tr:nth-child(n+8) .excel-cell {
    background-color: #ffffff;
}

.excel-grid .excel-cell[data-col="F"],
.excel-grid .excel-cell[data-col="G"] {
    background-color: #ffff00;
    text-align: right;
    font-weight: bold;
}

.broker-calculator-container {
    max-width: 1200px;
    margin: 20px auto;
    margin-top: 0px;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    font-family: 'Arial', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12px; /* Reduced from 11px to match Excel */
}

.calculator-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 0;
    padding: 8px;
    background: #ffffff;
    color: #000000;
    border-radius: 0;
}

.calculator-header h1 {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    text-shadow: none;
    color: #000000;
}

.calculator-header .subtitle {
    margin: 2px 0 0 0;
    font-size: 12px;
    opacity: 1;
    font-weight: normal;
    color: #000000;
}

#save-broker-calculator,
#fullscreen-toggle, #fullscreen-close {
    background: #0073aa !important;
    border-color: #0073aa !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

#fullscreen-toggle:hover, #fullscreen-close:hover {
    background: #005a87 !important;
    border-color: #005a87 !important;
}

#fullscreen-toggle .dashicons, #fullscreen-close .dashicons {
    margin-right: 5px;
    vertical-align: middle;
}

/* Fullscreen styles */
.broker-calculator-container.broker-calculator-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    z-index: 999999 !important;
    background: #fff !important;
    overflow: auto !important;
    padding: 20px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border: none !important;
    box-shadow: none !important;
    padding-top: 0px !important;
}

/* Ensure body doesn't have scroll when modal is open */
body.broker-calculator-modal-open {
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.broker-calculator-container.broker-calculator-fullscreen .calculator-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1000;
    padding: 50px 0 20px 0;
    /* border-bottom: 2px solid #dee2e6; */
    margin-bottom: 20px;
}

.broker-calculator-container.broker-calculator-fullscreen .broker-calculator-wrapper {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.broker-calculator-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    width: 95%;
    height: 95%;
    margin: 2.5%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: #dc3545;
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #c82333;
    transform: scale(1.1);
}

.modal-close .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.modal-body {
    flex: 1;
    overflow: auto;
    padding: 20px;
}

.calculator-content {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.calculator-header-section {
    text-align: center;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.calculator-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.calculator-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.calculator-table {
    width: 2550px;
    max-width: 2550px;
    overflow: scroll;
    border-collapse: collapse;
    margin-bottom: 0;
    background: #ffffff;
    font-size: 12px;
    font-family: 'Arial', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.calculator-table th {
    border: 1px solid #C3C7C5;
    padding: 8px;
    vertical-align: middle;
    font-size: 12px;
    line-height: 1.1;
}

.calculator-table td{
    /* padding: 0px 6px; */
    vertical-align: middle;
    font-size: 11px;
    line-height: 1.1;
    text-align: center;
}

.calculator-table th td{
    padding: 8px;
    vertical-align: middle;
    font-size: 12px;
    line-height: 1.1;
}


.revenue-section .calculator-table th {
    background: #dbeafe;
}

.revenue-section .total-row {
    background: #eff6ff;
    font-weight: 600;
}

.fee-based-section .calculator-table th {
    background: #dcfce7;
    color: #166534;
}

.fee-based-section .total-row {
    background: #f0fdf4;
    font-weight: 600;
}

.expenses-section .calculator-table th {
    background: #fef3c7;
    color: #92400e;
}

.expenses-section .total-row {
    background: #fffbeb;
    font-weight: 600;
}

.payout-section .calculator-table th {
    background: #fce7f3;
    color: #be185d;
}

.payout-section .total-row {
    background: #fdf2f8;
    font-weight: 600;
}

.calc-input {
    width: 100%;
    border: 1px solid #000000;
    border-radius: 0;
    /* padding: 1px 3px; */
    font-size: 11px;
    text-align: center;
    background: #fff;
    transition: border-color 0.2s ease;
}

.calc-input:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 1px #0078d4;
}

.static-value {
    font-weight: 600;
    text-align: right;
    color: #374151;
}

.calculated-value {
    background: #f9fafb;
    font-weight: 600;
    text-align: right;
    color: #059669;
}

.sub-section-header th {
    color: #000000 !important;
    font-weight: bold;
    text-align: center;
    font-size: 12px;
    padding: 2px 3px;
}

.revenue-section .section-header,
.revenue-section .sub-section-header th {
    color: #000000 !important;
}

.calculator-table thead th {
    color:#4A4D4C;
    text-align: center;
    font-size: 10px;
    padding: 6px;
}

.fee-based-section .sub-section-header th {
    color: #000000 !important;
}

.input-cell {
    background-color: #ffffff !important;
    padding: 0px;
}

.input-cell input {
    width: 100%;
    border: none;
    background: transparent;
    /* padding: 1px 3px; */
    /* font-size: 12px; */
    font-family: 'Arial', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: right;
    color: #000000;
}
.input-cell input:focus {
    outline: 2px solid #0078d4;
    background-color: #ffffff;
}
.calculated-cell {
    color: #000000 !important;
    font-weight: normal;
    padding: 1px 3px;
    font-size: 11px;
}
.percentage-cell {
    background-color: #ffffff !important;
    color: #000000 !important;
    text-align: center;
    font-weight: normal;
    font-size: 12px;
}
.fee-cell {
    background-color: #ffffff !important;
    color: #000000 !important;
    text-align: center;
    font-weight: normal;
    font-size: 12px;
}
.static-cell {
    background-color: #ffffff !important;
    color: #000000 !important;
    text-align: center;
    font-size: 12px;
}
.category-label {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-weight: normal;
    text-align: left;
    padding: 1px 3px;
    font-size: 12px;
}

.total-row .total-label {
    color: #000000 !important;
    font-weight: bold;
    text-align: center;
}

.total-row .calculated-cell {
    color: #000000 !important;
    font-weight: bold;
}

.expenses-section .section-header {
    background-color: #92d050 !important;
    color: #000000 !important;
}

.expenses-section .expense-label {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-weight: normal;
    text-align: left;
    padding: 2px 4px;
}

.yearly-expenses-section .section-header {
    background-color: #92d050 !important;
    color: #000000 !important;
}

.payout-section .section-header {
    background-color: #92d050 !important;
    color: #000000 !important;
}

.payout-section .payout-label {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-weight: normal;
    text-align: left;
    padding: 2px 4px;
}

.payout-section .final-label {
    color: #000000 !important;
    font-weight: bold;
}

.payout-section .final-amount {
    color: #000000 !important;
    font-weight: bold;
    font-size: 12px;
}

.calculator-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: none;
    overflow: auto;
}

.calculator-modal-content {
    position: relative;
    background: #ffffff;
    margin: 20px;
    padding: 0;
    border-radius: 0;
    max-width: none;
    width: calc(100% - 40px);
    min-height: calc(100vh - 40px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.calculator-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000000;
    z-index: 1000000;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.calculator-modal-close:hover {
    background-color: #f0f0f0;
    color: #000000;
}

.calculator-modal-close .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.calculator-modal-content .broker-calculator-container {
    margin: 0;
    padding: 20px;
    max-width: none;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
}

@media print {
    .calculator-modal-overlay {
        position: static !important;
        background: white !important;
        z-index: auto !important;
        display: block !important;
        overflow: visible !important;
    }
    
    .calculator-modal-content {
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        min-height: auto !important;
        width: 100% !important;
    }
    
    .calculator-modal-close {
        display: none !important;
    }
    
    #fullscreen-toggle {
        display: none !important;
    }
    
    .calculator-table {
        page-break-inside: avoid;
    }
    
    .section-header {
        page-break-after: avoid;
    }
}

@media (max-width: 768px) {
    .calculator-modal-content {
        margin: 10px;
        width: calc(100% - 20px);
        min-height: calc(100vh - 20px);
    }
    
    .calculator-table {
        font-size: 12px;
    }
    
    .calculator-table th,
    .calculator-table td {
        padding: 1px 2px;
    }
    
    .input-cell input {
        font-size: 12px;
        padding: 1px 2px;
    }
    
    .calculator-content {
        font-size: 9px;
    }
    
    .column-header,
    .row-number {
        min-width: 60px;
    }
    
    .calc-input {
        font-size: 8px;
    }
}

.calculator-modal-overlay.show {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.calculator-modal-content.show {
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.highlight-yellow {
    background: #fef3c7 !important;
}

.highlight-green {
    background: #dcfce7 !important;
}

.highlight-blue {
    background: #dbeafe !important;
}

.highlight-pink {
    background: #fce7f3 !important;
}

/* Currency Formatting */
.currency {
    text-align: right;
    font-family: 'Courier New', monospace;
}

/* Percentage Formatting */
.percentage {
    text-align: right;
    font-weight: 600;
}

.calculator-loading {
    opacity: 0.6;
    pointer-events: none;
}

.calculator-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.calc-input:focus,
.modal-close:focus,
#fullscreen-toggle:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.broker-calculator-modal.show {
    display: block !important;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content.show {
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.bgcolor-green{
    background-color: #92D04F !important;
}
.bgcolor-yellow{
    background-color: #FFFF00 !important;
}
.text-align-left{
    text-align: left !important;
}
.text-align-center{
    text-align: center !important;
}
.text-align-right{
    text-align: right !important;
}
.font-weight-100{
    font-weight: 100 !important;
}
.font-weight-200{
    font-weight: 200 !important;
}
.font-weight-300{
    font-weight: 300 !important;
}
.font-weight-400{
    font-weight: 400 !important;
}
.font-weight-500{
    font-weight: 500 !important;
}
.font-weight-600{
    font-weight: 600 !important;
}
.font-weight-700{
    font-weight: 700 !important;
}

.broker-calculator-wrapper input,
.broker-calculator-wrapper input:focus,
.broker-calculator-wrapper input:hover,
.broker-calculator-wrapper input:visited,
.broker-calculator-wrapper input:active{
    border:none;
    background-color: transparent;
}

.broker-tooltip {
    position: absolute;
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.broker-tooltip.show {
    opacity: 1;
}

.broker-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.page-template-default .broker-calculator-wrapper .calculator-table input[type=text],
.page-template-default .broker-calculator-wrapper .calculator-table input[type=number]{
    background-color: transparent !important;
    padding: 0px !important;
    height: auto !important;
    border: none !important;
}

.page-template-default .broker-calculator-wrapper .calculator-table td{
    white-space: nowrap;
}

.calculator-table input[type=text],
.calculator-table input[type=number]{
    padding: 0 0px !important;
    line-height: 1;
    min-height: 27px !important;

}

/* Fullscreen container scroll setup */
.broker-calculator-container.broker-calculator-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  background: #fff !important;
  z-index: 99999 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column !important;

  /* Scroll both axes */
  overflow-x: scroll !important;
  overflow-y: scroll !important;

  /* Force scrollbars visible (Windows, Linux, modern browsers) */
  scrollbar-width: auto !important; /* Firefox */
  -ms-overflow-style: auto !important; /* IE 10+ */
}

/* Chrome, Edge, Safari scrollbar */
.broker-calculator-container.broker-calculator-fullscreen::-webkit-scrollbar {
  width: 12px;   /* vertical scrollbar width */
  height: 12px;  /* horizontal scrollbar height */
}

.broker-calculator-container.broker-calculator-fullscreen::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.broker-calculator-container.broker-calculator-fullscreen::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 6px;
}

.broker-calculator-container.broker-calculator-fullscreen::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.broker-calculator-container.broker-calculator-fullscreen #save-broker-calculator { 
    position: absolute;
    top: 20px;
    right: 186px;
    z-index: 2000;
    display: block !important;
 }

/* Enforce header flex layout and spacing, keep consistent order */
.calculator-header {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

/* Ensure calculator content is wide */
.broker-calculator-container.broker-calculator-fullscreen .calculator-content {
  min-width: 2550px !important;
}

/* Table width fixed */
.broker-calculator-container.broker-calculator-fullscreen .calculator-table {
  width: 2550px !important;
  max-width: none !important;
}

/* Wrapper overflow visible to allow dragging */
.broker-calculator-container.broker-calculator-fullscreen .broker-calculator-wrapper {
  overflow: visible !important;
}

/* Sticky header won't overlap horizontal scrollbar */
.broker-calculator-container.broker-calculator-fullscreen .calculator-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
}



/* Page-embedded calculator wrapper */
.broker-calculator-wrapper {
  width: 100%;          /* container full page width */
  overflow-x: scroll;   /* horizontal scroll always */
  overflow-y: visible;  /* vertical handled by page scroll */
  scrollbar-width: auto; /* Firefox */
  -ms-overflow-style: auto; /* IE 10+ */
}

/* Chrome, Edge, Safari scrollbar */
.broker-calculator-wrapper::-webkit-scrollbar {
  height: 12px; /* horizontal scrollbar height */
}

.broker-calculator-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.broker-calculator-wrapper::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 6px;
}

.broker-calculator-wrapper::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Ensure calculator content width is fixed */
.broker-calculator-wrapper .calculator-content {
  min-width: 2550px;  /* table width forcefully */
}

/* Table width fixed */
.broker-calculator-wrapper .calculator-table {
  width: 2550px;
  max-width: none;
}


/* Page-embedded calculator scroll container */
.broker-calculator-wrapper {
  width: 100%;                  /* full page width */
  max-height: 650px;            /* 원하는 max height (adjustable) */
  overflow-x: scroll;           /* horizontal scrollbar always */
  overflow-y: auto;             /* vertical scroll only if content exceeds max-height */
  scrollbar-width: auto;         /* Firefox */
  -ms-overflow-style: auto;      /* IE 10+ */
  border: 1px solid #ddd;        /* optional: visual boundary */
  box-sizing: border-box;
}

/* Chrome, Edge, Safari horizontal scrollbar */
.broker-calculator-wrapper::-webkit-scrollbar {
  height: 12px; /* horizontal scrollbar height */
}

.broker-calculator-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.broker-calculator-wrapper::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 6px;
}

.broker-calculator-wrapper::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Ensure calculator content width is fixed */
.broker-calculator-wrapper .calculator-content {
  min-width: 2550px;  /* table width forcefully */
}

/* Table width fixed */
.broker-calculator-wrapper .calculator-table {
  width: 2550px;
  max-width: none;
}

/* Exit Fullscreen button inside modal */
.broker-calculator-container.broker-calculator-fullscreen #fullscreen-close {
    position: absolute;  /* modal container relative */
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: block !important; /* JS hide/show handle করবে */
}

.broker-table{
    width: 100% !important;
    max-width: none !important;
}