/* generic styles and reusable components */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
}

html[ng-app="AgileCardsForTFS"] body {
    font-family: "Segoe UI","Helvetica Neue",Helvetica,Arial,Verdana,sans-serif;
}

.modal {
    padding: 6px;
    border: 1px dashed #cccccc;
    background-color: #ffffcc;
    color: #7d7a11;
}

.delete-confirm-dialog {
    margin: 15px 10px;
}

.delete-confirm-dialog-warning-icon {
    width: 40px;
    height: 32px;
    background: url('../images/warning.png') no-repeat;
}

.delete-confirm-dialog-warning-message {
    vertical-align: middle;
}

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

.global-error-message {
    padding: 5px 10px;
    margin: 10px 0;
    background-color: #E6B9B9;
}

/* forms */
.ac-form .field-group {
    margin: 10px 0;
}

.ac-form .field-group > label {
    display: table-cell;
    width: 140px;
    vertical-align: top;
}

.ac-form input[type="text"],
.ac-form input[type="number"],
.ac-form select {
    border: 1px solid #ccc;
    padding: 3px 3px;
    width: 140px;
}

.ac-form input[type="checkbox"],
.ac-form input[type="radio"] {
    margin: 0 3px 0 0;
}

.ac-form input.long {
    width: 200px;
}

.ac-form input.short {
    width: 60px;
}

.ac-form input.ng-invalid {
    color: red;
    border-color: red;
}

.ac-form .field {
    display: table-cell;
    vertical-align: top;
}

.ac-form .field input,
.ac-form .field label {
    vertical-align: middle;
}

.ac-form [required]:after {
    content: '*';
    color: #F00;
}

.ac-form .field-error {
    color: red;
}

/* print cards dialog layout */
.print-cards-dialog, .scanner-dialog {
    width: 100%;
    height: 100%;
    background-color: #FCFCFC;;
}

.print-cards-dialog {
    display: flex;
    flex-direction: column;
}

.print-cards-dialog-error {
    clear: both;
    background: #FFFFCC;
    padding: 5px;
    margin-bottom: 10px;
}

.print-cards-dialog-error-icon {
    display: table-cell;
    vertical-align: middle;
    width: 18px;
}

.print-cards-dialog-error-text {
    display: table-cell;
    vertical-align: middle;
    padding-left: 5px;
}

.print-cards-dialog-error-details {
    margin-top: 5px;
}

.print-cards-dialog-error-glass {
    background: rgba(255, 255, 255, 0.6);
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 100;
}

.print-cards-dialog-full-page-message {
    position: absolute;
    top: 30%;
    width: 100%;
    border: 1px solid #E9E9E9;
    padding: 30px;
    text-align: center;
}

.print-cards-dialog-full-page-message-image {
    vertical-align: middle;
    margin-right: 20px;
}

.print-cards-dialog-full-page-message-content {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
}

