/* Target the specific date boxes, or all inputs together */
input[type="date"],
input[type="text"],
select {
  height: 38px;
  /* Forces a matching height across browsers */
  padding: 6px 12px;
  /* Ensures text sits comfortably inside */
  box-sizing: border-box;
  /* Crucial: Includes padding and borders in the height calculation */
  border: 1px solid #ccc;
  /* Sets a unified border style */
  border-radius: 4px;
  /* Optional: matches the slight rounding of your other blocks */
}

/* Layout */
body {
  padding: 0 0 32px;
  text-align: left;
  background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url('../images/BGcool.jpg');
  background-size: cover;
  background-position: center;
  /* Keeps the center of the image focused */
  background-repeat: no-repeat;
}

/* Prevents the image from tiling */
.blue {
  color: #2563eb;
}

#page {
  margin: 0 auto;
  max-width: 1440px;
}

#header,
#content,
#main-nav {
  position: relative;
}

#main-nav {
  z-index: 3;
}

#header {
  z-index: 100;
}

#content {
  z-index: 1;
  padding: 20px;
  padding-bottom: 100px;
}

/* Header */
#header {
  min-height: 62px;
  padding: 12px 24px;
  background: linear-gradient(115deg, #dbeafe 5%, #93c5fd 52%, #60a5fa 100%);
  border-bottom: 1px solid #bfdbfe;
  box-shadow: 0 2px 8px rgba(30, 64, 175, .12);
}

#header>img {
  display: block;
  max-height: 45px;
  max-width: 260px;
  width: auto;
  height: auto;
}

#header .header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  right: 24px;
  top: 14px;
  color: #1e3a5f;
  font-size: 12px;
}

#header .header-user {
  padding: 0 4px;
  white-space: nowrap;
}

#header .header-action {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  background: rgba(255, 255, 255, .55);
  color: #1e3a8a;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}

#header .header-action:hover {
  border-color: #60a5fa;
  background: #fff;
  color: #1d4ed8;
  text-decoration: none;
}

#header .header-action-primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  min-width: max-content;
}

#header .header-action-primary:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #fff;
}

/* Header notifications */
#header div.mini-dashboard {
  position: absolute;
  top: 14px;
  left: 210px;
  z-index: 101;
}

#header div.mini-dashboard ul,
#header div.mini-dashboard li {
  padding: 0;
  margin: 0;
  list-style: none;
}

#header div.mini-dashboard li,
#header div.mini-dashboard li a {
  float: left;
  display: block;
  position: relative;
}

#header div.mini-dashboard li div.alert-number {
  display: none;
  position: absolute;
  top: -6px;
  left: -4px;
  z-index: 3;
  padding: 1px 5px;
  border-radius: 99px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  line-height: 14px;
}

#header div.mini-dashboard li a {
  width: 36px;
  height: 36px;
  margin-right: 6px;
  padding: 8px;
  border: 1px solid #93c5fd;
  border-radius: 7px;
  background: rgba(255, 255, 255, .45);
  color: #1d4ed8;
}

#header div.mini-dashboard li a:hover {
  border-color: #60a5fa;
  background: #fff;
}

#header div.mini-dashboard li.opened a {
  border-color: #60a5fa;
  background: #fff;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

#header div.mini-dashboard li .mini-icon,
#header div.mini-dashboard li .mini-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

#header div.mini-dashboard li .mini-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#header div.mini-dashboard li.has-alert a {
  color: #b42318;
}

#header div.mini-dashboard li div.mini-content {
  display: none;
  position: absolute;
  top: 35px;
  left: 0;
  z-index: 102;
  width: 320px;
  border: 1px solid #d0d5dd;
  border-radius: 0 8px 8px 8px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .18);
}

#header div.mini-dashboard li.opened div.mini-content {
  display: block;
  font-size: 12px;
}

#header div.mini-dashboard li.opened div.mini-content div.item,
#header div.mini-dashboard li.opened div.mini-content div.task {
  padding: 10px;
  border-top: 1px solid #eaecf0;
}

#header div.mini-dashboard li.opened div.mini-content div.task {
  cursor: pointer;
}

#header div.mini-dashboard li.opened div.mini-content div.hovering {
  background: #f8fafc;
}

