/* ===== AbSoMz -- nordico/druidico oscuro. Reescrito completo. ===== */

[style*="chain.gif"], [style*="box-top.gif"], [style*="box-bottom.gif"],
[style*="corner-tl.gif"], [style*="corner-tr.gif"], [style*="corner-bl.gif"], [style*="corner-br.gif"],
[style*="border-1.gif"] { background-image: none !important; }

/* Menu lateral */
#MenuColumn { background: rgba(4,6,10,0.75); padding: 6px 0; }
.MenuButton, .MenuButton .Button { background-image: none !important; }
.MenuButton { background: linear-gradient(180deg, #16324a 0%, #09141f 100%) !important; border-radius: 6px 6px 0 0; }
.MenuButton .Button { background: linear-gradient(180deg, #244a68 0%, #0d2032 100%) !important; }
.menuitem { margin-bottom: 6px; }
.Submenu { background-color: #08090c !important; border-left: 0 !important; border-radius: 0 0 6px 6px; padding-bottom: 4px; }
.Submenu a:link, .Submenu a:visited, .Submenu a:focus { color: #c9d2da; }
.Submenu a:hover, .Submenu a:active { color: #ffffff; }
.SubmenuitemLabel { border-bottom: 1px solid #1a1d22; }

/* Paneles de contenido */
.Box { border: 1px solid #3a1010 !important; border-radius: 8px !important; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
.Content .BorderTitleText { background: linear-gradient(180deg, #0d1420 0%, #04070c 100%) !important; }
.NewsHeadlineBackground { background: linear-gradient(180deg, #4a1414 0%, #1a0505 100%) !important; }
.Content .Title { color: #e6e6e6; text-shadow: 1px 1px 2px #000; font-weight: bold; }
.Themebox { border: 1px solid #234a2a; border-radius: 8px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
.Themebox a:link, .Themebox a:visited { color: #e8dcc0; }

/* Logo */
#LeftArtwork { height: 140px !important; width: 235px !important; top: -140px !important; left: 4px !important; }
#LeftArtwork #TibiaLogoArtworkTop { height: 140px !important; width: 235px !important; top: 0 !important; left: 0 !important; }
#Footer, #Footer a:link, #Footer a:visited, #Footer a:focus { color: #9aa6b0; }

/* ===== Login / Create Account / Download -- una sola fuente de tamano, todo lo demas al 100% ===== */
#Loginbox #LoginBottom, #Loginbox .Bottom, #Loginbox .SmallBoxBottom { display: none !important; height: 0 !important; width: 0 !important; visibility: hidden !important; }
#Loginbox { overflow: visible !important; height: auto !important; }

#LoginButtonContainer { width: 170px !important; height: 60px !important; margin: 0 auto 14px auto !important; background: none !important; border: none !important; }
#LoginButtonContainer * { width: 100% !important; height: 100% !important; margin: 0 !important; padding: 0 !important; }
#ButtonText { background-repeat: no-repeat !important; background-size: 100% 100% !important; display: block !important; }

#Loginbox .Loginstatus { width: 170px !important; height: 60px !important; margin: 0 auto 14px auto !important; background: none !important; border: none !important; }
#Loginbox .Loginstatus * { width: 100% !important; height: 100% !important; margin: 0 !important; padding: 0 !important; }
#LoginstatusText_2_1 { background-repeat: no-repeat !important; background-size: 100% 100% !important; display: block !important; }
#LoginstatusText_2_2 { display: none !important; width: 0 !important; height: 0 !important; }

.SmallMenuBox .SmallBoxButtonContainer { width: 170px !important; height: 60px !important; margin: 0 auto !important; background: none !important; border: none !important; }
.SmallMenuBox .SmallBoxButtonContainer > a { display: block !important; width: 100% !important; height: 100% !important; }
.SmallMenuBox .SmallBoxButtonContainer * { width: 100% !important; height: 100% !important; margin: 0 !important; padding: 0 !important; }
.MediumButtonText { background-repeat: no-repeat !important; background-size: 100% 100% !important; display: block !important; }
.MediumButtonOver { display: none !important; width: 0 !important; height: 0 !important; }

#ButtonText:hover, .MediumButtonText:hover, #LoginstatusText_2:hover { filter: brightness(1.25) contrast(1.1); }

/* ===== FINAL: fuerza el tamano real de Create Account, gana a cualquier regla anterior ===== */
#LoginstatusText_2 { width: 170px !important; height: 60px !important; display: block !important; }

/* ===== Login y Download reconstruidos igual que Create Account: un solo elemento, hover simple ===== */
#LoginButtonFinal:hover, #DownloadButtonFinal:hover { filter: brightness(1.25) contrast(1.1); }

/* ===== paneles de contenido con el arte nuevo (franjas) ===== */
@font-face { font-family: 'AbMartel'; src: url(martel.ttf) format('truetype'); font-weight: normal; font-style: normal; }
.abz-panel { width: 100%; margin: 0 0 14px 0; padding: 0; position: relative; }
.abz-panel-top { height: 50px; position: relative; background: url(images/panel/panel_top.png) no-repeat left top; background-size: 100% 100%; }
.abz-panel-title { position: absolute; left: 20px; top: 12px; height: 30px; line-height: 30px; font-family: 'AbMartel', Georgia, serif; font-size: 20px; color: #f2f2f2; text-shadow: 1px 1px 2px #000; }
.abz-panel-mid { background: #e6d9c5 url(images/panel/panel_mid.png) repeat-y left top !important; background-size: 100% 20px !important; padding: 8px 16px 6px 16px !important; min-height: 0 !important; height: auto !important; margin: 0 !important; border: 0 !important; }
.abz-panel-bot { height: 22px; margin-top: -1px; background: url(images/panel/panel_bot.png) no-repeat left top; background-size: 100% 100%; }

/* ===== titulares rojos de noticias con el arte nuevo ===== */
.abz-panel .NewsHeadline { margin: 2px 0 8px 0 !important; }
.abz-panel .NewsHeadlineBackground { background: url(images/panel/panel_redbar.png) no-repeat left top !important; background-size: 100% 100% !important; height: 42px !important; margin: 0 !important; border: 0 !important; position: relative !important; }
.abz-panel .NewsHeadlineIcon { position: absolute !important; top: 9px !important; left: 8px !important; margin: 0 !important; }
.abz-panel .NewsHeadlineDate { position: absolute !important; top: 15px !important; left: 44px !important; width: 90px !important; font-size: 8pt !important; color: #ffffff !important; }
.abz-panel .NewsHeadlineText { position: relative !important; top: 12px !important; left: 135px !important; font-size: 11pt !important; font-weight: bold !important; color: #ffffff !important; }
.abz-panel .NewsHeadlineAuthor { position: absolute !important; top: 14px !important; right: 12px !important; font-size: 9pt !important; color: #ffffff !important; }

/* ===== sidebar: cajas con el arte nuevo (Highscores, Donate, Server Save) ===== */
#RightArtwork { display: none !important; }
.Themebox { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: none !important; }
.abz-side-title { display: block; text-align: center; font-family: 'AbMartel', Georgia, serif; font-size: 16px; line-height: 24px; color: #f0f0f0; text-shadow: 1px 1px 2px #000; }
.abz-side-btn { display: block; text-align: center; text-decoration: none !important; font-family: 'AbMartel', Georgia, serif; font-size: 12px; color: #e8dcc0 !important; text-shadow: 1px 1px 2px #000; cursor: pointer; }
.abz-side-btn:hover { color: #ffffff !important; filter: brightness(1.3); }

.abz-hs { width: 180px; margin: 0 0 10px 0; }
.abz-hs-top { height: 79px; position: relative; background: url(images/sidebar/hs_top.png) no-repeat left top; background-size: 100% 100%; }
.abz-hs-top .abz-side-title { position: absolute; left: 0; right: 0; top: 53px; }
.abz-hs-mid { background: #1d1e21 url(images/sidebar/hs_mid.png) repeat-y left top; background-size: 100% 12px; padding: 4px 12px 10px 12px; }
.abz-hs-bot { height: 45px; margin-top: -1px; position: relative; background: url(images/sidebar/hs_bot.png) no-repeat left top; background-size: 100% 100%; }
.abz-hs-bot .abz-side-btn { position: absolute; left: 20px; width: 140px; top: 5px; height: 22px; line-height: 22px; }
.abz-hs-row { position: relative; height: 44px; padding-left: 44px; display: flex; align-items: center; }
.abz-hs-outfit { position: absolute; left: -24px; bottom: 2px; width: 64px; height: 64px; background-repeat: no-repeat; background-position: bottom right; }
.abz-hs-text { font-family: 'AbMartel', Georgia, serif; font-size: 11px; line-height: 14px; color: #b5aa96; max-width: 112px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abz-hs-text a, .abz-hs-text a:link, .abz-hs-text a:visited { color: #efe6d3 !important; text-decoration: none !important; }
.abz-hs-text small { font-size: 10px; }

.abz-dn { width: 180px; height: 155px; margin: 0 0 10px 0; position: relative; background: url(images/sidebar/box_donate.png) no-repeat left top; background-size: 100% 100%; }
.abz-dn-title { position: absolute; left: 0; right: 0; top: 8px; }
.abz-dn .abz-side-btn { position: absolute; left: 19px; width: 142px; top: 117px; height: 21px; line-height: 21px; }

.abz-ss { width: 180px; height: 112px; margin: 0 0 10px 0; position: relative; background: url(images/sidebar/box_serversave.png) no-repeat left top; background-size: 100% 100%; }
.abz-ss-title { position: absolute; left: 0; right: 0; top: 8px; }
.abz-ss-label { position: absolute; left: 0; right: 0; top: 38px; text-align: center; font-family: 'AbMartel', Georgia, serif; font-size: 10px; color: #cdbfa6; }
.abz-ss-time { position: absolute; left: 27px; width: 120px; top: 58px; height: 37px; line-height: 37px; text-align: center; font-family: 'AbMartel', Georgia, serif; font-size: 20px; font-weight: bold; color: #e8dcc0; }

/* ===== sidebar 2: Telegram y Search Char con el arte nuevo + contador de Server Save ===== */
.abz-gb { width: 180px; margin: 0 0 10px 0; }
.abz-gb-top { height: 35px; position: relative; background: url(images/sidebar/gb_top.png) no-repeat left top; background-size: 100% 100%; }
.abz-gb-top .abz-side-title { position: absolute; left: 0; right: 0; top: 10px; }
.abz-gb-mid { background: #0c0d10 url(images/sidebar/gb_mid.png) repeat-y left top; background-size: 100% 4px; padding: 0 12px; }
.abz-gb-bot { height: 46px; margin-top: -1px; position: relative; background: url(images/sidebar/gb_bot.png) no-repeat left top; background-size: 100% 100%; }
.abz-gb-bot .abz-side-btn { position: absolute; left: 19px; width: 142px; top: 3px; height: 26px; line-height: 26px; }
.abz-sc-mid { padding: 6px 14px 8px 14px; }
.abz-sc-input { display: block; width: 100%; box-sizing: border-box; height: 24px; padding: 0 8px; border: 0; border-radius: 3px; background: #f2f2f2; color: #222; font-family: 'DejaVu Serif', Georgia, serif; font-size: 12px; text-align: center; }
.abz-sc-btn { border: 0; background: none; padding: 0; cursor: pointer; }
.abz-ss-label { font-family: 'DejaVu Serif', Georgia, serif !important; font-size: 10px !important; }
.abz-ss-time { font-family: 'DejaVu Serif', Georgia, serif !important; font-size: 19px !important; font-weight: bold !important; letter-spacing: 1px; color: #e8dcc0 !important; }

/* ===== sidebar 3: Rashid con el arte nuevo (sin placa de boton) ===== */
.abz-gb-bot-plain { height: 14px; margin-top: -1px; background: url(images/sidebar/gb_bot_plain.png) no-repeat left top; background-size: 100% 100%; }
.abz-rs-mid { position: relative; height: 72px; padding: 0; }
.abz-rs-outfit { position: absolute; left: 6px; top: 4px; width: 64px; height: 64px; background-repeat: no-repeat; background-position: bottom right; }
.abz-rs-text { position: absolute; left: 82px; top: 0; height: 72px; display: flex; flex-direction: column; justify-content: center; font-family: 'DejaVu Serif', Georgia, serif; font-size: 13px; line-height: 17px; color: #e8dcc0; text-align: left; }
.abz-rs-text small { font-size: 11px; color: #beb29c; }

/* ===== barra de estado (Download Client / Telegram Group / Players Online) con el arte nuevo ===== */
.abz-topbar { width: 100%; margin: 0 0 12px 0; }
.abz-topbar-bar { height: 36px; position: relative; background: url(images/panel/topbar.png) no-repeat left top; background-size: 100% 100%; }
.abz-topbar-bar .InfoBar { position: relative; top: 9px; height: 26px; margin: 0 14px; }
.abz-topbar .collapse { margin-top: 4px; }

/* ===== arreglos del sidebar: franjas repetibles con su marco, y letra con digitos en Highscores ===== */
#ThemeboxesColumn .abz-hs-mid { background-image: url(images/sidebar/hs_mid.png) !important; background-repeat: repeat-y !important; background-position: left top !important; background-size: 100% 12px !important; }
#ThemeboxesColumn .abz-gb-mid { background-image: url(images/sidebar/gb_mid.png) !important; background-repeat: repeat-y !important; background-position: left top !important; background-size: 100% 4px !important; }
#ThemeboxesColumn .abz-hs-text { font-family: 'DejaVu Serif', Georgia, serif !important; text-align: left !important; }

/* ===== cajas de contenido: diseno nuevo oscuro (pergamino, runas y ramas) ===== */
/* --- caja principal (todas las paginas) --- */
#ContentColumn .abz-panel-top { height: 103px !important; background: url(images/panel2/mn_top.png) no-repeat left top !important; background-size: 100% 100% !important; }
#ContentColumn .abz-panel-top .abz-panel-title { left: 0 !important; right: 0 !important; top: 13px !important; height: 30px !important; line-height: 30px !important; text-align: center !important; font-family: Georgia, 'DejaVu Serif', serif !important; font-size: 20px !important; font-weight: bold !important; letter-spacing: 0.5px !important; color: #c8b49a !important; text-shadow: 0 1px 0 #000, 0 0 5px #000 !important; }
#ContentColumn .abz-panel-mid { background-color: #342720 !important; background-image: url(images/panel2/mn_midtop.png), url(images/panel2/mn_tile.png) !important; background-repeat: no-repeat, repeat-y !important; background-position: left top, left 69px !important; background-size: 100% 69px, 100% 130px !important; padding: 8px 30px 26px 30px !important; color: #c9a582 !important; text-shadow: 1px 1px 2px rgba(0,0,0,0.85); }
#ContentColumn .abz-panel-bot { height: 97px !important; margin-top: -24px !important; position: relative !important; pointer-events: none; background: url(images/panel2/mn_bot.png) no-repeat left top !important; background-size: 100% 100% !important; }

/* --- ticker de noticias --- */
#ContentColumn #newsticker .abz-panel-top { height: 51px !important; background: url(images/panel2/tk_top.png) no-repeat left top !important; background-size: 100% 100% !important; }
#ContentColumn #newsticker .abz-panel-top .abz-panel-title { top: 15px !important; padding-right: 48px !important; box-sizing: border-box !important; }
#ContentColumn #newsticker .abz-panel-mid { background: #1e1816 url(images/panel2/tk_tile.png) repeat-y left top !important; background-size: 100% 90px !important; padding: 6px 30px 4px 30px !important; min-height: 35px !important; }
#ContentColumn #newsticker .abz-panel-mid, #ContentColumn #newsticker .abz-panel-mid * { color: #e8d1b9 !important; }
#ContentColumn #newsticker .abz-panel-mid * { background-color: transparent !important; }
#ContentColumn #newsticker .abz-panel-bot { height: 6px !important; margin-top: 0 !important; pointer-events: auto; background: url(images/panel2/tk_bot.png) no-repeat left top !important; background-size: 100% 100% !important; }

/* --- titulares de noticias: el primero se apoya sobre la barra roja del arte, los demas llevan su propia barra --- */
#ContentColumn .abz-panel .NewsHeadline { margin: 0 0 8px 0 !important; }
#ContentColumn .abz-panel .NewsHeadlineBackground { background: url(images/panel2/mn_redbar.png) no-repeat left top !important; background-size: 100% 100% !important; height: 42px !important; margin: 0 !important; border: 0 !important; position: relative !important; }
#ContentColumn .abz-panel .NewsHeadline:first-of-type { margin-top: -52px !important; }
#ContentColumn .abz-panel .NewsHeadline:first-of-type .NewsHeadlineBackground { background: none !important; }
#ContentColumn .abz-panel .NewsHeadlineIcon { position: absolute !important; top: 9px !important; left: 4px !important; margin: 0 !important; }
#ContentColumn .abz-panel .NewsHeadlineDate { position: absolute !important; top: 15px !important; left: 34px !important; width: 90px !important; font-size: 8pt !important; color: #c9b08a !important; }
#ContentColumn .abz-panel .NewsHeadlineText { position: relative !important; top: 12px !important; left: 112px !important; font-size: 11pt !important; font-weight: bold !important; color: #d5b98d !important; }
#ContentColumn .abz-panel .NewsHeadlineAuthor { position: absolute !important; top: 14px !important; right: 12px !important; font-size: 9pt !important; color: #c9b08a !important; }

/* --- enlaces y tablas viejas de las paginas interiores --- */
#ContentColumn .abz-panel-mid a:link, #ContentColumn .abz-panel-mid a:visited { color: #6aa9e9; }
#ContentColumn .abz-panel-mid a:hover, #ContentColumn .abz-panel-mid a:active { color: #a4cdf5; }
#ContentColumn .abz-panel-mid a[href*="t.me"], #ContentColumn .abz-panel-mid a[href*="telegram"] { color: #66c79a; }
#ContentColumn .abz-panel-mid .TableContainer, #ContentColumn .abz-panel-mid .TableContainer table { color: #5a2800; text-shadow: none; }
#ContentColumn .abz-panel-mid .TableContainer a:link, #ContentColumn .abz-panel-mid .TableContainer a:visited { color: #0c4a8f; }

/* ===== texto cremita en toda la caja + boton de comentar sobre la placa azul ===== */
#ContentColumn .abz-panel-mid td, #ContentColumn .abz-panel-mid p, #ContentColumn .abz-panel-mid div, #ContentColumn .abz-panel-mid span, #ContentColumn .abz-panel-mid li, #ContentColumn .abz-panel-mid b, #ContentColumn .abz-panel-mid strong, #ContentColumn .abz-panel-mid i, #ContentColumn .abz-panel-mid em, #ContentColumn .abz-panel-mid font, #ContentColumn .abz-panel-mid small, #ContentColumn .abz-panel-mid center, #ContentColumn .abz-panel-mid h1, #ContentColumn .abz-panel-mid h2, #ContentColumn .abz-panel-mid h3, #ContentColumn .abz-panel-mid h4 { color: #e8d1b9 !important; }
#ContentColumn .abz-panel-mid .TableContainer td, #ContentColumn .abz-panel-mid .TableContainer th, #ContentColumn .abz-panel-mid .TableContainer p, #ContentColumn .abz-panel-mid .TableContainer div, #ContentColumn .abz-panel-mid .TableContainer span, #ContentColumn .abz-panel-mid .TableContainer li, #ContentColumn .abz-panel-mid .TableContainer b, #ContentColumn .abz-panel-mid .TableContainer strong, #ContentColumn .abz-panel-mid .TableContainer i, #ContentColumn .abz-panel-mid .TableContainer em, #ContentColumn .abz-panel-mid .TableContainer font, #ContentColumn .abz-panel-mid .TableContainer small, #ContentColumn .abz-panel-mid .TableContainer center { color: #5a2800 !important; text-shadow: none !important; }
#ContentColumn .abz-panel-mid .TableContainer a:link, #ContentColumn .abz-panel-mid .TableContainer a:visited { color: #0c4a8f !important; }
#ContentColumn .abz-panel-bot .abz-comment-btn { position: absolute; left: 77.4%; width: 19.7%; top: 33px; height: 27px; line-height: 27px; text-align: center; font-family: Georgia, 'DejaVu Serif', serif; font-size: 11px; font-weight: bold; white-space: nowrap; color: #eef3ff !important; text-decoration: none !important; text-shadow: 0 1px 2px #061028, 0 0 4px #061028; pointer-events: auto; cursor: pointer; }
#ContentColumn .abz-panel-bot .abz-comment-btn:hover { color: #ffffff !important; filter: brightness(1.3); }

/* ===== enlaces resaltados como antes: azul, y verde para Telegram (tambien lo que lleven adentro: negritas, spans...) ===== */
#ContentColumn .abz-panel-mid a:link, #ContentColumn .abz-panel-mid a:visited, #ContentColumn .abz-panel-mid a:link *, #ContentColumn .abz-panel-mid a:visited * { color: #6aa9e9 !important; }
#ContentColumn .abz-panel-mid a:hover, #ContentColumn .abz-panel-mid a:active, #ContentColumn .abz-panel-mid a:hover *, #ContentColumn .abz-panel-mid a:active * { color: #a4cdf5 !important; }
#ContentColumn .abz-panel-mid a[href*="t.me"]:link, #ContentColumn .abz-panel-mid a[href*="t.me"]:visited, #ContentColumn .abz-panel-mid a[href*="telegram"]:link, #ContentColumn .abz-panel-mid a[href*="telegram"]:visited, #ContentColumn .abz-panel-mid a[href*="t.me"]:link *, #ContentColumn .abz-panel-mid a[href*="t.me"]:visited *, #ContentColumn .abz-panel-mid a[href*="telegram"]:link *, #ContentColumn .abz-panel-mid a[href*="telegram"]:visited * { color: #66c79a !important; }
#ContentColumn .abz-panel-mid a[href*="t.me"]:hover, #ContentColumn .abz-panel-mid a[href*="telegram"]:hover, #ContentColumn .abz-panel-mid a[href*="t.me"]:hover *, #ContentColumn .abz-panel-mid a[href*="telegram"]:hover * { color: #9be0bd !important; }
#ContentColumn #newsticker .abz-panel-mid a:link, #ContentColumn #newsticker .abz-panel-mid a:visited, #ContentColumn #newsticker .abz-panel-mid a:link *, #ContentColumn #newsticker .abz-panel-mid a:visited * { color: #6aa9e9 !important; }
#ContentColumn #newsticker .abz-panel-mid a:hover, #ContentColumn #newsticker .abz-panel-mid a:active, #ContentColumn #newsticker .abz-panel-mid a:hover *, #ContentColumn #newsticker .abz-panel-mid a:active * { color: #a4cdf5 !important; }
#ContentColumn #newsticker .abz-panel-mid a[href*="t.me"]:link, #ContentColumn #newsticker .abz-panel-mid a[href*="t.me"]:visited, #ContentColumn #newsticker .abz-panel-mid a[href*="telegram"]:link, #ContentColumn #newsticker .abz-panel-mid a[href*="telegram"]:visited, #ContentColumn #newsticker .abz-panel-mid a[href*="t.me"]:link *, #ContentColumn #newsticker .abz-panel-mid a[href*="t.me"]:visited *, #ContentColumn #newsticker .abz-panel-mid a[href*="telegram"]:link *, #ContentColumn #newsticker .abz-panel-mid a[href*="telegram"]:visited * { color: #66c79a !important; }
#ContentColumn .abz-panel-mid .TableContainer a:link *, #ContentColumn .abz-panel-mid .TableContainer a:visited * { color: #0c4a8f !important; }

/* ===== EVENT SCHEDULE: reconstruccion completa desde las imagenes reales ===== */

/* marco propio (no el generico de otras paginas), arriba y abajo */
.abz-panel:has(#eventscheduletablecontainer) > .abz-panel-top { height: 47px !important; background: url(images/calendar/cal_top.png) no-repeat left top !important; background-size: 100% 100% !important; }
.abz-panel:has(#eventscheduletablecontainer) > .abz-panel-bot { height: 54px !important; margin-top: 0 !important; background: url(images/calendar/cal_bot.png) no-repeat left top !important; background-size: 100% 100% !important; }

#eventscheduletablecontainer { padding: 0; }
#ContentColumn .abz-panel-mid .BoxContent[style*="scroll.gif"] { background-image: none !important; }

#eventscheduletablecontainer .CaptionEdgeLeftTop, #eventscheduletablecontainer .CaptionEdgeRightTop,
#eventscheduletablecontainer .CaptionBorderTop, #eventscheduletablecontainer .CaptionVerticalLeft,
#eventscheduletablecontainer .CaptionVerticalRight, #eventscheduletablecontainer .CaptionBorderBottom,
#eventscheduletablecontainer .CaptionEdgeLeftBottom, #eventscheduletablecontainer .CaptionEdgeRightBottom { display: none !important; }
#eventscheduletablecontainer .CaptionContainer { background: url(images/calendar/cal_sub.png) no-repeat left top !important; background-size: 100% 100% !important; height: 46px !important; border: 0 !important; margin: 0 0 6px 0 !important; padding: 0 !important; }
#eventscheduletablecontainer .CaptionInnerContainer, #eventscheduletablecontainer .Text { position: relative !important; height: 100% !important; padding: 0 !important; margin: 0 !important; }
.eventscheduleheadertop { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; min-width: 0 !important; margin: 0 !important; }
.eventscheduleheaderblockleft, .eventscheduleheaderdateblock { position: static !important; width: auto !important; margin: 0 !important; }
.eventscheduleheaderdateblock { font-family: Georgia, 'DejaVu Serif', serif; font-size: 17px; font-weight: bold; color: #c8b49a; text-shadow: 0 1px 2px #000; }
.eventscheduleheaderleft { display: none; }
.eventscheduleheaderblockright { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); margin: 0 !important; font-size: 10px; color: #a89476; }

#eventscheduletablecontainer table.Table1 { background: none !important; box-shadow: none !important; }
#eventscheduletablecontainer .InnerTableContainer { padding: 0 !important; }

#eventscheduletable { background: url(images/calendar/cal_body.png) no-repeat left top !important; background-size: 100% 100% !important; box-shadow: none !important; border: 0 !important; border-collapse: collapse; }
#eventscheduletable tr:first-child td { background: rgba(10,10,14,0.4) !important; color: #e8ddc8 !important; font-family: Georgia, 'DejaVu Serif', serif; font-weight: bold; font-size: 12px; text-align: center; height: 30px !important; border: 1px solid rgba(0,0,0,0.3) !important; }
#eventscheduletable td { border: 1px solid rgba(0,0,0,0.3) !important; position: relative; overflow: visible !important; }
#eventscheduletable td#default, #eventscheduletable td#today, #eventscheduletable td#other_day { background: transparent !important; color: #e8ddc8 !important; }
#eventscheduletable td#today { box-shadow: inset 0 0 0 2px rgba(216,186,138,0.55); }
#eventscheduletable .day { position: relative; z-index: 2; margin: 4px 0 0 5px; font-family: Georgia, 'DejaVu Serif', serif; font-size: 13px; color: #e8ddc8 !important; text-shadow: 1px 1px 2px #000; }
#eventscheduletable .day img { display: none; }
#eventscheduletable .day span::after { content: ''; display: inline-block; width: 13px; height: 13px; margin-left: 3px; vertical-align: middle; background: url(images/calendar/coin_icon.png) no-repeat center / contain; }

/* eventos: caja base (se agranda a toda la celda, sin importar el color) */
#eventscheduletable .HelperDivIndicator { position: absolute; inset: 2px; z-index: 1; display: block; width: auto !important; }
#eventscheduletable .event_name { position: absolute; inset: 0; width: auto !important; height: 100% !important; margin: 0 !important; padding: 26px 8px 6px 8px !important; box-sizing: border-box; display: flex; align-items: flex-end; font-family: Georgia, 'DejaVu Serif', serif; font-size: 10px !important; font-weight: bold; text-shadow: 0 1px 2px rgba(0,0,0,0.8); overflow: visible !important; }

/* ===== eventos por clase fija (no por atributo de estilo): a prueba de cualquier rareza del navegador ===== */
#eventscheduletable .event_name.event-blue {
  background-color: #24466e !important;
  background-image: url(images/calendar/leather_azul.png) !important;
  background-repeat: repeat !important;
  color: #a8abb2 !important;
}
#eventscheduletable .HelperDivIndicator.event-blue { position: absolute; inset: 2px; }
#eventscheduletable .HelperDivIndicator.event-blue::before, #eventscheduletable .HelperDivIndicator.event-blue::after {
  content: ''; position: absolute; width: 26px; height: 20px; background: url(images/calendar/corner_azul.png) no-repeat; background-size: 100% 100%; pointer-events: none;
}
#eventscheduletable .HelperDivIndicator.event-blue::before { top: 1px; right: 1px; }
#eventscheduletable .HelperDivIndicator.event-blue::after { bottom: 1px; left: 1px; transform: scaleX(-1); }
#eventscheduletable .event_name.event-blue::before {
  content: ''; position: absolute; bottom: 1px; right: 1px; width: 26px; height: 20px; background: url(images/calendar/corner_azul.png) no-repeat; background-size: 100% 100%; transform: scale(-1,-1); pointer-events: none;
}

#eventscheduletable .event_name.event-red {
  background-color: #7a1f28 !important;
  background-image: url(images/calendar/leather_roja.png) !important;
  background-repeat: repeat !important;
  color: #cfa082 !important;
}
#eventscheduletable .HelperDivIndicator.event-red { position: absolute; inset: 2px; }
#eventscheduletable .HelperDivIndicator.event-red::before, #eventscheduletable .HelperDivIndicator.event-red::after {
  content: ''; position: absolute; width: 26px; height: 20px; background: url(images/calendar/corner_roja.png) no-repeat; background-size: 100% 100%; pointer-events: none;
}
#eventscheduletable .HelperDivIndicator.event-red::before { top: 1px; right: 1px; }
#eventscheduletable .HelperDivIndicator.event-red::after { bottom: 1px; left: 1px; transform: scaleX(-1); }
#eventscheduletable .event_name.event-red::before {
  content: ''; position: absolute; bottom: 1px; right: 1px; width: 26px; height: 20px; background: url(images/calendar/corner_roja.png) no-repeat; background-size: 100% 100%; transform: scale(-1,-1); pointer-events: none;
}

#eventscheduletable .event_name.event-other { color: #f0ead9 !important; box-shadow: inset 0 0 12px rgba(0,0,0,0.35); }