.print-cards-dialog-full-page-message-content .error-message-title {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

.print-cards-dialog-panels {
    overflow: hidden;
    width: 100%;
    height: 100%;
    padding-bottom: 10px;
}

.print-cards-dialog-left-panel {
    float: left;
    width: 200px;
    height: 100%;
    background-color: #F3F3F3;
}

.print-cards-dialog-right-panel {
    overflow: hidden; /* Create new Block Formatting Context - because left panel is floated. */
    padding-left: 10px;
    height: 100%;
}

/* feedback and help icons */
.dialog-help-panel {
    float: right;
}

.dialog-help-panel .dialog-help-panel-icon {
    height: 35px;
    width: 28px;

    font-size: 16px;
    line-height: 35px;
    color: #6C6C6D;
    text-decoration: none;
}

.dialog-help-panel .dialog-help-panel-icon:focus,
.dialog-help-panel .dialog-help-panel-icon:active {
    outline: none;
}

.dialog-help-panel .dialog-help-panel-icon:hover {
    color: #1EA9E5;
}

/* print page tabs */
.tabs-container {
    white-space: nowrap;
}

.tab {
    display: inline-block;
    position: relative;
    vertical-align: bottom;
    top: 1px;
    padding: 10px;
    width: 120px;
    height: 35px;
    text-align: center;
    background-color: #F3F3F3;
    border: 1px solid #E6E6E6;
    cursor: pointer;
    color: #666;
}

.tab:hover {
    color: #067ac0;
}

.tab-content {
    border: 1px solid #E6E6E6;
    max-height: calc(100% - 35px); /* minus .tab height */
    overflow: auto;
    padding: 15px;
    height: 100%;
    background-color: #FFF;
}

.selected-tab {
    background-color: white;
    border-bottom: 1px solid white;
    color: #007acc;
    font-weight: bold;
}

.tab-notifications {
    background-color: #067ac0;
    color: white;
    width: 160px;
}

.tab-notifications:hover {
    color: white;
}

.tab-notifications::before {
    content: ' ';
    background: url('../images/agile-cards-logo-white-16px.png') no-repeat center center;
    background-size: contain;
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: -20%;
    margin-right: 5px;
}

.tab-notifications.selected-tab {
    background-color: white;
    color: #067ac0;
}

.tab-notifications.selected-tab::before {
    background-image: url('../images/agile-cards-logo-16px.png');
}

.tab-header-info {
    margin-bottom: 20px;
}

.tab-header-info-icon {
    display: table-cell;
    vertical-align: middle;
    padding-right: 5px;
}

.tab-header-info-icon .icon-info {
    display: inline-block;
    width: 16px;
    height: 16px;
}

.tab-header-info-text {
    display: table-cell;
    vertical-align: middle;
}

.tab-header-info-text p {
    margin: 0;
}

/* printed cards */
.card-wrapper {
    display: inline-block;
    position: relative;
    font-size: 14px;
    vertical-align: top;
}

.card-outline {
    height: 100%;
}

.card-outline-visible {
    outline: 0 black solid;
    padding: 10px;
    position: relative;
}

.card-content {
    display: table;
    width: 100%;
    height: 100%;
    border-collapse: collapse;
}

.card-color-bar-horizontal {
    display: table-row;
    border-top: 6px solid;
    height: 6px;
}

.card-color-bar-horizontal:after {
    content: ' ';
    padding-bottom: 5px;
    display: table-cell;
}

.card-color-bar-vertical {
    display: table-cell;
    height: 100%;
    border-left: 6px solid;
    padding-right: 5px;
}

.card-color-background {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}

.card-fields-container {
    display: table-cell;
    width: 100%;
    height: 100%;
}

.card-single-field {
    position: absolute;
    overflow: hidden;
    word-wrap: break-word;
    font-size: 0;
}

.card-image-field {
    display: inline-block;
    width: 100%;
    vertical-align: middle;
    pointer-events: none;
}

.card-kr-code-field-vertical {
    height: 100%;
}

.card-kr-code-field-horizontal {
    width: 100%;
}

.card-qr-code-field img {
    width: 100%;
}

.card-grid-kr-code-container {
  width: 100%;
  height: 100%;
}

.card-grid-kr-code-field-vertical {
    pointer-events: none;
    width: auto;
    height: 100%;
}

.card-grid-kr-code-field-horizontal {
    pointer-events: none;
    width: 100%;
    height: auto;
}

.card-grid-qr-code-field {
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.card-grid-qr-code-field img {
    display: inline-block;
    width: 100%;
}

.card-grid-qr-code-field-type {
    position: absolute;
    background: #EAF4F9;
    padding: 3px;
    bottom: 5px;
    right: 5px;
}

/* ===== Styles for printout ===== */

@media print {
    html, body {
        overflow: visible !important; /* Hack for Firefox - without it only first page is printed */
    }

    /* menus, buttons and other which should not be printed */
    .print-cards-dialog-left-panel, .tabs-container, .cards-buttons-container, .dialog-help-panel, .page-preview-message, .global-error-message {
        display: none !important;
    }

    .print-cards-dialog-panels, .print-cards-dialog-right-panel, .tab-content {
        overflow: visible !important;
        border-width: 0 !important;
    }

    /* cards container and its predecessors */
    .print-cards-dialog-panels,
    .print-cards-dialog-right-panel,
    .tab-content,
    #cards-controller-container,
    #page-zoom-area,
    #page-zoom-area-table,
    #page-zoom-area-table-cell,
    #zoomed-page,
    #cards-container {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        max-width: none !important;
        border: none !important;
    }

    #page-zoom-area, #page-zoom-area-table-cell, #page-zoom-area-table, #zoomed-page {
        overflow: visible !important;
        background: none !important;
        display: block !important;
    }

    #cards-container {
        transform: none !important;
        height: calc(100% - 2px) !important;
    }

    #cards-container .card-wrapper {
        display: inline-block !important;
    }
}

/* =============================== */

.cards-buttons-container {
    position: relative; /* now 'position: absolute' in children will work relatively to .cards-buttons-container  */
}

.cards-buttons-container button::-moz-focus-inner { /* To remove Firefox's dotted outline on BUTTONS */
    border: 0;
}

.cards-buttons-print {
    position: absolute;
    right: 0;
}

.cards-panel-page-navigation {
    text-align: center;
}

.cards-panel-page-counter {
    display: inline-block;
    min-width: 150px;
    margin: 0 10px;
    vertical-align: middle;
}

.cards-panel-button {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    background: no-repeat center;
}

.cards-panel-button[disabled],
.cards-panel-button[disabled]:hover,
.cards-panel-button[disabled]:focus {
    cursor: auto;
    border: 1px solid #ccc;
    opacity: 0.6;
}

.cards-panel-previous-page-button {
    background-image: url('../images/arrow-icon-right.png');
    transform: scale(-1, 1);
}

.cards-panel-next-page-button {
    background-image: url('../images/arrow-icon-right.png');
}

.cards-panel-page-zoom {
    position: absolute;
    left: 0;
    top: 0;
    height: 30px;
}

.cards-panel-fit-to-screen-button {
    background-image: url('../images/fit-to-screen-icon.png');
}

.cards-panel-zoom-control {
    height: 16px;
    display: inline-block;
    margin: 0 15px;
    vertical-align: middle;
}

.cards-panel-zoom-control input, .cards-panel-zoom-control button {
    height: 16px;
    margin: 0;
    vertical-align: top;
}

.cards-panel-zoom-control input {
    margin: 0 7px;
}

.cards-panel-zoom-control button {
    width: 16px;
    height: 16px;
    padding: 0;
    background: no-repeat center;
}

.cards-panel-zoom-control .zoom-in-button {
    background-image: url('../images/zoom-plus-icon.png');
}

.cards-panel-zoom-control .zoom-out-button {
    background-image: url('../images/zoom-minus-icon.png');
}

.nokrcode-msg-table-wrapper {
    display: table;
    width: 100%;
    min-height: 15px;
    height: 15px;
    margin: 5px 0;
}

.nokrcode-msg-table {
    height: 55px;
    display: table-cell;
    vertical-align: middle
}

.nokrcode-msg {
    display: block;
    padding: 10px;
    border-radius: 5px;
    background-color: #f3f3f3;
}

.nokrcode-msg .tab-header-info-icon {
    padding: 2px 10px 0 0;
}

.nokrcode-msg .icon-info {
    display: inline-block;
    width: 16px;
    height: 16px;
}

