This commit is contained in:
gsinghpal
2026-03-16 08:14:56 -04:00
parent fdca9518ab
commit e56974d46f
196 changed files with 19739 additions and 3471 deletions

View File

@@ -43,8 +43,24 @@
.tech-clock-card {
background: var(--o-main-card-bg, #fff);
border: 1px solid var(--o-main-border-color, #e9ecef);
border-radius: 14px;
padding: 0.875rem 1rem;
border-radius: 16px;
padding: 1.125rem 1.25rem;
transition: border-color 0.3s, box-shadow 0.3s;
}
.tech-clock-layout {
display: flex;
align-items: center;
justify-content: space-between;
}
.tech-clock-info {
flex: 1;
min-width: 0;
}
.tech-clock-status-line {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 2px;
}
.tech-clock-dot {
width: 10px;
@@ -52,6 +68,7 @@
border-radius: 50%;
background: #adb5bd;
flex-shrink: 0;
transition: all 0.3s;
}
.tech-clock-dot--active {
background: #10b981;
@@ -60,61 +77,199 @@
}
@keyframes tech-clock-pulse {
0%, 100% { box-shadow: 0 0 6px rgba(16, 185, 129, 0.5); }
50% { box-shadow: 0 0 12px rgba(16, 185, 129, 0.8); }
50% { box-shadow: 0 0 14px rgba(16, 185, 129, 0.8); }
}
.tech-clock-status {
font-size: 0.85rem;
font-size: 0.8rem;
font-weight: 600;
color: var(--o-main-text-color, #212529);
line-height: 1.2;
}
.tech-clock-timer {
font-size: 0.75rem;
font-weight: 600;
font-size: 1.6rem;
font-weight: 700;
font-variant-numeric: tabular-nums;
font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
color: var(--o-main-text-color, #212529);
letter-spacing: 1px;
line-height: 1.3;
}
.tech-clock-hours {
font-size: 0.72rem;
color: #6c757d;
font-weight: 500;
}
.tech-clock-btn {
display: inline-flex;
/* Circular orb button */
.tech-clock-action {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.4rem;
padding: 0.5rem 1rem;
border-radius: 10px;
gap: 5px;
flex-shrink: 0;
margin-left: 12px;
}
.tech-clock-orb-wrap {
position: relative;
width: 68px;
height: 68px;
display: flex;
align-items: center;
justify-content: center;
}
.tech-clock-orb {
width: 56px;
height: 56px;
border-radius: 50%;
border: none;
font-weight: 600;
font-size: 0.85rem;
background: linear-gradient(135deg, #10b981, #059669);
color: #fff;
cursor: pointer;
transition: all 0.15s;
white-space: nowrap;
display: flex;
align-items: center;
justify-content: center;
position: relative;
z-index: 2;
box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
outline: none;
-webkit-tap-highlight-color: transparent;
}
.tech-clock-btn:active { transform: scale(0.96); }
.tech-clock-btn--in {
background: #10b981;
color: #fff;
.tech-clock-orb:hover {
transform: scale(1.08);
box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
}
.tech-clock-btn--in:hover { background: #059669; }
.tech-clock-btn--out {
background: #ef4444;
color: #fff;
.tech-clock-orb:active {
transform: scale(0.92);
}
.tech-clock-btn--out:hover { background: #dc2626; }
.tech-clock-btn:disabled {
opacity: 0.6;
.tech-clock-orb--out {
background: linear-gradient(135deg, #ef4444, #dc2626);
box-shadow: 0 4px 18px rgba(239, 68, 68, 0.35);
}
.tech-clock-orb--out:hover {
box-shadow: 0 6px 24px rgba(239, 68, 68, 0.45);
}
.tech-clock-orb:disabled {
opacity: 0.55;
cursor: not-allowed;
transform: none !important;
}
.tech-clock-orb-icon {
display: flex;
align-items: center;
justify-content: center;
}
svg#clockIconPlay {
transform: translateX(1px);
}
/* Wave animation rings - active when clocked in */
.tech-clock-wave {
position: absolute;
top: 50%;
left: 50%;
width: 56px;
height: 56px;
border-radius: 50%;
border: 2px solid transparent;
transform: translate(-50%, -50%) scale(1);
pointer-events: none;
z-index: 1;
opacity: 0;
}
.tech-clock-orb-wrap--active .tech-clock-wave--1 {
animation: tech-clock-wave 2.4s ease-out infinite;
border-color: rgba(16, 185, 129, 0.5);
}
.tech-clock-orb-wrap--active .tech-clock-wave--2 {
animation: tech-clock-wave 2.4s ease-out 0.8s infinite;
border-color: rgba(16, 185, 129, 0.4);
}
.tech-clock-orb-wrap--active .tech-clock-wave--3 {
animation: tech-clock-wave 2.4s ease-out 1.6s infinite;
border-color: rgba(16, 185, 129, 0.3);
}
@keyframes tech-clock-wave {
0% {
transform: translate(-50%, -50%) scale(1);
opacity: 0.6;
}
100% {
transform: translate(-50%, -50%) scale(2.2);
opacity: 0;
}
}
.tech-clock-label {
font-size: 0.65rem;
color: #6c757d;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.tech-clock-error {
display: flex;
align-items: center;
gap: 0.4rem;
margin-top: 0.5rem;
padding: 0.4rem 0.75rem;
border-radius: 8px;
margin-top: 0.75rem;
padding: 0.5rem 0.75rem;
border-radius: 10px;
background: #fef2f2;
color: #dc2626;
font-size: 0.8rem;
font-size: 0.78rem;
font-weight: 500;
}
/* Missed clock-out reason modal */
.tech-reason-overlay {
position: fixed;
inset: 0;
z-index: 1060;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
}
.tech-reason-backdrop {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(4px);
}
.tech-reason-dialog {
position: relative;
background: var(--o-main-card-bg, #fff);
border: 1px solid var(--o-main-border-color, #e5e7eb);
border-radius: 16px;
width: 100%;
max-width: 400px;
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
animation: techReasonIn 0.25s ease;
}
@keyframes techReasonIn {
from { opacity: 0; transform: scale(0.95) translateY(8px); }
to { opacity: 1; transform: scale(1) translateY(0); }
}
.tech-reason-header {
text-align: center;
padding: 1.25rem 1.25rem 0.75rem;
border-bottom: 1px solid var(--o-main-border-color, #e9ecef);
}
.tech-reason-header h5 {
margin: 0.5rem 0 0.25rem;
font-weight: 700;
}
.tech-reason-body {
padding: 1rem 1.25rem;
}
.tech-reason-footer {
display: flex;
justify-content: flex-end;
gap: 0.5rem;
padding: 0.75rem 1.25rem 1rem;
border-top: 1px solid var(--o-main-border-color, #e9ecef);
}
/* ---- Quick Links (All Tasks / Tomorrow / Repair Form) ---- */
.tech-quick-links {
display: flex;
@@ -430,6 +585,40 @@
padding: 0.75rem;
}
/* ---- Order Details Card ---- */
.tech-order-card {
border-left: 3px solid #17a2b8;
}
.tech-order-card .bg-purple-subtle {
background: #f3e8ff;
}
.tech-order-card .text-purple {
color: #7c3aed;
}
.tech-order-lines {
border-top: 1px solid var(--o-main-border-color, #eee);
padding-top: 0.75rem;
margin-top: 0.5rem;
}
.tech-order-line-item {
padding: 0.625rem 0;
}
.tech-order-line-border {
border-bottom: 1px solid var(--o-main-border-color, #f0f0f0);
}
.tech-qty-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 32px;
height: 32px;
border-radius: 8px;
background: #e9ecef;
font-weight: 700;
font-size: 0.9rem;
color: #495057;
}
/* ---- Action Buttons (Large Touch Targets) ---- */
.tech-action-btn {
display: inline-flex;