/* Mixer */
.mixer {
    transform: scale(1);  /* Scale only the width */
    height: 209px;
    background-color: rgb(214, 214, 214);    
    bottom: 0;
    left: 0;
    display: flex;
    cursor: auto;
    transform-origin: bottom left;
    overflow-y: hidden; /* Prevent horizontal overflow */
}

.mixer .leftside {
    /* transform: scale(0.85); */
    transform-origin: top left;
    height: 245px;
    background: #cf6350;
    min-width: 250px; /* Set your desired minimum width */
    padding: 5px;

    /* Media query to apply padding-left only when screen height is 600px or more */
    @media (max-height: 700px) {
        padding-left: 55px;
        min-width: 300px;        
    }    
}

/* Right side */
.mixer .rightside {
    /* transform: scale(0.85); */
    transform-origin: top left;
    height: 245px;
    /* background: rgb(214, 214, 214); */
    overflow-x: auto; /* Enable horizontal scrollbar */
    white-space: nowrap; /* Prevent wrapping */
    /* Dynamic min-width calculation based on screen width */
    width: calc(100vw - 17px);    
    padding: 10px; /* Add padding if needed */
    box-sizing: border-box; /* Include padding in the width calculation */
    flex-grow: 1; /* Allow the right column to grow and take up remaining space */

    /* Media query to adjust styles for smaller screens */
    @media (max-width: 600px) {
        min-width: calc(100% - 17px); /* Recalculate min-width for smaller screens */
    }
}

.mixer .rightside > div.controls_outer {
    display: inline-block; /* Use inline-block to create a horizontal layout */
    margin-right: -4px; /* Add spacing between boxes if needed */
    width: 110px; /* Set a fixed width for each box */
    background-color: rgb(214, 214, 214); /* Add background color or other styling */
    box-sizing: border-box; /* Include padding in the width calculation */
    border: 1px solid rgb(60, 60, 60);
    height: 195px;
  }

  .mixer .rightside > div > div.controls_inner {
    border-top: 3px solid white;
    border-left: 3px solid white;
    border-right: 3px solid gray;
    border-bottom: 3px solid rgb(199, 199, 199);
    height: 194px;
  }

/* Button Global */
.mixer .mbutton span {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    line-height: 1.5;
}

.mixer .mbutton {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    color: #000;
    font-size: 10px;
    /* border-right: 1px solid #cf6350; */
    border-radius: 0px; /* Rounded corners */    
    position: relative;
    /* width: 150px; */
    height: 37px;
    background-color: #ffd6d6;    
    cursor: pointer;
    margin:1 0 1 0;

    /* transition: background-color 0.2s ease; */
}

/* Measure, Beat, Page */
.mixer .mattribs_container {
    display: flex;
    border: 1px solid black; /* Set the border for the container */
    font-size:12px;
    text-align: center;
}
.mixer .mattribs {    
    height:30px;
    line-height:30px;
}
.mixer .mattribs_label {
    text-align: center;
}

.mattribs:nth-child(even) {
    border-left: 1px solid black;
    border-right: 1px solid black;
}

.mixer .beats {
    background:#ffd6d6;
    padding: 5px;    
}

.mixer .volumemaster {
    background:#ffd6d6;    
    margin-left:1px;
    width: 79px
}

.mixer .volumetrack {
    background:#ffd6d6;    
    margin-left:1px;
    width: 79px
}

/* Button Specific */
.mixer .stop-button svg  {
    position: relative;
    width: 100%;
    height: 100%;
    scale: 1;
}

.mixer .play-button svg {
    position: relative;
    width: 100%;
    height: 100%;
    scale: 1;
}

.mixer .mbutton:hover {
    background-color: #ff948a;
}

.mixer .mbutton:active {
    background-color: #ff4828;
}

/* Slider */
.mixer .slider_tempo {    
    padding: 5px;
}

.mixer #slider_tempo {
    width: 100%;
    height: 15px;
    margin: 10px auto;
    background-color: rgb(214, 214, 214);
    border: solid 1px rgb(58, 58, 255);
    border-radius: 3px;    
}

.mixer #slider_tempo_label {
    cursor: pointer;
}

.mixer .ui-slider-handle-tempo {    
    background: black;
    border: solid 0px;
    width: 12px;
    height: 18px;
    margin-left: -3px; /* Used to help slider not jump left or right while adjusting */
    margin-top: 2px;
    border-radius: 10%;
    outline: none; /* Remove the outline on click */
    cursor: pointer;
}

.mixer .slider_volumemaster {
    padding: 5px;
}

.mixer #slider_volumemaster {    
    width: 5px;
    height: 100px;
    margin: 10px auto;
    background-color: rgb(214, 214, 214);
    border: solid 1px rgb(58, 58, 255);
    border-radius: 3px;
    
}