#cards-controller-container {
    width: 100%;
    height: 100%;
}

#page-zoom-area.with-nokrcode-msg {
    height: calc(100% - 85px);
}

#page-zoom-area {
    width: 100%;
    height: calc(100% - 45px);
    overflow: scroll;
    background-color: #AEAEAE;
}

#page-zoom-area-table { /* for centering page vertically */
    display: table;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#page-zoom-area-table-cell { /* for centering page vertically */
    display: table-cell;
    vertical-align: middle;
}

#zoomed-page {
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

#cards-container {
    height: 100%;
    border: 1px solid #E6E6E6;
    background-color: white;
    position: relative;
}

.a4-page {
    width: 754px;
}

/* search input directive */
.search-input {
    outline: none;
    background: #E5E5E5 url('../images/magnifier.png') no-repeat right 5px center ;
    background-size: 16px;
    border: 1px solid #E6E6E6;
    width: 100%;
    height: 32px;
    padding: 5px 25px 5px 5px;
}

.search-input:focus {
    background-color: white;
}

/* Agile Poker Banner */
.agile-poker-banner {
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(113, 175, 229, 0.2);
    display: flex;
    align-items: center;
}

.agile-poker-banner .poker-banner-text {
    margin-left: 5px;
    flex: 1;
}

.agile-poker-banner .bowtie-navigate-close {
    cursor: pointer;
}

.agile-poker-banner .bowtie-navigate-close:hover {
    color: rgba(0, 0, 0, .9);
}

/* templates list */
.templates-list-container {
    height: 100%;
}

.templates-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 10px 0;
    max-height: calc(100% - 130px);
    overflow-y: auto;
}

.templates-list-header {
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, Verdana;
    font-weight: 200;
    font-size: 18px;

    height: 20px;
    margin: 5px 0 10px 4px;
    color: #000;
    white-space: nowrap;
}

.templates-list-no-templates-match-info, .templates-list-selected-not-visible-info {
    padding: 0 5px;
    margin-bottom: 10px;
}

.templates-list-item {
    width: 100%;
    overflow: hidden;
    padding: 5px;

    height: 30px;
    border: 1px solid transparent;
    cursor: pointer;
}

.templates-list-item-inner {
    display: table;
    table-layout: fixed;
    height: 100%;
    width: 100%;
}

.templates-list-item:hover {
    background-color: #F2F7FD;
    border: 1px solid #B8D6FB;
}

.templates-list-item.selected-template {
    background-color: #DCEBFC;
    border: 1px solid #B8D6FB;
}

