:root {
  --color-primary: #4f3419;
  --color-accent: #ad7753;
  --color-white: #ffffff;
  --color-bg-light: #ebebeb;
  --color-bg-dark: #d5d5d5;
  --color-bg: #f9f9f9;
  --color-text-muted: #b1b1b1;
  --color-dark: #373737;
  --color-border: #bdbdbd;
  --color-border-2: #b9b9b9;
  --color-surface: #dddcda;
  --color-danger: #ff0000;
  --color-danger-dark: #8b0000;
  --color-border-3: #afafaf;
  --color-placeholder: rgb(196, 196, 196);
}

/* rest of stylesheet unchanged except colours replaced to use variables */

h1,
.control-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-muted);
  padding: 1px 0;
  margin: 0;
  line-height: 1.4;
}
.control-label {
  font-size: 13px;
}
p {
  font-size: 16px;
  font-weight: 600;
  font-family: "Poppins";
  color: black;
  margin: 0;
}
@media screen and (max-width: 981px) {
  p {
    font-size: 14px;
  }
}
a {
  color: var(--color-accent);
  text-decoration: none;
}

html {
  margin: 10px;
  background: var(--color-bg-light);
}
@media screen and (min-width: 1200px) {
  html {
    background: var(--color-bg-dark);
  }
}

body {
  font-family: "Poppins";
}
.container {
  padding: 0;
}
#main {
  padding: 10px 10px 68px 10px;
  border-radius: 10px 10px 0 0;
  background: var(--color-white);
  min-height: 88vh;
}
#header {
  display: grid;
  grid-template-columns: auto 10% 15%;
  column-gap: 20px;
  align-items: center;
  padding: 10px 0 20px 0;
}
#header .logo {
  width: 80%;
}
#header .img1 {
  width: 100%;
}
#header .install img {
  width: 100%;
}
#header .inbox {
  position: relative;
  width: 100%;
  height: auto;
  margin-left: auto;
}
#header .img2 {
  width: 100%;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: var(--color-danger);
  color: var(--color-white);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: bold;
  z-index: 10;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}
#hfuk-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: center;
  box-shadow: 1px 78px 50px 60px rgba(0, 0, 0, 0.85);
}
#hfuk-footer div {
  background: var(--color-white);
  padding: 10px;
  text-align: center;
  border-right: 1px solid var(--color-border-3);
  color: black;
  font-size: 1em;
  font-weight: 700;
}
#hfuk-footer a:last-of-type > div {
  border-right: 0;
}
#hfuk-footer img {
  width: 20px;
  height: 20px;
}
#hfuk-footer p {
  margin-bottom: 0;
}
#hfuk-footer a {
  text-decoration: none;
}

#projectSearch {
  border: 1px solid #b5b5b5;
  width: 100%;
  padding: 5px;
  border-radius: 6px;
}
#projectSearch::placeholder {
  color: var(--color-placeholder);
}

.job {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  text-align: center;
  border: 2px solid var(--color-accent);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  transition: 0.5s ease;
}
.job:hover {
  background: var(--color-bg-light);
  transition: 0.5s ease;
}
.job.job-complete {
  border: 2px solid green;
}
a.project-link {
  text-decoration: none;
}

.btns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  grid-gap: 5px;
}
.btn {
  background-color: var(--color-primary);
  font-size: 14px;
  padding: 15px;
  width: 100%;
  font-weight: 600;
  color: var(--color-white);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  border: 0;
}
.btn.btn-danger {
  border-radius: 5px;
}
.btn.btn-cancel {
  border-radius: 0;
  background: #007f85;
}
.btn.btn-cancel:hover {
  background: #002c2f;
  transition: all 0.5s ease;
}
.btn.btn-remove {
  background: #bd0000;
  padding: 5px;
}
.btn.btn-secondary {
  background: var(--color-accent);
}
.btn.btn-secondary:hover {
  background: var(--color-primary);
}
.btn:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}
.flex-with-gap {
  display: flex;
  gap: 15px;
}
.bordered {
  border-radius: 5px !important;
}
.margin-t-20 {
  margin-top: 20px;
}
/* admin css */
#main-admin {
  overflow: hidden;
}
.contents-admin {
  display: grid;
  grid-template-columns: 100px auto;
  background: none;
  height: 100vh;
  overflow: hidden;
}
.admin-sidebar {
  width: 100%;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-height: 100vh;
  overflow-x: hidden;
  overflow-y: scroll;
}

