body .container.my-20 {
    margin-top: 20px;
}

.label-default {
    background-color: #7a7f6a; /* desaturated green-grey */
}

.label-primary {
    background-color: #5a6b3f; /* earthy dark olive */
}

.label-success {
    background-color: #6b7a3f; /* muted olive green */
}

.label-info {
    background-color: #9caf88; /* sage green */
}

.label-warning {
    background-color: #c4b05f; /* muted golden olive */
}

.label-danger {
    background-color: #a05f4a; /* muted brick red */
}

.label {
    color: #fff !important;
}

.text-muted.small a {
    color: #5a6b3f; /* earthy dark olive */
    text-decoration: none;
}

.text-muted.small a:hover,
.text-muted.small a:focus {
    color: #6b7a3f; /* slightly lighter olive on hover */
    text-decoration: underline;
}

h4 a {
    color: #5a6b3f !important; /* earthy dark olive */
    text-decoration: none;
}

h4 a:hover,
h4 a:focus {
    color: #6b7a3f; /* slightly lighter olive */
    text-decoration: underline;
}

.sidebar-panel {
    border-radius: 18px;
    background: #f9f9f5;
    border: 0;
    padding: 12px 16px;
}

@media (min-width: 992px) {
    .sidebar-col { float: left; width: calc(25% + 40px); }
    .content-col { float: left; width: calc(75% - 40px); }
}

.sidebar-pills > li > a {
    padding: 12px 14px;
    color: #4a4a3f;
}

.sidebar-pills.nav-pills > li.active > a,
.sidebar-pills.nav-pills > li.active > a:focus,
.sidebar-pills.nav-pills > li.active > a:hover,
.sidebar-pills > li.active > a,
.sidebar-pills > li.active > a:focus,
.sidebar-pills > li.active > a:hover {
    background: #e7ecda !important;
    color: #5a6b3f !important;
    font-weight: 600;
}

.sidebar-pills.nav-pills > li > a:hover,
.sidebar-pills > li > a:hover {
    background: #d6dcc4 !important;
    color: #5a6b3f !important;
}


/* Mobile: stack sidebar pills as big tappable buttons */
@media (max-width: 767px) {
  .sidebar-pills {
    display: block;
    width: 100%;
  }

  .sidebar-pills > li {
    display: block;
    width: 100%;
    margin-bottom: 8px; /* spacing between buttons */
  }

  .sidebar-pills > li > a {
    display: block;
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border-radius: 8px;
    background: #f9f9f5;   /* same sidebar bg */
    text-align: left;
  }

  .sidebar-pills > li.active > a {
    background: #e7ecda !important;
    font-weight: 600;
  }
}



.app-panel {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d9d7c8;
    background: #ffffff;
}

.no-gutter {
    margin-left: 0;
    margin-right: 0;
}

.no-gutter > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

.app-media {
    background: #ecefe3;
    height: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* needed for absolute positioning */
}

.placeholder-photo {
    color: #7a7f6a;
    letter-spacing: 0.35rem;
    font-weight: 700;
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-progress {
    height: 10px;
    border-radius: 6px;
    background: #e0e3d4;
}

/* Trashcan overlay */
.app-media form {
    position: absolute;
    top: 8px;
    right: 8px;
    margin: 0;
    opacity: 0;              /* hidden by default */
    transition: opacity 0.2s ease;
}

.app-media:hover form {
    opacity: 1;              /* reveal on hover */
}

.app-media .remove-btn {
    background: rgba(255,255,255,1);
    border: none;
    border-radius: 50%;
    padding: 1px 1px;
    width: 28px;
    height: 28px;
    color: #a94442;
    cursor: pointer;
}

.app-media .remove-btn:hover {
    background: #fff;
    color: #000000;
}

.progress-bar-info {
    background-color: #6b7a3f;
}

.links a {
    text-decoration: none;
    font-weight: 600;
    color: #5a6b3f;
}

.links a:hover {
    text-decoration: underline;
}

.m-b-5 { margin-bottom: 5px; }
.m-b-10 { margin-bottom: 10px; }
.m-b-15 { margin-bottom: 15px; }
.m-b-20 { margin-bottom: 20px; }
.m-b-30 { margin-bottom: 30px; }
.m-b-40 { margin-bottom: 40px; }

.m-t-0 { margin-top: 0; }
.m-t-5 { margin-top: 5px; }
.m-t-15 { margin-top: 15px; }
.m-t-20 { margin-bottom: 20px; }
.m-t-30 { margin-bottom: 30px; }
.m-t-40 { margin-bottom: 40px; }

.m-r-5 { margin-right: 5px; }

/* Spinner overlay for AJAX containers */
.ajax-paginated {
  position: relative;
  min-height: 80px; /* so spinner has space on empty lists */
}
.ajax-paginated .ajax-spinner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.6);
  z-index: 10;
}
.ajax-paginated .ajax-spinner i {
  font-size: 28px;
}

input[type="file"] {
    text-indent: 8px;   
}

.report-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.report-links li {
  margin-bottom: 10px;
}

.report-links a {
  display: inline-block;
  width: 100%;
  padding: 10px 14px;
  background: #f9f9f5;
  border: 1px solid #d9d7c8;
  border-radius: 8px;
  color: #4a4a3f;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.report-links a i {
  margin-right: 8px;
  color: #6b7a3f; /* muted olive for icons */
}

.report-links a:hover {
  background: #e7ecda;
  color: #5a6b3f;
}