.template-name {
    display: table-cell;
    vertical-align: middle;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.template-operations {
    display: none; /* showing on hover */
    vertical-align: middle;

    width: 40px;
    text-align: right;
}

.templates-list-item:hover .template-operations {
    display: table-cell;
}

.template-operation-button {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    background: no-repeat center;
}

.template-operation-button.clone {
    background: url('../images/copy-icon-grey.png') no-repeat center center,
                url('../images/copy-icon-blue.png') no-repeat center center;
    background-size: 11px, 0;
}

.template-operation-button.clone:hover {
    background-image: url('../images/copy-icon-blue.png');
}

.template-operation-button.remove {
    background: url('../images/remove-icon-grey.png') no-repeat center center,
                url('../images/remove-icon-red.png') no-repeat center center;
    background-size: 10px, 0;
}

.template-operation-button.remove:hover {
    background-image: url('../images/remove-icon-red.png');
}

.add-template-button {
    position: relative;
    border: 1px solid transparent;
    padding: 2px 4px 2px 3px;
    cursor: pointer;
}

.add-template-button:hover {
    background-color: #F2F7FD;
    border-color: #B8D6FB;
}

.add-template-button::before {
    content: ' ';

    background: url('../images/add-new-item-icon-gray.png') no-repeat center center,
                url('../images/add-new-item-icon.png') no-repeat center center;
    background-size: 100%, 0;

    width: 22px;
    height: 22px;
    display: inline-block;
    vertical-align: -40%;
    margin-right: 5px;
}

.add-template-button:hover::before {
    background-image: url('../images/add-new-item-icon.png');
}


/* print card markers */
.card-cut-marker {
    position: absolute;
    border: none;
    border-color: #A0A0A0 !important;
}

.card-cut-marker.horizontal {
    border-top: 1pt solid;
    height: 0;
    width: 15px;
}

.card-cut-marker.vertical {
    border-left: 1pt solid;
    height: 15px;
    width: 0;
}

.card-cut-marker.top {
    top: 0;
}

.card-cut-marker.bottom {
    bottom: 0;
}

.card-cut-marker.left {
    left: 0;
}

.card-cut-marker.right {
    right: 0;
}

.colorpicker.dropdown {
    background-color: #ffffff;
}

.dropdown-menu {
    z-index: 1000;
    display: none;
    float: left;
    margin: 2px 0 0;
    font-size: 14px;
    text-align: left;
    list-style: none;
    background-color: #fff;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border: 1px solid #ccc !important;
    border: 1px solid rgba(0,0,0,.15) !important;
    border-radius: 4px;
    -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
    box-shadow: 0 6px 12px rgba(0,0,0,.175);

    position: static;
    top: 0;
    left: 0;
    min-width: 129px;
    padding: 4px;
    margin-top: 0;
}

.close-colorpicker {
    border: none;
    width: 10px;
    height: 20px;
    float: right;
    background-color: #ffffff;
}

.save-container {
    margin-top: 1.5em;
}

/* card layout tab */
.card-layout-container {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Chrome/Safari/Opera */
    -moz-user-select: none;      /* Firefox */
    -ms-user-select: none;       /* IE/Edge */
    user-select: none;
}

.card-layout-panels-wrapper {
    display: table;
    width: 100%;
}

.card-layout-side-panel {
    display: table-cell;
    vertical-align: top;
    width: 250px;
}

.card-layout-side-panel h3,
.card-layout-side-panel p {
    margin: 0;
}

.card-layout-grid-panel {
    display: table-cell;
    vertical-align: top;
    padding: 0 15px;
}


.card-layout-fields-filter {
    margin: 5px 0;
    background-color: white;
}

.card-layout-field-list {
    height: 370px;
    border: 1px solid #E6E6E6;
    width: 250px;
    overflow-y: scroll;
    list-style: none;
    padding: 0;
}

.card-layout-field-list-option {
    position: relative;
    padding: 3px;
    border: 1px solid transparent;
}

.card-layout-field-list-option:hover {
    cursor: default;
    background-color: #f2f7fd;
    border: 1px solid #b8d6fb;
}

.card-layout-field-list-option button {
    height: 20px;
    width: 20px;
    padding: 0;
    background: url("../images/zoom-plus-icon.png") no-repeat center;
    position: absolute;
    top: calc(50% - 10px);
    right: 0;
    display: none;
}
.card-layout-field-list-option:hover button {
    display: block;
}

.card-layout-print-two-sided {
    display: block;
    margin: 10px 0;
}

.card-layout-print-two-sided span {
    vertical-align: middle;
    line-height: 20px;
}

.card-layout-print-two-sided input {
    vertical-align: middle;
    height: 20px;
    margin: 0 3px 0 0 ;
}

.card-layout-left-panel-rule {
    border: none;
    border-top: 1px solid #E6E6E6;
    margin: 10px 0;
}

.card-layout-action-link {
    display: block;
    margin: 5px 0;
}

.card-layout-grid-panel-rule {
    margin: 0 0 10px 0;
    border: none;
    border-top: 1px solid #E6E6E6;
}

.card-layout-grid-panel-content p {
    margin: 0 0 5px 0;
}

/* card grid */
.card-grid {
    width: 440px;
    height: 440px;
    background: #AEAEAE;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 10px, #CCC 10px, #CCC 11px),
                      repeating-linear-gradient(90deg, transparent, transparent 10px, #CCC 10px, #CCC 11px);
    position: relative;
    outline: none;
}

.card-grid-field {
    position: absolute;
    border: 1px solid black;
    box-sizing: border-box;
    overflow: hidden;
    background: white url('../images/resize-handler.png') no-repeat bottom right;
}

.card-grid-field-content {
    margin: 5px;
}

.card-grid-selected-field {
    background-color: #b3e2ff;
}

.card-grid-selected-border-horizontal {
    position: absolute;
    pointer-events: none;
    border-top: 1px dashed black;
}

.card-grid-selected-border-vertical {
    position: absolute;
    pointer-events: none;
    border-left: 1px dashed black;
}

.card-grid-selected-field-border * {
    display: none;
}

.card-grid-actions-bar {
    position: absolute;
    background: #EAF4F9;
    transform: translate(-5px, 5px);
}

.card-grid-actions-bar-button {
    width: 20px;
    height: 24px;
    vertical-align: middle;
    display: inline-block;
    background: no-repeat center;
    border: none;
    padding: 0;
    margin: 0;
    outline: none;
}

.card-grid-actions-bar-button.bring-forward {
    background-image: url('../images/bring-forward-icon.png');
}

.card-grid-actions-bar-button.send-backward {
    background-image: url('../images/send-backward-icon.png');
}

.card-grid-actions-bar-button.remove {
    background-image: url('../images/remove-icon-grey.png');
}

.card-grid-actions-bar-button:hover {
    background-color: #FEFEFE;
}

/* card grid field details */
.card-grid-field-details-checkbox-row {
    margin: 8px 0;
}

.card-grid-field-details-checkbox-row input {
    margin-left: 0;
    vertical-align: middle;
}

.card-grid-field-details-checkbox-row label {
    vertical-align: middle;
}

.card-grid-field-details-row {
    margin: 8px 0;
    display: table;
    width: 100%;
}

.card-grid-field-details-row-stacked {
    display: block;
}

.card-grid-field-details-row-label {
    display: table-cell;
    vertical-align: middle;
    width: 105px;
}

.card-grid-field-details-row-content {
    display: table-cell;
    vertical-align: middle;
}

.card-grid-field-details-row input,
.card-grid-field-details-row select {
    box-sizing: border-box;
    line-height: 25px;
    height: 25px;
    width: 100%;
    border: 1px solid #ccc;
}

.card-grid-field-details-row input[type="number"] {
    padding: 0 0 0 5px;
    width: 50px;
}

.card-grid-field-details-row input[type="text"] {
    padding: 0 5px;
}

/* angular color picker */
.floating-color-picker-trigger {
    width: 100px;
    height: 22px;
    border: 1px solid #ccc;
}

.floating-color-picker-trigger:after {
    content: ' ';
    width: 20px;
    height: 100%;
    float: right;
    background: white url('../images/triangle.png') no-repeat center center;
    border-left: 1px solid #ccc;
}

.floating-color-picker-inner.angular-color-picker {
    border: none;
    padding: 0 0 5px 0;
    background: none;
    display: block;
}

.floating-color-picker-inline-dialog {
    position: absolute;
    border: 1px solid #ccc;
    padding: 5px;
    background: #f5f5f5;
}

.floating-color-picker-probe-container {
    display: table;
    border: 1px solid black;
    float: left;
}

.floating-color-picker-probe {
    width: 30px;
    height: 25px;
    display: table-cell;
    background: white;
}

.floating-color-picker-user-input {
    box-sizing: border-box;
    width: 75px;
    height: 27px;
    border: 1px solid #ccc;
    padding: 3px 3px;
    margin-left: 10px;
    font-size: 14px;
}

.floating-color-picker-user-input-invalid {
    border: 1px solid red;
    background: #fdd;
}

.floating-color-picker-choose-button {
    float: right;
    margin-top: 5px;
}

.floating-color-picker-tooltip {
    display: inline-block;
    width: 92px;
    text-align: center;
    margin-top: 5px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.08);
    padding: 7px;
}

/* general settings */
.settings-color-bar-row {
    padding-top: 10px;
}

.settings-color-bar-row:first-child {
    padding-top: 0;
}

.settings-color-bar-picker {
    display: table-cell;
    vertical-align: middle;
}

.settings-color-bar-wi-type-name {
    padding-left: 10px;
    color: #6d6d6d;
    display: table-cell;
    vertical-align: middle;
}

/* notifications page */
.notifications-page-badge {
    float: left;
    margin-right: 15px;
}

.notifications-page-text {
    overflow: hidden;
}

.notifications-page-text-header {
    margin-top: 0;
}

.notifications-page-section-ruler {
    margin: 15px 0;
    border: none;
    border-bottom: 1px solid #E6E6E6;
}

#google-analytics-checkbox {
    margin-left: 142px;
}

