div.content-shell {
    width: 92%;
    margin-left: 4%;
    margin-top: 1.5em;
}

body.embedded-detail {
    margin: 0;
    background: transparent;
}

body.embedded-detail div.content-shell {
    width: 100%;
    margin: 0;
}

div.page-title {
    margin-bottom: 1em;
    font-size: 1.2em;
}

body.embedded-detail div.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

div.options {
    width: auto;
    margin-left: 0;
    margin-bottom: 1em;
}

a.back-link {
    color: #8ebeff;
    text-decoration: none;
}

a.back-link:hover {
    text-decoration: underline;
}

span.title-divider {
    margin: 0 0.4em;
    color: gray;
}

span.player-name {
    font-weight: bold;
    font-size: 1.45em;
    line-height: 1.05;
    letter-spacing: 0.01em;
}

table.loot-detail {
    width: 100%;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.35rem;
}

table.loot-detail th,
table.loot-detail td {
    text-align: left;
    vertical-align: middle;
    padding: 0.38rem 0.7rem;
}

table.loot-detail tbody tr {
    background: rgba(255, 255, 255, 0.02);
}

table.loot-detail tbody td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

table.loot-detail tbody td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

table.loot-detail th.week-column,
table.loot-detail td.week-cell {
    text-align: center;
    vertical-align: middle;
}

table.loot-detail th.day-column,
table.loot-detail td.day-cell {
    text-align: center;
}

table.loot-detail th.date-column,
table.loot-detail td.date-cell,
table.loot-detail th.time-column,
table.loot-detail td.time-cell {
    text-align: center;
    white-space: nowrap;
}

td.week-cell {
    width: 3.8rem;
    font-size: 1.2em;
    font-weight: bold;
    color: #dbe7ff;
}

td.event-id {
    font-family: "Lucida Console", monospace;
    font-size: 0.85em;
    color: #c6d9ff;
    white-space: nowrap;
}

a.item-link {
    color: #ffe06e;
    text-decoration: none;
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
}

a.item-link:hover {
    text-decoration: underline;
}

td.response-cell {
    white-space: nowrap;
}

table.loot-detail td:last-child,
table.loot-detail th:last-child {
    width: 100%;
}

table.loot-detail td:last-child {
    white-space: normal;
}

span.response-badge {
    display: inline-block;
    padding: 0.2em 0.6em 0.24em 0.6em;
    border: 1px solid #545a66;
    border-radius: 999px;
    font-size: 0.82em;
    line-height: 1;
    color: #d8dde7;
    background: #252a33;
    white-space: nowrap;
}

span.response-badge.need {
    border-color: #6a8061;
    background: #243223;
    color: #d7efcf;
}

span.response-badge.upgrade {
    border-color: #6d6688;
    background: #2b2738;
    color: #ddd7ff;
}

span.response-badge.offspec {
    border-color: #6b6252;
    background: #322a22;
    color: #ead8ba;
}

span.response-badge.disenchant,
span.response-badge.personal-loot,
span.response-badge.other {
    border-color: #5d626d;
    background: #272a31;
    color: #c6cad3;
}

span.item-category {
    display: inline-block;
    margin-left: 0.6em;
    padding: 0.18em 0.55em 0.22em 0.55em;
    border: 1px solid #4d5360;
    border-radius: 999px;
    font-size: 0.78em;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #d5d9e2;
    background: #232832;
    white-space: nowrap;
}

span.item-category.weapon {
    border-color: #7b6850;
    background: #332c22;
    color: #f0d7ae;
}

span.item-category.jewerly,
span.item-category.trinket {
    border-color: #5d5d7f;
    background: #29293c;
    color: #d8d4ff;
}

span.item-category.tier-token,
span.item-category.tier-slot-armor {
    border-color: #516e5a;
    background: #223128;
    color: #c7e7d0;
}

span.item-category.other-armor {
    border-color: #526777;
    background: #23303a;
    color: #c8dbea;
}

span.item-category.decor,
span.item-category.recipe,
span.item-category.warbound {
    border-color: #5d626d;
    background: #272a31;
    color: #c6cad3;
}

div.empty-state {
    width: fit-content;
    padding: 0.8em 1em;
    border: 1px solid #666;
    border-radius: 8px;
    color: white;
    background: #222;
}
