html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
}

input[type="file"].form-control {
    height: auto;
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    line-height: normal;
}

.web-wap {
    display: flex;
    flex-direction: column;
    height: 100vh;
}
.web-remain {
    flex: 1;
    overflow-y: auto;
}
.field-validation-error {
    font-size: 13px;
    color: #eb2525;
    font-style: italic;
}
.alert-danger:empty{
    display: none;
}
.alert-danger ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.block-full{

}
.web-remain {
    flex: 1;
    overflow-y: auto;
}
.web-item {
    flex: 1;
    overflow-y: auto;
}
.right_col1{
    display: flex;
    flex-direction: column;
}
::placeholder {
    font-size: 11px;
    font-style: italic;
    color: #999;
    opacity: 1;
}
.img-list img{
    width: 100%;
}
.img-list{
    width: 120px;
}

.img-list-empty {
    display: block;
    padding: 18px 4px;
    border: 1px dashed #ccc;
    text-align: center;
    font-size: 12px;
    font-style: italic;
    color: #999;
}

.nav_menu {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    float: none;
}

.nav_menu .toggle {
    float: none;
    flex: 0 0 70px;
}

.top-page-actions {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    padding-right: 8px;
}

.nav_menu > .nav.navbar-nav {
    margin-left: auto;
    flex: 0 0 auto;
}

.main_container .top_nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 20;
    margin-left: 0;
    background: #EDEDED;
}

.nav-md .main_container .top_nav {
    left: 230px;
}

.nav-sm .main_container .top_nav {
    left: 70px;
}

.nav-md .container.body .col-md-3.left_col.menu_fixed,
.nav-sm .container.body .col-md-3.left_col.menu_fixed {
    overflow-x: hidden;
    overflow-y: auto;
}

.nav-md .container.body .right_col,
.nav-sm .container.body .right_col {
    padding-top: 67px;
}

@media (max-width: 991px) {
    .nav-md .main_container .top_nav,
    .nav-sm .main_container .top_nav {
        left: 0;
        width: 100%;
    }
}

.top-page-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.top-page-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2A3F54;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-page-bar .btn {
    margin-bottom: 0;
    margin-right: 0;
    white-space: nowrap;
}

.top-page-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.table-templates {
    margin-bottom: 12px;
}

.table-templates thead th {
    font-weight: 600;
    white-space: nowrap;
}

.table-templates tbody td {
    vertical-align: middle;
}

.table-templates .column-no {
    width: 56px;
    text-align: center;
}

.table-templates .column-thumb {
    width: 96px;
}

.table-templates .column-meta {
    width: 110px;
    text-align: center;
    white-space: nowrap;
}

.table-templates .column-date {
    width: 160px;
    white-space: nowrap;
}

.template-thumb {
    display: block;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 6px;
    background: #f4f6f8;
    border: 1px solid #e6e9ed;
}

.template-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 11px;
    color: #999;
    font-style: italic;
}

.template-name {
    display: block;
    font-weight: 600;
    color: #2A3F54;
    line-height: 1.35;
}

.template-name:hover {
    color: #1ABB9C;
}

.template-id {
    margin-top: 2px;
    font-size: 12px;
    color: #9aa4af;
}

.template-count {
    display: inline-block;
    min-width: 28px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #eef3f6;
    color: #2A3F54;
    font-weight: 600;
}

.table-templates .table-empty {
    text-align: center;
    padding: 28px 12px;
    color: #9aa4af;
    font-style: italic;
}

.table-footer {
    margin-top: 4px;
}

.table-count {
    display: inline-block;
    padding-top: 8px;
    color: #73879C;
}

.template-json {
    overflow-x: auto;
    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    padding: 12px;
    font-size: 12px;
    line-height: 1.5;
}

.template-image-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.template-image {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 12px;
    background: #fff;
}

.template-image-head {
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

.template-image-body {
    display: block;
}

.template-image-preview {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
}

.template-image-preview img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #e5e5e5;
    background: #fff;
}

.template-image-preview .btn-set-main-image {
    display: none;
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 2;
    padding: 1px 5px;
    font-size: 10px;
    line-height: 1.3;
    border-radius: 2px;
}

.template-image-preview:hover .btn-set-main-image {
    display: inline-block;
}

.template-image-main-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    padding: 2px 6px;
    font-size: 11px;
    line-height: 1.4;
    color: #fff;
    background: #26B99A;
    border-radius: 2px;
}

.template-confirm-modal .modal-header {
    padding: 8px 12px;
    min-height: 0;
}

.template-confirm-modal .modal-header .modal-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.template-confirm-modal .modal-header .close {
    padding: 8px 12px;
    margin: -8px -12px -8px auto;
    font-size: 18px;
}

.template-confirm-modal .modal-body {
    padding: 12px;
    font-size: 13px;
}

.template-confirm-modal .modal-footer {
    padding: 8px 12px;
}

.template-image-info {
    width: 100%;
}

.template-image-url {
    font-size: 12px;
    word-break: break-all;
    margin-bottom: 6px;
}

.template-image-url .text-muted {
    margin-right: 4px;
}

.template-image-json {
    margin: 0;
    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    padding: 8px;
    font-size: 11px;
    line-height: 1.45;
    overflow-x: auto;
}

[data-no] {
	position: relative;
}
[data-no]::before {
	position: absolute;
	content: attr(data-no);
	top: 0px;
	right: 100%;
	background: #fff;
	border-radius: 6px;
	padding: 0 4px;
	font-size: 12px;
}