
@import url(ubuntu/font.css);

:root {
  --blue: #3490dc;
  --indigo: #6574cd;
  --purple: #9561e2;
  --pink: #f66d9b;
  --red: #e3342f;
  --orange: #f6993f;
  --yellow: #ffed4a;
  --green: #38c172;
  --teal: #4dc0b5;
  --cyan: #6cb2eb;
  --white: #fff;
  --gray: #6c757d;
  --gray-dark: #343a40;
  --primary: #3490dc;
  --secondary: #6c757d;
  --success: #38c172;
  --info: #6cb2eb;
  --warning: #ffed4a;
  --danger: #e3342f;
  --light: #f8f9fa;
  --dark: #343a40;
  --content-background: #f8fafc;
  --content-textcolor: #212529;
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --font-family-sans-serif: "Ubuntu", sans-serif;
  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --input-width: 16rem;
}

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

html {
    font-family: "Ubuntu", sans-serif;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    height: 100%;
}

body {
    margin: 0;
    font-family: "Ubuntu", sans-serif;
    font-size: rem;
    font-weight: normal;
    line-height: 1.6;
    color: var(--content-textcolor);
    text-align: left;
    background-color: var(--content-background);
    display: flex;
    flex-direction: column;
    height: 100%;
}

a, a:visited{
    color: #01f;
    text-decoration: none;
}
a:active, a:hover{
    color: #04f;
    text-decoration: underline;
}

textarea,
select,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"],
input[type="file"],
.uneditable-input {
  font-size: 1rem;
  color: black;
  padding: 4px 6px;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  height: 2.5rem;
  padding: 0.375rem 0.75rem;
  width: var(--input-width);
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
     -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
          box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  -webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
     -moz-transition: border linear 0.2s, box-shadow linear 0.2s;
       -o-transition: border linear 0.2s, box-shadow linear 0.2s;
          transition: border linear 0.2s, box-shadow linear 0.2s;
}

textarea:focus,
select:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="week"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="color"]:focus,
input[type="file"]:focus,
.uneditable-input:focus {
  border-color: rgba(82, 168, 236, 0.8);
  outline: 0;
  outline: thin dotted \9;
  /* IE6-9 */

  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
     -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
          box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
}

textarea:disabled,
select:disabled,
input[type="text"]:disabled,
input[type="password"]:disabled,
input[type="datetime"]:disabled,
input[type="datetime-local"]:disabled,
input[type="date"]:disabled,
input[type="month"]:disabled,
input[type="time"]:disabled,
input[type="week"]:disabled,
input[type="number"]:disabled,
input[type="email"]:disabled,
input[type="url"]:disabled,
input[type="search"]:disabled,
input[type="tel"]:disabled,
input[type="color"]:disabled,
input[type="file"]:disabled,
.uneditable-input:disabled{
    background-color: #fff0;
    color: grey;
}

textarea:read-only,
input[type="text"]:read-only,
input[type="password"]:read-only,
input[type="datetime"]:read-only,
input[type="datetime-local"]:read-only,
input[type="date"]:read-only,
input[type="month"]:read-only,
input[type="time"]:read-only,
input[type="week"]:read-only,
input[type="number"]:read-only,
input[type="email"]:read-only,
input[type="url"]:read-only,
input[type="search"]:read-only,
input[type="tel"]:read-only,
input[type="color"]:read-only,
input[type="file"]:read-only,
.uneditable-input:read-only{
    background-color: #ddd;
}

textarea{
    max-width: var(--input-width);
}


