/* Breakpoints */
/* functions */
/* Root Definition */
:root {
  --crmpm-col-status-none: 202, 202, 202;
  --crmpm-col-status-offer: 248, 227, 147;
  --crmpm-col-status-accepted: 185, 215, 241;
  --crmpm-col-status-in-progress: 185, 215, 241;
  --crmpm-col-status-review: 196, 147, 248;
  --crmpm-col-status-done: 147, 248, 147;
  --crmpm-col-status-cancelled: 248, 147, 147;
  --crmpm-col-status-paused: 253, 219, 219;
  --crmpm-col-status-ongoing: 109, 170, 236;
}
.crmpm-dashboard-main {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media only screen and (min-width: 1194px) {
  .crmpm-dashboard-main {
    flex-direction: row;
    overflow-x: auto;
  }
}
.crmpm-dashboard-main .grids-head {
  background-color: rgba(196, 213, 227, 0.56);
  margin-top: 5px;
  padding: 6px;
  font-weight: 700;
  font-size: 16px;
}
.crmpm-dashboard-main .crmpm-customer-filter {
  grid-area: customer-filter;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 5px;
}
@media only screen and (min-width: 1194px) {
  .crmpm-dashboard-main .crmpm-customer-filter {
    flex-direction: column;
  }
}
.crmpm-dashboard-main .crmpm-customer-filter .filter-toggle-customer.active .thumbnail {
  border: 2px solid #0e76ec;
}
.crmpm-dashboard-main .crmpm-customer-filter .filter-toggle-customer.active-appointment .thumbnail {
  border: 2px solid #28a745;
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.3);
  animation: pulse-appointment 2s ease-in-out infinite;
}
.crmpm-dashboard-main .crmpm-customer-filter .thumbnail {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  background-color: #fff;
  border: 2px solid rgba(255, 255, 255, 0);
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.crmpm-dashboard-main .crmpm-customer-filter .thumbnail:hover {
  transform: scale(2);
}
.crmpm-dashboard-main .crmpm-initiatives-grid {
  display: flex;
  flex-direction: column;
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item {
  display: grid;
  grid-gap: 5px 10px;
  grid-template-areas: "name status" "name date" "name clock" "segments segments";
  grid-template-columns: 1fr 100px;
  grid-template-rows: min-content;
  margin-top: 2px;
  padding: 6px;
  font-weight: 500;
}
@media only screen and (min-width: 1194px) {
  .crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item {
    grid-template-columns: 300px 100px 80px 80px;
    grid-template-areas: "name status date clock" "segments segments segments segments";
  }
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item.active-appointment {
  background: #d4edda;
  border: 2px solid #28a745;
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.3);
  animation: pulse-appointment 2s ease-in-out infinite;
  padding: 4px;
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-status {
  color: rgba(58, 58, 58, 0.5);
  grid-area: status;
  border-radius: 20px;
  padding: 0 10px;
  width: fit-content;
  height: fit-content;
  font-size: 12px;
  align-self: flex-start;
  justify-self: end;
}
@media only screen and (min-width: 1194px) {
  .crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-status {
    justify-self: start;
  }
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-name {
  grid-area: name;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-self: flex-start;
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-name .thumbnail {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  background-color: #fff;
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 5px;
  margin-right: 10px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-name .thumbnail:hover {
  transform: scale(2);
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-name a {
  align-self: flex-start;
  text-decoration: none;
  color: unset;
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-name a:hover {
  text-decoration: underline;
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-customer-acceptance-date {
  grid-area: date;
  display: flex;
  flex-direction: row;
  gap: 5px;
  justify-content: flex-end;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 500;
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-start-clock {
  grid-area: clock;
  display: flex;
  flex-direction: row;
  gap: 5px;
  justify-content: flex-end;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-start-clock button {
  margin-top: 2px;
  border: none;
  background-color: rgba(0, 0, 0, 0.3);
  color: #fff;
  cursor: pointer;
  border-radius: 7px;
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-start-clock button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-segments {
  grid-area: segments;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 5px;
  width: 100%;
}
@media only screen and (min-width: 1194px) {
  .crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-segments {
    padding-left: 40px;
    width: calc(100% - 40px);
  }
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-segments .initiative-segment {
  padding: 3px 5px;
  width: calc(100% - 10px);
  display: flex;
  flex-direction: row;
  gap: 5px;
  justify-content: flex-start;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 500;
  border-radius: 3px;
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-segments .initiative-segment .segment-headline {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 2px;
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-segments .initiative-segment .segment-headline .segment-description {
  font-weight: 400;
  text-decoration: none;
  color: black;
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-segments .initiative-segment .segment-headline .segment-description:hover {
  text-decoration: underline;
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-segments .initiative-segment .segment-headline .code-and-status {
  display: flex;
  flex-direction: row;
  gap: 5px;
  margin-bottom: 5px;
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-segments .initiative-segment .segment-headline .code-and-status button.segment-code {
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  height: fit-content;
  min-height: 18px;
  color: black;
  outline: none;
  background-color: none;
  border: 1px solid grey;
  border-radius: 3px;
  background: none;
  appearance: none;
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-segments .initiative-segment .segment-headline .code-and-status button.segment-code:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-segments .initiative-segment .segment-headline .code-and-status .segment-status {
  color: rgba(9, 9, 9, 0.49);
  grid-area: status;
  border-radius: 20px;
  padding: 0 5px;
  width: fit-content;
  height: fit-content;
  font-size: 8px;
  font-weight: 800;
  align-self: flex-start;
  justify-self: end;
}
@media only screen and (min-width: 1194px) {
  .crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-segments .initiative-segment .segment-headline .code-and-status .segment-status {
    justify-self: start;
  }
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-segments .initiative-segment .segment-infos {
  display: flex;
  flex-direction: row;
  gap: 5px;
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-segments .initiative-segment .segment-infos .segment-blocked-by {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-self: flex-start;
  flex-wrap: wrap;
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-segments .initiative-segment .segment-infos .segment-blocked-by a picture {
  display: block;
  line-height: 0;
  height: 18px;
  width: 18px;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  background-color: #fff;
  border-radius: 5px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-segments .initiative-segment .segment-infos .segment-blocked-by a picture:hover {
  transform: scale(2);
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-segments .initiative-segment .segment-infos .segment-blocked-by a picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-segments .initiative-segment .segment-infos .segment-bookings,
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-segments .initiative-segment .segment-infos .segment-effort-in-h,
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-segments .initiative-segment .segment-infos .segment-effort-billable-in-h {
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  padding: 1px 3px;
  border-radius: 6px;
  display: flex;
  min-width: 19px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.5);
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-segments .initiative-segment .segment-infos .segment-bookings.empty,
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-segments .initiative-segment .segment-infos .segment-effort-in-h.empty,
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-segments .initiative-segment .segment-infos .segment-effort-billable-in-h.empty {
  opacity: 0.3;
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-segments .initiative-segment .segment-infos .segment-bookings.alert,
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-segments .initiative-segment .segment-infos .segment-effort-in-h.alert,
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item .initiative-segments .initiative-segment .segment-infos .segment-effort-billable-in-h.alert {
  opacity: 1 !important;
  background-color: rgba(255, 0, 0, 0.2);
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item-status-offer {
  background-color: rgba(var(--crmpm-col-status-offer), 0.25);
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item-status-offer .initiative-status,
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item-status-offer .segment-status {
  background-color: rgba(var(--crmpm-col-status-offer), 0.55);
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item-status-accepted {
  background-color: rgba(var(--crmpm-col-status-accepted), 0.25);
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item-status-accepted .initiative-status,
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item-status-accepted .segment-status {
  background-color: rgba(var(--crmpm-col-status-accepted), 0.55);
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item-status-in_progress {
  background-color: rgba(var(--crmpm-col-status-in-progress), 0.25);
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item-status-in_progress .initiative-status,
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item-status-in_progress .segment-status {
  background-color: rgba(var(--crmpm-col-status-in-progress), 0.55);
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item-status-review {
  background-color: rgba(var(--crmpm-col-status-review), 0.25);
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item-status-review .initiative-status,
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item-status-review .segment-status {
  background-color: rgba(var(--crmpminitiative-segments-col-status-review), 0.55);
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item-status-done {
  background-color: rgba(var(--crmpm-col-status-done), 0.25);
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item-status-done .initiative-status,
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item-status-done .segment-status {
  background-color: rgba(var(--crmpm-col-status-done), 0.55);
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item-status-cancelled {
  background-color: rgba(var(--crmpm-col-status-cancelled), 0.25);
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item-status-cancelled .initiative-status,
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item-status-cancelled .segment-status {
  background-color: rgba(var(--crmpm-col-status-cancelled), 0.55);
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item-status-paused {
  background-color: rgba(var(--crmpm-col-status-paused), 0.25);
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item-status-paused .initiative-status,
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item-status-paused .segment-status {
  background-color: rgba(var(--crmpm-col-status-paused), 0.55);
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item-status-ongoing {
  background-color: rgba(var(--crmpm-col-status-ongoing), 0.25);
}
.crmpm-dashboard-main .crmpm-initiatives-grid .initiative-item-status-ongoing .initiative-status {
  background-color: rgba(var(--crmpm-col-status-ongoing), 0.55);
}
.crmpm-dashboard-main .crmpm-serviceditems-grid {
  grid-area: serviceditems;
  display: flex;
  flex-direction: column;
}
.crmpm-dashboard-main .crmpm-serviceditems-grid .customer-head {
  background-color: rgba(196, 213, 227, 0.56);
  display: grid;
  grid-gap: 10px;
  grid-template-columns: 1fr 60px 60px;
  margin-top: 5px;
  padding: 2px;
  font-weight: 700;
}
.crmpm-dashboard-main .crmpm-serviceditems-grid .customer-name a {
  text-decoration: none;
  color: unset;
}
.crmpm-dashboard-main .crmpm-serviceditems-grid .customer-name a:hover {
  text-decoration: underline;
}
.crmpm-dashboard-main .crmpm-serviceditems-grid .customer-serviced-items .serviced-item-row {
  display: grid;
  grid-gap: 10px;
  grid-template-columns: 1fr 60px 60px;
  padding: 6px;
}
@media only screen and (min-width: 1194px) {
  .crmpm-dashboard-main .crmpm-serviceditems-grid .customer-serviced-items .serviced-item-row {
    grid-template-columns: 300px 60px 60px;
  }
}
.crmpm-dashboard-main .crmpm-serviceditems-grid .customer-serviced-items .serviced-item-name {
  margin-left: 10px;
}
.crmpm-dashboard-main .crmpm-serviceditems-grid .customer-serviced-items .serviced-item-name a {
  text-decoration: none;
  color: unset;
}
.crmpm-dashboard-main .crmpm-serviceditems-grid .customer-serviced-items .serviced-item-name a:hover {
  text-decoration: underline;
}
.crmpm-dashboard-main .crmpm-serviceditems-grid .customer-serviced-items .serviced-item-initiatives-effort-todo.strong {
  font-weight: 600;
  color: green;
}
.crmpm-dashboard-main .crmpm-serviceditems-grid .customer-serviced-items .serviced-item-initiatives-effort-offer.strong {
  font-weight: 600;
  color: #cab938;
}
.crmpm-dashboard-main .crmpm-people-grid {
  grid-area: people;
  display: flex;
  flex-direction: column;
}
.crmpm-dashboard-main .crmpm-people-grid .people-head {
  background-color: rgba(196, 213, 227, 0.56);
  margin-top: 5px;
  padding: 6px;
  font-weight: 700;
  font-size: 16px;
}
.crmpm-dashboard-main .crmpm-people-grid .person-item {
  display: grid;
  grid-gap: 10px;
  margin-top: 2px;
  grid-template-columns: 1fr 50px 80px;
  padding: 6px;
  font-weight: 500;
  background-color: rgba(var(--crmpm-col-status-none), 0.25);
}
@media only screen and (min-width: 1194px) {
  .crmpm-dashboard-main .crmpm-people-grid .person-item {
    grid-template-columns: 200px 50px 80px;
  }
}
.crmpm-dashboard-main .crmpm-people-grid .person-item .person-name {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-self: flex-start;
}
.crmpm-dashboard-main .crmpm-people-grid .person-item .person-name .thumbnail {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  background-color: #fff;
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 5px;
  margin-right: 10px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.crmpm-dashboard-main .crmpm-people-grid .person-item .person-name .thumbnail:hover {
  transform: scale(2);
}
.crmpm-dashboard-main .crmpm-people-grid .person-item .person-name a {
  text-decoration: none;
  color: unset;
}
.crmpm-dashboard-main .crmpm-people-grid .person-item .person-name a:hover {
  text-decoration: underline;
}
.crmpm-dashboard-main .crmpm-people-grid .person-item .person-follow-up-date {
  display: flex;
  flex-direction: row;
  gap: 5px;
  justify-content: flex-end;
  align-self: flex-start;
  font-weight: 500;
  font-family: monospace, monospace;
}
.crmpm-dashboard-main .crmpm-people-grid .person-item .person-clockodo-start {
  display: flex;
  flex-direction: row;
  gap: 5px;
  justify-content: flex-end;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
}
.crmpm-dashboard-main .crmpm-people-grid .person-item .person-clockodo-start button {
  margin-top: 2px;
  border: none;
  background-color: rgba(0, 0, 0, 0.43);
  color: #fff;
  cursor: pointer;
  border-radius: 7px;
}
.crmpm-dashboard-main .crmpm-people-grid .person-item .person-clockodo-start button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
.crmpm-dashboard-main .crmpm-investments-grid {
  grid-area: investments;
  display: flex;
  flex-direction: column;
}
.crmpm-dashboard-main .crmpm-investments-grid .investments-head {
  background-color: rgba(196, 213, 227, 0.56);
  margin-top: 5px;
  padding: 6px;
  font-weight: 700;
  font-size: 16px;
}
.crmpm-dashboard-main .crmpm-investments-grid .investment-item {
  display: grid;
  grid-gap: 10px;
  margin-top: 2px;
  grid-template-columns: 1fr 0.5fr 0.5fr;
  padding: 6px;
  font-weight: 500;
  background-color: rgba(var(--crmpm-col-status-none), 0.25);
}
@media only screen and (min-width: 1194px) {
  .crmpm-dashboard-main .crmpm-investments-grid .investment-item {
    grid-template-columns: 200px 20px 30px;
  }
}
.crmpm-dashboard-main .crmpm-investments-grid .investment-item .investment-name {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-self: flex-start;
}
.crmpm-dashboard-main .crmpm-investments-grid .investment-item .investment-name .thumbnail {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  background-color: #fff;
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 5px;
  margin-right: 10px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.crmpm-dashboard-main .crmpm-investments-grid .investment-item .investment-name .thumbnail:hover {
  transform: scale(2);
}
.crmpm-dashboard-main .crmpm-investments-grid .investment-item .investment-name a {
  text-decoration: none;
  color: unset;
}
.crmpm-dashboard-main .crmpm-investments-grid .investment-item .investment-name a:hover {
  text-decoration: underline;
}
.crmpm-dashboard-main .crmpm-investments-grid .investment-item .investment-cost-amount {
  display: flex;
  flex-direction: row;
  gap: 5px;
  justify-content: flex-end;
  align-self: flex-start;
  font-weight: 500;
  font-family: monospace, monospace;
}
.crmpm-dashboard-main .crmpm-investments-grid .investment-item .investment-cost-saved {
  display: flex;
  flex-direction: row;
  gap: 5px;
  justify-content: flex-end;
  align-self: flex-start;
  font-weight: 500;
  font-family: monospace, monospace;
}
.crmpm-dashboard-main .crmpm-investments-grid .investment-total {
  display: grid;
  grid-gap: 10px;
  margin-top: 2px;
  grid-template-columns: 1fr 1fr;
  padding: 6px;
  background-color: rgba(var(--crmpm-col-status-none), 0.5);
}
.crmpm-dashboard-main .crmpm-investments-grid .investment-total .sum {
  display: flex;
  flex-direction: row;
  gap: 5px;
  justify-content: flex-end;
  align-self: flex-start;
  font-weight: 500;
  font-family: monospace, monospace;
  font-weight: 700 !important;
}
.crmpm-table table {
  table-layout: unset !important;
  overflow: auto !important;
  overflow-x: auto !important;
  width: max-content !important;
}
.crmpm-table table thead tr th {
  font-size: 15px;
}
.crmpm-table table tbody tr td {
  font-size: 15px;
  min-width: 20px !important;
  max-width: 250px !important;
}
.block-crmpm-media {
  margin-top: 20px;
  margin-bottom: 20px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 20px;
}
@media only screen and (min-width: 650px) {
  .block-crmpm-media {
    grid-template-columns: 1fr 1fr;
  }
}
@media only screen and (min-width: 1194px) {
  .block-crmpm-media {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.block-crmpm-media .media-item {
  height: fit-content;
}
.block-crmpm-media .media-item a {
  display: block;
  cursor: pointer;
}
.block-crmpm-media .media-item a picture {
  width: 100%;
  height: 100%;
}
.block-crmpm-media .media-item a picture img {
  object-position: top;
  object-fit: cover;
  max-height: 250px;
  width: 100%;
  height: 100%;
}
.block-crmpm-initiative-item {
  position: relative;
  padding: 20px;
  display: grid;
  grid-gap: 20px;
  font-size: 15px;
  grid-template-columns: 1fr min-content;
  grid-template-areas: "name status" "segments segments";
}
.block-crmpm-initiative-item.status-offer {
  background-color: rgba(248, 227, 147, 0.56);
}
.block-crmpm-initiative-item.status-accepted {
  background-color: rgba(185, 215, 241, 0.56);
}
.block-crmpm-initiative-item.status-in_progress {
  background-color: rgba(185, 215, 241, 0.56);
}
.block-crmpm-initiative-item.status-review {
  background-color: rgba(196, 147, 248, 0.56);
}
.block-crmpm-initiative-item.status-done {
  background-color: rgba(147, 248, 147, 0.56);
}
.block-crmpm-initiative-item.status-cancelled {
  background-color: rgba(248, 147, 147, 0.56);
}
.block-crmpm-initiative-item.status-paused {
  background-color: rgba(253, 219, 219, 0.56);
}
.block-crmpm-initiative-item.status-ongoing {
  background-color: rgba(185, 215, 241, 0.56);
}
.block-crmpm-initiative-item .name {
  grid-area: name;
  font-weight: 700;
}
.block-crmpm-initiative-item .status {
  grid-area: status;
  font-weight: 700;
  white-space: nowrap;
}
.block-crmpm-initiative-item .efforts {
  font-size: 13px;
  grid-area: efforts;
  display: grid;
  grid-gap: 3px 10px;
  grid-template-columns: 1fr min-content min-content min-content min-content;
}
.block-crmpm-initiative-item .efforts .effort-in-h {
  white-space: nowrap;
}
.block-crmpm-initiative-item .uniq-id-generator {
  font-size: 10px;
}
.block-crmpm-initiative-item .segments {
  grid-area: segments;
  font-size: 13px;
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 10px;
}
.block-crmpm-initiative-item .segments .segment .segment-info {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  gap: 10px;
}
@media only screen and (min-width: 1194px) {
  .block-crmpm-initiative-item .segments .segment .segment-info {
    flex-wrap: nowrap;
  }
}
.block-crmpm-initiative-item .segments .segment .segment-info .segment-code {
  height: fit-content;
}
.block-crmpm-initiative-item .segments .segment .segment-info .segment-description {
  width: calc(100% - 60px);
}
@media only screen and (min-width: 650px) {
  .block-crmpm-initiative-item .segments .segment .segment-info .segment-description {
    width: unset;
  }
}
@media only screen and (min-width: 1194px) {
  .block-crmpm-initiative-item .segments .segment .segment-info .segment-description {
    flex-grow: 1;
  }
}
.block-crmpm-initiative-item .segments .segment .segment-info .segment-effort-in-h {
  white-space: nowrap;
}
.block-crmpm-initiative-item .segments .segment .segment-info .segment-customer-acceptance-img a.lightbox picture {
  display: block;
  width: 30px;
  height: 30px;
}
.block-crmpm-initiative-item .segments .segment .segment-info .segment-customer-acceptance-img a.lightbox picture img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.block-crmpm-initiative-item .segments .segment .segment-tasks {
  margin-top: 10px;
}
.block-crmpm-initiative-item .segments .segment .segment-tasks .segment-task {
  margin-top: 5px;
}
.block-crmpm-initiative-item .segments .segment .segment-tasks .segment-task .task-headline {
  display: flex;
  flex-direction: row;
  gap: 5px;
}
.block-crmpm-initiative-item .segments .segment .segment-tasks .segment-task .task-headline .task-done {
  width: 15px;
}
.block-crmpm-initiative-item .segments .segment .segment-tasks .segment-task .task-description {
  flex-grow: 1;
}
.block-crmpm-initiative-item .segments .segment .segment-tasks .segment-task .task-images {
  margin-left: 20px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 5px;
}
.block-crmpm-initiative-item .segments .segment .segment-tasks .segment-task .task-images a.lightbox picture {
  display: block;
  width: 30px;
  height: 30px;
}
.block-crmpm-initiative-item .segments .segment .segment-tasks .segment-task .task-images a.lightbox picture img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.block-crmpm-initiative-item .segments .segment .segment-tasks .segment-task .task-contractornote {
  margin-left: 20px;
  color: darkred;
}
/* ========================================
   CELESTIAL INDICATOR
   ======================================== */
.celestial-indicator {
  display: flex;
  gap: 15px;
  align-items: center;
  margin: 15px 0;
  padding: 0 0 0 12px;
  background: linear-gradient(135deg, #667eea75 0%, #764ba25e 100%);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
  flex-wrap: wrap;
}
.celestial-indicator .celestial-controls {
  display: flex;
  gap: 10px;
}
.celestial-indicator .celestial-controls .celestial-config-btn,
.celestial-indicator .celestial-controls .celestial-help-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 6px;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.celestial-indicator .celestial-controls .celestial-config-btn:hover,
.celestial-indicator .celestial-controls .celestial-help-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
}
.celestial-indicator .celestial-controls .celestial-config-btn:active,
.celestial-indicator .celestial-controls .celestial-help-btn:active {
  transform: scale(0.95);
}
.celestial-indicator .celestial-body {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: clip;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 6px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  min-width: 0;
  flex: 1;
}
.celestial-indicator .celestial-body:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.celestial-indicator .celestial-body .celestial-icon {
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  flex-shrink: 0;
}
.celestial-indicator .celestial-body .celestial-angle {
  font-size: 12px;
  font-weight: 400;
  color: #3c434a;
  text-align: right;
  line-height: 1.2;
  white-space: nowrap;
  flex-grow: 1;
  min-width: 0;
}
.celestial-indicator .celestial-body .celestial-angle .celestial-brackets {
  display: none;
}
@media only screen and (min-width: 1194px) {
  .celestial-indicator .celestial-body .celestial-angle .celestial-brackets {
    display: inline-block;
  }
}
@media only screen and (max-width: 833px) {
  .celestial-indicator .celestial-body .celestial-angle {
    font-size: 12px;
    white-space: normal;
    word-break: break-word;
  }
}
@media only screen and (max-width: 650px) {
  .celestial-indicator {
    flex-wrap: wrap;
    flex-direction: row;
    gap: 4px 7px;
    padding: 4px;
  }
  .celestial-indicator .celestial-body {
    min-width: fit-content;
    flex-shrink: 0;
    justify-content: space-between;
    padding: 8px 12px;
  }
  .celestial-indicator .celestial-body .celestial-angle {
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .celestial-indicator .celestial-body .celestial-icon {
    font-size: 20px;
    flex-shrink: 0;
  }
}
.celestial-tooltip {
  position: absolute;
  background: #ffffff;
  border: 2px solid #667eea;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 10001;
  max-width: 400px;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  box-sizing: border-box;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.celestial-tooltip h4 {
  margin: 15px 0 8px 0;
  color: #667eea;
  font-size: 16px;
  font-weight: 700;
}
.celestial-tooltip h4:first-child {
  margin-top: 0;
}
.celestial-tooltip p {
  margin: 5px 0;
  color: #555;
}
.celestial-tooltip ul {
  margin: 8px 0;
  padding-left: 20px;
  list-style-type: none;
}
.celestial-tooltip ul li {
  margin: 5px 0;
  position: relative;
  padding-left: 8px;
}
.celestial-tooltip ul li:before {
  content: '•';
  position: absolute;
  left: -12px;
  color: #667eea;
  font-weight: bold;
}
@media only screen and (max-width: 650px) {
  .celestial-tooltip {
    max-width: calc(100vw - 40px);
    font-size: 13px;
    padding: 15px;
  }
  .celestial-tooltip h4 {
    font-size: 15px;
  }
}
/* ========================================
   GRAVITY FORECAST TABLE
   ======================================== */
.celestial-forecast-table {
  margin-top: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  width: 100%;
  overflow-x: auto;
}
.celestial-forecast-table .forecast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  gap: 15px;
}
@media only screen and (max-width: 650px) {
  .celestial-forecast-table .forecast-header {
    flex-direction: column;
    gap: 10px;
  }
}
.celestial-forecast-table h3 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  flex: 1;
}
.celestial-forecast-table .forecast-navigation {
  display: flex;
  gap: 8px;
}
.celestial-forecast-table .forecast-nav-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.celestial-forecast-table .forecast-nav-btn:hover {
  background: linear-gradient(135deg, #7c8ef5 0%, #8a5bb5 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}
.celestial-forecast-table .forecast-nav-btn:active {
  transform: translateY(0);
}
@media only screen and (max-width: 650px) {
  .celestial-forecast-table .forecast-nav-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
}
.celestial-forecast-table table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  overflow: hidden;
}
.celestial-forecast-table table thead {
  background: #667eea;
  color: white;
}
.celestial-forecast-table table thead th {
  padding: 10px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
@media only screen and (max-width: 650px) {
  .celestial-forecast-table table thead th {
    padding: 8px 6px;
    font-size: 11px;
  }
}
.celestial-forecast-table table tbody tr {
  border-bottom: 1px solid #e0e0e0;
}
.celestial-forecast-table table tbody tr:last-child {
  border-bottom: none;
}
.celestial-forecast-table table tbody tr:hover {
  background: rgba(102, 126, 234, 0.1);
}
.celestial-forecast-table table tbody tr.forecast-positive-zenith-row {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.25) 50%, rgba(34, 197, 94, 0.15) 100%);
  border-top: 2px solid #22c55e;
  border-bottom: 2px solid #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}
.celestial-forecast-table table tbody tr.forecast-positive-zenith-row:hover {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.25) 0%, rgba(34, 197, 94, 0.35) 50%, rgba(34, 197, 94, 0.25) 100%);
}
.celestial-forecast-table table tbody tr.forecast-positive-zenith-row td {
  font-weight: 600;
}
.celestial-forecast-table table tbody tr.forecast-positive-zenith-row td:first-child {
  color: #16a34a;
}
.celestial-forecast-table table tbody tr.forecast-positive-zenith-row td:nth-child(3) {
  color: #16a34a;
  font-weight: 700;
}
.celestial-forecast-table table tbody tr.forecast-negative-zenith-row {
  background: linear-gradient(90deg, rgba(255, 0, 0, 0.15) 0%, rgba(255, 0, 0, 0.25) 50%, rgba(255, 0, 0, 0.15) 100%);
  border-top: 2px solid #FF0000;
  border-bottom: 2px solid #FF0000;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}
.celestial-forecast-table table tbody tr.forecast-negative-zenith-row:hover {
  background: linear-gradient(90deg, rgba(255, 0, 0, 0.25) 0%, rgba(255, 0, 0, 0.35) 50%, rgba(255, 0, 0, 0.25) 100%);
}
.celestial-forecast-table table tbody tr.forecast-negative-zenith-row td {
  font-weight: 600;
}
.celestial-forecast-table table tbody tr.forecast-negative-zenith-row td:first-child {
  color: #c00000;
}
.celestial-forecast-table table tbody tr.forecast-negative-zenith-row td:nth-child(2) {
  color: #c00000;
  font-weight: 700;
}
.celestial-forecast-table table tbody tr.forecast-current-date-row {
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.2) 0%, rgba(102, 126, 234, 0.35) 50%, rgba(102, 126, 234, 0.2) 100%);
  border-top: 2px solid #667eea;
  border-bottom: 2px solid #667eea;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.4);
}
.celestial-forecast-table table tbody tr.forecast-current-date-row:hover {
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.3) 0%, rgba(102, 126, 234, 0.45) 50%, rgba(102, 126, 234, 0.3) 100%);
}
.celestial-forecast-table table tbody tr.forecast-current-date-row td {
  font-weight: 700;
}
.celestial-forecast-table table tbody tr.forecast-current-date-row td:first-child {
  color: #4854c7;
}
.celestial-forecast-table table tbody tr td {
  padding: 10px;
  font-size: 13px;
  color: #333;
}
@media only screen and (max-width: 650px) {
  .celestial-forecast-table table tbody tr td {
    padding: 8px 6px;
    font-size: 11px;
  }
}
.celestial-forecast-table table tbody tr td:first-child {
  font-weight: 600;
  color: #667eea;
  cursor: pointer;
  transition: all 0.2s ease;
}
.celestial-forecast-table table tbody tr td:first-child:hover {
  background: rgba(102, 126, 234, 0.2);
  color: #4a5fc9;
  text-decoration: underline;
}
.celestial-forecast-table table tbody tr td:first-child:active {
  transform: scale(0.98);
}
.celestial-forecast-table table tbody tr td:nth-child(2),
.celestial-forecast-table table tbody tr td:nth-child(3) {
  font-family: 'Courier New', monospace;
}
.celestial-forecast-table table tbody tr td:nth-child(4) {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #666;
}
@media only screen and (max-width: 650px) {
  .celestial-forecast-table table tbody tr td:nth-child(4) {
    font-size: 10px;
  }
}
@media only screen and (max-width: 650px) {
  .celestial-forecast-table {
    padding: 10px;
    margin-top: 10px;
  }
  .celestial-forecast-table h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }
}
/* ========================================
   3D VISUALIZATION
   ======================================== */
/* Celestial Controls Panel */
.celestial-controls-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  margin-bottom: 15px;
}
.celestial-controls-panel:not(.simulation-active) {
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}
.celestial-controls-panel:not(.simulation-active) .celestial-simulation-controls {
  gap: 0;
}
.celestial-controls-panel:not(.simulation-active) .celestial-sim-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 6px;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.celestial-controls-panel:not(.simulation-active) .celestial-sim-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
}
.celestial-controls-panel:not(.simulation-active) .celestial-sim-btn:active {
  transform: scale(0.95);
}
.celestial-controls-panel .celestial-time-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.celestial-controls-panel .celestial-clock {
  font-family: 'Courier New', monospace;
  font-size: 24px;
  font-weight: bold;
  color: #667eea;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 16px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  letter-spacing: 2px;
  transition: transform 0.1s ease;
}
.celestial-controls-panel .celestial-clock.time-tick {
  transform: scale(1.05);
  color: #4CAF50;
}
.celestial-controls-panel .celestial-datepicker {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: bold;
  color: #667eea;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 10px;
  border: 2px solid #667eea;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}
.celestial-controls-panel .celestial-datepicker:hover {
  background: #667eea;
  color: white;
}
.celestial-controls-panel .celestial-datepicker:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}
.celestial-controls-panel .celestial-simulation-controls {
  display: flex;
  gap: 8px;
}
.celestial-controls-panel .celestial-sim-btn {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #667eea;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.celestial-controls-panel .celestial-sim-btn:hover {
  background: #667eea;
  transform: scale(1.05);
}
.celestial-controls-panel .celestial-sim-btn:active {
  transform: scale(0.95);
}
.celestial-controls-panel .celestial-sim-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.celestial-controls-panel .celestial-sim-btn.active {
  background: #4CAF50;
  border-color: #4CAF50;
  color: white;
}
.celestial-controls-panel .celestial-sim-btn.celestial-reverse-btn {
  transform: rotate(180deg);
}
.celestial-controls-panel .celestial-sim-btn.celestial-reverse-btn:hover {
  transform: rotate(180deg) scale(1.05);
}
.celestial-controls-panel .celestial-sim-btn.celestial-reverse-btn:active {
  transform: rotate(180deg) scale(0.95);
}
.celestial-3d-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}
.celestial-3d-view #celestial-3d-container {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: white;
  position: relative;
  cursor: grab;
  transition: all 0.3s ease;
}
.celestial-3d-view #celestial-3d-container:active {
  cursor: grabbing;
}
.celestial-3d-view #celestial-3d-container canvas {
  border-radius: 8px;
  display: block;
  background: linear-gradient(135deg, #e8ebf9 0%, #dac2ef 100%);
  width: 100% !important;
  height: auto !important;
}
.celestial-3d-view .celestial-legend {
  display: none;
  gap: 15px;
  margin-top: 10px;
  font-size: 11px;
  color: #ffffff;
  flex-wrap: wrap;
  justify-content: center;
}
.celestial-3d-view .celestial-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.celestial-3d-view .celestial-legend .legend-item .legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #333;
}
.celestial-3d-view .celestial-legend .legend-item .legend-dot.observer-dot {
  background: #667eea;
}
.celestial-3d-view .celestial-legend .legend-item .legend-dot.sun-dot {
  background: #FFD700;
}
.celestial-3d-view .celestial-legend .legend-item .legend-dot.moon-dot {
  background: #C0C0C0;
}
.celestial-3d-view .celestial-legend .legend-item .legend-dot.gravity-dot {
  background: radial-gradient(circle, #FF00FF 0%, #9900CC 100%);
}
.celestial-3d-view .celestial-legend .legend-item .legend-dot.view-dot {
  background: #4CAF50;
}
.celestial-3d-view .celestial-legend .legend-item .legend-dot.trajectory-dot {
  background: linear-gradient(90deg, #FFD700 0%, #C0C0C0 100%);
}
.celestial-3d-view .celestial-controls-hint {
  display: none;
  margin-top: 5px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}
.celestial-3d-view.simulation-active #celestial-3d-container {
  width: 100%;
  height: auto;
  max-width: 600px;
}
.celestial-3d-view.simulation-active .celestial-legend {
  display: flex;
}
.celestial-3d-view.simulation-active .celestial-controls-hint {
  display: block;
}
@media only screen and (max-width: 650px) {
  .celestial-3d-view {
    min-height: auto;
  }
  .celestial-3d-view .celestial-legend {
    font-size: 10px;
    gap: 10px;
  }
}
/* Mobile styles for controls panel */
@media only screen and (max-width: 650px) {
  .celestial-controls-panel {
    padding: 10px;
    gap: 8px;
    margin-bottom: 10px;
  }
  .celestial-controls-panel .celestial-clock {
    font-size: 18px;
    padding: 6px 12px;
    letter-spacing: 1px;
  }
  .celestial-controls-panel .celestial-datepicker {
    font-size: 12px;
    padding: 4px 8px;
  }
  .celestial-controls-panel .celestial-simulation-controls {
    gap: 6px;
  }
  .celestial-controls-panel .celestial-sim-btn {
    padding: 4px 8px;
    font-size: 16px;
  }
}
/* ========================================
   MAP CONFIGURATION MODAL
   ======================================== */
.celestial-help-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.celestial-help-modal .celestial-help-container {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.celestial-help-modal .celestial-help-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #e0e0e0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px 12px 0 0;
}
.celestial-help-modal .celestial-help-header h2 {
  margin: 0;
  font-size: 24px;
  color: white;
}
.celestial-help-modal .celestial-help-header .celestial-help-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  font-size: 32px;
  color: white;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}
.celestial-help-modal .celestial-help-header .celestial-help-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}
.celestial-help-modal .celestial-help-header .celestial-help-close:active {
  transform: scale(0.95);
}
.celestial-help-modal .celestial-help-content {
  padding: 25px;
  overflow-y: auto;
  flex: 1;
}
.celestial-help-modal .celestial-help-content h3 {
  margin: 20px 0 10px 0;
  font-size: 18px;
  color: #667eea;
  border-bottom: 2px solid #667eea;
  padding-bottom: 5px;
}
.celestial-help-modal .celestial-help-content h3:first-child {
  margin-top: 0;
}
.celestial-help-modal .celestial-help-content p {
  margin: 10px 0;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}
.celestial-help-modal .celestial-help-content ul {
  margin: 10px 0;
  padding-left: 25px;
}
.celestial-help-modal .celestial-help-content ul li {
  margin: 5px 0;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}
.celestial-help-modal .celestial-help-content strong {
  color: #333;
}
.celestial-help-modal .celestial-help-content #help-location {
  color: #667eea;
  font-weight: 600;
}
@media only screen and (max-width: 650px) {
  .celestial-help-modal .celestial-help-container {
    max-width: 100%;
  }
  .celestial-help-modal .celestial-help-content {
    padding: 20px;
  }
  .celestial-help-modal .celestial-help-content h3 {
    font-size: 16px;
  }
  .celestial-help-modal .celestial-help-content p,
  .celestial-help-modal .celestial-help-content li {
    font-size: 13px;
  }
}
.celestial-map-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.celestial-map-modal .celestial-map-container {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.celestial-map-modal .celestial-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #e0e0e0;
}
.celestial-map-modal .celestial-map-header h2 {
  margin: 0;
  font-size: 24px;
  color: #333;
}
.celestial-map-modal .celestial-map-header .celestial-map-close {
  background: none;
  border: none;
  font-size: 32px;
  color: #999;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}
.celestial-map-modal .celestial-map-header .celestial-map-close:hover {
  background: #f5f5f5;
  color: #333;
}
.celestial-map-modal .celestial-map-instructions {
  padding: 20px 25px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}
.celestial-map-modal .celestial-map-instructions p {
  margin: 5px 0;
  font-size: 14px;
  color: #555;
}
.celestial-map-modal .celestial-map-instructions p strong {
  color: #667eea;
}
.celestial-map-modal .celestial-map {
  height: 500px;
  flex-grow: 1;
  border: none;
}
@media only screen and (max-width: 650px) {
  .celestial-map-modal .celestial-map {
    height: 300px;
  }
}
.celestial-map-modal .celestial-map-footer {
  padding: 20px 25px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.celestial-map-modal .celestial-map-footer #celestial-map-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: #555;
  flex: 1;
}
.celestial-map-modal .celestial-map-footer #celestial-map-info span {
  font-family: 'SF Mono', 'Monaco', monospace;
}
.celestial-map-modal .celestial-map-footer .celestial-map-save {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}
.celestial-map-modal .celestial-map-footer .celestial-map-save:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.celestial-map-modal .celestial-map-footer .celestial-map-save:active:not(:disabled) {
  transform: translateY(0);
}
.celestial-map-modal .celestial-map-footer .celestial-map-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
@media only screen and (max-width: 650px) {
  .celestial-map-modal {
    padding: 10px;
  }
  .celestial-map-modal .celestial-map-container {
    max-height: 95vh;
  }
  .celestial-map-modal .celestial-map-header {
    padding: 15px;
  }
  .celestial-map-modal .celestial-map-header h2 {
    font-size: 20px;
  }
  .celestial-map-modal .celestial-map-instructions {
    padding: 15px;
  }
  .celestial-map-modal .celestial-map-instructions p {
    font-size: 13px;
  }
  .celestial-map-modal .celestial-map-footer {
    padding: 15px;
    flex-direction: column;
    align-items: stretch;
  }
  .celestial-map-modal .celestial-map-footer .celestial-map-save {
    width: 100%;
  }
}
/* Calendar Table Styles */
.crmpm-calendar-grid {
  background: #fff;
  overflow: hidden;
  min-width: 620px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
@media only screen and (min-width: 1194px) {
  .crmpm-calendar-grid {
    min-width: 500px;
  }
}
.crmpm-calendar-table-wrapper {
  overflow-x: auto;
  padding: 20px;
}
.crmpm-calendar-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 600px;
}
.crmpm-calendar-table thead th {
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  padding: 12px 8px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
  font-weight: 600;
  color: #495057;
  vertical-align: top;
}
.crmpm-calendar-table thead th.calendar-today {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}
.crmpm-calendar-table tbody td {
  border: 1px solid #dee2e6;
  padding: 8px;
  vertical-align: top;
  min-width: 180px;
  max-width: 210px;
  background: #fff;
}
.calendar-day-name {
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.calendar-day-number {
  font-size: 14px;
  font-weight: 700;
}
.calendar-day-cell {
  min-height: 80px;
}
.calendar-appointment {
  background: #e7f3ff;
  border-left: 3px solid #2196F3;
  padding: 6px 8px;
  margin-bottom: 6px;
  border-radius: 4px;
  font-size: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}
.calendar-appointment:hover {
  background: #d0e7ff;
  transform: translateX(2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.calendar-appointment:last-child {
  margin-bottom: 0;
}
.calendar-appointment.appointment-now {
  background: #d4edda;
  border-left: 3px solid #28a745;
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.3);
  animation: pulse-appointment 2s ease-in-out infinite;
}
.calendar-appointment.appointment-now:hover {
  background: #c3e6cb;
}
.calendar-appointment.appointment-now .appointment-time {
  color: #155724;
  font-weight: 700;
}
.calendar-appointment.past-appointment .appointment-title {
  display: none;
}
.calendar-appointment.past-appointment:hover .appointment-title {
  display: block;
}
.calendar-appointment.customer-filter-item {
  opacity: 1;
  transition: opacity 0.3s ease;
}
.calendar-appointment.customer-filter-item.filtered-out {
  opacity: 0.2;
  pointer-events: none;
}
@keyframes pulse-appointment {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.3);
  }
  50% {
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.6);
  }
}
.appointment-head {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  gap: 8px;
}
.appointment-time {
  font-weight: 600;
  color: #0d6efd;
  font-size: 11px;
  flex-shrink: 0;
}
.appointment-customer-thumbnail {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  background-color: #fff;
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  border: 1px solid #dee2e6;
}
.appointment-customer-thumbnail:hover {
  transform: scale(1.8);
  z-index: 100;
}
.appointment-title {
  color: #495057;
  line-height: 1.3;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
}
.crmpm-calendar-empty {
  padding: 40px 20px;
  text-align: center;
  color: #6c757d;
  font-style: italic;
}
/* Responsive design for calendar */
@media only screen and (max-width: 768px) {
  .crmpm-calendar-table-wrapper {
    padding: 10px;
  }
  .crmpm-calendar-table tbody td {
    min-width: 100px;
    max-width: 120px;
  }
  .calendar-appointment {
    font-size: 11px;
    padding: 4px 6px;
  }
  .appointment-time {
    font-size: 10px;
  }
}
