        /* ===================================
           TRANSFORMER SIZING CALCULATOR
           Calculator-Specific Styles
           =================================== */

        /* Page content containers - calculator-specific display logic */
        .page-content {
            display: none;
        }
        
        .page-content.active {
            display: block;
        }
        
        /* Panel wrappers for Load Details and Results tables */
        .panel {
            background: #FFF;
            padding: 10px;
            margin-bottom: 15px;
            border-radius: 4px;
            border: 1px solid #A9A9A9;
            outline: none;
        }
        
        body.dark-mode .panel {
            background: #1a2332;
            border-color: #2d4a6b;
        }
        
        /* System Configuration panel inputs dark mode */
        body.dark-mode #resultsOverviewConfig {
            background: #2a3f56;
            color: #e8f0f7;
            border-color: #2d4a6b;
        }
        
        body.dark-mode #resultsOverviewConfig:focus {
            border-color: #5dade2;
        }
        
        body.dark-mode .theme-label {
            color: #e8f0f7 !important;
        }
        
        .table-container {
            overflow-x: auto;
            margin-bottom: 15px;
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
            table-layout: auto;
        }
        
        th {
            background:#DCDCDC;
            color: #333;
            padding: 6px 6px;
            text-align: center;
            font-weight: normal;
            border: 1px solid#A9A9A9;
        }
        
        body.dark-mode th {
            background: #2a3f56;
            color: #e8f0f7;
            border-color: #2d4a6b;
        }
        
        th:nth-child(2) {
            width: 80px;
        }
        
        td {
            padding: 6px;
            border: 1px solid#A9A9A9;
            text-align: center;
            background:#FFFFFF;
            color: #333;
        }
        
        /* Left-align parameter labels in output tables */
        td:first-child {
            text-align: left;
            padding-left: 10px;
        }
        
        body.dark-mode td {
            background: #243447;
            color: #e8f0f7;
            border-color: #2d4a6b;
        }

        /* Load Details table specific styling - minimal padding and no input/select borders */
        #loadTable tbody td {
            padding: 2px 3px;  /* Minimal padding to prevent cramming */
            font-size: 13px;
        }
        
        /* Column width control for Load Details table */
        #loadTable th:nth-child(1),  /* Load column */
        #loadTable td:nth-child(1) {
            width: 120px;
            max-width: 120px;
        }
        
        /* Power Rating columns - value and units */
        #loadTable th:nth-child(7),  /* Power Rating value column */
        #loadTable td:nth-child(7) {
            width: 70px;
        }
        
        #loadTable th:nth-child(8),  /* Power Rating units column */
        #loadTable td:nth-child(8) {
            width: 60px;
            min-width: 60px;
        }
        
        /* Load column text input - taller, no border */
        #loadTable tbody td input[type="text"] {
            color: #333;
            background: #FFFFFF;
            border: none;
            text-align: left;
            font-size: 13px;
            height: 25px;
            width: 100%;
            max-width: 115px;  /* Constrain to fit within 120px column */
            padding: 2px 4px;  /* Small padding for text comfort */
            box-sizing: border-box;  /* Include padding in width calculation */
        }
        
        body.dark-mode #loadTable tbody td input[type="text"] {
            color: #e8f0f7;
            background: #243447;
        }
        

        body.dark-mode #loadTable tbody td input[type="text"]:focus {
            border: 1px solid #5dade2;
        }
        
        #loadTable tbody td input[type="number"],
        #loadTable tbody td select {
            border: none;
            text-align: center;
            font-size: 13px;
            width: 100%;
            height: 100%;
            padding: 4px;
            box-sizing: border-box;
            background: #FFFFFF;
            color: #333;
        }
        
        body.dark-mode #loadTable tbody td input[type="number"],
        body.dark-mode #loadTable tbody td select {
            background: #243447;
            color: #e8f0f7;
        }
        
        #loadTable thead th {
            font-size: 13px;
        }
        
       
       
        /* Limit width of nominal power input */
        #loadTable .nominal-power {
            max-width: 100px;
        }
        
        /* Voltage System dropdown - add border */
        #voltageSystem {
            border: 1px solid #A9A9A9;
        }
       
        body.dark-mode #voltageSystem {
            border: 1px solid #2d4a6b;
        }
        
        body.dark-mode #voltageSystem:focus {
            border-color: #5dade2;
        }
        
        body.dark-mode input[type="number"], 
        body.dark-mode select {
            background: #2a3f56;
            color: #e8f0f7;
            border-color: #2d4a6b;
        }
        
        /* Global Diversity Factor input dark mode */
        body.dark-mode #globalDiversityFactor {
            background: #2a3f56;
            color: #e8f0f7;
            border-color: #2d4a6b;
        }
        
   
        body.dark-mode input[type="number"]:focus, 
        body.dark-mode select:focus {
            border-color: #5dade2;
        }
        
        /* Row controls - floating in body background area, outside container */
        .table-container {
            overflow: visible !important;
            position: relative;
        }
        
        .row-controls {
            display: flex;
            gap: 5px;
            justify-content: center;
            align-items: center;
        }
        
        .row-controls-cell {
            position: relative;
            border: none !important;
            background: transparent !important;
            width: 0 !important;
            padding: 0 !important;
            vertical-align: middle;
        }
        
        .row-controls-cell .row-controls {
            position: absolute;
            left: 26px;  /* Push buttons (btn) outside the container border into body area */
            top: 50%;
            transform: translateY(-50%);
            white-space: nowrap;
            z-index: 100;
        }
        
        /* Make the header version also transparent and hidden */
        #loadTable thead th.row-controls-cell {
            border: none !important;
            background: transparent !important;
            width: 0 !important;
            padding: 0 !important;
        }
        
        .btn {
            padding: 3px 5px;  /* Further reduced to eliminate overlap */
            border: none;
            border-radius: 2px;
            cursor: pointer;
            font-size: 18px;  /* Reduced from 20px */
            font-weight: 600;
            background: #F9F9F9;  /* Match body background */
            color: #4db8c4;
        }
        
        body.dark-mode .btn {
            background: #0f1419;  /* Match dark mode body background */
            color: #2a3f56;
        }
        
        .btn-add {
            color: #D3D3D3;
        }
        
        .btn-remove {
            color: #D3D3D3;
        }
        
        .btn:hover {
            background:#D3D3D3;  /* color - hover over add remove buttons*/	

            color:#F9F9F9;
        }
        
        body.dark-mode .btn:hover {
            background: #b8c9db;  /* color - hover over add remove buttons*/
            color:#243447;
        }
        
        .readonly {
            background: #F9F9F9 !important;
            cursor: text;
            user-select: text;
        }
        
        body.dark-mode .readonly {
            background: #243447 !important;
        }               


        /* Dark mode fix for Results Overview Table headers */
        body.dark-mode #resultsOverviewTable th {
            background: #2a3f56 !important;
            color: #e8f0f7 !important;
            border-color: #2d4a6b !important;
        }

        body.dark-mode #resultsOverviewTable td {
            background: #243447 !important;
            color: #e8f0f7 !important;
            border-color: #2d4a6b !important;
        }
        
        /* Results Overview table font size */
        #resultsOverviewTable {
            font-size: 13px;
        }
        
        #resultsOverviewTable th {
            font-size: 13px;
            padding: 8px;
        }
        
        #resultsOverviewTable td {
            font-size: 13px;
            padding: 6px;
        }

        /* ===== MOBILE RESPONSIVENESS ===== */
        
        @media (max-width: 768px) {
            .container {
                padding: 10px 5px;
            }
            
            /* Enable horizontal scroll for Load Detail table on mobile */
            .table-container {
                overflow-x: auto !important;
                -webkit-overflow-scrolling: touch;
            }
            
            #loadTable {
                min-width: 1000px;
                font-size: 13px;
            }
            
            #loadTable th,
            #loadTable td {
                padding: 4px 2px;
                font-size: 13px;
            }
            
            /* Make dropdowns stack vertically on mobile */
            div[style*="display: flex"] {
                flex-wrap: wrap !important;
            }
        }
