/* ----------------------------------------------------- Fonts ------------------------------------------------------ */
@font-face {
    font-family: Polaris-Book;
    src: url('/static/fonts/Polaris-Book.woff');
}

@font-face {
    font-family: Polaris-Light;
    src: url('/static/fonts/Polaris-Light.woff');
}

@font-face {
    font-family: Polaris-Bold;
    src: url('/static/fonts/Polaris-Bold.woff');
}

@font-face {
    font-family: Polaris-Heavy;
    src: url('/static/fonts/Polaris-Heavy.woff');
}

@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: local('Material Icons'),
    local('MaterialIcons-Regular'),
    url(/static/fonts/MaterialIcons-Regular.ttf) format('truetype');
}

@font-face {
    font-family: 'Material Icons Outlined';
    font-style: normal;
    font-weight: 400;
    src: local('Material Icons'),
    local('MaterialIconsOutlined-Regular'),
    url(/static/fonts/MaterialIconsOutlined-Regular.otf) format('truetype');
}

/* ------------------------------------------------------ text ------------------------------------------------------ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Polaris-Light', sans-serif;
    font-style: normal;
    font-weight: normal;
}

b {
    font-family: 'Polaris-Bold', sans-serif;
    font-style: normal;
    font-weight: normal;
}

h1, h2, h3 {
    text-transform: uppercase;
}

h4 {
    margin: 0;
}

/* ----------------------------------------------------- icons ------------------------------------------------------ */

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px; /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;

    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;

    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;

    /* Support for IE. */
    font-feature-settings: 'liga';
}

.material-icons-outlined {
    font-family: 'Material Icons Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px; /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;

    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;

    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;

    /* Support for IE. */
    font-feature-settings: 'liga';
}

.small-icon {
    font-size: 1.4em;
}

/* TODO: FIX */
span.ui-icon {
    margin-right: .3em;
    margin-bottom: 3px;
    vertical-align: middle;
    display: inline-block;
}

/* ----------------------------------------------------- layout ----------------------------------------------------- */

html {
    background-color: #fff;
    font-family: 'Polaris-Book', sans-serif;
    font-style: normal;
    font-weight: normal;
    color: #000;
    font-size: 19px;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
}


div.main {
    float: none;
    margin-right: 20px;
    margin-left: 20px;
    border: none;
}

/* ------------------------------------------------------ menu ------------------------------------------------------ */
div.main-header {
    padding-top: 0.5em;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    margin-right: 20px;
    margin-left: 20px;
    border: none;
    position: relative;
    align-content: center;
}

.menu {
    font-family: 'Polaris-Bold', sans-serif;
    font-style: normal;
    font-weight: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 13px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: baseline;
    flex-wrap: wrap;
    line-height: 1.2em;
}
.menu > form {
    display: inline-block;
    position: absolute;
    top: 9px;
    right: 0;
}
.customer-and-search {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    align-content: flex-start;
}

.menu-content {
    flex: 1;
    display: flex;
    flex-direction: column-reverse;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
}
div.name {
    font-size: 16px;
}
@media (min-width: 1086px) {

    div.main-header {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        margin-right: 20px;
        margin-left: 20px;
    }

    .menu-content {
        flex-direction: column;
    }

    .menu {
        flex-direction: row;
    }

    div.menu > span:not(:first-child):before {
        content: "•";
        font-family: "Arial", sans-serif !important;
        font-size: 19px !important;
        color: #aedad8 !important;
        margin-left: 4px;
        margin-right: 4px;
    }

    .btn.logout {
        margin-left: 15px;
    }

    .customer-and-search {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-height: 46px;
    }
    .menu > form {
        display: inline-block;
        position: unset;
        top: unset;
        right: unset;
    }
    div.name {
        text-align: right;
        white-space: nowrap;
        font-size: unset;
    }

}

#header {
    margin-bottom: 20px;
}


.menu > span > a {
    white-space: nowrap;
}


div.search-container {
    margin-top: 5px;
    margin-bottom: 2px;
}

.search-container > form {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
}

.search-container > form > button {
    white-space: nowrap;
}

.search-container > form > input {
    flex: 1;
}

.search-container > form > input[type=text] {
    height: 30px;
    margin-bottom: 5px;
}

.news-added {
    font-size: inherit;
    color: #009999;
    margin-left: 4px;
}


div.name a {
    font-size: 1.2em;
}

#logo {
    margin-top: 0;
    margin-bottom: 12px;
    display: inline-block;
    margin-right: 16px;
}

#logo > a > img {
    max-width: 170px;
}