.admin-sidebar a {
  text-decoration: none;
}
.admin-sidebar-nav {
  display: grid;
  grid-template-rows: repeat(9, 1fr);
  height: 100%;
}
.admin-sidebar .sidebar-btn {
  width: 100%;
  height: 100%;
  border-bottom: 1px solid #dbdbdb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.admin-sidebar .sidebar-btn p {
  font-size: 14px;
}
.admin-sidebar .sidebar-btn img {
  width: 30%;
}
.admin-sidebar .sidebar-btn.logo img {
  width: 100%;
  overflow: hidden;
  object-fit: cover;
}
@media screen and (max-height: 830px) {
  .admin-sidebar .sidebar-btn img {
    width: 20%;
  }
  .admin-sidebar .sidebar-btn p {
    font-size: 12px;
  }
}

#main-admin {
  margin: 10px;
  border-radius: 10px;
}
#main-admin .top-area {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  column-gap: 6px;
  align-items: center;
  margin-bottom: 6px;
  height: auto;
}
#main-admin .top-area:has(.cancel-btn) {
  grid-template-columns: 1fr 2fr 0.1fr 1fr;
}

#main-admin .top-area .search-box {
  background: var(--color-white);
  height: 100%;
  display: flex;
  align-items: center;
}
#main-admin .top-area .page-title {
  background: var(--color-white);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px 0 0 0;
  padding: 0;
}
#main-admin .filter-btn {
  background: var(--color-primary);
  padding: 5px;
  border-radius: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#main-admin .filter-btn img {
  width: 80%;
}
.container-admin {
  background: var(--color-white);
  padding: 35px;
  min-height: calc(100vh - 9%);
  max-height: calc(100vh - 9%);
  overflow-y: scroll;
  overflow-x: hidden;
  border-radius: 0 0 10px 10px;
  scrollbar-color: var(--color-accent) #4f34190d;
}
.container-admin-index {
  background: var(--color-white);
  padding: 50px;
  min-height: calc(100vh - 20px);
  border-radius: 10px;
}
.btn.btn-admin {
  border-radius: 0 10px 0 0;
}
.admin-job-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 15px;
  margin-bottom: 20px;
}

.admin-page .job-details {
  column-gap: 10px;
  background: var(--color-bg);
}
.admin-job-details .job-info-block {
  border: 2px solid var(--color-border);
  border-radius: 10px;
  margin-bottom: 0;
  background: var(--color-bg);
}
.admin-job-details .job-info-block-content {
  margin-bottom: 0;
}
.admin-job-details .job-info-block .job-info-block-header {
  padding: 10px;
}
.admin-job-details .job-info-block .job-info-block-content {
  border-bottom: 0;
  display: block;
  padding: 10px;
}
.job-details.admin-page {
  column-gap: 10px;
}
.admin-page .form-control {
  border: 1px solid var(--color-border-2);
  padding: 8px 10px;
}
.project-extra-form .job-info-block-header .toggle-btn {
  display: none;
}
.project-extra-form .job-info-block .job-info-block-header.add-icon {
  grid-template-columns: auto 26px;
}

#task-container > .task-entry {
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 10px;
  background-color: #fbfaf8;
}

.hint-block {
  display: block;
  margin-top: 5px;
  color: #999;
}

.error-summary {
  color: #a94442;
  background: #fdf7f7;
  border-left: 3px solid #eed3d7;
  padding: 10px 20px;
  margin: 0 0 15px 0;
}

.form-group {
  margin-bottom: 0.5rem;
}

.job-details {
  border: 2px solid var(--color-accent);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
}
.admin-page-details {
  border: 2px solid var(--color-accent);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  display: grid;
  background: var(--color-bg);
}

.jname {
  grid-area: 1 / 1 / 2 / 3;
}
.jclient {
  grid-area: 2 / 1 / 3 / 3;
}

