@import url(./iconfont.css);

@font-face {
    font-family: 'OpenSans-Light';
    src: url('../assets/iconfont/OpenSans-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html,
body,
#app {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    user-select: none;
    -webkit-user-select: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

input[type='number'] {
    -moz-appearance: textfield;
}

#viewerApp {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    color: black;

    --border-color: #cecece;
    --active-border-color: #707070;
    --active-color: #fe8e14;
    --active-background: #d7d8d9;
    --disabled-color: #adadad;

    --ddv-palette-border-radius: 8px;
    --ddv-palette-border: 1px solid #AAAAAA;
    --ddv-button-background: transparent;
    --ddv-button-icon-size: 22px;
    --ddv-active-light: #EEEEEE;
}

#viewerApp select {
    border-radius: 2px;
    background: white;
}

#viewerApp input[type='text'] {
    border-radius: 2px;
}

#viewerApp button {
    /* padding: 0; */
}

#header {
    width: 100%;
    flex-shrink: 0;
    background: #f7f8f9;
    display: flex;
    flex-direction: column;
}

#content {
    position: relative;
    display: flex;
    height: 100%;
    width: 100%;
}

#viewerContainer {
    width: 100%;
    height: 100%;
}

.mask-layer {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    background: rgba(0, 0, 0, 0.35);
    z-index: 50;
}

.loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    flex-direction: column;
    z-index: 52;
}

/* Common Style */
.demo-focus {
    color: var(--active-color) !important;
}

.demo-focus span {
    color: var(--active-color) !important;
}

.demo-active {
    background: var(--active-background) !important;
    border: 1px solid var(--active-border-color) !important;
}

.demo-disabled {
    color: #adadad !important;
    pointer-events: none;
}

.demo-disabled span {
    color: #adadad !important;
}

.demo-selected {
    background: var(--active-background) !important;
}

.demo-selected .ddv-button-ok {
    visibility: visible !important;
}

/* Header */
.main-header {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e4e4e4;
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
}

.sub-header {
    width: 100%;
    height: 55px;
    display: flex;
    align-items: center;
    background: #efefef;
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
}

.main-header-left,
.main-header-right,
.sub-header-left,
.sub-header-right {
    display: flex;
    align-items: center;
    height: 100%;
}

.sub-header-left {
    background: #f5f5f5;
    padding: 0px 12px 0px 27px;
    border-right: 1px solid var(--border-color);
}

.sub-header-right {
    background: #efefef;
}

.crop-tool-bar {
    width: 100%;
    height: 55px;
    display: flex;
    align-items: center;
    background: #efefef;
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
    justify-content: center;
    font-family: OpenSans-Regular;
}

.crop-tool-bar-content {
    display: flex;
    width: 450px;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    background: #f5f5f5;
    padding: 0px 20px;
    box-sizing: border-box;
    border-right: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

.crop-tool-bar-content label {
    display: flex;
    align-items: center;
    margin: 0px 10px;
}

.crop-tool-bar-content input {
    width: 18px;
    height: 16px;
    margin: 0px 5px 0px 0px;
    accent-color: #de7023;
}

.crop-button-group {
    display: flex;
}

.crop-apply-button {
    width: 80px;
    height: 32px;
    margin-left: 15px;
    border: 1px solid var(--border-color);
    font-family: OpenSans-Regular;
    cursor: pointer;
    background: #e4e4e4;
    font-size: 14px;
    border-radius: 2px;
    color: black;
}

.crop-cancel-button {
    border: none;
    background: transparent;
    color: var(--active-color);
    font-family: OpenSans-Regular;
    font-size: 14px;
    cursor: pointer;
}

.logo-container {
    width: 260px;
    border-right: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    align-items: center;
}

.logo-container a {
    width: 134px;
    height: 32px;
    margin-left: 27px;
}

.logo-container img {
    width: 134px;
    height: 32px;
}

.demo-button {
    font-family: ddvIconFont;
    font-style: normal;
    border: none;
    cursor: pointer;
    position: relative;
    background: none;
    font-size: 16px;
    padding: 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: black;
}

.big-button {
    width: 130px;
    height: 100%;
    font-size: 22px;
    border-right: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

.big-button span {
    font-size: 14px;
    font-family: OpenSans-Regular;
    margin-left: 10px;
    color: #323234;
}

.sub-header-left>.demo-button,
.geometric-shape-button,
.text-shape-button,
.collapse-list-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 22px;
    width: 40px;
    height: 40px;
    margin-left: 12px;
    border-radius: 2px;
}

.sub-header-left>span {
    font-family: OpenSans-Regular;
    font-size: 14px;
}

.sub-header-right>.demo-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    width: 48px;
    height: 48px;
    margin-left: 16px;
    border-radius: 2px;
}

