
/* RF x30 Design 3.0 — Monsters, dedicated styles */
.monsters-list-page,.monster-detail-page{max-width:1400px;margin:0 auto;padding:12px 18px 34px;color:#eaf1f5}
.monsters-list-page *,.monster-detail-page *{box-sizing:border-box}
.monsters-list-page header,.monster-detail-page header{border:1px solid #4b5e6b;border-left:3px solid #d4aa6d;background:#263847;border-radius:6px;padding:12px 16px;margin:0 0 12px}
.monsters-list-page h1,.monster-detail-page h1{font-size:23px;color:#f4d6a1;margin:0}
.monsters-list-page h2,.monster-detail-page h2{color:#f4d6a1;font-size:18px;margin:0 0 10px}
.monsters-list-page .level-impact-card{display:block;border:1px solid #475c69;border-radius:7px;background:#1d2b36;padding:12px 15px;margin-bottom:14px}
.monsters-list-page .impact-header{font-weight:750;color:#f4ce8e;font-size:15px;margin:0 0 10px}
.monsters-list-page .impact-columns{display:grid;grid-template-columns:1fr 1.7fr;gap:12px}
.monsters-list-page .impact-col{background:#233543;border:1px solid #3d5362;border-radius:5px;padding:10px;min-width:0}
.monsters-list-page .impact-col-title{font-weight:700;color:#e7eef3;margin-bottom:6px;font-size:13px}
.monsters-list-page .impact-table{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 8px}
.monsters-list-page .impact-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #394b59;padding:4px 2px;font-size:12px;color:#d6e1e8}
.monsters-list-page .impact-row span:last-child{white-space:nowrap;color:#aee0b2;font-weight:700}
.monsters-list-page .negative .impact-row span:last-child{color:#ffbd9f}
.monsters-list-page .impact-note{color:#c0d0db;font-size:12px;margin-top:8px}
.monsters-list-page .calculator-block{background:#1b2b37;border:1px solid #496273;border-radius:7px;padding:14px 16px;margin:0 0 14px;max-width:100%}
.monsters-list-page .calculator-header{display:flex;align-items:center;gap:10px;margin:0 0 8px}
.monsters-list-page .calculator-header h2{margin:0;font-size:17px}
.monsters-list-page .calculator-toggle{display:none}
.monsters-list-page .calculator-body{display:block!important;padding:0!important;max-height:none!important;height:auto!important;overflow:visible!important}
.monsters-list-page .calc-form{display:flex;align-items:end;justify-content:flex-start;flex-wrap:wrap;gap:10px}
.monsters-list-page .calc-field{display:flex;flex-direction:column;gap:5px;position:relative;margin:0;width:260px;max-width:100%}
.monsters-list-page .calc-field:has(#killCount){width:142px}
.monsters-list-page .calc-field label{font-size:12px;font-weight:650;color:#d8e3eb;white-space:normal}
.monsters-list-page .calc-field input{background:#13232e;color:#f3f7fa;border:1px solid #587184;border-radius:5px;padding:9px 10px;height:38px;width:100%;font-size:13px}
.monsters-list-page .calc-field input::placeholder{color:#a7b8c5}
.monsters-list-page .calc-btn{background:#354b5b;border:1px solid #748b9c;border-radius:5px;color:#fff;height:38px;padding:0 16px;cursor:pointer}
.monsters-list-page .calc-btn:hover{background:#4a6577}
.monsters-list-page .suggestions-list{position:absolute;top:100%;left:0;right:0;z-index:30;max-height:280px;overflow-y:auto;background:#203340;border:1px solid #597184;border-radius:4px}
.monsters-list-page .suggestions-list:empty{display:none}
.monsters-list-page .suggestions-list *{color:#edf4f8}
.monsters-list-page .calc-result{font-size:13px;color:#e1ebf1;line-height:1.5;margin-top:10px;max-width:100%;overflow-wrap:anywhere}
.monsters-list-page .filters-section{background:#1c2c38;border:1px solid #455e70;border-radius:7px;padding:12px;margin:0 0 12px}
.monsters-list-page .filters-form{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0}
.monsters-list-page .search-box{flex:0 1 245px;margin:0;padding:0;min-width:185px}
.monsters-list-page .search-box input{height:36px;width:100%;background:#14232e;color:#f4f7fa;border:1px solid #536f83;border-radius:5px;padding:8px 10px;font-size:13px}
.monsters-list-page .monster-grade-buttons{display:flex;gap:5px;flex:1 1 430px;flex-wrap:wrap}
.monsters-list-page .monster-grade-option{position:relative;cursor:pointer;display:inline-flex;align-items:center;min-height:34px;padding:6px 11px;border-radius:5px;background:#293c4a;border:1px solid #496071;color:#d7e3e9;font-weight:650;font-size:12px}
.monsters-list-page .monster-grade-option:hover{border-color:#d5b57f;color:#fff}
.monsters-list-page .monster-grade-option.is-active,.monsters-list-page .monster-grade-option:has(input:checked){background:#5c4931;border-color:#d4a965;color:#ffe6b3}
.monsters-list-page .monster-grade-option input{position:absolute;opacity:0;width:1px;height:1px}
.monsters-list-page .monster-grade-option:focus-within{outline:2px solid #d8b77e;outline-offset:2px}
.monsters-list-page .filters-form button,.monsters-list-page .clear-btn{display:inline-flex;align-items:center;justify-content:center;background:#354b5b;border:1px solid #6e8494;border-radius:5px;color:#f7fbff;text-decoration:none;padding:8px 12px;min-height:36px;font-size:12px;white-space:nowrap}
.monsters-list-page .results-info{background:#1e303d;border-left:3px solid #d4aa6d;padding:10px 13px;border-radius:4px;color:#dfebf1;margin:10px 0}
.monsters-list-page .table-responsive{width:100%;overflow-x:auto}
.monsters-list-page .monsters-table{border-collapse:collapse;width:100%;table-layout:auto;background:#1e2d38;font-size:12px;color:#e4edf3}
.monsters-list-page .monsters-table th{background:#30424f;color:#f4c991;text-align:left;white-space:nowrap;padding:9px 10px;border:1px solid #445864}
.monsters-list-page .monsters-table td{border:1px solid #3d5261;padding:8px 10px;background:#1d2c38;color:#e8f1f6}
.monsters-list-page .monsters-table tr:nth-child(even) td{background:#243542}
.monsters-list-page .monsters-table tbody tr:hover td{background:#334a59}
.monsters-list-page .monsters-table strong{color:#f2f6f8}
.monsters-list-page .monsters-table .element{display:inline-block;margin:2px;padding:2px 5px;border-radius:3px;background:#243847;color:#f1f5f7}
.monsters-list-page .monsters-table .number{white-space:nowrap}
.monster-detail-page .breadcrumbs{margin-bottom:10px}
.monster-detail-page .breadcrumbs a{color:#dbbf8e}
.monster-detail-page .monster-header{margin:0 0 12px}
.monster-detail-page .monster-stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}
.monster-detail-page .stat-card{min-width:0;background:#20323f;border:1px solid #496271;border-radius:7px;padding:12px 14px;box-shadow:none}
.monster-detail-page .stat-card h3{margin:0 0 9px;font-size:15px;color:#f0cf99}
.monster-detail-page .stats-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid #3b5060;background:transparent}
.monster-detail-page .stats-row:last-child{border-bottom:0}
.monster-detail-page .stats-row .stat-label{color:#c2d4df;font-size:12px}
.monster-detail-page .stats-row .stat-value{color:#f1f5f8;font-size:13px;font-weight:700;text-align:right;white-space:nowrap}
.monster-detail-page .loot-section{background:#1b2934;border:1px solid #425968;border-radius:8px;padding:14px 16px}
.monster-detail-page .loot-section h2{margin:0 0 12px;font-size:18px}
.monster-detail-page .loot-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.monster-detail-page .loot-group{background:#233543;border:1px solid #496071;border-radius:7px;padding:0;min-width:0;overflow:hidden}
.monster-detail-page .loot-group-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;background:#304452;border-bottom:1px solid #4c6374;color:#f3cf9b;padding:10px 12px}
.monster-detail-page .loot-group-title{font-size:13px;font-weight:750;white-space:nowrap;color:#f5d49e}
.monster-detail-page .loot-group-chance{font-size:11px;color:#e5eef3;overflow-wrap:anywhere;text-align:right;line-height:1.4}
.monster-detail-page .loot-group-items{display:grid;grid-template-columns:1fr 1fr;gap:0;padding:6px}
.monster-detail-page .loot-column{min-width:0}
.monster-detail-page .loot-cell{padding:5px 6px;background:transparent;border-bottom:1px solid #3b5261;min-width:0}
.monster-detail-page .loot-item-display{display:flex;align-items:center;gap:7px;min-width:0}
.monster-detail-page .loot-item-display strong{color:#eef4f8;font-size:12px;font-weight:600;overflow-wrap:anywhere;min-width:0}
.monster-detail-page .loot-icon{width:30px!important;height:30px!important;min-width:30px;max-width:30px!important;max-height:30px!important;object-fit:contain}
@media(max-width:1050px){.monsters-list-page .impact-columns{grid-template-columns:1fr}.monster-detail-page .monster-stats-grid{grid-template-columns:1fr 1fr}.monster-detail-page .loot-groups{grid-template-columns:1fr}}

/* Calculator result — grouped compact text-only layout */
.monsters-list-page .calc-result:not(:empty){background:#1c2d39;border:1px solid #435c6c;border-radius:7px;padding:10px 12px}
.monsters-list-page .calc-result-header{margin-bottom:9px}
.monsters-list-page .result-stats{display:flex;gap:7px;flex-wrap:wrap}
.monsters-list-page .stat-badge{background:#2d4352;border:1px solid #516b7a;color:#edf3f6;border-radius:5px;padding:5px 9px;font-size:12px}
.monsters-list-page .calc-group{display:inline-flex;vertical-align:top;flex-direction:column;width:calc(33.333% - 9px);min-width:235px;margin:0 9px 9px 0;background:#263948;border:1px solid #4b6272;border-radius:6px;overflow:hidden}
.monsters-list-page .calc-group-header{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:space-between;background:#324a59;padding:8px 10px;color:#f5cf95;font-size:12px;font-weight:700}
.monsters-list-page .group-rolls{color:#cbdde8}
.monsters-list-page .calc-group-items{padding:6px 9px;display:grid;grid-template-columns:1fr 1fr;gap:3px 9px}
.monsters-list-page .calc-item{padding:4px 0;border-bottom:1px solid #354c5c;background:transparent}
.monsters-list-page .calc-item-name{color:#e8f0f5;font-size:12px;overflow-wrap:anywhere}
.monsters-list-page .calc-error,.monsters-list-page .calc-empty,.monsters-list-page .calc-loading{color:#f0d5a8;padding:8px}
.monsters-list-page .suggestion-item{padding:8px 10px;cursor:pointer;border-bottom:1px solid #405766}
.monsters-list-page .suggestion-item:hover{background:#354e5e}
.monsters-list-page .suggestion-name{color:#f3f6f8;font-size:12px}
.monsters-list-page .suggestion-grade{color:#bdd2de;font-size:11px}
@media(max-width:850px){.monsters-list-page .calc-group{width:calc(50% - 9px)}.monsters-list-page .impact-table{grid-template-columns:1fr}}

/* v43: leave truly empty element cells visually unobtrusive. */
.monsters-list-page .monsters-table td.elements-empty {
    border-top-color: transparent;
    border-bottom-color: transparent;
}
