/*
 * m-hosting Rechnungen – UI-Theme orientiert an GSALES screen.css
 * (Farben, Verläufe, stdForm, overview, config) – ohne Lizenz / ohne Icon-Font
 */
html {
	background: #0c2340;
	background: linear-gradient(to bottom, #0c2340 0%, #1a7fc4 43%, #d4e8f5 100%);
	background-repeat: no-repeat;
	min-height: 100%;
}
body.mh-app {
	background: none;
	min-width: 1024px;
	min-height: 100%;
	font-size: 75%;
	color: #333;
	font-family: Arial, Helvetica, sans-serif;
	padding: 0;
	margin: 0;
}
body.mh-app a { color: #0c2340; text-decoration: none; }
body.mh-app a:hover { color: #1a7fc4; }

/* Header */
#header { width: 96%; margin: 0 auto; position: relative; }
#header #logo { width: 120px; margin-left: 10px; height: auto; }
.mh-navbar { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 20px 10px 10px; gap: 8px; }
.mh-navbar > li { padding: 0 6px; }
.mh-navbar > li.brand { padding-top: 0; padding-right: 16px; }
.mh-navbar a, .mh-navbar button.mh-link {
	color: #fff; font-size: 14px; text-shadow: none; background: none; border: none; cursor: pointer;
	font-family: inherit;
}
.mh-navbar a:hover, .mh-navbar button.mh-link:hover { color: #fff; text-decoration: underline; }
.mh-navbar .mh-user { color: #b8d4ea; margin-right: 8px; }
#mainSearch input {
	width: 220px; border: none; font-size: 14px; color: #333; padding: 8px 10px; background: #fff; margin-left: 8px;
}
.mh-dropdown { position: relative; }
.mh-dropdown-menu {
	display: none; position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff; border: 1px solid #cdcdcd;
	box-shadow: 0 4px 12px rgba(0,0,0,.15); z-index: 100; list-style: none; margin: 4px 0 0; padding: 4px 0;
}
.mh-dropdown:hover .mh-dropdown-menu, .mh-dropdown.open .mh-dropdown-menu { display: block; }
.mh-dropdown-menu a {
	display: block; padding: 8px 16px; color: #333 !important; font-size: 13px; white-space: nowrap;
}
.mh-dropdown-menu a:hover {
	background: linear-gradient(to bottom, #fdfdfd, #eaeaea); color: #666 !important; text-decoration: none;
}
.mh-caret { display: inline-block; width: 0; height: 0; margin-left: 4px;
	border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid #fff;
}

/* Wrap / content */
#wrap {
	width: 96%; margin: 0 auto 25px; background: #fff; padding-bottom: 10px;
	border-radius: 5px; box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
#cntMain { margin-left: 190px; }
#sidebar {
	width: 160px; padding: 15px 8px 8px; float: left; margin: 0 0 0 -190px;
}
#cntContent { min-width: 100%; float: left; }
#content { margin-right: 7px; padding-bottom: 40px; position: relative; padding-left: 4px; }

#navigation { padding: 0; margin: 0 0 0 5px; list-style: none; font-size: 13px; line-height: 1.3em; }
#navigation li { padding: 4px 0 6px 25px; border-top: 1px solid #d9d9d9; position: relative; }
#navigation a { color: #494949; display: block; }
#navigation a.active, #navigation a.mh-active { color: #0c2340; font-weight: bold; }
#navigation ul { padding: 0; margin: 0; list-style: none; font-size: 12px; }
#navigation ul li { padding: 2px 0 2px 7px; border: none; }
#navigation ul a { color: #717171; font-weight: normal; }
#navigation ul a.active, #navigation ul a.mh-active { color: #0c2340; font-weight: bold; }

#breadcrumb { font-size: 11px; margin: 20px 0; padding: 0; color: #a4a4a4; list-style: none; }
#breadcrumb li { display: inline; }
#breadcrumb a { color: #a4a4a4; }
#breadcrumb a:hover { color: #0c2340; }

#notifications { margin: 0 10px 10px; }
.alert {
	padding: 10px 12px; margin-bottom: 12px; border-radius: 4px; font-size: 12px; line-height: 1.5;
	border: 1px solid transparent;
}
.alert-success, .alert-ok { background: #dff0d8; border-color: #d6e9c6; color: #138800; }
.alert-error { background: #f2dede; border-color: #eed3d7; color: #cd0a0a; }
.alert-warning { background: #fff5c6; border-color: #fde68a; color: #936209; }
.hint {
	border: 1px solid orange; padding: 8px 10px; background-color: #fff5c6; margin-bottom: 16px; font-size: 12px;
}

/* Page title */
.mh-page-head { margin: 0 10px 12px; padding: 0; }
.mh-page-head h1, .mh-page-head h2 {
	font-size: 24px; font-weight: normal; color: #0c2340; line-height: 35px; margin: 0; display: inline;
}
.mh-page-head .mh-actions { float: right; margin-top: 4px; }

/* Toolbar (filterBox / bulkCnt) */
.filterBox, .bulkCnt, .splitter, .mh-toolbar {
	background: linear-gradient(to bottom, #fdfdfd, #eaeaea);
	border: 1px solid #cdcdcd; color: #666; text-shadow: 0 1px 0 #fff;
	font-size: 12px; padding: 10px 12px; margin: 10px 10px 16px; line-height: 1.4;
}
.mh-toolbar .mh-toolbar-links a {
	display: inline-block; margin-right: 6px; padding: 4px 10px; border: 1px solid #ccc;
	background: #fff; color: #333; border-radius: 3px; font-size: 12px;
}
.mh-toolbar .mh-toolbar-links a.active, .mh-toolbar .mh-toolbar-links a.mh-active {
	background: #0c2340; color: #fff !important; border-color: #0c2340; font-weight: bold;
}
.mh-toolbar .mh-toolbar-links a:hover:not(.active):not(.mh-active) {
	background: #f5f5f5; color: #1a7fc4 !important;
}

/* stdForm – GSALES Kasten-Formulare */
table.stdForm {
	font-size: 0.93em; border-collapse: collapse; width: 100%; max-width: 720px; margin: 10px;
}
table.stdForm td, table.stdForm th {
	background-color: #f0f0f0; padding: 12px 5px 12px 12px; border-bottom: 1px solid #fff; vertical-align: top;
}
table.stdForm th {
	font-weight: normal; width: 160px; text-align: right; color: #333;
}
table.stdForm tr.row1 th, table.stdForm tr.row1 td { background-color: #f6f6f6; }
table.stdForm td.headline {
	background-color: #ddd !important; padding: 10px 12px;
}
table.stdForm td.headline h3 {
	padding: 0; margin: 0; font-size: 14px; font-weight: bold; color: #0a3554;
	text-shadow: 1px 1px 0 #fff;
}
table.stdForm td.headline2 {
	border-bottom: 2px solid #97a5b0; padding: 10px 0 8px 10px; background: none !important;
}
table.stdForm td.headline2 h3 {
	color: #0a3554; font-size: 15px; font-weight: normal; margin: 0 0 8px;
}
table.stdForm input[type="text"],
table.stdForm input[type="email"],
table.stdForm input[type="password"],
table.stdForm input[type="number"],
table.stdForm input[type="date"],
table.stdForm input[type="url"],
table.stdForm select,
table.stdForm textarea,
.mh-form input[type="text"],
.mh-form input[type="email"],
.mh-form input[type="password"],
.mh-form input[type="number"],
.mh-form input[type="date"],
.mh-form select,
.mh-form textarea {
	width: 100%; max-width: 375px; border: 1px solid #ccc; padding: 6px 8px; font-size: 14px;
	color: #555; border-radius: 3px; box-sizing: border-box; margin: 0;
}
table.stdForm textarea, .mh-form textarea { min-height: 60px; resize: vertical; }
table.stdForm input[type="checkbox"], table.stdForm input[type="radio"] { width: auto; max-width: none; }

/* Overview tables */
table.overview {
	width: calc(100% - 20px); margin: 0 10px 20px; border-collapse: collapse;
}
table.overview th {
	background: #f0f0f0; padding: 8px !important; white-space: nowrap; vertical-align: middle;
	border-bottom: 2px solid #cdcdcd; font-weight: bold; font-size: 0.92em; color: #333;
}
table.overview td {
	padding: 8px !important; font-weight: normal; font-size: 0.916em;
	border-bottom: 1px solid #e8e8e8; background: #fff;
}
table.overview tr:hover td { background-color: #f5f5f5; }
table.overview .col1 { background-color: #f7f7f7; }
table.overview tr.totals td { background-color: #eee; padding: 10px 8px; font-weight: bold; }
table.overview a { color: #1a7fc4; }
table.overview a:hover { text-decoration: underline; }

/* Status badges */
.labelOverview {
	display: inline-block; color: #fff !important; font-size: 10px; text-transform: lowercase;
	padding: 2px 0; width: 56px; text-align: center; line-height: 14px; border-radius: 2px;
}
.invoice0, .status-draft { background-color: #797979; }
.invoice1, .status-sent { background-color: #d40000; }
.invoice2, .status-paid { background-color: #009400; }
.invoice-cancelled, .status-cancelled { background-color: #797979; }
.offer0 { background-color: #797979; }
.offer1 { background-color: #d40000; }
.offer2 { background-color: #eead2f; }
.offer3 { background-color: #009400; }

/* Config (Einstellungen) */
#config {
	background: #f4f3f3; border: 1px solid #e1e1e1; max-width: 900px; margin: 10px;
	overflow: hidden;
}
#configSections {
	float: left; width: 150px; padding: 0; margin: 10px 0; list-style: none;
	border-right: 1px solid #e1e1e1; min-height: 320px;
}
#configSections li { border: 1px solid #efefef; border-width: 1px 0; }
#configSections li a {
	display: block; padding: 8px 0 8px 10px; color: #333; text-shadow: 1px 1px 1px #fff;
	font-size: 1.05em; text-decoration: none;
}
#configSections li a.active, #configSections li a.mh-active {
	color: #0c2340; background: #fff; font-weight: bold;
}
#configOptions { margin-left: 150px; padding: 10px 15px 20px; }
#configOptions table.stdForm { max-width: 100%; margin: 0 0 10px; }
#configOptions .mh-config-hint { font-size: 11px; color: #666; margin-bottom: 12px; }
#configOptions form input[type="text"],
#configOptions form input[type="password"],
#configOptions form input[type="number"],
#configOptions form input[type="email"],
#configOptions form select,
#configOptions form textarea {
	width: 100%; max-width: 400px; border: 1px solid #ccc; padding: 6px 8px; font-size: 13px;
	margin-bottom: 8px; box-sizing: border-box;
}
#configOptions form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 520px; }
#configOptions form h3 { color: #0a3554; font-size: 14px; margin: 16px 0 8px; border-bottom: 1px solid #97a5b0; padding-bottom: 4px; }
#configOptions .hint-inline { background: #fff5c6; border: 1px solid orange; padding: 8px; margin-bottom: 12px; font-size: 11px; }

/* Dashboard portlets */
.startColumn { width: 48%; float: left; padding-bottom: 40px; margin-top: 10px; }
.startColumn .portlet {
	margin: 0 1em 1em 0; border: 1px solid #cdcdcd; min-width: 280px;
}
.startColumn .portlet-header {
	background: linear-gradient(to bottom, #fdfdfd, #eaeaea);
	border-bottom: 1px solid #cdcdcd; padding: 10px 12px; font-weight: bold; color: #0c2340;
}
.startColumn .portlet-content { padding: 0; }
.startColumn .portlet-content table.overview { width: 100%; margin: 0; }
.mh-stat-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px; }
.mh-stat-box {
	flex: 1 1 120px; background: #f6f6f6; border: 1px solid #e1e1e1; padding: 12px 14px;
	border-left: 4px solid #1a7fc4;
}
.mh-stat-box strong { display: block; font-size: 22px; color: #0c2340; font-weight: normal; }
.mh-stat-box span { font-size: 11px; color: #666; }

/* Buttons */
.btn {
	display: inline-block; padding: 6px 14px; font-size: 13px; line-height: 20px;
	border: 1px solid #ccc; border-radius: 4px; cursor: pointer; text-decoration: none !important;
	background: linear-gradient(to bottom, #fdfdfd, #e6e6e6); color: #333 !important;
	box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
}
.btn:hover { background: linear-gradient(to bottom, #fff, #ddd); color: #333 !important; }
.btn-primary, .btn-info {
	background: linear-gradient(to bottom, #4a9fd4, #1a7fc4); border-color: #1565a8; color: #fff !important;
}
.btn-primary:hover, .btn-info:hover {
	background: linear-gradient(to bottom, #5aafe4, #2988d4); color: #fff !important;
}
.btn-success { background: linear-gradient(to bottom, #5cb85c, #449d44); border-color: #398439; color: #fff !important; }
.btn-danger { background: linear-gradient(to bottom, #d9534f, #c9302c); border-color: #ac2925; color: #fff !important; }
.btn-small, .btn-sm { padding: 3px 10px; font-size: 11px; }
.btn-group { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mh-form-actions { margin: 16px 10px; padding-top: 8px; border-top: 1px solid #e1e1e1; }

/* Footer */
#footer {
	background: #fff; margin: 0; padding: 15px 0 10px; text-align: center; font-size: 11px;
	border-top: 1px solid #e1e1e1; clear: both;
}
#footer a { color: #494949; text-decoration: underline; }

/* Login */
body.mh-login { min-width: 0; overflow-x: hidden; }
body.mh-login #wrap { background: none; box-shadow: none; width: 550px; margin: 0 auto; }
body.mh-login #header { width: 550px; text-align: center; }
body.mh-login #header #logo { margin: 80px auto 20px; display: block; width: 260px; }
body.mh-login #cntMain { margin: 0; }
body.mh-login #sidebar { display: none; }
body.mh-login #cntContent { float: none; width: 550px; margin: 0 auto; background: #fff; border-radius: 5px; padding: 24px 32px 32px; box-shadow: 0 2px 12px rgba(0,0,0,.2); }
body.mh-login .control-group { margin-bottom: 14px; }
body.mh-login .control-label { display: block; font-weight: bold; margin-bottom: 4px; font-size: 12px; }
body.mh-login .controls input { width: 100%; box-sizing: border-box; padding: 8px; border: 1px solid #ccc; font-size: 14px; }

/* Portal (lighter) */
body.mh-portal { min-width: 320px; font-size: 14px; }
body.mh-portal #wrap { width: 98%; max-width: 1100px; }
body.mh-portal #cntMain { margin-left: 0; }
body.mh-portal #sidebar { display: none; }
body.mh-portal .mh-portal-nav {
	background: linear-gradient(to bottom, #fdfdfd, #eaeaea); border-bottom: 1px solid #cdcdcd;
	padding: 10px 16px; margin-bottom: 0;
}
body.mh-portal .mh-portal-nav a { margin-right: 14px; color: #0c2340; font-size: 13px; }
body.mh-portal .mh-portal-nav a.active { font-weight: bold; color: #1a7fc4; }

.clearfix::after { content: ""; display: table; clear: both; }
.nowrap { white-space: nowrap; }
.right { text-align: right !important; }
.hide { display: none !important; }
.noButton {
	background: none; border: none; color: #0c2340; cursor: pointer;
	text-decoration: underline; font-size: 11px; font-family: inherit; padding: 0;
}
.noButton:hover { text-decoration: none; }
.cGreen { color: #138800 !important; }
.cRed { color: #cd0a0a !important; }
.blue { color: #0c2340 !important; }

@media (max-width: 900px) {
	body.mh-app { min-width: 0; }
	#cntMain { margin-left: 0; }
	#sidebar { float: none; width: auto; margin: 0; padding: 10px; border-bottom: 1px solid #e1e1e1; }
	#navigation { display: flex; flex-wrap: wrap; gap: 4px; }
	#navigation li { border: none; padding: 4px 8px; }
	.startColumn { width: 100%; float: none; }
}

@media print {
	#header, #sidebar, #footer, .no-print, .mh-toolbar, .bulkCnt { display: none !important; }
	body.mh-app { background: #fff; }
	#wrap { box-shadow: none; width: 100%; }
}