.sub-header-right>.demo-button>span {
    font-family: OpenSans-Regular;
    font-size: 12px;
    margin-top: 4px;
    color: #323234;
}

.demo-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 160px;
}

.demo-pagination>.demo-button {
    width: 22px;
    height: 22px;
    border-radius: 2px;
}

.demo-pagination input {
    padding: 0px;
    height: 24px;
    width: 24px;
    box-sizing: border-box;
    text-align: center;
    font-size: 14px;
    font-family: OpenSans-Regular;
    border: 1px solid var(--border-color);
}

.demo-pagination span {
    font-family: OpenSans-Regular;
    font-size: 14px;
}

.demo-pagination-separator {
    width: 1px;
    height: 15px;
    margin: 0 4px;
    transform: rotate(15deg);
    background: black;
}

.demo-zoom {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 180px;
}

.demo-zoom>.demo-button {
    font-size: 22px;
    width: 30px;
    height: 30px;
    border-radius: 2px;
}

.demo-zoom-select {
    width: 78px;
    height: 26px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    font-family: OpenSans-Regular;
    color: black;
    border-radius: 0px;
}

.fit-mode-list {
    position: absolute;
    background: #e4e4e4;
    top: 50px;
    z-index: 11;
    left: -1px;
    border: 1px solid var(--border-color);
    width: 165px;
    box-sizing: border-box;
    border-top: 0px;
}

.fit-mode-list button {
    width: 100%;
    height: 44px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0px 16px !important;
    font-size: 22px;
    flex-direction: row;
    justify-content: flex-start;
}

.fit-mode-list .ddv-button-ok {
    position: absolute;
    right: 16px;
    color: #323234;
    visibility: hidden;
}

.fit-mode-button {
    border-left: 1px solid var(--border-color);
}

/* Left Bar */
.content-left-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    height: 100%;
    background: #f5f5f5;
    border-right: 1px solid var(--border-color);
    box-sizing: border-box;
    flex-shrink: 0;
}

.content-left-bar>.demo-button {
    font-size: 20px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 55px;
    width: 80%;
    border-radius: 2px;
}

.content-left-bar>.demo-button>span {
    font-size: 12px;
    font-family: OpenSans-Regular;
}