input[type="submit"],
input[type="button"],
button,
.btn {
    height: 2.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    border: 1px solid transparent;
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
    box-shadow: 1px 1px 2px #0004;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover,
.btn:hover{
    color: #fff;
    background-color: #5c636a;
    border-color: #565e64;
}

input[type="submit"]:disabled,
input[type="button"]:disabled,
button:disabled,
.btn:disabled{
    color: #ddd;
    background-color: #899;
    border-color: #788;
}

body .btn-warning{
    color: #fff;
    background-color: #f33;
    border-color: #e22;
}
body .btn-warning:hover{
    color: #fff;
    background-color: #e02020;
    border-color: #d01010;
}
body .btn-warning:disabled{
    color: #fffa;
    background-color: #e02020aa;
    border-color: #da1a1aaa;
}

body .btn-warning:active{
    color: #fff;
    background-color: #e02020;
    border-color: #d01010;
}

input[type='file']::file-selector-button{
    margin:0;
    margin-right: 0.375em;
    margin-left: -0.75em;
    margin-top: -0.375em;
    background-color: #0d6efd;
    color: #fff;
    border: none;
    height: 2.375em;
    padding: 0 1em;
    border-radius: 0.25rem;
  }

header{
    background: #fff;
    padding: 0.5rem 0;
    display:flex;
    position: sticky;
    top: 0;
    box-shadow: 0 0 0.1rem #0004;
}

footer{
    background: #000d;
    color: var(--blue);
    padding: 1rem;
    position: sticky;
    bottom:0;
}

@media(max-height: 32rem){
    header{
        position: unset;
    }
    footer{
        position: unset;
    }
}

header img{
    max-height: 2.5rem;
}
@media(max-width: 32rem){
    header img{
        max-height: 1.5rem;
    }
}
header nav {
    flex:1;
    display: flex;
    align-self: center;
    justify-content: flex-end;
}

header ul{
    list-style: none;
    margin: 0;
    padding: 0;
}

header ul li{
    display: inline-block;
    padding: 0 1rem;
}
@media(max-width: 32rem){
    header ul li{
        display: list-item;
    }
}

header nav a{
    text-decoration: none;
    color: #000;
}
header nav a:hover{
    color: #000;
    text-decoration: underline;
}
header nav a:visited{
    color: #000;
}

#PageContent{
    display: flex;
    flex:1;
    flex-direction: column;
    margin: 0 auto;
    width: 80rem;
    max-width: 100%;
    overflow: auto;
}
@media(max-height: 32rem){
    #PageContent{
        overflow: unset;
    }
}

.PageMiddle{
    place-content: center;
    flex:1;
}

.PageWidth{
    width: 80rem;
    max-width: 100%;
    margin:0 auto;
}

.ErrorMessage{
    color: red;
    padding: 0.2rem;
    border-radius: 0.2rem;
    border: 1px solid #f003;
}

.simple-form{
    display: flex;
    flex-direction: column;
    width: fit-content;
    gap: 0.5em;
}

.simple-form label{
    display: flex;
    justify-content: space-between;
    padding: 0;
    align-items: center;
}

.simple-form label input,
.simple-form label select,
.simple-form label textarea{
    margin-left: 0.5rem;
}

.simple-form label.vertical{
  flex-direction: column;
  align-items: flex-start;
}

.simple-form label.vertical input,
.simple-form label.vertical select,
.simple-form label.vertical textarea{
    margin-left: 0;
    width: 100%;
    max-width: 100%;
}

