/* ---------- Reset & base ---------- */
* {box-sizing: border-box;}
html,body { height: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: #333;
  background: #ffffff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  /* overflow: hidden; */
  height: auto;
}

/* ---------- Sidebar (desktop) ---------- */
.sidebar {
  width: 290px;
  background: #0d2355;
  color: #fff;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  padding: 0px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1200;
  transition: transform 260ms cubic-bezier(.2,.8,.2,1);
  transform: translateX(0); /* visible by default on desktop */
}

/* header inside sidebar */
.sidebar-header {
  display: block;
  /* gap: 5px; */
  /* align-items:center; */
  /* justify-content:space-between; */
  text-align: center;
  background: #03153e;
  /* background: linear-gradient(to bottom, #1f4395, #fff); */
  /* border-bottom: 1px solid #e0e0e0; */
  padding: 0.2rem;
}
.quick-add:hover {
    background: #0b3799;
}

.quick-add {
  background: #0b3799;
  color:#fff;
  border: none;
  padding: 13px 43px;
  border-radius:8px;
  font-weight:600;
  display:flex;
  align-items:center;
  gap: 12px;
  cursor:pointer;
  font-size: 16px;
}
.close-sidebar {
  background:transparent;
  color:#fff;
  border:none;
  font-size:18px;
  display:none; /* only on mobile we show it */
  cursor:pointer;
}

