/* General timer UI — aligned with timer-system mockup */

/* Top bar right cluster (search + timer + icons) */

.navbar-nav.gt-tb-right {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
}

.navbar-nav.gt-tb-right > .nav-item {
    margin: 0;
    display: flex;
    align-items: center;
}

.navbar-nav.gt-tb-right > .nav-item > .nav-link {
    padding: 0;
    margin: 0;
    height: 30px !important;
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
}

    .navbar-nav.gt-tb-right > .gt-tb-icon-item > .nav-link:hover {
        background: #d5eaff38;
    }

.gt-tb-search-wrap {
    margin-right: 3px;
}

.gt-tb-search {
    position: relative;
}

.gt-tb-search input {
    width: 220px;
    height: 30px;
    border: 0.5px solid rgba(10, 14, 20, 0.18);
    border-radius: 9px;
    padding: 0 12px 0 34px;
    font-size: 12.5px;
    font-family: inherit;
    background: #f6f9fc;
    color: #1c2430;
    cursor: pointer;
}

.gt-tb-search input::placeholder {
    color: #9aa4b4;
}

.gt-tb-search input:focus {
    outline: none;
    border-color: #1470c0;
    box-shadow: 0 0 0 3px rgba(20, 112, 192, 0.1);
    background: #fff;
    cursor: text;
}

.gt-tb-search .gt-tb-search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #9aa4b4;
    pointer-events: none;
}

.gt-tb-icon-item {
    position: relative;
}

.gt-tb-icon-item .navbar-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    font-size: 9px;
    line-height: 15px;
    border-radius: 8px;
}

.gt-tb-avatar-item > .nav-link {
    width: auto;
    min-width: 0;
    padding-left: 3px;
}

.gt-tb-avatar-item .slRenavprofileicon img,
.gt-tb-avatar-item .SpinRojrightprofile {
    width: 34px !important;
    height: 34px !important;
}

.gt-topbar-item {
    display: flex;
    align-items: center;
    padding: 0;
}

.gt-timer {
    display: flex;
    align-items: center;
    height: 30px;
    border: 0.5px solid rgba(10, 14, 20, 0.18);
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
}

.gt-timer.running {
    border-color: #c0392b;
    background: #fbeae8;
}

.gt-timer.paused {
    border-color: #c47f1a;
    background: #fdf4e3;
}

.gt-tm-main {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    height: 100%;
    cursor: pointer;
    border: none;
    background: transparent;
}

.gt-tm-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9aa4b4;
    flex-shrink: 0;
}

.gt-timer.running .gt-tm-dot {
    background: #c0392b;
    animation: gt-pulse 1.3s infinite;
}

.gt-timer.paused .gt-tm-dot {
    background: #c47f1a;
    animation: none;
}

@keyframes gt-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.gt-tm-time {
    font-family: "IBM Plex Mono", "Consolas", monospace;
    font-size: 12.5px;
    color: #1c2430;
    min-width: 52px;
}

.gt-timer.idle .gt-tm-time {
    color: #9aa4b4;
}

.gt-tm-badge {
    margin-left: 2px;
    background: #c47f1a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    padding: 1px 6px;
    line-height: 1.4;
}

.gt-tm-queue-hint {
    width: 7px;
    height: 7px;
    margin-left: 4px;
    border-radius: 50%;
    background: #c47f1a;
    flex-shrink: 0;
}

.gt-tm-ctrls {
    display: flex;
    height: 100%;
    border-left: 0.5px solid rgba(10, 14, 20, 0.1);
}

.gt-tm-btn {
    width: 30px;
    height: 100%;
    border: none;
    background: transparent;
    color: #586274;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.gt-tm-btn:hover {
    background: rgba(10, 14, 20, 0.05);
}

.gt-tm-btn.stop:hover {
    color: #c0392b;
}

/* Queue card (Unassigned Timer Report) */

.gt-queue-card {
    background: #fff;
    border: 0.5px solid rgba(10, 14, 20, 0.1);
    border-radius: 14px;
    box-shadow: 0 8px 26px rgba(10, 14, 20, 0.05);
    overflow: hidden;
    max-width: 960px;
}