.mixer .ui-slider-handle-volumemaster {
    background: black;
    border: solid 0px;
    width: 24px;
    height: 35px;
    margin-left: -6px;
    
    /* Used to help slider not jump up or down while adjusting */
    /* margin-top: -10px; */
    transform: translate(0%, 30%);
    /* margin: 0 0 0 -6px; Adjusted margin values */
    border-radius: 10%;
    outline: none; /* Remove the outline on click */
    cursor: pointer;
}

/* Track Volume */
.mixer .slider_volumetrack_container {    
    margin: 5px;
    width: 25px;
    margin-right: 10px;
    border-top: 1px solid black;
    border-left: 1px solid black;
    border-bottom: 1px solid white;
    border-right: 1px solid white;
}

.mixer .slider_volumetrack {        
    width: 1px;
    height: 100px;
    margin: 10px auto;
    background-color: rgb(214, 214, 214);
    border: solid 1px gray;
    border-radius: 3px;    
}

.mixer .ui-slider-handle-volumetrack {    
    background: black;
    border: solid 0px;
    width: 15px;
    height: 30px;
    margin-left: -3px;
    
    /* Used to help slider not jump up or down while adjusting */
    /* margin-top: -10px; */
    transform: translate(0%, 25%);
    /* margin: 0 0 0 -6px; Adjusted margin values */
    border-radius: 10%;
    outline: none; /* Remove the outline on click */
    cursor: pointer;
}

.mixer .ui-state-active {    
    background: rgb(146, 146, 146);
    border: solid white 1px;
    border-radius: 10%;    
}

/* Track Buttons */
.mixer .trackbutton {    
    transform: scale(0.75);
    border-top: 2px solid white;
    border-left: 2px solid white;
    border-right: 2px solid black;
    border-bottom: 2px solid black;
    width: 20px;
    height: 20px; /* Set a fixed height for square buttons */  
    cursor: pointer;
    border-radius: 0px;
}

.mixer .innersquare {
    width: 8px;
    height: 8px;
    transform: translate(50%, 50%); /* Center the inner square */
}

/* Button Mute */
.mixer .trackbutton {    
    background-color: lightgray;
}
.mixer .trackbutton.mute .innersquare {
    border: 1px solid white;        
    background: yellow;
}

.mixer .trackbutton.solo .innersquare {
    border: 1px solid white;
    background: blue;
}
.mixer .trackbutton.piano .innersquare {
    border: 1px solid white;
    background: red;
}

.mixer .buttonlabel {
    font-size: 8px;
}

/* Pan */
.rotaryswitchPlugin .switch {
    background-size: 100%;
    width: 100%;
    height: 100%;
}

.mixer .pan {
    background-image: url("/mj/jslibs/knob/theme/lightBigBackground.png");
    transform: scale(0.75);  /* Scale only the width */
    margin: 0 0 0 -5;
    background-size: 100%;
    width: 30px;
	height: 30px;
}

/* LED */
.mixer .led_container .led {
    border: 2px solid gray;
    padding: 2.5px;
    margin: 5 10 0 5;
    width: 18px;
}

/* Panels */
.mixer .panels {
    float: left;
    width: 100%;
}

.mixer .panel {
    cursor: pointer;
    height: 26px;
    border-top: 1px solid white;
    border-left: 1px solid white;
    border-bottom: 1px solid gray;
    border-right: 1px solid gray;
}

.mixer .panels:hover {
    background: rgb(251, 251, 251);
}

/* Tracks */
.mixer_selectContainer {
    width: 240px;
    margin: 5px;
    border: 1px solid #d17868;
    background: white;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

.mixer_selectable .ui-selecting { 
    background: #bdefff;
}
.mixer_selectable li.mixer_selectHeader {
    background: #dfdfdf;
    font-weight: bold;
    font-size: 13px;
    text-align: center;
    pointer-events: none;
}
.mixer_selectable .ui-selected { 
    background: #d1f4ff;
    color: black; 
}
.mixer_selectable { 
    list-style-type: none;
    margin: 0; 
    padding: 0; 
    width: 60%;
}

.mixer_selectable li {
    width: 220;
    cursor: pointer;
    padding: 10px;
    font-size: 12px;
    height: 14px;
    line-height: 0px;
    border: 0px;
}

/* Single digit offset */
.mixer_selectable span.number.single {
    margin-right: 40px;
}

/* Double digit offset */
.mixer_selectable span.number.double {
    margin-right: 32px;
}

/* Triple digit offset */
.mixer_selectable span.number.triple {
    margin-right: 24px;
}

.miditrack_container {
    padding: 5px;
}

.outline.trackinput {
    cursor:text;
    padding: 5px;    
}

.outline.trackinput input[type="text"] {
    height:35px;
    font-size: 14px;
    border: 1px solid lightgray;
}

.outline.trackinput input[type="text"]:focus {    
    border: 1px solid gray;
    background: rgb(240, 240, 240);
}

.outline.trackinput label {
    font-weight: bold;
    font-size: 13px;
}

div.outline.trackinput input#track_long {
    margin-bottom: 15px;
}