
:root {
  --mdp-theme-color: #6366f1;
  --mdp-bg-hover: #e0e7ff;
}

body .popover:has(.table-condensed),
body .popover {
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.2) !important;
  font-family: inherit !important;
  padding: 0 !important;
  overflow: hidden !important;
  z-index: 1060 !important;
}

  body .popover .arrow,
  body .popover .popover-arrow {
    display: none !important;
  }

  body .popover .popover-header,
  body .popover .popover-title {
    background: var(--mdp-theme-color) !important;
    color: white !important;
    text-align: center !important;
    border-bottom: none !important;
    padding: 12px !important;
    font-size: 1.1rem !important;
  }

  body .popover .popover-body,
  body .popover .popover-content {
    padding: 10px !important;
  }

  body .popover table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 2px !important;
  }

    body .popover table thead tr:first-child th {
      border-radius: 8px !important;
      padding: 0px 0 !important;
    }

      body .popover table thead tr:first-child th:hover {
        background: #f3f4f6 !important;
        color: var(--mdp-theme-color) !important;
      }

    body .popover table thead tr:last-child th {
      color: #9ca3af !important;
      font-size: 0.8rem !important;
      padding-bottom: 0px !important;
      border-bottom: 1px solid #eee !important;
    }

    body .popover table td {
      border-radius: 50% !important;
      width: 38px !important;
      height: 38px !important;
      line-height: 35px !important;
      padding: 0 !important;
      text-align: center !important;
      transition: background-color 0.2s ease, color 0.2s ease !important;
      font-weight: 500 !important;
      border: none !important;
    }

      body .popover table td .dropdown-item {
        line-height: 20px !important;
      }

      body .popover table td:not(.disabled):not(.active):not(.today):hover {
        //background-color: var(--mdp-bg-hover) !important;
        color: var(--mdp-theme-color) !important;
        cursor: pointer !important;
        /* transform: scale(1.1);  <-- حذف شده */
      }

      body .popover table td.active,
      body .popover table td.active:hover {
        background-color: var(--mdp-theme-color) !important;
        color: white !important;
        box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4) !important;
      }

      body .popover table td.today {
        background-color: transparent !important;
        color: var(--mdp-theme-color) !important;
        border: 2px solid var(--mdp-theme-color) !important;
        position: relative;
      }

        body .popover table td.today::before {
          display: none !important;
        }

      body .popover table td.disabled {
        color: #e5e7eb !important;
        cursor: not-allowed !important;
        text-decoration: line-through;
      }

  body .popover .timepicker-picker .btn {
    border-radius: 50px !important;
    background-color: #f3f4f6 !important;
    border: none !important;
    margin: 5px !important;
  }

    body .popover .timepicker-picker .btn:hover {
      background-color: var(--mdp-theme-color) !important;
      color: white !important;
    }

@keyframes popInSafe {
  0% {
    opacity: 0;
    margin-top: 10px;
  }

  100% {
    opacity: 1;
    margin-top: 0;
  }
}

body .popover.show {
  animation: popInSafe 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}