/* --- input range cross-browser styles --- */
input[type=range] {
    -webkit-appearance: none; /* Hides the slider so that custom slider can be made */
    width: 80px;
    padding: 0; /* because of IE */
}

input[type=range]:focus {
    outline: none;
}

/* Chrome */
input[type=range]::-webkit-slider-runnable-track {
    height: 5px;
    background: #e5e5e5;
    border: 1px solid #cccccc;
    border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    border: 1px solid #cccccc;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: #f6f6f6;
    margin-top: -4px;
}

/* Edge */
/* This super-ugly selector is only for MS Edge, where CSS for range input works differently than in every other browser (including IE). */
_:-ms-lang(x), _:-webkit-full-screen, input[type=range]::-webkit-slider-thumb {
    margin-top: 0;
}

/* Firefox */
input[type=range]::-moz-range-track {
    height: 3px;
    background: #e5e5e5;
    border: 1px solid #cccccc;
    border-radius: 3px;
}

input[type=range]::-moz-range-thumb {
    border: 1px solid #cccccc;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background: #f6f6f6;
}

/* IE */
input[type=range]::-ms-track {
    height: 5px;
    background: transparent; /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
    border-color: transparent;
    border-width: 4px 0; /*leave room for the larger thumb to overflow with a transparent border */
    color: transparent; /*remove default tick marks*/
}

input[type=range]::-ms-tooltip {
    display: none;
}

input[type=range]::-ms-fill-lower {
    background: #e5e5e5;
    border: 1px solid #cccccc;
    border-radius: 10px;
}

input[type=range]::-ms-fill-upper {
    background: #e5e5e5;
    border: 1px solid #cccccc;
    border-radius: 10px;
}

input[type=range]::-ms-thumb {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background: #f6f6f6;
    border: 1px solid #cccccc;
}

.scanner-mobile {
    height: 100%;
    overflow-y: auto;
    font-size: 35px;
    touch-action: manipulation;
}

.scanner-mobile h1 {
    text-transform: none;
    font-size: 50px;
    background-color: #067ac0;
    padding: 15px 0;
    color: white;
    font-weight: 300;
    margin: 0;
    text-align: center;
    vertical-align: middle;
}

.scanner-mobile h1:before {
    content: ' ';
    vertical-align: middle;
    display: inline-block;
    height: 1em;
    width: 1.5em;
    background: url('../images/agile-cards-logo-128px-white.png') no-repeat;
    background-size: contain;
}

.scanner-mobile h1 img {
    height: 50px;
}

.scanner-mobile section {
    padding: 50px;
    position: relative;
}

.scanner-mobile section > div {
    margin-bottom: 50px;
}

.scanner-mobile .button {
    font-size: 50px;
    border: 4px solid #E6E6E6;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    height: auto;
    padding: 25px 25px;
}

.button.button-primary {
    background: #3572b0;
    color: white;
    border: none;
}

.scanner-mobile .scan-actions {
    text-align: center;
}

.scanner-desktop {
    height: 100%;
}

.scanner-desktop .scan-actions {
    display: table-cell;
    text-align: right;
    vertical-align: middle;
}

.scan-results {
    width: 100%;
    display: table;
}

.scan-results-subsection {
    display: table-row;
}

.scanner-mobile .mobile-upload-area {
    background: url('../images/camera.png') no-repeat;
    background-position: center 50px;
    background-size: 200px;
    font-size: 50px;
    padding: 250px 0 50px 0;
    width: 100%;
    display: block;
    text-align: center;
    border: 4px solid #E6E6E6;
}

.scanner-mobile .mobile-upload-area.no-icon {
    background: none;
    padding: 20px 0;
    border: none;
}

.scanner-mobile .mobile-upload-area .button {
    margin: 0;
    display: inline-block;
    padding: 30px 60px;
    background-color: #F3F3F3;
    border: 4px solid #E6E6E6;
}

.scanner-mobile .mobile-upload-button-input {
    display: none;
}

.scanner-mobile .mobile-upload-preview {
    width: 100%;
}

