:root {
	--primary: #004c9a;

	--header_height: 0px;
	--nav_width: 60px;
	--nav_width_minus: -60px;
	
	--sidebar_width: 500px;

	--grey_light: #efefef;
	--grey_lighter: #fafafa;
	--grey_lightest: #fcfcfc;
}

/* @font-face { font-family: Arial; src: url('/res/font/Gordita-Regular.otf'); } */



/* PRELOADING */
#preloading { position: fixed; z-index: 1000; left: 0; top: 0; width: 100vw; height: 100vh; background: #fff url('/res/img/favicon.png?v=ccc') no-repeat center center;  }



/* LOADING */
#loading { position: fixed; z-index: 100; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0; transition: opacity 300ms; pointer-events: none; }
#loading.act { opacity: 1; transition-delay: 250ms; }
#loading img { width: 100px;}



/* OVERALL */
html, body { min-height: calc(100vh - var(--header_height)); }
body { font-family: Arial; font-size: 14px; height: 100%; margin: 0; padding: 0; color: #333; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
body.popup { overflow: hidden; }

h1, h2 { line-height: 1; border-bottom: 1px solid var(--grey_light); }
h1 { font-size: 24px; margin: 0; padding-bottom: 20px; }
h2 { font-size: 20px; margin-top: 50px; padding-bottom: 20px; }

dfn { font-style: normal; border-bottom: 1px dotted #000; }


#app { font-family: Arial; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-align: center; }




/* SIDEBAR */
aside { background-color: #fafafa; position: fixed; z-index: 2; left: 0; transition: left 200ms; top: 0; width: var(--nav_width); height: calc(100vh - var(--header_height)); padding: 10px; text-align: left; font-size: 16px; border-right: 1px solid #efefef; top: var(--header_height); box-shadow: 0 0 5px rgba(0,0,0,.1); display: flex; flex-direction: column; justify-content: space-between; }
aside:not(.act) { left: var(--nav_width_minus); }

aside nav ul { list-style: none; padding: 0; margin-left: 0; }
aside nav li { padding-bottom: 5px; border-bottom: 1px solid #efefef; margin-bottom: 5px; }
aside nav li a { text-decoration: none; display: list-item; padding: 8px 5px; }
aside nav li:last-of-type { border: none; margin-bottom: 0; }


/* RIGHT SIDEBAR */
#sidebar { border-left: 1px solid var(--grey_light); position: fixed; right: 0; top: 0; width: var(--sidebar_width); height: 100vh; padding: 20px; }
#sidebar header { border-bottom: 1px solid var(--grey_light); margin: -20px -20px 0; padding: 0 20px; height: 85px; line-height: 85px; text-align: center; }
#sidebar header button { line-height: 1; border-bottom: 2px solid transparent; background-color: transparent; border-radius: 0; color: #000; margin: 0 20px; }
#sidebar header button.act { border-color: var(--primary); }

#sidebar .searchbox { margin: 11px 0 20px; }
#sidebar .searchbox input { width: 100%; }



/* .content { transition: width 200ms; width: 100%; } */
.content.with_sidebar { width: calc(100% - var(--sidebar_width)); }

.tasks_and_logs { height: calc(100vh - 160px); overflow-y: auto; overflow-x: hidden; }

#sidebar table { font-size: 13px; line-height: 150%; }
#sidebar thead tr { border-bottom: 1px solid #e5e5e5; }
#sidebar tbody tr:nth-of-type(even) {  background-color: #fcfcfc; }
#sidebar table th, #sidebar table td { padding: 8px 5px; word-wrap: break-word; }
#sidebar tbody .d1 { color: grey; display: block; font-size: 12px; }
#sidebar tbody .d2 { color: lightgrey; font-size: 12px; }
#sidebar tbody tr:hover { background-color: var(--grey_lighter); color: #000; }
#sidebar tbody tr:hover span { color: #000; }



/* MSG */
#msg { position: fixed; z-index: 10; left: 0; bottom: 0; padding: 10px 5px; text-align: center; color: #fff; background-color: var(--green); width: 100%; }
#msg.info { background-color: var(--blue); }
#msg.warning { background-color: var(--orange); }
#msg.error { background-color: #e00; }




/* MAIN */
main { margin-top: var(--header_height); padding: 40px; transition: margin-left 200ms; line-height: 170%; text-align: left; }
#app.sidebar:not(.mobile) main { margin-left: var(--nav_width); }








/* FORMS */
input, select, textarea, button { height: 30px; line-height: 30px; padding: 0 8px; border: 1px solid #e5e5e5; border-radius: 2px; font-size: 14px; }
select { padding: 0 4px; }
button { background-color: var(--primary); color: #fff; border: none; user-select: none; }
button.grey { background-color: grey; }
button.ico { background: transparent no-repeat center center / contain; }
button.ico.search { background-image: url('/res/img/ico_search.svg'); background-size: 15px; width: 30px; }
button.ico.search:hover { border: none !important; }

dl { display: grid; grid-template-columns: 200px 1fr; }
dd input, dd select, dd textarea { width: 100%; }
textarea { height: 100px; line-height: 160%; padding-top: 4px; padding-bottom: 4px; }






/* MODAL / POPUP */
.modal { position: fixed; z-index: 10; left: 25px; top: 25px; width: calc(100% - 50px); height: calc(100% - 50px); background-color: #fff; padding: 30px; box-shadow: 1px 1px 10px rgba(0,0,0,.2); overflow-y: auto; }

.modal_header { position: relative; background-color: var(--grey_lighter); position: -webkit-sticky; position: sticky; left: -30px; top: -30px; margin: -30px -30px 30px; z-index: 1; height: 60px; line-height: 60px; padding: 0 30px; }
.modal_header h2 { text-align: left; margin: 0; padding: 0; border-bottom: none; line-height: 60px; }
.modal_header button { font-size: 20px; position: absolute; display: block; height: 36px; padding: 0; top: 12px; right: 30px; color: #555; background: #f1f1f1; padding: 5px 10px; text-transform: uppercase; font-size: 16px; }

.modal button:disabled { background-color: #333; }



/* TOOLBAR */
.toolbar { background-color: var(--grey_lighter); border: 1px solid var(--grey_light); border-width: 1px 0; padding: 10px 40px; margin: -1px -40px 30px; }
.toolbar button { background-color: var(--grey_light); color: #333; }
.toolbar button:not([disabled]):hover { color: #000; border-bottom: 1px solid #ccc; }
.toolbar button:not([disabled]):active { background-color: #e6e6e6; }
.toolbar input, select, button { font-size: 13px; }
.toolbar button[disabled] { color: #666; }

.toolbar div.dropdown { position: relative; display: inline-block; }
.toolbar div.dropdown ul { position: absolute; list-style: none; margin: 0; padding: 3px 0 0; left: 0; display: none; }
.toolbar div.dropdown:hover ul { display: block; }
.toolbar div.dropdown li { border-top: 1px solid #fff; }
.toolbar div.dropdown li button { text-align: left; width: 100%; }






/* pseudo TABLE */
.table .row { display: grid; border-bottom: 1px solid var(--grey_light); padding: 10px 0; grid-gap: 10px; }
.table .row.thead { border-color: #ddd; }
.table .row.thead a { color: #000; text-decoration: none; }
.table .row div { display: flex; justify-content: center; align-items: flex-start; flex-direction: column; height: 100%; }
.table button { font-size: 12px; }
.table .row:not(.thead):hover { background-color: var(--grey_lighter); }

.table-user .row { grid-template-columns: 50px 1fr 1fr 1fr; }
.table-terminal .row { grid-template-columns: 20px 10px 1fr 1fr 1fr 100px; }
.table-library .row { grid-template-columns: 20px 100px 1fr 1fr 1fr 100px; }
.table-report .row { grid-template-columns: 1fr 150px 200px; }
.table-studio .row { grid-template-columns: 20px 1fr 1fr 100px 100px; }

.table-terminal .row .state span { background-color: #f4f4f4; display: inline-block; width: 60%; height: 80%; }
.table-terminal .row .state-ok span, .state-ok { background-color: #87C121; }
.table-terminal .row .state-lost span, .state-lost { background-color: #2C2C2C; }
.table-terminal .row .state-offline span, .state-offline { background-color: #787878; }
.table-terminal .row .state-monitor_error span, .state-monitor_error { background-color: #F50707; }
.table-terminal .row .state-not_playing span, .state-not_playing { background-color: #DAB995; }
.table-terminal .row .state-invalid_config span, .state-invalid_config { background-color: #b63a14; }
.table-terminal .row .state-cert_error span, .state-cert_error { background-color: #b409a6; }


.table-library .row .th span { background: #efefef no-repeat center center / cover; display: block; width: 100px; height: 56px; }
.table-library .row .th span img.drag { background: rgba(255, 255, 255, .5); width: 22px; margin: 5px 0 0 5px; padding: 2px; border-radius: 50%; cursor: grab; }



/* LIBRARY */
#only_idle_warning { background-color: #FFFAE5; padding: 5px 10px; min-height: 40px; margin-bottom: 30px; display: grid; grid-template-columns: 1fr 150px; }





/* TRANSITIONS */
.fade-enter-active, .fade-leave-active { transition: opacity .3s; }
.fade-enter, .fade-leave-to { opacity: 0; }

.slide_up-enter-active, .slide_up-leave-active { transition: margin .3s; }
.slide_up-enter, .slide_up-leave-to { margin-bottom: -70px; }




/* VENDORS */
/* .v-lazy-image { opacity: 0.1; transition: opacity 1s; } */
/* .v-lazy-image-loaded { opacity: 1; } */