.job-info-block {
  margin-bottom: 30px;
}
.job-info-block .job-info-block-header {
  display: grid;
  grid-template-columns: auto 7%;
  column-gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--color-border-2);
  padding-bottom: 5px;
}
.job-info-block .job-info-block-header img {
  width: 100%;
}
.job-info-block .job-info-block-header.add-icon {
  grid-template-columns: auto 7% 7%;
}
.add-items,
.add-items-media,
.add-btn,
.add-items-general {
  background: var(--color-primary);
  border-radius: 5px;
  padding: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  cursor: pointer;
}
.add-items img,
.add-items-media img,
.add-items-general img {
  width: 100%;
}

.job-info-block-content {
  display: none;
  border-bottom: 1px solid var(--color-border-2);
  padding-bottom: 10px;
  padding-top: 10px;
  margin-bottom: 20px;
}
.job-info-block-content.job-description {
  display: block;
}
.active {
  display: block;
}
.toggle-btn {
  transition: transform 0.5s ease;
}
.active-rotate {
  transform: scale(-1);
}

.file-upload {
  display: none;
}

.custom-button {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 10px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  width: 150px;
  display: block;
  text-align: center;
}

#uploadPreview,
#docPreviewWrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 6px;
}

.preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  backdrop-filter: blur(5px);
  z-index: 20;
}

.preview-wrapper,
.doc-thumbnail {
  position: relative;
  display: inline-block;
  height: 100px;
}
.preview-wrapper {
  background: var(--color-surface);
  border-radius: 5px;
}

.preview-media,
.preview-doc {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 5px;
  cursor: pointer;
}

.job-header-task {
  display: flex;
  align-items: center;
}
.job-header-task img {
  width: 7%;
  margin-left: auto;
}
.job-task {
  display: flex;
  align-items: center;
}
.job-task::before {
  display: block;
  width: 10px;
  height: 10px;
  background: green;
  border-radius: 50%;
  content: "";
  margin-right: 5px;
}
.job-subtasks {
  margin-left: 15px;
}
.subtask-row {
  display: grid;
  align-items: center;
  column-gap: 10px;
  row-gap: 5px;
  margin-top: 8px;
  grid-template-columns: 1.5fr 4fr 1fr 0.35fr 50px;
}

.job-wage-content {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  text-align: center;
  border: 2px solid var(--color-accent);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  transition: 0.5s ease;
}
.job.wage-content:hover {
  background: var(--color-bg-light);
  transition: 0.5s ease;
}
.page-header {
  display: flex;
  align-items: center;
  padding-bottom: 15px;
}
.page-header h1 {
  color: #6d6d6d;
}

/* Clock in */
#searchBox {
  width: auto;
  padding: 10px 5px;
  margin: 10px;
  right: 0;
  border-radius: 5px;
  border: 0;
}
.map-area {
  margin: 10px;
}
#map {
  height: 550px;
  width: 100%;
  border-radius: 10px;
}
.slider-radius {
  display: grid;
  grid-template-columns: 1fr 0.4fr 1fr;
  align-items: center;
  padding: 10px 0;
}
input[type="range"] {
  accent-color: var(--color-accent);
}
.slider span {
  text-align: left;
  margin-left: 5px;
}
.map-control-container {
  position: absolute;
  bottom: 50px;
  left: 20px;
  z-index: 1000;
}
.map-button {
  background-color: var(--color-white);
  color: #666666;
  border: none;
  padding: 10px;
  margin-bottom: 2px;
  margin-left: 7px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 14px;
}

#signatureCanvas {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  border: 1px solid black;
  background: #efefef;
}

.complete-tcs {
  padding: 10px 0;
}
.complete-tcs p {
  font-weight: normal;
  font-size: 13px;
}
.form-group {
  padding-top: 0;
}
.form-control {
  border: 2px solid var(--color-accent);
  border-radius: 10px;
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
  padding: 10px;
  text-align: left;
  border: 1px solid #e5e5e5;
  text-align: center;
}

.admin-table thead {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.admin-table tbody {
  background: #f7f7f7;
}

.job td {
  background-color: var(--color-white);
}
.btn-table {
  padding: 8px;
  border-radius: 0;
}

.media-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  padding: 0;
  list-style: none;
}

