.agenda__wrapper {
    display: block;
    width: 100%;
    margin-top: 1rem;
}

.agenda__title {
    width: 100%;
    /* height: 80px; */
    background: #000000;
    color: #FFFFFF;
    display: flex;
    text-align: center;
    position: relative;
    border-radius: 50px;
    padding: 0 1.5rem;
    justify-content: space-between;
}

.agenda__title-action--calendar {
    position: absolute;
    right: 12px;
    top: 9px;
    width: 40px;
    height: 40px;
    display: block;
    background: url(../img/calendar.svg);
    background-repeat: no-repeat;
    background-size: cover;
    border: transparent;
    cursor: pointer;
    color: transparent;
}

.agenda__title-action--calendar[type="date"]::-webkit-inner-spin-button,
.agenda__title-action--calendar[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
}

.agenda__heading {
    font-size: 20px;
    font-weight: 600;
    padding-right: 40px;
    padding-left: 10px;
    border-left: 3px solid #b50e0f;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.calendeR_icon_Sec {
    display: flex;
    align-items: center;
}

.agenda__date {
    font-size: 18px;
    margin-right: 10px;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.agenda__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.agenda__list-item {
    display: inline-block;
    font-size: 15px;
    vertical-align: middle;
    margin: 0 8px;
    height: 48px;
    line-height: 48px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agenda__list-item--event-time {
    width: 15%;
    font-size: 22px;
    line-height: 44px;
}

.agenda__list-item--order {
    width: 12%;
}

.agenda__list-item--name {
    width: 11%;
}

.agenda__list-item--phone {
    width: 12.5%;
}

.agenda__list-item--address {
    width: 19%;
    position: relative;
}

.agenda__wrapper .agenda__list-wrap {
    padding-right: 60px;
    padding-left: 50px;
    height: 69px;
    border: none;
}

.accordion--service .agenda__list-wrap {
    /*
    color: #8d8a6f;
    border-right: 6px solid #8d8a6f;
    */
}

.accordion--service .agenda__list-wrap:after {
    background: url("../img/installation.svg") no-repeat center;
    width: 45px;
    height: 45px;
    background-size: 45px;
}

.accordion--measuring .agenda__list-wrap:after {
    background: url("../img/measurement_red.svg") no-repeat center;
    width: 45px;
    height: 45px;
    background-size: 45px;
}

.accordion--sales .agenda__list-wrap:after {
    background: url("../img/icon_call_time.svg") no-repeat center;
    width: 45px;
    height: 45px;
    background-size: 45px;
}

.accordion--sales.open .agenda__list-wrap::after {
    background: url("../img/icon_call_time_white.svg") no-repeat center;
}

.mes_summary .agenda__list-wrap:after {
    background: url("../img/measurement_red.svg") no-repeat center;
    width: 45px;
    height: 45px;
    background-size: 45px;
}

.mes_summary.open .agenda__list-wrap::after {
    background: url("../img/meas_red.svg") no-repeat center;
}

.agenda__wrapper [data-accordion].open>[data-control]:after {
    transform: initial;
}

.agenda__wrapper .agenda__details {
    background: #ffffff;
    color: #000000;
    padding: 0;
    border-bottom: none;
}

.accordion--service .agenda__details {
    /*
    border-right: 6px solid #8d8a6f;
    background: url("../img/service-down-arrow-icon.png") #f0f1ed no-repeat top right 11%;
    background-size: 24px;
    */
}

.agenda__details-main-text {
    margin-bottom: 15px;
}

.accordion--service .agenda__details-main-text {
    color: #8d8a6f;
}

.accordion--measuring .agenda__details-main-text {
    color: #0071bc;
}

.agenda__details-row {
    width: 100%;
    display: block;
    padding-bottom: 10px;
}

.agenda__details-row--action {
    padding-bottom: 0;
    text-align: left;
}

.agenda__details-row-label {
    display: inline-block;
    width: 110px;
    vertical-align: top;
}

.agenda__details-row-content {
    display: inline-block;
    width: 80%;
}

.agenda__details-link {
    color: #b50e0f;
    padding-left: 18px;
    background: url("../img/red-arrow.png") no-repeat center left;
    background-size: 11px;
    cursor: pointer;
}

.agenda__empty-wrapper {
    padding: 200px 20px;
    font-size: 16px;
    /*background: rgba(34,34,34,0.03);*/
    color: rgba(34, 34, 34, 0.35);
    text-align: center;
}

.agenda__details-box {
    width: 10%;
    display: inline-flex;
    margin: 0px 20px;
}

.agenda__details-box .agenda__details-row-label {
    width: auto;
    padding-left: 20px;
}

.agenda__details-box .agenda__details-row-content {
    width: auto;
}

div.accordain_main {
    position: relative;
    margin: 2em;
}

.accordain_main input {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    visibility: 0;
}

.accordain_main h1 {
    background: steelblue;
    color: white;
    padding: 1em;
    position: relative;
}

.accordain_main label::after {
    content: "";
    display: inline-block;
    border: 15px solid transparent;
    border-left: 20px solid white;
    position: absolute;
    left: 0;
}

.accordain_main label {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
}

.accordain_main div.p {
    max-height: 0px;
    overflow: hidden;
    transition: max-height 0.5s;
    background-color: white;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
}

.accordain_main div.p p {
    padding: 2em;
}

.accordain_main input:checked~h1 label::after {
    border-left: 15px solid transparent;
    border-top: 20px solid white;
    margin-top: 12px;
    margin-right: 10px;
    position: absolute;
    left: 0
}

.accordain_main input:checked~h1~div.p {
    max-height: 100px;
}

.accordain_main a {
    color: steelblue;
}


/*.js__trigger-calendar .flatpickr-input.flatpickr-mobile {*/


/*visibility: hidden;*/


/*}*/


/* FFF */

.accordian_main {
    position: relative;
    margin: 2em;
    box-shadow: 0px 3px 6px #00000029;
    border: 1px solid #dfdfdf;
    border-radius: 32px;
}

.accordian_main.accordian_main_2 .lable_title {
    background: #FFFFFF 0% 0% no-repeat padding-box;
    border-radius: 32px 32px;
    padding: 0.5rem;
}

.accordian_main input {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    visibility: 0;
}

.accordian_main .lable_title {
    background: #E5262A;
    padding: 1rem;
    border-radius: 32px 32px 0 0;
    position: relative;
}

.accordian_main label::before {
    content: url('../img/down_Arrow.png');
    position: absolute;
    left: 0;
}

.accordian_main label {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
}

.accordian_main label p {
    font-size: 14px;
    color: #fff;
    margin: 0 0.5rem;
    font-weight: 600;
}

.accordian_main.accordian_main_2 label p {
    color: #000;
}

.accordian_main .notification_sec a {
    margin: 0 0.5rem;
}

.accordian_main .num_sec {
    margin: 0 1rem;
}

.accordian_main .box_btm {
    height: 0px;
    overflow: hidden;
    transition: height 0.5s;
    background-color: white;
}

.accordian_main input:checked~.lable_title label::before {
    content: url('../img/up_Arrow.png');
    position: absolute;
    left: 0;
}


/* .accordian_main input:checked ~ .lable_title ~ div.box_btm {
   height: 100%;   
   overflow: visible;   
} */

.accordian_main.open .box_btm {
    height: 100%;
    overflow: visible;
}


/* .accordian_main .box_btm {
 height: 0px;
 overflow: hidden;
 transition: height 0.5s;
 background-color: white;  
} */

.detail_about_user {
    padding: 1rem 2rem;
    display: flex;
}

.sub_menu {
    display: flex;
    flex-direction: column;
    width: 50%;
}

.sub_menu div:first-child {
    display: flex;
    align-items: center;
}

.sub_menu img {
    margin-left: 10px;
}

.sub_menu h4 {
    margin: 0px;
    font-size: 14px;
    color: #000000;
}

.sub_menu p {
    font-size: 14px;
    color: #707070;
}

.client_info .sub_menu h4 {
    width: 140px;
}

.client_info .sub_menu p {
    margin: unset;
}

.btm_box_sec {
    background: #DEDEDE 0% 0% no-repeat padding-box;
    box-shadow: 0px 3px 6px #00000029;
    opacity: 1;
    padding: 2rem 1rem;
    border-radius: 0 0 32px 32px;
    display: flex;
    align-items: center;
}

.btm_box_sec .green_Btn a {
    font-size: 16px;
    color: #fff;
    background: #5AB844;
    padding: 0.8rem 2rem;
    border-radius: 28px;
    text-decoration: unset;
    margin: 0 0.5rem;
}

.btm_box_sec .grey_btn a {
    font-size: 16px;
    color: #fff;
    background: #9F9F9F;
    padding: 0.8rem 2rem;
    border-radius: 28px;
    text-decoration: unset;
    margin: 0 0.5rem;
}

.btm_box_sec .sms_btn {
    margin-right: auto;
}

.btm_box_sec .sms_btn a {
    font-size: 16px;
    color: #fff;
    background: #000000;
    padding: 0.8rem 3rem;
    border-radius: 28px;
    text-decoration: unset;
    margin-right: auto;
}

#b .content {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opning_main_form {
    padding: 1rem 2rem;
}

.opning_main_form p {
    font-size: 20px;
    color: #000000;
    margin: 0;
}

.dropdown {
    display: block;
    position: relative;
    margin: 1rem 0rem !important;
}

.dd-button {
    display: block;
    border: 1px solid #9F9F9F;
    border-radius: 25px;
    padding: 10px 20px 10px 50px;
    background-color: #ffffff;
    cursor: pointer;
    white-space: nowrap;
}

.dd-button:after {
    content: url('../img/down_modal.png');
    position: absolute;
    top: 56%;
    left: 10px;
    transform: translateY(-50%);
}

.dd-button:hover {
    background-color: #eeeeee;
}

.dd-input {
    display: none;
}

.dd-menu {
    position: absolute;
    top: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0;
    margin: 2px 0 0 0;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    list-style-type: none;
}

.dd-input+.dd-menu {
    display: none;
}

.dd-input:checked+.dd-menu {
    display: block;
    width: 100%;
    border-radius: 15px;
}

.dd-menu li {
    padding: 10px 20px;
    cursor: pointer;
    white-space: nowrap;
}

.dd-menu li:hover {
    background-color: #f6f6f6;
}

.dd-menu li a {
    display: block;
    margin: -10px -20px;
    padding: 10px 20px;
}

.dd-menu li.divider {
    padding: 0;
    border-bottom: 1px solid #cccccc;
}

.select2-container {
    width: calc(100% - 22px) !important;
    font-size: 1em;
    line-height: 1.3;
}

.select2-selection {
    padding: 0.2rem 0.2rem;
}

@media (max-width: 1024.98px) {
    .select2-container {
        width: calc(100% - 5px) !important;
    }

    .agenda__list {
        display: flex;
    }

    .agenda__list input.form__input {
        max-width: 100%;
    }

    .autocomplete-wrapper {
        max-width: 100%;
    }

    .agenda__list-item {
        line-height: normal;
        white-space: unset;
        overflow: unset;
        padding: 0 5px;
        margin: 0;
    }

    .agenda__list-item--event-time,
    .agenda__list-item--name,
    .agenda__list-item--address {
        width: auto;
    }

    .agenda__list-item--event-time,
    .agenda__list-item {
        line-height: normal;
    }

    .btn_red {
        min-width: 120px;
        margin: 0px;
    }

    .agenda__title .link_Sec_nav div a {
        padding: 0rem 0.5rem;
        font-size: 14px;
        display: inline-block;
    }

    .agenda__title .customerSearh,
    .agenda__title .orderSearh {
        width: 120px !important;
        margin: 0 5px;
        padding: 0;
    }

    .agenda__title .agenda__date {
        font-size: 14px;
    }

    .agenda__title .agenda__heading {
        font-size: 18px;
    }

    .agenda__title .link_Sec_nav div.top_nav_link {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .app__body {
        padding: 130px 20px 20px 20px;
    }

    .agenda__list-item .notification_sec {
        display: flex;
    }

    .agenda__list-item .notification_sec a {
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .agenda__list-item .notification_sec a span:before {
        position: relative;
        margin: 0;
        display: inline-block;
        top: 0;
    }

    .agenda__list-item .notification_sec a span {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .table_heading ul {
        padding-right: 15px;
        padding-left: 50px;
    }

    .table_heading li {
        padding: 0 5px;
    }

    .table_heading li:first-child {
        width: 8%;
    }

    .table_heading li:nth-child(2) {
        width: 18%;
    }

    .agenda__list-item:first-child {
        width: 18%;
        font-size: 16px;
        display: flex;
        align-items: center;
    }

    .agenda__list-item:nth-child(2) {
        width: 20%;
        font-size: 16px;
        display: flex;
        align-items: center;
    }

    .table_heading li:nth-child(3) {
        width: 20%;
    }

    .agenda__list-item:nth-child(3) {
        width: 20%;
        font-size: 16px;
        display: flex;
        align-items: center;
    }

    .table_heading li:nth-child(4) {
        width: 20%;
    }

    .agenda__list-item:nth-child(4) {
        width: 20%;
        font-size: 16px;
        display: flex;
        align-items: center;
    }

    .table_heading li:nth-child(5) {
        width: 20%;
    }

    .agenda__list-item:nth-child(5) {
        width: 20%;
        font-size: 16px;
        display: flex;
        align-items: center;
    }

    .table_heading li:nth-child(6) {
        width: 20%;
    }

    .agenda__list-item:nth-child(6) {
        width: 10%;
        font-size: 16px;
        display: flex;
        align-items: center;
    }

    .table_heading li:last-child {
        width: 13%;
    }

    .agenda__list-item:last-child {
        width: 13%;
        font-size: 16px;
        display: flex;
        align-items: center;
    }

    .agenda__list-item .notification_sec .btn_red {
        font-size: 16px;
        padding: 8px 10px;
        line-height: 14px;
        min-width: unset;
    }

    .agenda__title-action--calendar {
        top: 50%;
        transform: translateY(-50%);
    }

    .task__form-row {
        padding-left: 12px;
        padding-right: 12px;
    }


}

.service_task_element.sub_menu div:first-child {
    display: unset;
}

.autocomplete-suggestion {
    display: inherit !important;
}

/* Partial measurement badge - shown in the agenda row when a
   measurement was started and saved but not finished. */
.agenda__list-item--draft {
    color: #b06a00;
    background: #fff4e0;
    border: 1px solid #f0c98a;
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 12px;
    white-space: nowrap;
}


/* Send state - shown only while a measurement has not reached the
   server. Two levels on purpose: "pending" is the normal transient
   state and stays calm, while "stuck" means automatic retry gave up
   and a person has to act. */
.agenda__list-item--outbox {
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 12px;
    white-space: nowrap;
}

.agenda__list-item--outbox-pending {
    color: #1b5e8a;
    background: #e6f2fa;
    border: 1px solid #9ec9e3;
}

.agenda__list-item--outbox-stuck {
    color: #8a1b1b;
    background: #fae6e6;
    border: 1px solid #e39e9e;
}


/* Outbox banner at the top of the agenda. Hidden unless something
   is actually waiting, so the normal day looks unchanged. */
.outbox_banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0;
    padding: 10px 14px;
    border-radius: 8px;
    color: #1b5e8a;
    background: #e6f2fa;
    border: 1px solid #9ec9e3;
}

.outbox_banner__text {
    font-size: 14px;
    font-weight: bold;
}

.outbox_banner button {
    flex-shrink: 0;
}

.outbox_banner button[disabled] {
    opacity: 0.6;
}


/* Project tree - Project / Building / Floor / Apartment.
   Only rendered when the day actually contains project tasks;
   a regular day stays a flat list. */
.agenda__tree-title {
    font-weight: bold;
    text-align: right;
    direction: rtl;
}

.agenda__tree-title--project {
    font-size: 16px;
    color: #1c4e80;
    background: #eaf2fb;
    border-right: 4px solid #1c4e80;
    padding: 7px 10px;
    margin: 14px 0 6px 0;
}

.agenda__tree-title--building {
    font-size: 14px;
    color: #2c6b3f;
    background: #eef6f0;
    border-right: 3px solid #2c6b3f;
    padding: 5px 10px;
    margin: 8px 0 4px 8px;
}

.agenda__tree-title--floor {
    font-size: 13px;
    color: #555;
    padding: 4px 10px;
    margin: 6px 0 2px 18px;
    border-bottom: 1px dashed #ccc;
}

.agenda__tree-title--loose {
    font-size: 14px;
    color: #666;
    background: #f2f2f2;
    padding: 6px 10px;
    margin: 16px 0 6px 0;
}

.agenda__tree-count {
    display: inline-block;
    min-width: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.12);
    font-size: 12px;
}

.agenda__tree-apartment {
    margin-right: 26px;
}

.agenda__tree-label {
    font-size: 12px;
    color: #777;
    text-align: right;
    direction: rtl;
    padding: 2px 2px 0 0;
}

/* Draft measurements (section 13) - measurement taken before an
   order exists, waiting to be linked.

   Comments here are English only: this file is ASCII, and Hebrew
   would break it. */

.draft_list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.draft_card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
}

.draft_card__main {
    flex: 1 1 260px;
    min-width: 0;
}

.draft_card__location {
    font-size: 15px;
    font-weight: bold;
    color: #222;
    margin-bottom: 4px;
}

.draft_card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.draft_card__sep {
    color: #bbb;
}

.draft_card__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* A draft that never reached the server exists on this device only.
   Losing the device loses the measurement, so it is called out. */
.draft_badge {
    font-size: 12px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.draft_badge--synced {
    color: #1b6b3a;
    background: #e6f4ea;
    border: 1px solid #a8d5b8;
}

.draft_badge--local {
    color: #8a5a00;
    background: #fdf3e0;
    border: 1px solid #e5c78a;
}

.draft_empty {
    padding: 28px 18px;
    text-align: center;
    color: #666;
    background: #fafafa;
    border: 1px dashed #d9d9d9;
    border-radius: 8px;
}

.draft_empty__title {
    font-size: 16px;
    font-weight: bold;
    color: #444;
    margin-bottom: 6px;
}

.draft_empty__text {
    font-size: 14px;
    line-height: 1.6;
    max-width: 46ch;
    margin: 0 auto;
}

.draft_dialog__label {
    font-size: 13px;
    font-weight: bold;
    color: #666;
    margin-top: 10px;
}

.draft_dialog__value {
    font-size: 15px;
    color: #222;
    margin-top: 2px;
}

.draft_dialog__select {
    width: 100%;
    margin-top: 4px;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.draft_dialog__note {
    margin-top: 12px;
    font-size: 13px;
    color: #8a5a00;
    background: #fdf3e0;
    border-radius: 6px;
    padding: 8px 10px;
}

/* Draft measurements - "new measurement" bar and form.
   Comments in English on purpose: this file is ASCII. */
.draft_new_bar {
    margin: 10px 0 14px;
    text-align: left;
}

.draft_new_bar .btn {
    padding: 10px 18px;
    font-size: 15px;
}

.draft_new_form {
    text-align: right;
}

.draft_new_form__hint {
    margin: 0 0 12px;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.draft_new_form label {
    display: block;
    margin: 10px 0 4px;
    font-size: 13px;
    color: #333;
}

.draft_new_form label .req {
    color: #c0392b;
}

.draft_new_form .form__input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
}

/* Building / floor / apartment sit on one line - they are short
   and belong together. */
.draft_new_form__row {
    display: flex;
    gap: 8px;
}

.draft_new_form__row > div {
    flex: 1;
    min-width: 0;
}

.draft_new_form__error {
    margin-top: 10px;
    color: #c0392b;
    font-size: 13px;
    min-height: 18px;
}

/* Three buttons per card need to wrap on a phone. */
.draft_card__actions {
    flex-wrap: wrap;
    gap: 6px;
}
