/*
 * L2Retro cabinet: the warm parchment theme of the forum.
 *
 * This file only overrides colours and is linked LAST in views/header.php, so removing that one
 * line puts the old dark cabinet back exactly as it was. Nothing else was edited.
 *
 * Covered here: the frame (page, sidebar, top bar, headings) and the ordinary cards, tables and
 * forms. The special dark components - auction dialogs, the lucky wheel, the donate modals -
 * are deliberately left alone for now: they hardcode white text on black boxes, and lightening
 * them blindly would hide that text.
 */

:root {
	--l2-bg: #f3efe6;
	--l2-panel: #fffdf7;
	--l2-panel-2: #f8f4ea;
	--l2-head: #f0e8d6;
	--l2-line: #ddd2bc;
	--l2-line-soft: #eae1ce;
	--l2-text: #3f3a33;
	--l2-dim: #7b7265;
	--l2-accent: #9c6b16;
	--l2-accent-2: #c08a2e;
	--l2-accent-soft: #f6edd9;
}

/* ---------------------------------------------------------------- page */

/* the login, register and recovery pages keep their own soft background */
body:not(.login) {
	background: var(--l2-bg) !important;
	color: var(--l2-text);
}

.wrapper,
.right-side,
.content,
#global-content {
	background: transparent !important;
	color: var(--l2-text);
}

.content-header {
	background: transparent !important;
	color: var(--l2-accent);
}

.content-header > span,
.content-header h1,
.content-header small {
	color: var(--l2-accent) !important;
}

.content-header .breadcrumb,
.content-header .breadcrumb a {
	color: var(--l2-dim) !important;
}

/* ---------------------------------------------------------------- sidebar */

.skin-dark .left-side,
.left-side,
.sidebar,
.skin-dark .sidebar > .sidebar-menu > li > .sub-menu {
	background: var(--l2-panel) !important;
	color: var(--l2-text);
}

.left-side {
	border-right: 1px solid var(--l2-line);
}

.sidebar .sidebar-menu > li > a,
.sidebar .sidebar-menu > li > a span,
.sidebar .sidebar-menu > li > a i {
	color: var(--l2-text) !important;
}

.sidebar .sidebar-menu > li > a:hover,
.sidebar .sidebar-menu > li.active > a,
.sidebar .sidebar-menu > li > a:hover span,
.sidebar .sidebar-menu > li > a:hover i {
	background-color: var(--l2-accent-soft) !important;
	color: var(--l2-accent) !important;
}

.skin-dark .logo,
.logo {
	background-color: var(--l2-panel) !important;
	border-bottom: 1px solid var(--l2-line);
}

.balance-info,
.discount-info,
.level,
.discount-flag {
	color: var(--l2-text) !important;
}

.balance-info span,
.discount-info span {
	color: var(--l2-accent) !important;
}

/* ---------------------------------------------------------------- top bar */

.navbar,
.navbar-static-top,
body > .header .navbar {
	background-color: var(--l2-panel) !important;
	border-bottom: 1px solid var(--l2-line);
}

.navbar .nav > li > a,
.navbar-nav > li > a,
.navbar .sidebar-toggle .fa-bars {
	color: var(--l2-text) !important;
}

.navbar .nav > li > a:hover,
.navbar-nav > li > a:hover {
	color: var(--l2-accent) !important;
	background-color: var(--l2-accent-soft) !important;
}

.dropdown-menu {
	background-color: var(--l2-panel) !important;
	border: 1px solid var(--l2-line) !important;
}

.dropdown-menu > li > a {
	color: var(--l2-text) !important;
}

.dropdown-menu > li > a:hover {
	background-color: var(--l2-accent-soft) !important;
	color: var(--l2-accent) !important;
}

.skin-dark .dropdown-menu > li p {
	background-color: var(--l2-head) !important;
	color: var(--l2-text) !important;
}

/* ---------------------------------------------------------------- cards */

.box,
.grid,
.panel,
.well,
.widget,
.modal-content {
	background-color: var(--l2-panel) !important;
	color: var(--l2-text) !important;
	border: 1px solid var(--l2-line) !important;
	box-shadow: none !important;
}

.grid-header,
.box-header,
.panel-heading,
.modal-header {
	background-color: var(--l2-head) !important;
	color: var(--l2-accent) !important;
	border-bottom: 1px solid var(--l2-line) !important;
}

.grid-title,
.box-title,
.panel-title,
.modal-title {
	color: var(--l2-accent) !important;
}

.grid-body,
.box-body,
.panel-body,
.modal-body {
	background-color: var(--l2-panel) !important;
	color: var(--l2-text) !important;
}

/* text that the old design painted white because the box behind it was black */

[style*="color: #fff"],
[style*="color:#fff"],
[style*="color: white"],
[style*="color:white"],
.text-white {
	color: var(--l2-text) !important;
}

/* ---------------------------------------------------------------- links, tables, forms */

a {
	color: var(--l2-accent);
}

a:hover,
a:focus {
	color: var(--l2-accent-2);
}

table.table,
.table > thead > tr > th,
.table > tbody > tr > td {
	color: var(--l2-text) !important;
	border-color: var(--l2-line-soft) !important;
}

.table > thead > tr > th {
	color: var(--l2-accent) !important;
	border-bottom: 1px solid var(--l2-line) !important;
}

.table-striped > tbody > tr:nth-of-type(odd) {
	background-color: var(--l2-panel-2) !important;
}

.table-hover > tbody > tr:hover {
	background-color: var(--l2-accent-soft) !important;
}

.form-control,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea {
	background-color: #fffdf8 !important;
	color: var(--l2-text) !important;
	border: 1px solid var(--l2-line) !important;
}

.form-control:focus {
	border-color: var(--l2-accent) !important;
	box-shadow: none !important;
}

hr {
	border-color: var(--l2-line-soft) !important;
}

/* keep the gold accents of the project readable on the light background */

.text-warning,
.text-yellow,
.text-gold {
	color: #a9731f !important;
}

.text-danger,
.text-red {
	color: #a3341f !important;
}

.text-success,
.text-green {
	color: #3f6b35 !important;
}