.gt-qc-head {
    padding: 18px 22px;
    border-bottom: 0.5px solid rgba(10, 14, 20, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gt-qc-head .gt-qi {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fdf4e3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c47f1a;
    font-size: 20px;
    flex-shrink: 0;
}

.gt-qc-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1c2430;
}

.gt-qc-head p {
    margin: 2px 0 0;
    font-size: 11.5px;
    color: #586274;
}

.gt-qc-head .gt-qbtns {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.gt-qbtn {
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0.5px solid rgba(10, 14, 20, 0.18);
    background: #fff;
    color: #586274;
}

.gt-qbtn:hover {
    border-color: #1470c0;
}

.gt-qbtn.primary {
    background: #0a0e14;
    color: #fff;
    border-color: #0a0e14;
}

.gt-qtabs {
    display: flex;
    gap: 2px;
    padding: 10px 22px 0;
    border-bottom: 0.5px solid rgba(10, 14, 20, 0.1);
}

.gt-qtab {
    padding: 9px 15px;
    font-size: 12.5px;
    font-weight: 600;
    color: #9aa4b4;
    cursor: pointer;
    border: none;
    background: transparent;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.gt-qtab.on {
    color: #1470c0;
    border-bottom-color: #1470c0;
}

.gt-qtab .cnt {
    margin-left: 5px;
    font-size: 10.5px;
    background: #f6f9fc;
    border-radius: 8px;
    padding: 1px 6px;
    color: #586274;
}

.gt-qtab.on .cnt {
    background: #eef4fb;
    color: #1470c0;
}

.gt-qbanner {
    margin: 14px 22px 0;
    background: #eef4fb;
    border: 0.5px solid rgba(20, 112, 192, 0.2);
    border-radius: 9px;
    padding: 10px 14px;
    font-size: 11.5px;
    color: #1470c0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.gt-qbody {
    padding: 8px 12px 14px;
}

.gt-qrow {
    display: grid;
    gap: 14px;
    padding: 13px 12px;
    border-radius: 10px;
    align-items: center;
}

.gt-qrow.head {
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9aa4b4;
}

.gt-qrow:not(.head):hover {
    background: #f6f9fc;
}

.gt-qrow + .gt-qrow:not(.head) {
    border-top: 0.5px solid rgba(10, 14, 20, 0.1);
}

.gt-qrow.active-layout {
    grid-template-columns: 96px 1fr 1fr 40px;
}

.gt-qrow.unassigned-layout {
    grid-template-columns: 96px 1fr 1.3fr 88px;
}

.gt-q-elapsed {
    font-family: "IBM Plex Mono", "Consolas", monospace;
    font-size: 14px;
    font-weight: 600;
    color: #0a0e14;
}

.gt-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f6f9fc;
    border: 0.5px solid rgba(10, 14, 20, 0.1);
    border-radius: 7px;
    padding: 5px 10px;
    font-size: 11.5px;
    color: #1c2430;
}

.gt-q-desc {
    font-size: 12px;
    color: #586274;
    margin-top: 5px;
}

.gt-q-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.gt-qa {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 0.5px solid rgba(10, 14, 20, 0.1);
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #586274;
    padding: 0;
}

.gt-qa.assign {
    color: #9aa4b4;
    pointer-events: none;
}

.gt-qa.assign.ready {
    background: #1a7f4b;
    border-color: #1a7f4b;
    color: #fff;
    pointer-events: auto;
}

.gt-qa.assign.ready:hover {
    background: #15613a;
}

.gt-qa.del:hover {
    border-color: #c0392b;
    color: #c0392b;
}

.gt-q-empty {
    text-align: center;
    padding: 40px 20px;
    color: #9aa4b4;
}

.gt-q-empty i {
    font-size: 34px;
    color: rgba(10, 14, 20, 0.1);
    display: block;
    margin-bottom: 10px;
}

.gt-q-empty p {
    font-size: 12.5px;
    margin: 0;
}

.gt-matter-ddl.e-input-group {
    border: 0.5px solid rgba(10, 14, 20, 0.18);
    border-radius: 8px;
    min-height: 38px;
}

.gt-cat-combo.e-input-group {
    border: none;
    background: transparent;
    box-shadow: none;
    min-height: 0;
}

.gt-cat-combo .e-input-group-icon,
.gt-cat-combo .e-ddl-icon {
    display: none;
}

/* Popup dialog — force center on the visible viewport */
.general-timer-dialog.e-dialog {
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 15px;
    overflow: auto;
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
}

.general-timer-dialog .e-dlg-header-content {
    padding: 16px 20px;
    border-bottom: 0.5px solid rgba(10, 14, 20, 0.1);
}

.general-timer-dialog .e-dlg-content {
    padding: 18px 20px;
}

.general-timer-dialog .e-footer-content {
    padding: 13px 20px;
    border-top: 0.5px solid rgba(10, 14, 20, 0.1);
}

.gt-pu-head-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #eef4fb;
    color: #1470c0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.gt-pu-title {
    font-size: 17px;
    font-weight: 600;
}

.gt-pu-subtitle {
    font-size: 9px;
    color: #9aa4b4;
    margin-top: 3px;
}

.gt-pu-new {
    background: #f6f9fc;
    border: 0.5px solid rgba(10, 14, 20, 0.1);
    border-radius: 11px;
    padding: 15px;
}

.gt-pu-lbl {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #9aa4b4;
    margin-bottom: 8px;
}

.gt-pu-hint {
    font-size: 12.5px;
    color: #9aa4b4;
    margin: 0 0 14px;
}

.gt-pu-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    margin-bottom: 16px;
}

