body {
  background: linear-gradient(180deg, #f5f7fb 0%, #eef4ee 100%);
}

.card {
  border: none;
  border-radius: 16px;
}

.table td,
.table th {
  vertical-align: middle;
}

.navbar {
  background: linear-gradient(90deg, #3aa41c 0%, #81c06d 100%) !important;
}

.navbar-brand span {
  font-weight: 600;
  font-size: 1.1rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 8px 12px;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(255,255,255,0.15);
  border-radius: 6px;
}

.btn-success {
  background-color: #2f7d1f;
  border-color: #2f7d1f;
}

.btn-success:hover {
  background-color: #27691a;
  border-color: #27691a;
}

.dashboard-header {
  border-radius: 18px;
}

.donut{
  --progress: 0;
  --donut-color: #2f7d1f;

  border-radius: 50%;

  background: conic-gradient(
    var(--donut-color) calc(var(--progress) * 1%),
    #e9ecef 0
  );

  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}

.donut::before {
  content: "";
  position: absolute;
  width: 70%;
  height: 70%;
  background: #ffffff;
  border-radius: 50%;
}

.donut-center {
  position: relative;
  z-index: 2;
  text-align: center;
}

.donut-center span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--donut-color);
}

.dashboard-donut{
  width:165px;
  height:165px;

  filter:
    drop-shadow(
      0 10px 20px rgba(0,0,0,.05)
    );
}

.donut-approved {
  --donut-color: #1f6feb;
}

.admin-page .modern-table {
  border-collapse: separate;
  border-spacing: 0;
}

.admin-page .modern-table thead th {
  background: #f3f7f4;
  color: #2c3e2f;
  font-size: 0.92rem;
  border-bottom: 1px solid #dce7df;
}

.admin-page .modern-table tbody tr {
  background: #fff;
}

.admin-page .modern-table tbody tr:hover {
  background: #f8fbf8;
}

.admin-page .modern-table td,
.admin-page .modern-table th {
  padding: 0.95rem 0.85rem;
}

.modal-content {
  border-radius: 20px;
}

.modal-header .modal-title {
  font-weight: 700;
}

.user-role {
  text-transform: capitalize;
}

.action-cell,
.admin-page .table td.text-end {
  white-space: nowrap;
}

.admin-page .clean-actions,
.clean-actions {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
}

.clean-action-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
  font-size: 1.1rem;
  box-shadow: none !important;
  outline: none;
  cursor: pointer;
}

.clean-action-btn.edit {
  color: #2156c6;
}

.clean-action-btn.delete {
  color: #c23a4b;
}

.clean-action-btn:hover {
  background: transparent !important;
  box-shadow: none !important;
  transform: translateY(-1px) scale(1.08);
}

.clean-action-btn.edit:hover {
  color: #173f96;
}

.clean-action-btn.delete:hover {
  color: #992b39;
}

.clean-action-btn:focus,
.clean-action-btn:active {
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
}

.clean-action-btn span {
  display: inline-block;
  line-height: 1;
}

@media (max-width: 991px) {
  .navbar-nav .nav-link {
    text-align: left;
  }

  .navbar-text {
    display: block;
    margin-top: 10px;
  }
}

.login-page {
  min-height: 100vh;
  background-image: url('/login-bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 14%;
}

.login-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
}

.login-card {
  position: relative;
  z-index: 2;
  width: 430px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 24px;
  padding: 34px;
  box-shadow: 0 18px 45px rgba(21, 42, 26, 0.16);
}

.login-logo {
  text-align: center;
  margin-bottom: 16px;
}

.login-logo img {
  max-width: 210px;
}

.login-card h2 {
  text-align: center;
  font-weight: 700;
  margin-bottom: 4px;
}

.login-subtitle {
  text-align: center;
  color: #6c757d;
  margin-bottom: 24px;
}

.login-card .form-control {
  min-height: 46px;
  border-radius: 12px;
}