.media-item {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.media-item a {
  width: 100%;
  height: 100%;
  display: block;
}

.media-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-file {
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}
.media-file img {
  width: 100%;
  height: auto;
}
.media-file p {
  position: absolute;
  width: 100%;
  text-align: center;
  bottom: 10px;
  color: var(--color-white);
}
.media-box {
  position: relative;
  width: 100%;
  height: 100%;
}

.delete-form {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
}

.btn-delete {
  background: rgba(0, 0, 0, 0.7);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 14px;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  padding: 0;
}
.btn.completed {
  border-radius: 5px;
}
.btn.disabled {
  background: lightgrey;
}
.btn:disabled {
  background-color: #dedede;
  border: 0;
}

.contents {
  background: none;
}

#searchBox {
  width: auto;
  padding: 10px 5px;
  margin: 10px;
  right: 0;
  border-radius: 5px;
  border: 0;
}
.slider {
  display: grid;
  grid-template-columns: 1fr 0.4fr 1fr;
  align-items: center;
  padding: 10px 0;
}
input[type="range"] {
  accent-color: var(--color-accent);
}
.slider span {
  text-align: left;
  margin-left: 5px;
}
button {
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}
#map div {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.map-control-container {
  position: absolute;
  bottom: 50px;
  left: 20px;
  z-index: 1000;
}
.map-button {
  background-color: var(--color-white);
  color: #666666;
  border: none;
  padding: 10px;
  margin-bottom: 2px;
  margin-left: 7px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 14px;
}

#mapOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-radius: 10px;
  pointer-events: auto;
  z-index: 10;
}
#mapOverlay.hidden {
  display: none;
}
.status-complete {
  color: green;
}
.status-incomplete {
  color: var(--color-accent);
}
.status-complete td {
  color: green;
}
.status-paid td {
  color: green;
}

.job-note-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 50px;
  column-gap: 10px;
  row-gap: 5px;
}

select {
  background-image: url("/media/required/down-arrow.png");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  padding-right: 2rem !important;
}

input[type="checkbox"]:checked {
  accent-color: var(--color-accent);
}

.btn.completed {
  background: #009b55;
  color: var(--color-white);
}
.job-info-block-content.tasks-area .task-block {
  border-bottom: 1px solid #e6e6e6;
  margin-bottom: 5px;
}

.job-info-block-content.tasks-area .task-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 5px;
  margin-bottom: 5px;
  border-bottom: 1px solid #e6e6e6;
}

.job-info-block-content.tasks-area .task-block:last-of-type {
  border-bottom: 0 !important;
  margin: 8px auto 0 auto !important;
}

.modal .modal-dialog-centered {
  display: flex;
  align-items: center;
  z-index: 30;
}
.modal .modal-dialog .modal-body p {
  padding-bottom: 5px;
}
.modal .modal-dialog .modal-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 10px;
}
.add-items:disabled {
  background-color: #dedede;
  border: 0;
  pointer-events: none;
}
button:disabled div {
  background: #e8e8e8;
  cursor: not-allowed;
}

.toggle-wrapper {
  position: relative;
  width: 50px;
  height: 24px;
  display: inline-block;
  margin: auto;
}

.toggle-checkbox {
  display: none;
}

.toggle-label {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #ccc;
  border-radius: 24px;
  cursor: pointer;
  transition: background-color 0.3s;
  position: relative;
}

.toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background-color: var(--color-white);
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle-checkbox:checked + .toggle-label {
  background-color: var(--color-accent);
}

.toggle-checkbox:checked + .toggle-label .toggle-slider {
  transform: translateX(26px);
}

.toggle-checkbox:disabled + .toggle-label {
  cursor: not-allowed;
}

/* Login page */
html#login-page {
  margin: 0;
  display: grid;
  align-items: center;
  min-height: 100vh;
  max-height: 100vh;
  background-image: linear-gradient(
      to bottom,
      var(--color-primary),
      rgba(0, 0, 0, 0.2)
    ),
    url(/media/required/login-bg.jpg);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

#login-page header,
#login-page footer {
  display: none;
}

#login-page #main {
  min-height: auto;
  max-width: 90%;
  padding: 30px;
  border-radius: 10px;
  margin: auto;
  background: rgba(255, 255, 255, 0.85);
}

@media screen and (min-width: 1250px) {
  #login-page #main {
    max-width: 30%;
  }
  html#login-page {
    background-image: linear-gradient(
        to bottom right,
        var(--color-primary),
        rgba(0, 0, 0, 0.2)
      ),
      url(/media/required/login-bg.jpg);
  }
}

