body{
  -webkit-print-color-adjust:exact !important;
  print-color-adjust:exact !important;
}

.hour {
    background: transparent;
    max-width: 26px !important;
    text-align: center;
    font-weight: bold;
    color: #000000;
    font-size: 11pt;
    vertical-align: middle !important;
    white-space: nowrap;
    direction: ltr;
    padding: 0 !important;
    min-width: 34px !important;
    max-width: 34px !important;
}

.hour-txt {
    text-align: center;
    max-width: 28.5px !important;
    min-width: 28.5px !important;
    font-weight: bold;
    color: #000000;
    font-size: 10pt;
    vertical-align: middle !important;
    white-space: nowrap;
    direction: ltr;
    padding: 0 !important;
    min-width: 34px !important;
    max-width: 34px !important;
}

th span {
    -ms-writing-mode: tb-rl;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
}

.n-field {
    text-align: center;
    font-weight: bold;
    color: #000000;
    font-size: 13pt;
    vertical-align: middle;
    white-space: normal;
    word-wrap: break-word;
    direction: ltr;
    min-width: 320px !important;
    max-width: 320px !important;
}

.cf thead tr, .cf tbody tr {
    border: 1px SOLID #000000 !important;
}

.col {
    line-height: 0 !important;
}


.cf thead tr th, .cf tbody tr td {
    border: 1px SOLID #000000 !important;
}

.field-date {
    text-align: center;
    color: #000000;
    font-size: 10pt;
    vertical-align: middle;
    white-space: nowrap;
    direction: ltr;
    padding: 0 !important;
}

.field-date input {
    text-align: center;
    color: #000000;
    font-size: 13pt;
    vertical-align: middle;
    white-space: nowrap;
    direction: ltr;
    padding: 0 !important;
}

.input_container {
  padding: 0 !important;
}

.input_container input {
    min-height: 25px;
    width: 100%;
    text-wrap: inherit;
    line-height: 0 !important;
}

.inf {
    margin-left: 100px;
}

.hide-dh {
    display: none;
}

.line {
    height: 1px;
    background-color: #000;
}
.dashed_line {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 80%;
    margin-left: 140px;
}
/* ---- screen-only helpers (not used by the printed forms) ---- */
@media screen {
    td.hour {
        cursor: pointer;
    }
    td.hour:hover {
        background: #eef4ff;
    }
}

/* medicine autocomplete list */
.input_container .col {
    position: relative;            /* the suggestion list opens under its own field */
}
.ac-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: max-content;
    min-width: 100%;
    max-width: 520px;
    max-height: 320px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 4px 0;
    margin: 2px 0 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid #cfd6e4;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(30, 50, 90, .18);
    line-height: normal;
}
.ac-menu .its {
    display: block;
    white-space: normal;
    text-align: left;
    padding: 7px 12px;
    line-height: 1.25;
    cursor: pointer;
    font-weight: normal;
    border-bottom: 1px solid #f0f2f6;
}
.ac-menu .its:last-child {
    border-bottom: 0;
}
.ac-menu .its.active,
.ac-menu .its:hover {
    background: #e7f1ff;
    color: #000;
}
.ac-menu .ac-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1f2a3d;
}
.ac-menu .ac-note {
    display: block;
    font-size: 12.5px;
    color: #6c757d;
    margin-top: 2px;
}
.ac-menu mark {
    padding: 0;
    background: #fff1a8;
    color: inherit;
}
.ac-menu .ac-empty {
    padding: 6px 12px;
    color: #8a93a3;
    font-size: 13px;
}

/* ---- avatars ---- */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.avatar-initial {
    color: #fff;
    font-weight: 600;
    background: #6c8fc7;
    line-height: 1;
}
.avatar-c1 { background: #d9668a; }
.avatar-c2 { background: #4f9d8f; }
.avatar-c3 { background: #5b7fc7; }
.avatar-c4 { background: #c98a3d; }
.avatar-c5 { background: #8a68c2; }
.avatar-c6 { background: #4b9bc4; }

/* ---- login page ---- */
body.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #fdf1f4 0%, #eef3fb 55%, #e7f3f1 100%);
}
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}
.login-card {
    width: 100%;
    max-width: 860px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(40, 60, 110, .12);
    padding: 36px 40px 40px;
}
.login-head {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #eef0f4;
    padding-bottom: 20px;
    margin-bottom: 24px;
}
.login-logo {
    height: 64px;
    width: auto;
}
.login-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    color: #23304a;
}
.login-sub {
    color: #7a8497;
    font-size: .95rem;
}
.login-hint {
    text-align: center;
    color: #5d6779;
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.people {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.person {
    border: 2px solid transparent;
    background: #f7f9fc;
    border-radius: 20px;
    padding: 22px 10px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.person:hover,
.person:focus-visible {
    transform: translateY(-3px);
    border-color: #9fb8e6;
    box-shadow: 0 10px 24px rgba(60, 90, 160, .15);
    outline: none;
    background: #fff;
}
.person-photo .avatar {
    box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
    border: 4px solid #fff;
}
.person-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #23304a;
}
#password-step {
    max-width: 360px;
    margin: 0 auto;
}
.chosen {
    text-align: center;
    margin-bottom: 18px;
}
.chosen-person .avatar {
    box-shadow: 0 8px 22px rgba(0, 0, 0, .15);
    border: 5px solid #fff;
}
.chosen-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 10px;
    color: #23304a;
}
@media (max-width: 640px) {
    .login-card { padding: 24px 18px; }
    .people { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .login-head { flex-direction: column; text-align: center; }
}

