/* 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;
    }
}

/* -- Global search (header) ----------------------- */
.gs-root { position: relative; z-index: 1040; }
.gs-field { display: flex; align-items: center; }
.gs-field input { cursor: text !important; width: 240px; padding-right: 52px; }
.gs-field-open input { background: #fff; border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10); }
.gs-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border: 0; border-radius: 50%; background: #EDEFF3; color: #8B95A6; display: grid; place-items: center; padding: 0; font-size: 10px; cursor: pointer; z-index: 2; }
.gs-kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; color: #8B95A6; border: 1px solid #E4E7EC; border-bottom-width: 2px; background: #fff; border-radius: 5px; padding: 1px 5px; pointer-events: none; white-space: nowrap; }
.gs-scrim { position: fixed; inset: 0; background: rgba(14, 23, 38, 0.10); z-index: 1045; }
.gs-dd { position: absolute; top: calc(100% + 8px); right: 0; width: 472px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid #E4E7EC; border-radius: 12px; box-shadow: 0 12px 28px -6px rgba(16, 24, 40, 0.18), 0 4px 10px -4px rgba(16, 24, 40, 0.10); z-index: 1050; overflow: hidden; animation: gs-pop 0.14s ease-out; }
@keyframes gs-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.gs-dd-body { max-height: 396px; overflow-y: auto; padding: 6px; }
.gs-pending { padding: 6px 12px; font-size: 11px; color: #8B95A6; }
.gs-grp { padding: 10px 10px 3px; font-size: 10px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #8B95A6; display: flex; justify-content: space-between; }
.gs-grp span { font-weight: 600; letter-spacing: 0.04em; text-transform: none; opacity: 0.8; }
.gs-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; text-align: left; width: 100%; border: 0; background: transparent; color: inherit; }
.gs-row:hover { background: #F5F7FA; }
.gs-row.sel { background: #EFF4FF; box-shadow: inset 0 0 0 1px #D6E3FF; }
.gs-tico { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; display: grid; place-items: center; background: #F5F7FA; color: #4A5568; font-size: 12px; }
.gs-tico.matter { background: #EFF4FF; color: #2563EB; }
.gs-tico.client { background: #E9F7EE; color: #15803D; }
.gs-tico.proposal { background: #FEF4E6; color: #B45309; }
.gs-rtxt { min-width: 0; flex: 1; }
.gs-rp { font-size: 13px; font-weight: 600; color: #0E1726; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.gs-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.gs-rs { font-size: 11.5px; color: #8B95A6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; display: block; }
.gs-rr { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.gs-star { color: #E9A23B; font-size: 11px; }
.gs-chip { font-size: 10px; font-weight: 650; padding: 2px 7px; border-radius: 20px; white-space: nowrap; }
.gs-chip.prog { background: #EFF4FF; color: #2563EB; }
.gs-chip.await { background: #F2EFFC; color: #6D5BD0; }
.gs-chip.closed { background: #EEF1F5; color: #8B95A6; }
.gs-chip.paid { background: #E9F7EE; color: #15803D; }
.gs-exact { margin: 6px; padding: 11px 12px; border-radius: 8px; background: #111B34; color: #fff; display: flex; align-items: center; gap: 11px; cursor: pointer; width: calc(100% - 12px); text-align: left; border: 0; }
.gs-exact.sel { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35); }
.gs-exact-lbl { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #8FA6D6; }
.gs-exact-ep { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; font-weight: 600; margin-top: 2px; }
.gs-exact-es { font-size: 11.5px; color: #A8B8D8; margin-top: 1px; }
.gs-exact-ent { margin-left: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; color: #8FA6D6; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 5px; padding: 3px 7px; }
.gs-dd-foot { border-top: 1px solid #EDEFF3; padding: 6px; background: #FBFCFD; }
.gs-foot-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; color: #4A5568; text-align: left; border: 0; background: transparent; cursor: pointer; }
.gs-foot-row:hover { background: #fff; }
.gs-foot-row.sel { background: #EFF4FF; box-shadow: inset 0 0 0 1px #D6E3FF; }
.gs-foot-disabled { opacity: 0.45; cursor: not-allowed; }
.gs-empty { padding: 26px 18px; text-align: center; }
.gs-eh { font-size: 13.5px; font-weight: 600; color: #0E1726; }
.gs-es { font-size: 12.5px; color: #8B95A6; margin-top: 4px; }
@media (max-width: 768px) {
    .gs-field input { width: 160px; }
    .gs-kbd { display: none; }
    .gs-dd { width: min(472px, calc(100vw - 16px)); right: -8px; }
}