/* modal-only styles 

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex; 
  align-items: center; 
  justify-content: center; 
  z-index: 9999;
}

.modal-window {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  height: 95%;
  height: 80%;
  overflow: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 5px;
  right: 10px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  color: red;
  z-index: 99;
  width: auto;
  line-height: 0.8;
}

.modal-body {
  display: flex;
  height: 100%;
}

.modal-image {
  flex: 1;
  background: var(--color-surface);
  height: 100%;
  width: 1150px;
  max-height: none;
  display: grid;
  align-items: center;
  border-radius: 10px;
}

.modal-details {
  flex: 0.5;
  padding: 0 0 0 10px;
}

.modal-details input.modal-name-input {
  width: 100%;
  padding: 8px;
  margin: 8px 0;
  box-sizing: border-box;
}

.modal-details .upload-meta {
  margin: 12px 0;
  font-size: 0.9em;
  color: #555;
}

.modal-details #modal-tag-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

#media-modal .form-control {
  margin-bottom: 10px;
}

*/
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  vertical-align: middle;
}
.switch input {
  display: none;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--color-white);
  transition: 0.4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--color-accent);
}
input:checked + .slider:before {
  transform: translateX(22px);
}

.job-assigned-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.search-box input[type="text"] {
  border: 0;
  padding: 10px;
  font-size: inherit;
  border-radius: 0;
  width: 100%;
}
.search-box input[type="text"]:focus {
  outline: none;
}

.flex {
  display: flex;
}
.space-between {
  align-items: center;
  justify-content: space-between;
}

.info-block {
  border: 2px solid var(--color-border);
  border-radius: 10px;
  margin-bottom: 0;
  background: #fbfbfb;
}

.block-heading {
  border-bottom: 1px solid var(--color-border-2);
  padding: 10px;
}

.padding {
  padding: 10px;
}

/* For WebKit browsers (Chrome, Safari, Opera) */
.admin-sidebar::-webkit-scrollbar {
  display: none;
}

.contact-table {
  width: 100%;
  border-collapse: collapse;
  font-family: system-ui, sans-serif;
  font-size: 14px;
}

.contact-table th,
.contact-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
  vertical-align: middle;
}

.contact-table th {
  background-color: #f5f3f3;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.5px;
}

.btn-table {
  border-radius: 5px;
}

#contactAddModal .admin-sidebar,
#contactAddModal .top-area {
  display: none;
}

.btn-delete-entry .btn {
  width: 20%;
}
select.multi-select {
  background: none;
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 0 !important;
  height: 150px;
}

select.multi-select option {
  border-bottom: 1px solid #f3f3f3;
  padding-left: 10px;
}
select.multi-select.project-page {
  height: 52px;
}
div.form-group:has(.project-page) {
  margin-bottom: 0;
}

.btn.btn-remove {
  background: var(--color-danger-dark);
  border-radius: 5px;
}

.no-click {
  pointer-events: none;
  cursor: default;
}
.text-center {
  text-align: center;
}
.text-limit {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.text-right {
  text-align: right;
}
.override.text-right {
  text-align: right;
  padding-right: 15px;
}
.pad-right {
  padding-right: 15px;
}

.seperator {
  width: 2px;
  background: var(--color-border);
  margin: 5px 20px;
}
.title-section {
  display: flex;
  align-items: center;
}
.ids-section {
  margin: auto 0 auto auto;
  display: flex;
  text-align: right;
}

.collapse-arrow {
  margin-left: 20px;
  width: 30px;
}
.collapse-arrow img {
  width: 100%;
}
.collapsed {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.8s ease, opacity 2s ease;
  padding: 5px;
}
.active {
  max-height: 4000px;
  transition: max-height 2s ease, opacity 0.4s ease;
  opacity: 1;
}
.width-130 {
  width: 130px;
}
.job-info-block-content .form-control {
  border: 2px solid #e1e1e1;
}
.full-size {
  width: 100%;
  height: 100%;
}

/* Media */
.media-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.media-thumb-card {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-thumb-card img {
  display: block;
}

.delete-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: var(--color-white);
  color: black;
  padding: 5px 10px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  width: 30px;
  height: 30px;
  text-decoration: none;
  border-radius: 50%;
  font-weight: bold;
  display: flex;
  align-items: center;
  text-align: center;
}
.del-btn {
  background: var(--color-danger-dark);
}

.modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--color-white);
  border-radius: 10px;
  max-width: 90%;
  width: 100%;
  padding: 10px;
  position: relative;
}

