/* EPA V43 — Soft internal page presentation and consistent in-page back controls.
   Intentionally presentation-only: no data, actions or layout logic are replaced. */
#epaWorkspace{
  --epa43-ink:#17334e;
  --epa43-muted:#64788b;
  --epa43-border:#e0e9f1;
  --epa43-pale:#f6f9fc;
  --epa43-shadow:0 3px 13px rgba(16,48,79,.045);
  color:var(--epa43-ink);
  min-width:0;
}
#epaWorkspace .epa-head,
#epaWorkspace .epa-office-header{
  background:#fff!important;
  color:var(--epa43-ink)!important;
  border:1px solid var(--epa43-border)!important;
  box-shadow:var(--epa43-shadow)!important;
  border-radius:16px!important;
  padding:14px 16px!important;
  margin:0 0 12px!important;
  gap:12px!important;
  align-items:center!important;
  min-width:0!important;
}
#epaWorkspace .epa-v29-heading{
  display:flex!important;
  align-items:center!important;
  gap:11px!important;
  min-width:0!important;
  flex:1 1 auto!important;
}
#epaWorkspace .epa-v29-heading>div,
#epaWorkspace .epa-office-header>div{min-width:0!important;flex:1 1 auto!important}
#epaWorkspace .epa-head h1,
#epaWorkspace .epa-office-header h1{
  color:var(--epa43-ink)!important;
  font-size:clamp(18px,3.7vw,23px)!important;
  font-weight:740!important;
  line-height:1.25!important;
  margin:0 0 4px!important;
  letter-spacing:-.025em!important;
}
#epaWorkspace .epa-head p,
#epaWorkspace .epa-office-header p,
#epaWorkspace .epa-office-header small{
  color:var(--epa43-muted)!important;
  font-size:12.5px!important;
  font-weight:450!important;
  line-height:1.45!important;
  margin:0!important;
  letter-spacing:normal!important;
}
/* A back control belongs to its page, never the fixed site header. */
.topbar .epa-v29-page-back,
.topbar [data-epa-back],
.topbar [aria-label="Önceki sayfaya dön"]{display:none!important}
#epaWorkspace .epa-v29-page-back,
#epaWorkspace .epa-v43-back{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  flex:0 0 38px!important;
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  min-height:38px!important;
  padding:0!important;
  margin:0!important;
  box-sizing:border-box!important;
  border-radius:11px!important;
  border:1px solid #d8e4ef!important;
  color:#16476f!important;
  background:#f6f9fc!important;
  font:600 20px/1 system-ui,-apple-system,'Segoe UI',sans-serif!important;
  box-shadow:none!important;
  text-decoration:none!important;
  cursor:pointer!important;
  touch-action:manipulation;
  transition:background .16s ease,border-color .16s ease,transform .16s ease!important;
}
#epaWorkspace .epa-v29-page-back:hover,
#epaWorkspace .epa-v43-back:hover{
  background:#eaf3fa!important;
  border-color:#b4cee3!important;
  transform:translateX(-1px)!important;
}
#epaWorkspace .epa-v29-page-back:focus-visible,
#epaWorkspace .epa-v43-back:focus-visible{
  outline:3px solid #5b9bcf!important;
  outline-offset:2px!important;
}
#epaWorkspace .epa-v43-fallback-head{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  padding:10px 12px!important;
  margin:0 0 12px!important;
  background:#fff!important;
  border:1px solid var(--epa43-border)!important;
  box-shadow:var(--epa43-shadow)!important;
  border-radius:14px!important;
}
#epaWorkspace .epa-v43-fallback-head>span{font-size:13px;font-weight:680;color:#335771}
/* Gentle, unified card design. Avoid imposing fixed heights or overriding images. */
#epaWorkspace .epa-card,
#epaWorkspace .epa-work-card,
#epaWorkspace .epa-office-tile,
#epaWorkspace .epa-office-collab-card,
#epaWorkspace .epa-office-reservation,
#epaWorkspace .epa-office-admin-review,
#epaWorkspace .epa-office-application-intro,
#epaWorkspace .epa-v37-admin-legal,
#epaWorkspace .epa-notification{
  border:1px solid var(--epa43-border)!important;
  border-radius:15px!important;
  background:#fff!important;
  box-shadow:var(--epa43-shadow)!important;
  max-width:100%;
  min-width:0;
}
#epaWorkspace .epa-card,
#epaWorkspace .epa-work-card{padding:14px!important;margin-bottom:12px!important}
#epaWorkspace .epa-card h2,
#epaWorkspace .epa-card h3,
#epaWorkspace .epa-work-card h2,
#epaWorkspace .epa-work-card h3{
  color:var(--epa43-ink)!important;
  line-height:1.3!important;
  letter-spacing:-.015em!important;
}
#epaWorkspace .epa-card p,
#epaWorkspace .epa-work-card p,
#epaWorkspace .epa-office-collab-card p{
  line-height:1.5;
  overflow-wrap:anywhere;
}
#epaWorkspace .epa-muted,
#epaWorkspace .epa-u-muted{color:var(--epa43-muted)!important}
/* Collaboration offers: compact, readable panels instead of bulky stacked blocks. */
#epaWorkspace .epa-collab-tabs{
  display:flex!important;
  gap:7px!important;
  flex-wrap:wrap!important;
  margin-bottom:10px!important;
  padding:0!important;
}
#epaWorkspace .epa-collab-tabs button{
  flex:0 1 auto!important;
  min-height:38px!important;
  padding:8px 12px!important;
  font-size:12px!important;
  border-radius:10px!important;
}
#epaWorkspace .epa-collab-summary{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  padding:10px 0!important;
  margin:0!important;
  background:transparent!important;
  border-bottom:1px solid #e6edf4!important;
}
#epaWorkspace .epa-collab-summary>button{margin-left:auto}
#epaWorkspace .epa-collab-offer{
  display:grid!important;
  gap:7px!important;
  margin:11px 0!important;
  padding:12px 13px!important;
  border:1px solid var(--epa43-border)!important;
  border-radius:13px!important;
  box-shadow:none!important;
  background:#fff!important;
  overflow-wrap:anywhere;
}
#epaWorkspace .epa-collab-offer-top{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:8px!important;
  flex-wrap:wrap!important;
}
#epaWorkspace .epa-collab-offer-top strong{
  font-size:14px!important;
  line-height:1.35!important;
  color:#173954!important;
}
#epaWorkspace .epa-collab-offer>p{
  margin:2px 0!important;
  font-size:13px!important;
  line-height:1.45!important;
}
#epaWorkspace .epa-collab-offer .epa-collab-person{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  font-size:12.5px!important;
}
#epaWorkspace .epa-collab-offer .epa-actions{
  display:flex!important;
  gap:7px!important;
  flex-wrap:wrap!important;
  margin-top:4px!important;
}
#epaWorkspace .epa-collab-offer .epa-actions .epa-btn{
  flex:0 1 auto!important;
  min-height:37px!important;
  padding:8px 11px!important;
  border-radius:10px!important;
  font-size:12px!important;
}
#epaWorkspace .epa-office-collab-card{
  padding:12px 14px!important;
  margin:10px 0!important;
  gap:12px!important;
}
/* Shared form, filters and button rhythm — preserve all click handlers. */
#epaWorkspace .epa-actions{gap:8px!important;flex-wrap:wrap!important}
#epaWorkspace .epa-btn{
  border-radius:10px!important;
  min-height:38px;
  font-size:12.5px;
  letter-spacing:0!important;
  line-height:1.25!important;
  white-space:normal;
  overflow-wrap:anywhere;
  box-shadow:none!important;
  transition:background .14s ease,border-color .14s ease!important;
}
#epaWorkspace .epa-field input,
#epaWorkspace .epa-field select,
#epaWorkspace .epa-field textarea,
#epaWorkspace .epa-office-formgrid input,
#epaWorkspace .epa-office-formgrid select,
#epaWorkspace .epa-office-formgrid textarea{
  border-radius:10px!important;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}
