/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  text-transform: lowercase;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
/* Detached navbar */
.layout-navbar-fixed
  .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu)
  .layout-page {
  padding-top: 76px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir="rtl"] .rtl-only {
  display: block !important;
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

.form-control-sm {
  border-radius: 1rem !important;
}

.text-dark {
  color: #000 !important;
}

.w_alert {
  background-color: transparent;
  width: 100%;
  position: fixed;
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.panel-global-search .input-group-text,
.panel-global-search .form-control,
.panel-global-search .btn {
  height: 2.5rem;
}

.panel-global-search .form-control:focus {
  box-shadow: none;
}

.panel-hero {
  background:
    radial-gradient(
      circle at top right,
      rgba(105, 108, 255, 0.18),
      transparent 28%
    ),
    linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border: 1px solid rgba(105, 108, 255, 0.12);
}

.panel-module-card {
  border: 1px solid rgba(67, 89, 113, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.panel-module-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1.25rem rgba(67, 89, 113, 0.12);
}

.panel-module-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(105, 108, 255, 0.12);
  color: #696cff;
  font-size: 1.2rem;
}

.panel-soft-block {
  border: 1px dashed rgba(67, 89, 113, 0.18);
  background: rgba(248, 249, 255, 0.9);
}

.agenda-calendar-shell .fc-toolbar {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.agenda-calendar-shell .fc-toolbar h2 {
  font-size: 1rem;
  margin: 0;
}

.agenda-calendar-shell .fc-button {
  border-radius: 999px;
  box-shadow: none !important;
}

.agenda-calendar-shell .fc-view-container {
  background: #fff;
  border-radius: 1rem;
}

.agenda-calendar-shell .fc-event {
  border-width: 2px;
  border-radius: 0.75rem;
  padding: 0.1rem 0.2rem;
  overflow: hidden;
  box-sizing: border-box;
}

.agenda-calendar-shell .fc-title {
  font-weight: 600;
}

.agenda-calendar-shell .agenda-event-title,
.agenda-calendar-shell .agenda-event-service,
.agenda-calendar-shell .agenda-event-meta {
  display: block;
  font-size: 0.7rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agenda-calendar-shell .agenda-block-event {
  opacity: 0.85;
}

.agenda-calendar-shell .fc-agenda-view .fc-time-grid-event .fc-content {
  padding: 0.15rem 0.25rem;
  overflow: hidden;
  min-width: 0;
}

.agenda-calendar-shell .fc-time-grid-event .fc-content {
  overflow: hidden;
  min-width: 0;
}

.agenda-calendar-shell .fc-time-grid-event {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
  overflow: hidden;
}

.agenda-calendar-shell .fc-time-grid-event .fc-resizer,
.agenda-calendar-shell .fc-time-grid-event .fc-bg {
  max-width: 100%;
}

.agenda-calendar-shell .agenda-event-meta {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.agenda-calendar-shell .fc-resource-area .fc-cell-content,
.agenda-calendar-shell .fc-divider {
  font-weight: 600;
}

.temporal-scope-card {
  border: 2px solid #fd7e14 !important;
  box-shadow: 0 0 0 0.2rem rgba(253, 126, 20, 0.1);
}

.temporal-scope-card .card-body {
  background: linear-gradient(
    180deg,
    rgba(253, 126, 20, 0.07) 0%,
    rgba(255, 255, 255, 1) 24%
  );
}

.agenda-related-item-active > td {
  background: rgba(255, 159, 64, 0.12);
  border-top: 1px solid rgba(255, 159, 64, 0.95);
  border-bottom: 1px solid rgba(255, 159, 64, 0.95);
}

.agenda-related-item-active > td:first-child {
  border-top-left-radius: 0.65rem;
  border-bottom-left-radius: 0.65rem;
  border-left: 1px solid rgba(255, 159, 64, 0.95);
}

.agenda-related-item-active > td:last-child {
  border-top-right-radius: 0.65rem;
  border-bottom-right-radius: 0.65rem;
  border-right: 1px solid rgba(255, 159, 64, 0.95);
}

.agenda-related-open-link {
  font-size: 0.8rem;
  line-height: 1.1;
}

.agenda-state-dropdown-disabled .dropdown-menu {
  display: none !important;
}

#agendaDetailStateBadge {
  cursor: pointer;
}

#agendaDetailStateBadge.pe-none {
  cursor: default;
}

.agenda-consent-card-signed {
  border: 1px solid rgba(25, 135, 84, 0.7) !important;
  background: linear-gradient(
    180deg,
    rgba(25, 135, 84, 0.12) 0%,
    rgba(255, 255, 255, 1) 100%
  ) !important;
  box-shadow: 0 0 0 0.12rem rgba(25, 135, 84, 0.12);
}

#agendaDetailRelatedItems td {
  padding-top: 0.28rem;
  padding-bottom: 0.28rem;
}

#agendaDetailRelatedItems .small,
#agendaDetailRelatedItems .lh-1 {
  line-height: 1 !important;
}

.profile-shell {
  border: 1px solid rgba(67, 89, 113, 0.08);
  border-radius: 1.25rem;
}

.profile-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  padding: 1.25rem;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.24),
      transparent 36%
    ),
    linear-gradient(135deg, #0f766e 0%, #155e75 55%, #164e63 100%);
}

.profile-hero-glow {
  position: absolute;
  inset: auto -3rem -3rem auto;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  filter: blur(12px);
}

.profile-hero-name {
  color: #fff;
  font-weight: 700;
}

.profile-hero-top,
.profile-hero-main {
  position: relative;
  z-index: 2;
}

