* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", "Helvetica", sans-serif;
  font-size: 11px;
  color: #000;
  background: #d4d0c8;
  padding: 0;
}

a {
  color: #000;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* SAP-style top menu bar */
#sap-menubar {
  background: #d4d0c8;
  border-bottom: 1px solid #808080;
  padding: 1px 4px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 0;
}

#sap-menubar a {
  padding: 2px 8px;
  color: #000;
}

#sap-menubar a:hover {
  background: #b8d4f0;
  text-decoration: none;
}

#sap-menubar .brand {
  margin-left: auto;
  font-weight: bold;
  font-size: 16px;
  color: #003d7a;
  letter-spacing: 2px;
  padding-right: 8px;
}

/* SAP-style toolbar with icons */
#sap-toolbar {
  background: #d4d0c8;
  border-bottom: 1px solid #a0a0a0;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.toolbar-btn {
  background: #d4d0c8;
  border: 1px solid #d4d0c8;
  padding: 1px 4px;
  font-size: 12px;
  cursor: pointer;
  min-width: 22px;
  text-align: center;
  color: #000;
  text-decoration: none;
  display: inline-block;
}

.toolbar-btn:hover {
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  text-decoration: none;
}

.toolbar-sep {
  width: 1px;
  height: 18px;
  background: #808080;
  margin: 0 3px;
}

.toolbar-input {
  background: #fff;
  border: 1px inset #d4d0c8;
  padding: 1px 4px;
  font-family: "Arial", "Helvetica", sans-serif;
  font-size: 11px;
  width: 200px;
}

/* SAP page title bar */
#page-title {
  background: #c7defa;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: bold;
  color: #000;
  border-bottom: 1px solid #a0b8d0;
}

/* Main layout: sidebar + content */
#main-layout {
  display: flex;
  min-height: 500px;
}

/* SAP-style left sidebar with tabs */
#sidebar {
  width: 140px;
  background: #d4d0c8;
  border-right: 1px solid #808080;
  flex-shrink: 0;
}

.sidebar-section {
  padding: 4px 0;
}

.sidebar-section-title {
  background: #c7defa;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: bold;
  color: #003d7a;
  border-bottom: 1px solid #a0b8d0;
  border-top: 1px solid #a0b8d0;
}

.sidebar-item {
  display: block;
  padding: 2px 6px 2px 12px;
  font-size: 11px;
  color: #000;
  border-left: 3px solid transparent;
}

.sidebar-item:hover {
  background: #b8d4f0;
  text-decoration: none;
}

.sidebar-item.active {
  background: #fff;
  border-left: 3px solid #003d7a;
  font-weight: bold;
}

.sidebar-item .icon {
  font-size: 10px;
  margin-right: 2px;
}

/* SAP sidebar bottom buttons */
.sidebar-buttons {
  border-top: 1px solid #808080;
  padding: 4px;
}

.sidebar-btn {
  display: block;
  width: 100%;
  background: #d4d0c8;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  padding: 2px 4px;
  font-size: 10px;
  text-align: center;
  margin-bottom: 2px;
  cursor: pointer;
  color: #000;
  text-decoration: none;
  font-family: "Arial", "Helvetica", sans-serif;
}

.sidebar-btn:hover {
  background: #b8d4f0;
  text-decoration: none;
}

/* Content area */
#content {
  flex: 1;
  padding: 8px;
  background: #fff;
  overflow: auto;
}

/* Content toolbar (secondary) */
#content-toolbar {
  background: #d4d0c8;
  padding: 2px 4px;
  margin: -8px -8px 8px -8px;
  border-bottom: 1px solid #a0a0a0;
  display: flex;
  align-items: center;
  gap: 2px;
}

h1 {
  font-size: 11px;
  font-weight: bold;
  color: #000;
  margin-bottom: 6px;
}

/* SAP-style data table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  border: 1px solid #a0a0a0;
}

.data-table th {
  background: #d4d0c8;
  border-right: 1px solid #a0a0a0;
  border-bottom: 2px solid #a0a0a0;
  padding: 2px 6px;
  text-align: left;
  font-weight: bold;
  font-size: 11px;
  white-space: nowrap;
  color: #000;
}

.data-table td {
  padding: 1px 6px;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  white-space: nowrap;
}

.data-table tr:hover {
  background: #b8d4f0;
}

.data-table td a {
  color: #003d7a;
}

.data-table td a:hover {
  text-decoration: underline;
}

/* SAP-style detail group */
.group-box {
  border: 1px solid #a0a0a0;
  margin-bottom: 8px;
  background: #fff;
}

.group-box-title {
  background: #d4d0c8;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: bold;
  border-bottom: 1px solid #a0a0a0;
}

.group-box-body {
  padding: 6px;
}

.field-table {
  width: 100%;
}

.field-table td {
  padding: 1px 4px;
  vertical-align: top;
}

.field-table .label {
  width: 160px;
  color: #003d7a;
  font-size: 10px;
}

.field-table .value {
  color: #000;
}

/* SAP status colors */
.status-ok {
  color: #006400;
}

.status-warn {
  color: #808000;
}

.status-error {
  color: #c00000;
}

/* SAP-style buttons */
.btn {
  background: #d4d0c8;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  padding: 2px 12px;
  font-family: "Arial", "Helvetica", sans-serif;
  font-size: 11px;
  cursor: pointer;
  color: #000;
  text-decoration: none;
  display: inline-block;
}

.btn:active {
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
}

.btn:hover {
  text-decoration: none;
}

.btn-default {
  font-weight: bold;
}

/* Form inputs */
input[type="text"],
input[type="password"] {
  background: #fff;
  border: 1px solid #808080;
  padding: 1px 3px;
  font-family: "Arial", "Helvetica", sans-serif;
  font-size: 11px;
}

/* Notices */
.notice {
  background: #fffde0;
  border: 1px solid #e0d870;
  padding: 4px 8px;
  margin-bottom: 8px;
  font-size: 11px;
}

.error-message {
  background: #fde0e0;
  border: 1px solid #d08080;
  padding: 4px 8px;
  color: #c00000;
  font-weight: bold;
}

/* Status bar */
#statusbar {
  background: #d4d0c8;
  padding: 1px 4px;
  font-size: 10px;
  color: #000;
  border-top: 1px solid #808080;
  display: flex;
  gap: 4px;
}

#statusbar .status-section {
  border: 1px inset #d4d0c8;
  padding: 0 8px;
  flex-shrink: 0;
}

#statusbar .status-section:first-child {
  flex: 1;
}

/* Two column layout */
.two-col {
  display: flex;
  gap: 8px;
}

.two-col > * {
  flex: 1;
}

/* Quick links row */
.quick-links {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

ul {
  margin-left: 16px;
}

ul li {
  padding: 1px 0;
}
