/* SaintForo — corrección visual de columnas, navegación y editor (23/11/2026).
   Deliberadamente no reemplaza permisos, formularios, SQL ni sesiones. */
body.saint-eco-forum .sf-forum-main .sm2-topic-list,
body.saint-eco-forum .sf-forum-main .sm2-forum-index{
  width:100%!important;table-layout:fixed!important;border-spacing:0!important;
}
@media(min-width:901px){
  /* Se fijan seis columnas reales; el título ya no fuerza width=100% de la tabla. */
  .sm2-topic-list col.sf-topic-icon-col{width:5.5%!important}
  .sm2-topic-list col.sf-topic-title-col{width:54.5%!important}
  .sm2-topic-list col.sf-topic-replies-col{width:9%!important}
  .sm2-topic-list col.sf-topic-author-col{width:10%!important}
  .sm2-topic-list col.sf-topic-views-col{width:9%!important}
  .sm2-topic-list col.sf-topic-last-col{width:12%!important}
  body.saint-eco-forum .sf-forum-main .sm2-topic-list tr>th,
  body.saint-eco-forum .sf-forum-main .sm2-topic-list tr>td{width:auto!important;box-sizing:border-box;vertical-align:middle}
  body.saint-eco-forum .sf-forum-main .sm2-topic-list .sf-topic-title-cell{padding-left:10px!important}
  body.saint-eco-forum .sf-forum-main .sm2-topic-list .sm2-topic-row>td:first-child{padding:7px 4px!important}
  body.saint-eco-forum .sf-forum-main .sm2-topic-list tr>td:last-child{white-space:normal!important;overflow-wrap:anywhere;font-size:11px}
  body.saint-eco-forum .sf-forum-main .sm2-topic-list tr>th{white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;font-size:11px!important;padding:10px 6px!important}
  /* Índice: ícono compacto y título/descripción cerca del emblema. */
  .sm2-forum-index col.sf-index-icon-col{width:7%!important}
  .sm2-forum-index col.sf-index-forum-col{width:48%!important}
  .sm2-forum-index col.sf-index-topics-col{width:10%!important}
  .sm2-forum-index col.sf-index-posts-col{width:10%!important}
  .sm2-forum-index col.sf-index-last-col{width:25%!important}
  body.saint-eco-forum .sf-forum-main .sm2-forum-index tr>td,
  body.saint-eco-forum .sf-forum-main .sm2-forum-index tr>th{width:auto!important;box-sizing:border-box}
  body.saint-eco-forum .sf-forum-main .sm2-forum-index .sm2-forum-row>td:first-child{padding:8px 3px!important}
  body.saint-eco-forum .sf-forum-main .sm2-forum-index .sm2-forum-row>td:nth-child(2){padding:10px 10px 10px 5px!important}
  body.saint-eco-forum .sf-forum-main .sm2-forum-index .sm2-forum-row>td{height:auto!important;line-height:1.4}
  /* Una sola línea: la campana y Moderación siguen dentro del navbar. */
  body.saint-eco-forum .sf-forum-nav .sf-nav-links{flex-wrap:nowrap!important;gap:5px!important;padding:10px 12px!important;min-width:0}
  body.saint-eco-forum .sf-forum-nav .sf-nav-links>.sf-nav-link{flex:0 0 auto;min-height:37px;padding:7px 10px!important;font-size:11px!important;white-space:nowrap}
  body.saint-eco-forum .sf-forum-nav .sf-nav-widgets{flex:0 0 auto;align-self:center;margin-left:auto!important;gap:7px;white-space:nowrap}
}
@media(min-width:901px) and (max-width:1200px){
  body.saint-eco-forum .sf-forum-nav .sf-nav-links{gap:3px!important;padding:8px 6px!important}
  body.saint-eco-forum .sf-forum-nav .sf-nav-links>.sf-nav-link{padding:6px 6px!important;font-size:10px!important}
}
body.saint-eco-forum .sf-forum-main .sm2-topic-row>td{padding:10px 7px!important}
body.saint-eco-forum .sf-forum-main .sm2-forum-row>td{border-bottom:1px solid rgba(198,153,100,.12)}
/* Editor moderno es un DIV de lectura/edición, ya no una tabla BBCode de 11 columnas. */
body.saint-eco-forum .sf-forum-main .saint-compose-form{width:100%!important;max-width:100%!important;min-width:0;margin:10px 0!important;box-sizing:border-box}
body.saint-eco-forum .sf-forum-main .saint-compose-form>.forumline{table-layout:fixed!important;width:100%!important}
body.saint-eco-forum .sf-forum-main .saint-compose-form>.forumline>tbody>tr>td.row1{width:22%!important}
body.saint-eco-forum .sf-forum-main .saint-compose-form>.forumline>tbody>tr>td.row2{width:78%!important}
body.saint-eco-forum .sf-forum-main .saint-compose-form #saint-post-editor-table{
 display:block;box-sizing:border-box;table-layout:auto;max-width:none!important;width:100%!important;min-width:0!important;
}
body.saint-eco-forum .sf-forum-main .saint-compose-form #saint-rich-editor{
 width:100%!important;max-width:none!important;box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;gap:5px;
}
body.saint-eco-forum .sf-forum-main .saint-compose-form #saint-post-editor-table textarea[name="message"]{
 width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box;min-height:310px;
}
body.saint-eco-forum .sf-forum-main .saint-compose-form input[name="subject"]{width:100%!important;max-width:100%!important}
body.saint-eco-forum .sf-forum-main .saint-compose-form #saint-compose-plus{width:100%;max-width:100%;box-sizing:border-box;display:flex;align-items:center;flex-wrap:wrap;gap:6px}
body.saint-eco-forum .sf-forum-main .saint-compose-form .saint-legacy-bbcodes{display:none!important}
@media(max-width:900px){
  body.saint-eco-forum .sf-forum-main .saint-compose-form>.forumline>tbody>tr>td.row1{width:25%!important}
  body.saint-eco-forum .sf-forum-main .saint-compose-form>.forumline>tbody>tr>td.row2{width:75%!important}
}
@media(max-width:600px){
  body.saint-eco-forum .sf-forum-main .saint-compose-form>.forumline>tbody>tr>td.row1,
  body.saint-eco-forum .sf-forum-main .saint-compose-form>.forumline>tbody>tr>td.row2{display:block!important;width:100%!important;box-sizing:border-box}
  body.saint-eco-forum .sf-forum-main .saint-compose-form #saint-rich-editor{gap:4px}
  body.saint-eco-forum .sf-forum-main .saint-compose-form #saint-post-editor-table textarea[name="message"]{min-height:245px}
}
/* Ventana de cuenta: se agrega al BODY para quedar por encima de la barra fija. */
body.sf-account-modal-open{overflow:hidden!important}
.sf-account-overlay[hidden]{display:none!important}
.sf-account-overlay{position:fixed!important;inset:0!important;z-index:120100!important;background:rgba(0,0,0,.76);display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}
.sf-account-dialog{box-sizing:border-box;width:min(670px,100%);max-height:calc(100dvh - 32px);border:1px solid #a37746;border-radius:10px;background:#111617;box-shadow:0 20px 70px #000c;overflow:hidden}
.sf-account-dialog-bar{height:46px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px 8px 17px;border-bottom:1px solid #765432;background:linear-gradient(110deg,#37281e,#161a1b);color:#ecd09d;font:700 14px/1.3 Arial,sans-serif}
.sf-account-dialog-close{appearance:none;border:1px solid #82603d;border-radius:6px;cursor:pointer;background:#231e1a;color:#ffe2af;font-size:22px;width:36px;height:32px;line-height:1}
.sf-account-dialog-close:hover,.sf-account-dialog-close:focus-visible{background:#5a3622;border-color:#d4a66b}
.sf-account-dialog iframe{display:block;width:100%;height:min(430px,calc(100dvh - 108px));border:0;background:#111617}
@media(max-width:600px){.sf-account-overlay{padding:9px}.sf-account-dialog{width:100%}.sf-account-dialog iframe{height:min(540px,calc(100dvh - 80px));}}

/* Colgroup explícito: con table-layout:fixed, los anchos en TD de filas
   posteriores no influyen, por eso antes quedaban dos mitades iguales. */
@media(max-width:600px){
  body.saint-eco-forum .sf-forum-main .saint-compose-form>.forumline,
  body.saint-eco-forum .sf-forum-main .saint-compose-form>.forumline>tbody,
  body.saint-eco-forum .sf-forum-main .saint-compose-form>.forumline>tbody>tr{display:block!important;width:100%!important}
  body.saint-eco-forum .sf-forum-main .saint-compose-form>.forumline>tbody>tr>td,
  body.saint-eco-forum .sf-forum-main .saint-compose-form>.forumline>tbody>tr>th{display:block!important;width:100%!important;box-sizing:border-box}
}
@media(min-width:901px){
  body.saint-eco-forum .sf-forum-main .sm2-forum-index th,
  body.saint-eco-forum .sf-forum-main .sm2-topic-list th{text-align:center!important}
}
