/* +----------------------------------------------------------------------
/* | Static Plugin for ThinkAdmin
/* +----------------------------------------------------------------------
/* | 官方网站: https://thinkadmin.top
/* +----------------------------------------------------------------------
/* | 版权所有 2014~2025 ThinkAdmin [ thinkadmin.top ]
/* +----------------------------------------------------------------------
/* | 开源协议 ( https://mit-license.org )
/* | 免责声明 ( https://thinkadmin.top/disclaimer )
/* +----------------------------------------------------------------------
/* | gitee 代码仓库：https://gitee.com/zoujingli/think-plugs-static
/* | github 代码仓库：https://github.com/zoujingli/think-plugs-static
/* +----------------------------------------------------------------------
/* | 自定义后台扩展样式，需要在加载 console.css 后载入
/* | 使用 composer require zoujingli/think-plugs-static 时不会更新此文件
/* +---------------------------------------------------------------------- */

/* TG dialogs: scoped to the publishing workspace. */
/* TG search forms share the editor's spacing and focus treatment. */
.tg-search {margin:18px 0 20px;padding:18px 20px;background:#f7f9fc;border:1px solid #e5ebf3;border-radius:9px;}
.tg-search *, .tg-search *::before, .tg-search *::after {box-sizing:border-box;}
.tg-search__heading {display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;margin-bottom:15px;line-height:1.6;}
.tg-search__heading strong {font-size:14px;font-weight:600;color:#263950;}
.tg-search__heading>span {font-size:12px;color:#7c899b;}
.tg-search__fields {display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px;}
.tg-search__field {display:flex;flex-direction:column;flex:1 1 160px;min-width:0;gap:7px;margin:0;}
.tg-search__keyword {flex:1.5 1 230px;}
.tg-search__date {flex:1.2 1 240px;}
.tg-search__field>span {font-size:12px;font-weight:500;color:#56677f;line-height:1.5;}
.tg-search .layui-input,.tg-search select[lay-ignore] {display:block;width:100%;height:40px;margin:0;padding:0 11px;border:1px solid #dce3ed;border-radius:6px;background:#fff;color:#263950;font-size:13px;line-height:normal;transition:border-color .15s,box-shadow .15s;}
.tg-search input::placeholder {color:#98a4b5;}
.tg-search input:hover,.tg-search select:hover {border-color:#a6bacb!important;}
.tg-search input:focus,.tg-search select:focus {outline:0;border-color:#268cb9!important;box-shadow:0 0 0 3px #e2f2fa;}
.tg-search__actions {display:flex;flex:0 0 auto;gap:9px;align-items:center;margin-left:auto;}
.tg-search__actions .layui-btn {height:40px;line-height:38px;margin:0;min-width:80px;padding:0 16px;border-radius:6px;font-size:13px;}
.tg-search__actions .layui-btn:not(.layui-btn-primary) {background:#1685b5;border:1px solid #1685b5;}
.tg-search__actions .layui-btn-primary {background:#fff;border-color:#dce3ed;color:#617187;}
.tg-search__actions .layui-btn:focus-visible {outline:3px solid #99cce4;outline-offset:2px;}
.tg-search__actions .layui-icon {font-size:15px;margin-right:5px;}
@media(max-width:680px) {
 .tg-search {padding:14px;margin:14px 0;}
 .tg-search__field,.tg-search__keyword,.tg-search__date {flex:1 1 calc(50% - 14px);}
 .tg-search__keyword,.tg-search__date {flex-basis:100%;}
 .tg-search__actions {flex-basis:100%;justify-content:flex-end;padding-top:2px;}
}
@media(max-width:400px) {
 .tg-search__field {flex-basis:100%;}
 .tg-search__actions .layui-btn {flex:1;}
}
.layui-layer.tg-dialog-layer {width:min(960px,calc(100vw - 32px))!important;left:50%!important;top:5vh!important;transform:translateX(-50%);border-radius:12px;overflow:hidden;}
.layui-layer.tg-dialog-layer.tg-dialog-medium {width:min(760px,calc(100vw - 32px))!important;}
.layui-layer.tg-dialog-layer.tg-dialog-compact {width:min(560px,calc(100vw - 32px))!important;}
.tg-dialog-layer .layui-layer-title {background:#fff;border-bottom:1px solid #e8edf3;padding-left:24px;}
.tg-dialog-layer .layui-layer-content {height:auto!important;overflow:hidden!important;}
.tg-dialog {display:flex;flex-direction:column;max-height:calc(90vh - 44px);max-height:calc(90dvh - 44px);margin:0;color:#223047;background:#f5f7fb;text-align:left;}
.tg-dialog *, .tg-dialog *::before, .tg-dialog *::after {box-sizing:border-box;}
.tg-dialog__header {padding:22px 26px 18px;flex-shrink:0;background:#fff;border-bottom:1px solid #e8edf3;}
.tg-dialog__eyebrow {font-size:11px;font-weight:600;letter-spacing:1.3px;color:#66809a;}
.tg-dialog__header h2 {font-size:23px;font-weight:600;line-height:1.5;margin:5px 0;}
.tg-dialog__header p {font-size:13px;color:#6b7a90;line-height:1.6;overflow-wrap:anywhere;}
.tg-dialog__body {min-height:0;overflow:auto;overscroll-behavior:contain;padding:22px 26px;scrollbar-gutter:stable;}
.tg-editor-grid {display:grid;grid-template-columns:minmax(0,1.65fr) minmax(240px,1fr);gap:18px;align-items:start;}
.tg-dialog__section {min-width:0;padding:20px;background:#fff;border:1px solid #e4eaf2;border-radius:9px;}
.tg-dialog__section h3 {font-size:15px;font-weight:600;margin:0 0 16px;}
.tg-field-heading {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:9px;}
.tg-field-heading label,.tg-field-label {font-size:13px;font-weight:600;}
.tg-field-heading [data-tg-count] {font-size:11px;color:#7b8798;white-space:nowrap;}
.tg-field-label {display:block;margin:19px 0 9px;}
.tg-field-label:first-child {margin-top:0;}
.tg-field-label span,.tg-advanced summary span {font-size:12px;font-weight:400;color:#8290a3;margin-left:6px;}
.tg-dialog .layui-input,.tg-dialog .layui-textarea,.tg-dialog .tg-select {width:100%;border:1px solid #dce3ec;border-radius:6px;background:#fff;color:#223047;font:inherit;font-size:13px;box-shadow:none;}
.tg-dialog .layui-input,.tg-dialog .tg-select {height:40px;padding:0 10px;}
.tg-dialog .layui-textarea {padding:11px 12px;line-height:1.75;resize:vertical;}
.tg-dialog .tg-editor-text {height:240px;min-height:180px;max-height:420px;}
.tg-dialog .tg-media-input {min-height:80px;height:90px;}
.tg-dialog .tg-code {font-family:Consolas,monospace;font-size:12px;min-height:120px;}
.tg-dialog .layui-input:focus,.tg-dialog .layui-textarea:focus,.tg-dialog .tg-select:focus {border-color:#3496c5!important;outline:3px solid #e7f4fa;}
.tg-dialog .layui-textarea[aria-invalid=true] {border-color:#cf4b50;}
.tg-hint {font-size:12px;color:#758398;line-height:1.7;margin-top:8px;}
.tg-notice {margin-top:20px;padding:13px 14px;border-radius:7px;background:#edf6fb;color:#35607a;font-size:12px;line-height:1.75;}
.tg-notice p {margin:3px 0 0;}
.tg-advanced {margin-top:20px;border-top:1px solid #e8edf3;padding-top:15px;}
.tg-advanced summary {font-size:13px;font-weight:600;cursor:pointer;margin-bottom:13px;}
.tg-text-button {border:0;background:transparent;color:#1685b5;cursor:pointer;font:inherit;font-size:12px;padding:3px 0;}
.tg-example {display:block;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;color:#7b8798;line-height:1.7;margin-top:10px;}
.tg-field-error {color:#bd393e;font-size:12px;line-height:1.6;margin:7px 0 0;}
.tg-field-error:empty {display:none;}
.tg-dialog__footer {flex-shrink:0;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:15px 26px;background:#fff;border-top:1px solid #e4eaf2;}
.tg-dialog__footer .tg-hint {margin:0;}
.tg-dialog__footer>div {display:flex;gap:10px;flex-shrink:0;}
.tg-dialog__footer .layui-btn {height:38px;line-height:38px;border-radius:6px;min-width:84px;margin:0;}
.tg-dialog__footer .layui-btn:not(.layui-btn-primary) {background:#1685b5;}
.tg-detail-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.tg-detail-grid .tg-wide {grid-column:1/-1;}
.tg-dialog pre {white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.8 Consolas,monospace;color:#43546b;margin:0;max-height:320px;overflow:auto;}
.tg-dialog pre:empty::before {content:'暂无内容';color:#94a0af;}
.tg-meta {display:flex;flex-wrap:wrap;gap:8px 18px;font-size:12px;color:#758398;margin-top:8px;}
@media(max-width:680px) {
 .layui-layer.tg-dialog-layer {width:calc(100vw - 16px)!important;top:2vh!important;}
 .tg-dialog {max-height:calc(96vh - 44px);max-height:calc(96dvh - 44px);}
 .tg-dialog__header {padding:16px;}.tg-dialog__header h2 {font-size:20px;}
 .tg-dialog__body {padding:14px;}.tg-dialog__section {padding:15px;}
 .tg-editor-grid,.tg-detail-grid {grid-template-columns:minmax(0,1fr);}
 .tg-dialog__footer {padding:12px 16px;flex-wrap:wrap;}.tg-dialog__footer>div {margin-left:auto;}
 .tg-dialog .tg-editor-text {height:200px;}
}
