
: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}
}
