.admin td {border:1px solid gray;cursor:pointer;}
	.kbinfo table{margin:0 auto;}
	.kbinfo td{text-align:right;border:1px solid white;font-weight:bold;white-space:nowrap;background:green;color:white;}
	.kbinfo td:first-child {text-align:left;background:#0ac4f7;color:black;}
	#ctped  {cursor:pointer;white-space:nowrap;}
.cthead{box-sizing:border-box;width:100%;margin:0;padding:8px;overflow:auto;scrollbar-width:thin;background:#f3f6fa;color:#25334a;border:1px solid #e0e7ef;border-radius:16px;font:14px/1.5 system-ui,-apple-system,Segoe UI,sans-serif;}
.cthead *{box-sizing:border-box;}
.cthead .cttoolbar{margin-bottom:8px;overflow-x:auto;}
.cthead .cttoolbar table{border-collapse:separate;border-spacing:0;width:auto;}
.cthead .cttoolbar td{padding:0 6px 0 0;white-space:nowrap;border:0;background:transparent;color:#475569;}
.cthead .cttoolbar input[type=text]{margin-left:4px;width:220px;max-width:40vw;padding:5px 8px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#172b4d;font:inherit;}
.cthead input[type=checkbox]{accent-color:#2563eb;width:16px;height:16px;vertical-align:middle;}
.cthead input[type=button]{padding:5px 8px;border:1px solid #d5dfec;border-radius:8px;background:#fff;color:#2563eb;font:inherit;cursor:pointer;}
.ctoverview{display:flex;gap:6px;align-items:stretch;overflow:hidden;}
.ctfilters{display:flex;flex:1 1 0;width:0;align-items:stretch;gap:4px;min-width:0;max-height:var(--ct-visible-height);overflow-x:scroll;overflow-y:hidden;}
.ctselect,.ctinfocard{min-width:0;background:#fff;border:1px solid #e0e7ef;border-radius:12px;overflow:hidden;box-shadow:0 2px 5px #17345a06;}
.ctselect{min-width:0;}
.ctcardtitle{padding:7px 9px;border-bottom:1px solid #e8edf4;color:#475569;font-size:12px;font-weight:700;letter-spacing:.04em;}
.ctselect .ctcardtitle{background:blue;color:white;border-bottom-color:blue;}
.cthead .ctselect select{display:block;width:100%;min-height:0;max-height:none;padding:2px;border:0;outline:0;background:#fff;color:#334155;font:inherit;line-height:1.2;scrollbar-width:thin;}
.cthead .ctselect option{padding:1px 8px;margin:0;border-radius:6px;}
.cthead .ctselect option:nth-child(odd){background-color:#f0f4fa;}
.cthead .ctselect option:nth-child(even){background-color:#fff;}
.cthead .ctselect option:checked{background:#e5efff linear-gradient(#e5efff,#e5efff);color:#174da6;font-weight:600;}
.cthead .ctselect option:hover{background:#f1f5f9;}
.cthead input:focus-visible,.cthead select:focus-visible{outline:2px solid #3b82f6;outline-offset:-2px;}
.ctdetails{min-height:0;max-height:390px;overflow:auto;scrollbar-width:thin;white-space:normal;}
.ctdescription{padding:6px 8px;line-height:1.25;overflow-wrap:anywhere;}
.cthead .ctdescription table{width:100%;border-collapse:collapse;font:inherit;}
.cthead .ctdescription td{padding:3px 0;border:0;border-bottom:1px solid #eef2f7;background:transparent;color:#25334a;white-space:normal;vertical-align:top;}
.cthead .ctdescription td:first-child:not([colspan]){width:auto;max-width:100px;padding-right:8px;color:#64748b;font-size:12px;}
.ctpreview{padding:0 14px 14px;overflow-x:auto;}
.cthead .ctpreview table{width:100%;border:0!important;border-spacing:6px;background:transparent;}
.cthead .ctpreview td{padding:0;border:0;background:#f8fafc;text-align:center;vertical-align:middle;}
.ctpreview img{display:block;width:100%;min-width:90px;max-width:290px;height:150px;object-fit:contain;border:1px solid #e8edf4;border-radius:9px;background:#fff;padding:8px;transition:box-shadow .15s;}
.ctpreview img:hover{box-shadow:0 3px 12px #17345a20;}
@media(max-width:900px){.ctoverview{grid-template-columns:minmax(0,1fr) minmax(0,32%);}.ctinfocard{width:auto;}.ctdetails{max-height:300px;}.cthead{padding:8px;border-radius:12px;}.ctpreview img{height:130px;}}
#tmenu{display:flow-root;margin-bottom:0;padding-bottom:0;}#tmenu>ul{margin-bottom:0;}#ctframes{clear:both;margin-top:0;padding-top:0;}

@media(min-width:901px){.ctoverview{align-items:stretch;max-height:var(--ct-visible-height);grid-template-rows:minmax(0,1fr);}.ctfilters{min-height:0;grid-auto-rows:minmax(0,1fr);}.ctselect,.ctinfocard{display:flex;flex-direction:column;min-height:0;}.ctselect>.ctcardtitle,.ctinfocard>.ctcardtitle{flex-shrink:0;}.ctselect>div:not(.ctcardtitle){display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;}.cthead .ctselect select{flex:1 1 auto;min-height:0;max-height:100%;}.ctinfocard>.ctdetails{flex:1 1 auto;min-height:0;overflow:auto;}}
.ctitemdialog{width:min(900px,94vw);max-width:94vw;max-height:92vh;padding:0;border:1px solid #dce4ee;border-radius:16px;background:#f4f7fb;color:#25334a;box-shadow:0 24px 100px #0005;font:14px/1.45 system-ui,Segoe UI,sans-serif;overflow:hidden;}
.ctitemdialog[open]{display:flex;flex-direction:column;}.ctitemdialog::backdrop,.ctitemconfirm::backdrop{background:#0f172a99;backdrop-filter:blur(4px);}.ctitemdialog *{box-sizing:border-box;}
.ctitemheader{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;background:white;border-bottom:1px solid #e2e8f0;}.ctitemeyebrow{font-size:10px;letter-spacing:.12em;font-weight:700;color:#2563eb;}.ctitemheader h2{font-size:16px;margin:1px 0 0;overflow-wrap:anywhere;}
.ctitemdialog button,.ctitemconfirm button{padding:5px 12px;border:1px solid #cbd5e1;border-radius:8px;background:white;color:#334155;font:inherit;cursor:pointer;}.ctitemdialog button:hover,.ctitemconfirm button:hover{background:#eaf1fc;}.ctitemheader .ctitemclose{font-size:26px;line-height:1;padding:5px 10px;}.ctitembody{padding:6px 12px;overflow:auto;min-height:0;}.ctitemfooter{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px;padding:6px 12px;background:white;border-top:1px solid #e2e8f0;flex-shrink:0;}.ctitemfooter .ctitemprimary{background:#2563eb;color:white;border-color:#2563eb;}.ctitemfooter .ctitemprimary:hover{background:#1d4ed8;}
.ctitemdialog #ctped{white-space:normal;cursor:auto;}.ctitemdialog #ctped>table{width:100%;border-collapse:separate;border-spacing:0 2px;}.ctitemdialog #ctped>table>tbody>tr>td,.ctitemdialog #ctped>table>tr>td{padding:0 8px 0 0;border:0;background:transparent;vertical-align:middle;}.ctitemdialog #ctped>table>tbody>tr>td:first-child,.ctitemdialog #ctped>table>tr>td:first-child{color:#334155;font-size:14px;min-width:120px;width:140px;text-align:right;}
.ctitemdialog #ctped input[type=text],.ctitemdialog #ctped textarea{width:100%!important;min-width:0!important;padding:3px 8px;border:1px solid #cbd5e1;border-radius:8px;background:white;color:#1e293b;font:14px/1.4 system-ui,Segoe UI,sans-serif;}.ctitemdialog #ctped textarea{min-height:80px;max-height:40vh;resize:vertical;}.ctitemdialog #ctped input:disabled,.ctitemdialog #ctped textarea:disabled{background:#eaf0f6;color:#334155;opacity:1;}.ctitemdialog input:focus-visible,.ctitemdialog textarea:focus-visible,.ctitemdialog button:focus-visible{outline:2px solid #60a5fa;outline-offset:2px;}.ctitemdialog #ctped img[id^=ctimg]{max-width:180px;object-fit:contain;border-radius:8px;background:white;}.ctitemdialog #ctped td[colspan]{overflow-x:auto;}.ctitemconfirm{max-width:90vw;padding:24px;border:0;border-radius:12px;color:#25334a;font:14px/1.5 system-ui;}.ctitemconfirm button{margin:4px;}
@media(max-width:600px){.ctitemheader,.ctitembody{padding:6px 10px;}.ctitemheader h2{font-size:16px;}.ctitemdialog #ctped>table>tbody>tr,.ctitemdialog #ctped>table>tr{display:flex;flex-wrap:wrap;gap:2px;}.ctitemdialog #ctped>table>tbody>tr>td,.ctitemdialog #ctped>table>tr>td{width:100%;}.ctitemfooter{padding:6px 10px;}.ctitemdialog #ctped img{max-width:100%;}}

.ctitemdialog #fileuploader,.ctitemdialog #ctped img[onclick^=imgfinder]{cursor:pointer;}

.ctitemdialog #ctped img[onclick],.ctpreview img[onclick],#ctframes img.frcimg{cursor:pointer;}

.ctitemdialog #ctuploadbutton{cursor:pointer!important;}

.ctitemdialog input[type=file]::file-selector-button{cursor:pointer!important;}
.ctitemdialog input[type=file]::-webkit-file-upload-button{cursor:pointer!important;}

.ctitemdialog #ctped>table>tbody>tr>td:last-child,.ctitemdialog #ctped>table>tr>td:last-child{padding-right:0;}

.ctimageurl{display:flex;align-items:center;gap:6px;min-width:0;}.ctitemdialog #ctped .ctimageurl input{flex:1;width:0!important;}.ctimageurl>img{flex:0 0 auto;width:25px;}

.ctitemdialog #ctped td.ctitemphotos{width:auto;min-width:0;text-align:center;padding:4px 0;}.ctitemimages{max-width:100%;overflow-x:auto;}.ctitemimages>table{width:auto;margin:0 auto;}.ctitemdialog .ctuploadrow #fileuploader{display:flex;flex-direction:column;align-items:flex-start;gap:4px;}.ctitemdialog #ctuploadstatus{font-size:12px;line-height:1.4;overflow-wrap:anywhere;max-width:220px;}.ctitemdialog #ctuploadbutton:disabled{opacity:.6;cursor:wait!important;}

.ctitemdialog #ctped .ctuploadrow>td{vertical-align:middle;}

.ctitemdialog #ctped input[type=text],.ctitemdialog #ctped textarea{color:#111827;-webkit-text-fill-color:#111827;font-size:16px;font-weight:500;opacity:1;}
.ctitemdialog #ctped input:disabled,.ctitemdialog #ctped textarea:disabled{color:#1f2937;-webkit-text-fill-color:#1f2937;opacity:1;}

.ctfilters .ctselect{flex:0 0 auto;width:var(--ct-option-width,max-content);min-width:0;max-width:none;}.ctfilters .ctcardtitle{white-space:nowrap;font-size:inherit;overflow:hidden;}.cthead .ctfilters .ctselect select{width:100%;min-width:100%;}
.ctoverview>.ctinfocard{flex:0 0 auto;width:max-content;max-width:min(240px,45%);max-height:calc(var(--ct-visible-height) - 18px);}.ctinfocard .ctdescription table{width:100%;table-layout:fixed;max-width:100%;}.cthead .ctinfocard .ctdescription td:first-child:not([colspan]){width:36%;max-width:none;}.ctinfocard .ctdescription td{overflow-wrap:anywhere;}.ctinfocard .ctdetails{max-width:min(240px,80vw);}

.ctinfocard .ctpreview{padding:0 6px 6px;}.cthead .ctinfocard .ctpreview table{table-layout:fixed;border-spacing:2px;}.ctinfocard .ctpreview img{width:100%;min-width:0;max-width:100%;}

/* Compact catalog article columns; keep scrolling as a fallback. */
.ctarticlelist{max-width:100%;min-width:0;}
.ctarticlelist>table{width:100%!important;max-width:none;table-layout:auto;font-size:var(--ct-list-font,16px);}
.ctarticlelist>table th,.ctarticlelist>table td{padding:2px 4px;box-sizing:border-box;}
.ctarticlelist>table th,.ctarticlelist>table td{white-space:nowrap;overflow-wrap:normal;word-break:normal;max-width:none;}


.ctarticlelist>table img.frcimg{max-width:70px;max-height:40px;min-height:0;}
