/*
 +-------------------------------------------------------------------------+
 | Copyright (C) 2004-2025 The Cacti Group                                 |
 |                                                                         |
 | This program is free software; you can redistribute it and/or           |
 | modify it under the terms of the GNU General Public License             |
 | as published by the Free Software Foundation; either version 2          |
 | of the License, or (at your option) any later version.                  |
 |                                                                         |
 | This program is distributed in the hope that it will be useful,         |
 | but WITHOUT ANY WARRANTY; without even the implied warranty of          |
 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           |
 | GNU General Public License for more details.                            |
 +-------------------------------------------------------------------------+
 | Cacti: The Complete RRDtool-based Graphing Solution                     |
 +-------------------------------------------------------------------------+
 | This code is designed, written, and maintained by the Cacti Group. See  |
 | about.php and/or the AUTHORS file for specific developer information.   |
 +-------------------------------------------------------------------------+
 | http://www.cacti.net/                                                   |
 +-------------------------------------------------------------------------+
*/

#panel_container {
	list-style-type: none; /* remove bullets */
	display: grid;
	gap: 2px;
	padding: 0px;
}

.container_col_3 {
	grid-template-columns: repeat(3, 1fr);
}

.container_col_4 {
	grid-template-columns: repeat(4, 1fr);
}

.panel_1_1 { /* normal */
	grid-area: span 1/span 1;
}

.panel_1_2 { /* double width */
	grid-area: span 1/span 2;
}

.panel_2_1 { /* double height */
	grid-area: span 2/span 1;
}

.panel_3_1 { /* triple height */
	grid-area: span 3/span 1;
}

.panel_2_2 { /* double width and double height */
	grid-area: span 2/span 2;
}

.panel_3_2 { /* triple height and doubhle height */
	grid-area: span 3/span 2;
}

.grid_item {
	padding: 0;
	margin-right: 5px;
	margin-bottom: 5px;
	display: block;
	overflow-y: auto;
	overflow-x: hidden;
}

.panel_data {
	min-height: 180px;
}

.chart_wrapper {
	position: relative;
	margin: auto;
}

.chart_wrapper canvas {
	display: table-cell !important;
	vertical-align: middle;
}

.panel_wrapper {
	float: left;
	text-align: left;
	box-sizing: border-box;
	width: 100%;
}

.panel_header {
	padding: 4px;
	margin: 0px;
	font-weight: bold;
	height: 22px;
	width: 100%;
	cursor: move;
	display: inline-block;
	white-space: nowrap;
}

.panel_name {
	float:left;
}

.panel_actions {
	white-space: nowrap;
	float: right;
	text-align: right;
	margin-right: 5px;
}

.header_link {
	float: right;
	padding-left: 1px !important;
	padding-right: 1px !important;
}

#overlay {
	display: none;
	scroll: auto;
}

#overlay_detail {
	text-align: left;
	overflow: auto;
}

#detail_in {
    overflow: auto;
    height: 100%;
}

.txt_med {
	font-size: 1.3em;
}

.txt_big {
	font-size: 1.7em;
}

.txt_huge {
	font-size: 4.0em;
}

.rpad {
	padding-right: 1em !important;
}

.texalirig {
	text-align: right;
}

.cactiTable .panel_data span {
	line-height: initial;
}

.color_red {
	background: rgba(255,255,255,1) !important;
	background: -moz-linear-gradient(top, rgba(221,20,20,1) 0%, rgba(221,20,20,1) 100%) !important;
	background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(221,20,20,1)), color-stop(100%, rgba(221,20,20,1))) !important;
	background: -webkit-linear-gradient(top, rgba(221,20,20,1) 0%, rgba(221,20,20,1) 100%) !important;
	background: -o-linear-gradient(top, rgba(221,20,20,1) 0%, rgba(221,20,20,1) 100%) !important;
	background: -ms-linear-gradient(top, rgba(221,20,20,1) 0%, rgba(221,20,20,1) 100%) !important;
}

.color_red_bubble {
	color: rgba(221,20,20,1);
}