.login-card .btn {
  min-height: 46px;
  border-radius: 12px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .login-page {
    justify-content: center;
    padding: 20px;
  }

  .login-card {
    width: 100%;
    max-width: 420px;
  }
}
/* =========================
   SIDEBAR PREMIUM CYSEG
========================= */

.app-sidebar{
  position:fixed;
  inset:0 auto 0 0;
  width:78px;
  background:
linear-gradient(
  180deg,
  #071d11 0%,
  #0f3f1b 55%,
  #145322 100%
);
  color:#fff;
  z-index:1030;

  display:flex;
  flex-direction:column;

  padding:14px 10px;

  transition:all .25s ease;

  box-shadow:
    10px 0 35px rgba(0,0,0,.12);

  overflow:hidden;
}

/* EXPANDIDO */
.app-sidebar:hover,
body.sidebar-pinned .app-sidebar{
  width:245px;
}

/* =========================
   LOGO
========================= */

.sidebar-brand{
  display:flex;
  justify-content:center;
  align-items:center;

  min-height:74px;

  margin-bottom:18px;
}

.sidebar-brand img{
  object-fit:contain;
  transition:all .25s ease;
}

/* logo cerrado */
body:not(.sidebar-pinned)
.app-sidebar:not(:hover)
.sidebar-brand img{
  width:48px !important;
  height:48px !important;
}

/* logo abierto */
.app-sidebar:hover .sidebar-brand img,
body.sidebar-pinned .sidebar-brand img{
  width:150px !important;
  height:auto !important;
}

/* =========================
   PIN
========================= */

.sidebar-pin{
  position:absolute;
  top:10px;
  right:10px;

  width:28px;
  height:28px;

  border:none !important;
  outline:none !important;

  background:transparent !important;

  box-shadow:none !important;

  color:rgba(255,255,255,.65);

  border-radius:10px;

  display:flex;
  align-items:center;
  justify-content:center;

  opacity:0;

  transition:all .2s ease;

  z-index:999;
}

.app-sidebar:hover .sidebar-pin,
body.sidebar-pinned .sidebar-pin{
  opacity:1;
}

.sidebar-pin:hover{
  background:rgba(255,255,255,.10) !important;
  color:#fff;
}

.sidebar-pin i{
  font-size:.9rem;
}

button.sidebar-pin{
  appearance:none !important;
  -webkit-appearance:none !important;
}

/* =========================
   USER CARD
========================= */

.sidebar-user{
  display:flex;
  align-items:center;
  gap:12px;

  background:rgba(255,255,255,.08);

  border-radius:18px;

  padding:14px 12px;

  margin-bottom:18px;

  backdrop-filter:blur(8px);
}

.sidebar-user-avatar{
  width:42px;
  height:42px;

  border-radius:14px;

  background:rgba(255,255,255,.12);

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:1.15rem;
}

.sidebar-user-name{
  font-weight:700;
  font-size:.96rem;
}

.sidebar-user-role{
  opacity:.72;
  font-size:.78rem;
  text-transform:capitalize;
}

/* =========================
   SECTIONS
========================= */

.sidebar-section{
  font-size:.72rem;
  letter-spacing:.08em;
  text-transform:uppercase;

  opacity:.55;

  margin:
    18px
    10px
    10px;
}

/* =========================
   LINKS
========================= */

.sidebar-nav{
  overflow-y:auto;
  overflow-x:hidden;

  padding-right:4px;
}

/* scrollbar elegante */
.sidebar-nav::-webkit-scrollbar{
  width:4px;
}

.sidebar-nav::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.18);
  border-radius:20px;
}

.sidebar-link{
  display:flex;
  align-items:center;
  gap:12px;

  color:rgba(255,255,255,.88);

  text-decoration:none;

  padding:11px 12px;

  border-radius:14px;

  margin-bottom:5px;

  transition:all .18s ease;
}

