*,
*::after,
*::before {box-sizing: border-box}

body, html {
    height: 97%;
    margin: 10px 10px 0px 10px;
    margin: 10px;
    padding: 0;
    font-family: "Calibri", Sans-Serif;
}

.tabButton {
    font-family: "Calibri", Sans-Serif;
    font-size: 110%;
    font-weight: 400;
    background-color: transparent;
    color: DarkGrey;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 5px 5px 5px 20px;
    margin: 10px;
    width: auto;
}
.tabButton:hover {color: #000080 !important;}
.tabButton:disabled {pointer-events: none; opacity: 0.5; color: darkgrey;}
.tabContent {
    font-family: "Calibri", Sans-Serif;
    font-size: 95%;
    display: none;
    height: 80%;
    margin: 60px 0px 0px 0px; /* Top - right - bottom - left */
    background-color: transparent;
    padding: 0px 0px 0px 0px;
}
/* Fill particular tab content containers*/
/* #signin {background-color: white;}
#brief {background-color: white;}
#deal {background-color: white;}
#programming {background-color: white;}
#reach {background-color: white;}
#mediaPlan {background-color: white;} */

.panel {
    padding: 15px;    
    background-color: white;
    box-shadow: 3px 3px 5px 3px silver;
    width: 100%;
    min-width: 250px;
    margin: 5px, 5px, 5px, 5px;
    border-radius: 5px;
}
.panelContainer{display: flex; flex-direction: row; margin-bottom: 10px;}

.controls {
    display: flex; 
    flex-direction: row;
    height: 40px;
    margin: 0px; margin-top: 8px;
    align-items: center;
    width: auto;
    margin-left: auto;
    float: right;
}

.toolbarCombo {
    font-family: "Calibri", Sans-Serif;
    font-size: 90%;
    background-color: transparent;
    color: white;    
    border-width: 1px; border-color: gainsboro; 
    border-radius: 5px; 
    text-align: left;    
    vertical-align: middle;    
    height: 30px;
    margin: 14px 0 0 0;
    padding-left: 3px; padding-top: 0;
    cursor: pointer;
}
.toolbarCombo select { background-color: #f0f0f0; color: #333; cursor: pointer;}    /* Dropdown list background and font color*/
.toolbarCombo option { background-color: #ffffff; color: #000000; cursor: pointer;}  /* Dropdown elements background and font color*/



/*      SIGN IN     */
.signinFormContainer {
    width: 100%;
    max-width: 360px;
    margin: 30px auto;
}
.signinTitle {
    color: #1c2c4b;
    font-family: 'Inter', sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 38px;
    margin-bottom: 12px;
}
.signinLabel {
    display: block;
    color:  #344054;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    margin-bottom: 20px;
}
.signinInput {
    display: block;
    padding: 10px 14px;
    margin-top: 6px;
    font-family: 'Inter', sans-serif;
    color: #667085;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    border-radius: 8px;
    border: 1px solid #D0D5DD;
    background: #FFFFFF;
    box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
    width: 100%;
    max-width: 360px;
}
.signinBtnClass {
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid #3575E2;
    background: #3575E2;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    width: 100%;
    max-width: 360px;
    margin-top: 25px;
    transition: all ease-in 0.4s;
}
.signinBtnClass:hover {
    transition: all ease-in 0.4s;
    background: #FFFFFF;
    color: #3575E2;
}
.rememberForgotContainer {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
}

/*  COMPET TAB   */
.competPanelGrid {
    display: grid;
    height: 100%;
    width: 100%;
    grid-template-columns: 1fr 1fr 1fr 1fr;  /* 4 equal fractions */
    grid-template-rows: repeat(2, auto);    
    grid-gap: 10px;                      /*grid-column-gap: 20px; grid-row-gap: 20px; /* gaps between col and row elements*/    
    grid-template-areas:
        "a b c d"
        "e f g h";
    align-content: start;
    justify-content: space-around;
    margin: 0; padding: 0;
}
#competPanel0 {grid-area: a;}
#competPanel1 {grid-area: b;}
#competPanel2 {grid-area: c;}
#competPanel3 {grid-area: d;}
#competPanel4 {grid-area: e;}
#competPanel5 {grid-area: f;}
#competPanel6 {grid-area: g;}
#competPanel7 {grid-area: h;}

.reachPanelGrid {
    display: grid;
    height: 100%;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(1, auto);    
    grid-gap: 10px;
    grid-template-areas:
      "a b";
    align-content: start;
    justify-content: space-around;
    margin: 0; padding: 0;
}
#reachTable {grid-area: a;}
#reachChart {grid-area: b;}

/*  COMPETE TABLES  (!!!!!!!!!!!!!!!!)  */
.rowHeadHScrlCell {
    background-color: whitesmoke; font-weight: 600;
    position: relative;
    /* min-width: 127px; */
    margin-left: -2px;
    /*padding-left: 4px;*/
    /* left: 0; */
    /* top: auto;
    border-top-width: 1px;
    /*only relevant for first row*/
    /* margin-top: -1px; */ 
    /*compensate for top border*/
}
.rowHeadHScrlCell {
    position: sticky;
    left: 0;
    background-color: white;
    z-index: 1;
}
.innerDiv {
    background-color: transparent;
    width: 100%;
    overflow-x: auto;
    margin-left: 5px;    
    padding-left: -5px;
    margin-right: 15px;
    overflow-y: visible;   
}
/*#innDiv::-webkit-scrollbar-track {background-color: whitesmoke;}*/
#distributionTable {
    table-layout: fixed;
    border-collapse: collapse;
    width: auto; /* Adjust table width as needed */
}

.disabledCell {
    background-color: transparent;
    border: none;
    font-weight: 600;
    min-width: 125px;
    font-family: "Calibri", Sans-Serif;
    font-size: 100%;
}

/*  TABLES   */
caption, .distrHeaderP {font-size: 120%; font-weight: bold; text-align: left; margin-left: 5px; margin-bottom: 8px; background-color: transparent;}
.distrHeaderP{margin-top: 0;}
.table, .panelTable {
    border-collapse: collapse;
    width: 100%;
    overflow: auto; 
    table-layout: fixed;
    padding: 0;
}
th {
    text-align: left;
    vertical-align: middle;
    align-items: center;    
    padding: 5px;
    /* background-color: transparent; */
    border-bottom: 2px solid lightslategrey;
    border-bottom: 3px solid gainsboro;

    position: sticky;
    top: 0;
    background: white;
    z-index: 2; /* Ensure header is above other cells */
}
tfoot {font-weight: bold; padding: 5px; margin-bottom: 10px;}
td {height: 24px; padding: 3px 5px 3px 5px; vertical-align: middle;}
tr:nth-child(odd) {background-color: white;}
tr:nth-child(even) {background-color: white;}

.textCell, .numCell, .numCellBottomBold, .calendarCell, .comboCell, .timeCell {border: 1px solid gainsboro; background-color: transparent; padding-left: 5px;}
.numCell {text-align: center;}
.calendarCell, .timeCell{padding: 0px; height: 24px;}
.comboCell {padding: 0;}
.numCellBottomBold {text-align: center; border-bottom: 3px solid silver;}
#dealTable.th{width: 16%;}
.channelColHeader{width: calc(16% - 60px);}
.buttonColHeader{width: 60px; border-left: none; padding: 5px;}

.fixedCell {
    height: 24px; padding: 3px 5px 3px 5px; vertical-align: middle; border: 1px solid gainsboro;
    position: sticky;
    left: 0;
    background: white;
    z-index: 1;
}

.fixedCell:nth-child(2) {
    left: 100px; /* Adjust according to the width of the first fixed column */
}

.table tr:hover {background-color: Gainsboro;}  /* Highlight row while hover*/
.table tr:hover td select {background-color: transparent;} /* Take off the combocell's own background color so that it was highlighted with row color too */
.table tr:hover .sticky-cell {background-color: Gainsboro;} /* Apply highlighting to sticky cells with set back-color*/
.table tr:hover .textCell {background-color: Gainsboro !important;} /* Apply highlighting to sticky cells with set back-color in ActualReach table Use !important to override inline or inherited styles */
/* .table tr:focus-within {background-color: Gainsboro;} */

/* Disable hover styles for specific tables */
.table.no-hover-highlight tr:hover {background-color: transparent !important;} /* Cancel row hover background */
.table.no-hover-highlight tr:hover td select {background-color: inherit !important;} /* Revert combobox background */
.table.no-hover-highlight tr:hover .sticky-cell, .table.no-hover-highlight tr:hover .textCell {background-color: inherit !important;} /* Revert sticky or textCell background */


.calendar{
    font-family: "Calibri", Sans-Serif;
    font-size: 100%;
    margin: 0px;
    border: none; background-color: transparent;
    width: 100%;
    height: 100%;
    padding-left: 5px;
}
::-webkit-calendar-picker-indicator {filter: invert(75%);} /* Change calendar icon color (50% - gray ... 100% - white) */

input[type="radio"] {
    zoom: 1.2; align-items: center;
    font-family: "Calibri", Sans-Serif;
    font-size: 100%;
    margin:-3px 4px 0 0;
    vertical-align: middle;
}
input[type="checkbox"] {
    zoom: 1.2; align-items: center;
    font-family: "Calibri", Sans-Serif;
    font-size: 100%;
    margin:-3px 4px 0 0;
    vertical-align: middle;
}

.cellBtn, .deleteCellBtn {
    border: none;
    float: right; /* Shift button to right of the cell*/
    border-radius: 10px;
    width: 50px;
    height: 20px;
    color: white;
}
.cellBtn{background-color: #3575E2;}
.cellBtn:hover{background-color: #6d6dfc; transition: 0.2s;} /*To make color change not too sharp*/
.cellBtn:active {background-color:darkblue;} /*Button color while pressing*/

.deleteCellBtn{background: #FB023B; color: white;}
.deleteCellBtn:hover{background-color: #FC6D8E; transition: 0.2s;}
.deleteCellBtn:active {background-color: #AD032A;}

.headerCombo { /*Header ComboBox Cell*/
    font-family: "Calibri", Sans-Serif;
    font-size: 100%;
    font-weight: bold;
    border: none;    
    text-align: center;
    vertical-align: middle;
    background-color: transparent;
    height: 100%; width: 100%; /*Spread combo over the entire cell*/
    padding: 5px; 
}
.cellCombo {    /*Default ComboBox Cell*/
    font-family: "Calibri", Sans-Serif;
    font-size: 100%;
    border: none;    
    vertical-align: middle;
    width: 100%; height: 100%; /*Spread combo over the entire cell*/
}

.colorPickerButton {
    font-family: "Calibri", Sans-Serif;
    font-size: 100%;
    border: none;    
    border-radius: 10px;
    vertical-align: middle;
    width: 92%; height: 92%;
}
.colorPickerButton {
    cursor: pointer; /* Switch to hand cursor on hover */
    transition: transform 0.3s ease-in-out; /* Add smooth animation */
}  
.colorPickerButton:hover {
    transform: scale(1.1); /* Slightly scale up the button on hover */
}
.color-picker-dialog {
    width: 300px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}  
.dialog-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}  
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30px, 1fr));
    gap: 10px;
    width: 100%;
}  
.color-swatch {
    width: 30px;
    height: 30px;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}  
.color-swatch:hover {
    transform: scale(1.1);
    border-color: #777;
}  
.auto-button {
    font-family: "Calibri", Sans-Serif;
    font-size: 100%;
    padding: 5px 10px;
    height: 30px; width: 60px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.2s;
}  
.auto-button:hover { background-color: #eaeaea; }
  
  
  

  



  


.cellTime {
    font-family: "Calibri", Sans-Serif;
    font-size: 100%;
    border: none;    
    vertical-align: middle;
    width: 100%; height: 100%; /*Spread combo over the entire cell*/
}
.combo {
    width: 180px;
    height: 30px;
    border: 1px solid silver;
    background-color: transparent;
    margin: 10px 20px 10px 10px; /* Top - Right - Bottom - Left*/ 
    color: black;    
}

.buttonCellContainer {  /* Cell with built-in button*/
    display: flex; /* Make the container a flex container */
    flex-direction: row; /* Arrange items in a row */
    align-items: center; /* Center items vertically */
}

dialog {
    font-family: "Calibri", Sans-Serif;
    font-size: 95%;
    width: 400px;
    padding: 20px 20px 10px 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    position: fixed;
    /* top: -30%;    */
}

.okButton, .cancelButton{
    width: 110px;
    border: none;
    border-radius: 5px;
    height: 32px;
    margin: 12px 0px 10px 5px;
    cursor: pointer;
    color: white;
    float: right;
    display: inline;
    background-color: #3164bd;
}
.okButton:disabled, .cancelButton:disabled {pointer-events: none; opacity: 0.5; }
.okButton:hover{background-color: #6d6dfc; transition: 0.2s;} /*To make color change not too sharp*/
.okButton:active {background-color:darkblue;} /*Button color while pressing*/

.cancelButton{background: #FB023B; }
.cancelButton:hover{background-color: #FC6D8E; transition: 0.2s;}
.cancelButton:active {background-color: #AD032A;}

.iconButton {    
    width: 40px; height: 40px;
    border: none; border-radius: 5px;    
    margin: 10px 2px 5px 2px;
    padding-left: 8px;
    background-color: transparent;    
    float: right; display: inline;
    vertical-align: middle; text-align: center;
    cursor: pointer;

    color: white; /* For the case button contains text */
    font-family: "Calibri", Sans-Serif;
    font-size: 100%;
    font-weight: 400;
    border: 1px solid rgb(53, 56, 202);    
}

.iconButton:hover {background-color: rgb(82, 84, 201); transition: 0.2s;}
.iconButton:active {background-color:rgb(53, 56, 202);} /*Button color while pressing*/
.iconButton:disabled { pointer-events: none; opacity: 0.4; cursor: default; }
.buttonIcon { width: 22px; height: 22px; vertical-align: middle; }







/*  FOR MOBILE  */
@media (max-width: 1024) {

}