.scanner-mobile .ac-loader .ac-loader-overlay {
    background: black;
    opacity: 0.3;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.scanner-mobile .ac-loader .ac-loader-wrapper {
    position: fixed;
    left: 0;
    right: 0;
    padding: 0 30px;
}

.scanner-mobile .ac-loader .ac-loader-box {
    margin: auto;
    line-height: 1.3;
    border: 2px solid #3572b0;
    background: white;
    display: table;
    width: 100%;
    padding: 0;
}

.scanner-mobile .ac-loader .ac-loader-box::before {
    display: table-cell;
    content: "";
    background: #3572b0 url("../images/status-info-outline.svg") no-repeat center;
    background-size: 50px;
    width: 100px;
}

.scanner-mobile .ac-loader .ac-loader-message {
    color: black;
    display: table-cell;
    padding: 50px;
    font-size: 50px;
}

.scanner-mobile .ac-loader .ac-loader-button-container {
    text-align: center;
}

.scanner-mobile .ac-loader .ac-loader-progress-bar {
    height: 20px;
    position: relative;
    margin: 50px 0;
    background: #E6E6E6;
    width: 100%;
    min-width: 0;
}

.scanner-mobile .ac-loader .ac-loader-progress-bar > span {
    display: block;
    height: 100%;
    background: #3572b0 linear-gradient(
            45deg,
            rgba(255, 255, 255, .5) 0%,
            rgba(255, 255, 255, .5) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, .5) 50%,
            rgba(255, 255, 255, .5) 75%,
            transparent 75%,
            transparent
    );
    background-size: 40px 40px;
    animation: scan-progress-bar-animation .5s linear infinite;
}

.scanner-mobile .ac-loader .ac-loader-progress-bar.green > span {
    background-color: #107122;
}

.scanner-mobile .ac-loader .ac-loader-progress-bar.complete > span {
    background-image: none;
    animation: none;
}

.scanner-mobile .ac-loader .ac-loader-progress-bar.failed > span {
    background-color: #f6c342;
}

@keyframes scan-progress-bar-animation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 80px 0px;
    }
}

.scan-message-box {
    background: white;
    display: table;
}

.board-not-configured-info {
    text-align: center;
    font-size: 18px;
    margin-top: 25px;
}

.scanner-desktop .scan-message-box {
    display: table-cell;
}

.scanner-mobile .scan-message-box p {
    font-size: 30px;
    margin: 1em 0;
}

.scanner-mobile .scan-message-box li {
    font-size: 25px;
}

.scanner-mobile .scan-message-box {
    line-height: 1.3;
    width: 100%;
}

.scan-message-box p {
    margin: 0;
}

.scan-message-box .scan-message-box-icon {
    padding-right: .5em;
    padding-top: .9em;
    display: table-cell;
    vertical-align: top;
}

.scanner-mobile .scan-message-box .scan-message-box-icon {
    display: none;
}

.scanner-mobile .scan-message-box.info {
    border: 2px solid #3572b0;
}

.scanner-mobile .scan-message-box.warning {
    border: 2px solid #f6c342;
}

.scanner-mobile .scan-message-box.error {
    font-size: 12px;
    border: 2px solid #D04437;
    color: black;
}

.scan-message-box.error {
    font-size: 12px;
    color: black;
}

.scanner-mobile .scan-message-box::before {
    display: table-cell;
    content: "";
    width: 100px;
    background-size: 50px;
}

.scanner-mobile .scan-message-box.info::before {
    background: #3572b0 url("../images/status-info-outline.png") no-repeat center;
    background-size: 50%;
}

.scanner-mobile .scan-message-box.warning::before {
    background: #f6c342 url("../images/status-warning-outline.png") no-repeat center;
    background-size: 50%;
}

.scanner-mobile .scan-message-box.error::before {
    background: #D04437 url("../images/status-error-outline.png") no-repeat center;
    background-size: 50%;
}

.scanner-mobile .scan-message-box .scan-message-box-message {
    font-size: 20px;
    padding: 1.5em;
}

.scan-message-box .scan-message-box-message {
    padding: 1em 0;
    display: table-cell;
}

.scanner-mobile .scan-message-box .scan-message-box-message {
    padding: 1em;
}

.scanner-mobile .scan-message-box .board-configure-link {
    color: inherit;
    text-decoration: inherit;
    cursor: inherit;
}

.scan-image-preview {
    position: relative;
}

.scan-image-preview .tooltip-container .tooltip {
    text-align: center;
    max-width: 300px;
}

.scan-image-preview .scan-image-preview-image {
    width: 100%;
}

.scan-image-preview .scan-image-preview-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
}

.scan-image-preview .scan-image-preview-overlay .scan-image-preview-overlay-region {
    opacity: 0;
    fill: white;
}

.scan-image-preview .scan-image-preview-overlay .scan-image-preview-overlay-region.selected {
    opacity: 0.3;
}

.scan-image-preview .scan-image-preview-item {
    position: absolute;
}

