﻿#soft-clock-history-view img.ui-datepicker-trigger {
    position: relative;
    left: 2px;
    top: 4px;
}

#soft-clock-main .button.mobile {
    font-size: 3em;
}

#soft-clock-main {
    width: 100%;
    height: 100%;
    padding: 28px
}

#soft-clock-view {
    max-width: 1200px;
    margin: 0 auto;
}

#soft-clock-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(12, 23, 37, 0.06);
    padding: 20px;
    min-width: 280px;
    height: fit-content;
}

.clock-card {
    flex: 0 1 45%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
}

.history-card {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

    .history-card > div:not(:last-child) {
        margin-right: 16px; 
    }

.clock-history {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
}

.history-heading {
    margin-bottom: 0;
    color: #3C4048;
}

.history-subheading {
    margin-top: 5px;
    color: #6b7280;
    font-size: 13px;
}

.history-clock {
    font-size: 11px;
    color: #6b7280;
    display: inline-block;
}

.history-clock-time {
    font-size: 14px;
    color: #3C4048;
    font-weight: 600;
    display: inline-block;
    margin-top: 5px;
}

.history-clock-confirmed {
    font-size: 14px;
    color: #3C4048;
    margin-left: auto;
    display: flex;
}

.history-clock-confirmed-text {
    font-size: 14px;
    color: #1976D2;
    display: inline-block;
    margin-left: 5px;
}

.schedule-card {
    flex: 1 1 45%;
    flex-direction: column;
    justify-content: space-between;
}

.schedule-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

#shift-details {
    position: relative;
    height: 80px;
}

    #shift-details h3 {
        margin: 0;
    }

    #shift-details .start-wrapper {
        float: left;
        width: calc(50% - 10px);
        height: 60px;
        background: #00AEEF;
        justify-content: center;
        display: flex;
        align-items: center;
        flex-direction: column;
        color: white;
    }

    #shift-details .mid-wrapper {
        float: left;
        width: 0;
        height: 0;
        border-top: 30px solid transparent;
        border-bottom: 30px solid transparent;
        border-left: 20px solid #00AEEF;
    }

    #shift-details .end-wrapper {
        float: left;
        width: calc(50% - 10px);
        height: 60px;
        justify-content: center;
        display: flex;
        align-items: center;
        flex-direction: column;
    }

    #shift-details .total-time-wrapper {
        width: 25%;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        background: #EAECED;
        border-radius: 25px;
        padding: 2px 0;
    }

/*#show-schedule-view .button {
    margin-top: 20px;
}*/

#select-store-wrapper {
    display: block;
    margin: 10px 0;
}

    #select-store-wrapper select {
        width: 50%;
        padding: 0 10px;
        font-size: 18px;
    }

.calendar-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #5780F9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.01);
}
    .calendar-icon svg {
        width: 20px;
        height: 20px;
        color: #ffffff;
    }

#show-schedule-view .inner-panel, #show-no-schedule-view .inner-panel {
    background: #fbfbfd;
    border-radius: 8px;
    padding: 28px;
    margin: 10px 0;
    border: 1px solid rgba(12,23,37,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

#select-store-wrapper select, #store-code-input {
    width: 220px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 36, 0.06);
    background: #fff;
    font-size: 14px;
}

.clock-in-btn {
    background-color: #5780F9;
    max-width: 115px;
}

.clock-out-btn {
    background-color: #000000;
    max-width: 115px;
}

/* Add this to visually indicate a disabled button */
button.btn[disabled], 
.button.btn[disabled], 
button.btn:disabled, 
.button.btn:disabled {
    /*background-color: #cccccc !important;*/
    /*color: #888888 !important;*/
    border-color: #bbbbbb !important;
    cursor: not-allowed !important;
    opacity: 0.65;
    pointer-events: none;
}

.scheduled-activities {
    padding: 16px 20px;
    background-color: #5F89FF1A;
    border-radius: 8px;
    margin: 10px;
}

.scheduled-activities.disabled {
    opacity: 0.5;
    background: #f3f3f3;
    cursor: not-allowed;
}

.activity-block {
    padding: 0px 20px 4px 0px;
}

.shift-times {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 8px;
}

.time-block {
    display: flex;
    flex-direction: column;
    min-width: 110px;
}

.time-label {
    font-size: 12px;
    color: #6B6B74;
    margin-bottom: 6px;
}

.time-value {
    font-weight: 600;
    font-size: 16px;
    color: #3C4048;
}

.total-hours {
    font-size: 13px;
    color: #374151;
    font-weight: 600;
    padding-top: 8px;
}

.activty-timeline {
    margin: 10px 0 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    position: relative;
}

    .activty-timeline:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 4px;
        top: 24px;
        bottom: -30px;
        width: 2px;
        border-left: 2px dashed #1976d287;
    }

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.activity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1976D2;
    margin-top: 10px;
    flex: 0 0 10px;
    position: relative;
}

.activity-info {
    font-size: 13px;
    color: #374151;
}

.activity-type {
    color: #6b7280;
    font-size: 13px;
    padding-bottom: 4px;
}
.activty-time {
    color: #000000;
    font-size: 14px;
    font-weight: 600;
}


@media (max-width: 969px) {

    #soft-clock-wrapper {
        gap: 25px
    }

    .clock-card {
        flex: 1 1 100%;
    }

    .schedule-card {
        flex: 0 1 100%;
    }

    .clock-history {
        flex: 1 1 100%;
    }

    .shift-times {
        flex-wrap: wrap;
    }

    .time-block:nth-child(3) {
        flex-basis: 100%; 
        margin-top: 15px;
    }

    #logo {
        display: grid;
        width: 38px;
        height: 38px;
        grid-column: 1;
        grid-row: 1/3;
        align-items: center;
        gap: 5px;
    }

        #logo img {
            width: 30px;
            height: 30px;
        }

    .employee-name {
        font-size: 16px;
    }

    .employee-name-section {
        display: flex;
        flex-direction: row;
        grid-column: 2;
        grid-row: 1;
        align-self: flex-start;
    }

    .employee-number {
        font-size: 16px;
    }

    #employeeInfo {
        flex-direction: row;
        align-items: flex-start;
        gap: 5px;
        width: 100%;
        padding-top: 24px;
        margin-left: -5px;
    }

        #employeeInfo img {
            width: 24px;
        }

    .info-item {
        font-size: 10px;
        align-self: center;
        gap: 0;
    }

        .info-item svg {
            width: 14px;
            height: 14px;
        }

    .left-section {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 0px;
        align-items: start;
    }

    .logout-btn {
        align-self: center;
    }

}