.profile-avatar-wrap {
  position: relative;
  width: 6.25rem;
  height: 6.25rem;
  min-width: 6.25rem;
  border-radius: 999px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.18);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 999px;
  position: relative;
  z-index: 2;
}

.profile-avatar-fallback {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.04em;
  z-index: 1;
}

.header-user-photo {
  border: 2px solid #6c757d;
  background-color: #6c757d;
  object-fit: cover;
}

.profile-stat-card,
.profile-side-card {
  border: 1px solid rgba(67, 89, 113, 0.1);
  border-radius: 1rem;
  background: #fff;
  padding: 0.95rem 1rem;
}

.profile-stat-card {
  min-height: 100%;
}

.profile-color-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid rgba(67, 89, 113, 0.14);
  display: inline-block;
  flex-shrink: 0;
}

.profile-photo-icon-link {
  opacity: 0.9;
}

.profile-photo-actions {
  z-index: 2;
}

.modal-close-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close-link:hover,
.modal-close-link:focus {
  color: #6c757d !important;
  opacity: 1;
}

.profile-crop-shell {
  position: relative;
  width: min(100%, 22rem);
  margin: 0 auto;
}

.profile-crop-canvas {
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 1rem;
  background: #eef2f7;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.1);
}

.profile-crop-canvas:active {
  cursor: grabbing;
}

.profile-crop-frame {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  pointer-events: none;
}

.modal .btn-close {
  margin: 0 !important;
  padding: 0.125rem !important;
  width: 1.25rem;
  height: 1.25rem;
  opacity: 0.65;
  border: none !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.modal .btn-close:hover,
.modal .btn-close:focus {
  opacity: 1;
  box-shadow: none !important;
}

.modal-icon-close {
  color: #6c757d;
  text-decoration: none;
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-icon-close:hover,
.modal-icon-close:focus {
  color: #495057;
  text-decoration: none;
}

@media (max-width: 768px) {
  .agenda-calendar-shell .fc-toolbar {
    display: flex;
    align-items: stretch;
  }

  .agenda-calendar-shell .fc-left,
  .agenda-calendar-shell .fc-right,
  .agenda-calendar-shell .fc-center {
    float: none;
    width: 100%;
    text-align: center;
  }

  .profile-hero {
    padding: 1rem;
  }

  .profile-hero-main {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .profile-hero-camera {
    position: absolute;
    top: 0;
    right: 0;
  }

  .profile-avatar-wrap {
    width: 5.5rem;
    height: 5.5rem;
    min-width: 5.5rem;
  }

  .profile-photo-actions {
    text-align: center;
  }

  .profile-crop-shell {
    width: min(100%, 18rem);
  }

  #modalMajorCashDetails .modal-dialog,
  #modalMajorCashEntry .modal-dialog,
  #modalMajorCashCreateBox .modal-dialog {
    margin: 0.5rem;
  }

  #modalMajorCashDetails .modal-body,
  #modalMajorCashEntry .modal-body,
  #modalMajorCashCreateBox .modal-body {
    padding: 0.85rem !important;
  }

  #modalMajorCashDetails .rounded-4,
  #modalMajorCashEntry .rounded-4,
  #modalMajorCashCreateBox .rounded-4 {
    border-radius: 1rem !important;
  }

  #modalMajorCashDetails .nav.nav-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem !important;
  }

  #modalMajorCashDetails .nav.nav-pills .nav-link {
    width: 100%;
    text-align: center;
  }

  #modalMajorCashDetails .table {
    font-size: 0.84rem;
  }

  #modalMajorCashDetails .table td,
  #modalMajorCashDetails .table th {
    vertical-align: top;
  }

  #majorCashBalancesBox .table th,
  #majorCashBalancesBox .table td {
    white-space: nowrap;
  }

  #majorCashIncomeFormWrap .row,
  #majorCashExpenseFormWrap .row {
    row-gap: 0.5rem !important;
  }

  #majorCashIncomeFormWrap .form-label,
  #majorCashExpenseFormWrap .form-label {
    font-size: 0.72rem;
    margin-bottom: 0.2rem;
  }

  #majorCashIncomeFormWrap .btn,
  #majorCashExpenseFormWrap .btn {
    width: 100%;
  }

  #majorCashOpenBoxResume,
  #majorCashCloseBoxSection,
  #majorCashBalancesBox {
    padding: 0.85rem !important;
  }

  #majorCashDetailsTitle {
    font-size: 1rem;
  }

  #majorCashDetailsPeriod {
    line-height: 1.15;
  }

  #majorCashCloseActions {
    justify-content: stretch !important;
  }

  #majorCashCloseActions .btn,
  #majorCashCloseBoxSection .btn {
    width: 100%;
  }
}

.fc-state-default {
  /* non-theme */
  border: 1px solid #ff6600;
  color: #ff6600;
  background: transparent;
}

.fc-state-default.fc-corner-left {
  /* non-theme */
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.fc-state-default.fc-corner-right {
  /* non-theme */
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.fc-state-default:hover {
  color: #fff;
  background-color: #d95700;
  border-color: #d95700;
  box-shadow: 0 0.125rem 0.25rem 0 rgba(255, 108, 0, 0.4);
  transform: translateY(-1px);
}

.fc-state-default:focus,
.fc-state-default:active {
  color: #fff;
  background-color: #d95700;
  border-color: #d95700;
  box-shadow: none;
  transform: translateY(0);
}

.fc-state-default.active {
  background-color: #d99059;
  border-color: #d99059;
}

.fc-button-group .fc-state-default {
  border-radius: 999px;
}

.fc-nonbusiness {
  background: repeating-linear-gradient(
    45deg,
    #b88f83 10px,
    #b88f83 20px,
    #fcf8e3 20px,
    #fcf8e3 30px
  );
}