.scan-image-preview-item .work-item-title {
    font-weight: bold;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scan-image-preview-item .work-item-states {
    display: inline-block;
}

.scan-image-preview .scan-image-preview-item a {
    color: inherit;
}

.scan-image-preview .scan-image-preview-item .found {
    font-size: 1.5em;
    padding: 5px;
    background: #107122;
    color: white;
}

.scanner-mobile .scan-image-preview .scan-image-preview-item {
    font-size: 30px;
}

.scan-image-preview .scan-image-preview-item .found.changed {
    color: black;
    background: #f6c342;
}

.scan-image-preview .scan-image-preview-item .not-found {
    background: #D04437 url("../images/status-error-outline.png") no-repeat center;
    width: 3em;
    height: 3em;
    background-size: 2em;
}

.scanner-mobile .scan-image-preview .scan-image-preview-item .not-found {
    width: 50px;
    height: 50px;
    background-size: 40px;
}

.scanner-mobile .scan-states-view .scan-state-item-list {
    display: block;
}

.scan-states-view .scan-state-item-list {
    display: none;
}

.scan-states-view .scan-states-list {
    display: table;
    table-layout: fixed;
    border-collapse: collapse;
    width: 100%;
    padding: 0;
}

.scan-states-view .scan-states-list > li {
    display: table-cell;
    text-align: center;
    border: 1px solid #E6E6E6;
    background-color: #f3f3f3;
    color: #666;
}

.scanner-mobile .scan-states-view .scan-states-list {
    display: block;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 4px solid #ccc;
}

.scanner-mobile .scan-states-view .scan-states-list > li {
    display: block;
    text-align: left;
    border-top: 4px solid #ccc;
    margin: 0;
    padding: 0;
    border-collapse: collapse;
}

.scan-states-view .scan-states-list > li h3 {
    font-weight: normal;
    margin: .5em 0;
}

.scan-states-view .scan-states-list > li.not-found h3 {
    color: #D04437;
}

.scanner-mobile .scan-states-view .scan-states-list > li h3 {
    background-color: #e5e5e5;
    padding: 30px 50px;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.scanner-mobile .scan-states-view .scan-states-list > li h3::before {
    display: block;
    float: right;
    opacity: 0.7;
    content: '+';
    font-weight: bold;
}

.scanner-mobile .scan-states-view .scan-states-list > li.open h3::before {
    content: '-';
}

.scan-states-view .scan-states-list > li.open {
    background-color: white;
}

.scanner-mobile .scan-states-view .scan-state-item-list {
    list-style: none;
    margin: 0;
    padding: 0;
    height: 0;
    overflow: hidden;
    transition: height .5s;
}

.scanner-mobile .scan-states-view .scan-state-item-list > li {
    background: #F3F3F3;
    border-top: 4px solid #ccc;
    margin: 0;
    padding: 15px 30px;
}

.scanner-mobile .scan-states-view .scan-state-item-list > li em {
    opacity: 0.5;
}

.scanner-mobile .scan-states-view .scan-state-item {
    overflow: hidden;
}

.scanner-mobile .scan-states-view .scan-state-item-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.scanner-mobile .scan-states-view .scan-state-item-status {
    font-size: 26px;
    margin-top: 15px;
}

.scanner-mobile .scan-states-view .scan-state-item::before {
    content: "• ";
    font-size: 120px;
    vertical-align: middle;
    color: #107122;
    float: left;
    margin-right: 30px;
    line-height: 100%;
}

.scanner-mobile .scan-states-view .scan-state-item-data {
    margin-top: 12px;
}

.scanner-mobile .scan-states-view .scan-state-item.changed::before {
    color: #FFCF43;
}

/* Fix for the unauthorized font request in TFS */
.dialog-help-panel .dialog-help-panel-icon {
    font-family: sans-serif;
}

.dialog-help-panel .dialog-help-panel-icon::before {
    content: "";
    background-size: 32px 16px;
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}

.scanner-desktop .upload-area {
    border: 1px dashed #ccc;
    text-align: center;
    padding: 3em;
}

.scanner-desktop .upload-area.dragover {
    border-color: #3572b0;
    background-color: rgba(53, 114, 176, 0.2);
}

.scanner-desktop .upload-area p {
    font-size: 200%;
}

.scanner-desktop section {
    margin: 1em 0;
}

.scanner-desktop section:first-of-type {
    margin-top: 0;
}

.dialog-help-panel .dialog-help-panel-icon:hover::before {
    background-position: 16px 0;
}

.dialog-help-panel .dialog-help-panel-icon.bowtie-feedback-positive::before {
    background-image: url("../images/feedback-positive.png");
}

.dialog-help-panel .dialog-help-panel-icon.bowtie-status-help::before {
    background-image: url("../images/status-help.png");
}

/********** Board Layout **********/

.board-layout-container {
    padding: 20px;
}

/********** State Configurator **********/

#state-select {
    height: 25px;
    border: 1px solid #ccc;
    width: 150px;
    margin-bottom: 5px;
    position: relative;
}

#state-select:focus {
    z-index: 1;
}

.add-state-button {
    height: 25px;
    vertical-align: middle;
    border: 1px solid #ffffff;
    background: url("../images/add-new-item-icon.png") no-repeat center;
}

.state-configurator-container .state-grip-icon {
    position: absolute;
    opacity: 0.6;
    top: 6px;
    left: 2px;
}

.state-configurator-container .as-sortable-item:hover .state-grip-icon {
    opacity: 1;
}

.state-configurator-container .state-remove-icon {
    float: right;
    margin-right: 10px;
    cursor: pointer;
}

.state-configurator-container .as-sortable-item,
.state-configurator-container .as-sortable-placeholder {
    position: relative;
    display: inline-block;
    width: 124px;
    float: left;
}

.state-configurator-container .sortable-row:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.state-configurator-container .as-sortable-item {
    border: 1px solid #e6e6e6;
    background-color: #f8f8f8;
    height: 40px;
}

.state-configurator-container .as-sortable-item-handle {
    color: #424245;
    padding-top: 12px;
    padding-left: 18px;
    width: 100%;
    height: 100%;
}

