.assessment-notes h4 {
    font-weight: bold;
    margin-bottom: 0.5em;
}

.assessment-notes ul {
    list-style-type: circle;
    margin-bottom: 1em;
    padding-left: 0;
}

.assessment-notes li {
    margin-bottom: 0.3em;
    margin-left: 1.2em;
}

.grow {
  flex-grow: 1 !important;
}

.d-inline-block {
    display: inline-block !important;
}

.d-flex {
    display: flex !important;
}

img {
    max-width: 100%;
    max-height: 100%;
}

a {
    color: rgba(0, 0, 0, 0.65);
}

.w-50 {
    width: 50%;
}

.ant-select-disabled.ant-select-single:not(.ant-select-customize-input) .ant-select-selector  {
    color:#214f69;
}

.ant-input[disabled], .ant-input-disabled {
    color:#214f69;
    background-color: #f9f9f9;
    background: #f9f9f9;
}

.ant-input-affix-wrapper-disabled {
    background-color: #f9f9f9;
}

.ant-descriptions-top tr {
    vertical-align: top;
}

.form-item-compact.ant-form-item {
    margin-bottom: 0;
}

.form-item-compact .ant-form-item-control-input {
    padding-bottom: 0;
    margin-bottom: 0;
    min-height: 0;
}


/* User Calendar */

.firenote-calendar-view table.ant-picker-content {
    height: 100%;
}

.firenote-calendar-view td.ant-picker-cell.ant-picker-cell-in-view {
    vertical-align: top;
    height: 100%;
}

.firenote-calendar-view td.ant-picker-cell.ant-picker-cell-disabled {
    pointer-events: inherit;
    cursor: inherit;
}

.firenote-calendar-view button {
    border: 0px solid #eee;
    background-color: transparent;
}

.firenote-calendar-view button:hover {
    color: #fff;
    background-color: #46b6f7;
    opacity: 1 !important;
}

.firenote-calendar-view div.ant-picker-calendar-mode-switch {
    display: none;
}

@media (max-width: 1201px) {
  .firenote-calendar-view * {
      font-size: 9pt;
  }

  .firenote-calendar-view .calendar-cell {
      margin: 0 !important;
  }
}


/* COMMENT HIGHLIGHTING BEGIN */

.highlighted-comment>.ant-comment-inner {
    width:100%;
    height:auto;
    animation:bg 2s ease-in;
    -webkit-animation:bg 2s ease-in;
    -moz-animation:bg 2s ease-in;
    -ms-animation:bg 2s ease-in;
    -o-animation:bg 2s ease-in;
}
@-webkit-keyframes bg{
    0% { background: #e6f7ffff }
    100% { #e6f7ff00 }
}
@-moz-keyframes bg{
    0% { background: #e6f7ffff }
    100% { #e6f7ff00 }
}
@-ms-keyframes bg{
    0% { background: #e6f7ffff }
    100% { #e6f7ff00 }
}
@-o-keyframes bg{
    0% { background: #e6f7ffff }
    100% { #e6f7ff00 }
}

/* COMMENT HIGHLIGHTING END */

/* CAREPERIODS TABLE (Patient Info / Care Periods) */

.careperiod-table-inactive {
    color: #00000073;
}



.inputnumber-no-arrows .ant-input-number-handler-wrap {
    display: none;
}

/* ===== Org hierarchy tree editor =====
   Custom flat, indented list (not antd Tree). Reparenting only — siblings
   are slug-sorted on save, so order isn't editable; a drop chooses the new
   parent and the whole target row highlights. */

.org-tree {
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    overflow: auto;
    max-height: 62vh;
    user-select: none;
}

.org-tree-row {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding-right: 8px;
    cursor: pointer;
    border-left: 2px solid transparent;
    box-shadow: inset 0 0 0 0 transparent;
    transition: background-color 0.08s ease, box-shadow 0.08s ease;
}

.org-tree-row + .org-tree-row {
    border-top: 1px solid #fafafa;
}

.org-tree-row:hover {
    background: #fafafa;
}

.org-tree-row.selected {
    background: #e6f7ff;
    border-left-color: #1890ff;
}

.org-tree-row.root {
    background: #faf8ff;
    font-weight: 500;
}

/* Dragged source row — dimmed but readable (not the browser's heavy ghost). */
.org-tree-row.dragging {
    opacity: 0.4;
}

/* Valid drop target — the whole row reads as "this becomes the parent". */
.org-tree-row.drop-ok {
    background: #bae7ff;
    box-shadow: inset 0 0 0 2px #1890ff;
}

/* Invalid target — wrong level, or the node's own subtree. */
.org-tree-row.drop-bad {
    background: #fff1f0;
    box-shadow: inset 0 0 0 2px #ffa39e;
    cursor: no-drop;
}

.org-tree-caret {
    flex-shrink: 0;
    width: 16px;
    text-align: center;
    font-size: 10px;
    color: #aaa;
}

.org-tree-caret:hover {
    color: #1890ff;
}

.org-tree-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.org-tree .ant-tag {
    flex-shrink: 0;
    margin: 0;
    padding: 0 5px;
    font-size: 11px;
    line-height: 18px;
}

/* The drag cursor chip (built in make-drag-chip, snapshotted by the browser
   on dragstart) — kept offscreen until the browser captures it. */
.org-tree-drag-chip {
    position: fixed;
    top: -1000px;
    left: -1000px;
    padding: 3px 9px;
    background: #1890ff;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 9999;
}