.color_yellow {
	background-color: #dddd00;
	background: rgba(255,255,255,1);
	background: -moz-linear-gradient(top, rgba(230,230,0,1) 0%, rgba(230,200,0,1) 100%) !important;
	background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(230,230,0,1)), color-stop(100%, rgba(230,230,0,1))) !important;
	background: -webkit-linear-gradient(top, rgba(230,230,0,1) 0%, rgba(230,230,0,1) 100%) !important;
	background: -o-linear-gradient(top, rgba(230,230,0,1) 0%, rgba(230,230,0,1) 100%) !important;
	background: -ms-linear-gradient(top, rgba(230,230,0,1) 0%, rgba(230,230,0,1) 100%) !important;
}

.color_yellow_bubble {
	color: rgba(230,230,0,1);
}

.color_green {
	background-color: #457915;
	background: rgba(255,255,255,1);
	background: -moz-linear-gradient(top, rgba(69,121,0,1) 0%, rgba(69,121,21,1) 100%) !important;
	background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(69,121,21,1)), color-stop(100%, rgba(69,121,21,1))) !important;
	background: -webkit-linear-gradient(top, rgba(69,121,21,1) 0%, rgba(69,121,21,1) 100%) !important;
	background: -o-linear-gradient(top, rgba(69,121,21,1) 0%, rgba(69,121,21,1) 100%) !important;
	background: -ms-linear-gradient(top, rgba(69,121,21,1) 0%, rgba(69,121,21,1) 100%) !important;
}

.color_green_bubble {
	color: rgba(69,121,0,1);
}

.color_grey {
	background-color: #9c9c9c;
	background: rgba(255,255,255,1);
	background: -moz-linear-gradient(top, rgba(156,156,156,1) 0%, rgba(156,156,156,1) 100%) !important;
	background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(156,156,156,1)), color-stop(100%, rgba(156,156,156,1))) !important;
	background: -webkit-linear-gradient(top, rgba(156,156,156,1) 0%, rgba(156,156,156,1) 100%) !important;
	background: -o-linear-gradient(top, rgba(156,156,156,1) 0%, rgba(156,156,156,1) 100%) !important;
	background: -ms-linear-gradient(top, rgba(156,156,156,1) 0%, rgba(156,156,156,1) 100%) !important;
}

.color_grey_bubble {
	color: rgba(156,156,156,1);
}

.color_grey, .color_grey i {
	color: black !important;
}

.color_yellow, .color_yellow i {
	color: black !important;
}

.color_red, .color_red i {
	color: white !important;
}

.color_green, .color_green i {
	color: snow !important;
}

.rpad {
	padding-right: 20px;
}

.red {
	color: red;
}

.fa {
	padding-right: 3px;
}

#block {
    width: 14px;
    height: 14px;
    float: right;
}

.db_href {
	padding: 3px 5px;
	background-color: rgba(128,128,128,0.5);
	margin-right: 5px;
}

.db_href_active {
	font-weight: bold;
}

.float_left {
	float: left;
}

.float_right {
	width: 80%;
	float: right;
	text-align: right;
}

.quarter-panel {
	min-width: 340px;
	width: calc(25% - 1em);
}

.third-panel {
	min-width: 460px;
	width: calc(33% - 1em);
}

.half-panel {
	min-width: 580px;
	width: calc(50% - 1em);
}

// Tablets in Portrait mode
@media screen and (max-width: 640px) {
	.quarter-panel {
		min-width: calc(50% - 1em);
		width: calc(50% - 1em);
	}

	.third-panel {
		min-width: calc(75% - 1em);
		width: calc(75% - 1em);
	}

	.half-panel {
		min-width: calc(100% - 1em);
		width: calc(100% - 1em);
		overflow-x: auto;
	}
}

// iPhone and other devices
// in Portrait mode
@media screen and (max-width: 420px) {
	.quarter-panel {
		min-width: calc(100% - 1em);
		width: calc(100% - 1em);
	}

	.third-panel {
		min-width: calc(100% - 1em);
		width: calc(100% - 1em);
	}

	.half-panel {
		min-width: calc(100% - 1em);
		width: calc(100% - 1em);
	}
}

.panel_data h4 {
	margin: 2px 0px;
}

.inpa_loglines {
	overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

.inpa_fixed {
	table-layout: fixed;
}


.inpa_first {
	width: 70%;
}

.inpa_sq {
	aspect-ratio: 1/1;
	width: 1em;
	display: inline-block;
	margin: 0 3px;
}

.w60 {
	width: 60%;
}

.href_disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.6;
}

.bus_graph {
	cursor: pointer;
}