/* ----------------------------------------------------- basics ----------------------------------------------------- */

hr {
    border-top: 2px solid #009999;
}

.active {
    font-weight: bold;
}

div.main-block {
    margin-bottom: 40px;
    background: white;
    clear: left;
    padding-top: 10px;
}

.padded {
    padding: 10px;
}

.margin-space {
    margin-top: 40px;
}

.floated {
    float: left;
}

.shadow {
    /* For modern browsers */
    box-shadow: 3px 3px 4px #cbcbcb;

    /* Older Firefox */
    -moz-box-shadow: 3px 3px 4px #cbcbcb;
    /* Older Webkit */
    -webkit-box-shadow: 3px 3px 4px #cbcbcb;
    /* IE 8 */
    -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#cbcbcb')";
    /* IE 5.5 - 7 */
    filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#cbcbcb');
}

.corners {
    border-style: solid;
    border-width: 1px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
}

caption {
    border-bottom: 0;
    background: white;
    text-align: left;
    font-size: 1.1em;
    padding: 3px 0 3px 8px;
}

div.border {
    border: 1px solid #ddd;
    overflow-x: auto;
    word-wrap: break-word;
    padding-bottom: 1em;
}

.focus-license {
    background: none repeat scroll 0 0 #FFFFA0 !important;
}

.ui-tooltip {
    padding: 8px;
    position: absolute;
    z-index: 9999;
    max-width: 1100px;
    -webkit-box-shadow: 0 0 5px #aaa;
    border-width: 2px;
    border-radius: 2px;
    box-shadow: 0 0 5px #aaa;
}

.no-wrap {
    white-space: nowrap;
}

/* ----------------------------------------------------- forms ------------------------------------------------------ */

input[type='password'], input[type='text'], input[type='email'], input[type='number'], input[type='date'], select {
    border: 1px solid #ddd;
    height: 30px;
}

input:focus {
    border: 1px solid #009999 !important;
}

input:focus, textarea:focus, select:focus {
    outline: none;
}

input[type='password'], input[type='text'], input[type='email'], input[type='number'], input[type='date'] {
    border-radius: 2px;
}

/* ----------------------------------------------------- links ------------------------------------------------------ */

a {
    text-decoration: none;
    color: #4F4F4F;
    cursor: pointer;
}

a:hover {
    color: #009999;
    text-decoration: none;
}

a img {
    border: none;
}

/* ----------------------------------------------------- tables ----------------------------------------------------- */
table a {
    display: inline-block;
}

tr.link {
    cursor: pointer;
}

td.red-text {
    color: #CD0A0A;
}

th {
    text-align: left;
}

/* --------------------------------------------------- Data table --------------------------------------------------- */

.dt input, .dt select {
    font-size: 1em;
}

.dt tr.newly-created {
    border: 2px solid #009999;
}

.dt tbody tr.folddown {
    /* border: 2px solid #000; */
    border: 2px solid #009999;
}

.dt tr.summary {
    /* border-top: solid thin #000; */
    border: 2px solid #009999;
    background: white;
}

/* ----------------------------------------------------- lists ------------------------------------------------------ */
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

li {
    font-size: 0.7em;
}

li.odd {
    background-color: #f5f5f5;
}

li.even {
    background-color: #fff;
}

ul.date-listing > li {
    padding: 0.4em 10em 0.4em 0.4em;
}

ul.date-listing > li span {
    font-weight: bold;
    margin-left: 2em;
}

ul.date-listing {
    margin-left: 5em;
}

ul.date-listing a {
    color: #333;
}

ul.date-listing a:hover {
    color: #009999;
    text-decoration: none;
}

ul.help {
    margin-bottom: 1em;
    margin-left: 1em;
    list-style: none;
}

ul.help li:before {
    content: 'lightbulb';
    font-family: 'Material Icons Outlined';
}

ul.help li:hover:before {
    content: 'lightbulb';
    font-family: 'Material Icons';
}

ul.help li:hover {
    list-style: none;
}

ul.help > li {
    margin-left: 2em;
}

/* ---------------------------------------------------- buttons ----------------------------------------------------- */
.btn {
    font-family: 'Polaris-Book', sans-serif;
    background: white;

    border-image: none;
    border-radius: 2px 2px 2px 2px;
    border-style: solid;
    border-width: 1px;
    border-color: #ddd;

    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 2px rgba(0, 0, 0, 0.05);

    color: #4F4F4F;
    cursor: pointer;
    display: inline-block;

    line-height: 1em;
    margin-bottom: 0;
    padding: 4px 12px;
    text-align: left;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
    vertical-align: middle;
    white-space: nowrap;
}