#media-modal .close,
#media-gallery-modal .close {
  position: fixed;
  top: 10px;
  right: 10px;
  font-size: 44px;
  font-weight: bold;
  color: var(--color-primary);
  cursor: pointer;
  z-index: 9999;
  background: white;
  border-radius: 5px;
  padding: 15px;
  line-height: 25px;
}

.modal-body {
  padding: 0;
}
#media-modal .modal-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: flex-start;
  padding: 0;
  column-gap: 10px;
}

#media-modal .modal-image {
  background: var(--color-surface);
  width: 100%;
  border-radius: 10px;
  height: 80vh;
  display: flex;
}

#media-modal .modal-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  margin: auto;
  height: auto;
  overflow: hidden;
  border-radius: 10px;
  display: flex;
  align-items: center;
}
#media-modal .modal-details {
  height: 100%;
  position: relative;
  background: #f1f1f1;
  padding: 10px;
  border-radius: 10px;
}
#media-modal .modal-details h1 {
  color: black;
}
.attached-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
}
.attached-media-grid.frontend {
  grid-template-columns: repeat(2, 1fr);
}
.media-thumbnail img {
  border-radius: 10px;
}

.ids-section .collapse-arrow {
  cursor: pointer;
}
/* Front end */

.media-thumb-styles {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--color-dark);
}
.attached-media-grid .media-thumbnail {
  height: 200px;
}
.id-data {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.f-info-block {
  border: 2px solid var(--color-accent);
  border-radius: 10px;
  padding: 10px;
  margin: 10px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
}
.two-col-grid {
  grid-template-columns: repeat(2, 1fr);
}
.three-col-grid {
  grid-template-columns: repeat(3, 1fr);
}
.text-limit-frontend {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 10px;
}
.f-table-wrapper {
  margin-top: 10px;
}
.f-table {
  border: 2px solid var(--color-border-2);
  border-radius: 10px;
  padding: 10px;
  margin-top: 5px;
}

.f-table table {
  width: 100%;
}
.f-table th {
  font-size: 14px;
}
.f-table td,
.f-table a {
  font-size: 12px;
  padding-top: 5px;
  padding-bottom: 5px;
}
.f-table tr {
  border-bottom: 1px solid var(--color-border-2);
}
.f-table tr:last-child {
  border-bottom: none;
}

.media_title-txt {
  background: var(--color-primary);
  width: 100%;
  padding: 5px;
  position: absolute;
  bottom: 0px;
  border-radius: 0 0 10px 10px;
}

.side-modal .modal-dialog {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  height: 100vh;
  width: auto;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}
.side-modal.modal .modal-dialog {
  transform: translateX(500px);
}
.side-modal.modal.show .modal-dialog {
  transform: none;
}
.side-modal .modal-dialog .modal-header {
  padding: 10px 0;
  margin-bottom: 10px;
}
.side-modal .modal-dialog .modal-content {
  width: 30vw;
  height: 100vh;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
  max-width: 100%;
  background: #f9f9f9;
}
.side-modal .modal-dialog .modal-content input,
.side-modal .modal-dialog .modal-content select,
.side-modal .modal-dialog .modal-content textarea {
  border: 1px solid var(--color-border-2);
}

.no-style {
  background: 0;
  padding: 0;
  border-radius: 0;
}

iframe.modal-docs {
  border-radius: 10px;
}

.collapsed form .form-actions {
  display: none;
}

.hide .form-actions {
  display: none;
}

.standard-grid {
  display: grid;
  column-gap: 20px;
}

.admin-page-btn {
  width: 100%;
  background: var(--color-accent);
  color: white;
  padding: 10px;
  text-align: center;
  margin-bottom: 10px;
  border-radius: 5px;
}
@media screen and (max-width: 1500px) {
  .admin-page-btn {
    display: none;
  }
}

.image-capture-section {
  margin-bottom: 10px;
  border: 2px dashed #ccc;
  border-radius: 10px;
  padding: 10px;
}

.default-image {
  width: 30%;
  margin: auto;
}