#epaWorkspace .epa-office-tabs{gap:7px!important;margin:10px 0 12px!important}
#epaWorkspace .epa-office-tabs button{border-radius:10px!important;font-size:12px!important;padding:9px 12px!important}
#epaWorkspace .epa-notification-filters{gap:7px!important}
#epaWorkspace .epa-notification-filters button{font-size:12px!important;padding:8px 10px!important;border-radius:9px!important}
#epaWorkspace .epa-u-table th,
#epaWorkspace .epa-u-table td{padding:9px 7px!important}
#epaWorkspace .epa-u-controls{gap:7px!important}
#epaWorkspace .epa-u-controls select{border-radius:10px!important}
/* Distinguish secondary, nested back controls within pages. Keep their actions unchanged. */
#epaWorkspace .epa-v43-sub-back{
  min-height:36px!important;
  padding:7px 12px!important;
  border-radius:10px!important;
  color:#275573!important;
  background:#f6f9fc!important;
  border:1px solid #dce7ef!important;
  box-shadow:none!important;
  font-size:12.5px!important;
}
@media(max-width:620px){
  #epaWorkspace .epa-head,
  #epaWorkspace .epa-office-header{padding:12px!important;gap:9px!important;align-items:flex-start!important}
  #epaWorkspace .epa-head h1,
  #epaWorkspace .epa-office-header h1{font-size:18px!important}
  #epaWorkspace .epa-head p,
  #epaWorkspace .epa-office-header p{font-size:12px!important}
  #epaWorkspace .epa-card,
  #epaWorkspace .epa-work-card{padding:12px!important}
  #epaWorkspace .epa-collab-offer{padding:11px!important}
  #epaWorkspace .epa-v29-page-back,
  #epaWorkspace .epa-v43-back{flex-basis:38px!important}
  #epaWorkspace .epa-collab-offer .epa-actions .epa-btn{max-width:100%!important}
}
@media(prefers-reduced-motion:reduce){
  #epaWorkspace .epa-v29-page-back,#epaWorkspace .epa-v43-back{transition:none!important;transform:none!important}
}
