.tr-intro { color: var(--text-muted); max-width: 760px; }

.tr-section { margin-bottom: 2rem; }
.tr-section-title { font-size: 1.05rem; font-weight: 600; margin: 0 0 .75rem; display: flex; align-items: center; gap: .5rem; }
.tr-foryou-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.tr-foryou-pct { font-size: .85rem; color: var(--text-muted); white-space: nowrap; }
.tr-pbar { height: 6px; border-radius: 3px; background: #e2e8f0; overflow: hidden; min-width: 160px; flex: 0 1 260px; }
.tr-pbar > span { display: block; height: 100%; background: var(--success-color); transition: width .3s; }

.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .75rem; }
.tr-card { display: flex; align-items: flex-start; gap: .75rem; text-align: left; width: 100%; background: #fff; border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg); padding: .9rem 1rem; transition: var(--transition-fast); position: relative; }
.tr-card:hover, .tr-card:focus-visible { border-color: var(--primary-color); box-shadow: 0 4px 14px rgba(59, 130, 246, .12); outline: none; }
.tr-card-ic { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; font-size: 1.3rem; }
.tr-card-ic.mobile { background: #e3f2fd; color: #2196F3; }
.tr-card-ic.web { background: #eef2ff; color: #4f46e5; }
.tr-card-main { display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1 1 auto; }
.tr-card-title { font-weight: 600; color: var(--text-main); padding-right: 4.5rem; }
.tr-card-sum { font-size: .85rem; color: var(--text-muted); }
.tr-card-meta { font-size: .75rem; color: #94a3b8; }
.tr-card-badge { position: absolute; top: .8rem; right: .8rem; }

.tr-player-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.tr-player-title { font-weight: 600; font-size: 1.05rem; }
.tr-player-sub { font-size: .8rem; color: var(--text-muted); }
.tr-player-bar { height: 4px; border-radius: 2px; background: #e2e8f0; overflow: hidden; margin-bottom: 1rem; }
.tr-player-bar > span { display: block; height: 100%; background: var(--primary-color); transition: width .3s; }

.tr-layout { display: flex; gap: 1.25rem; align-items: flex-start; }
.tr-stage-wrap { position: relative; flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; }
.tr-sizer { position: relative; margin: 0 auto; }
.tr-stage { position: absolute; top: 0; left: 0; transform-origin: top left; }
.tr-panel { flex: 0 0 260px; background: #fff; border: 1px solid var(--surface-border); border-radius: var(--radius-lg); padding: 1rem; position: sticky; top: 1rem; }
.tr-panel-text { font-size: .95rem; margin-bottom: .75rem; }
.tr-hint { font-size: .85rem; color: #b45309; background: #fffbeb; border-radius: 8px; padding: .5rem .65rem; margin-bottom: .75rem; }
.tr-controls { display: flex; flex-wrap: wrap; gap: .4rem; }
.tr-controls .btn-primary, .tr-controls .btn-success { flex: 1 1 100%; }
.tr-done-title { font-weight: 600; font-size: 1.05rem; margin-bottom: .35rem; display: flex; align-items: center; gap: .4rem; color: var(--success-color); }
.tr-done-text { font-size: .9rem; color: var(--text-muted); margin-bottom: .75rem; }
.tr-done .btn { width: 100%; margin-bottom: .4rem; }

@media (max-width: 991px) {
    .tr-layout { flex-direction: column; }
    .tr-panel { flex: 1 1 auto; width: 100%; position: sticky; top: auto; bottom: 0; z-index: 20; padding: .6rem .75rem;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: 0 -6px 18px rgba(15, 23, 42, .12); }
    .tr-stage-wrap { width: 100%; }
}

.tr-ring { position: absolute; border: 3px solid var(--primary-color); border-radius: 12px; pointer-events: none; z-index: 5;
    animation: trPulse 1.6s ease-out infinite; transition: left .2s, top .2s, width .2s, height .2s; }
.tr-ring-flash { animation: trFlash .7s ease 2; }
@keyframes trPulse { 0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, .45); } 70% { box-shadow: 0 0 0 12px rgba(59, 130, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); } }
@keyframes trFlash { 0%, 100% { border-color: var(--primary-color); } 50% { border-color: #f59e0b; box-shadow: 0 0 0 6px rgba(245, 158, 11, .35); } }
.tr-balloon { position: absolute; z-index: 6; background: #0f172a; color: #fff; font-size: .9rem; line-height: 1.4; border-radius: 10px;
    padding: .65rem .8rem; box-shadow: 0 8px 24px rgba(15, 23, 42, .25); pointer-events: none; }
.tr-balloon::before { content: ''; position: absolute; top: -6px; left: calc(50% - 6px); border: 6px solid transparent; border-top: 0; border-bottom-color: #0f172a; }
.tr-balloon.above::before { top: auto; bottom: -6px; border-bottom: 0; border-top: 6px solid #0f172a; }

.tr-stage [data-t] { cursor: pointer; }
.tr-stage [data-t]:focus { outline: none; }

.ph { width: 360px; height: 720px; background: #F5F7FA; border: 10px solid #1f2937; border-radius: 38px; display: flex; flex-direction: column;
    overflow: hidden; position: relative; color: #263238; font-size: 14px; text-align: left; box-shadow: 0 12px 30px rgba(15, 23, 42, .18); }
.ph ion-icon { font-size: 20px; }
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: 6px 18px 2px; font-size: 12px; font-weight: 600; }
.ph-status ion-icon { font-size: 13px; margin-left: 3px; }
.ph-appbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; min-height: 56px; background: #fff; flex: 0 0 auto; }
.ph-appbar-left { justify-content: flex-start; }
.ph-title { font-size: 19px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-title-sm { font-size: 16px; text-align: center; }
.ph-sub { font-size: 12px; color: #607d8b; }
.ph-body { flex: 1 1 auto; overflow: hidden; padding: 12px 16px; }
.ph-hello { font-size: 18px; font-weight: 600; margin: 4px 0 12px; }
.ph-card { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.ph-row { display: flex; align-items: center; gap: 12px; }
.ph-ic { font-size: 26px !important; color: #607d8b; }
.ph-ic-blue { color: #2196F3; }
.ph-strong { font-weight: 600; color: #263238; }
.ph-muted { font-size: 12px; color: #607d8b; display: flex; align-items: center; gap: 4px; }
.ph-muted ion-icon { font-size: 14px; }
.ph-grow { flex: 1 1 auto; min-width: 0; }
.ph-nav { display: flex; background: #fff; border-top: 1px solid #e5e7eb; padding: 6px 0 10px; }
.ph-nav-item { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: #9e9e9e; padding: 4px 0; border-radius: 10px; }
.ph-nav-item ion-icon { font-size: 24px; }
.ph-nav-item.active { color: #2196F3; }
.ph-chips { display: flex; gap: 8px; padding: 8px 16px; border-bottom: 1px solid #e5e7eb; overflow: hidden; }
.ph-chip { border: 1px solid #cfd8dc; border-radius: 8px; padding: 5px 10px; font-size: 13px; white-space: nowrap; background: #fff; }
.ph-chip.on { background: #e3f2fd; border-color: #90caf9; color: #1565c0; }
.ph-job { display: flex; align-items: center; gap: 12px; border-radius: 12px; padding: 12px; margin-bottom: 12px; border: 1px solid rgba(0, 0, 0, .05); }
.ph-job-active { background: #FFF9C4; }
.ph-job-pending { background: #EEEEEE; }
.ph-ava { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .55); display: flex; align-items: center; justify-content: center; color: rgba(0, 0, 0, .54); flex: 0 0 auto; }
.ph-vehicle { display: flex; align-items: center; gap: 8px; margin: 0 16px 4px; padding: 8px 12px; background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; }
.ph-scan { display: flex; align-items: center; gap: 12px; margin: 10px 20px; padding: 14px 16px; border-radius: 20px; border: 2px solid #90caf9; background: #fff;
    box-shadow: 0 0 15px rgba(33, 150, 243, .25); transition: box-shadow .2s, border-color .2s; }
.ph-tabs { display: flex; background: #fff; border-bottom: 1px solid #e5e7eb; }
.ph-tab { flex: 1 1 0; text-align: center; font-size: 13px; padding: 12px 4px; color: #9e9e9e; border-bottom: 2px solid transparent; }
.ph-tab.on { color: #2196F3; border-bottom-color: #2196F3; }
.ph-empty { text-align: center; color: #9e9e9e; padding: 40px 0; }
.ph-item { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; border: 1px solid rgba(158, 158, 158, .2); }
.ph-st { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; background: #eceff1; color: #78909c; }
.ph-st.ok { background: rgba(76, 175, 80, .12); color: #4CAF50; }
.ph-st.warn { background: rgba(255, 152, 0, .12); color: #FF9800; }
.ph-warn { color: #FF9800; font-size: 12px; }
.ph-dialog-wrap { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 3; }
.ph-dialog { background: #fff; border-radius: 24px; padding: 20px; width: 100%; }
.ph-dialog-title { font-size: 18px; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.ph-kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid #f1f5f9; }
.ph-kv span { color: #607d8b; }
.ph-dialog-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 16px; }
.ph-btn-text { color: #2196F3; font-weight: 500; }
.ph-btn { background: #2196F3; color: #fff; border-radius: 20px; padding: 9px 16px; font-weight: 500; }

.tw { width: 960px; min-height: 600px; background: var(--background-start, #f8fafc); border: 1px solid var(--surface-border); border-radius: 12px; display: flex;
    overflow: hidden; position: relative; text-align: left; box-shadow: 0 12px 30px rgba(15, 23, 42, .12); }
.tw-side { width: 240px; background: #fff; border-right: 1px solid var(--surface-border); padding: 1.25rem 1rem; flex: 0 0 auto; }
.tw-side .sidebar-logo { font-size: 1.2rem; margin-bottom: 1.25rem; }
.tw-side .nav-link { cursor: default; }
.tw-main { flex: 1 1 auto; padding: 1.25rem; min-width: 0; }
.tw-topbar { background: #fff; border: 1px solid var(--surface-border); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.tw-placeholder { height: 380px; border-radius: 12px; background: repeating-linear-gradient(180deg, #fff 0, #fff 46px, #f1f5f9 46px, #f1f5f9 48px); border: 1px solid var(--surface-border); }
.tw-dim { background: rgba(15, 23, 42, .45); align-items: flex-start; justify-content: center; padding: 28px 0; min-height: 780px; }
.tw-modal { width: 760px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); --bs-modal-bg: #fff; --bs-modal-border-color: var(--bs-border-color-translucent); --bs-modal-border-width: 1px;
    --bs-modal-border-radius: .5rem; --bs-modal-inner-border-radius: calc(.5rem - 1px); --bs-modal-header-padding: 1rem 1rem; --bs-modal-header-border-color: var(--bs-border-color);
    --bs-modal-header-border-width: 1px; --bs-modal-footer-gap: .5rem; --bs-modal-footer-border-color: var(--bs-border-color); --bs-modal-footer-border-width: 1px; --bs-modal-padding: 1rem; }
.tw-modal .btn { cursor: default; }
.tw-select { cursor: pointer; min-height: 38px; }
.tw-dl { height: 150px; }
.tw-full { padding: 1.5rem; }
.tw-new-row td { background: #eff6ff; }
.tw-toast { position: absolute; top: 16px; right: 16px; background: #fff; border-left: 4px solid var(--success-color); border-radius: 8px; padding: .65rem 1rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .15); display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.tw-toast ion-icon { color: var(--success-color); font-size: 1.3rem; }

.tw .wizard-steps { gap: 0; }
.tw .wz-step { display: flex; align-items: center; gap: 8px; color: #9ca3af; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.tw .wz-step .wz-num { width: 26px; height: 26px; border-radius: 50%; background: #e5e7eb; color: #6b7280; display: flex; align-items: center; justify-content: center; font-size: .85rem; flex: 0 0 auto; }
.tw .wz-step.done { color: #198754; }
.tw .wz-step.done .wz-num { background: #198754; color: #fff; }
.tw .wz-step.active { color: #0d6efd; }
.tw .wz-step.active .wz-num { background: #0d6efd; color: #fff; }
.tw .wz-sep { flex: 1 1 auto; height: 2px; background: #e5e7eb; margin: 0 12px; min-width: 20px; }

.tr-chapters { display: flex; flex-direction: column; gap: 2px; margin-bottom: .75rem; padding-bottom: .75rem; border-bottom: 1px solid var(--surface-border); }
.tr-ch { text-align: left; background: none; border: 0; border-radius: 6px; padding: .3rem .5rem; font-size: .82rem; color: var(--text-muted); }
.tr-ch:hover { background: #f1f5f9; }
.tr-ch.done { color: var(--success-color); }
.tr-ch.on { background: #eff6ff; color: var(--primary-color); font-weight: 600; }
.tr-scan-ok { box-shadow: 0 0 0 4px #4CAF50, 0 0 18px rgba(76, 175, 80, .7) !important; border-color: #4CAF50 !important; }
.tr-scan-warn { box-shadow: 0 0 0 4px #FF9800, 0 0 18px rgba(255, 152, 0, .7) !important; border-color: #FF9800 !important; }
.tr-scan-error { box-shadow: 0 0 0 4px #F44336, 0 0 18px rgba(244, 67, 54, .7) !important; border-color: #F44336 !important; }
.tr-scan-tap { box-shadow: 0 0 0 4px #90caf9, 0 0 14px rgba(33, 150, 243, .45) !important; }
.tr-swipe-out { transform: translateX(110%); opacity: 0; transition: transform .35s ease-in, opacity .35s ease-in; }

.ph-iconbtn { display: inline-flex; align-items: center; gap: 14px; padding: 4px; color: #455A64; }
.ph-menu { position: absolute; left: 24px; right: 24px; top: 168px; background: #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); z-index: 4; padding: 6px 0; }
.ph-menu-i { padding: 12px 16px; }
.ph-cam { margin: 10px auto; width: 260px; height: 230px; border-radius: 20px; border: 2px solid #90caf9; background: radial-gradient(circle at 50% 40%, #4b5563, #111827); position: relative; overflow: hidden; }
.ph-cam-trig { position: absolute; top: 8px; left: 8px; width: 40px; height: 40px; border-radius: 50%; background: #e3f2fd; color: #1565c0; display: flex; align-items: center; justify-content: center; z-index: 2; }
.ph-cam-line { position: absolute; left: 30px; right: 30px; height: 2px; background: #2196F3; box-shadow: 0 0 8px #2196F3; top: 50%; animation: phScan 2s ease-in-out infinite alternate; }
@keyframes phScan { from { top: 25%; } to { top: 75%; } }
.ph-rfid { display: flex; align-items: center; gap: 8px; margin: 10px 16px; padding: 6px 8px 6px 12px; background: #eceff1; border-radius: 12px; }
.ph-rfid-n { display: flex; flex-direction: column; line-height: 1.1; }
.ph-rfid-n small { font-size: 10px; color: #607d8b; }
.ph-slider { flex: 1 1 auto; height: 4px; background: #bbdefb; border-radius: 2px; position: relative; }
.ph-slider span { position: absolute; left: 50%; top: -6px; width: 16px; height: 16px; border-radius: 50%; background: #2196F3; }
.ph-play { width: 40px; height: 34px; border-radius: 17px; background: #2196F3; color: #fff; display: flex; align-items: center; justify-content: center; }
.ph-play.on { background: #F44336; }
.ph-st.sync { background: rgba(33, 150, 243, .12); color: #2196F3; }
.ph-st.err { background: rgba(244, 67, 54, .12); color: #F44336; }
.ph-st.fx { background: rgba(255, 160, 0, .15); color: #FF8F00; }
.ph-err { color: #F44336; font-size: 12px; }
.ph-fx { color: #FF8F00; font-size: 12px; }
.ph-time { color: #9e9e9e; font-size: 12px; }
.ph-swipe { position: relative; }
.ph-basket { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.ph-basket .ph-empty ion-icon { font-size: 40px; }
.ph-brow { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid #e5e7eb; background: #fff; }
.ph-cb { font-size: 22px; display: flex; }
.ph-cb ion-icon { font-size: 22px; }
.ph-cb.on { color: #2196F3; }
.ph-cb.off { color: #b0bec5; }
.ph-cb.done { color: #4CAF50; }
.ph-bbar { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #fff; box-shadow: 0 -2px 6px rgba(0, 0, 0, .08); }
.ph-bbar .ph-btn { display: inline-flex; align-items: center; gap: 6px; }
.ph-bbar .ph-btn ion-icon { font-size: 16px; }
.ph-snack { position: absolute; left: 12px; right: 12px; bottom: 16px; background: #323232; color: #fff; border-radius: 6px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; z-index: 3; }
.ph-snack-act { color: #90caf9; font-weight: 600; }

.tw-s2 { position: absolute; left: 0; right: 0; top: calc(100% + 2px); background: #fff; border: 1px solid #ced4da; border-radius: 6px; box-shadow: 0 8px 20px rgba(15, 23, 42, .15); padding: 6px; z-index: 5; }
.tw-s2 .form-control { margin-bottom: 4px; }
.tw-s2-opt { padding: 6px 10px; border-radius: 4px; font-size: .9rem; }
.tw-s2-opt.hl { background: #0d6efd; color: #fff; }
.tw-s2-sm { top: calc(100% + 2px); min-width: 180px; }
.tw-drv { width: 170px; flex: 0 0 auto; }
.tw-cal { position: absolute; left: 0; top: calc(100% + 4px); z-index: 5; background: #fff; border: 1px solid #ddd; border-radius: 6px; box-shadow: 0 8px 20px rgba(15, 23, 42, .15); padding: 10px; display: flex; gap: 16px; }
.tw-cal-t { text-align: center; font-weight: 600; font-size: .85rem; margin-bottom: 6px; }
.tw-cal-g { display: grid; grid-template-columns: repeat(7, 30px); gap: 2px; text-align: center; font-size: .8rem; }
.tw-cal-h { color: #6b7280; font-weight: 600; }
.tw-cal-d { border-radius: 4px; padding: 4px 0; }
.tw-cal-d.sel { background: #357ebd; color: #fff; }
.tw-cal-d.in { background: #ebf4f8; }
.tw-swal-wrap { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); display: flex; align-items: center; justify-content: center; z-index: 6; }
.tw-swal { background: #fff; border-radius: 5px; width: 440px; padding: 1.5rem 1.5rem 1.25rem; text-align: center; }
.tw-swal-form { width: 480px; }
.tw-swal-ic { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 600; }
.tw-swal-ic.warn { border: 4px solid #facea8; color: #f8bb86; }
.tw-swal-title { font-size: 1.5rem; font-weight: 600; color: #545454; margin-bottom: .75rem; }
.tw-swal-body { color: #545454; margin-bottom: 1rem; }
.tw-swal-btns { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; }
.tw-swal-btns .btn-primary { background: #7066e0; border-color: #7066e0; }
.tw-swal-btns .btn-danger { background: #6e7881; border-color: #6e7881; }

.ph-prox { font-size: 12px; font-weight: 600; border-radius: 10px; padding: 2px 8px; border: 1px solid; }
.ph-prox.near { color: #4CAF50; background: rgba(76, 175, 80, .12); border-color: rgba(76, 175, 80, .5); }
.ph-prox.mid { color: #FF9800; background: rgba(255, 152, 0, .12); border-color: rgba(255, 152, 0, .5); }
.ph-dis { color: #9e9e9e; }
.ph-ok-note { color: #4CAF50 !important; }

.tr-balloon.side::before { top: var(--tr-arrow, 50%); left: -6px; border: 6px solid transparent; border-left: 0; border-right-color: #0f172a; }

.ph-white { background: #fff; }
.ph-page { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.ph-shellbar { border-bottom: 1px solid #eef1f4; }
.ph-title-wrap { min-width: 0; }
.ph-bell { position: relative; display: inline-flex; padding: 4px; }
.ph-badge { position: absolute; right: -2px; top: -2px; min-width: 16px; height: 16px; border-radius: 8px; background: #F44336; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.ph-conn { color: #FF9800; display: inline-flex; }
.ph-body.ph-flush { padding: 0; }
.ph-pad { padding: 10px 16px 6px; }
.ph-body-home { padding: 10px 12px; }
.ph-g { color: #4CAF50 !important; }
.ph-o { color: #FB8C00 !important; }
.ph-r { color: #F44336 !important; }
.ph-blue { color: #2196F3 !important; }
.ph-b { font-weight: 600; }
.ph-lg { font-size: 16px; }
.ph-mt { margin-top: 14px; }
.ph-mt-s { margin-top: 4px; }
.ph-mb { margin-bottom: 10px; }
.ph-mut { color: #9e9e9e; }
.ph-red { color: #F44336 !important; }
.ph-div { height: 1px; background: #e5e7eb; margin: 8px 0; }
.ph-hint { font-size: 12px; color: #757575; }

.ph-mcal { padding: 8px 8px 6px; margin-bottom: 8px; }
.ph-mcal-h { display: flex; align-items: center; text-align: center; padding: 2px 4px 6px; }
.ph-mcal-h b { font-size: 16px; }
.ph-mcal-h span { display: inline-flex; padding: 4px; color: #455A64; }
.ph-mcal-g { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; text-align: center; font-size: 13px; }
.ph-mcal-wd { color: #616161; font-size: 12px; padding-bottom: 4px; }
.ph-mcal-d { position: relative; height: 36px; display: flex; align-items: center; justify-content: center; }
.ph-mcal-d i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ph-mcal-d.sel i { background: #2196F3; color: #fff; }
.ph-dot { position: absolute; bottom: 1px; left: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; }
.ph-dot.a { background: #FFB300; }
.ph-dot.p { background: #9e9e9e; }
.ph-sum-h { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; font-size: 16px; }
.ph-empty-s { text-align: center; color: #9e9e9e; padding: 14px 0; }
.ph-ev { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; }
.ph-ev-ic { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ph-ev-ic.a { background: rgba(255, 179, 0, .12); color: #FFB300; }
.ph-ev-t { font-weight: 500; }
.ph-ev-s { font-size: 12px; color: #757575; }

.ph-drawer-wrap { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); z-index: 5; }
.ph-drawer { width: 240px; height: 100%; background: #fff; display: flex; flex-direction: column; box-shadow: 4px 0 16px rgba(0, 0, 0, .2); }
.ph-dr-head { background: #2196F3; color: #fff; font-size: 21px; font-weight: 700; height: 112px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 22px 10px 0; flex: 0 0 auto; }
.ph-dr-list { flex: 1 1 auto; min-height: 0; overflow: hidden; padding-top: 4px; }
.ph-dr-i { display: flex; align-items: center; gap: 20px; padding: 10px 16px; color: #212121; }
.ph-dr-i ion-icon { color: #9e9e9e; font-size: 22px; flex: 0 0 auto; }
.ph-dr-i.on { color: #2196F3; font-weight: 700; background: rgba(33, 150, 243, .08); }
.ph-dr-i.on ion-icon { color: #2196F3; }
.ph-dr-chev { font-size: 16px !important; transition: transform .2s; }
.ph-dr-g.open .ph-dr-chev { transform: rotate(180deg); }
.ph-dr-sub { padding-left: 16px; }
.ph-dr-sub .ph-dr-i { padding: 8px 16px; }
.ph-dr-foot { border-top: 1px solid #e0e0e0; flex: 0 0 auto; }
.ph-dr-out { color: #F44336; font-weight: 700; }
.ph-dr-out ion-icon { color: #F44336; }
.ph-dr-sync { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: #757575; padding: 2px 12px 12px; }
.ph-dr-sync ion-icon { font-size: 13px; color: #9e9e9e; }

.ph-has-nav .ph-snack { bottom: 84px; }
.ph-snack.red { background: #F44336; }
.ph-snack.green { background: #4CAF50; }
.ph-snack.orange { background: #FB8C00; }
.ph-snack.red .ph-snack-act, .ph-snack.green .ph-snack-act, .ph-snack.orange .ph-snack-act { color: #fff; }
.ph-dialog-text { color: #424242; font-size: 14px; line-height: 1.45; }
.ph-dialog-actions .ph-btn-text { padding: 4px 2px; }

.ph-fab { position: absolute; right: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; background: #d6e9fb; color: #0d47a1; border-radius: 16px; padding: 15px 18px; font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, .2); }
.ph-fl { margin: 10px 0; }
.ph-fl small { display: block; font-size: 12px; color: #616161; margin-bottom: 3px; }
.ph-input { width: 100%; border: 1px solid #9e9e9e; border-radius: 6px; padding: 10px 12px; font-size: 14px; background: #fff; color: #212121; outline: none; }
.ph-ta { resize: none; display: block; }
.ph-search { display: flex; align-items: center; gap: 8px; border: 1px solid #9e9e9e; border-radius: 6px; padding: 6px 10px; background: #fff; }
.ph-search input { border: 0; outline: none; flex: 1 1 auto; min-width: 0; font-size: 14px; background: transparent; }
.ph-dd { display: flex; align-items: center; gap: 8px; border: 1px solid #9e9e9e; border-radius: 6px; padding: 12px; background: #fff; position: relative; }
.ph-dd small { position: absolute; top: -9px; left: 10px; background: #fff; padding: 0 4px; font-size: 11px; color: #616161; }
.ph-ph { color: #9e9e9e; }
.ph-menu.ph-menu-dd, .ph-menu.ph-menu-ac { top: calc(100% + 2px); left: 0; right: 0; }
.ph-menu.ph-menu-up { top: auto; bottom: calc(100% + 2px); }
.ph-pop { position: absolute; right: 8px; top: 50px; background: #fff; border-radius: 6px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); z-index: 4; min-width: 150px; padding: 4px 0; }

.ph-login { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; padding: 0 24px 40px; }
.ph-logo { height: 92px; width: 92px; align-self: center; margin-bottom: 10px; }
.ph-login-t { font-size: 26px; font-weight: 700; text-align: center; }
.ph-login-s { font-size: 14px; color: #757575; text-align: center; margin-bottom: 26px; }
.ph-field { display: flex; align-items: center; gap: 10px; border: 1px solid #bdbdbd; border-radius: 12px; padding: 0 12px; height: 54px; margin-bottom: 14px; color: #616161; background: #fff; }
.ph-field input { border: 0; outline: none; flex: 1 1 auto; min-width: 0; font-size: 15px; background: transparent; color: #212121; }
.ph-field-act { display: inline-flex; }
.ph-btn-big { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 12px; font-weight: 600; margin-top: 6px; }
.ph-btn-out { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #90a4ae; color: #1976D2; border-radius: 20px; padding: 8px 14px; font-weight: 500; background: #fff; }
.ph-btn-out.ph-btn-big { border-radius: 12px; }
.ph-btn-sm { padding: 6px 12px; font-size: 13px; }
.ph-btn-sm ion-icon { font-size: 16px; }
.ph-btn, .ph-btn-out { white-space: nowrap; }
.ph-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ph-btn.dis, .ph-btn-text.dis, .ph-btn-tonal.dis { opacity: .4; }
.ph-btn-tonal { display: inline-flex; align-items: center; background: #d6e9fb; color: #0d47a1; border-radius: 20px; padding: 7px 14px; font-weight: 500; font-size: 13px; }
.ph-btn-green { background: #4CAF50; }
.ph-btn-red { color: #F44336; border-color: #F44336; }

.ph-sheet-wrap { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); z-index: 4; display: flex; align-items: flex-end; }
.ph-sheet { background: #fff; width: 100%; max-height: 86%; border-radius: 20px 20px 0 0; padding: 8px 16px 14px; overflow: hidden; }
.ph-sheet-form { padding-top: 16px; }
.ph-grab { width: 40px; height: 4px; border-radius: 2px; background: #cfd8dc; margin: 0 auto 10px; }
.ph-sheet-h { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.ph-sheet-h > span { display: inline-flex; }
.ph-sec { display: flex; align-items: center; gap: 6px; font-weight: 700; color: #2196F3; margin: 10px 0 4px; font-size: 13px; }
.ph-sec ion-icon { font-size: 16px; }
.ph-kv2 { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 3px 0; color: #616161; }
.ph-kv2 ion-icon { font-size: 16px; color: #9e9e9e; }
.ph-kv2 b { margin-left: auto; color: #212121; font-weight: 600; text-align: right; }
.ph-chips2 { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-chips2 span { background: #eceff1; border-radius: 12px; padding: 3px 10px; font-size: 12px; }
.ph-chips.ph-chips-flat { padding: 4px 0 6px; border: 0; }
.ph-pill { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 12px; padding: 2px 9px; white-space: nowrap; }
.ph-pill.a { color: #FFB300; background: rgba(255, 179, 0, .14); margin-left: 6px; }
.ph-pill.o { color: #FB8C00; background: rgba(251, 140, 0, .12); }
.ph-pill.g { color: #43A047; background: rgba(67, 160, 71, .12); }
.ph-pill.r { color: #E53935; background: rgba(229, 57, 53, .12); }
.ph-pill.b { color: #1E88E5; background: rgba(30, 136, 229, .12); }

.ph-lt { display: flex; align-items: center; gap: 12px; padding: 9px 16px; border-bottom: 1px solid #eceff1; background: #fff; }
.ph-lt-ic { display: inline-flex; color: #757575; flex: 0 0 auto; }
.ph-lt-ic.round { width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center; background: #eceff1; }
.ph-lt-ic.round.o { color: #FB8C00; background: rgba(251, 140, 0, .14); }
.ph-lt-ic.round.g { color: #43A047; background: rgba(67, 160, 71, .14); }
.ph-lt-ic.round.r { color: #E53935; background: rgba(229, 57, 53, .14); }
.ph-lt-ic.round.b { color: #1E88E5; background: rgba(30, 136, 229, .14); }
.ph-lt-t { color: #212121; display: block; }
.ph-lt-s { font-size: 12px; color: #757575; display: block; }
.ph-lt-s2 { font-size: 13px; color: #424242; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ph-lt3 { align-items: flex-start; }
.ph-gh { background: #eceff1; font-weight: 700; font-size: 13px; padding: 6px 16px; }

.ph-nrow { display: flex; align-items: flex-start; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #eceff1; background: #fff; }
.ph-nava { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #eceff1; color: #9e9e9e; flex: 0 0 auto; }
.ph-nt { color: #212121; }
.ph-nb { font-size: 13px; color: #616161; }
.ph-nd { font-size: 11px; color: #9e9e9e; margin-top: 2px; }
.ph-ndot { display: none; width: 10px; height: 10px; border-radius: 50%; background: #2196F3; margin-top: 14px; flex: 0 0 auto; }
.ph-nrow.unread .ph-nt { font-weight: 700; }
.ph-nrow.unread .ph-nava { background: rgba(33, 150, 243, .15); color: #2196F3; }
.ph-nrow.unread .ph-ndot { display: block; }

.ph-cam-200 { width: auto; height: 200px; margin: 8px 12px; }
.ph-st.sy { background: rgba(251, 140, 0, .12); color: #FB8C00; }
.ph-sub2 { font-size: 11px; color: #607d8b; }
.ph-co { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; }
.ph-co ion-icon { font-size: 12px; }
.ph-trail { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; max-width: 120px; text-align: right; }
.ph-trail .ph-err { font-size: 10px; line-height: 1.2; }
.ph-empty-ic { font-size: 56px !important; color: #e0e0e0; }

.ph-cstrip { display: flex; align-items: center; gap: 6px; padding: 10px 16px; background: #e8f2fd; flex: 0 0 auto; }
.ph-cstrip ion-icon { font-size: 18px; }
.ph-cstrip b { margin-right: 14px; }
.ph-seg { display: flex; margin: 6px 12px; border: 1px solid #90a4ae; border-radius: 20px; overflow: hidden; flex: 0 0 auto; }
.ph-seg span { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 4px; font-size: 13px; font-weight: 500; }
.ph-seg span + span { border-left: 1px solid #90a4ae; }
.ph-seg span.on { background: #d6e9fb; color: #0d47a1; }
.ph-seg ion-icon { font-size: 16px; }
.ph-cstat { padding: 8px 16px; color: #fff; font-weight: 600; flex: 0 0 auto; }
.ph-cstat.g { background: #388E3C; }
.ph-cstat.o { background: #EF6C00; }
.ph-cstat.r { background: #D32F2F; }
.ph-cbrow { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid #f1f5f9; }
.ph-cb2 { width: 18px; height: 18px; border: 2px solid #616161; border-radius: 3px; flex: 0 0 auto; position: relative; }
.ph-cb2.on { background: #2196F3; border-color: #2196F3; }
.ph-cb2.on::after { content: ''; position: absolute; left: 4px; top: 0; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ph-miss { padding: 0 16px 8px 40px; background: #fafafa; }
.ph-btnrow { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding-top: 8px; }
.ph-bottom { padding: 8px 16px 12px; background: #fff; flex: 0 0 auto; }
.ph-bottom .ph-btn-big { margin: 0; }

.ph-rm { color: #F44336; display: inline-flex; padding: 4px; }
.ph-rm ion-icon { font-size: 22px; }
.ph-logst { font-size: 12px; font-weight: 700; }
.ph-logst.g { color: #4CAF50; }
.ph-logst.r { color: #F44336; }
.ph-logst.grey { color: #9e9e9e; }
.ph-basket-s { flex: 0 0 auto; min-height: 150px; }

.ph-zbtns { display: flex; gap: 10px; padding: 10px 16px; flex: 0 0 auto; }
.ph-zbtns > span { flex: 1 1 0; padding: 12px 8px; }

.ph-ronly { text-align: center; color: #616161; padding: 80px 30px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ph-lbl { font-size: 12px; color: #757575; margin: 12px 0 4px; }
.ph-eqcard { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.ph-right { display: flex; justify-content: flex-end; }
.ph-right .ph-btn-text { display: inline-flex; align-items: center; gap: 4px; }
.ph-fkv { display: flex; gap: 8px; padding: 3px 0; font-size: 13px; }
.ph-fkv span { width: 110px; flex: 0 0 auto; color: #757575; }
.ph-fkv b { font-weight: 500; color: #212121; }
.ph-hist { display: flex; gap: 10px; padding: 6px 0; font-size: 13px; }
.ph-hdot { width: 8px; height: 8px; border-radius: 50%; background: #9e9e9e; margin-top: 6px; flex: 0 0 auto; }
.ph-fbtns { display: flex; justify-content: center; padding: 8px 10px 12px; background: #fff; border-top: 1px solid #eceff1; flex: 0 0 auto; }
.ph-fbtns > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }

.ph-banner { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: #fff; font-size: 12px; flex: 0 0 auto; }
.ph-banner b { font-size: 13px; }
.ph-banner.amber { background: #FFA000; }
.ph-banner.red { background: #D32F2F; }
.ph-cf-d { font-size: 13px; color: #424242; margin: 6px 0 10px; }
.ph-cf-btns { display: flex; gap: 8px; justify-content: flex-end; }
.ph-trig { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; margin: 16px; border-radius: 20px; border: 2px dashed #bbdefb; background: #fff; }
.ph-trig-ic { font-size: 56px !important; color: #2196F3; }
.ph-trig-t { font-weight: 600; }
.ph-btn.ph-btn-big, .ph-btn-out.ph-btn-big { display: flex; }
.ph-tabs-sm .ph-tab { font-size: 12px; white-space: nowrap; padding: 12px 2px; }
.ph-btn-text { white-space: nowrap; }
.ph-appbar > .ph-iconbtn, .ph-appbar > .ph-bell, .ph-appbar > .ph-conn, .ph-appbar > .ph-btn-text { flex: 0 0 auto; }
.ph-fbtns { position: relative; }
.ph-fbtns .ph-snack { bottom: calc(100% + 8px); }
.ph-dr-sub.flat { padding-left: 0; }

.tw-side-full { display: flex; flex-direction: column; padding: 1rem .75rem; }
.tw-side-full .sidebar-logo { margin-bottom: .9rem; }
.tw-nav .nav-link { padding: .5rem .75rem; margin-bottom: .1rem; font-size: .88rem; }
.tw-nav .nav-link ion-icon { font-size: 1.1rem; }
.tw-nav .submenu .nav-link { padding: .4rem .75rem .4rem 2.6rem; font-size: .84rem; }
.tw-nav .submenu .nav-link::before { left: 1.5rem; }
.tw-logout { color: var(--danger-color) !important; }
.tw-sep { border-bottom: 1px solid var(--surface-border); margin: .5rem 0; }
.tw-sync { margin-top: auto; font-size: 11px; line-height: 1.4; color: #64748b; padding: 8px 4px 2px; border-top: 1px solid rgba(0, 0, 0, .06); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.tw-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex: 0 0 auto; }
.tw-dot.off { background: #f59e0b; }
.tw-conf, .tw-rej { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 8px 4px; border-top: 1px solid rgba(0, 0, 0, .06); cursor: pointer; }
.tw-conf { color: #b91c1c; }
.tw-rej { color: #b45309; }
.tw-conf ion-icon, .tw-rej ion-icon { font-size: 1.1rem; }
.tw-offline { background: #374151; color: #fff; padding: 7px 10px; font-size: 12px; text-align: center; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 6px; margin-bottom: .75rem; }
.tw-topbar-full { display: flex; align-items: center; gap: .75rem; position: relative; }
.tw-top-title { flex: 1 1 auto; font-size: 1.25rem; font-weight: 500; min-width: 0; }
.tw-bell { position: relative; font-size: 22px; line-height: 1; padding: 4px; cursor: pointer; display: inline-flex; }
.tw-badge { position: absolute; top: -3px; right: -5px; background: #dc3545; color: #fff; font-size: .6rem; border-radius: 10px; padding: 2px 5px; line-height: 1; }
.tw-user { display: flex; align-items: center; gap: .5rem; cursor: pointer; padding: 4px; border-radius: 8px; }
.tw-user-info { text-align: right; line-height: 1.15; }
.tw-user-info b { display: block; font-size: .82rem; font-weight: 500; }
.tw-user-info small { color: #64748b; font-size: .68rem; }
.tw-ava { width: 32px; height: 32px; border-radius: 50%; background: #0d6efd; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: .9rem; overflow: hidden; }
.tw-menu { position: absolute; right: 12px; top: calc(100% - 4px); background: #fff; border-radius: 8px; box-shadow: 0 10px 25px rgba(15, 23, 42, .15); padding: .5rem; min-width: 220px; z-index: 6; }
.tw-menu .dropdown-item { cursor: default; }
.tw-npanel { position: absolute; right: 70px; top: calc(100% - 4px); width: 340px; background: #fff; border: 1px solid #dee2e6; border-radius: 6px; box-shadow: 0 10px 25px rgba(15, 23, 42, .15); z-index: 6; font-size: .85rem; }
.tw-toast-err { border-left-color: var(--danger-color); }
.tw-toast-err ion-icon { color: var(--danger-color); }
.tw-toast-warn { border-left-color: #f59e0b; }
.tw-toast-warn ion-icon { color: #f59e0b; }
.tw-swal-ic.ok { border: 4px solid #a5dc86; color: #a5dc86; }
.tw-swal-ic.err { border: 4px solid #f27474; color: #f27474; }
.tw-swal-ic.info { border: 4px solid #9de0f6; color: #3fc3ee; }
.tw-swal-btns .btn-success { background: #198754; border-color: #198754; }
.tw-nav.tw-off .tw-noff { display: none; }

.tw-grace { background: #dc2626; color: #fff; padding: 8px 10px; font-size: 12px; line-height: 1.45; text-align: center; font-weight: 600; border-radius: 6px; margin-bottom: .75rem; }
.tw-ava.photo, .tw-w1-pimg.photo { background: linear-gradient(135deg, #f6d365 0%, #fda085 45%, #6a82fb 100%); color: transparent; }
.tw-w1-stic { font-size: 2.2rem; flex: 0 0 auto; }
.tw-w1-cal { border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; }
.tw-w1-wd { display: grid; grid-template-columns: repeat(7, 1fr); background: #f8fafc; font-size: .75rem; font-weight: 600; color: #475569; text-align: center; padding: 4px 0; border-bottom: 1px solid #e5e7eb; }
.tw-w1-wk { border-bottom: 1px solid #f1f5f9; min-height: 52px; }
.tw-w1-wk:last-child { border-bottom: 0; }
.tw-w1-days { display: grid; grid-template-columns: repeat(7, 1fr); font-size: .72rem; color: #334155; }
.tw-w1-days span { text-align: right; padding: 2px 6px; }
.tw-w1-days span.out { color: #cbd5e1; }
.tw-w1-evs { display: grid; grid-template-columns: repeat(7, 1fr); padding: 0 2px 4px; min-height: 22px; }
.tw-w1-ev { color: #fff; font-size: .72rem; border-radius: 4px; padding: 2px 6px; margin: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-w1-ev.act { background: #f59e0b; }
.tw-w1-ev.done { background: #10b981; }
.tw-w1-ev.pend { background: #6b7280; }
.tw-w1-unread { background: rgba(13, 110, 253, .07); }
.tw-w1-unread > div:first-child { font-weight: 600; }
.tw-w1-when { font-size: .68rem; }
.tw-w1-perm { position: absolute; right: 60px; top: calc(100% - 4px); width: 330px; background: #fff; border-radius: 8px; box-shadow: 0 10px 25px rgba(15, 23, 42, .2); padding: .75rem 1rem; z-index: 6; font-size: .85rem; }
.tw-w1-perm-t { display: flex; gap: .5rem; align-items: center; }
html[lang="en"] .tw-w1-lang-tr .tw-w1-chk, html:not([lang="en"]) .tw-w1-lang-en .tw-w1-chk { visibility: hidden; }
.tw-w1-push { border-left-color: #3fc3ee; align-items: flex-start; max-width: 320px; }
.tw-w1-push ion-icon { color: #3fc3ee; }
.tw-w1-pava { position: relative; width: 96px; height: 96px; margin: 0 auto; }
.tw-w1-pimg { width: 96px; height: 96px; border-radius: 50%; background: #0d6efd; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 600; cursor: pointer; }
.tw-w1-pcam { position: absolute; right: 0; bottom: 0; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 1px solid #dee2e6; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.tw-w1-crop { width: 520px; }
.tw-w1-cropimg { height: 260px; border-radius: 6px; background: linear-gradient(135deg, #94a3b8, #475569); position: relative; }
.tw-w1-cropsq { position: absolute; left: 50%; top: 50%; width: 180px; height: 180px; transform: translate(-50%, -50%); border: 2px dashed #fff; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); border-radius: 2px; }
.tw-w1-lock { min-height: 560px; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 20%, #334155, #0f172a); }
.tw-w1-lockbox { text-align: center; color: #fff; }
.tw-w1-lockava { width: 100px; height: 100px; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 2px solid rgba(255, 255, 255, .3); display: inline-flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 600; }
.tw-w1-lockname { font-size: 1.4rem; font-weight: 600; margin: .75rem 0 1.25rem; }
.tw-w1-lockrow { display: flex; align-items: center; gap: .5rem; justify-content: center; }
.tw-w1-lockin { width: 240px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); border-radius: 30px; padding: .6rem 1.1rem; color: #fff; }
.tw-w1-lockin::placeholder { color: rgba(255, 255, 255, .6); }
.tw-w1-lockin.shake { animation: tw-shake .35s; border-color: #f87171; }
@keyframes tw-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.tw-w1-lockgo { font-size: 2.2rem; display: inline-flex; cursor: pointer; }
.tw-w1-lockerr { color: #fca5a5; margin-top: .6rem; font-size: .9rem; }
.tw-w1-lockswitch { margin-top: 1.25rem; color: rgba(255, 255, 255, .75); text-decoration: underline; font-size: .9rem; cursor: pointer; display: inline-block; }

.tw-w5-ov { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); display: flex; justify-content: center; align-items: flex-start; padding-top: 16px; z-index: 5; }
.tw-w5-xl { width: 900px; }
.tw-w5-lg { width: 800px; }
.tw-w5-mb { font-size: .86rem; }
.tw-w5-mb label { font-weight: 500; font-size: .82rem; margin-bottom: .3rem; }
.tw-w5-steps .nav-link { color: #6b7280; padding: .4rem .5rem; font-size: .86rem; cursor: default; }
.tw-w5-steps .nav-link.wo-done { color: #198754; }
.tw-w5-steps .nav-link.active { color: #fff; }
.tw-w5-panel { padding: 1rem; margin-bottom: 0; }
.tw-w5-dt { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .6rem; font-size: .8rem; }
.tw-w5-dt .form-control-sm { width: 140px; height: 28px; display: inline-block; margin-left: .35rem; }
.tw-w5-len { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--surface-border); border-radius: 6px; padding: .1rem .45rem; margin: 0 .3rem; background: #fff; }
.tw-w5-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .78rem; }
.tw-w5-tbl th { color: var(--text-muted); font-weight: 600; font-size: .64rem; text-transform: uppercase; letter-spacing: .04em; padding: .5rem .35rem; border-bottom: 1px solid var(--surface-border); }
.tw-w5-tbl td { padding: .45rem .35rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.tw-w5-tbl .btn-sm { padding: .2rem .38rem; line-height: 1; }
.tw-w5-tbl .btn-sm ion-icon { font-size: .95rem; vertical-align: middle; }
.tw-w5-tbl .badge { font-size: .66rem; }
.tw-w5-tbl tr.tw-w5-warn td { background: #fff3cd; }
.tw-w5-tbl tr.tw-w5-gone td { background: #f3f4f6; color: #9ca3af; }
.tw-w5-link { color: var(--primary-color); text-decoration: underline; cursor: pointer; }
.tw-w5-foot { display: flex; justify-content: space-between; align-items: center; font-size: .74rem; color: #64748b; margin-top: .6rem; }
.tw-w5-pager span, .tw-w5-pager b { padding: .15rem .45rem; font-weight: 500; }
.tw-w5-pager b { border: 1px solid var(--surface-border); border-radius: 4px; margin: 0 .2rem; }
.tw-w5-in { height: 28px; font-size: .72rem; padding: .15rem .3rem; }
.tw-w5-dl { height: 190px; }
.tw-w5-trash { display: inline-flex; padding: .3rem; border-radius: 6px; border: 1px solid var(--surface-border); color: var(--text-muted); background: #fff; cursor: pointer; }
.tw-w5-tabs .tab-btn { padding: .55rem .25rem; margin-right: .9rem; font-size: .86rem; display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; }
.tw-w5-tabs .tab-btn.active { font-weight: 600; }
.tw-w5-card { padding: .8rem 1rem; }
.tw-w5-q { border: 4px solid #c9dae1; color: #87adbd; }
.tw-w5-pp { flex-direction: column; background: #fff; }
.tw-w5-pbar { background: #f1f5f9; padding: .5rem; border-bottom: 1px solid #cbd5e1; display: flex; justify-content: center; gap: 1rem; }
.tw-w5-pbtn { padding: .4rem 1.4rem; border-radius: 4px; font-weight: 600; border: 1px solid #cbd5e1; background: #fff; color: #334155; font-size: .85rem; }
.tw-w5-pbtn.dark { background: #0f172a; color: #fff; border-color: #0f172a; }
.tw-w5-print { width: 760px; margin: .75rem auto; padding: 1.1rem 1.75rem; font-size: 12px; color: #334155; border: 1px solid #e2e8f0; box-shadow: 0 6px 20px rgba(15, 23, 42, .08); }
.tw-w5-phead { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #0f172a; padding-bottom: .6rem; margin-bottom: .8rem; }
.tw-w5-pco { font-size: 1.1rem; font-weight: 600; }
.tw-w5-psub { font-size: .8rem; color: #64748b; }
.tw-w5-pmeta { text-align: right; }
.tw-w5-ptitle { font-size: 1.3rem; font-weight: 800; color: #0f172a; }
.tw-w5-psec { margin-bottom: .75rem; }
.tw-w5-pst { font-size: .9rem; font-weight: 700; color: #0f172a; border-bottom: 1px solid #e2e8f0; padding-bottom: .35rem; margin-bottom: .6rem; text-transform: uppercase; }
.tw-w5-pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem 2rem; }
.tw-w5-pl { display: block; font-size: .7rem; color: #64748b; font-weight: 600; text-transform: uppercase; }
.tw-w5-pv { font-size: .85rem; font-weight: 500; }
.tw-w5-ptbl { width: 100%; border-collapse: collapse; font-size: .8rem; }
.tw-w5-ptbl th { text-align: left; padding: .3rem .4rem; background: #f8fafc; border-bottom: 2px solid #e2e8f0; font-weight: 600; color: #0f172a; }
.tw-w5-ptbl td { padding: .3rem .4rem; border-bottom: 1px solid #e2e8f0; }
.tw-w5-ptot { text-align: right; margin-top: .4rem; font-weight: 600; font-size: .8rem; }
.tw-w5-psig { display: flex; gap: 2rem; margin-top: .6rem; text-align: center; font-weight: 600; }
.tw-w5-psig > div { flex: 1; }
.tw-w5-psig i { display: block; height: 30px; border-bottom: 1px solid #ccc; width: 80%; margin: 0 auto; }
.tw-w5-pfoot { margin-top: .8rem; border-top: 1px solid #e2e8f0; padding-top: .6rem; display: flex; justify-content: space-between; font-size: .72rem; color: #64748b; }
.tw-w5-cb { display: inline-block; border-radius: .25em; }
.tw-w5-cb.on { background-color: #0d6efd; border-color: #0d6efd; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e"); }
.tw-w5-sw { display: inline-block; }
.tw-w5-sw.on { background-color: #0d6efd; border-color: #0d6efd; background-position: right center; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e"); }
.tw-w5-spacer { height: 340px; }

.tw-w6-dim { padding: 14px 0; }
.tw-w6-form { width: 780px; transition: margin-top .25s; }
.tw-w6-form .modal-header { padding: .55rem 1rem; }
.tw-w6-form .modal-title { font-size: 1.1rem; }
.tw-w6-form .modal-body { padding: .55rem 1rem .5rem; }
.tw-w6-form .scan-panel { padding: .45rem .75rem; margin-bottom: .5rem; gap: .3rem; }
.tw-w6-form .form-label { margin-bottom: .15rem; font-size: .85rem; }
.tw-w6-form .form-control, .tw-w6-form .form-select { padding-top: .3rem; padding-bottom: .3rem; }
.tw-w6-form .tw-select { min-height: 34px; }
.tw-w6-form .form-text { margin-top: .15rem; font-size: .8rem; }
.tw-w6-form textarea.form-control { height: 52px; }
.tw-w6-form details.accordion-group { margin-top: 0; }
.tw-w6-form details.accordion-group summary { padding: .45rem .8rem; }
.tw-w6-form .accordion-content { padding: .45rem; }
.tw-w6-form .image-upload-area { padding: .45rem; }
.tw-w6-form .image-upload-area ion-icon.fs-1 { font-size: 1.6rem !important; }
.tw-w6-form .modal-footer { padding: .5rem 0 0; margin-top: .5rem; }
.tw-w6-up { margin-top: -200px; }
.tw-w6-dis { background-color: #e9ecef; color: #6c757d; cursor: default; }
.tw-w6-dlg.tw-modal { width: 500px; }
.tw-w6-dlg .modal-body { padding: .75rem 1rem 1.25rem; }
.tw-w6-og { font-weight: 700; font-size: .8rem; color: #374151; padding: 4px 8px 2px; }
.tw-w6-og + .tw-s2-opt, .tw-w6-og ~ .tw-s2-opt { padding-left: 18px; }
.tw-w6-toast { max-width: 460px; z-index: 8; font-size: .9rem; }
.tw-w6-info { border-left-color: #3fc3ee; }
.tw-w6-info ion-icon { color: #3fc3ee; }
.tw-w6-win { position: absolute; right: 26px; bottom: 26px; width: 330px; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .35); z-index: 7; overflow: hidden; }
.tw-w6-win-bar { height: 24px; background: #e2e8f0; display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.tw-w6-win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #94a3b8; }
.tw-w6-label { margin: 16px auto; width: 250px; height: 125px; border: 1px dashed #64748b; display: flex; align-items: center; gap: 10px; padding: 8px 10px;
    font-size: .8rem; line-height: 1.35; color: #111827; }
.tw-w6-label b { font-size: .9rem; }
.tw-w6-qr { font-size: 90px; flex: 0 0 auto; }
.tw-w6-photo { width: 120px; height: 86px; border-radius: 8px; background: linear-gradient(135deg, #475569, #0f172a); color: #e2e8f0;
    display: flex; align-items: center; justify-content: center; font-size: 42px; }
.tw-w6-tbl { font-size: .8rem; }
.tw-w6-tbl td, .tw-w6-tbl th { white-space: nowrap; padding: .4rem .3rem; }
.tw-w6-act { padding: .15rem .3rem; line-height: 1; display: inline-flex; }
.tw-w6-new td { background-color: rgba(40, 167, 69, .12) !important; box-shadow: none !important; }
.tw-w6-flt { width: auto; min-width: 92px; font-size: .82rem; }
.tw-w16-dz { background: rgba(15, 23, 42, .45); align-items: flex-start; justify-content: center; padding: 18px 0; min-height: 760px; }
.tw-w16-dm { width: 920px; display: flex; flex-direction: column; }
.tw-w16-body { display: flex; height: 560px; padding: 0; }
.tw-w16-left { flex: 0 0 37%; max-width: 37%; background: #f8f9fa; border-right: 1px solid #dee2e6; display: flex; flex-direction: column; }
.tw-w16-tabs { background: #fff; border-bottom: 1px solid #dee2e6; flex-wrap: nowrap; }
.tw-w16-tabs .nav-link { border: none; border-bottom: 3px solid transparent; border-radius: 0; color: #6c757d; font-weight: 500; font-size: .85rem; padding: .5rem .7rem; cursor: pointer; white-space: nowrap; }
.tw-w16-tabs .nav-link.active { background: #f8f9fa; color: #0d6efd; border-bottom-color: #0d6efd; }
.tw-w16-pane { padding: 12px; font-size: .85rem; overflow: hidden; }
.tw-w16-pane h6 { font-size: .85rem; }
.tw-w16-pane .form-control { font-size: .82rem; padding: .25rem .4rem; }
.tw-w16-pal { cursor: move; font-size: .78rem; }
.tw-w16-code { flex: 1; width: 100%; border: none; border-top: 1px solid #dee2e6; padding: 10px; resize: none; font-family: Consolas, Monaco, 'Courier New', monospace; font-size: 11.5px; line-height: 1.5; background: #fff; color: #212529; }
.tw-w16-hint { padding: 8px 10px; font-size: 12px; color: #666; background: #fff3cd; }
.tw-w16-right { flex: 1 1 auto; background: #e9ecef; display: flex; flex-direction: column; min-width: 0; }
.tw-w16-ph { padding: 8px 12px; background: #fff; border-bottom: 1px solid #dee2e6; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #6c757d; gap: 6px; }
.tw-w16-ph .btn { padding: .15rem .4rem; font-size: .75rem; }
.tw-w16-props { padding: 6px 12px; background: #fff; border-bottom: 1px solid #dee2e6; font-size: 13px; align-items: center; gap: 12px; }
.tw-w16-canvas { flex: 1; padding: 30px 20px; display: flex; align-items: flex-start; justify-content: center; overflow: hidden; }
.tw-w16-canvas.grid { background-image: linear-gradient(rgba(0, 0, 0, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .08) 1px, transparent 1px); background-size: 3.78px 3.78px; }
.tw-w16-lbl { position: relative; width: 378px; height: 189px; background: #fff; border: 1px solid #dee2e6; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); transform-origin: top center; font-family: Arial, sans-serif; color: #000; }
.tw-w16-el { position: absolute; white-space: nowrap; cursor: move; line-height: 1.15; }
.tw-w16-el.sel { outline: 2px solid #0d6efd; }
.tw-w16-qrph { background: #eee; color: #999; display: flex; align-items: center; justify-content: center; font-size: 8px; }
.tw-w16-logo { background: #6777ef; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; }
.tw-w16-big { font-size: 13.3px !important; }
.tw-w16-win { position: absolute; right: 26px; bottom: 26px; width: 330px; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; box-shadow: 0 16px 40px rgba(15, 23, 42, .35); z-index: 7; overflow: hidden; }
.tw-w16-winbar { height: 24px; background: #e2e8f0; display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.tw-w16-winbar i { width: 10px; height: 10px; border-radius: 50%; background: #94a3b8; }
.tw-w16-print { margin: 16px auto; width: 189px; height: 113px; border: 1px dashed #64748b; position: relative; font-family: Arial, sans-serif; color: #000; }
.tw-w16-info { border-left-color: #3fc3ee; }
.tw-w16-info ion-icon { color: #3fc3ee; }
.tw-w16-tbl { font-size: .75rem; }
.tw-w16-tbl td, .tw-w16-tbl th { padding: .4rem .2rem; white-space: nowrap; }
.tw-w16-tbl .btn-sm { padding: .12rem .3rem; font-size: .78rem; line-height: 1.2; }
.tw-w16-tbl .tw-w16-use { padding: .12rem .35rem; font-size: .72rem; }
.tw-w16-tbl .me-1 { margin-right: .15rem !important; }
.tw-w16-card .card-body { padding: .75rem; }
.tw-w16-form .mb-3 { margin-bottom: .6rem !important; }
.tw-w16-form .modal-body { padding: .75rem 1rem; }
.tw-w16-form textarea { font-size: 11.5px; line-height: 1.35; }

@media (max-width: 991px) {
    .tr-chapters { flex-direction: row; overflow-x: auto; gap: .25rem; margin-bottom: .5rem; padding-bottom: .5rem; scrollbar-width: none; }
    .tr-chapters::-webkit-scrollbar { display: none; }
    .tr-ch { flex: 0 0 auto; white-space: nowrap; }
    .tr-panel-text { max-height: 32vh; overflow-y: auto; margin-bottom: .5rem; }
    .tr-hint { margin-bottom: .5rem; }
}

.tr-team-name { cursor: pointer; font-weight: 600; white-space: nowrap; }
.tr-team-name ion-icon { vertical-align: -2px; transition: transform .15s; color: var(--text-muted); }
.tr-team-open .tr-team-name ion-icon { transform: rotate(90deg); }
#trTeamTable tbody tr { cursor: pointer; }
.tr-team-frac { font-weight: 600; }
.tr-team-bar { display: inline-block; vertical-align: middle; width: 70px; height: 6px; border-radius: 3px; background: #e2e8f0; overflow: hidden; }
.tr-team-bar > span { display: block; height: 100%; background: var(--success-color); }
.tr-team-pct { font-size: .8rem; color: var(--text-muted); }
.tr-team-detail { list-style: none; margin: 0; padding: .25rem 0 .25rem 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .35rem 1.25rem; }
.tr-team-detail li { display: flex; align-items: center; gap: .5rem; font-size: .88rem; }
.tr-team-detail ion-icon { color: var(--text-muted); flex: 0 0 auto; }
.tr-team-l { flex: 1 1 auto; min-width: 0; }
.tr-team-rec { font-size: .72rem; color: var(--primary-color); font-weight: 600; margin-left: .25rem; }

