@font-face{
  font-family:'EurostileMP';
  src:url('./fonts/eurostile.ttf') format('truetype');
  font-weight:normal;
  font-style:normal;
  font-display:swap;
}

html, body, .mp-app, .mp-app *{
  font-family:'EurostileMP', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif !important;
}

/* =========================
   FULL APP LAYOUT (GLOBAL)
   ========================= */

/* Theme Header/Footer global ausblenden */
header,
#masthead,
.site-header,
.header,
.elementor-location-header,
.et-l--header,
.ast-primary-header-bar,
.ast-builder-grid-row-container,
.main-header-bar,
.site-branding,
footer,
#colophon,
.site-footer,
.elementor-location-footer,
.et-l--footer {
  display: none !important;
}

/* WP Admin Bar ausblenden (Frontend) */
#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }

/* Theme-Abstände neutralisieren */
body {
  margin: 0 !important;
  padding: 0 !important;
  background: #f6f8fc;
}

#page, #content, .site, .site-content, main {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

/* App Root */
.ze-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Topbar */
.ze-appbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #ffffff;
  border-bottom: 1px solid #e6e8ef;
}

.ze-appbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ze-brand {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .2px;
  color: #0f172a;
}

/* Nav: links/rechts */
.ze-nav{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap:12px;
}
.ze-nav-left{ display:flex; gap:10px; flex-wrap:wrap; }
.ze-nav-right{ display:flex; justify-content:flex-end; }

.ze-nav a { text-decoration:none; }

/* Content */
.ze-appmain {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 16px 26px;
}

/* Subbar for export: left controls + right buttons */
.ze-subbar{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}
.ze-subbar-left{
  display:flex;
  align-items:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.ze-subbar-right{
  display:flex;
  justify-content:flex-end;
  gap:10px;
}
.ze-subbar-label{
  display:block;
  font-weight:900;
  margin:0 0 6px;
}

/* Cards */
.ze-box{
  background:#fff;
  border:1px solid #e6e8ef;
  border-radius:16px;
  padding:18px;
  margin:14px 0;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

/* Box header (title + action button), used e.g. on Profil */
.ze-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.ze-head h2{ margin:0; }
.ze-head-actions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

/* Forms */
.ze-form label{
  display:block;
  font-weight:800;
  margin:10px 0 6px;
  color:#0f172a;
}

.ze-form input[type="text"],
.ze-form input[type="date"],
.ze-form input[type="time"],
.ze-form input[type="password"],
.ze-form select,
.ze-form textarea{
  width:100%;
  border:1px solid #d7dbe6;
  border-radius:12px;
  padding:10px 12px;
  background:#fff;
}

.ze-form textarea{ min-height:90px; }

.ze-row{
  display:flex;
  gap:12px;
}
.ze-row > div{ flex:1; }

/* Buttons - grün */
:root{
  --ze-green:rgb(174,203,53);
  --ze-green-dark:rgb(140,165,42);
  --ze-green-soft:rgba(174,203,53,0.12);
  --ze-green-border:rgba(174,203,53,0.35);
}

.ze-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:44px;
  min-height:44px;
  box-sizing:border-box;
  border:0;
  border-radius:12px;
  padding:0 18px;
  cursor:pointer;
  font-weight:900;
  font-size:14px;
  line-height:1;
  -webkit-appearance:none;
  background: var(--ze-green);
  color:#fff !important;
  text-decoration:none !important;
  white-space:nowrap;
}

/* Prevent theme defaults from turning button text blue on hover (anchors). */
.ze-btn:not(.ze-btn-secondary):hover,
.ze-btn:not(.ze-btn-secondary):focus,
.ze-btn:not(.ze-btn-secondary):active,
.ze-btn:not(.ze-btn-secondary):visited{
  color:#fff !important;
  text-decoration:none !important;
}

/* Secondary / outline buttons must also never inherit theme link-hover blue. */
.ze-btn-secondary:hover,
.ze-btn-secondary:focus,
.ze-btn-secondary:active,
.ze-btn-secondary:visited{
  color:#fff !important;
  text-decoration:none !important;
}

.ze-btn-outline{
  background: var(--ze-green);
  color:#fff !important;
  border:0;
}
.ze-btn-outline:hover{
  background: var(--ze-green-dark);
  color:#fff;
}
.ze-btn-outline:hover,
.ze-btn-outline:focus,
.ze-btn-outline:active,
.ze-btn-outline:visited{
  color:#fff !important;
  text-decoration:none !important;
}

/* Consistent vertical rhythm */
.ze-form .ze-btn[type="submit"],
.ze-form button.ze-btn[type="submit"]{
  margin-top: 18px;
}

.ze-subbar{
  margin-bottom: 24px;
}

/* Overview header row with right-aligned actions (export buttons etc.) */
.ze-overview-bar,
.ze-overviewbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin: 18px 0 10px;
}
.ze-overview-title,
.ze-overviewbar h3{
  margin:0;
  /* Match main page headings (e.g. "Zeiterfassung") */
  font-size:18px;
  font-weight:900;
}
.ze-overview-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.ze-btn:not(.ze-btn-outline):not(.ze-btn-secondary):hover{
  background: var(--ze-green-dark);
}