.state-configurator-container .state-name {
    display: inline-block;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.state-configurator-container .no-state-info {
    font-style: italic;
    color: #999999;
}

/********** Printing Splitters **********/

.print-splitters-button {
    margin-top: 40px;
}

.splitters-printout {
    display: none;
    text-align: center;
}

.splitters-printout-state-name-separator {
    display: inline-block;
    width: 0;
    height: calc(100% - 20px);
    border-left: 2px dashed black;
    margin: 10px 0;
}

.splitters-printout-state-name-left {
    position: absolute;
    width: 100px;
    left: 14px;
    top: -10px;
    transform: rotate(90deg);
    transform-origin: left center;
}

.splitters-printout-state-name-right {
    position: absolute;
    width: 100px;
    right: 14px;
    top: -10px;
    transform: rotate(-90deg);
    transform-origin: right center;
}

.splitters-printout-state-label {
    font-size: 50px;
    margin-bottom: 30px;
}

.splitters-printout-state-label:last-child {
    page-break-after: always;
}

.splitters-printout-splitter {
    display: inline-block;
    background-color: white;
    border: 1px dashed black;
    padding: 10px;
    height: 100%;
    max-height: 100%;
}

.splitters-printout-splitter-kr-code-container {
    height: calc(50% - 50px);
}

.splitters-printout-splitter-kr-code {
    border: 2px solid black;
    height: calc(100% - 20px);
    min-width: 100%;
}

.splitters-printout-splitter-states-container {
    position: relative;
    height: 100px;
    text-align: center;
}

.splitters-printout-qr-code-info {
    max-width: 500px;
    font-size: 18px;
    margin-bottom: 80px;
    margin-left: auto;
    margin-right: auto;
}

@media print {
    html, body, .board-layout-container, .splitters-printout {
        box-sizing: border-box;
        display: block;
        width: 100%;
        height: 100%;
        overflow: visible !important; /* Hack for Firefox - without it only first page is printed */
    }

    .board-layout-container {
        padding: 0;
    }

    .board-layout-settings, .scanner-desktop, .nokrcode-msg-table-wrapper {
        display: none;
    }
}

.ac-loader .ac-loader-overlay {
    background: white;
    opacity: 0.5;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: wait;
}

.ac-loader .ac-loader-wrapper {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    cursor: wait;
}

.ac-loader .ac-loader-box {
    margin: auto;
    line-height: 1.3;
    border: 1px solid #808080;
    background: white;
    display: table;
    box-shadow: gray 0px 0px 10px;
    padding: 1em;
    min-height: 60px;
}

.ac-loader .ac-loader-box:not(.with-progress-bar)::before {
    display: table-cell;
    content: "";
    background: url("../images/big-progress.gif") no-repeat center;
    width: 50px;
}

.ac-loader .ac-loader-message {
    color: black;
    display: table-cell;
    padding: 1em;
}

.ac-loader .ac-loader-button-container {
    text-align: center;
}

.ac-loader .ac-loader-progress-bar {
    min-width: 20em;
    height: .7em;
    position: relative;
    margin: 1em 0;
    background: #E6E6E6;
}

.ac-loader .ac-loader-progress-bar > span {
    display: block;
    height: 100%;
    background: #3572b0 linear-gradient(
            45deg,
            rgba(255, 255, 255, .5) 0%,
            rgba(255, 255, 255, .5) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, .5) 50%,
            rgba(255, 255, 255, .5) 75%,
            transparent 75%,
            transparent
    );
    background-size: 20px 20px;
    animation: progress-bar-animation .5s linear infinite;
}

.ac-loader .ac-loader-progress-bar.green > span {
    background-color: #107122;
}

.ac-loader .ac-loader-progress-bar.complete > span {
    background-image: none;
    animation: none;
}

.ac-loader .ac-loader-progress-bar.failed > span {
    background-color: #f6c342;
}

@keyframes progress-bar-animation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 80px 0px;
    }
}

.tooltip-container {
    position: relative;
}

.tooltip-container .tooltip {
    pointer-events: none;
    opacity: 0;
    border: 1px solid #E6E6E6;
    background-color: white;
    color: #666;
    box-shadow: gray 0 0 10px;
    font-weight: normal;
    font-size: 12px;
    min-width: 180px;
    text-align: left;
    padding: .5em;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, -5px);
    transition: opacity .2s ease-out 0s;
    white-space: nowrap;
}

.tooltip-container .tooltip.tooltip-bottom {
    top: 100%;
    margin-top: 1em;
}

.tooltip-container:hover .tooltip {
    opacity: 1;
    transition: all .2s ease-in .5s;
}

.tooltip-container .tooltip::after {
    content: " ";
    position: absolute;
    top: 100%; /* At the bottom of the tooltip */
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: white;
}

.tooltip-container .tooltip.tooltip-bottom::after {
    top: auto;
    bottom: 100%; /* At the bottom of the tooltip */
    border-top-color: transparent;
    border-bottom-color: white;
}

.tooltip dl {
    display: table-row;
}

.tooltip dt, .tooltip dd {
    display: table-cell;
    max-width: 250px;
    overflow: hidden;
    text-overflow:ellipsis;
    text-align: left;
}

.tooltip dt {
    font-weight: bold;
    padding-right: .5em;
    text-align: right;
}

.tooltip > p {
    white-space: normal;
    margin: 0;
}

.mobile-qr-code-box {
    position: relative;
    border: 1px solid #e6e6e6;
    padding: 1em;
    display: table;
    width: 100%;
}

.mobile-qr-code-box .mobile-qr-code {
    display: table-cell;
    width: 150px;
    padding-right: 1em;
}

.mobile-qr-code-box .mobile-qr-code-info {
    display: table-cell;
    vertical-align: top;
}

.mobile-qr-code-mini {
    text-align: right;
}

.mobile-qr-code-mini .tooltip.mobile-qr-code-tooltip {
    box-sizing: content-box;
    min-width: 150px;
    height: 150px;
}

.mobile-qr-minimize {
    background: url('../images/remove-icon-grey.png') no-repeat center;
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
}

.with-icon {
    padding-left: 20px;
    position: relative;
}

.with-icon .icon {
    position: absolute;
    left: 0;
    top: -1px;
}