/* iconos */
.sidebar-link i{
  width:36px;
  min-width:36px;
  height:36px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:1.1rem;

  color:rgba(255,255,255,.82);

  transition:all .18s ease;
}

.sidebar-link em{
  font-style:normal;
  font-weight:500;
  white-space:nowrap;
}

/* hover */
.sidebar-link:hover{
  color:#fff;

  background:
    rgba(255,255,255,.10);

  transform:translateX(3px);
}

.sidebar-link:hover i{
  color:#fff;
  transform:scale(1.05);
}

/* logout */
.sidebar-logout{
  color:#ffd8d8;
}

/* =========================
   SIDEBAR CERRADO
========================= */

body:not(.sidebar-pinned)
.app-sidebar:not(:hover)
.sidebar-user,

body:not(.sidebar-pinned)
.app-sidebar:not(:hover)
.sidebar-section,

body:not(.sidebar-pinned)
.app-sidebar:not(:hover)
.sidebar-link em{
  opacity:0;
  visibility:hidden;
  display:none;
}

body:not(.sidebar-pinned)
.app-sidebar:not(:hover)
.sidebar-link{
  justify-content:center;
  padding:11px 0;
}

/* =========================
   LAYOUT
========================= */

body.app-layout{
  padding-left:78px;
  transition:padding-left .25s ease;
}

body.sidebar-pinned.app-layout{
  padding-left:245px;
}

/* =========================
   MOBILE
========================= */

.sidebar-toggle{
  position:fixed;
  top:14px;
  left:14px;

  z-index:1040;

  width:42px;
  height:42px;

  border:none;

  border-radius:14px;

  background:#145322;

  color:#fff;

  display:flex;
  align-items:center;
  justify-content:center;
}

.mobile-sidebar{
  background:
    linear-gradient(180deg,#0b2615 0%,#145322 100%);

  color:#fff;
}

@media(max-width:991px){

  body.app-layout{
    padding-left:0;
  }

  .app-sidebar{
    display:none !important;
  }

  body.app-layout .container,
  body.app-layout .container-fluid{
    padding-top:56px;
  }
}

/* =========================
   DASHBOARD METRICS
========================= */

.metric-card{
  display:flex;
  align-items:center;
  gap:18px;
}

.metric-card h3{
  font-size:2rem;
  font-weight:700;
}

.metric-card small{
  font-size:.92rem;
}

.metric-icon{
  width:58px;
  height:58px;

  border-radius:18px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:1.45rem;
}

.metric-green{
  background:#e8f6ea;
  color:#23923d;
}

.metric-green-soft{
  background:#edf8ee;
  color:#2f7d1f;
}

.metric-blue{
  background:#e9f1ff;
  color:#1f6feb;
}

.metric-yellow{
  background:#fff5df;
  color:#d39a13;
}

/* =========================
   BOTONES DASHBOARD
========================= */

.dashboard-btn{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:48px;
  padding:0 18px;
  border-radius:14px;
  font-weight:600;
  transition:all .2s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}

.dashboard-btn:hover{
  transform:translateY(-1px);
}

.dashboard-btn i{
  font-size:1.05rem;
}

/* =========================
   CARDS
========================= */

.dashboard .card{
  transition:all .25s ease;
}

.dashboard .card:hover{
  transform:translateY(-2px);

  box-shadow:
    0 12px 30px rgba(0,0,0,.06) !important;
}

.dashboard-donut{
  width:165px;
  height:165px;
}

.action-top-btn{
  min-height:40px;
  padding:0 14px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:600;
  white-space:nowrap;
}

.action-top-btn i{
  font-size:1rem;
}

.times-toolbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.times-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.times-limit-form{
  display:flex;
  align-items:center;
  gap:8px;
  color:#6c757d;
  font-size:.9rem;
}

.times-limit-form select{
  width:76px;
  border-radius:10px;
}

.compact-action-btn{
  min-height:38px;
  padding:0 13px;
  border-radius:11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-weight:600;
  white-space:nowrap;
}

.compact-action-btn i{
  font-size:.95rem;
}

.approval-card{
  background:#fff;
  border:1px solid #e6ece8;
  border-radius:18px;
  padding:20px;
  box-shadow:0 8px 24px rgba(0,0,0,.04);
}

.approval-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}

