/* Theme meta data */
.b-theme-info {
    --b-theme-name             : "TimO Bryntum Theme";
    --b-theme-filename         : "timo-bryntum-theme.css";
    --b-theme-button-rendition : "outlined";
    --b-theme-label-position   : "align-before";
    --b-theme-overlap-label    : "false";
}

/* Themes need more specific rules than Widgets etc. to make sure the values are applied no matter the import order */
:root:not(.b-nothing), :host(:not(.b-nothing)) {
	/* Primary and Secondary Color */
    --b-primary: #35baf6;
    --b-secondary: #04689b;    
    --b-widget-color-scheme: light;
    
    /* Grid Settings */
    --b-grid-row-height: 28px;    
    --b-grid-header-font-weight: 700;
    --b-grid-header-color: #404040;    
    
    /* Popup Settings */
    --b-popup-border-radius: 1em;
    --b-popup-background: #ffffff;
    --b-popup-padding: 0px;
    
    /* Toolbar Settings */
    --b-toolbar-gap: 5px;
    
    /* Toolbar Title Text Settings */
    --b-toolbar-title-text-color: #404040;
    --b-toolbar-title-font-size: 12px;
    --b-toolbar-title-font-weight: 700;
    
    /* Tooltip Settings */
    --b-tooltip-plain-padding: 10px;
    --b-tooltip-align-items: left;
    
    /* Button Settings */
    --b-button-height: 32px;        
    --b-button-elevated-pressed-hover-background: var(--b-primary);
    --b-button-filled-pressed-hover-background: var(--b-primary);
    --b-button-outlined-pressed-hover-background: var(--b-primary);
    --b-button-type-text-pressed-hover-background: var(--b-primary);
    
}

/* Shades of primary color have to be specified per widget, for color-mix to work as intended */
.b-bryntum:not(.b-nothing) {    
    /* Panel Settings */
    --b-panel-header-color: #ffffff; /* Panel Header Text Color */
    --b-panel-header-background: var(--b-primary); /* Panel Header Background Color */ 
    --b-panel-with-header-top-toolbar-background: #ffffff; /* Panel Top Toolbar Background Color */
    
    /* Background Color from Selected Grid Cells */
    --b-grid-cell-selected-background: #ffefbb;  
    
    /* Button Settings */
    --b-button-elevated-hover-background: #c0cad2;
    --b-button-filled-hover-background: #c0cad2;
    --b-button-outlined-hover-background: #c0cad2;
    --b-button-type-text-hover-background: #c0cad2;    
                   
}

/* Panel Header Background and Text Color */
.b-panel-header {
   background: var(--b-primary) !important;
   color: var(--b-popup-background) !important;
}

/* Grid Row Height  */
.b-grid-sub-grid .b-grid-row {
   height: var(--b-grid-row-height) !important;
}
.b-grid-row {
   height: var(--b-grid-row-height) !important;
}

/* Grid Header Font Weight  */
.b-grid-header-text-content {
   font-weight: var(--b-grid-header-font-weight) !important;
}

/* Message Dialog margin before Message Text */
.b-message-dialog .b-message-dialog-message {
    margin-top: 10px;
}
