/* MasterApp shared CSS template
   Use as a base stylesheet. Each theme can override the CSS variables below.
   Example:
     :root {
       --primary: #306DA8;
       --secondary: #3E5B6F;
       --text: #808080;
     }
*/

:root {
    --font-body: 'Open Sans', sans-serif;
    --font-heading: 'Open Sans Condensed', sans-serif;
    --primary: #306DA8;
    --primary-dark: #265786;
    --secondary: #3E5B6F;
    --text: #808080;
    --heading: var(--primary);
    --link: var(--secondary);
    --link-hover: #34495e;
    --link-active: var(--secondary);
    --link-focus: #5d6d7e;
    --button-text: #fefefe;
    --topbar-bg: var(--primary);
    --topbar-link: #fff;
    --topbar-hover: #ffff00;
    --topbar-active: #fff000;
    --shop-accent: #E91756;
    --success: #217a2b;
    --warning: #b85c00;
    --warning-soft: #f0be40;
    --danger: #FF0000;
    --muted: #666;
    --panel-bg: #f0f0f0;
    --panel-border: #bbb9b9;
    --search-border: #a8d4b1;
    --pagination-border: var(--primary);
    --calendar-border: #e5e5e5;
    --pwd-bg: #e5e7eb;
}

/* Base typography */
body {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p {
    color: var(--text);
    font-size: 1.3em;
}

p .red {
    color: var(--danger);
    font-size: 0.8em;
}

p .green {
    color: #00cc00;
    font-size: 0.8em;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: bold;
    color: var(--heading);
}

ul,
li {
    color: var(--text);
}

label {
    color: var(--heading);
    font-weight: bold;
}

ul.tiny,
li.tiny {
    color: var(--text);
    margin-left: 1.5em;
    font-size: 1.3em;
}

.small-font-table {
    font-size: 0.75rem;
}

.vertical a,
a {
    text-decoration: none;
    color: var(--link);
}

a:hover {
    color: var(--link-hover);
}

a:active {
    color: var(--link-active);
}

a:focus {
    color: var(--link-focus);
}

.fontsmall {
    font-size: 0.8em;
}

.data {
    width: 100px;
}

.button {
    background-color: var(--primary);
    color: var(--button-text);
}

.button:hover,
.button:focus {
    background-color: var(--primary-dark);
    color: var(--button-text);
}

.top-bar ul li {
    background: none repeat scroll 0 0 var(--primary);
}

.top-bar {
    background: none repeat scroll 0 0 var(--primary);
}

.top-bar a {
    color: var(--topbar-link);
}

.top-bar a:hover {
    color: var(--topbar-hover);
}

.top-bar a:active,
.top-bar a:focus {
    color: var(--topbar-active);
}

.top-bar .menu-text {
    color: var(--topbar-link);
}

/* Shared utility blocks */
#country-list {
    float: left;
    list-style: none;
    margin-top: -3px;
    padding: 0;
    width: auto;
    height: 20em;
    overflow-y: scroll;
    font-size: 0.8em;
    position: absolute;
}

#country-list li {
    padding: 10px;
    background: var(--panel-bg);
    border-bottom: var(--panel-border) 1px solid;
}

#country-list li:hover {
    background: #ece3d2;
    cursor: pointer;
}

#search-box {
    padding: 10px;
    border: var(--search-border) 1px solid;
    border-radius: 4px;
}

.suggestion-box {
    margin-left: auto;
    margin-right: auto;
    table-layout: fixed;
    border-collapse: collapse;
    z-index: -1;
    position: absolute;
}

.parent {
    position: relative;
}

#loader {
    border: 12px solid #f3f3f3;
    border-radius: 50%;
    border-top: 12px solid #444444;
    width: 70px;
    height: 70px;
    animation: spin 1s linear infinite;
}

/* Shop */
div.promoted {
    border: 1px dotted var(--primary);
    margin: 0;
    padding: 1.5em;
    text-align: left;
    float: left;
    font-size: 0.8em;
}

.basket {
    color: #fff;
    font-size: 1em;
    padding: 0.4em;
}

.discount {
    text-decoration: line-through;
}

.price {
    line-height: auto;
    vertical-align: bottom;
    color: var(--shop-accent);
}

.shopim {
    width: auto;
    height: 250px;
}

/* Billing */
.downloaded {
    color: var(--success);
    font-weight: 600;
}

.downloaded td {
    color: var(--success);
}

.notdownloaded {
    color: var(--warning);
    font-weight: 600;
}

.notdownloaded td {
    color: var(--warning);
}

.paidpartial {
    color: var(--warning-soft);
    font-size: 0.8em;
}

.paid {
    color: #00cc00;
    font-size: 0.8em;
}

.notpaid {
    color: var(--danger);
    font-size: 0.8em;
}

.canceled {
    color: var(--danger);
    font-size: 0.8em;
    text-decoration: line-through;
}

.loss {
    color: var(--danger);
}

.profit {
    color: #00cc00;
}

/* Pagination */
.orbit {
    z-index: -1000;
}

.smaller {
    font-size: 0.8em;
    color: var(--text);
}

div.paginate {
    width: 75rem;
    clear: both;
    padding: 2em 0 2em 0;
    margin: 0;
    text-align: left;
    float: left;
    font-size: 1.1em;
}

div.paginate a {
    padding: 2px 5px 2px 5px;
    margin-right: 2px;
    border: 1px solid var(--pagination-border);
    text-decoration: none;
    color: var(--pagination-border);
}

div.paginate a:hover,
div.paginate a:active {
    border: 1px solid var(--pagination-border);
    color: #fff;
    background-color: var(--pagination-border);
}

div.paginate a.current {
    padding: 2px 5px 2px 5px;
    margin-right: 2px;
    border: 1px solid var(--pagination-border);
    font-weight: bold;
    background-color: var(--pagination-border);
    color: #fff;
}

div.paginate span.disabled {
    padding: 2px 5px 2px 5px;
    margin-right: 2px;
    border: 1px solid #f3f3f3;
    color: #091346;
}

/* e-learning */
p.question {
    color: #1c1919;
    font-weight: bold;
    font-size: 1.5em;
}

p.wrong {
    color: #eca1a6;
    font-size: 1.2em;
}

p.correct {
    color: #b5e7a0;
    font-size: 1.2em;
}

/* Booking */
.muted {
    color: var(--muted);
}

#calendar {
    border: 1px solid var(--calendar-border);
    border-radius: 8px;
    padding: .5rem;
}

.calwarning,
.warning {
    color: #b45309;
    font-size: 12px;
    margin-top: 6px;
    display: none;
}

/* Password strength meter */
.pwd-strength {
    margin-top: 8px;
    max-width: 480px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.pwd-meter {
    height: 10px;
    background: var(--pwd-bg);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.pwd-bar {
    height: 100%;
    width: 0%;
    background: #ef4444;
    transition: width 160ms ease, background 160ms ease;
}

.pwd-label {
    margin: 6px 0 0;
    font-size: 0.95rem;
}

.pwd-hints {
    margin: 6px 0 0;
    padding-left: 18px;
    color: #475569;
    font-size: 0.9rem;
}

.pwd-very-weak .pwd-bar {
    background: #ef4444;
}

.pwd-weak .pwd-bar {
    background: #f59e0b;
}

.pwd-fair .pwd-bar {
    background: #fbbf24;
}

.pwd-strong .pwd-bar {
    background: #22c55e;
}

.pwd-excellent .pwd-bar {
    background: #16a34a;
}