#header div.mini-dashboard li.opened div.mini-content div.item div.date,
#header div.mini-dashboard li.opened div.mini-content div.task div.project,
#header div.mini-dashboard li.opened div.mini-content div.task div.due {
  color: #667085;
  font-size: 11px;
}

#header div.mini-dashboard li.opened div.mini-content div.task-overdue * {
  color: #b42318 !important;
}

#header div.mini-dashboard li div.mini-content div.inner {
  padding: 12px 12px 42px;
}

#header div.mini-dashboard li div.mini-content a {
  display: inline;
  float: none;
  border: 0;
  padding: 0;
  background: none;
}

#header div.mini-dashboard li div.mini-content a.footlink {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-top: 1px solid #eaecf0;
  border-radius: 0 0 8px 8px;
  background: #f8fafc;
  color: #344054;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 32px;
}

/* Navigation */
ul#main-nav {
  display: flex;
  flex-wrap: wrap;
  min-height: 48px;
  margin: 0;
  padding: 0 24px;
  list-style: none;
  background: #fff;
  border-bottom: 1px solid #e4e7ec;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
  font-size: 14px;
}

ul#main-nav li,
ul#main-nav li a {
  display: block;
  color: #475467;
  text-decoration: none;
}

ul#main-nav li {
  position: relative;
}

ul#main-nav li a {
  padding: 14px 13px 12px;
  border-bottom: 3px solid transparent;
  font-weight: 500;
  line-height: 19px;
}

ul#main-nav li.menu-state-hover>a,
ul#main-nav li>a:hover {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

ul#main-nav li ul {
  display: none;
  position: absolute;
  top: 48px;
  left: 0;
  z-index: 10;
  width: 230px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .12);
}

ul#main-nav>li.menu-state-hover>ul {
  display: block;
}

ul#main-nav li ul li,
ul#main-nav li ul li a {
  float: none;
  height: auto;
}

ul#main-nav li ul li a {
  padding: 8px 10px;
  border: 0;
  border-radius: 5px;
  font-size: 13px;
  line-height: 18px;
}

ul#main-nav li ul li a:hover {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

ul#main-nav li.active>a {
  border-color: #2563eb;
}

ul#main-nav li.active>a:hover,
ul#main-nav li.active.menu-state-hover>a {
  display: block !important;
  visibility: visible !important;
  border-color: #1d4ed8;
}

ul#main-nav li.menu-state-hover>a,
ul#main-nav li>a:hover {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}


/* Typography, forms and reusable surfaces */
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
blockquote,
hr {
  margin-top: 0;
  margin-bottom: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #172033;
  line-height: 1.25;
}

h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 17px;
}

h4 {
  font-size: 15px;
}

h5 {
  font-size: 14px;
}

h6 {
  font-size: 13px;
}

em {
  color: #98a2b3;
}

em.light {
  color: #98a2b3;
}

form {
  margin: 0;
  padding: 0;
}

form input.text,
form textarea,
form select {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #d0d5dd;
  border-radius: 5px;
  color: #344054;
  background: #fff;
  font: inherit;
}

form textarea {
  min-height: 88px;
  resize: vertical;
}

form input.text:focus,
form textarea:focus,
form select:focus {
  outline: 3px solid rgba(37, 99, 235, .15);
  border-color: #2563eb;
}

button,
input[type=submit],
input[type=button] {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #2563eb !important;
  border-radius: 5px !important;
  background: #2563eb !important;
  color: #fff !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 18px !important;
  text-shadow: none !important;
  cursor: pointer;
  min-width: 76px !important;
}

button:hover,
input[type=submit]:hover,
input[type=button]:hover {
  border-color: #1d4ed8 !important;
  background: #1d4ed8 !important;
}

button[disabled=disabled] {
  border-color: #d0d5dd !important;
  background: #eaecf0 !important;
  color: #98a2b3 !important;
  cursor: not-allowed;
}

div.content-box,
#ListView,
.ui-widget-content {
  border: 1px solid #7a7d80 !important;
  border-radius: 8px;
  background: #fff !important;
  box-shadow: 0px 0px 35px -15px black;
}