.approval-grid div{
  background:#f8faf9;
  border:1px solid #edf1ef;
  border-radius:14px;
  padding:12px;
}

.approval-grid small,
.approval-block small{
  display:block;
  color:#6c757d;
  font-size:.78rem;
  margin-bottom:4px;
}

.approval-grid strong{
  font-size:.95rem;
  font-weight:600;
}

.approval-block{
  background:#f8faf9;
  border:1px solid #edf1ef;
  border-radius:14px;
  padding:14px;
  height:100%;
}

.approval-block p{
  margin:0;
}

@media(max-width:991px){
  .approval-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:576px){
  .approval-grid{
    grid-template-columns:1fr;
  }
}

.status-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;

  padding:6px 12px;

  border-radius:999px;

  font-size:.82rem;
  font-weight:600;
}

.status-badge i{
  font-size:.72rem;
}

.status-badge.approved{
  background:#e8f8ee;
  color:#1e7e45;
}

.status-badge.pending{
  background:#fff7e6;
  color:#d48806;
}

.status-badge.rejected{
  background:#ffe9e9;
  color:#cf1322;
}

.clean-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.clean-action-btn{
  width:34px;
  height:34px;

  border:none;
  border-radius:10px;

  display:flex;
  align-items:center;
  justify-content:center;

  text-decoration:none;

  transition:.2s ease;
}

.clean-action-btn i{
  font-size:.9rem;
}

.clean-action-btn.edit{
  background:#eef6ff;
  color:#1677ff;
}

.clean-action-btn.delete{
  background:#fff1f0;
  color:#cf1322;
}

.clean-action-btn:hover{
  transform:translateY(-1px);
}

.report-table-wrapper{
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  padding-bottom:8px;
}

.report-table{
  min-width:1450px;
}

.report-table th,
.report-table td{
  white-space:normal;
}

.report-detail-row td{
  background:#fbfcfb;
    white-space:normal;
  line-height:1.5;
}

.report-detail-grid{
  display:grid;
  grid-template-columns:2fr 1.4fr 1.4fr;
  gap:14px;
}

.report-detail-grid div{
  background:#fff;
  border:1px solid #edf1ef;
  border-radius:14px;
  padding:12px 14px;
}

.report-detail-grid strong{
  display:block;
  color:#2f7d1f;
  font-size:.82rem;
  margin-bottom:5px;
}

.report-detail-grid p{
  margin:0;
  color:#2f2f2f;
}

@media(max-width:991px){
  .report-detail-grid{
    grid-template-columns:1fr;
  }
}

.report-table-scroll-top{
  overflow-x:auto;
  overflow-y:hidden;
  height:16px;
  margin-bottom:8px;
}

.report-table-scroll-top > div{
  height:1px;
}

.report-table-wrapper{
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  padding-bottom:8px;
}

.report-table{
  min-width:1450px;
}

.filter-btn{
  height:40px;
  min-height:40px;
  border-radius:11px;
  padding:0 18px;
}

.user-form-card{
  position:sticky;
  top:20px;
}

.user-form-card .form-control,
.user-form-card .form-select{
  min-height:44px;
  border-radius:12px;
}

.table-count-badge{
  background:#eef6ef;
  color:#198754;
  padding:6px 12px;
  border-radius:999px;
  font-size:.85rem;
  font-weight:600;
}

.goal-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:52px;
  padding:6px 12px;
  background:#e8f5ec;
  color:#198754;
  border-radius:999px;
  font-weight:700;
  font-size:.85rem;
}