.btn > span {
    vertical-align: middle;
}

.btn:hover, .btn:hover a, .btn a:hover {
    border-color: #009999;
    color: #009999 !important;

    text-decoration: none;
    transition: background-position 0.1s linear;

    background-color: white;
}

.btn.disabled:hover {
    background: url('/static/images/nope_hover.png') no-repeat 5px center white !important;
    padding-left: 23px;
}

.display-revoke > .material-icons,
.display-create > .material-icons {
    vertical-align: bottom;
    opacity: 40%;
}


.btn.loading {
    background: url('/static/images/loader.gif') no-repeat 5px center white;
    padding-left: 23px;
}

.excel {
    background: url('/static/images/excel.png') no-repeat center white;
    display: inline-block;
    padding: 0;
    width: 16px;
    height: 16px;
}

.excel:hover {
    background: url('/static/images/excel_hover.png') no-repeat center white;
}

.def {
    background: url('/static/images/def.png') no-repeat center;
    display: inline;
    padding: 8px;
    margin-right: 5px;
}

.def:hover {
    background: url('/static/images/def_hover.png') no-repeat center;
}

/* We don't want the button to change color just because the tr row is highlighted */
.dt tbody tr:hover .btn {
    color: #4F4F4F; /* !important; */
}

.dt tbody tr .btn:hover {
    color: #009999 !important;
}

.btn.menu-btn {
    font-size: 19px !important;
    margin-bottom: 5px;
    vertical-align: revert;
}


/* Get the edit customer note button (and the dynamic key create) to
the same size as the create/revoke etc while keeping the
search/login/logout buttons unaffected */
button.btn.edit, button.btn.create {
    /* line-height: 0.8em; */
    font-size: 1em;
}


/* ------------------------------------------------ activation keys ------------------------------------------------- */

.activation-key {
    font-family: "Consolas", monospace;
    letter-spacing: 1px;
    font-size: 1.1em;
}

.key-char {
    color: #f58231;
    background-color: #fff;
    padding-top: 2px;
    padding-bottom: 2px;
}

.key-char:first-child {
    padding-left: 4px;
}

.key-char:last-child {
    padding-right: 4px;
}

.key-char.number {
    color: #3cb44b;
}

.key-char.lower {
    color: #4363d8;
}

.key-char.upper {
    color: #f032e6;
}

/* ================================================= Page specifics ================================================= */

/* ---------------------------------------------------- Products ---------------------------------------------------- */

div.module-note-edit {
    visibility: hidden;

    margin-right: 3em;
    float: right;
}

body.js-on tr:hover div.module-note-edit {
    visibility: visible;
}

/* Since there are no hover events (except a) for IE6 we keep it always visible instead */
body.js-on div.module-note-edit {
    _visibility: visible; /* IE 6 */
}

/* ----------------------------------------------------- Order ------------------------------------------------------ */
div.order-header {
    padding: 10px;
    font-size: 1.1em;
}

span.order-info {
    font-size: 0.8em;
    margin-right: 0.5em;
}

span.no-unused {
    font-size: 1.3em;
    /* padding: 3px 0 3px 8px; */
}

/* --------------------------------------------------- Login page --------------------------------------------------- */
input.login-text {
    width: 95%;
}

div.login-wrapper {
    width: 800px;
    margin-right: auto;
    margin-left: auto;
    margin-top: 3em;
}

div.login-wrapper > div {
    padding-left: 20px;
    padding-right: 20px;
    width: 420px;
    margin-left: auto;
    margin-right: auto;
}

div.login-box {
    position: relative;
    margin-top: 1em;
    margin-bottom: 2em;
    padding-bottom: 1em;
    background-color: white;
    border: 1px solid #cbcbcb;
}

div.login-box table {
    width: 100%;
}

div.login-box input {
    border: 1px solid #ddd;
}

div.login-box button {
    margin-top: 0.5em;
}

div.login-box > form {
    margin-top: 20px;
}

div.login-box > table {
    width: 100%;
    padding-top: 30px;
    padding-bottom: 30px;
}

div.message-wrapper {
    padding: 0 !important;
}

div.important-news {
    margin-top: 2em;
    margin-bottom: 1em;
    width: 800px !important;
}