.ze-btn-secondary{
  background: var(--ze-green);
  color:#fff !important;
  border:0;
}
.ze-btn-secondary:hover{
  background: var(--ze-green-dark);
  color:#fff !important;
}

/* Legacy button class still used in a few pages (contracts/team etc.) */
.zeue-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:44px;
  min-height:44px;
  box-sizing:border-box;
  border:0;
  border-radius:12px;
  padding:0 18px;
  cursor:pointer;
  font-weight:900;
  font-size:14px;
  line-height:1;
  -webkit-appearance:none;
  background: var(--ze-green);
  color:#fff !important;
  text-decoration:none !important;
  white-space:nowrap;
}
.zeue-btn:hover,
.zeue-btn:focus,
.zeue-btn:active,
.zeue-btn:visited{ color:#fff !important; text-decoration:none !important; background: var(--ze-green-dark); }
.zeue-btn--ghost{ background: var(--ze-green); }

/* Alerts */
.ze-alert{
  background:#fff3f3;
  border:1px solid #ffd3d3;
  color:#a10000;
  padding:10px 12px;
  border-radius:12px;
  margin-bottom:10px;
}
.ze-ok{
  background:#f0fff4;
  border:1px solid #bbf7d0;
  color:#166534;
  padding:10px 12px;
  border-radius:12px;
  margin-bottom:10px;
}
.ze-hint{
  font-size:12px;
  color:#667085;
  margin-top:-2px;
  margin-bottom:6px;
}

.ze-login-links{
  margin-top:10px;
  font-size:13px;
}
.ze-login-links a{ text-decoration:none; color: var(--ze-green-dark); }
.ze-check{ margin-top:10px; display:flex; gap:8px; align-items:center; }

/* Tables */
.ze-table{
  width:100%;
  border-collapse:collapse;
  margin-top:10px;
}
.ze-table th, .ze-table td{
  border-bottom:1px solid #eef0f6;
  padding:10px 8px;
  vertical-align:top;
  text-align:left;
}
.ze-table th{ font-weight:900; }

/* Key/Value list used in Profil (read-only) */
.ze-kv{ display:flex; flex-direction:column; gap:8px; margin-top: 8px; }
.ze-kv-row{ display:flex; gap:12px; align-items:flex-start; }
.ze-kv-k{ width: 220px; font-weight: 900; }
.ze-kv-v{ flex:1; }
@media (max-width: 480px){
  .ze-kv-row{ flex-direction:column; gap:4px; }
  .ze-kv-k{ width: 100%; }
}

/* Reisekosten Übersicht: Header dark, numeric cols right-aligned (body only) */
.ze-table thead th{
  background:#484848;
  color:#ffffff;
}
.ze-table tbody td:nth-child(4),
.ze-table tbody td:nth-child(5),
.ze-table tbody td:nth-child(7),
.ze-table tbody td:nth-child(8){
  text-align:right;
}
.ze-table tfoot td:nth-child(4),
.ze-table tfoot td:nth-child(5){
  text-align:right;
}

/* Make action column minimal + right-aligned */
.ze-table .ze-col-action{
  text-align:right;
  white-space:nowrap;
  width:1%;
}

/* Overview header: title left, export buttons right (same baseline/height) */
.ze-overview-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.ze-overview-title{
  margin:0;
  font-weight:900;
  font-size:22px;
}
.ze-overview-actions{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
}

/* Actions */
.ze-actions{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

/* Mobile */
@media (max-width: 720px){
  .ze-row{ flex-direction: column; }
  .ze-appbar-inner{ flex-direction: column; align-items: flex-start; }
  .ze-nav{ width:100%; }
  .ze-subbar{ align-items:flex-start; }
  .ze-subbar-right{ width:100%; justify-content:flex-start; }
}


.ze-app-left{ display:flex; flex-direction:column; gap:6px; align-items:flex-start; }
.ze-logo{ height:64px; width:auto; }
.ze-app-title{ font-family:'EurostileMP', Arial, sans-serif; font-size:18px; font-weight:900; color:#0f172a; }
.ze-row-3{ align-items:flex-end; }
.ze-row-3 > div{ flex:1; }


.ze-login-logo{ display:flex; justify-content:center; margin-bottom:10px; }
.ze-login-logo img{ max-height:64px; width:auto; }


/* Titles */
.ze-box h2, .ze-box h3{ font-family:'EurostileMP', Arial, sans-serif; font-size:18px; font-weight:900; margin:0 0 12px 0; }
.ze-app-title{ font-family:'EurostileMP', Arial, sans-serif; font-size:18px; font-weight:900; color:#0f172a; }

.ze-formula{ font-size:12px; opacity:0.85; }

.ze-project-gap{ margin-bottom:18px; }


.ze-dd{ border:1px solid rgba(15,23,42,0.15); border-radius:10px; padding:6px; background:#fff; margin-top:6px; max-height:180px; overflow:auto; box-shadow:0 10px 24px rgba(15,23,42,0.08); }
.ze-dd-item{ display:block; width:100%; text-align:left; padding:8px 10px; border:0; background:transparent; border-radius:8px; cursor:pointer; }
.ze-dd-item:hover{ background:rgba(174,203,53,0.12); }

.ze-suggestbox{ border:1px solid rgba(0,0,0,0.12); border-radius:10px; margin-top:6px; background:#fff; max-height:180px; overflow:auto; box-shadow:0 8px 24px rgba(0,0,0,0.08); }
.ze-suggestitem{ padding:10px 12px; cursor:pointer; }
.ze-suggestitem:hover{ background:rgba(174,203,53,0.12); }

.ze-formula{ font-size:12px; opacity:0.85; vertical-align:middle; }

.ze-gap{ gap:16px; }
.ze-row.ze-gap{ display:flex; flex-wrap:wrap; }
.ze-row.ze-gap .ze-col{ flex:1; min-width:220px; }

.ze-brandwrap{display:flex;align-items:center;gap:12px;}
.ze-logo{height:42px;width:auto;display:block;}


/* v1.7.1 layout fixes */
.zeue-header__title, .zeue-app-title { white-space: nowrap; }
.zeue-header__logo img, .zeue-logo img { height: 54px; width: auto; }
@media (max-width: 520px){
  .zeue-header__logo img, .zeue-logo img { height: 44px; }
  .zeue-header__title, .zeue-app-title { font-size: 18px; }
}

/* v1.7.2 header fixes */
.zeue-header-logo{height:64px;width:auto;display:block;}
.ze-brand,.zeue-header__title,.zeue-app-title{white-space:nowrap;}

/* v1.7.7 logo inline + title */
.zeue-logo-inline svg{height:64px;width:auto;display:block;}
.ze-brandtitle,.zeue-header__title,.zeue-app-title{white-space:nowrap;}

/* Mitarbeiterportal v2.0.0 */
.ze-grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.ze-grid3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;}
@media(max-width:720px){.ze-grid2,.ze-grid3{grid-template-columns:1fr;}}

.ze-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-top:10px}
.ze-tile{
  display:flex;
  align-items:center;
  justify-content:center;
  aspect-ratio: 1 / 1;
  min-height: 150px;
  border-radius: 18px;
  background: var(--ze-green);
  color:#fff;
  font-weight:900;
  font-size: 18px;
  text-decoration:none;
  border: 0;
}
.ze-tile:hover{background:var(--ze-green-dark);color:#fff}

/* Scroll container for overview tables (e.g. Projekte -> Projektteam) */
.ze-table-scroll{
  max-height: 320px; /* ~5 rows visible incl. header */
  overflow: auto;
  border: 1px solid #e6e8ef;
  border-radius: 12px;
}
.ze-table-scroll .ze-table{ margin:0; border:0; }

/* Ensure appbar nav buttons match delete button height */
.ze-nav-right .ze-btn{ height:42px; }
