/* 2006RS Market. Adapted from LostCityRS/Markets (MIT); see view/site/market/LICENSE. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #000 url(/img/rockback.jpg); color: #fff; font: 13px Arial, Helvetica, sans-serif; }
a { color: #90c040; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, p { margin: 0; }
.mk-page { max-width: 896px; margin: 0 auto; padding: 4px 8px 16px; }
.mk-edge-top, .mk-edge-bottom { display: flex; width: 100%; }
.mk-edge-bottom { align-items: flex-end; }
.mk-edge-top img, .mk-edge-bottom img { display: block; flex: none; }
.mk-chain { flex: 1 1 0; height: 20px; margin-top: 5px; background: url(/img/market/edge_chain.jpg) repeat-x center; min-width: 0; }
.mk-chain-b { margin: 0 0 15px; }
.mk-mid-b { margin-bottom: 10px; }
.mk-body { display: flex; width: 100%; }
.mk-side-l { width: 36px; flex: none; background: url(/img/market/background-left.jpg) repeat-y; }
.mk-side-r { width: 36px; flex: none; background: url(/img/market/background-right.jpg) repeat-y; }
.mk-main { flex: 1 1 0; min-width: 0; background: url(/img/market/background-middle.jpg) repeat-y; background-size: contain; padding: 0 2px; }
.mk-signed { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: -6px 0 8px; }
.mk-title { width: fit-content; min-width: 250px; margin: 0 auto 18px; padding: 5px 8px; border: 2px solid #382418; background: #000; text-align: center; }
.mk-title h1 { font-size: 13px; font-weight: bold; }
.mk-inline { display: inline; }
.mk-link { background: none; border: 0; padding: 0; color: #90c040; font: inherit; cursor: pointer; }
.mk-link:hover { text-decoration: underline; }
.mk-foot { margin-top: 14px; padding: 10px; border: 2px solid #292524; background: #0c0a09; text-align: center; font-size: 11px; }
.mk-flash { margin-bottom: 12px; padding: 7px 10px; border: 2px solid #382418; background: #0c0a09; }
.mk-flash-ok { border-color: #1f5e2c; color: #86efac; }
.mk-flash-err { border-color: #7f1d1d; color: #fca5a5; }
.mk-flash-info { border-color: #0c4a6e; color: #bae6fd; }
.mk-searchbar { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; padding: 10px; border: 2px solid #292524; background: #0c0a09; }
.mk-searchbar h2 { font-size: 16px; font-weight: bold; white-space: nowrap; }
.mk-pick { position: relative; flex: 1; min-width: 180px; }
.mk-pick input[type=text] { width: 100%; padding: 6px 8px; background: #44403c; border: 1px solid #1f2937; color: #fff; font: inherit; }
.mk-pick input::placeholder { color: #d6d3d1; }
.mk-drop { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin-top: 2px; max-height: 320px; overflow-y: auto; background: #292524; border: 1px solid #57534e; }
.mk-drop a { display: flex; gap: 8px; align-items: center; padding: 3px 8px; color: #fff; cursor: pointer; }
.mk-drop a.sel, .mk-drop a:hover { background: #57534e; text-decoration: none; }
.mk-drop img { width: 32px; height: 32px; background: #44403c; border: 1px solid #57534e; flex: none; }
.mk-empty { padding: 6px 10px; color: #a8a29e; font-style: italic; }
.mk-tabs { position: relative; z-index: 2; margin-bottom: -2px; display: flex; }
.mk-tabs a { padding: 10px 14px; font-weight: bold; color: #fff; }
.mk-tabs a:hover { text-decoration: none; }
.mk-tabs a.on { background: #000; border: 2px solid #382418; border-bottom: 0; }
.mk-tabs .mk-s { display: none; }
@media (max-width: 640px) { .mk-tabs a { padding: 8px 8px; font-size: 12px; } .mk-tabs .mk-s { display: inline; } .mk-tabs .mk-l { display: none; } .mk-side-l, .mk-side-r { width: 10px; background-size: 36px; } .mk-searchbar { flex-direction: column; align-items: stretch; } .mk-edge-top img:nth-child(3), .mk-mid-b { display: none; } }
.mk-table { padding: 4px; border: 2px solid #382418; background: #000; margin-bottom: 14px; position: relative; }
.mk-table table { width: 100%; border-collapse: collapse; }
.mk-table td { padding: 2px 4px; vertical-align: middle; }
.mk-table-dim { border-color: #18181b; background: #09090b; }
.mk-table-rose { border-color: #4c0519; background: #0c0a09; }
.mk-table-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 6px 10px; }
.mk-table-head > div { display: flex; gap: 6px; }
.mk-sub { padding: 8px 6px 6px; font-size: 16px; font-weight: bold; }
.mk-none { padding: 26px 0 !important; text-align: center; }
.mk-hint { padding: 26px 8px; text-align: center; }
.mk-big { font-size: 16px; font-weight: 600; }
.mk-sold { color: #78716c; text-decoration: line-through; }
.mk-sold a { color: #78716c; }
.mk-itemcell { width: 42px; }
.mk-iconbox { display: inline-block; line-height: 0; background: #292524; border: 1px solid #44403c; }
.mk-iconbig { padding: 3px; border-width: 2px; }
.mk-price { white-space: nowrap; }
.mk-b { color: #ef4444; font-weight: bold; }
.mk-g { color: #22c55e; font-weight: bold; }
.mk-s-for { margin: 0 2px; }
.mk-single { display: inline-flex; align-items: center; background: #292524; border: 1px solid #44403c; vertical-align: middle; }
.mk-single b { padding: 0 4px; font-weight: normal; color: #fff; }
.mk-mini { position: relative; display: inline-block; width: 32px; height: 32px; margin-right: 3px; background: #292524; border: 1px solid #44403c; line-height: 0; vertical-align: middle; }
.mk-mini img { width: 100%; height: 100%; }
.mk-mini b { position: absolute; left: -2px; top: -2px; padding: 1px; background: #000; color: #fff; font: 10px/10px Arial; font-weight: normal; }
.mk-offersep { display: inline-block; width: 1px; height: 16px; background: #44403c; margin: 0 3px; vertical-align: middle; }
.mk-dim { color: #d6d3d1; font-size: 12px; }
.mk-offers-n { display: block; font-size: 10px; line-height: 10px; color: #a8a29e; }
.mk-user a { color: #a8a29e; white-space: pre; }
.mk-time { white-space: nowrap; color: #d6d3d1; }
.mk-fresh { color: #22c55e; }
.mk-warm { color: #eab308; }
.mk-notes { max-width: 200px; }
.mk-notes span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-actions { width: 28px; text-align: right; white-space: nowrap; }
.mk-menu { position: relative; display: inline-block; vertical-align: middle; }
.mk-menu > summary { list-style: none; cursor: pointer; }
.mk-menu > summary::-webkit-details-marker { display: none; }
.mk-offer > summary { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.mk-dots { padding: 0 8px; font-size: 16px; line-height: 20px; color: #a8a29e; }
.mk-menu-box { position: absolute; z-index: 40; left: 0; top: 100%; margin-top: 2px; min-width: 130px; padding: 4px; background: #1c1917; border: 2px solid #382418; }
.mk-menu-right .mk-menu-box { left: auto; right: 0; }
.mk-menu-box a, .mk-menu-box button { display: block; width: 100%; padding: 3px 6px; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.mk-menu-box a:hover, .mk-menu-box button:hover { background: #292524; text-decoration: none; }
.mk-offerbox { min-width: 240px; background: #000; white-space: normal; }
.mk-offerpanel { padding: 6px; border: 2px solid #44403c; background: #1c1917; margin-bottom: 4px; }
.mk-offerpanel:last-child { margin-bottom: 0; }
.mk-offerpanel p { font-size: 12px; color: #e7e5e4; margin-bottom: 6px; }
.mk-offerpanel > div { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-amber { color: #fbbf24; }
.mk-rose { color: #f43f5e; }
.mk-green { color: #22c55e; }
.mk-red { color: #ef4444; }
.mk-btn { display: inline-block; padding: 4px 10px; border: 0; background: #166534; color: #fff; font: 13px Arial, Helvetica, sans-serif; font-weight: bold; cursor: pointer; text-decoration: none; }
.mk-btn:hover { background: #15803d; text-decoration: none; }
.mk-btn-2 { background: #292524; }
.mk-btn-2.on, .mk-btn-2:hover { background: #44403c; }
.mk-btn-green { background: #065f46; }
.mk-btn-red { background: #991b1b; }
.mk-btn-red:hover { background: #b91c1c; }
.mk-btn[disabled] { opacity: .5; cursor: not-allowed; }
.mk-btn-submit { background: #166534; margin-top: 10px; }
.mk-pager { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; font-weight: bold; font-size: 12px; }
.mk-pager a { color: #fff; }
.mk-pager .off { color: #44403c; }
.mk-pager .cur { color: #78716c; padding: 0 8px; }
.mk-pager .pages a, .mk-pager .gap { padding: 0 8px; }
.mk-panel { padding: 10px; border: 2px solid #382418; background: #000; margin-bottom: 14px; }
.mk-center { text-align: center; }
.mk-itemhead { display: flex; gap: 12px; margin-bottom: 14px; }
.mk-itemtext { flex: 1; }
.mk-itemname { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.mk-itemname h1 { font-size: 20px; }
.mk-h1 { font-size: 20px; margin-bottom: 10px; }
.mk-prices { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.mk-listhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.mk-listhead h1 { font-size: 20px; }
.mk-listhead h2 { font-size: 17px; }
.mk-hr { border: 0; border-top: 2px solid #44403c; margin: 16px 0; }
.mk-form h2 { font-size: 13px; margin-bottom: 8px; }
.mk-err { color: #ef4444; margin-bottom: 6px; }
.mk-formrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.mk-form select, .mk-form input[type=text] { background: #44403c; border: 1px solid #1f2937; color: #fff; padding: 2px 5px; font: inherit; }
.mk-qty { width: 70px; }
.mk-notesin { width: 220px; max-width: 100%; }
.mk-offerbuild { display: inline-block; padding: 8px; border: 2px solid #44403c; background: #1c1917; }
.mk-offerbuild + .mk-orsep { margin: 8px 0; }
.mk-orsep { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; }
.mk-orsep::before, .mk-orsep::after { content: ''; flex: 1; height: 1px; background: #44403c; }
.mk-offer-title { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; font-size: 12px; color: #e7e5e4; }

.mk-offer-items { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mk-offer-item { display: flex; align-items: center; border: 1px solid #44403c; background: #292524; }
.mk-offer-item img { width: 32px; height: 32px; background: #44403c; }
.mk-offer-item input { width: 66px; border: 0 !important; background: transparent !important; }
.mk-x { background: none; border: 0; color: #ef4444; cursor: pointer; font: bold 14px Arial; padding: 0 6px; }
.mk-add { background: #166534; border: 0; color: #fff; padding: 6px 10px; font-weight: bold; cursor: pointer; }
.mk-offer-remove { margin-top: 6px; }
.mk-offers-add { margin: 8px 0 0; display: block; }
@media (max-width: 640px) {
    .mk-page { padding: 2px 2px 10px; }
    .mk-s-for { display: none; }
    .mk-price { white-space: normal; }
    .mk-price .mk-offer { display: block; }
    .mk-user a, .mk-time { font-size: 12px; white-space: normal; }
    .mk-notes { max-width: 90px; font-size: 12px; }
    .mk-notes span { white-space: normal; word-break: break-word; }
    .mk-itemname h1, .mk-h1, .mk-listhead h1 { font-size: 17px; }
}

/* the main call to action on the market's front page */
.mk-create-row { text-align: center; margin: 0 0 10px; }
.mk-create { display: inline-block; padding: 7px 22px; background: #166534; border: 1px solid #22c55e; color: #fff !important; font-weight: bold; font-size: 15px; text-decoration: none; }
.mk-create:hover { background: #15803d; text-decoration: none; }
