/* ClockAnywhere overlays on CoolAdmin. Loaded after theme.css. */

.clk-pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}

.clk-pager__summary {
    margin: 0;
    color: #808080;
    font-size: 13px;
}

.clk-pager .pagination {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.clk-pager .page-item {
    list-style: none;
}

.clk-pager .page-link {
    display: block;
    padding: 6px 12px;
    margin-left: -1px;
    line-height: 1.25;
    color: #4272d7;
    background: #fff;
    border: 1px solid #e5e5e5;
    text-decoration: none;
}

.clk-pager .page-item:first-child .page-link {
    margin-left: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.clk-pager .page-item:last-child .page-link {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.clk-pager .page-link:hover {
    color: #3868c0;
    background: #f8f9fa;
    border-color: #d6d6d6;
    text-decoration: none;
}

.clk-pager .page-item.active .page-link {
    color: #fff;
    background: #4272d7;
    border-color: #4272d7;
}

.clk-pager .page-item.disabled .page-link {
    color: #adb5bd;
    background: #fff;
    border-color: #e5e5e5;
    pointer-events: none;
}

.table thead th a.clk-sort {
    color: #333;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.table thead th a.clk-sort:hover {
    color: #4272d7;
    text-decoration: none;
}

.table thead th a.clk-sort.is-active {
    color: #4272d7;
}

.table thead th a.clk-sort .fa {
    margin-left: 4px;
    font-size: 11px;
    opacity: 0.85;
}

.card-body > .table .btn-lg {
    padding: 4px 10px;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 3px;
}

.card-body > .table {
    margin-bottom: 0;
}

.clk-list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.clk-list-toolbar-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.clk-list-toolbar .clk-list-count {
    color: #808080;
    margin: 0;
}

.clk-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #bdbdbd;
    cursor: pointer;
    vertical-align: middle;
    transition: background 0.15s ease;
}

.clk-toggle.is-on {
    background: #28a745;
}

.clk-toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease;
}

.clk-toggle.is-on .clk-toggle-knob {
    transform: translateX(20px);
}

.clk-toggle:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25);
}

.clk-export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.clk-employee-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    max-height: 240px;
    overflow: auto;
    padding: 8px 0;
}

.clk-employee-option {
    min-width: 220px;
    margin: 0;
    font-weight: 400;
}

.clk-day-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.clk-schedule-filters {
    margin-bottom: 16px;
}

.clk-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.clk-view-toggle .btn {
    border-radius: 4px;
}

.clk-cal-fill {
    flex: 1;
    min-height: 0;
}

