/* SAP Fiori–inspired design tokens */
:root {
  --sap-shell-color: #0854a0;
  --sap-shell-text: #fff;
  --sap-brand: #0a6ed1;
  --sap-brand-hover: #0854a0;
  --sap-sidebar-bg: #354a5f;
  --sap-sidebar-text: #d9d9d9;
  --sap-sidebar-hover: #455b73;
  --sap-content-bg: #f7f7f7;
  --sap-tile-bg: #fff;
  --sap-border: #89919a;
  --sap-table-header: #edeff0;
  --sap-table-row-alt: #f5f6f7;
  --sap-text: #32363a;
  --sap-text-muted: #6a6d70;
  --sap-success: #107e3e;
  --sap-warning: #e9730c;
  --sap-error: #bb0000;
  --sap-font-sans: '72', '72full', 'Segoe UI', system-ui, sans-serif;
  --sap-shadow: 0 0 1px 0 rgba(0,0,0,.08), 0 2px 4px 0 rgba(0,0,0,.12);
}

.sap-shell-bar {
  background: var(--sap-shell-color);
  color: var(--sap-shell-text);
  height: 3rem;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  box-shadow: var(--sap-shadow);
}

.sap-shell-bar__logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
}

.sap-shell-bar__title {
  margin-left: 1rem;
  font-size: 0.9375rem;
  opacity: 0.95;
}

.sap-shell-bar__spacer { flex: 1; }

.sap-shell-bar__user {
  font-size: 0.8125rem;
  opacity: 0.9;
}

.sap-app-container {
  display: flex;
  min-height: calc(100vh - 3rem);
}

.sap-side-nav {
  width: 15rem;
  background: var(--sap-sidebar-bg);
  color: var(--sap-sidebar-text);
  flex-shrink: 0;
}

.sap-side-nav__item {
  display: block;
  padding: 0.625rem 1rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.875rem;
  border-left: 3px solid transparent;
  transition: background .15s, border-color .15s;
}

.sap-side-nav__item:hover {
  background: var(--sap-sidebar-hover);
  color: #fff;
}

.sap-side-nav__item.active {
  background: var(--sap-sidebar-hover);
  border-left-color: var(--sap-brand);
  color: #fff;
}

.sap-side-nav__group-title {
  padding: 0.75rem 1rem 0.25rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,.6);
}

.sap-content {
  flex: 1;
  background: var(--sap-content-bg);
  padding: 1rem 1.5rem;
  overflow: auto;
}

.sap-page {
  max-width: 96rem;
  margin: 0 auto;
}

.sap-page-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sap-text);
  margin-bottom: 1rem;
}

.sap-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.sap-card {
  background: var(--sap-tile-bg);
  box-shadow: var(--sap-shadow);
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.sap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.sap-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  background: var(--sap-table-header);
  color: var(--sap-text);
  font-weight: 600;
  border-bottom: 1px solid var(--sap-border);
}

.sap-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e5e5e5;
  color: var(--sap-text);
}

.sap-table tbody tr:nth-child(even) {
  background: var(--sap-table-row-alt);
}

.sap-table tbody tr:hover {
  background: #e8e8e8;
}

.sap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}

.sap-btn--primary {
  background: var(--sap-brand);
  color: #fff;
  border-color: var(--sap-brand);
}

.sap-btn--primary:hover {
  background: var(--sap-brand-hover);
  border-color: var(--sap-brand-hover);
  color: #fff;
}

.sap-btn--secondary {
  background: #fff;
  color: var(--sap-text);
  border-color: var(--sap-border);
}

.sap-btn--secondary:hover {
  background: var(--sap-table-row-alt);
  border-color: #6a6d70;
}

.sap-form-group {
  margin-bottom: 1rem;
}

.sap-form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sap-text-muted);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sap-form-control {
  width: 100%;
  max-width: 20rem;
  padding: 0.375rem 0.5rem;
  font-size: 0.875rem;
  border: 1px solid var(--sap-border);
  border-radius: 4px;
  background: #fff;
}

.sap-form-control:focus {
  outline: none;
  border-color: var(--sap-brand);
  box-shadow: 0 0 0 2px rgba(10,110,209,.2);
}

.sap-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
}

.sap-badge--success { background: #d5f0e0; color: var(--sap-success); }
.sap-badge--warning { background: #fff3e5; color: var(--sap-warning); }
.sap-badge--error { background: #ffebeb; color: var(--sap-error); }
.sap-badge--neutral { background: var(--sap-table-header); color: var(--sap-text-muted); }

.sap-empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--sap-text-muted);
  font-size: 0.875rem;
}

.sap-pkr { font-variant-numeric: tabular-nums; }
.sap-pkr::before { content: 'PKR '; opacity: .8; font-size: 0.875em; }