/* nav list with bigger tap targets */
.sidebar-nav ul {
  list-style:none;
  padding: 8px 0;
  margin: 0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.sidebar-nav a {
  display:flex;
  align-items:center;
  gap:12px;
  padding: 12px;
  text-decoration:none;
  color:#d1d5db;
  border-radius:8px;
  transition: background 160ms, color 160ms;
}
.sidebar-nav a:hover {
  background: rgba(255,255,255,0.04);
  color:#fff;
}
.sidebar-nav i { width:20px; text-align:center; }

/* footer */
.sidebar-footer {
  margin-top:auto;
  background: #03153e;
  padding: 10px 0px;
  /* border-radius:8px; */
  display:flex;
  align-items:center;
  gap: 5px;
}
.badge {
  /* background: #ec4899; */
  /* padding: 6px 10px; */
  /* border-radius: 20px; */
  /* font-weight:700; */
}

/* ---------- Overlay (mobile) ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 1100;
}
.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ---------- Mobile header ---------- */
.mobile-header {
  display: none; /* visible only on small screens */
  background: #0e172a;
  color: white;
  padding: 12px;
  align-items:center;
  gap:12px;
  position: sticky;
  top:0;
  z-index:1000;
}
.open-sidebar {
  background:transparent;
  border:none;
  color:#fff;
  font-size:18px;
  cursor:pointer;
  padding: 0px 5px;
}
.mobile-title { margin:0; font-size:16px }

/* ---------- Main content (respects sidebar on desktop) ---------- */
.main {
  margin-left: 290px; /* reserve space for the fixed sidebar on desktop */
  min-height: 94vh;
  /* transition: margin-left 260ms cubic-bezier(.2,.8,.2,1); */
  overflow-y: hidden;
}

/* ---------- Header (breadcrumb + tabs + status) ---------- */
.main-header {
  background:#fff;
  border-bottom:1px solid #e6e6ee;
  /* padding: 18px; */
}
.breadcrumb {color: #0d2355a1;font-size:13px;margin-bottom:8px;}

/* top nav */
.top-nav { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.tabs { display:flex; gap:18px; align-items:center; flex-wrap:wrap;}
.tabs a {text-decoration:none;color:#444;font-weight:500;padding: 8px 0;position:relative;margin-left: 15px;margin-bottom: 5px;}
.tabs a.active {color: #0b3799;font-weight:700;}
.tabs a::after {content:"";position:absolute;left:0;bottom:-6px;width:0;height:2px;background: #0b3799;transition:width .22s ease;}
.tabs a.active::after, .tabs a:hover::after { width:100%; }

/* task-status group */
.task-status-group {
  background:#f3f4f6;
  border-radius: 20px;
  padding:8px 12px;
  display:flex;
  gap:12px;
  align-items:center;
  font-size:13px;
}
.task-status-group span { display:flex; gap:6px; align-items:center; }
.text-red{ color:#ef4444 } .text-blue{ color:#3b82f6 } .text-yellow{ color:#facc15 }

/* filters row */
.filters-row { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:14px; }
.dropdown { background:transparent; border:none; font-size:14px; cursor:pointer; color:#333; display:flex; gap:8px; align-items:center; }
.filter-right { display:flex; gap:10px; align-items:center; }

/* action buttons */
.filter-btn, .add-project, .more-btn { border:none; border-radius:20px; padding:8px 12px; display:inline-flex; gap:8px; align-items:center; cursor:pointer; font-size:14px; }
.filter-btn { background:#fff; border:1px solid #e6e6ee; }
.add-project { background:#3b82f6; color:#fff; }
.more-btn { background:#fff; border:1px solid #e6e6ee; padding:8px; }

/* ---------- Activity feed ---------- */
.activity { padding:18px; overflow:auto; }
.activity-item {display:flex;gap:12px;margin-bottom: 4px;align-items:flex-start;/* border-bottom: 1px solid #e6e3e3; */padding-bottom: 9px;/* overflow-y: scroll; */}
.details .avatar {width: 35px;height: 35px;border-radius:50%;background:#f97316;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;padding: 17px;}
.details 
 {
    display: inline-flex;
    gap: 23px;
    margin-left: 15px;
} 

.message {color:#444;display:block;margin: 4px 0;/* max-height:2.4em; *//* overflow: scroll; */cursor:pointer;}
.message.expanded { max-height:9999px; }

/* ---------- Responsive behaviour ---------- */
@media (max-width: 1024px) {
  /* slightly reduce sidebar width on medium screens if desired */
  .sidebar { width:220px; }
  .main { margin-left:220px; }
}

@media (max-width: 768px) {
  /* Sidebar hidden by default on mobile: slide off-canvas */
  .sidebar {
    width: 85%;
    max-width: 360px;
    transform: translateX(-110%);
    box-shadow: 8px 0 30px rgba(12,14,25,0.25);
    padding: calc(env(safe-area-inset-top, 16px) + 12px) 16px 20px;
  }
  .sidebar.open {
    transform: translateX(0);
  }

  /* display close button inside sidebar */
  .close-sidebar { display:inline-block; }

  /* overlay visible only when active */
  .overlay { display:block; }

  /* mobile header shows */
  .mobile-header { display:flex; }

  /* Main should occupy full width on mobile */
  .main {margin-left: 10px;width:100%;}

  /* Make sidebar quick-add full width on mobile */
  .sidebar-header .quick-add {/* width: calc(100% - 36px); */text-align:left;}

  /* larger tap targets for nav */
  .sidebar-nav a { padding: 14px 12px; font-size:16px; }
  .sidebar-nav .label { font-weight:600; }

  /* keep the header compact on mobile */
  .main-header { padding: 14px; }
  .tabs { gap:10px; font-size:14px; }
  .task-status-group { font-size:13px; padding:6px 10px; }
}
.details strong, .details span.time {
    line-height: 32px;
    font-size: 14px;
    color: #444;
    font-weight: 600;
}
.details span.time 
 {
    line-height: 36px;
    font-size: 13px;
    color: #004ea3;
    /*    background: #efefef;*/
    border-radius: 32px;
    /*    padding: 0px 13px;*/
    font-weight: 600;
}
.casehead strong{
  color: #191919;
}
@media screen and (max-width: 640px) {
    .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter {
        float: left;
        text-align: center;
        margin-top: 7px;
    }
}
@media screen and (max-width: 640px) {
    .dataTables_wrapper .dataTables_filter {
        margin-top: .5em;
        float: right;
    }
}
.dataTables_wrapper {
    position: relative;
    clear: both;
    margin-left: 10px;
    padding: 15px 3px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button { 
    padding: .2em 0.8em; 
} 
@media screen and (max-width: 767px) {
    .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_paginate {
        float: left;
        text-align: center;
    }
}
@media screen and (max-width: 767px) {
    .dataTables_wrapper .dataTables_paginate {
        margin-top: .5em;
        float: right;
        margin-right: 5px;
    }
}
img.lgimage {
    width: 35px;
    display: none;
}
nav {
    padding: 0px 10px;
}
.sidebar nav {
    padding: 0px 25px 0px 25px;
}
img.lgimage2 {
    width: 215px;
    padding: 10px 0px;
}
.step.active span {
    color: #3b82f6;
    font-weight: 500;
}
.sidebar-header:hover {
    border: 1px solid #0d2355;
    background: #0d2355;
}
.sidebar nav ul li:hover {
    border-bottom: 1px solid #656565;
}
.sidebar .sidebar-footer nav ul li {
    margin-bottom: 0.6rem;
}
ul#quickAddMenu {
    /* max-height: 217px; */
    /* overflow-y: hidden; */
}