.login-logo {
    width: 289px !important;
    height: 42px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* ------------------------------------------------------ Help ------------------------------------------------------ */

div.help-section p {
    font-size: 0.8em;
}

div.help-section p, div.help-section h1 {
    padding-left: 20px;
    padding-right: 20px;
}

div.help-section h1 {
    padding-top: 10px;
}

/* ------------------------------------------------------ News ------------------------------------------------------ */

p.news-body {
    white-space: pre-line;
    margin: 2px;
    text-align: justify;
}

div.news-post {
    border: 1px solid #ddd;
    background-color: #fff;
    overflow-x: auto;
    word-wrap: break-word;
    padding-bottom: 10px;
    margin-top: 15px;
    width: 100%;
    padding-top: 10px;
    line-height: 1em;
}

/* ---------------------------------------------------- Profile ----------------------------------------------------- */
div.generic-form {
    padding-bottom: 10px;
    margin-top: 15px;
    width: 100%;
    padding-top: 10px;
    line-height: 1em;
}

div.generic-form > span {
    font-size: 1.3em;
    padding: 3px 8px 3px 8px;
    text-align: left;
}

div.generic-form > form {
    margin-top: 15px;
}

div.generic-form table tr {
    border: none;
}

div.generic-form table tr td {
    font-size: 1.2em;
}

div.generic-form > ul {
    margin: 20px;
    padding-left: 15px;
}

div.generic-form ul li {
    font-size: 0.8em;
}

div.generic-form ul li ul li {
    padding-left: 10px;
    margin-left: 12px;
    list-style-type: square;
}

/* ---------------------------------------------------- Service ----------------------------------------------------- */
div.service-key-form {
    display: inline-block;
    padding-bottom: 20px;
}

div.service-key-form > span {
    font-size: 1.1em;
    padding: 3px 8px 3px 8px;
    text-align: left;
}

div.service-key-form > form {
    margin-top: 15px;
}

div.service-key-form table tr {
    border: none;
}

/* ----------------------------------------------------- Search ----------------------------------------------------- */

span.search-highlight {
    color: #009999;
    font-weight: bold;
}

/* -------------------------------------------------- Other -------------------------------------------------- */


div.link {
    border: 1px solid transparent; /* transparent doesn't hide it in IE6, but that's acceptable */
    padding-right: 5px;
    cursor: pointer;
}

div.link-disabled {
    border: 1px solid transparent; /* transparent doesn't hide it in IE6, but that's acceptable */
    padding-right: 5px;
    cursor: default;
    color: gray;
}

div.link:hover {
    padding-right: 5px;
    cursor: pointer;
    border: 1px solid #000000;
    background-color: #f7f8ff;
}


span.error-message {
    color: #990066;
}

div.message {
    border-radius: 2px 2px 2px 2px;
    padding: 10px;
    margin: 5px 5px 15px 5px;
    background: #fff;
    border-width: 2px;
    border-style: solid;
    overflow-x: auto;
}

.message.info {
    border-color: #0c64ff;
}

span.success {
    color: #009999;
}

div.success {
    border: solid #009999 2px;
}

div.error {
    border: solid #CD0A0A 2px;
    color: #CD0A0A;
}

div.default {
    border: solid #000 2px;
}

label.error {
    float: left;
    clear: left;
    color: #990066;
}

input.error {
    float: left;
}

span.ui-icon-arrowthick-1-e {
    display: inline-block;
    float: none;
    margin-right: 0;
}

img.center {
    display: block;
    margin: 2em auto;
}

div.info {
    margin-top: 2em;
    font-size: 0.9em;
}

div.info a {
    text-decoration: underline;
}

span.previously-revoked {
    font-weight: bold;
    color: #c71524;
}

div.active-order-key-form {
    display: inline-block;
    padding-bottom: 20px;
}

div.active-order-key-form > span {
    font-size: 1.3em;
    padding: 3px 8px 3px 8px;
    text-align: left;
}

div.active-order-key-form > form {
    margin-top: 15px;
}

div.active-order-key-form table tr {
    border: none;
}

tr.active-order {
    background-color: #dbfdff;
    border-top: solid #007d85 2px;
    border-bottom: solid #007d85 2px;
    cursor: pointer;
}

tr.active-order span {
    white-space: nowrap;
}

a.active-order {
    text-decoration: none;
}

tr.active-demonstration-order {
    background-color: #edc7e0;
}

span.demonstration-order-note {
    color: #95005F;
}

div.demonstration-order-note {
    color: #95005F;
    text-align: center;
}

tr.downplay, tr.downplay span.error-message, tr.downplay a {
    color: #999;
}

.customer-note {
    line-height: 1.9em;
}

div.history-bar {
    margin: 5px;
    text-align: center;
    font-size: 1.4em;
}