.clk-cal-fill > .col-12,
.clk-cal-card,
.clk-cal-card > .card-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.clk-cal {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.clk-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.clk-cal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.clk-cal-nav-end {
    display: flex;
    gap: 8px;
}

.clk-cal-week {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
    border: 1px solid #dadce0;
}

.clk-cal-week-head {
    display: grid;
    grid-template-columns: 56px repeat(7, minmax(0, 1fr));
    border-bottom: 1px solid #dadce0;
    flex-shrink: 0;
}

.clk-cal-gutter {
    border-right: 1px solid transparent;
}

.clk-cal-dayhead {
    text-align: center;
    padding: 8px 4px 10px;
}

.clk-cal-dayname {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #70757a;
}

.clk-cal-daynum {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-top: 2px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #3c4043;
}

.clk-cal-dayhead.is-today .clk-cal-dayname {
    color: #1a73e8;
}

.clk-cal-dayhead.is-today .clk-cal-daynum {
    background: #1a73e8;
    color: #fff;
}

.clk-cal-hint {
    margin: 0 0 8px;
    color: #70757a;
    font-size: 13px;
}

.clk-cal-week-body {
    flex: 1 1 auto;
    min-height: 280px;
    overflow-x: hidden;
    overflow-y: scroll;
    overscroll-behavior: contain;
}

.clk-cal-week-grid {
    display: grid;
    grid-template-columns: 56px repeat(7, minmax(0, 1fr));
    height: calc(var(--clk-cal-hours, 16) * 48px);
    min-height: calc(var(--clk-cal-hours, 16) * 48px);
}

.clk-cal-hours,
.clk-cal-slots {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.clk-cal-hour,
.clk-cal-slot {
    flex: 0 0 48px;
    height: 48px;
}

.clk-cal-hour {
    position: relative;
}

.clk-cal-hour span {
    position: relative;
    top: -7px;
    display: block;
    padding-right: 8px;
    font-size: 10px;
    line-height: 1;
    color: #70757a;
    text-align: right;
}

.clk-cal-col {
    position: relative;
    border-left: 1px solid #dadce0;
    cursor: crosshair;
    height: 100%;
}

.clk-cal-week.is-selecting,
.clk-cal-week.is-selecting .clk-cal-col {
    cursor: ns-resize;
    user-select: none;
}

.clk-cal-col.is-today {
    background: #f8fbff;
}

.clk-cal-slot {
    border-bottom: 1px solid #e8eaed;
    pointer-events: none;
}

.clk-cal-blocks {
    position: absolute;
    inset: 0 3px 0 2px;
    pointer-events: none;
}

.clk-cal-block {
    position: absolute;
    box-sizing: border-box;
    padding: 3px 6px;
    overflow: hidden;
    border-radius: 4px;
    border-left: 3px solid var(--clk-cal-bd, #1a73e8);
    background: var(--clk-cal-bg, #d2e3fc);
    color: var(--clk-cal-fg, #174ea6);
    font-size: 12px;
    line-height: 1.25;
    text-decoration: none;
    z-index: 1;
    pointer-events: auto;
    cursor: pointer;
}

.clk-cal-block:hover,
.clk-cal-block:focus {
    color: var(--clk-cal-fg, #174ea6);
    text-decoration: none;
    filter: brightness(0.96);
    z-index: 2;
}

.clk-cal-block-name,
.clk-cal-block-hours {
    display: block;
}

.clk-cal-block-name {
    font-weight: 600;
}

.clk-cal-draft {
    position: absolute;
    left: 0;
    right: 0;
    box-sizing: border-box;
    padding: 3px 6px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px dashed #1a73e8;
    background: rgba(26, 115, 232, 0.18);
    color: #174ea6;
    font-size: 12px;
    font-weight: 600;
    z-index: 4;
    pointer-events: none;
}

.clk-cal-now {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #ea4335;
    z-index: 3;
    pointer-events: none;
}

.clk-cal-now::before {
    content: "";
    position: absolute;
    left: -5px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ea4335;
}

.clk-cal-pop {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1200;
    width: 360px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    overflow: auto;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    transform: translate(-50%, -50%);
}

.clk-cal-pop h4 {
    margin: 0 0 8px;
}

.clk-cal-pop-when {
    color: #3c4043;
    font-weight: 600;
}

.clk-cal-pop-employees {
    max-height: 160px;
    overflow: auto;
    margin-bottom: 12px;
}

.clk-cal-pop-overnight {
    font-weight: 400;
    margin: 0;
}

.clk-cal-pop-actions {
    display: flex;
    gap: 8px;
}

.login-wrap .login-content.clk-no-box,
.login-content.clk-no-box {
    background: transparent !important;
    background-color: transparent !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
    border: 0 !important;
    outline: 0 !important;
    filter: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.clk-login-logo {
    width: 200px;
    height: auto;
}

.clk-dash-cards > [class*="col-"] {
    display: flex;
}

.clk-dash-cards .overview-item,
.clk-dash-cards .overview-item--c1,
.clk-dash-cards .overview-item--c2,
.clk-dash-cards .overview-item--c3,
.clk-dash-cards .overview-item--c4 {
    width: 100%;
    background: #006699 !important;
    background-color: #006699 !important;
    background-image: none !important;
    padding: 24px !important;
    display: flex;
    flex-direction: column;
}

.clk-dash-cards .overview__inner {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.clk-dash-cards .overview-box {
    min-height: 72px;
}

.clk-dash-cards .overview-box .text h2 {
    min-height: 36px;
}

.clk-dash-cards .clk-dash-valid-thru {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.9;
}

.clk-dash-cards .clk-dash-card-action {
    margin-top: auto;
    padding-top: 20px;
}

.clk-dash-panels .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.clk-dash-panels .clk-dash-panel-body {
    max-height: 520px;
    overflow-y: auto;
}

.clk-dash-person {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.clk-dash-person:last-child {
    border-bottom: 0;
}

.clk-dash-person a {
    color: #333;
}

.clk-dash-pairs {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.clk-dash-pairs td {
    border: 0;
    padding: 5px 8px 5px 0;
    vertical-align: middle;
    font-size: 13px;
}

.clk-dash-pairs-col-time {
    width: auto;
}

.clk-dash-pairs-col-io {
    width: 48px;
}

.clk-dash-pairs-col-actions {
    width: 228px;
}

.clk-dash-sinner-name td {
    font-weight: 600;
    font-size: 14px;
    padding-top: 12px;
    padding-bottom: 4px;
}

.clk-dash-sinner:first-child .clk-dash-sinner-name td {
    padding-top: 0;
}

.clk-dash-punch.is-open td {
    background: #fff3cd;
}

.clk-dash-punch.is-open td:first-child {
    padding-left: 8px;
    border-radius: 3px 0 0 3px;
}

.clk-dash-punch.is-open td:last-child {
    border-radius: 0 3px 3px 0;
}

.clk-dash-pairs .clk-dash-punch td:nth-child(2) {
    font-weight: 600;
}

.clk-dash-pairs .clk-dash-punch td:last-child {
    white-space: nowrap;
    text-align: right;
    padding-right: 0;
}

.clk-dash-add-entry {
    margin-right: 2px;
}

.clk-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.clk-modal.is-open {
    display: flex;
}

.clk-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.clk-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
}

.clk-modal-content {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.clk-modal-header,
.clk-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
}

.clk-modal-header {
    border-bottom: 1px solid #eee;
}

.clk-modal-header .close {
    margin: 0;
    padding: 0 4px;
}

.clk-modal-body {
    padding: 16px;
}

.clk-modal-body label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.clk-modal-body .text-muted {
    margin-bottom: 12px;
}

.clk-modal-footer {
    border-top: 1px solid #eee;
    justify-content: flex-end;
}

.clk-dash-add-out-row td {
    padding-top: 6px;
    padding-bottom: 12px;
}

.clk-dash-add-out {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.clk-dash-add-out label {
    margin: 0;
}

.clk-dash-add-out input[type="datetime-local"] {
    flex: 1;
    min-width: 180px;
    height: 32px;
    padding: 2px 6px;
    border: 1px solid #ced4da;
    border-radius: 3px;
}

@media (max-width: 991px) {
    .clk-cal {
        min-height: 0;
    }

    .clk-cal-week-head,
    .clk-cal-week-grid {
        min-width: 760px;
    }
}

.clk-offset-table th.clk-offset-num,
.clk-offset-table td.clk-offset-num {
    text-align: right;
    white-space: nowrap;
}

.clk-offset-table td.clk-offset-early {
    color: #0d652d;
}

.clk-offset-table td.clk-offset-late {
    color: #b31412;
}

.clk-msg-dropdown {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 90px);
    max-width: min(420px, calc(100vw - 24px));
    overflow: hidden;
}

.clk-msg-dropdown .mess__title,
.clk-msg-dropdown .mess__footer {
    flex-shrink: 0;
}

.clk-msg-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.clk-msg-dropdown .mess__item .content p {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.clk-msg-page-item {
    padding: 4px 0;
}

.clk-msg-page-sep {
    margin: 16px 0;
    border: 0;
    border-top: 1px solid #c8c8c8;
}

.clk-msg-page-meta {
    margin: 0 0 6px;
    color: #808080;
    font-size: 13px;
}

.clk-msg-page-body {
    margin: 0 0 12px;
    color: #333;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.clk-print-scopes {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.clk-print-scope {
    font-weight: 400;
}

.clk-print-title {
    margin: 0 0 4px;
    font-size: 22px;
}

.clk-print-sub {
    color: #555;
    margin-bottom: 20px;
}

.clk-print-emp {
    margin-bottom: 24px;
    page-break-inside: avoid;
}

.clk-print-emp h3 {
    margin: 0 0 2px;
    font-size: 16px;
}

.clk-print-dep {
    margin: 0 0 8px;
    color: #666;
    font-size: 13px;
}

.clk-print-table {
    background: #fff;
}

.clk-map-wrap {
    overflow-x: auto;
    margin-bottom: 24px;
}

.clk-map {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    table-layout: fixed;
    empty-cells: show;
    background: #fff;
}

.clk-map .clk-map-namecol {
    width: 18%;
}

.clk-map th,
.clk-map td {
    border: 1px solid #c8c8c8;
    padding: 6px 4px;
    text-align: center;
    vertical-align: top;
}

.clk-map td.clk-map-daycell.is-off {
    background: #f8f8f8;
}

.clk-map .clk-map-name {
    width: 18%;
    text-align: left;
    background: #f7f7f7;
    font-weight: 600;
}

.clk-map .clk-map-name .clk-print-dep {
    display: block;
    font-weight: 400;
}

.clk-map-day {
    display: block;
    font-size: 11px;
    letter-spacing: 0.05em;
}

.clk-map-date {
    display: block;
    font-size: 12px;
    font-weight: 400;
}

.clk-map-cell {
    min-height: 54px;
}

.clk-map-tag {
    display: block;
    min-height: 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.clk-map-tag.is-open {
    color: #0d652d;
}

.clk-map-tag.is-close {
    color: #b31412;
}

.clk-map-tag.is-both {
    color: #174ea6;
}

.clk-map-tag.is-off {
    color: #555;
}

.clk-map-time {
    display: block;
    min-height: 1.25em;
    font-size: 12px;
    line-height: 1.25;
}

.clk-map-time.is-blank {
    visibility: hidden;
}

.clk-map-shift + .clk-map-shift {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #eee;
}

.clk-map-cell.is-off {
    background: #f8f8f8;
}

@media print {
    .header-desktop,
    .header-mobile,
    .menu-sidebar,
    .clk-print-hide,
    #return-to-top {
        display: none !important;
    }

    .page-container,
    .page-container2 {
        padding-left: 0 !important;
        top: 0 !important;
        background: #fff !important;
    }

    .page-wrapper,
    .main-content,
    .section__content,
    .card,
    .card-body {
        background: #fff !important;
        box-shadow: none !important;
        border: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .title-1 {
        display: none;
    }

    .clk-print-emp,
    .clk-map {
        break-inside: avoid;
    }

    .clk-map {
        min-width: 0;
    }
}