.content-left-bar-switch {
    position: absolute;
    bottom: 5px;
    left: 10px;
    z-index: 9;
    width: 30px;
    height: 30px;
    background: #666666;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-delete-count {
    min-width: 15px;
    height: 15px;
    background: #fe8e14;
    position: absolute;
    border-radius: 50%;
    top: -2.5px;
    left: 15px;
    font-size: 12px;
    font-family: OpenSans-Regular;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.geometric-shape-button,
.text-shape-button,
.collapse-list-button {
    font-family: 'ddvIconFont';
    cursor: pointer;
    width: 50px;
}

.geometric-shape-list,
.text-shape-list,
.collapse-list {
    position: absolute;
    background: #f5f5f5;
    top: 42px;
    left: -1px;
    z-index: 11;
    width: 62px;
    border: 1px solid var(--border-color);
    border-bottom: none;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.collapse-list {
    left: auto;
    right: -1px;
}

.collapse-list .demo-button span {
    display: none;
}

.collapse-list .demo-active {
    background: none !important;
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--active-color) !important;
}

.geometric-shape-list .demo-button,
.text-shape-list .demo-button,
.collapse-list .demo-button {
    font-size: 20px;
    height: 40px;
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
}

.text-shape-list .demo-active {
    background: none !important;
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
}

/* Viewer */
.ddv-edit-viewer-thumb-left {
    border-right: none;
}

.demo-search-panel {
    border-left: none;
}

.demo-search-panel-mobile {
    border-left: none;
    position: absolute;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    box-shadow: 0 0 3px 0 var(--ddv-primary);
    top: 40%;
    left: 0px;
    width: 100%;
    border: 0px;
    height: 60%;
    padding-top: 0px;
    z-index: 10;
}

.ddv-palette-stamp-panel {
    display: none !important;
}

/* Bottom Container Bar */
.style-palette-container {
    width: 100%;
    height: 60px;
    background: #f5f5f5;
    bottom: 0px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-top: 1px solid var(--border-color);
}

/* Shape Previewer */
.shape-previewer {
    width: 260px;
    border: 1px solid var(--border-color);
    height: 40px;
    background: white;
    margin-left: 20px;
    margin-right: 8px;
    padding: 0px 10px;
    font-size: 14px;
    box-sizing: border-box;
    color: #323234;
    display: flex;
    align-items: center;
    position: relative;
}

.shape-no-presets {
    user-select: none;
}

.shape-previewer .ddv-down-arrow {
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stamp-previewer .ddv-down-arrow,
.signature-previewer .ddv-down-arrow {
    height: 100%;
    width: 20px;
}

.signature-list-box {
    position: absolute;
    width: 260px;
    height: 300px;
    background: white;
    top: 40px;
    left: -1px;
    z-index: 1;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signature-list-box button {
    border: 1px solid var(--border-color);
    width: 170px;
    height: 40px;
    font-family: OpenSans-Regular;
    flex-shrink: 0;
    background: #f5f5f5;
    border-radius: 4px;
    margin: 10px;
    cursor: pointer;
    color: black;
}

.signature-list {
    width: 100%;
    height: 100%;
    overflow: auto;
}

.custom-stamp-item,
.signature-item {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 60px;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 20px;
    box-sizing: border-box;
}

.signature-item img {
    width: 55px;
    height: 40px;
    object-fit: contain;
    box-sizing: border-box;
    cursor: pointer;
}

.stamp-delete-button,
.signature-delete-button {
    font-family: 'ddvIconfont';
    font-size: 18px;
    cursor: pointer;
}

.stamp-delete-button::before,
.signature-delete-button:before {
    content: '\e6a6';
}

.signature-previewer,
.stamp-previewer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.signature-previewer img,
.stamp-previewer img {
    height: 30px;
}

.stamp-list-box {
    position: absolute;
    z-index: 1;
    top: 40px;
    background: white;
    left: -1px;
    width: 260px;
    height: 330px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    border-bottom: none;
}

.stamp-icons-container {
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    overflow: hidden;
}

.stamp-icons-container div {
    display: flex;
    flex-direction: column;
    width: 50%;
}

.stamp-icons-container button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 130px;
    background: white;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    cursor: pointer;
}

.stamp-icons-container img {
    object-fit: contain;
    width: 110px;
    height: 30px;
    -webkit-user-drag: none;
}

.stamp-list-header {
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.stamp-list-header span {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: OpenSans-Regular;
    color: #323234;
    cursor: pointer;
}

.stamp-list-header .split-line {
    width: 1px;
    height: 100%;
    background: var(--border-color);
}

.custom-stamp-container {
    width: 100%;
    height: 100%;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.custom-stamp-list {
    width: 100%;
    height: 100%;
    overflow: auto;
}

.stamp-create-button {
    border: 1px solid var(--border-color);
    width: 170px;
    height: 40px;
    font-family: OpenSans-Regular;
    flex-shrink: 0;
    background: #f5f5f5;
    border-radius: 4px;
    margin: 10px;
    cursor: pointer;
    color: black;
}

.custom-stamp-item img {
    width: 100px;
    height: 40px;
    object-fit: contain;
    box-sizing: border-box;
    cursor: pointer;
}

.common-shape-previewer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.common-shape-item {
    height: 32px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.common-shape-item .demo-button,
.common-shape-item svg {
    font-size: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.common-shape-item .ddv-down-arrow {
    position: absolute;
    right: -6px;
    top: 10px;
    color: #323234;
}

.common-shape-item .demo-button .ddv-down-arrow {
    position: absolute;
    right: -16px;
    top: 8px;
    color: #323234;
}

.demo-palette-fixed {
    border-radius: 0px;
    border: 1px solid var(--border-color);
    z-index: 51;
}

.demo-palette-fixed .ddv-palette-box-header {
    border-radius: 0px;
}

.demo-palette-hidden {
    display: none !important;
}

/* Signature Board */
.signature-board {
    position: absolute;
    background: white;
    max-width: 500px;
    width: 90%;
    height: 490px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    z-index: 51;
}

.signature-title {
    width: 100%;
    height: 46px;
    padding: 0px 15px;
    color: #323234;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    justify-content: space-between;
    font-family: Oswald-Regular;
    background: #e4e4e4;
    user-select: none;
}

.signature-close {
    font-family: 'ddvIconfont';
    font-style: normal;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.signature-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 300px;
    border-bottom: 1px solid var(--border-color);
}

.signature-content canvas {
    border: 1px solid var(--border-color);
    background: #efefef;

    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.signature-close::before {
    content: '\e69b';
}

.signature-color-button {
    font-family: 'iconfont';
}

.signature-color-button::before {
    content: '\e6ed';
}

.signature-setting {
    padding: 15px 15px 0px 15px;
    width: 100%;
    box-sizing: border-box;
    font-family: OpenSans-Regular;
    color: #323234;
}

.signature-setting span {
    user-select: none;
}

.signature-setting .demo-active {
    background: none !important;
}

.signature-color-button {
    border: 1px solid transparent;
    box-sizing: border-box;
    background: transparent;
    font-size: 20px;
    margin-left: 10px;
    cursor: pointer;
    width: 32px;
    height: 32px;
}

.signature-size-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.signature-size-container input {
    margin-left: 10px;
}

.signature-button-group {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    margin-top: 10px;
}

.signature-button-group button {
    margin-left: 15px;
    width: 80px;
    height: 35px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: #e4e4e4;
    font-family: OpenSans-Regular;
    border-radius: 2px;
    color: black;
}

/* Scan Board */
.scan-board {
    max-width: 500px;
    width: 90%;
    height: 360px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: white;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    color: #323234;
    z-index: 51;
}

.scan-board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding: 20px;
    background: #e4e4e4;
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
    font-family: Oswald-Regular;
    flex-shrink: 0;
}

.scan-board-header .ddv-button-close {
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.scan-board-content {
    padding: 10px 20px;
    font-family: OpenSans-Regular;
    height: 100%;
    font-size: 14px;
}

.scanner-list {
    display: flex;
    flex-direction: column;
}

.scanner-list select {
    height: 30px;
    border: 1px solid var(--border-color);
    margin-top: 10px;
    color: #323234;
}

.scanner-config div {
    margin-top: 18px;
}

.scanner-config input[type='checkbox'] {
    width: 16px;
    height: 16px;
    margin: 0px 10px 0px 0px;
}

.scanner-config input[type='radio'] {
    width: 18px;
    height: 16px;
    margin: 0px 5px 0px 15px;
}

.scanner-config label {
    display: flex;
    align-items: center;
}

#scannerResolution {
    width: 100px;
    height: 30px;
    border: 1px solid var(--border-color);
    margin-left: 2px;
    color: #323234;
}

.scanner-config button {
    width: 80px;
    height: 35px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: #e4e4e4;
    font-family: OpenSans-Regular;
    font-size: 16px;
    border-radius: 2px;
}

/* Save Board */
.save-board {
    max-width: 500px;
    width: 90%;
    height: 350px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: white;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    color: #323234;
    z-index: 51;
}

.save-board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding: 20px;
    background: #e4e4e4;
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
    font-family: Oswald-Regular;
    flex-shrink: 0;
}

.save-board-header .ddv-button-close {
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.save-board-content {
    padding: 10px 20px;
    font-family: OpenSans-Regular;
    height: 100%;
    font-size: 14px;
}

.save-board-content>div {
    margin-top: 15px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.save-board-content>div span {
    width: 120px;
    flex-shrink: 0;
}

.save-board-content>div input,
.save-board-content>div select {
    width: 100%;
    height: 30px;
    border: 1px solid var(--border-color);
    color: #323234;
    box-sizing: border-box;
}

.save-board-content button {
    width: 80px;
    height: 35px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: #e4e4e4;
    font-family: OpenSans-Regular;
    font-size: 16px;
    border-radius: 2px;
    color: black;
}

/* Upload Board */
.upload-board {
    max-width: 500px;
    width: 90%;
    height: 350px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: white;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    z-index: 51;
    align-items: center;
    color: #323234;
}

.upload-board-header {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 20px;
    background: #e4e4e4;
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
    font-family: Oswald-Regular;
    flex-shrink: 0;
    justify-content: space-between;
    width: 100%;
}

.upload-board-header .ddv-button-close {
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.upload-board-tab {
    width: 260px;
    display: flex;
    justify-content: space-around;
    border: 1px solid var(--border-color);
    margin-top: 15px;
    height: 34px;
    align-items: center;
    border-radius: 5px;
    background: #e6e6e6;
    font-family: OpenSans-Regular;
    font-size: 14px;
    flex-shrink: 0;
}

.upload-board-tab span {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 4px;
}

.upload-info-content,
.uploaded-file-content {
    width: 90%;
    height: 100%;
    font-family: OpenSans-Regular;
    font-size: 14px;
    overflow: auto;
}

.upload-info-content>div {
    margin-top: 15px;
}

.upload-info-content input[type='text'],
.upload-info-content select {
    height: 30px;
    border: 1px solid var(--border-color);
    color: #323234;
    box-sizing: border-box;
}

.upload-info-content input[type='radio'] {
    margin: 0px 5px 0px 10px;
    width: 18px;
    height: 16px;
}

.upload-info-content label {
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-info-content button {
    width: 80px;
    height: 35px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: #e4e4e4;
    font-family: OpenSans-Regular;
    font-size: 16px;
    border-radius: 2px;
    color: black;
}

.uploaded-item {
    padding: 10px 0px;
    border-bottom: 1px solid var(--border-color);
}

.uploaded-item div {
    margin-top: 5px;
}

.uploaded-item button:first-child {
    width: 60px;
    height: 26px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: #e4e4e4;
    font-family: OpenSans-Regular;
    font-size: 12px;
}

.uploaded-item button:last-child {
    width: 80px;
    height: 26px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: #e4e4e4;
    font-family: OpenSans-Regular;
    font-size: 12px;
    margin-left: 10px;
}

/* Code Board */
.code-board {
    max-width: 500px;
    width: 90%;
    height: 300px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: white;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    z-index: 51;
    align-items: center;
    color: #323234;
}

.code-board-header {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 20px;
    background: #e4e4e4;
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
    font-family: Oswald-Regular;
    flex-shrink: 0;
    justify-content: space-between;
    width: 100%;
}

.code-board-header .ddv-button-close {
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.code-board-content {
    width: 100%;
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
    font-family: OpenSans-Regular;
}

.code-list {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #efefef;
    margin-top: 20px;
}

.code-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.code-list input {
    margin: 0px;
    width: 18px;
    height: 18px;
    margin-right: 6px;
}

.code-board-content>div:last-child {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.code-board-content button {
    width: 140px;
    height: 46px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: #e4e4e4;
    font-family: OpenSans-Regular;
    font-size: 16px;
    border-radius: 2px;
    color: black;
}

/* Hover Style  */
@media (hover: hover) and (pointer: fine) {

    .demo-zoom>.demo-button:hover,
    .demo-pagination>.demo-button:hover {
        background: #c6c6c6;
    }

    .big-button:hover,
    .big-button .demo-button:hover,
    .crop-apply-button:hover,
    .signature-button-group button:hover,
    .signature-list-box button:hover,
    .uploaded-item button:hover,
    .save-board-content button:hover,
    .upload-info-content button:hover,
    .scanner-config button:hover,
    .code-board-content button:hover {
        background: #fbfbfb;
    }

    .sub-header-left>.demo-button:hover,
    .sub-header-left>.geometric-shape-button:hover,
    .sub-header-left>.text-shape-button:hover,
    .sub-header-right>.demo-button:hover,
    .content-left-bar>.demo-button:hover {
        background: #dddddd;
    }

    .crop-cancel-button:hover {
        color: #a75f0b;
    }

    .fit-mode-button:has(.fit-mode-list:hover):hover {
        background: none;
    }

    .geometric-shape-button:has(.geometric-shape-list:hover):hover,
    .text-shape-button:has(.text-shape-list:hover):hover {
        background: none;
    }

    .geometric-shape-button .demo-button:hover,
    .text-shape-button .demo-button:hover {
        background: var(--active-background);
    }

    .stamp-icons-container button:hover {
        background: rgb(245, 245, 245);
    }
}

/* Media queries */
@media screen and (max-width: 1385px) {
    .icon-download-code {
        display: none;
    }
}

@media screen and (max-width: 1255px) {
    .sub-header-left {
        padding: 0px 12px 0px 0px;
    }

    .sub-header-left>span {
        display: none;
    }

    .logo-container {
        width: 180px;
    }
}

@media screen and (max-width: 1175px) {
    .sub-header-left>.demo-button {
        margin-left: 5px;
    }

    .big-button {
        width: 110px;
    }
}

@media screen and (max-width: 1090px) {
    .text-shape-button {
        display: flex !important;
    }

    .header-typewriter,
    .header-text-box,
    .header-highlight,
    .header-underline,
    .header-strikeout {
        display: none !important;
    }

    .big-button {
        width: 70px;
    }

    .big-button>span {
        display: none;
    }

    .fit-mode-list {
        left: auto;
        right: -1px;
    }
}

@media screen and (max-width: 925px) {
    .sub-header-right>.demo-button {
        margin-left: 5px;
        font-size: 22px;
    }

    .sub-header-right>.demo-button>span {
        display: none;
    }
}

@media screen and (max-width: 875px) {
    .logo-container {
        display: none;
    }

    .header-ink,
    .header-stamp-image,
    .header-annot-select,
    .header-annot-eraser {
        display: none !important;
    }

    .collapse-list-button {
        display: flex !important;
        width: 48px;
        margin-left: 5px;
        margin-right: 5px;
    }
}

@media screen and (min-width: 730px) and (max-height: 620px) {
    #viewerApp {
        min-height: 620px;
    }
}

@media screen and (max-width: 730px) {
    .big-button {
        width: 50px;
    }

    .content-left-bar {
        width: 50px;
    }

    .content-left-bar span {
        display: none;
    }

    .content-left-bar>.demo-button {
        margin-top: 15px;
    }

    .sub-header-left>.demo-button,
    .geometric-shape-button,
    .text-shape-button,
    .collapse-list-button {
        margin-left: 5px;
    }

    .sub-header-left {
        padding: 0px 0px 0px 0px;
    }

    .shape-previewer {
        margin-left: 5px;
        margin-right: 5px;
    }

    .demo-delete-count {
        top: 10.5px;
        left: 3px;
    }
}

@media screen and (max-width: 688px) {
    .shape-previewer {
        display: none;
    }

    .shape-previewer .ddv-down-arrow {
        transform: rotate(180deg);
    }

    .signature-list-box,
    .stamp-list-box {
        top: auto;
        left: -1px;
        bottom: 49px;
    }

    .demo-pagination {
        display: none;
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translate(calc(-50% + 25px), 0px);
        z-index: 1;
        background: #f5f5f5;
        padding: 5px 5px;
        border-radius: 4px;
        border: 1px solid var(--border-color);
    }

    .sub-header {
        justify-content: space-between;
        background: #f5f5f5;
    }

    .sub-header-left {
        border-right: none;
        width: 48%;
        justify-content: space-between;
    }

    .sub-header-right {
        width: 48%;
        justify-content: space-between;
        background: #f5f5f5;
    }

    .geometric-shape-button {
        order: -2;
    }
}

@media screen and (max-width: 530px) {
    .ddv-root {
        overflow: visible;
    }

    .ddv-custom-stamp-panel {
        transform: translate(-50%, -50%) scale(0.8);
    }

    .sub-header-left,
    .sub-header-right {
        width: 49%;
    }

    .demo-search-panel {
        border-left: none;
        position: absolute;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
        box-shadow: 0 0 3px 0 var(--ddv-primary);
        top: 40%;
        left: 0px;
        width: 100%;
        border: 0px;
        height: 60%;
        padding-top: 10px;
        z-index: 10;
    }
}

@media screen and (max-width: 435px) {

    .sub-header-left,
    .sub-header-right {
        width: 50%;
    }

    .icon-scan,
    .icon-upload {
        display: none;
    }

    .crop-tool-bar-content {
        padding: 0px 5px;
        border: none;
    }

    .crop-tool-bar-content label {
        margin: 0px 4px;
        font-size: 12px;
    }

    /* .content-left-bar {
        display: none;
    } */

    .content-left-bar-switch {
        display: flex !important;
    }
}

@media screen and (max-width: 700px) {
    .content-left-bar>.demo-button {
        margin-top: 10px;
    }
}

@media screen and (max-height:600px) {
    .ddv-delete-all {
        display: none !important;
    }
}

@media screen and (min-width: 730px) and (max-height: 710px) {
    .ddv-delete-all {
        display: none !important;
    }
}