.simple-form input[type="submit"],
body .btn-primary {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}
.simple-form input[type="submit"]:hover,
body .btn-primary:hover {
    color: #fff;
    background-color: #0b5ed7;
    border-color: #0a58ca;
}
.simple-form input[type="submit"]:disabled,
body .btn-primary:disabled {
    color: #fff4;
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.simple-form.long{
    flex-direction: row;
    width: fit-content;
    flex-wrap: wrap;
    align-items: flex-end;
}

.simple-form.long label{
    flex-direction: column;
    align-items: flex-start;
    align-self: flex-end;
}

.simple-form.long label input,
.simple-form.long label select,
.simple-form.long label textarea{
    margin-left: 0rem;
}

radio-group{
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    width: var(--input-width);
}
radio-group.long{
    flex-direction: row;
    flex-wrap: wrap;
}

radio-group label,
.simple-form radio-group label{
    justify-content: flex-start;
}

@media(max-width: 32rem){
    .simple-form label{
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .simple-form label input{
        margin-left: unset;
    }
}

button-bar {
    display: flex;
    padding: 0.2rem 0;
    justify-content: flex-end;
    align-items: center;
    gap: 1em;
}

section,
.section {
  border: 1px solid var(--blue);
  padding: 0.5em;
  border-radius: 0.5em;
}

.success {
    padding: 0.2em;
    background-color: #7f7;
    border: 1px solid #4d4;
    border-radius: 0.3em;
    text-align: center;
}
.error {
    padding: 0.2em;
    background-color: #faa;
    border: 1px solid #e77;
    border-radius: 0.3em;
    text-align: center;
}

/* ----------------------------- preloader */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0,0,255,0.1);
  text-align: center;
  display: none;
  z-index: 100;
}
#preloader img {
  max-width: 100%;
  max-height: 100%;
  height: 10em;
  margin: auto;
}

/* ----------------------------- pulse */
@keyframes Pulse {
  0%   {opacity: 1;}
  50%  {opacity: 0.5;}
  100% {opacity: 1;}
}
.pulse{
  animation: Pulse 1s infinite;
}

/* ----------------------------- data-table */
.data-table{
  border-collapse: collapse;
}
.data-table th,
.data-table td{
  padding: 0.5em;
  border-right: 1px solid #ddd;
}
.data-table th{
  position: sticky;
  top: 0;
  background-color: #fff;
  color: #000;
  border-left: 1px solid #fff;
  border-bottom: 1px solid #000;
  z-index: 1;
}
.data-table tr:nth-child(even){
  background: #eee;
}
.data-table tr:nth-child(odd){
  background: #fff;
}

/* ----------------------------- data-page */
.data-page {
  display: inline-flex;
  gap: 0.2em;
  padding: 0.2em;
  margin: 0.2em;
  border-radius: 0.2em;
}

.data-page-item,
.data-page-current{
  border-radius: 0.2em;
  padding: 0.2em 0.2em;
  min-width: 2em;
  text-align: center;
}
.data-page-item{
  box-shadow: 1px 1px 3px #0007;
  cursor: pointer;
  background: #0d6efd;
  color: #fff;
}
.data-page-current{
  box-shadow: 1px 1px 3px #0007 inset;
  background: var(--secondary);
  color: #fff;
}
@media(max-width: 32rem){
  .data-page-item,
  .data-page-current{
    min-width: 1em;
  }
}

/* ----------------------------- waiting */
.spinner-outer{
  width: 7em;
  height: 7em;
  margin: auto;
  background: url(/images/spinner.svg) no-repeat;
  background-size: contain;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ----------------------------- line-title */

.line-title {
  display: flex;
  flex-direction: row;
  gap: 0.2em;
}

.line-title:before,
.line-title:after {
  content: " ";
  flex: 1 1;
  border-bottom: 1px solid var(--blue);
  margin: auto;
}

/* ----------------------------- Tabs */
.Tabs{
    flex: 1;
    overflow: auto;
    display: flex;
    gap: 0.5em;
}
.Tabs.TabsVertical{
    flex-direction: column;
}
.TabsContent{
    display: none;
    flex: 1;
    overflow: auto;
    flex-direction: column;
}
.TabsButton{
    padding: 0.2em 0.5em;
    cursor: pointer;
    color: #777;
    border-bottom: 2px solid #777;
}
.TabsButton.TabsSelected{
    border-bottom: 2px solid #00f;
    color: #00f;
}
.Tabs.TabsVertical .TabsButton{
    border-bottom: none;
}
.Tabs.TabsVertical .TabsButton.TabsSelected{
    border-left: 2px solid #00f;
}