.gt-pu-field-lbl {
    display: block;
    font-size: 12.5px;
    color: #9aa4b4;
    font-weight: 500;
    margin: 0 !important;
    padding: 0;
    line-height: 1.35;
}

.gt-pu-field-ctrl {
    width: 100%;
    margin: 0;
    padding: 0;
}

.gt-pu-field-ctrl .e-control-wrapper,
.gt-pu-field-ctrl .e-input-group,
.gt-pu-field-ctrl .e-float-input {
    margin-top: 0 !important;
    width: 100%;
}

.gt-pu-start {
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 8px;
    background: #1a7f4b;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.gt-pu-start:hover {
    background: #15613a;
}

.gt-pu-sec {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #9aa4b4;
    margin: 18px 0 10px;
}

.gt-pu-active {
    border: 0.5px solid rgba(10, 14, 20, 0.1);
    border-radius: 11px;
    overflow: hidden;
}

.gt-pu-arow {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}

.gt-pu-arow + .gt-pu-arow {
    border-top: 0.5px solid rgba(10, 14, 20, 0.1);
}

.gt-pu-adot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c0392b;
    animation: gt-pulse 1.3s infinite;
    flex-shrink: 0;
}

.gt-pu-adot.paused {
    background: #c47f1a;
    animation: none;
}

.gt-pu-atime {
    font-family: "IBM Plex Mono", "Consolas", monospace;
    font-size: 14px;
    font-weight: 600;
    min-width: 56px;
}

.gt-pu-ainfo {
    flex: 1;
    min-width: 0;
}

.gt-pu-acat {
    font-size: 12.5px;
    font-weight: 500;
}

.gt-pu-adesc {
    font-size: 11px;
    color: #9aa4b4;
}

.gt-pu-actl {
    display: flex;
    gap: 5px;
}

.gt-pu-actl button {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    border: 0.5px solid rgba(10, 14, 20, 0.1);
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #586274;
    padding: 0;
}

.gt-pu-actl button:hover {
    background: #f6f9fc;
}

.gt-pu-actl button.stop:hover {
    border-color: #c0392b;
    color: #c0392b;
}

.gt-pu-empty {
    text-align: center;
    padding: 26px;
    color: #9aa4b4;
    font-size: 13px;
}

.gt-pu-empty i {
    font-size: 28px;
    color: rgba(10, 14, 20, 0.1);
    display: block;
    margin-bottom: 8px;
}

.gt-pu-foot-link {
    font-size: 13px;
    color: #1470c0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    border: none;
    background: transparent;
    padding: 0;
}

.gt-pu-foot-close {
    margin-left: auto;
    height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    border: 0.5px solid rgba(10, 14, 20, 0.18);
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #586274;
    cursor: pointer;
}

@media (max-width: 767px) {
    .gt-qrow.active-layout,
    .gt-qrow.unassigned-layout {
        grid-template-columns: 1fr;
    }

    .gt-qrow.head {
        display: none;
    }
}