div.content-box,
#ListView {
  padding: 20px;
}

div.ui-status {
  margin: 0 0 20px;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #eff6ff;
  color: #1e40af;
  font-weight: 600;
  display: grid;
  width: fit-content;
  margin: 0 auto 20px;
  grid-auto-flow: column;
  /* Keeps icon and text side-by-side */
  place-content: center;
  /* Centers everything horizontally and vertically */
  gap: 8px;
}

div.login-main {
  width: min(620px, calc(100% - 32px));
  margin: 20px auto;
  padding: 24px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .10);
}

/* Record lists */
table.dblist {
  width: 100%;
  margin: 8px 0 0;
  border: 1px solid #e4e7ec;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
  font-size: 13px;
}

table.dblist th {
  padding: 10px 12px;
  border-bottom: 1px solid #dfe3e8;
  background: #efefef;
  color: #475467;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

table.dblist td {
  padding: 5px 12px;
  border-bottom: 1px solid #eaecf0;
  vertical-align: middle;
}

table.dblist tr:last-child td {
  border-bottom: 0;
}

table.dblist tr.odd {
  background: #fcfdff;
}

table.dblist tr.hover {
  color: inherit !important;
  background: #f5f9ff !important;
}

table.dblist tr.checked {
  background: #fff5f5 !important;
  color: #842029;
}

table.dblist tr.checked td,
table.dblist tr.checked th {
  border-bottom-color: #fecaca;
}

table.dblist tr a.main {
  color: #2563eb;
  font-weight: 600;
}

table.dblist tr a.main:hover {
  color: #1d4ed8;
}

div.withselected,
div.pagination {
  padding: 20px 0 0;
}

div.withselected {
  float: right;
}

div.pagination {
  float: left;
  width: auto;
}

div.pagination div.nums {
  float: left;
  margin-right: 10px;
}

div.pagination a,
div.pagination span {
  display: block;
  float: left;
  margin: 0 4px 0 0;
  padding: 5px 8px;
  border: 1px solid #d0d5dd;
  border-radius: 4px;
  color: #475467;
  background-color: rgb(212, 216, 216);
  font-size: 12px;
}

div.pagination a {
  background: #f9fafa;
}

div.pagination a:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

div.filters {
  float: left;
  position: relative;
}

div.filters div.filter,
div.filters div.submit {
  float: left;
  margin: 0 10px 10px 0;
}

div.filters div.filter select,
div.filters div.filter input.text {
  width: 160px;
}

div.filters div.submit {
  top: 0;
}

div.recordcount {
  float: left;
  color: #667085;
}

form.dblistfilter {
  margin: 0;
  padding: 0;
}

/* Dashboard */
#projects-requests,
#user-tasks,
#notifications {
  min-height: 180px;
}

#projects-requests .content-box,
#user-tasks,
#notifications {
  padding: 20px !important;
}

@media (max-width: 760px) {
  /* 1. Turn the header into a flexible vertical column */
  #header {
    min-height: auto !important;
    padding: 15px !important;
    display: flex !important;
    /* flex-direction: column !important; */
    align-items: center !important;
    gap: 15px !important;
  }

  /* 2. Override absolute positioning on the button container */
  #header .header-actions {
    position: static !important;
    /* Cancels position: absolute */
    top: auto !important;
    /* Clears any hardcoded top offsets */
    right: auto !important;
    /* Clears any hardcoded right offsets */

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    gap: 10px !important;
  }

  /* 3. Do the same for the mini-dashboard container if it overlaps too */
  #header .mini-dashboard {
    position: static !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 10px !important;
  }

  #header .header-actions {
    top: 57px;
    left: 16px;
    right: auto;
    gap: 6px;
  }

  #header .header-user {
    display: none;
  }

  #header div.mini-dashboard {
    top: 16px;
    left: auto;
    right: 16px;
  }

  ul#main-nav {
    padding: 0 10px;
  }

  ul#main-nav li a {
    padding-left: 9px;
    padding-right: 9px;
    font-size: 13px;
  }

  #content {
    padding: 20px 16px;
  }

  table.dblist {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  div.withselected,
  div.pagination,
  div.recordcount {
    float: none;
    margin-bottom: 12px;
  }
}