
:root{
  --bg:#f8f8ff;
  --paper:#ffffff;
  --surface:#ffffff;
  --surface-soft:#ffffff;
  --text:#0A0F29;
  --muted:#69708a;
  --line:#e1e3ef;
  --line-dark:#c9ccdc;
  --primary:#0A0F29;
  --primary-soft:#eef0f8;
  --accent:#0A0F29;
  --accent-soft:#eef0f8;
  --green:#2f7d62;
  --green-soft:#e8f5ef;
  --orange:#b5761c;
  --orange-soft:#fbf3e5;
  --red:#b34747;
  --red-soft:#fdecec;
  --shadow:0 12px 34px rgba(26,24,20,.06);
  --radius:8px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased
}
a{text-decoration:none;color:inherit}
.layout{display:grid;grid-template-columns:252px 1fr;min-height:100vh}
.sidebar{
  background:#0A0F29;
  color:#fff;
  padding:28px 18px 22px;
  display:flex;
  flex-direction:column;
  gap:6px;
  position:sticky;
  top:0;
  height:100vh;
  border-right:1px solid #0A0F29
}
.brand{margin-bottom:24px;line-height:1}
.brand-main{
  display:block;
  font-size:21px;
  font-weight:900;
  letter-spacing:-.04em
}
.brand-sub{
  display:block;
  margin-top:5px;
  font-size:14px;
  font-weight:700;
  color:#ffffff
}
.brand small{
  display:block;
  font-size:10px;
  color:#9da4bf;
  margin-top:9px;
  font-weight:700;
  letter-spacing:.02em
}
.sidebar a{
  padding:11px 12px;
  border-radius:4px;
  color:#e5e7f2;
  font-weight:700;
  font-size:14px;
  transition:.15s ease
}
.sidebar a:hover{
  background:#151b3a;
  color:#fff
}
.navitem{display:flex;align-items:center;justify-content:space-between;gap:12px}
.navitem.current{
  background:#fff;
  color:#0A0F29
}
.navcount{
  display:inline-flex;
  min-width:25px;
  height:22px;
  padding:0 7px;
  border-radius:999px;
  align-items:center;
  justify-content:center;
  background:#202747;
  color:#fff;
  font-size:11px;
  font-weight:800
}
.navitem.current .navcount{
  background:#0A0F29;
  color:#fff
}
.bottom{
  margin-top:auto;
  border-top:1px solid #273052;
  padding-top:16px;
  display:flex;
  flex-direction:column;
  gap:10px
}
.usercard{
  padding:10px 11px;
  border:1px solid #273052;
  border-radius:4px
}
.usercard-name{font-size:13px;font-weight:800;color:#fff}
.bottom .muted{color:#9da4bf}
.logout-link{color:#b8bfd4!important}
.main{padding:38px 42px 56px}
.top{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  margin-bottom:24px;
  padding-bottom:18px;
  border-bottom:1px solid var(--line)
}
.page-kicker,.eyebrow{
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
  color:#0A0F29;
  margin-bottom:8px
}
.top h1{
  margin:0;
  font-size:42px;
  line-height:.98;
  letter-spacing:-.055em;
  font-weight:900
}
.muted{font-size:12px;color:var(--muted)}
.grid{display:grid;gap:15px}
.cols2{grid-template-columns:repeat(2,minmax(0,1fr))}
.cols4{grid-template-columns:repeat(4,minmax(0,1fr))}
.card{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:none
}
.metric{
  min-height:120px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  border-top:3px solid var(--text)
}
.metric small{
  color:var(--muted);
  text-transform:uppercase;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em
}
.metric strong{
  display:block;
  font-size:38px;
  line-height:1;
  color:var(--text);
  letter-spacing:-.045em
}
.section{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.section h2{margin:0;font-size:19px;letter-spacing:-.03em}
.list{display:flex;flex-direction:column}
.row{
  border:0;
  border-top:1px solid var(--line);
  border-radius:0;
  padding:13px 2px;
  background:transparent;
  transition:.12s ease
}
.list>.row:first-child,.list>a.row:first-child{border-top:0}
.list a.row:hover,.project-overview-row:hover{
  background:transparent;
  transform:none;
  color:#0A0F29
}
.title{font-weight:900;font-size:15px;letter-spacing:-.02em}
.meta{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.45}
.btn{
  border:1px solid var(--text);
  border-radius:4px;
  padding:10px 14px;
  background:var(--text);
  color:#fff;
  font-weight:800;
  cursor:pointer;
  box-shadow:none;
  transition:.12s ease
}
.btn:hover{
  background:#0A0F29;
  border-color:#0A0F29;
  transform:none
}
.btn.secondary{
  background:transparent;
  color:var(--text);
  border-color:var(--line-dark)
}
.btn.secondary:hover{
  color:#0A0F29;
  border-color:#0A0F29;
  background:transparent
}
.btn.danger{
  background:transparent;
  color:var(--red);
  border-color:#d8a9a9
}
.btn.danger:hover{background:var(--red);color:#fff;border-color:var(--red)}
.drive-btn{
  background:transparent;
  color:var(--text);
  border:1px solid var(--line-dark)
}
.field{display:flex;flex-direction:column;gap:7px;margin-bottom:13px}
.field label{
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#514d47
}
.field input,.field select,.field textarea,select,input,textarea{
  border:1px solid var(--line-dark);
  border-radius:4px;
  padding:11px 12px;
  font:inherit;
  background:#fff;
  outline:none
}
.field input:focus,.field select:focus,.field textarea:focus,select:focus,input:focus,textarea:focus{
  border-color:#0A0F29;
  box-shadow:0 0 0 2px #eef0f8
}
textarea{min-height:120px}
.flash{
  padding:12px 14px;
  border-radius:4px;
  margin-bottom:14px;
  border:1px solid var(--line);
  background:#fff
}
.flash.success{border-left:4px solid var(--green);background:var(--green-soft);color:var(--green)}
.flash.error{border-left:4px solid var(--red);background:var(--red-soft);color:var(--red)}
.badge{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:4px 8px;
  font-size:10px;
  font-weight:900;
  background:var(--primary-soft);
  color:var(--text)
}
.mailbody{
  white-space:pre-wrap;
  background:#fff;
  border:1px solid var(--line);
  border-radius:4px;
  padding:16px;
  line-height:1.62
}
.check{
  display:flex;
  gap:8px;
  align-items:center;
  border:1px solid var(--line);
  padding:10px;
  border-radius:4px;
  margin-bottom:7px;
  background:#fff
}
.actions{display:flex;gap:8px;flex-wrap:wrap}
.login{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
  background:#f8f8ff
}
.loginbox{
  width:min(460px,100%);
  background:var(--paper);
  border:1px solid var(--line-dark);
  border-radius:8px;
  padding:30px;
  box-shadow:none
}
.login-brand{
  font-size:13px;
  font-weight:900;
  letter-spacing:.05em;
  margin-bottom:28px
}
.login-brand span{color:#0A0F29}
.loginbox h1{
  margin:0 0 8px;
  font-size:42px;
  line-height:.95;
  letter-spacing:-.05em
}
.note{
  background:#ffffff;
  border:0;
  border-left:4px solid #0A0F29;
  padding:12px 14px;
  border-radius:0;
  font-size:13px
}
.comment{
  border-left:3px solid var(--accent);
  background:#fff;
  padding:11px 13px;
  border-radius:0
}
.mailrow{display:flex;align-items:center;justify-content:space-between;gap:12px}
.mailrow-main{flex:1;min-width:0}
.attachments{margin-top:18px;padding-top:16px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.attachment{
  display:flex;
  justify-content:space-between;
  padding:10px 0;
  border-bottom:1px solid var(--line);
  font-weight:800
}
.customer-project-groups{display:flex;flex-direction:column;gap:16px}
.customer-project-group{padding:18px}
.customer-project-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-bottom:12px;
  margin-bottom:6px;
  border-bottom:2px solid var(--text)
}
.customer-project-title{
  font-size:21px;
  font-weight:900;
  letter-spacing:-.035em
}
.project-overview-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px
}
.project-next{text-align:right;max-width:320px}
.project-next span{
  display:block;
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#0A0F29;
  font-weight:900
}
.project-next strong{font-size:12px}
.project-tabs{
  display:flex;
  gap:22px;
  border-bottom:1px solid var(--line);
  margin-bottom:18px
}
.project-tabs a{
  padding:10px 0;
  font-size:12px;
  font-weight:900;
  color:var(--muted)
}
.project-tabs a.active{
  color:var(--text);
  border-bottom:3px solid #0A0F29
}
.project-browser{background:#ffffff!important;border-color:#d0c8bb!important}
.project-browser-item.active{
  background:#fff!important;
  border-left:4px solid #0A0F29!important
}
.project-browser-item:hover{background:#f6f2ea!important}
.project-detail-head{border-bottom:1px solid var(--line)}
.project-detail-title{font-size:34px!important;letter-spacing:-.05em!important}
.mini-kpi{
  border-top:3px solid #0A0F29;
  border-radius:4px
}
.mini-kpi strong{color:var(--text)!important}
.timer-running{
  border-radius:4px!important;
  box-shadow:none!important
}
.customer-time-strip{
  border-radius:4px!important;
  background:#ffffff!important
}
.deadline-group{border-radius:4px}
.activity-item{border-bottom:1px solid var(--line)}
.activity-dot{background:#0A0F29;box-shadow:none}
.client-user-card{border:1px solid var(--line);padding:14px!important}
.login-stats{border-radius:4px!important;background:#ffffff!important}
.customer-settings{border-radius:4px!important}
.soft-divider{border-top-color:var(--line)}
.icon-danger{border-radius:2px}
@media(max-width:1000px){.cols4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){
  .layout{grid-template-columns:1fr}
  .sidebar{display:none}
  .main{padding:22px}
  .cols2,.cols4{grid-template-columns:1fr}
}
@media(max-width:700px){
  .top{flex-direction:column}
  .top h1{font-size:34px}
  .project-overview-row,.deadline-row,.mailrow{align-items:flex-start;flex-direction:column}
  .project-next{text-align:left}
}


/* v14 palette lock */
html,body{background:#f8f8ff;color:#0A0F29}
.main{background:#f8f8ff}
.sidebar{background:#0A0F29;color:#fff}
.card,
.loginbox,
.mailbody,
.check,
.attachment,
.client-user-card,
.customer-settings,
.deadline-group,
.project-detail,
.project-section-card,
.create-task-card,
.time-manual-details,
.timer-running,
.row{background:#ffffff}
.project-browser{background:#ffffff!important}
.project-browser-item{background:#ffffff}
.project-browser-item.active{background:#ffffff!important}
.navitem.current{background:#ffffff;color:#0A0F29}
.navitem.current .navcount{background:#0A0F29;color:#ffffff}
.btn{background:#0A0F29;border-color:#0A0F29;color:#ffffff}
.btn:hover{background:#151b3a;border-color:#151b3a}
.btn.secondary,.drive-btn{background:#ffffff;color:#0A0F29;border-color:#c9ccdc}
.btn.secondary:hover,.drive-btn:hover{background:#ffffff;color:#0A0F29;border-color:#0A0F29}
.page-kicker,.eyebrow{color:#0A0F29}
.metric{background:#ffffff;border-top-color:#0A0F29}
.metric strong,.mini-kpi strong,.customer-time-strip strong{color:#0A0F29!important}
.project-tabs a.active{color:#0A0F29;border-bottom-color:#0A0F29}
.login{background:#f8f8ff}
.login-brand{color:#0A0F29}
.login-brand span{color:#0A0F29}
.note{background:#ffffff;border-left-color:#0A0F29}
.activity-dot{background:#0A0F29}
.customer-time-strip{background:#ffffff!important;border-color:#e1e3ef}
.login-stats{background:#ffffff!important;border:1px solid #e1e3ef}


/* v15: mere luft på Tid */
.cols3{grid-template-columns:repeat(3,minmax(0,1fr))}
.time-main-grid{gap:22px}
.time-main-grid>.card,
.time-main-grid>div>.card{padding:22px}
.time-main-grid .grid.cols2{gap:16px}
.mini-kpi{
  min-height:112px;
  padding:19px 20px!important;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  gap:10px;
}
.mini-kpi span{
  display:block;
  font-size:11px;
  line-height:1.2;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#69708a;
}
.mini-kpi strong{
  display:block;
  margin:0;
  font-size:28px;
  line-height:1.05;
  letter-spacing:-.035em;
}
.time-main-grid .section{margin-bottom:18px}
.time-main-grid .field{margin-bottom:16px}
.time-main-grid .soft-divider{margin:26px 0}
.time-entry-list{margin-top:4px}

/* v15: Notifikationer */
.notification-stats{margin-bottom:18px}
.notification-stat{
  min-height:105px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:9px;
  border-top:3px solid #0A0F29;
}
.notification-stat span{
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#69708a;
}
.notification-stat strong{
  font-size:30px;
  line-height:1;
  color:#0A0F29;
}
.notification-list-card{padding:22px}
.notification-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.pending-badge{
  background:#f8f8ff;
  border:1px solid #c9ccdc;
}
.notification-empty{
  min-height:135px;
  display:flex;
  align-items:center;
  gap:16px;
  padding:24px 4px;
}
.notification-empty-icon{
  width:42px;
  height:42px;
  flex:0 0 42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#f8f8ff;
  border:1px solid #e1e3ef;
  color:#0A0F29;
  font-weight:900;
}
.notification-empty strong{
  display:block;
  font-size:16px;
  margin-bottom:5px;
}
.notification-empty p{
  margin:0;
  max-width:620px;
  color:#69708a;
  font-size:13px;
  line-height:1.55;
}

@media(max-width:900px){
  .cols3{grid-template-columns:1fr}
}


/* v16: bedre spacing på mail-behandling */
.mail-process-layout{
  display:grid;
  grid-template-columns:minmax(320px,0.95fr) minmax(520px,1.15fr);
  gap:24px;
  align-items:start;
}
.mail-source-card{
  position:sticky;
  top:24px;
  padding:24px;
}
.mail-source-card h2{
  margin:0 0 16px;
  font-size:28px;
  line-height:1.05;
  letter-spacing:-.04em;
}
.mail-sender{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-bottom:18px;
  padding-bottom:16px;
  border-bottom:1px solid #e1e3ef;
}
.mail-sender span{
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#69708a;
}
.mail-actions-panel{
  display:flex;
  flex-direction:column;
  gap:20px;
}
.process-step{
  padding:24px;
}
.process-step-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.process-step-head h2{
  margin:0 0 6px;
  font-size:22px;
  line-height:1.1;
  letter-spacing:-.03em;
}
.step-number{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:999px;
  background:#f8f8ff;
  border:1px solid #d6dbed;
  color:#0A0F29;
  font-size:14px;
  font-weight:900;
  flex:0 0 34px;
}
.choice-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:12px 18px;
  margin-bottom:16px;
}
.choice-tabs label,
.create-toggle{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:700;
}
#existingCustomerFields,
#newCustomerFields,
#existingProjects,
#newProjectFields{
  margin-top:16px;
}
.inline-create{
  padding:18px;
  border:1px solid #e1e3ef;
  border-radius:8px;
  background:#ffffff;
}
.project-choice-list{
  display:grid;
  gap:10px;
}
.projectcheck{
  min-height:58px;
}
.projectcheck span{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.projectcheck small{
  font-size:11px;
  color:#69708a;
}
.create-toggle{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid #e1e3ef;
}
.task-drafts{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:6px;
}
.task-draft{
  border:1px solid #e1e3ef;
  border-radius:8px;
  background:#ffffff;
  padding:16px;
}
.task-draft-main{
  display:grid;
  grid-template-columns:1.2fr .9fr;
  gap:14px;
}
.task-draft-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid #eef0f8;
}
.empty-hint{
  margin-top:14px;
  padding:16px 18px;
  border:1px dashed #cfd4e7;
  border-radius:8px;
  background:#fbfbff;
  color:#69708a;
}
.process-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 2px 4px;
  margin-top:2px;
  border-top:1px solid #e1e3ef;
}
.process-footer .actions{
  flex-wrap:wrap;
}
@media(max-width:1100px){
  .mail-process-layout{
    grid-template-columns:1fr;
  }
  .mail-source-card{
    position:static;
  }
}
@media(max-width:700px){
  .process-step,
  .mail-source-card{
    padding:18px;
  }
  .process-step-head,
  .task-draft-actions,
  .process-footer{
    flex-direction:column;
    align-items:flex-start;
  }
  .task-draft-main{
    grid-template-columns:1fr;
  }
  .step-number{
    width:30px;
    height:30px;
    font-size:13px;
  }
}


/* v17: projektvisning gjort mere overskuelig */
.project-shell{
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  gap:24px;
  align-items:start;
}
.project-browser{
  position:sticky;
  top:24px;
  border:1px solid #e1e3ef !important;
  border-radius:10px;
  padding:18px;
  background:#ffffff !important;
}
.project-browser-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.project-browser-head h2{
  margin:2px 0 0;
  font-size:17px;
  line-height:1.1;
  letter-spacing:-.03em;
}
.icon-link{
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #d5d8e8;
  border-radius:8px;
  background:#ffffff;
  color:#0A0F29;
  font-weight:900;
  flex:0 0 34px;
}
.project-search{
  margin-bottom:16px;
}
.project-search input{
  width:100%;
}
.project-customer-block{
  margin-top:18px;
}
.project-customer-block:first-of-type{
  margin-top:0;
}
.project-customer-label{
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#69708a;
  margin-bottom:8px;
}
.project-browser-item{
  display:flex !important;
  flex-direction:column;
  gap:4px;
  padding:12px 14px;
  border:1px solid #e1e3ef;
  border-radius:8px;
  margin-bottom:8px;
  color:#0A0F29;
  transition:.12s ease;
}
.project-browser-item strong{
  font-size:14px;
  line-height:1.25;
}
.project-browser-item span{
  font-size:12px;
  color:#69708a;
}
.project-browser-item:hover{
  background:#f8f8ff !important;
  border-color:#cfd4e7;
}
.project-browser-item.active{
  border-color:#0A0F29 !important;
  border-left:4px solid #0A0F29 !important;
  padding-left:11px;
}

.project-detail-pane{
  min-width:0;
}
.project-detail-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding-bottom:18px;
  margin-bottom:18px;
  border-bottom:1px solid #e1e3ef;
}
.project-detail-head h1{
  margin:0 0 10px;
  font-size:48px;
  line-height:.96;
  letter-spacing:-.055em;
}
.project-head-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.status-pill{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:7px 11px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.03em;
  background:#eef0f8;
  color:#0A0F29;
}
.status-pill.small{
  padding:5px 9px;
  font-size:10px;
}
.project-head-meta > span:not(.status-pill){
  font-size:13px;
  color:#69708a;
}
.project-detail-head .actions{
  flex-wrap:wrap;
}

.project-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  margin-bottom:18px;
  padding:0 0 14px;
  border-bottom:1px solid #e1e3ef;
}
.project-tabs a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:2px 0 10px;
  font-size:13px;
  font-weight:900;
  color:#69708a;
}
.project-tabs a span{
  color:#0A0F29;
}
.project-tabs a.active{
  color:#0A0F29;
  border-bottom:3px solid #0A0F29;
}

.project-summary-grid{
  display:grid;
  grid-template-columns:minmax(320px,1.1fr) minmax(260px,.9fr);
  gap:18px;
  margin-bottom:18px;
}
.summary-card{
  padding:22px;
}
.summary-label{
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#69708a;
  margin-bottom:8px;
}
.summary-value{
  font-size:34px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.04em;
  margin-bottom:18px;
}
.summary-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.summary-list > div{
  padding:14px;
  border:1px solid #e1e3ef;
  border-radius:8px;
  background:#f8f8ff;
}
.summary-list span{
  display:block;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#69708a;
  margin-bottom:7px;
}
.summary-list strong{
  display:block;
  font-size:15px;
  line-height:1.35;
  word-break:break-word;
}

.project-kpis{
  display:grid;
  grid-template-columns:repeat(1,minmax(0,1fr));
  gap:14px;
}
.project-kpis .mini-kpi{
  min-height:140px;
  padding:20px;
  justify-content:space-between;
}
.project-kpis .mini-kpi a{
  display:inline-flex;
  margin-top:6px;
  font-size:13px;
  font-weight:800;
  color:#0A0F29;
}

.project-section-card{
  padding:22px;
  margin-bottom:18px;
  border-radius:10px;
}
.project-section-card .section{
  margin-bottom:18px;
}
.task-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.task-row .title{
  margin-bottom:5px;
}
.empty-state{
  padding:18px 2px 6px;
  color:#69708a;
  font-size:14px;
}

.time-summary-inline{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:3px;
}
.time-summary-inline strong{
  font-size:28px;
  line-height:1;
  letter-spacing:-.04em;
}
.time-summary-inline span{
  font-size:12px;
  color:#69708a;
}
.time-quick-form{
  display:grid;
  grid-template-columns:minmax(200px,1fr) minmax(240px,1.2fr) auto auto;
  gap:14px;
  align-items:end;
  padding:18px;
  border:1px solid #e1e3ef;
  border-radius:10px;
  background:#f8f8ff;
  margin-bottom:16px;
}
.time-quick-form > label{
  margin-bottom:11px;
  font-weight:700;
  white-space:nowrap;
}
.time-manual-details{
  border:1px solid #e1e3ef;
  border-radius:10px;
  padding:16px 18px;
  margin-bottom:16px;
}
.time-manual-details summary{
  cursor:pointer;
  font-weight:900;
  color:#0A0F29;
}
.time-manual-form{
  margin-top:16px;
}
.time-duration{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.time-entry-list.compact-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.time-entry{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:14px 0;
  border-top:1px solid #e1e3ef;
}
.time-entry-list .time-entry:first-child{
  border-top:1px solid #e1e3ef;
}
.time-entry-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.icon-danger{
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #d9b3b3;
  background:#fff;
  color:#b34747;
  cursor:pointer;
}

.create-task-card{
  border-radius:10px;
  padding:18px 20px;
}
.create-task-card summary{
  cursor:pointer;
  font-weight:900;
  color:#0A0F29;
}
.create-task-form{
  margin-top:18px;
}

#overblik,#opgaver,#mails,#tid{
  scroll-margin-top:18px;
}

@media(max-width:1200px){
  .project-shell{
    grid-template-columns:1fr;
  }
  .project-browser{
    position:static;
  }
  .project-summary-grid{
    grid-template-columns:1fr;
  }
  .project-kpis{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .time-quick-form{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:800px){
  .project-detail-head,
  .task-row,
  .time-entry{
    flex-direction:column;
    align-items:flex-start;
  }
  .project-detail-head h1{
    font-size:38px;
  }
  .summary-list,
  .project-kpis,
  .time-duration,
  .time-quick-form{
    grid-template-columns:1fr;
  }
  .time-summary-inline{
    align-items:flex-start;
  }
}


/* v18: klikbare mails på projektsiden */
.project-mail-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
a.project-mail-row{
  cursor:pointer;
}
a.project-mail-row:hover{
  color:#0A0F29;
  background:#f8f8ff;
}
.mail-open-link{
  flex:0 0 auto;
  font-size:12px;
  font-weight:900;
  color:#0A0F29;
}
@media(max-width:700px){
  .project-mail-row{
    align-items:flex-start;
    flex-direction:column;
  }
}


/* v19: kundesiden */
.customer-page{
  max-width:1500px;
  margin:0 auto;
}
.customer-hero{
  margin-bottom:18px;
}
.customer-hero h1{
  font-size:46px;
}
.customer-hero .actions{
  align-items:center;
}
.customer-time-strip{
  display:grid;
  grid-template-columns:auto auto 1fr;
  gap:28px;
  align-items:center;
  padding:18px 20px;
  margin:0 0 16px;
  border:1px solid #e1e3ef;
  border-radius:10px!important;
  background:#ffffff!important;
}
.customer-time-strip > div{
  min-width:150px;
}
.customer-time-strip span{
  display:block;
  margin-bottom:6px;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.07em;
  color:#69708a;
}
.customer-time-strip strong{
  display:block;
  font-size:24px;
  line-height:1;
}
.customer-time-strip a{
  justify-self:end;
  font-size:12px;
  font-weight:900;
}
.customer-settings{
  padding:0 20px!important;
  margin-bottom:18px!important;
  border:1px solid #e1e3ef;
  border-radius:10px!important;
}
.customer-settings summary{
  padding:16px 0!important;
}

.customer-main-grid{
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(360px,.7fr);
  gap:18px;
  align-items:start;
}
.customer-projects-card,
.customer-create-project,
.customer-users-card,
.customer-create-login,
.customer-activity-card{
  padding:22px;
  border-radius:10px;
}
.customer-projects-card{
  min-height:430px;
}
.customer-create-project{
  position:sticky;
  top:24px;
}
.customer-project-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:16px 2px;
}
.customer-project-row .title{
  font-size:16px;
}
.customer-project-deadline{
  flex:0 0 auto;
  padding:6px 9px;
  border-radius:999px;
  background:#f8f8ff;
  color:#69708a;
  font-size:11px;
  font-weight:800;
}

.customer-users-grid{
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(360px,.7fr);
  gap:18px;
  align-items:start;
  margin-top:18px;
}
.customer-users-card{
  min-height:310px;
}
.customer-create-login{
  position:sticky;
  top:24px;
}
.client-user-card{
  border:1px solid #e1e3ef!important;
  border-radius:9px;
  padding:16px!important;
  margin-bottom:12px;
}
.client-user-card:last-child{
  margin-bottom:0;
}
.customer-create-login .project-access-grid{
  margin-top:10px;
}
.customer-create-login .field{
  margin-bottom:14px;
}

.customer-activity-card{
  margin-top:18px;
}
.customer-activity-card .activity-item{
  padding:14px 2px;
}

.customer-create-project form,
.customer-create-login form{
  margin-top:4px;
}
.customer-create-project .field:last-of-type,
.customer-create-login .field:last-of-type{
  margin-bottom:14px;
}

@media(max-width:1150px){
  .customer-main-grid,
  .customer-users-grid{
    grid-template-columns:1fr;
  }
  .customer-create-project,
  .customer-create-login{
    position:static;
  }
}
@media(max-width:700px){
  .customer-hero h1{
    font-size:36px;
  }
  .customer-time-strip{
    grid-template-columns:1fr 1fr;
    gap:16px;
  }
  .customer-time-strip a{
    grid-column:1/-1;
    justify-self:start;
  }
  .customer-project-row{
    align-items:flex-start;
    flex-direction:column;
  }
}
