
.toh-full-front,.toh-full-front *{box-sizing:border-box;font-family:Inter,"Segoe UI",Arial,sans-serif!important;-webkit-font-smoothing:antialiased}
.toh-login-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#071529,#0f172a)}
.toh-login-card{width:420px;max-width:92vw;background:#fff;border-radius:24px;padding:34px;text-align:center;box-shadow:0 30px 100px rgba(0,0,0,.35)}
.toh-login-logo{width:70px;height:70px;border-radius:20px;background:linear-gradient(135deg,#2563eb,#7c3aed);display:flex;align-items:center;justify-content:center;color:#fff;font-size:30px;margin:0 auto 16px}.toh-login-card a{display:inline-block;background:#2563eb;color:#fff;text-decoration:none;padding:12px 24px;border-radius:12px;font-weight:800}
.toh-app{display:grid;grid-template-columns:270px 1fr;min-height:100vh;background:#f4f7fb;color:#0f172a}.toh-sidebar{background:linear-gradient(180deg,#071529,#061222);color:white;padding:18px;display:flex;flex-direction:column;gap:18px}.toh-brand{display:flex;gap:12px;align-items:center}.toh-logo{width:52px;height:52px;border-radius:16px;background:linear-gradient(135deg,#2563eb,#7c3aed);display:flex;align-items:center;justify-content:center}.toh-brand h2{margin:0;font-size:22px;color:#fff}.toh-brand p{margin:3px 0 0;color:#cbd5e1;font-size:12px}
.toh-new-order{background:#2563eb;color:white;border:0;border-radius:16px;padding:18px;font-size:16px;font-weight:800;cursor:pointer}.toh-nav{display:flex;flex-direction:column;gap:8px}.toh-nav a{color:#e2e8f0;text-decoration:none;padding:13px 14px;border-radius:12px;cursor:pointer;font-weight:600}.toh-nav a.active,.toh-nav a:hover{background:#12345a;color:#60a5fa}
.toh-user{margin-top:auto;background:rgba(255,255,255,.08);border-radius:16px;padding:14px;display:flex;gap:12px;align-items:center}.toh-avatar,.toh-face{width:42px;height:42px;background:#e2e8f0;color:#0f172a;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:900}.toh-user small,.toh-user em{display:block;color:#cbd5e1;font-size:12px;font-style:normal}.toh-user em{color:#22c55e}
.toh-main{min-width:0}.toh-topbar{height:70px;background:#fff;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;gap:18px;padding:0 22px}.toh-menu{border:0;background:transparent;font-size:24px;cursor:pointer}.toh-search{max-width:680px;flex:1;height:42px;border:1px solid #e5e7eb;background:#f8fafc;border-radius:14px;display:flex;align-items:center;gap:8px;padding:0 12px}.toh-search input{flex:1;border:0;background:transparent;outline:0;box-shadow:none!important}.toh-top-user{margin-left:auto;display:flex;align-items:center;gap:14px}
.toh-content{display:grid;grid-template-columns:minmax(0,1fr) 380px;height:calc(100vh - 70px);overflow:hidden}.toh-left{padding:18px;overflow:auto}.toh-detail{background:#fff;border-left:1px solid #e5e7eb;padding:18px;overflow:auto}.toh-detail h2{margin:0 0 18px}.toh-close{float:right;border:0;background:transparent;font-size:22px;cursor:pointer}
.toh-section-title{margin:0 0 12px;font-size:22px}.toh-stat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:16px}.toh-stat{color:#fff;padding:16px;min-height:112px;border-radius:18px;box-shadow:0 14px 32px rgba(15,23,42,.11)}.toh-stat span{display:block;font-weight:800;font-size:13px}.toh-stat b{display:block;font-size:34px;margin:8px 0}.toh-stat small{font-size:12px}.blue{background:linear-gradient(135deg,#2563eb,#1d4ed8)}.orange{background:linear-gradient(135deg,#f59e0b,#ea580c)}.purple{background:linear-gradient(135deg,#7c3aed,#8b5cf6)}.red{background:linear-gradient(135deg,#ef4444,#fb7185)}.green{background:linear-gradient(135deg,#16a34a,#22c55e)}
.toh-panel,.toh-task-head,.toh-table-wrap,.toh-staff-head,.toh-role-grid div{background:#fff;border:1px solid #e5e7eb;border-radius:18px;box-shadow:0 14px 35px rgba(15,23,42,.06)}.toh-panel{padding:16px;margin-bottom:16px}.toh-panel-head,.toh-task-head,.toh-staff-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.toh-panel-head h3,.toh-task-head h2,.toh-staff-head h2{margin:0}.toh-panel-head button,.toh-task-head button,.toh-task-head select,.toh-staff-head button{height:36px;border:1px solid #e2e8f0;background:#f8fafc;border-radius:10px;padding:0 12px;cursor:pointer;font-weight:700}
.toh-members{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}.toh-member{border:1px solid #e5e7eb;border-radius:14px;padding:12px;display:flex;align-items:center;gap:10px}.toh-member span{margin-left:auto;width:42px;height:42px;border-radius:50%;border:4px solid #22c55e;display:flex;align-items:center;justify-content:center}.toh-role-note{background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af;padding:12px 14px;border-radius:14px;margin-bottom:14px;font-weight:700}.toh-role-note.worker{background:#f5f3ff;border-color:#ddd6fe;color:#6d28d9}
.toh-task-head{padding:14px;border-radius:18px 18px 0 0;box-shadow:none}.toh-task-head>div{display:flex;gap:8px;align-items:center}.toh-table-wrap{border-radius:0 0 18px 18px;overflow:auto;box-shadow:0 14px 35px rgba(15,23,42,.08)}.toh-table{width:100%;min-width:850px;border-collapse:collapse}.toh-table th,.toh-table td{padding:13px 12px;border-bottom:1px solid #e5e7eb;text-align:left;font-size:13px}.toh-table th{background:#f8fafc;color:#475569;font-weight:900}.toh-task-row{cursor:pointer}.toh-task-row:hover,.toh-task-row.active{background:#eff6ff}
.toh-badge{display:inline-block;padding:5px 8px;border-radius:9px;font-size:11px;font-weight:800}.toh-badge.waiting{background:#dbeafe;color:#1d4ed8}.toh-badge.doing{background:#ede9fe;color:#7c3aed}.toh-badge.review{background:#ffedd5;color:#ea580c}.toh-badge.revision{background:#fef3c7;color:#92400e}.toh-badge.done{background:#dcfce7;color:#166534}.toh-badge.late{background:#fee2e2;color:#991b1b}.toh-badge.cancelled{background:#e5e7eb;color:#334155}
.toh-tag{display:inline-block;padding:6px 10px;border-radius:9px;background:#f1f5f9;font-size:12px;font-weight:800;margin:0 6px 6px 0}.toh-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}.toh-actions button{border:0;border-radius:12px;padding:12px;color:#fff;font-weight:900;cursor:pointer}.toh-actions .accept{background:#2563eb}.toh-actions .submit{background:#7c3aed}.toh-actions .approve{background:#16a34a}.toh-actions .revision{background:#f97316}.toh-actions .cancel{background:#e2e8f0;color:#334155}
.toh-staff-head{padding:18px;margin-bottom:14px}.toh-staff-head p{margin:4px 0 0;color:#64748b}.toh-role-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.toh-role-grid div{padding:16px}.toh-role-grid b{display:block;margin-bottom:6px}.toh-role-grid span{color:#64748b;font-size:13px}.staff-table{border-radius:18px}
.toh-modal{display:none;position:fixed;inset:0;z-index:999999;background:rgba(15,23,42,.58);align-items:center;justify-content:center}.toh-modal.show{display:flex}.toh-modal-card{width:560px;max-width:92vw;background:#fff;border-radius:24px;padding:24px;position:relative;box-shadow:0 30px 100px rgba(0,0,0,.35)}.toh-modal-close{position:absolute;right:18px;top:14px;border:0;background:transparent;font-size:26px;cursor:pointer}.toh-modal-card h2{font-size:26px;margin:0 0 18px}.toh-modal label{display:block;font-size:13px;font-weight:800;color:#334155;margin:10px 0 6px}
.toh-modal input,.toh-modal select,.toh-modal textarea{width:100%;margin-bottom:10px;border:1px solid #e5e7eb;border-radius:14px;padding:14px 16px;font-size:15px;min-height:54px;line-height:1.5;background:#fff;color:#0f172a;box-shadow:none!important;appearance:auto}.toh-modal select{padding-top:0!important;padding-bottom:0!important}.toh-modal textarea{min-height:120px;padding-top:14px!important;resize:vertical}.toh-modal form button{width:100%;border:0;background:#2563eb;color:#fff;padding:15px;border-radius:14px;font-size:16px;font-weight:900;cursor:pointer;margin-top:8px}
@media(max-width:1200px){.toh-content{grid-template-columns:1fr;height:auto;overflow:visible}.toh-detail{display:none}.toh-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.toh-role-grid{grid-template-columns:1fr 1fr}}@media(max-width:780px){.toh-app{grid-template-columns:1fr}.toh-content{display:block}.toh-stat-grid,.toh-role-grid{grid-template-columns:1fr}.toh-sidebar{position:static}.toh-topbar{height:auto;padding:12px;flex-wrap:wrap}}


/* PASSWORD RESET STAFF BUTTON */
.toh-reset-pass{
    border:0;
    background:#0f172a;
    color:#fff;
    border-radius:10px;
    padding:8px 12px;
    font-size:12px;
    font-weight:800;
    cursor:pointer;
    white-space:nowrap;
}
.toh-reset-pass:hover{
    background:#2563eb;
}
.staff-table .toh-table th,
.staff-table .toh-table td{
    white-space:nowrap;
}
.staff-table .toh-table td:first-child,
.staff-table .toh-table th:first-child{
    min-width:180px;
}
.staff-table .toh-table td:nth-child(2),
.staff-table .toh-table th:nth-child(2){
    min-width:240px;
}


/* STANDALONE APP MODE - NO WORDPRESS FEEL */
body.toh-standalone-page,
body.toh-standalone-page html{
    margin:0!important;
    padding:0!important;
    background:#f4f7fb!important;
    overflow:hidden!important;
}

body.toh-standalone-page #wpadminbar,
body.toh-standalone-page #header,
body.toh-standalone-page .header-wrapper,
body.toh-standalone-page .footer-wrapper,
body.toh-standalone-page #footer,
body.toh-standalone-page .page-title,
body.toh-standalone-page .entry-header,
body.toh-standalone-page .entry-title{
    display:none!important;
}

body.toh-standalone-page .page-wrapper,
body.toh-standalone-page #main,
body.toh-standalone-page .content-area,
body.toh-standalone-page .site-main,
body.toh-standalone-page .entry-content,
body.toh-standalone-page .container,
body.toh-standalone-page .row,
body.toh-standalone-page .col,
body.toh-standalone-page .large-12{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
}

.toh-full-front{
    width:100vw!important;
    height:100vh!important;
    overflow:hidden!important;
    display:block!important;
}

/* Beautiful standalone login */
.toh-app-login,
.toh-app-login *{
    box-sizing:border-box;
    font-family:Inter,"Segoe UI",Arial,sans-serif!important;
}

.toh-app-login{
    position:relative;
    min-height:100vh;
    width:100vw;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    background:
        radial-gradient(circle at 12% 12%, rgba(37,99,235,.35), transparent 28%),
        radial-gradient(circle at 88% 20%, rgba(124,58,237,.28), transparent 26%),
        linear-gradient(135deg,#06111f 0%,#0f172a 48%,#111827 100%);
    color:#fff;
}

.toh-login-bg{
    position:absolute;
    inset:0;
    pointer-events:none;
}

.toh-login-orb{
    position:absolute;
    width:260px;
    height:260px;
    border-radius:50%;
    filter:blur(24px);
    opacity:.45;
}

.toh-login-orb.one{
    left:7%;
    top:12%;
    background:#2563eb;
}

.toh-login-orb.two{
    right:8%;
    top:18%;
    background:#7c3aed;
}

.toh-login-orb.three{
    left:45%;
    bottom:5%;
    background:#22c55e;
    opacity:.18;
}

.toh-login-shell{
    position:relative;
    z-index:2;
    width:min(1120px,92vw);
    display:grid;
    grid-template-columns:1.05fr 440px;
    gap:34px;
    align-items:center;
}

.toh-login-left{
    padding:20px;
}

.toh-login-brand{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:58px;
}

.toh-login-logo{
    width:64px;
    height:64px;
    border-radius:20px;
    background:linear-gradient(135deg,#2563eb,#7c3aed);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    box-shadow:0 22px 50px rgba(37,99,235,.35);
}

.toh-login-brand h1{
    color:#fff!important;
    font-size:28px!important;
    margin:0!important;
    line-height:1.05!important;
    font-weight:900!important;
}

.toh-login-brand p{
    color:#cbd5e1!important;
    margin:5px 0 0!important;
    font-size:14px!important;
}

.toh-login-left h2{
    color:#fff!important;
    font-size:48px!important;
    line-height:1.05!important;
    margin:0 0 18px!important;
    max-width:650px;
    font-weight:950!important;
    letter-spacing:-1.2px!important;
}

.toh-login-desc{
    color:#cbd5e1!important;
    font-size:18px!important;
    line-height:1.65!important;
    max-width:620px;
    margin:0 0 28px!important;
}

.toh-login-features{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    max-width:660px;
}

.toh-login-features span{
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.10);
    border-radius:16px;
    padding:14px 16px;
    color:#e2e8f0;
    backdrop-filter:blur(14px);
    font-weight:700;
    font-size:14px;
}

.toh-login-card{
    background:rgba(255,255,255,.96);
    border:1px solid rgba(255,255,255,.65);
    border-radius:30px;
    padding:30px;
    box-shadow:0 34px 110px rgba(0,0,0,.42);
    color:#0f172a;
}

.toh-login-card-head{
    display:flex;
    gap:14px;
    align-items:center;
    margin-bottom:24px;
}

.toh-mini-logo{
    width:52px;
    height:52px;
    border-radius:16px;
    background:linear-gradient(135deg,#2563eb,#7c3aed);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    flex:0 0 auto;
}

.toh-login-card h3{
    margin:0!important;
    color:#0f172a!important;
    font-size:24px!important;
    font-weight:900!important;
}

.toh-login-card p{
    color:#64748b!important;
    margin:4px 0 0!important;
    font-size:13px!important;
}

.toh-login-card label{
    display:block;
    margin:14px 0 7px;
    color:#334155;
    font-size:13px;
    font-weight:900;
}

.toh-login-card input{
    width:100%;
    height:54px;
    border:1px solid #e2e8f0;
    border-radius:16px;
    background:#f8fafc;
    color:#0f172a;
    padding:0 16px;
    font-size:15px;
    outline:0;
    box-shadow:none!important;
}

.toh-login-card input:focus{
    border-color:#2563eb;
    background:#fff;
    box-shadow:0 0 0 4px rgba(37,99,235,.10)!important;
}

.toh-login-card button{
    width:100%;
    height:56px;
    border:0;
    border-radius:16px;
    margin-top:20px;
    background:linear-gradient(135deg,#2563eb,#1d4ed8);
    color:#fff;
    font-size:16px;
    font-weight:950;
    cursor:pointer;
    box-shadow:0 16px 36px rgba(37,99,235,.26);
}

.toh-login-help{
    margin-top:18px;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:16px;
    padding:13px 14px;
}

.toh-login-help span{
    display:block;
    font-size:12px;
    color:#64748b;
    margin-bottom:3px;
}

.toh-login-help b{
    color:#0f172a;
    font-size:13px;
}

.toh-top-user button#tohLogout{
    border:0;
    background:#0f172a;
    color:#fff;
    border-radius:10px;
    padding:8px 12px;
    font-weight:800;
    cursor:pointer;
    font-size:12px;
}

.toh-top-user button#tohLogout:hover{
    background:#ef4444;
}

@media(max-width:920px){
    .toh-login-shell{
        grid-template-columns:1fr;
        gap:20px;
    }
    .toh-login-left h2{
        font-size:34px!important;
    }
    .toh-login-brand{
        margin-bottom:30px;
    }
    .toh-login-features{
        grid-template-columns:1fr;
    }
}


/* PRO TABLE LAYOUT 4.1 */
.toh-full-front .toh-left{
    padding:16px !important;
}

.toh-full-front .task-section{
    background:#fff !important;
    border:1px solid #e5e7eb !important;
    border-radius:18px !important;
    overflow:hidden !important;
    box-shadow:0 18px 45px rgba(15,23,42,.07) !important;
}

.toh-full-front .toh-task-head{
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    padding:14px 16px !important;
    background:linear-gradient(180deg,#ffffff,#fbfdff) !important;
    border-bottom:1px solid #e5e7eb !important;
    min-height:62px !important;
}

.toh-full-front .toh-task-head h2{
    font-size:20px !important;
    line-height:1.1 !important;
    font-weight:900 !important;
    color:#0f172a !important;
    margin:0 !important;
    letter-spacing:-.3px !important;
}

.toh-full-front .toh-task-head > div{
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    flex-wrap:nowrap !important;
}

.toh-full-front .toh-task-head select{
    width:150px !important;
    height:34px !important;
    min-height:34px !important;
    border-radius:10px !important;
    border:1px solid #e2e8f0 !important;
    background:#f8fafc !important;
    color:#334155 !important;
    font-size:12px !important;
    font-weight:700 !important;
    padding:0 10px !important;
}

.toh-full-front .toh-task-head button{
    width:auto !important;
    height:34px !important;
    min-height:34px !important;
    border-radius:10px !important;
    border:1px solid #e2e8f0 !important;
    background:#fff !important;
    color:#334155 !important;
    font-size:12px !important;
    font-weight:800 !important;
    padding:0 12px !important;
    white-space:nowrap !important;
}

.toh-full-front .toh-task-head button:hover,
.toh-full-front .toh-task-head select:hover{
    border-color:#2563eb !important;
    color:#2563eb !important;
}

.toh-full-front .toh-table-wrap{
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    overflow:auto !important;
    background:#fff !important;
}

.toh-full-front .toh-table{
    width:100% !important;
    min-width:0 !important;
    table-layout:fixed !important;
    border-collapse:separate !important;
    border-spacing:0 !important;
}

.toh-full-front .toh-table th{
    padding:11px 12px !important;
    background:#f8fafc !important;
    border-bottom:1px solid #e5e7eb !important;
    color:#64748b !important;
    font-size:10.5px !important;
    line-height:1.15 !important;
    font-weight:900 !important;
    text-transform:uppercase !important;
    letter-spacing:.45px !important;
}

.toh-full-front .toh-table td{
    padding:12px 12px !important;
    border-bottom:1px solid #edf2f7 !important;
    color:#334155 !important;
    font-size:12px !important;
    line-height:1.35 !important;
    vertical-align:middle !important;
    background:#fff !important;
}

.toh-full-front .toh-table tbody tr:hover td,
.toh-full-front .toh-table tbody tr.active td{
    background:#eff6ff !important;
}

.toh-full-front .toh-table th:nth-child(1),
.toh-full-front .toh-table td:nth-child(1){
    width:92px !important;
}

.toh-full-front .toh-table th:nth-child(2),
.toh-full-front .toh-table td:nth-child(2){
    width:245px !important;
}

.toh-full-front .toh-table th:nth-child(3),
.toh-full-front .toh-table td:nth-child(3){
    width:145px !important;
}

.toh-full-front .toh-table th:nth-child(4),
.toh-full-front .toh-table td:nth-child(4){
    width:120px !important;
}

.toh-full-front .toh-table th:nth-child(5),
.toh-full-front .toh-table td:nth-child(5){
    width:150px !important;
}

.toh-full-front .toh-table th:nth-child(6),
.toh-full-front .toh-table td:nth-child(6){
    width:126px !important;
}

.toh-full-front .toh-table th:nth-child(7),
.toh-full-front .toh-table td:nth-child(7){
    width:110px !important;
}

.toh-full-front .toh-table td:nth-child(2) b{
    display:block !important;
    font-size:12.2px !important;
    line-height:1.32 !important;
    font-weight:800 !important;
    color:#0f172a !important;
}

.toh-full-front .toh-table td:nth-child(1){
    color:#475569 !important;
    font-weight:700 !important;
    font-size:11.5px !important;
}

.toh-full-front .toh-table td:nth-child(3),
.toh-full-front .toh-table td:nth-child(4),
.toh-full-front .toh-table td:nth-child(5),
.toh-full-front .toh-table td:nth-child(7){
    color:#475569 !important;
}

.toh-full-front .toh-badge{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:24px !important;
    max-width:104px !important;
    padding:4px 8px !important;
    border-radius:999px !important;
    font-size:10.5px !important;
    font-weight:900 !important;
    line-height:1.15 !important;
    white-space:normal !important;
    text-align:center !important;
}

.toh-full-front .toh-table-wrap::-webkit-scrollbar{
    height:8px !important;
    width:8px !important;
}

.toh-full-front .toh-table-wrap::-webkit-scrollbar-track{
    background:#f1f5f9 !important;
}

.toh-full-front .toh-table-wrap::-webkit-scrollbar-thumb{
    background:#cbd5e1 !important;
    border-radius:999px !important;
}

.toh-full-front .toh-table-wrap::-webkit-scrollbar-thumb:hover{
    background:#94a3b8 !important;
}

/* Compact right detail to match table */
.toh-full-front .toh-detail{
    padding:18px 18px 76px !important;
}

.toh-full-front .toh-detail h2{
    font-size:20px !important;
    font-weight:900 !important;
}

.toh-full-front #tohDetailBox h2{
    font-size:21px !important;
    line-height:1.25 !important;
    margin:8px 0 12px !important;
}

.toh-full-front #tohDetailBox h3{
    font-size:14px !important;
    margin:0 0 4px !important;
    color:#0f172a !important;
}

.toh-full-front #tohDetailBox h4{
    font-size:13px !important;
    font-weight:900 !important;
    margin:18px 0 6px !important;
}

.toh-full-front #tohDetailBox p{
    font-size:13px !important;
    line-height:1.5 !important;
    color:#334155 !important;
}

.toh-full-front .toh-tag{
    font-size:11px !important;
    padding:6px 9px !important;
    border-radius:9px !important;
}

.toh-full-front .toh-actions{
    gap:8px !important;
}

.toh-full-front .toh-actions button{
    min-height:46px !important;
    padding:9px 10px !important;
    border-radius:12px !important;
    font-size:12px !important;
}

/* Avoid giant horizontal overflow caused by theme wrappers */
.toh-full-front .toh-content{
    grid-template-columns:minmax(620px, 1fr) 360px !important;
}

.toh-full-front .toh-detail{
    width:360px !important;
}

@media(max-width:1400px){
    .toh-full-front .toh-content{
        grid-template-columns:minmax(560px,1fr) 340px !important;
    }
    .toh-full-front .toh-detail{
        width:340px !important;
    }
    .toh-full-front .toh-table th:nth-child(2),
    .toh-full-front .toh-table td:nth-child(2){
        width:220px !important;
    }
}

@media(max-width:1100px){
    .toh-full-front .toh-content{
        grid-template-columns:1fr !important;
    }
    .toh-full-front .toh-detail{
        display:none !important;
    }
    .toh-full-front .toh-table{
        min-width:840px !important;
    }
}


/* CREDENTIAL RESULT CARD - NO BROWSER ALERT */
.toh-credential-card{
    margin:16px 0 18px;
    border:1px solid #bfdbfe;
    background:linear-gradient(180deg,#eff6ff,#ffffff);
    border-radius:18px;
    padding:16px;
    box-shadow:0 18px 45px rgba(37,99,235,.12);
}

.toh-credential-card h3{
    margin:0 0 10px!important;
    font-size:18px!important;
    font-weight:900!important;
    color:#1e40af!important;
}

.toh-credential-card p{
    margin:6px 0!important;
    color:#334155!important;
    font-size:14px!important;
}

.toh-credential-box{
    margin-top:12px;
    background:#0f172a;
    color:#fff;
    border-radius:14px;
    padding:14px;
    font-family:Consolas,Monaco,monospace!important;
    font-size:14px;
    line-height:1.65;
    user-select:text;
    white-space:pre-wrap;
}

.toh-credential-actions{
    display:flex;
    gap:10px;
    margin-top:12px;
}

.toh-credential-actions button{
    border:0;
    border-radius:12px;
    padding:10px 14px;
    font-weight:900;
    cursor:pointer;
}

.toh-copy-credential{
    background:#2563eb;
    color:#fff;
}

.toh-close-credential{
    background:#e2e8f0;
    color:#334155;
}

.toh-inline-notice{
    margin:12px 0;
    padding:12px 14px;
    border-radius:14px;
    background:#f0fdf4;
    border:1px solid #bbf7d0;
    color:#166534;
    font-weight:800;
}


/* UPLOAD + RETURN FLOW */
.toh-file-link{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin:6px 0 12px;
    padding:9px 12px;
    border-radius:12px;
    background:#eff6ff;
    color:#1d4ed8;
    text-decoration:none;
    font-size:13px;
    font-weight:800;
    word-break:break-all;
}
.toh-file-empty{
    color:#94a3b8;
    font-size:13px;
    margin:6px 0 12px;
}
.toh-toast-db{
    position:fixed;
    right:24px;
    bottom:24px;
    z-index:9999999;
    background:#0f172a;
    color:#fff;
    padding:14px 18px;
    border-radius:16px;
    box-shadow:0 20px 70px rgba(0,0,0,.28);
    font-weight:800;
}
#tohReturnModal .toh-modal-card,
#tohCreateModal .toh-modal-card{
    max-height:92vh;
    overflow:auto;
}
.toh-modal input[type=file]{
    padding:12px;
    background:#f8fafc;
    cursor:pointer;
}
.toh-modal input[type=file]::file-selector-button{
    border:0;
    background:#2563eb;
    color:#fff;
    border-radius:10px;
    padding:9px 12px;
    font-weight:800;
    margin-right:12px;
    cursor:pointer;
}


/* APP POPUP + TIMER SYSTEM 4.4 */
.toh-app-toast{
    position:fixed;
    right:24px;
    bottom:24px;
    z-index:99999999;
    max-width:360px;
    background:#0f172a;
    color:#fff;
    border-radius:16px;
    padding:14px 18px;
    box-shadow:0 24px 80px rgba(0,0,0,.34);
    font-weight:800;
    font-size:14px;
}

.toh-app-dialog{
    position:fixed;
    inset:0;
    z-index:99999998;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(15,23,42,.58);
    backdrop-filter:blur(6px);
}

.toh-app-dialog-card{
    width:420px;
    max-width:92vw;
    background:#fff;
    color:#0f172a;
    border-radius:22px;
    padding:22px;
    box-shadow:0 30px 100px rgba(0,0,0,.38);
}

.toh-app-dialog-card h3{
    margin:0 0 8px!important;
    font-size:22px!important;
    font-weight:950!important;
    color:#0f172a!important;
}

.toh-app-dialog-card p{
    color:#64748b!important;
    margin:0 0 16px!important;
    font-size:14px!important;
}

.toh-app-dialog-card input{
    width:100%!important;
    height:52px!important;
    border:1px solid #e2e8f0!important;
    border-radius:14px!important;
    padding:0 14px!important;
    font-size:15px!important;
    outline:0!important;
    box-shadow:none!important;
}

.toh-app-dialog-actions{
    display:flex;
    gap:10px;
    margin-top:16px;
}

.toh-app-dialog-actions button{
    flex:1;
    border:0;
    border-radius:13px;
    padding:12px 14px;
    font-weight:900;
    cursor:pointer;
}

.toh-dialog-ok{
    background:#2563eb;
    color:#fff;
}

.toh-dialog-cancel{
    background:#e2e8f0;
    color:#334155;
}

.toh-time-cell{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:78px;
    height:26px;
    padding:0 8px;
    border-radius:999px;
    background:#f1f5f9;
    color:#334155;
    font-size:11px;
    font-weight:900;
    white-space:nowrap;
}

.toh-time-cell.waiting{
    background:#dbeafe;
    color:#1d4ed8;
}

.toh-time-cell.countdown{
    background:#dcfce7;
    color:#166534;
}

.toh-time-cell.late{
    background:#fee2e2;
    color:#991b1b;
}

.toh-full-front .toh-table th:nth-child(8),
.toh-full-front .toh-table td:nth-child(8){
    width:110px!important;
}

.toh-full-front .toh-table th:nth-child(7),
.toh-full-front .toh-table td:nth-child(7){
    width:125px!important;
}


/* REVISION REQUEST POPUP */
.toh-revision-block{
    margin-top:14px;
    background:#fff7ed;
    border:1px solid #fed7aa;
    border-radius:14px;
    padding:12px;
}
.toh-revision-block h4{
    margin:0 0 6px!important;
    color:#9a3412!important;
}
.toh-revision-block p{
    margin:0 0 8px!important;
    color:#7c2d12!important;
}
.toh-revision-block a{
    display:inline-flex;
    background:#ffedd5;
    color:#c2410c;
    border-radius:10px;
    padding:8px 10px;
    text-decoration:none;
    font-weight:800;
    font-size:12px;
}
#tohRevisionModal .toh-modal-card{
    max-height:92vh;
    overflow:auto;
}


/* FULL TABLE FIT + REVISION FIX 4.6 */
.toh-full-front .toh-content{
    grid-template-columns:minmax(0,1fr) 360px!important;
}

.toh-full-front .toh-left{
    min-width:0!important;
    overflow:auto!important;
}

.toh-full-front .task-section{
    width:100%!important;
    max-width:100%!important;
}

.toh-full-front .toh-table-wrap{
    overflow-x:hidden!important;
    width:100%!important;
}

.toh-full-front .toh-table{
    width:100%!important;
    min-width:0!important;
    table-layout:fixed!important;
}

.toh-full-front .toh-table th,
.toh-full-front .toh-table td{
    font-size:11px!important;
    padding:10px 8px!important;
    white-space:normal!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}

.toh-full-front .toh-table th:nth-child(1),
.toh-full-front .toh-table td:nth-child(1){
    width:90px!important;
}

.toh-full-front .toh-table th:nth-child(2),
.toh-full-front .toh-table td:nth-child(2){
    width:170px!important;
}

.toh-full-front .toh-table th:nth-child(3),
.toh-full-front .toh-table td:nth-child(3){
    width:125px!important;
}

.toh-full-front .toh-table th:nth-child(4),
.toh-full-front .toh-table td:nth-child(4){
    width:80px!important;
}

.toh-full-front .toh-table th:nth-child(5),
.toh-full-front .toh-table td:nth-child(5){
    width:125px!important;
}

.toh-full-front .toh-table th:nth-child(6),
.toh-full-front .toh-table td:nth-child(6){
    width:112px!important;
}

.toh-full-front .toh-table th:nth-child(7),
.toh-full-front .toh-table td:nth-child(7){
    width:110px!important;
}

.toh-full-front .toh-table th:nth-child(8),
.toh-full-front .toh-table td:nth-child(8){
    width:105px!important;
}

.toh-full-front .toh-table td:nth-child(2) b{
    font-size:11.2px!important;
    line-height:1.25!important;
    display:block!important;
}

.toh-full-front .toh-badge{
    font-size:10px!important;
    padding:4px 7px!important;
    max-width:92px!important;
}

.toh-full-front .toh-time-cell{
    min-width:72px!important;
    font-size:10px!important;
    padding:0 7px!important;
}

.toh-full-front .toh-detail{
    width:360px!important;
    min-width:360px!important;
}

#tohRevisionModal .toh-modal-card{
    max-height:92vh;
    overflow:auto;
}

.toh-revision-block{
    margin-top:14px;
    background:#fff7ed;
    border:1px solid #fed7aa;
    border-radius:14px;
    padding:12px;
}

.toh-revision-block h4{
    margin:0 0 6px!important;
    color:#9a3412!important;
}

.toh-revision-block p{
    margin:0 0 8px!important;
    color:#7c2d12!important;
}

.toh-revision-block a{
    display:inline-flex;
    background:#ffedd5;
    color:#c2410c;
    border-radius:10px;
    padding:8px 10px;
    text-decoration:none;
    font-weight:800;
    font-size:12px;
}

@media(max-width:1280px){
    .toh-full-front .toh-content{
        grid-template-columns:1fr!important;
    }
    .toh-full-front .toh-detail{
        display:none!important;
    }
    .toh-full-front .toh-table-wrap{
        overflow-x:auto!important;
    }
    .toh-full-front .toh-table{
        min-width:880px!important;
    }
}


/* SIDEBAR COLLAPSE + UTC7 TIME FIX UI 4.7 */
.toh-full-front.sidebar-collapsed .toh-app{
    grid-template-columns:84px 1fr!important;
}

.toh-full-front.sidebar-collapsed .toh-sidebar{
    width:84px!important;
    min-width:84px!important;
    padding:16px 10px!important;
}

.toh-full-front.sidebar-collapsed .toh-brand div:not(.toh-logo),
.toh-full-front.sidebar-collapsed .toh-nav a span,
.toh-full-front.sidebar-collapsed .toh-user div:not(.toh-avatar),
.toh-full-front.sidebar-collapsed .toh-new-order{
    display:none!important;
}

.toh-full-front.sidebar-collapsed .toh-logo{
    width:48px!important;
    height:48px!important;
    margin:0 auto!important;
}

.toh-full-front.sidebar-collapsed .toh-nav a{
    justify-content:center!important;
    text-align:center!important;
    padding:14px 0!important;
    font-size:0!important;
}

.toh-full-front.sidebar-collapsed .toh-nav a::first-letter{
    font-size:18px!important;
}

.toh-full-front.sidebar-collapsed .toh-nav a{
    font-size:20px!important;
    line-height:1!important;
}

.toh-full-front.sidebar-collapsed .toh-user{
    justify-content:center!important;
    padding:12px 0!important;
}

.toh-menu{
    width:42px!important;
    height:42px!important;
    border-radius:12px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
}

.toh-menu:hover{
    background:#f1f5f9!important;
}

.toh-timezone-note{
    display:inline-flex;
    align-items:center;
    gap:6px;
    height:28px;
    border-radius:999px;
    background:#ecfdf5;
    color:#047857;
    padding:0 10px;
    font-size:11px;
    font-weight:900;
    margin-left:8px;
}

.toh-full-front .toh-table td:nth-child(7){
    font-size:10.5px!important;
    color:#475569!important;
}


/* BEAUTIFUL COLLAPSED SIDEBAR 4.8 */
.toh-full-front.sidebar-collapsed .toh-app{
    grid-template-columns:86px 1fr!important;
}

.toh-full-front.sidebar-collapsed .toh-sidebar{
    width:86px!important;
    min-width:86px!important;
    padding:18px 10px!important;
    align-items:center!important;
    gap:16px!important;
}

.toh-full-front.sidebar-collapsed .toh-brand{
    width:100%!important;
    justify-content:center!important;
    margin-bottom:6px!important;
}

.toh-full-front.sidebar-collapsed .toh-brand > div:not(.toh-logo){
    display:none!important;
}

.toh-full-front.sidebar-collapsed .toh-logo{
    width:56px!important;
    height:56px!important;
    border-radius:18px!important;
    margin:0 auto!important;
    box-shadow:0 18px 36px rgba(37,99,235,.26)!important;
}

.toh-full-front.sidebar-collapsed .toh-new-order{
    width:56px!important;
    height:56px!important;
    min-height:56px!important;
    padding:0!important;
    border-radius:18px!important;
    font-size:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    position:relative!important;
    box-shadow:0 16px 36px rgba(37,99,235,.28)!important;
}

.toh-full-front.sidebar-collapsed .toh-new-order::before{
    content:"＋"!important;
    font-size:30px!important;
    line-height:1!important;
    font-weight:900!important;
    color:#fff!important;
}

.toh-full-front.sidebar-collapsed .toh-nav{
    width:100%!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    gap:10px!important;
}

.toh-full-front.sidebar-collapsed .toh-nav a{
    width:56px!important;
    height:56px!important;
    padding:0!important;
    border-radius:18px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:0!important;
    line-height:1!important;
    position:relative!important;
    overflow:visible!important;
}

.toh-full-front.sidebar-collapsed .toh-nav a::before{
    content:attr(data-icon)!important;
    font-size:22px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    height:100%!important;
}

.toh-full-front.sidebar-collapsed .toh-nav a:hover::after{
    content:attr(data-label)!important;
    position:absolute!important;
    left:68px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    background:#0f172a!important;
    color:#fff!important;
    border-radius:10px!important;
    padding:8px 11px!important;
    font-size:12px!important;
    font-weight:800!important;
    white-space:nowrap!important;
    z-index:9999!important;
    box-shadow:0 12px 32px rgba(15,23,42,.22)!important;
}

.toh-full-front.sidebar-collapsed .toh-nav a:hover::before{
    transform:scale(1.06)!important;
}

.toh-full-front.sidebar-collapsed .toh-user{
    width:56px!important;
    height:56px!important;
    padding:0!important;
    border-radius:18px!important;
    justify-content:center!important;
    margin-top:auto!important;
    position:relative!important;
}

.toh-full-front.sidebar-collapsed .toh-user .toh-avatar{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    font-size:16px!important;
}

.toh-full-front.sidebar-collapsed .toh-user div:not(.toh-avatar){
    display:none!important;
}

.toh-full-front.sidebar-collapsed .toh-user::after{
    content:""!important;
    position:absolute!important;
    right:12px!important;
    bottom:10px!important;
    width:8px!important;
    height:8px!important;
    background:#22c55e!important;
    border:2px solid #071529!important;
    border-radius:999px!important;
}

.toh-full-front.sidebar-collapsed .toh-user:hover::before{
    content:attr(data-user)!important;
    position:absolute!important;
    left:68px!important;
    bottom:6px!important;
    background:#0f172a!important;
    color:#fff!important;
    border-radius:10px!important;
    padding:8px 11px!important;
    font-size:12px!important;
    font-weight:800!important;
    white-space:nowrap!important;
    z-index:9999!important;
    box-shadow:0 12px 32px rgba(15,23,42,.22)!important;
}

.toh-full-front.sidebar-collapsed .toh-nav a.active{
    background:#12345a!important;
    box-shadow:inset 0 0 0 1px rgba(96,165,250,.18)!important;
}

.toh-full-front.sidebar-collapsed .toh-nav a.active::before{
    filter:drop-shadow(0 0 8px rgba(96,165,250,.35))!important;
}

.toh-full-front.sidebar-collapsed .toh-sidebar::-webkit-scrollbar{
    width:0!important;
}


/* KPI DASHBOARD 4.9 */
.toh-kpi-head{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:18px;
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:center;
    box-shadow:0 14px 35px rgba(15,23,42,.06);
    margin-bottom:14px;
}

.toh-kpi-head h2{
    margin:0 0 5px!important;
    color:#0f172a!important;
    font-size:24px!important;
    font-weight:950!important;
}

.toh-kpi-head p{
    margin:0!important;
    color:#64748b!important;
    font-size:14px!important;
}

.toh-kpi-head span{
    background:#ecfdf5;
    color:#047857;
    border-radius:999px;
    padding:8px 12px;
    font-size:12px;
    font-weight:900;
    white-space:nowrap;
}

.toh-kpi-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    margin-bottom:16px;
}

.toh-kpi-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:16px;
    box-shadow:0 14px 35px rgba(15,23,42,.06);
}

.toh-kpi-person{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:14px;
}

.toh-kpi-person b{
    display:block;
    color:#0f172a;
    font-size:15px;
    font-weight:900;
}

.toh-kpi-person small{
    display:block;
    color:#64748b;
    font-size:12px;
}

.toh-kpi-person strong{
    margin-left:auto;
    width:48px;
    height:48px;
    border:4px solid #22c55e;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#166534;
    font-size:13px;
    font-weight:900;
}

.toh-kpi-bars{
    display:grid;
    gap:10px;
}

.toh-kpi-bars div{
    display:grid;
    grid-template-columns:90px 1fr 28px;
    gap:10px;
    align-items:center;
}

.toh-kpi-bars span{
    color:#475569;
    font-size:12px;
    font-weight:800;
}

.toh-kpi-bars div::before{
    content:"";
    display:block;
    grid-column:2;
    grid-row:1;
    height:9px;
    background:#f1f5f9;
    border-radius:999px;
}

.toh-kpi-bars em{
    display:block;
    grid-column:2;
    grid-row:1;
    height:9px;
    border-radius:999px;
    background:#2563eb;
    min-width:4px;
    z-index:2;
}

.toh-kpi-bars em.done{
    background:#16a34a;
}

.toh-kpi-bars em.pending{
    background:#f59e0b;
}

.toh-kpi-bars em.late{
    background:#ef4444;
}

.toh-kpi-bars b{
    font-size:12px;
    color:#0f172a;
    font-weight:900;
}

.kpi-table{
    border-radius:18px!important;
    overflow:auto!important;
}

.kpi-table .toh-table{
    min-width:920px!important;
}

.toh-kpi-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:34px;
    height:24px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
    background:#dbeafe;
    color:#1d4ed8;
}

.toh-kpi-pill.done{
    background:#dcfce7;
    color:#166534;
}

.toh-kpi-pill.pending{
    background:#fef3c7;
    color:#92400e;
}

.toh-kpi-pill.late{
    background:#fee2e2;
    color:#991b1b;
}

@media(max-width:1000px){
    .toh-kpi-grid{
        grid-template-columns:1fr;
    }
}


/* KPI VIEW ENSURE */
.kpi-section{
    width:100%;
}


/* KPI CONNECTED STAFF FIX 5.1 */
.toh-kpi-live{
    padding:0;
    width:100%;
}
.toh-kpi-empty{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:28px;
    box-shadow:0 14px 35px rgba(15,23,42,.06);
}
.toh-kpi-empty h3{
    margin:0 0 8px!important;
    font-size:22px!important;
    font-weight:900!important;
}
.toh-kpi-empty p{
    margin:0!important;
    color:#64748b!important;
}


/* DEPARTMENT MANAGEMENT + USER LOGIN STAFF 5.2 */
.toh-department-page{
    width:100%;
}
.toh-dept-head{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:18px;
    box-shadow:0 14px 35px rgba(15,23,42,.06);
    margin-bottom:14px;
}
.toh-dept-head h2{
    margin:0 0 5px!important;
    color:#0f172a!important;
    font-size:24px!important;
    font-weight:950!important;
}
.toh-dept-head p{
    margin:0!important;
    color:#64748b!important;
}
.toh-dept-form{
    display:flex;
    gap:10px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:14px;
    box-shadow:0 14px 35px rgba(15,23,42,.06);
    margin-bottom:14px;
}
.toh-dept-form input{
    flex:1;
    height:44px;
    border:1px solid #e2e8f0;
    border-radius:12px;
    padding:0 14px;
    outline:0;
    box-shadow:none!important;
}
.toh-dept-form button{
    border:0;
    background:#2563eb;
    color:#fff;
    border-radius:12px;
    padding:0 16px;
    font-weight:900;
    cursor:pointer;
}
.toh-dept-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}
.toh-dept-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:16px;
    box-shadow:0 14px 35px rgba(15,23,42,.06);
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
}
.toh-dept-card b{
    display:block;
    color:#0f172a;
    font-size:16px;
    font-weight:950;
}
.toh-dept-card span{
    display:block;
    color:#64748b;
    font-size:12px;
    margin-top:4px;
}
.toh-dept-card button{
    border:0;
    background:#fee2e2;
    color:#991b1b;
    border-radius:10px;
    padding:9px 12px;
    font-size:12px;
    font-weight:900;
    cursor:pointer;
}
.toh-dept-card button:hover{
    background:#ef4444;
    color:#fff;
}
@media(max-width:1000px){
    .toh-dept-grid{
        grid-template-columns:1fr;
    }
    .toh-dept-form{
        flex-direction:column;
    }
    .toh-dept-form button{
        height:44px;
    }
}


/* CLEAN STAFF FORM 5.3 */
#tohStaffModal .toh-modal-card{
    width:520px!important;
    max-width:92vw!important;
    border-radius:26px!important;
    padding:26px!important;
}

#tohStaffModal .toh-modal-card h2{
    font-size:26px!important;
    margin-bottom:20px!important;
    letter-spacing:-.4px!important;
}

#tohStaffModal .toh-modal-card form{
    display:grid!important;
    gap:12px!important;
}

#tohStaffModal .toh-modal-card label{
    margin:0 0 -4px!important;
    font-size:13px!important;
    color:#334155!important;
    font-weight:900!important;
}

#tohStaffModal .toh-modal-card input:not([type="hidden"]),
#tohStaffModal .toh-modal-card select{
    height:54px!important;
    margin:0!important;
    border-radius:15px!important;
    background:#fff!important;
    border:1px solid #e2e8f0!important;
    font-size:15px!important;
}

#tohStaffModal .toh-modal-card input:not([type="hidden"]):focus,
#tohStaffModal .toh-modal-card select:focus{
    border-color:#2563eb!important;
    box-shadow:0 0 0 4px rgba(37,99,235,.10)!important;
}

#tohStaffModal .toh-modal-card form button{
    height:58px!important;
    margin-top:8px!important;
    border-radius:16px!important;
    font-size:16px!important;
    box-shadow:0 16px 36px rgba(37,99,235,.24)!important;
}

#tohStaffModal .toh-modal-card::after{
    content:"Mật khẩu sẽ được tự sinh sau khi tạo tài khoản. Email nội bộ cũng được tạo tự động.";
    display:block;
    margin-top:14px;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    color:#64748b;
    border-radius:14px;
    padding:12px 14px;
    font-size:12px;
    line-height:1.45;
    font-weight:700;
}


/* INLINE ACCOUNT RESULT 5.4 */
.toh-account-result{
    background:#ffffff;
    border:1px solid #dbeafe;
    border-radius:22px;
    padding:20px;
    margin-bottom:18px;
    box-shadow:0 20px 45px rgba(15,23,42,.08);
    animation:tohFadeUp .25s ease;
}

.toh-account-result-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:16px;
}

.toh-account-result-head h3{
    margin:0!important;
    color:#0f172a!important;
    font-size:24px!important;
    font-weight:900!important;
}

.toh-close-account-result{
    width:38px;
    height:38px;
    border-radius:12px;
    border:0;
    background:#f1f5f9;
    cursor:pointer;
    font-size:24px;
    font-weight:900;
}

.toh-account-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    margin-bottom:16px;
}

.toh-account-item{
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:16px;
    padding:14px;
}

.toh-account-item span{
    display:block;
    color:#64748b;
    font-size:12px;
    margin-bottom:8px;
    font-weight:800;
}

.toh-account-item strong{
    color:#0f172a;
    font-size:18px;
    font-weight:900;
    word-break:break-all;
}

.toh-copy-account{
    width:100%;
    height:52px;
    border-radius:16px;
    border:0;
    background:#2563eb;
    color:#fff;
    font-size:15px;
    font-weight:900;
    cursor:pointer;
    box-shadow:0 16px 35px rgba(37,99,235,.25);
}

@keyframes tohFadeUp{
    from{
        opacity:0;
        transform:translateY(10px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}


/* STAFF FILTER 5.4 */
.toh-staff-filter{
    display:grid;
    grid-template-columns:150px minmax(220px,1fr) 160px 170px 90px;
    gap:10px;
    align-items:center;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:14px;
    margin:14px 0;
    box-shadow:0 14px 35px rgba(15,23,42,.06);
}

.toh-staff-count{
    height:44px;
    border-radius:14px;
    background:#eff6ff;
    border:1px solid #bfdbfe;
    color:#1d4ed8;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:0 12px;
}

.toh-staff-count b{
    font-size:12px;
    font-weight:900;
}

.toh-staff-count span{
    min-width:30px;
    height:28px;
    border-radius:999px;
    background:#2563eb;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:13px;
    font-weight:900;
}

.toh-staff-filter input,
.toh-staff-filter select{
    height:44px;
    border:1px solid #e2e8f0;
    background:#f8fafc;
    border-radius:14px;
    padding:0 12px;
    color:#0f172a;
    font-size:13px;
    font-weight:700;
    outline:0;
    box-shadow:none!important;
}

.toh-staff-filter input:focus,
.toh-staff-filter select:focus{
    border-color:#2563eb;
    background:#fff;
    box-shadow:0 0 0 4px rgba(37,99,235,.10)!important;
}

.toh-staff-filter button{
    height:44px;
    border:0;
    border-radius:14px;
    background:#0f172a;
    color:#fff;
    font-size:12px;
    font-weight:900;
    cursor:pointer;
}

.toh-staff-filter button:hover{
    background:#2563eb;
}

.toh-staff-row.is-hidden{
    display:none!important;
}

@media(max-width:1100px){
    .toh-staff-filter{
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:680px){
    .toh-staff-filter{
        grid-template-columns:1fr;
    }
}


/* KPI WORKING FINAL 5.5 */
.kpi-section{
    width:100%;
    display:none;
}
.toh-kpi-live{
    width:100%;
}
.toh-kpi-head{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:18px;
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:center;
    box-shadow:0 14px 35px rgba(15,23,42,.06);
    margin-bottom:14px;
}
.toh-kpi-head h2{
    margin:0 0 5px!important;
    color:#0f172a!important;
    font-size:24px!important;
    font-weight:950!important;
}
.toh-kpi-head p{
    margin:0!important;
    color:#64748b!important;
    font-size:14px!important;
}
.toh-kpi-head span{
    background:#ecfdf5;
    color:#047857;
    border-radius:999px;
    padding:8px 12px;
    font-size:12px;
    font-weight:900;
    white-space:nowrap;
}
.toh-kpi-summary{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    margin-bottom:14px;
}
.toh-kpi-summary div{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:14px;
    box-shadow:0 12px 30px rgba(15,23,42,.06);
}
.toh-kpi-summary span{
    display:block;
    color:#64748b;
    font-size:12px;
    font-weight:900;
    margin-bottom:8px;
}
.toh-kpi-summary b{
    color:#0f172a;
    font-size:28px;
    font-weight:950;
}
.toh-kpi-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    margin-bottom:16px;
}
.toh-kpi-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:16px;
    box-shadow:0 14px 35px rgba(15,23,42,.06);
}
.toh-kpi-person{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:14px;
}
.toh-kpi-person b{
    display:block;
    color:#0f172a;
    font-size:15px;
    font-weight:900;
}
.toh-kpi-person small{
    display:block;
    color:#64748b;
    font-size:12px;
}
.toh-kpi-person strong{
    margin-left:auto;
    width:48px;
    height:48px;
    border:4px solid #22c55e;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#166534;
    font-size:13px;
    font-weight:900;
}
.toh-kpi-bars{
    display:grid;
    gap:10px;
}
.toh-kpi-bars div{
    display:grid;
    grid-template-columns:90px 1fr 28px;
    gap:10px;
    align-items:center;
}
.toh-kpi-bars span{
    color:#475569;
    font-size:12px;
    font-weight:800;
}
.toh-kpi-bars div::before{
    content:"";
    display:block;
    grid-column:2;
    grid-row:1;
    height:9px;
    background:#f1f5f9;
    border-radius:999px;
}
.toh-kpi-bars em{
    display:block;
    grid-column:2;
    grid-row:1;
    height:9px;
    border-radius:999px;
    background:#2563eb;
    min-width:4px;
    z-index:2;
}
.toh-kpi-bars em.done{background:#16a34a;}
.toh-kpi-bars em.pending{background:#f59e0b;}
.toh-kpi-bars em.late{background:#ef4444;}
.toh-kpi-bars b{
    font-size:12px;
    color:#0f172a;
    font-weight:900;
}
.kpi-table{
    border-radius:18px!important;
    overflow:auto!important;
}
.kpi-table .toh-table{
    min-width:920px!important;
}
.toh-kpi-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:34px;
    height:24px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
    background:#dbeafe;
    color:#1d4ed8;
}
.toh-kpi-pill.done{background:#dcfce7;color:#166534;}
.toh-kpi-pill.pending{background:#fef3c7;color:#92400e;}
.toh-kpi-pill.late{background:#fee2e2;color:#991b1b;}
.toh-kpi-empty{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:28px;
    box-shadow:0 14px 35px rgba(15,23,42,.06);
}
@media(max-width:1000px){
    .toh-kpi-grid,.toh-kpi-summary{grid-template-columns:1fr;}
}


/* STAFF DUPLICATE FIX 5.6 */
.toh-staff-row.toh-duplicate-hidden{
    display:none!important;
}
.toh-duplicate-note{
    background:#fff7ed;
    border:1px solid #fed7aa;
    color:#9a3412;
    border-radius:14px;
    padding:11px 14px;
    margin:0 0 12px;
    font-size:13px;
    font-weight:800;
}


/* PERFORMANCE MEMBER UI FIX 5.7 */
.toh-full-front .toh-panel{
    border-radius:20px!important;
    padding:18px!important;
    background:#fff!important;
    border:1px solid #e5e7eb!important;
    box-shadow:0 18px 45px rgba(15,23,42,.07)!important;
}

.toh-full-front .toh-panel-head{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:16px!important;
    margin-bottom:16px!important;
}

.toh-full-front .toh-panel-head h3{
    margin:0!important;
    font-size:22px!important;
    line-height:1.2!important;
    font-weight:950!important;
    color:#0f172a!important;
    letter-spacing:-.35px!important;
}

.toh-full-front .toh-panel-head button,
.toh-full-front .toh-show-staff{
    width:auto!important;
    min-width:96px!important;
    height:40px!important;
    padding:0 14px!important;
    border-radius:12px!important;
    background:#f8fafc!important;
    border:1px solid #e2e8f0!important;
    color:#0f172a!important;
    font-size:12px!important;
    font-weight:900!important;
    line-height:1!important;
    white-space:nowrap!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-transform:none!important;
}

.toh-full-front .toh-members{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:14px!important;
    margin-top:0!important;
}

.toh-full-front .toh-member{
    min-height:86px!important;
    padding:14px!important;
    border-radius:18px!important;
    background:linear-gradient(180deg,#ffffff,#fbfdff)!important;
    border:1px solid #e5e7eb!important;
    display:grid!important;
    grid-template-columns:46px minmax(0,1fr) 52px!important;
    align-items:center!important;
    gap:12px!important;
    box-shadow:0 10px 28px rgba(15,23,42,.045)!important;
}

.toh-full-front .toh-member .toh-face{
    width:46px!important;
    height:46px!important;
    border-radius:50%!important;
    background:#e8eef6!important;
    color:#0f172a!important;
    font-size:15px!important;
    font-weight:950!important;
    flex:0 0 auto!important;
}

.toh-full-front .toh-member div:nth-child(2){
    min-width:0!important;
    overflow:hidden!important;
}

.toh-full-front .toh-member b{
    display:block!important;
    color:#0f172a!important;
    font-size:15px!important;
    font-weight:900!important;
    line-height:1.25!important;
    margin:0 0 3px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}

.toh-full-front .toh-member small{
    display:block!important;
    color:#64748b!important;
    font-size:12px!important;
    line-height:1.3!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}

.toh-full-front .toh-member span{
    margin-left:0!important;
    width:52px!important;
    height:52px!important;
    border-radius:50%!important;
    border:4px solid #22c55e!important;
    background:#fff!important;
    color:#0f172a!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:13px!important;
    font-weight:900!important;
    box-shadow:inset 0 0 0 3px #f8fafc!important;
}

.toh-full-front .toh-member:nth-child(2) span{
    border-color:#16a34a!important;
}

.toh-full-front .toh-member:nth-child(3) span{
    border-color:#22c55e!important;
}

.toh-full-front .toh-member:hover{
    transform:translateY(-1px)!important;
    box-shadow:0 16px 36px rgba(15,23,42,.08)!important;
    border-color:#bfdbfe!important;
}

@media(max-width:1180px){
    .toh-full-front .toh-members{
        grid-template-columns:1fr!important;
    }
}


/* KPI DES CONNECTED 5.8 */
.kpi-section-real{
    width:100%;
}

.toh-kpi-head{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:18px;
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:center;
    box-shadow:0 14px 35px rgba(15,23,42,.06);
    margin-bottom:14px;
}

.toh-kpi-head h2{
    margin:0 0 5px!important;
    color:#0f172a!important;
    font-size:24px!important;
    font-weight:950!important;
}

.toh-kpi-head p{
    margin:0!important;
    color:#64748b!important;
    font-size:14px!important;
}

.toh-kpi-head span{
    background:#ecfdf5;
    color:#047857;
    border-radius:999px;
    padding:8px 12px;
    font-size:12px;
    font-weight:900;
    white-space:nowrap;
}

.toh-kpi-summary{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    margin-bottom:14px;
}

.toh-kpi-summary div{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:14px;
    box-shadow:0 12px 30px rgba(15,23,42,.06);
}

.toh-kpi-summary span{
    display:block;
    color:#64748b;
    font-size:12px;
    font-weight:900;
    margin-bottom:8px;
}

.toh-kpi-summary b{
    color:#0f172a;
    font-size:28px;
    font-weight:950;
}

.toh-kpi-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    margin-bottom:16px;
}

.toh-kpi-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:16px;
    box-shadow:0 14px 35px rgba(15,23,42,.06);
}

.toh-kpi-person{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:14px;
}

.toh-kpi-person b{
    display:block;
    color:#0f172a;
    font-size:15px;
    font-weight:900;
}

.toh-kpi-person small{
    display:block;
    color:#64748b;
    font-size:12px;
}

.toh-kpi-person strong{
    margin-left:auto;
    width:48px;
    height:48px;
    border:4px solid #22c55e;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#166534;
    font-size:13px;
    font-weight:900;
}

.toh-kpi-bars{
    display:grid;
    gap:10px;
}

.toh-kpi-bars div{
    display:grid;
    grid-template-columns:110px 1fr 28px;
    gap:10px;
    align-items:center;
}

.toh-kpi-bars span{
    color:#475569;
    font-size:12px;
    font-weight:800;
}

.toh-kpi-bars div::before{
    content:"";
    display:block;
    grid-column:2;
    grid-row:1;
    height:9px;
    background:#f1f5f9;
    border-radius:999px;
}

.toh-kpi-bars em{
    display:block;
    grid-column:2;
    grid-row:1;
    height:9px;
    border-radius:999px;
    background:#2563eb;
    min-width:4px;
    z-index:2;
}

.toh-kpi-bars em.done{background:#16a34a;}
.toh-kpi-bars em.pending{background:#f59e0b;}
.toh-kpi-bars em.late{background:#ef4444;}

.toh-kpi-bars b{
    font-size:12px;
    color:#0f172a;
    font-weight:900;
}

.kpi-table{
    border-radius:18px!important;
    overflow:auto!important;
}

.kpi-table .toh-table{
    min-width:1100px!important;
}

.toh-kpi-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:34px;
    height:24px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
    background:#dbeafe;
    color:#1d4ed8;
}

.toh-kpi-pill.done{background:#dcfce7;color:#166534;}
.toh-kpi-pill.pending{background:#fef3c7;color:#92400e;}
.toh-kpi-pill.late{background:#fee2e2;color:#991b1b;}

.toh-kpi-empty{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:28px;
    box-shadow:0 14px 35px rgba(15,23,42,.06);
}

@media(max-width:1000px){
    .toh-kpi-grid,.toh-kpi-summary{
        grid-template-columns:1fr;
    }
}


/* KPI FINAL FIX 5.9 */
.kpi-section-real{width:100%;}
.kpi-section{display:none!important;}
.toh-kpi-head{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:18px;display:flex;justify-content:space-between;gap:16px;align-items:center;box-shadow:0 14px 35px rgba(15,23,42,.06);margin-bottom:14px;}
.toh-kpi-head h2{margin:0 0 5px!important;color:#0f172a!important;font-size:24px!important;font-weight:950!important;}
.toh-kpi-head p{margin:0!important;color:#64748b!important;font-size:14px!important;}
.toh-kpi-head span{background:#ecfdf5;color:#047857;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:900;white-space:nowrap;}
.toh-kpi-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px;}
.toh-kpi-summary div{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:14px;box-shadow:0 12px 30px rgba(15,23,42,.06);}
.toh-kpi-summary span{display:block;color:#64748b;font-size:12px;font-weight:900;margin-bottom:8px;}
.toh-kpi-summary b{color:#0f172a;font-size:28px;font-weight:950;}
.toh-kpi-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:16px;}
.toh-kpi-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:16px;box-shadow:0 14px 35px rgba(15,23,42,.06);}
.toh-kpi-person{display:flex;align-items:center;gap:12px;margin-bottom:14px;}
.toh-kpi-person b{display:block;color:#0f172a;font-size:15px;font-weight:900;}
.toh-kpi-person small{display:block;color:#64748b;font-size:12px;}
.toh-kpi-person strong{margin-left:auto;width:48px;height:48px;border:4px solid #22c55e;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#166534;font-size:13px;font-weight:900;}
.toh-kpi-bars{display:grid;gap:10px;}
.toh-kpi-bars div{display:grid;grid-template-columns:110px 1fr 28px;gap:10px;align-items:center;}
.toh-kpi-bars span{color:#475569;font-size:12px;font-weight:800;}
.toh-kpi-bars div::before{content:"";display:block;grid-column:2;grid-row:1;height:9px;background:#f1f5f9;border-radius:999px;}
.toh-kpi-bars em{display:block;grid-column:2;grid-row:1;height:9px;border-radius:999px;background:#2563eb;min-width:4px;z-index:2;}
.toh-kpi-bars em.done{background:#16a34a;}
.toh-kpi-bars em.pending{background:#f59e0b;}
.toh-kpi-bars em.late{background:#ef4444;}
.toh-kpi-bars b{font-size:12px;color:#0f172a;font-weight:900;}
.kpi-table{border-radius:18px!important;overflow:auto!important;}
.kpi-table .toh-table{min-width:1100px!important;}
.toh-kpi-pill{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:24px;border-radius:999px;font-size:12px;font-weight:900;background:#dbeafe;color:#1d4ed8;}
.toh-kpi-pill.done{background:#dcfce7;color:#166534;}
.toh-kpi-pill.pending{background:#fef3c7;color:#92400e;}
.toh-kpi-pill.late{background:#fee2e2;color:#991b1b;}
.toh-kpi-empty{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:28px;box-shadow:0 14px 35px rgba(15,23,42,.06);}
@media(max-width:1000px){.toh-kpi-grid,.toh-kpi-summary{grid-template-columns:1fr;}}


/* ACTION POPUPS FIX 6.0 */
.toh-app-dialog{
    position:fixed;
    inset:0;
    z-index:99999998;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(15,23,42,.58);
    backdrop-filter:blur(6px);
}

.toh-app-dialog-card{
    width:420px;
    max-width:92vw;
    background:#fff;
    color:#0f172a;
    border-radius:22px;
    padding:22px;
    box-shadow:0 30px 100px rgba(0,0,0,.38);
}

.toh-app-dialog-card h3{
    margin:0 0 8px!important;
    font-size:22px!important;
    font-weight:950!important;
    color:#0f172a!important;
}

.toh-app-dialog-card p{
    color:#64748b!important;
    margin:0 0 16px!important;
    font-size:14px!important;
}

.toh-app-dialog-card input{
    width:100%!important;
    height:52px!important;
    border:1px solid #e2e8f0!important;
    border-radius:14px!important;
    padding:0 14px!important;
    font-size:15px!important;
    outline:0!important;
    box-shadow:none!important;
}

.toh-app-dialog-actions{
    display:flex;
    gap:10px;
    margin-top:16px;
}

.toh-app-dialog-actions button{
    flex:1;
    border:0;
    border-radius:13px;
    padding:12px 14px;
    font-weight:900;
    cursor:pointer;
}

.toh-dialog-ok{
    background:#2563eb;
    color:#fff;
}

.toh-dialog-cancel{
    background:#e2e8f0;
    color:#334155;
}

.toh-app-toast{
    position:fixed;
    right:24px;
    bottom:24px;
    z-index:99999999;
    max-width:360px;
    background:#0f172a;
    color:#fff;
    border-radius:16px;
    padding:14px 18px;
    box-shadow:0 24px 80px rgba(0,0,0,.34);
    font-weight:800;
    font-size:14px;
}

#tohReturnModal .toh-modal-card,
#tohRevisionModal .toh-modal-card{
    max-height:92vh;
    overflow:auto;
}


/* STORAGE 10 DAYS 6.1 */
.storage-section{
    width:100%;
}

.toh-storage-head{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:18px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    box-shadow:0 14px 35px rgba(15,23,42,.06);
    margin-bottom:14px;
}

.toh-storage-head h2{
    margin:0 0 5px!important;
    color:#0f172a!important;
    font-size:24px!important;
    font-weight:950!important;
}

.toh-storage-head p{
    margin:0!important;
    color:#64748b!important;
    font-size:14px!important;
}

.toh-storage-head button{
    border:0;
    background:#ef4444;
    color:#fff;
    border-radius:14px;
    padding:13px 16px;
    font-size:13px;
    font-weight:900;
    cursor:pointer;
    white-space:nowrap;
}

.toh-storage-summary{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    margin-bottom:14px;
}

.toh-storage-summary div{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:14px;
    box-shadow:0 12px 30px rgba(15,23,42,.06);
}

.toh-storage-summary span{
    display:block;
    color:#64748b;
    font-size:12px;
    font-weight:900;
    margin-bottom:8px;
}

.toh-storage-summary b{
    color:#0f172a;
    font-size:24px;
    font-weight:950;
}

.toh-storage-empty{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:28px;
    box-shadow:0 14px 35px rgba(15,23,42,.06);
}

.toh-storage-empty h3{
    margin:0 0 8px!important;
    color:#0f172a!important;
}

.toh-storage-empty p{
    margin:0!important;
    color:#64748b!important;
}

.toh-storage-groups{
    display:grid;
    gap:14px;
}

.toh-storage-dep{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:16px;
    box-shadow:0 14px 35px rgba(15,23,42,.06);
}

.toh-storage-dep h3{
    margin:0 0 14px!important;
    color:#0f172a!important;
    font-size:20px!important;
    font-weight:950!important;
}

.toh-storage-day{
    border:1px solid #e5e7eb;
    border-radius:16px;
    overflow:hidden;
    margin-bottom:12px;
}

.toh-storage-day:last-child{
    margin-bottom:0;
}

.toh-storage-day-head{
    background:#f8fafc;
    padding:12px 14px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    border-bottom:1px solid #e5e7eb;
}

.toh-storage-day-head b{
    color:#0f172a;
    font-size:14px;
    font-weight:950;
}

.toh-storage-day-head span{
    color:#64748b;
    font-size:12px;
    font-weight:800;
}

.toh-storage-files{
    display:grid;
}

.toh-storage-file{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
    padding:12px 14px;
    border-bottom:1px solid #edf2f7;
}

.toh-storage-file:last-child{
    border-bottom:0;
}

.toh-storage-file strong{
    display:block;
    color:#0f172a;
    font-size:13px;
    font-weight:950;
}

.toh-storage-file span{
    display:block;
    color:#475569;
    font-size:12px;
    margin-top:3px;
}

.toh-storage-file small{
    display:block;
    color:#64748b;
    font-size:11px;
    margin-top:3px;
    font-weight:800;
}

.toh-storage-file a{
    flex:0 0 auto;
    background:#2563eb;
    color:#fff;
    border-radius:10px;
    padding:8px 11px;
    font-size:12px;
    font-weight:900;
    text-decoration:none;
}

.toh-storage-file.is-expired{
    background:#fff7ed;
}

.toh-storage-file.is-expired a{
    background:#f97316;
}

@media(max-width:1000px){
    .toh-storage-summary{
        grid-template-columns:1fr 1fr;
    }
    .toh-storage-head{
        flex-direction:column;
        align-items:flex-start;
    }
}

@media(max-width:640px){
    .toh-storage-summary{
        grid-template-columns:1fr;
    }
}


/* LIVE REFRESH + NOTIFICATIONS 6.2 */
.toh-live-badge{
    position:absolute;
    top:-6px;
    right:-6px;
    min-width:18px;
    height:18px;
    border-radius:999px;
    background:#ef4444;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:10px;
    font-weight:900;
    box-shadow:0 6px 14px rgba(239,68,68,.35);
}

.toh-top-user span{
    position:relative;
}

.toh-live-toast{
    position:fixed;
    right:24px;
    top:88px;
    z-index:99999999;
    min-width:280px;
    max-width:380px;
    background:#0f172a;
    color:#fff;
    border-radius:18px;
    padding:14px 16px;
    box-shadow:0 24px 80px rgba(15,23,42,.32);
    font-size:13px;
    font-weight:800;
    animation:tohSlideNotice .25s ease;
}

.toh-live-toast b{
    display:block;
    margin-bottom:4px;
    font-size:14px;
    color:#fff;
}

.toh-live-toast small{
    display:block;
    color:#cbd5e1;
    font-size:12px;
    line-height:1.35;
}

.toh-live-syncing .task-section{
    opacity:.72;
    pointer-events:none;
}

@keyframes tohSlideNotice{
    from{opacity:0;transform:translateY(-10px);}
    to{opacity:1;transform:translateY(0);}
}

/* STORAGE MENU VISIBLE 6.3 */
.storage-section{width:100%}.toh-storage-head{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:18px;display:flex;justify-content:space-between;align-items:center;gap:16px;box-shadow:0 14px 35px rgba(15,23,42,.06);margin-bottom:14px}.toh-storage-head h2{margin:0 0 5px!important;color:#0f172a!important;font-size:24px!important;font-weight:950!important}.toh-storage-head p{margin:0!important;color:#64748b!important;font-size:14px!important}.toh-storage-head button{border:0;background:#ef4444;color:#fff;border-radius:14px;padding:13px 16px;font-size:13px;font-weight:900;cursor:pointer;white-space:nowrap}.toh-storage-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.toh-storage-summary div,.toh-storage-empty,.toh-storage-dep{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:18px;box-shadow:0 14px 35px rgba(15,23,42,.06);margin-bottom:14px}.toh-storage-summary span{display:block;color:#64748b;font-size:12px;font-weight:900;margin-bottom:8px}.toh-storage-summary b{color:#0f172a;font-size:24px;font-weight:950}.toh-storage-dep h3{margin:0 0 14px!important;color:#0f172a!important;font-size:20px!important;font-weight:950!important}.toh-storage-day{border:1px solid #e5e7eb;border-radius:16px;overflow:hidden;margin-bottom:12px}.toh-storage-day-head{background:#f8fafc;padding:12px 14px;display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #e5e7eb}.toh-storage-files{display:grid}.toh-storage-file{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 14px;border-bottom:1px solid #edf2f7}.toh-storage-file:last-child{border-bottom:0}.toh-storage-file strong{display:block;color:#0f172a;font-size:13px;font-weight:950}.toh-storage-file span{display:block;color:#475569;font-size:12px;margin-top:3px}.toh-storage-file small{display:block;color:#64748b;font-size:11px;margin-top:3px;font-weight:800}.toh-storage-file a{flex:0 0 auto;background:#2563eb;color:#fff;border-radius:10px;padding:8px 11px;font-size:12px;font-weight:900;text-decoration:none}.toh-storage-file.is-expired{background:#fff7ed}.toh-full-front.sidebar-collapsed .toh-nav a[data-view=storage]::before{content:"🗂️"!important}


/* LOGIN LEFT REMOVED + KPI DEDUPE FIX 6.5 */
.toh-login-left,
.toh-login-page .toh-login-left,
.toh-login-hero,
.toh-login-intro,
.toh-login-features,
.toh-login-page > div:first-child:not(.toh-login-card):not(.toh-login-wrap):not(.toh-login-inner){
    display:none!important;
    visibility:hidden!important;
    width:0!important;
    min-width:0!important;
    max-width:0!important;
    height:0!important;
    overflow:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
}

.toh-login-page{
    min-height:100vh!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:24px!important;
    background:
        radial-gradient(circle at 20% 15%, rgba(37,99,235,.35), transparent 34%),
        radial-gradient(circle at 85% 25%, rgba(124,58,237,.42), transparent 32%),
        linear-gradient(135deg,#071529 0%,#0f172a 55%,#111827 100%)!important;
}

.toh-login-page .toh-login-wrap,
.toh-login-page .toh-login-inner{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    max-width:520px!important;
    margin:0 auto!important;
    grid-template-columns:1fr!important;
}

.toh-login-page .toh-login-card{
    margin:0 auto!important;
    width:460px!important;
    max-width:94vw!important;
    transform:none!important;
}

.toh-kpi-card.toh-kpi-duplicate-hidden,
.kpi-table tr.toh-kpi-duplicate-hidden{
    display:none!important;
}


/* MANAGER DELETE TASK 6.6 */
.toh-delete-task{
    background:#ef4444!important;
    color:#fff!important;
    border:0!important;
    border-radius:14px!important;
    min-height:52px!important;
    padding:0 18px!important;
    font-size:14px!important;
    font-weight:950!important;
    cursor:pointer!important;
    box-shadow:0 16px 32px rgba(239,68,68,.20)!important;
}

.toh-delete-task:hover{
    background:#dc2626!important;
    transform:translateY(-1px)!important;
}

.toh-delete-confirm{
    position:fixed;
    inset:0;
    z-index:99999999;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(15,23,42,.62);
    backdrop-filter:blur(7px);
}

.toh-delete-confirm-card{
    width:420px;
    max-width:92vw;
    background:#fff;
    border-radius:24px;
    padding:24px;
    box-shadow:0 30px 100px rgba(0,0,0,.38);
    color:#0f172a;
}

.toh-delete-confirm-card h3{
    margin:0 0 8px!important;
    color:#0f172a!important;
    font-size:22px!important;
    font-weight:950!important;
}

.toh-delete-confirm-card p{
    margin:0 0 18px!important;
    color:#64748b!important;
    font-size:14px!important;
    line-height:1.5!important;
}

.toh-delete-confirm-actions{
    display:flex;
    gap:10px;
}

.toh-delete-confirm-actions button{
    flex:1;
    border:0;
    border-radius:14px;
    padding:13px 14px;
    font-weight:950;
    cursor:pointer;
}

.toh-delete-cancel{
    background:#e2e8f0;
    color:#334155;
}

.toh-delete-ok{
    background:#ef4444;
    color:#fff;
}


/* AUTO HIDE DETAIL PANEL 6.7 */
.toh-detail.toh-detail-empty{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:translateX(24px)!important;
    width:0!important;
    min-width:0!important;
    max-width:0!important;
    padding:0!important;
    margin:0!important;
    overflow:hidden!important;
    border:none!important;
}

.toh-layout.toh-detail-hidden .toh-main-content,
.toh-app.toh-detail-hidden .toh-main-content{
    width:100%!important;
    max-width:100%!important;
    flex:1!important;
}


/* FORCE HIDE DETAIL UNTIL USER CLICK 6.8 */
body.toh-no-task-selected .toh-detail,
.toh-full-front.toh-no-task-selected .toh-detail,
.toh-no-task-selected .toh-detail,
.toh-no-task-selected .task-detail-panel,
.toh-no-task-selected .toh-sidebar-detail{
    display:none!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    width:0!important;
    min-width:0!important;
    max-width:0!important;
    flex:0 0 0!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    overflow:hidden!important;
}

body.toh-no-task-selected .toh-left,
.toh-full-front.toh-no-task-selected .toh-left,
.toh-no-task-selected .toh-left,
.toh-no-task-selected .toh-main,
.toh-no-task-selected .toh-main-content{
    width:100%!important;
    max-width:100%!important;
    flex:1 1 auto!important;
}

body.toh-task-selected .toh-detail,
.toh-full-front.toh-task-selected .toh-detail,
.toh-task-selected .toh-detail{
    display:block!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
}


/* V6.8.1 DETAIL RESTORE + ADMIN DELETE */
body.toh-no-task-selected .toh-detail,
.toh-full-front.toh-no-task-selected .toh-detail,
.toh-no-task-selected .toh-detail,
.toh-detail.toh-detail-empty,
.toh-detail{
    display:block!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    width:auto!important;
    min-width:360px!important;
    max-width:none!important;
    flex:0 0 390px!important;
    padding:24px!important;
    margin:0!important;
    overflow:auto!important;
    border-left:1px solid #e5e7eb!important;
    transform:none!important;
}

body.toh-no-task-selected .toh-left,
.toh-full-front.toh-no-task-selected .toh-left,
.toh-no-task-selected .toh-left{
    width:auto!important;
    max-width:none!important;
}

.toh-admin-delete-task,
.toh-admin-delete-user{
    border:0!important;
    border-radius:14px!important;
    background:#ef4444!important;
    color:#fff!important;
    min-height:48px!important;
    padding:0 16px!important;
    font-size:13px!important;
    font-weight:900!important;
    cursor:pointer!important;
    box-shadow:0 14px 30px rgba(239,68,68,.22)!important;
}

.toh-admin-delete-task:hover,
.toh-admin-delete-user:hover{
    background:#dc2626!important;
    transform:translateY(-1px)!important;
}

.toh-admin-delete-user{
    min-height:42px!important;
    padding:0 12px!important;
    font-size:12px!important;
}

.toh-delete-confirm{
    position:fixed;
    inset:0;
    z-index:99999999;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(15,23,42,.62);
    backdrop-filter:blur(6px);
}

.toh-delete-card{
    width:420px;
    max-width:92vw;
    background:#fff;
    border-radius:24px;
    padding:24px;
    box-shadow:0 30px 100px rgba(0,0,0,.32);
}

.toh-delete-card h3{
    margin:0 0 8px!important;
    color:#0f172a!important;
    font-size:22px!important;
    font-weight:900!important;
}

.toh-delete-card p{
    margin:0 0 18px!important;
    color:#64748b!important;
    font-size:14px!important;
    line-height:1.5!important;
}

.toh-delete-actions{
    display:flex;
    gap:10px;
}

.toh-delete-actions button{
    flex:1;
    border:0;
    border-radius:14px;
    padding:13px 14px;
    font-weight:900;
    cursor:pointer;
}

.toh-delete-cancel{
    background:#e2e8f0;
    color:#334155;
}

.toh-delete-ok{
    background:#ef4444;
    color:#fff;
}


/* ADMIN ONLY DELETE BUTTON 6.8.2 */
.toh-admin-delete-task,
.toh-admin-delete-user{
    display:none!important;
}

body.toh-role-manager .toh-admin-delete-task,
body.toh-role-manager .toh-admin-delete-user,
body.toh-role-admin .toh-admin-delete-task,
body.toh-role-admin .toh-admin-delete-user,
.toh-full-front.toh-role-manager .toh-admin-delete-task,
.toh-full-front.toh-role-manager .toh-admin-delete-user,
.toh-full-front.toh-role-admin .toh-admin-delete-task,
.toh-full-front.toh-role-admin .toh-admin-delete-user{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
}


/* CONTENT FORMAT FIX 6.8.4 */
.toh-detail .toh-detail-content,
.toh-detail .task-content,
.toh-detail .task-description,
.toh-detail .toh-content-text,
.toh-detail [data-field="content"],
.toh-detail [data-field="description"],
.toh-detail .toh-request-content,
.toh-detail p:has(+ .toh-detail-meta),
.toh-detail .toh-detail-body p,
.toh-detail .toh-detail-body div,
.toh-detail .toh-task-content{
    white-space:pre-wrap!important;
    word-break:break-word!important;
    overflow-wrap:anywhere!important;
    line-height:1.62!important;
}

.toh-detail .toh-content-box,
.toh-detail .toh-request-box,
.toh-detail .toh-detail-section-content{
    white-space:pre-wrap!important;
    word-break:break-word!important;
    overflow-wrap:anywhere!important;
    line-height:1.62!important;
}

.toh-detail h4 + p,
.toh-detail h4 + div,
.toh-detail strong + p,
.toh-detail strong + div{
    white-space:pre-wrap!important;
    word-break:break-word!important;
    overflow-wrap:anywhere!important;
    line-height:1.62!important;
}

.toh-detail .toh-content-pre{
    white-space:pre-wrap!important;
    word-break:break-word!important;
    overflow-wrap:anywhere!important;
    line-height:1.62!important;
    margin:8px 0 0!important;
    color:#0f172a!important;
    font-size:14px!important;
}

.toh-detail .toh-content-pre br{
    display:block!important;
    content:""!important;
    margin-bottom:4px!important;
}


/* BAI JAMJUREE + COMPACT PREMIUM UI 6.8.5 */
@import url('https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@400;500;600;700;800&display=swap');

:root{
    --toh-font:"Bai Jamjuree",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
    --toh-radius:16px;
    --toh-shadow:0 10px 26px rgba(15,23,42,.055);
    --toh-border:#e6edf5;
    --toh-text:#0f172a;
    --toh-muted:#64748b;
}

.toh-full-front,
.toh-full-front *,
.toh-login-page,
.toh-login-page *,
.toh-modal,
.toh-modal *,
.toh-app-toast,
.toh-live-toast,
.toh-delete-confirm,
.toh-delete-confirm *,
.toh-app-dialog,
.toh-app-dialog *{
    font-family:var(--toh-font)!important;
    letter-spacing:-.01em;
}

.toh-full-front{
    background:#f3f7fb!important;
    color:var(--toh-text)!important;
}

/* Sidebar compact */
.toh-sidebar{
    width:260px!important;
    min-width:260px!important;
    padding:18px 14px!important;
    background:linear-gradient(180deg,#07172d,#061121)!important;
}

.toh-brand,
.toh-logo-wrap{
    margin-bottom:18px!important;
    gap:10px!important;
}

.toh-brand h1,
.toh-brand-title,
.toh-logo-text h2{
    font-size:21px!important;
    line-height:1.12!important;
    font-weight:800!important;
}

.toh-brand p,
.toh-logo-text p{
    font-size:12px!important;
    line-height:1.35!important;
    margin-top:3px!important;
}

.toh-logo{
    width:52px!important;
    height:52px!important;
    border-radius:16px!important;
}

.toh-create-task,
.toh-new-task,
.toh-open-create-task,
.toh-sidebar .toh-primary-btn{
    height:68px!important;
    min-height:68px!important;
    border-radius:16px!important;
    font-size:17px!important;
    font-weight:800!important;
    padding:0 18px!important;
    margin:12px 0 18px!important;
}

.toh-nav{
    gap:6px!important;
}

.toh-nav a{
    min-height:48px!important;
    padding:0 14px!important;
    border-radius:14px!important;
    font-size:15px!important;
    font-weight:700!important;
    gap:10px!important;
}

.toh-nav a.active{
    background:#14395f!important;
    color:#60a5fa!important;
    box-shadow:none!important;
}

.toh-user-card,
.toh-sidebar-user{
    border-radius:16px!important;
    padding:14px!important;
    margin-top:16px!important;
}

.toh-user-card strong,
.toh-sidebar-user strong{
    font-size:15px!important;
    line-height:1.2!important;
}

.toh-user-card span,
.toh-sidebar-user span{
    font-size:12px!important;
}

/* Header compact */
.toh-topbar,
.toh-header{
    height:76px!important;
    min-height:76px!important;
    padding:0 20px!important;
    border-bottom:1px solid #e5eaf0!important;
    background:#fff!important;
}

.toh-search,
.toh-search-box{
    height:48px!important;
    max-width:760px!important;
    border-radius:15px!important;
    font-size:15px!important;
}

.toh-search input,
.toh-search-box input{
    height:48px!important;
    font-size:15px!important;
    padding:0 18px!important;
}

.toh-top-user,
.toh-header-user{
    font-size:15px!important;
    font-weight:800!important;
}

.toh-logout{
    height:52px!important;
    padding:0 18px!important;
    border-radius:13px!important;
    font-size:13px!important;
    font-weight:800!important;
}

/* Main layout density */
.toh-content,
.toh-main,
.toh-left,
.toh-main-content{
    padding:18px!important;
    gap:14px!important;
}

.toh-layout,
.toh-body,
.toh-app{
    gap:0!important;
}

.toh-section,
.dashboard-section,
.task-section,
.staff-section,
.kpi-section,
.kpi-section-real,
.department-section,
.storage-section{
    gap:14px!important;
}

/* Cards compact */
.toh-card,
.toh-panel,
.toh-box,
.dashboard-section > div,
.task-section > div,
.staff-section > div,
.kpi-section-real > div,
.department-section > div{
    border-radius:18px!important;
    border:1px solid var(--toh-border)!important;
    box-shadow:var(--toh-shadow)!important;
}

.toh-card h2,
.toh-panel h2,
.dashboard-section h2,
.task-section h2,
.staff-section h2,
.kpi-section-real h2,
.department-section h2{
    font-size:22px!important;
    line-height:1.15!important;
    font-weight:800!important;
    margin:0 0 10px!important;
}

.toh-card p,
.toh-panel p{
    font-size:13px!important;
    line-height:1.45!important;
}

/* Overview boxes */
.toh-stats,
.toh-dashboard-stats,
.toh-summary-grid{
    gap:12px!important;
}

.toh-stat-card,
.toh-summary-card,
.dashboard-section .stat-card,
.dashboard-section [class*="stat"]{
    min-height:128px!important;
    border-radius:16px!important;
    padding:18px!important;
}

.toh-stat-card h3,
.toh-summary-card h3,
.dashboard-section [class*="stat"] h3{
    font-size:15px!important;
    font-weight:800!important;
    margin:0 0 14px!important;
}

.toh-stat-card b,
.toh-summary-card b,
.dashboard-section [class*="stat"] b,
.toh-stat-number{
    font-size:34px!important;
    line-height:1!important;
    font-weight:800!important;
}

.toh-stat-card span,
.toh-summary-card span{
    font-size:13px!important;
}

/* Performance member compact */
.toh-performance,
.toh-member-performance,
.toh-performance-card{
    padding:18px!important;
    border-radius:18px!important;
}

.toh-performance-grid,
.toh-member-grid{
    gap:12px!important;
}

.toh-member-card,
.toh-performance-item{
    min-height:92px!important;
    padding:14px!important;
    border-radius:15px!important;
}

.toh-member-card strong,
.toh-performance-item strong{
    font-size:15px!important;
    line-height:1.2!important;
}

.toh-member-card span,
.toh-performance-item span{
    font-size:12px!important;
}

.toh-percent,
.toh-progress-circle{
    width:54px!important;
    height:54px!important;
    font-size:13px!important;
    font-weight:800!important;
}

/* Task table compact */
.toh-table-wrap,
.toh-task-table-wrap{
    border-radius:18px!important;
    overflow:auto!important;
}

.toh-table,
.toh-task-table,
table{
    font-size:13px!important;
}

.toh-table th,
.toh-table td,
.toh-task-table th,
.toh-task-table td,
.task-section table th,
.task-section table td{
    padding:12px 14px!important;
    font-size:13px!important;
    line-height:1.32!important;
    vertical-align:middle!important;
}

.toh-table th,
.toh-task-table th,
.task-section table th{
    font-size:12px!important;
    letter-spacing:.035em!important;
    font-weight:800!important;
    color:#64748b!important;
    background:#f8fafc!important;
}

.toh-table td strong,
.toh-task-table td strong{
    font-size:13px!important;
    line-height:1.25!important;
}

.toh-badge,
.toh-status,
.task-status,
[class*="status"]{
    border-radius:999px!important;
    padding:6px 10px!important;
    font-size:12px!important;
    font-weight:800!important;
    line-height:1!important;
    white-space:nowrap!important;
}

.toh-filter-row,
.toh-filters,
.task-filter,
.toh-table-actions{
    gap:8px!important;
}

.toh-filter-row select,
.toh-filter-row button,
.toh-filters select,
.toh-filters button,
.task-filter select,
.task-filter button{
    height:44px!important;
    border-radius:13px!important;
    padding:0 14px!important;
    font-size:13px!important;
    font-weight:700!important;
}

/* Detail panel compact */
.toh-detail,
.task-detail-panel,
.toh-sidebar-detail{
    flex:0 0 370px!important;
    min-width:370px!important;
    max-width:390px!important;
    padding:20px!important;
    background:#fff!important;
    border-left:1px solid #e6edf5!important;
}

.toh-detail h2,
.toh-detail-title{
    font-size:22px!important;
    line-height:1.2!important;
    font-weight:800!important;
    margin:0 0 12px!important;
    color:#334155!important;
}

.toh-detail h3,
.toh-detail .task-title{
    font-size:22px!important;
    line-height:1.18!important;
    font-weight:800!important;
    margin:8px 0 12px!important;
    color:#334155!important;
}

.toh-detail h4,
.toh-detail label,
.toh-detail strong{
    font-size:13px!important;
    font-weight:800!important;
}

.toh-detail p,
.toh-detail div,
.toh-detail span{
    font-size:13px!important;
}

.toh-detail .toh-content-pre,
.toh-detail .toh-request-content,
.toh-detail .toh-task-content,
.toh-detail [data-field="content"],
.toh-detail [data-field="description"]{
    font-size:13px!important;
    line-height:1.55!important;
    color:#1e293b!important;
    white-space:pre-wrap!important;
    word-break:break-word!important;
    overflow-wrap:anywhere!important;
}

.toh-detail .toh-tags,
.toh-detail .toh-badges{
    gap:7px!important;
    margin:10px 0 14px!important;
}

.toh-detail button,
.toh-detail .toh-update-task,
.toh-detail .toh-action-btn,
.toh-detail .toh-admin-delete-task{
    min-height:48px!important;
    border-radius:14px!important;
    font-size:13px!important;
    font-weight:800!important;
    padding:0 14px!important;
}

.toh-detail .toh-actions,
.toh-detail .task-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
    margin-top:14px!important;
}

.toh-detail .toh-admin-delete-task{
    grid-column:auto!important;
}

/* Modals compact and readable */
.toh-modal-content,
.toh-modal-card,
.toh-dialog,
.toh-app-dialog-card{
    border-radius:24px!important;
    padding:26px!important;
    max-width:660px!important;
}

.toh-modal h2,
.toh-modal h3{
    font-size:28px!important;
    line-height:1.1!important;
    font-weight:800!important;
    margin:0 0 18px!important;
}

.toh-modal label{
    font-size:13px!important;
    font-weight:800!important;
    margin-bottom:7px!important;
}

.toh-modal input,
.toh-modal select,
.toh-modal textarea{
    border-radius:16px!important;
    font-size:15px!important;
    padding:14px 16px!important;
}

.toh-modal input,
.toh-modal select{
    min-height:54px!important;
}

.toh-modal textarea{
    min-height:150px!important;
    line-height:1.55!important;
}

.toh-modal button[type="submit"],
.toh-modal .toh-submit,
.toh-modal .toh-primary{
    min-height:56px!important;
    border-radius:16px!important;
    font-size:16px!important;
    font-weight:800!important;
}

/* Storage compact */
.toh-storage-head,
.toh-template-head,
.toh-settings-head{
    padding:18px!important;
    border-radius:18px!important;
}

.toh-storage-head h2,
.toh-template-head h2,
.toh-settings-head h2{
    font-size:24px!important;
    font-weight:800!important;
}

.toh-storage-summary{
    gap:12px!important;
}

.toh-storage-summary div{
    padding:16px!important;
    border-radius:16px!important;
}

.toh-storage-summary b{
    font-size:26px!important;
}

/* Better scrollbars */
.toh-full-front *::-webkit-scrollbar{
    width:8px!important;
    height:8px!important;
}

.toh-full-front *::-webkit-scrollbar-thumb{
    background:#cbd5e1!important;
    border-radius:999px!important;
}

.toh-full-front *::-webkit-scrollbar-track{
    background:transparent!important;
}

/* Responsive compact */
@media(max-width:1400px){
    .toh-sidebar{width:245px!important;min-width:245px!important}
    .toh-detail{flex-basis:350px!important;min-width:350px!important}
    .toh-table th,.toh-table td,.toh-task-table th,.toh-task-table td{padding:10px 12px!important;font-size:12.5px!important}
    .toh-stat-card,.toh-summary-card,.dashboard-section [class*="stat"]{min-height:118px!important;padding:16px!important}
    .toh-stat-card b,.toh-summary-card b,.toh-stat-number{font-size:30px!important}
}

@media(max-width:1180px){
    .toh-detail{flex-basis:330px!important;min-width:330px!important;padding:18px!important}
    .toh-sidebar{width:228px!important;min-width:228px!important}
    .toh-nav a{font-size:14px!important;min-height:44px!important}
}


/* STRICT HIDE DELETE FOR NON ADMIN 6.8.6 */
.toh-admin-delete-task,
.toh-delete-task,
button[class*="delete-task"],
button[data-action="delete-task"]{
    display:none!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
}

body.toh-current-can-delete .toh-admin-delete-task,
body.toh-current-can-delete .toh-delete-task,
body.toh-current-can-delete button[class*="delete-task"],
body.toh-current-can-delete button[data-action="delete-task"],
.toh-full-front.toh-current-can-delete .toh-admin-delete-task,
.toh-full-front.toh-current-can-delete .toh-delete-task{
    display:inline-flex!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    align-items:center!important;
    justify-content:center!important;
}


/* DEDUPE DELETE TASK BUTTON 6.8.7 */
.toh-delete-duplicate-hidden{
    display:none!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
}


/* CLEAN STABLE UI PATCH 6.8.0 */
.staff-section .toh-warning,
.staff-section .toh-leader-note,
.staff-section [class*="duplicate"],
.staff-section [class*="warning"],
.staff-section [class*="alert"],
.toh-staff-section .toh-warning,
.toh-staff-section [class*="duplicate"],
.toh-staff-section [class*="warning"],
.toh-staff-section [class*="alert"]{
    display:none!important;
}

.staff-section table,
.toh-staff-section table{
    width:100%!important;
    table-layout:fixed!important;
    border-collapse:separate!important;
    border-spacing:0!important;
    background:#fff!important;
    border-radius:16px!important;
    overflow:hidden!important;
}

.staff-section table th,
.toh-staff-section table th{
    background:#f8fafc!important;
    color:#64748b!important;
    font-size:11.5px!important;
    text-transform:uppercase!important;
    letter-spacing:.035em!important;
    font-weight:800!important;
    padding:10px 12px!important;
    border-bottom:1px solid #e6edf5!important;
}

.staff-section table td,
.toh-staff-section table td{
    padding:10px 12px!important;
    font-size:12.5px!important;
    line-height:1.3!important;
    vertical-align:middle!important;
    border-bottom:1px solid #eef2f7!important;
}

.staff-section table tbody tr:nth-child(odd),
.toh-staff-section table tbody tr:nth-child(odd){
    background:#f8fbff!important;
}

.staff-section button,
.staff-section .button,
.staff-section a.button,
.toh-staff-section button,
.toh-staff-section .button,
.toh-staff-section a.button{
    min-height:32px!important;
    height:32px!important;
    border-radius:10px!important;
    padding:0 10px!important;
    margin:2px 4px 2px 0!important;
    font-size:11px!important;
    font-weight:800!important;
    box-shadow:none!important;
    white-space:nowrap!important;
}

.toh-delete-duplicate-hidden{
    display:none!important;
}


/* TASK DEDUPE STABLE PATCH 6.8.0 */
.toh-delete-duplicate-hidden,
.toh-task-row-duplicate-hidden{
    display:none!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
}

/* KPI BACKEND REAL DATA STYLE 6.8.0 */
#toh680-real-kpi *{font-family:'Bai Jamjuree',system-ui,sans-serif!important;}



/* SAFE SCOPED COMPACT UI 6.8.0 */
/* Chỉ áp dụng bên trong giao diện plugin, không ảnh hưởng WordPress admin/CMS */
#task-order-hub-app,
#task-order-hub-app *,
.task-order-hub-app,
.task-order-hub-app *,
.task-order-hub-dashboard,
.task-order-hub-dashboard *,
.task-order-hub-standalone,
.task-order-hub-standalone *,
.toh-standalone,
.toh-standalone *,
.toh-root,
.toh-root *{
    font-family:'Bai Jamjuree',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif !important;
    font-size:10px !important;
    line-height:1.42 !important;
    font-weight:500 !important;
}

#task-order-hub-app h1,
#task-order-hub-app h2,
#task-order-hub-app h3,
.task-order-hub-app h1,
.task-order-hub-app h2,
.task-order-hub-app h3,
.task-order-hub-dashboard h1,
.task-order-hub-dashboard h2,
.task-order-hub-dashboard h3,
.toh-standalone h1,
.toh-standalone h2,
.toh-standalone h3,
.toh-root h1,
.toh-root h2,
.toh-root h3{
    font-weight:700 !important;
    line-height:1.25 !important;
}

#task-order-hub-app h1,
.task-order-hub-app h1,
.task-order-hub-dashboard h1,
.toh-standalone h1,
.toh-root h1{font-size:18px !important;}

#task-order-hub-app h2,
.task-order-hub-app h2,
.task-order-hub-dashboard h2,
.toh-standalone h2,
.toh-root h2{font-size:16px !important;}

#task-order-hub-app h3,
.task-order-hub-app h3,
.task-order-hub-dashboard h3,
.toh-standalone h3,
.toh-root h3{font-size:14px !important;}

#task-order-hub-app b,
#task-order-hub-app strong,
#task-order-hub-app th,
.task-order-hub-app b,
.task-order-hub-app strong,
.task-order-hub-app th,
.task-order-hub-dashboard b,
.task-order-hub-dashboard strong,
.task-order-hub-dashboard th,
.toh-standalone b,
.toh-standalone strong,
.toh-standalone th,
.toh-root b,
.toh-root strong,
.toh-root th{
    font-weight:600 !important;
}

#task-order-hub-app table td,
#task-order-hub-app table th,
.task-order-hub-app table td,
.task-order-hub-app table th,
.task-order-hub-dashboard table td,
.task-order-hub-dashboard table th,
.toh-standalone table td,
.toh-standalone table th,
.toh-root table td,
.toh-root table th{
    padding:7px 9px !important;
}

#task-order-hub-app button,
#task-order-hub-app .button,
#task-order-hub-app .btn,
.task-order-hub-app button,
.task-order-hub-app .button,
.task-order-hub-app .btn,
.task-order-hub-dashboard button,
.task-order-hub-dashboard .button,
.task-order-hub-dashboard .btn,
.toh-standalone button,
.toh-standalone .button,
.toh-standalone .btn,
.toh-root button,
.toh-root .button,
.toh-root .btn{
    font-size:10px !important;
    font-weight:600 !important;
    padding:8px 12px !important;
    border-radius:10px !important;
}

#task-order-hub-app .card,
#task-order-hub-app [class*="card"],
#task-order-hub-app [class*="panel"],
.task-order-hub-app .card,
.task-order-hub-app [class*="card"],
.task-order-hub-app [class*="panel"],
.task-order-hub-dashboard .card,
.task-order-hub-dashboard [class*="card"],
.task-order-hub-dashboard [class*="panel"],
.toh-standalone .card,
.toh-standalone [class*="card"],
.toh-standalone [class*="panel"],
.toh-root .card,
.toh-root [class*="card"],
.toh-root [class*="panel"]{
    border-radius:14px !important;
}

/* Không đụng wp-admin: chỉ khi body là trang standalone frontend */
body:not(.wp-admin) .task-order-hub,
body:not(.wp-admin) .task-order-hub *{
    font-family:'Bai Jamjuree',system-ui,sans-serif !important;
}



/* COLLAPSED MENU ICON FIX 6.8.2 */
.toh-fixed-menu-icon{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:20px!important;
    min-width:20px!important;
    height:20px!important;
    font-size:14px!important;
    line-height:1!important;
    margin-right:8px!important;
}

.toh-sidebar.is-collapsed a,
.sidebar.is-collapsed a,
body.toh-sidebar-collapsed .toh-sidebar a,
body.toh-sidebar-collapsed .sidebar a{
    justify-content:center!important;
    text-align:center!important;
    overflow:visible!important;
}

.toh-sidebar.is-collapsed .toh-fixed-menu-icon,
.sidebar.is-collapsed .toh-fixed-menu-icon,
body.toh-sidebar-collapsed .toh-fixed-menu-icon{
    margin-right:0!important;
}

.toh-sidebar.is-collapsed a > span:not(.toh-fixed-menu-icon):not(.menu-icon):not(.icon),
.sidebar.is-collapsed a > span:not(.toh-fixed-menu-icon):not(.menu-icon):not(.icon),
body.toh-sidebar-collapsed .toh-sidebar a > span:not(.toh-fixed-menu-icon):not(.menu-icon):not(.icon),
body.toh-sidebar-collapsed .sidebar a > span:not(.toh-fixed-menu-icon):not(.menu-icon):not(.icon){
    display:none!important;
}

.toh-kpi-pill.done,
.toh-kpi-pill.pending,
.toh-kpi-pill.late{
    display:inline-flex!important;
    min-width:28px!important;
    justify-content:center!important;
    border-radius:999px!important;
    padding:4px 9px!important;
    font-weight:700!important;
}

.toh-kpi-pill.done{background:#dcfce7!important;color:#047857!important;}
.toh-kpi-pill.pending{background:#fef3c7!important;color:#92400e!important;}
.toh-kpi-pill.late{background:#fee2e2!important;color:#b91c1c!important;}



/* COLLAPSED MENU LETTER ONLY FIX 6.8.3 */
.toh-menu-letter{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    border-radius:12px!important;
    background:rgba(255,255,255,.08)!important;
    color:#eaf2ff!important;
    font-size:14px!important;
    font-weight:800!important;
    line-height:1!important;
    margin:0!important;
}

.toh-letter-only-menu{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:52px!important;
    height:52px!important;
    min-height:52px!important;
    padding:0!important;
    margin:6px auto!important;
    overflow:hidden!important;
    text-indent:0!important;
    white-space:nowrap!important;
}

.toh-letter-only-menu .toh-menu-letter{
    margin:0!important;
}

.toh-letter-only-menu:hover .toh-menu-letter,
.toh-letter-only-menu.active .toh-menu-letter{
    background:rgba(37,99,235,.35)!important;
    color:#ffffff!important;
}

.toh-fixed-menu-icon,
.toh-menu-icon,
.menu-icon.icon-duplicated{
    display:none!important;
}

/* Hide leftover broken glyphs in collapsed sidebar */
.toh-sidebar.is-collapsed a,
.sidebar.is-collapsed a,
body.toh-sidebar-collapsed .toh-sidebar a,
body.toh-sidebar-collapsed .sidebar a{
    font-size:0!important;
}

.toh-sidebar.is-collapsed .toh-menu-letter,
.sidebar.is-collapsed .toh-menu-letter,
body.toh-sidebar-collapsed .toh-menu-letter{
    font-size:14px!important;
}






/* KPI TABLE DATA UPGRADE FROM VERSION 6.8.6 */
.toh-native-kpi-686{
    display:block;
}
.toh-kpi-upgraded-686{
    animation:none!important;
}
.toh-kpi-head.upgraded{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:16px!important;
}
.toh-kpi-date-filter{
    min-width:190px!important;
    border:1px solid #dbe7f3!important;
    background:#f8fafc!important;
    border-radius:16px!important;
    padding:9px 12px!important;
}
.toh-kpi-date-filter label{
    display:block!important;
    color:#64748b!important;
    font-size:10px!important;
    font-weight:800!important;
    text-transform:uppercase!important;
    margin-bottom:5px!important;
}
.toh-kpi-date-filter input{
    width:100%!important;
    border:0!important;
    background:transparent!important;
    color:#0f172a!important;
    font-size:13px!important;
    font-weight:800!important;
    padding:0!important;
    min-height:auto!important;
}
.toh-kpi-date-filter span{
    display:block!important;
    margin-top:4px!important;
    font-size:10px!important;
    color:#10b981!important;
    font-weight:700!important;
}
.toh-kpi-summary.upgraded{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:12px!important;
}
.toh-kpi-card.upgraded .toh-kpi-bars{
    gap:8px!important;
}
.kpi-table.upgraded table{
    table-layout:auto!important;
}
.kpi-table.upgraded th,
.kpi-table.upgraded td{
    white-space:nowrap!important;
    text-align:left!important;
}
.toh-kpi-loading,
.toh-kpi-empty{
    background:#fff!important;
    border:1px solid #e6edf5!important;
    border-radius:18px!important;
    padding:18px!important;
    color:#64748b!important;
    font-weight:700!important;
    box-shadow:0 12px 28px rgba(15,23,42,.045)!important;
}
@media(max-width:1100px){
    .toh-kpi-head.upgraded{flex-direction:column!important;align-items:stretch!important;}
    .toh-kpi-summary.upgraded{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}


/* FINAL UPGRADE 6.8.6 KPI POLISH */
.toh-kpi-summary.upgraded > div,
.toh-kpi-card.upgraded,
.kpi-table.upgraded{
    transition:none!important;
    animation:none!important;
}



/* ACCEPT TASK POPUP QUICK TIME UPGRADE 6.8.6 */
.toh-accept-modal-upgraded{
    backdrop-filter: blur(4px)!important;
}

.toh-accept-box-upgraded{
    width:min(520px, calc(100vw - 32px))!important;
    border-radius:26px!important;
    padding:28px!important;
    box-shadow:0 28px 80px rgba(15,23,42,.32)!important;
    border:1px solid rgba(226,232,240,.9)!important;
    background:#fff!important;
}

.toh-accept-box-upgraded h2,
.toh-accept-box-upgraded h3{
    font-size:24px!important;
    line-height:1.2!important;
    font-weight:800!important;
    color:#0f172a!important;
    margin-bottom:10px!important;
    letter-spacing:-.02em!important;
}

.toh-accept-box-upgraded p{
    color:#64748b!important;
    font-size:14px!important;
    line-height:1.55!important;
    margin-bottom:18px!important;
}

.toh-accept-time-input{
    width:100%!important;
    height:58px!important;
    border-radius:16px!important;
    border:1px solid #dbe7f3!important;
    background:#f8fafc!important;
    padding:0 18px!important;
    font-size:20px!important;
    font-weight:700!important;
    color:#0f172a!important;
    outline:none!important;
    transition:border .2s ease, box-shadow .2s ease!important;
}

.toh-accept-time-input:focus{
    border-color:#2563eb!important;
    box-shadow:0 0 0 4px rgba(37,99,235,.12)!important;
    background:#fff!important;
}

.toh-accept-quick-time{
    margin:16px 0 20px!important;
    padding:14px!important;
    border-radius:20px!important;
    background:linear-gradient(180deg,#f8fbff 0%,#ffffff 100%)!important;
    border:1px solid #e6edf5!important;
}

.toh-accept-label-row{
    display:flex!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:12px!important;
    margin-bottom:12px!important;
}

.toh-accept-label-row span{
    font-size:13px!important;
    font-weight:800!important;
    color:#0f172a!important;
}

.toh-accept-label-row small{
    max-width:210px!important;
    text-align:right!important;
    font-size:11px!important;
    line-height:1.35!important;
    color:#64748b!important;
}

.toh-accept-time-grid{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:8px!important;
}

.toh-accept-time-grid button{
    height:42px!important;
    border:1px solid #dbe7f3!important;
    border-radius:14px!important;
    background:#fff!important;
    color:#0f172a!important;
    font-size:13px!important;
    font-weight:800!important;
    cursor:pointer!important;
    transition:transform .15s ease, background .15s ease, color .15s ease, border .15s ease!important;
}

.toh-accept-time-grid button:hover{
    transform:translateY(-1px)!important;
    border-color:#2563eb!important;
    color:#2563eb!important;
}

.toh-accept-time-grid button.active{
    background:#2563eb!important;
    color:#fff!important;
    border-color:#2563eb!important;
    box-shadow:0 10px 22px rgba(37,99,235,.22)!important;
}

.toh-accept-helper{
    display:flex!important;
    justify-content:space-between!important;
    gap:10px!important;
    margin-top:12px!important;
    padding-top:12px!important;
    border-top:1px solid #edf2f7!important;
    color:#64748b!important;
    font-size:11px!important;
    line-height:1.35!important;
}

.toh-accept-current b{
    color:#2563eb!important;
    font-weight:800!important;
}

.toh-accept-box-upgraded .toh-modal-actions,
.toh-accept-box-upgraded .modal-actions,
.toh-accept-box-upgraded .actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:12px!important;
    margin-top:18px!important;
}

.toh-accept-box-upgraded button{
    border-radius:16px!important;
    min-height:54px!important;
    font-weight:800!important;
}

@media(max-width:520px){
    .toh-accept-time-grid{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
    .toh-accept-label-row,
    .toh-accept-helper{
        flex-direction:column!important;
    }
    .toh-accept-label-row small{
        text-align:left!important;
        max-width:none!important;
    }
}


/* FORCE ACCEPT TASK POPUP UI */

.toh-force-popup{
    border-radius:28px!important;
}

.toh-force-popup input[type=number]{
    height:58px!important;
    border-radius:16px!important;
    font-size:24px!important;
    font-weight:700!important;
    background:#f8fafc!important;
    border:1px solid #dbe4f0!important;
    padding:0 18px!important;
}

.toh-quick-time-wrap{
    margin-top:16px!important;
    padding:16px!important;
    border-radius:18px!important;
    background:#f8fbff!important;
    border:1px solid #e2e8f0!important;
}

.toh-quick-title{
    font-size:13px!important;
    font-weight:700!important;
    margin-bottom:12px!important;
    color:#0f172a!important;
}

.toh-quick-grid{
    display:grid!important;
    grid-template-columns:repeat(4,1fr)!important;
    gap:10px!important;
}

.toh-quick-grid button{
    height:42px!important;
    border-radius:14px!important;
    border:1px solid #dbe4f0!important;
    background:#fff!important;
    font-size:13px!important;
    font-weight:700!important;
    cursor:pointer!important;
}

.toh-quick-grid button.active{
    background:#2563eb!important;
    color:#fff!important;
    border-color:#2563eb!important;
}

.toh-quick-helper{
    margin-top:12px!important;
    font-size:11px!important;
    color:#64748b!important;
    line-height:1.5!important;
}


/* Fast time chips + multi upload 6.9.2 */
.toh-quick-time-wrap{margin:12px 0 14px;padding:12px;border:1px solid #e5e7eb;border-radius:16px;background:#f8fafc}.toh-quick-title{font-weight:900;color:#334155;margin-bottom:10px}.toh-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.toh-quick-grid button{border:1px solid #dbe3ef;background:#fff;color:#0f172a;border-radius:12px;padding:9px 8px;font-weight:900;cursor:pointer}.toh-quick-grid button.active,.toh-quick-grid button:hover{background:#2563eb;color:#fff;border-color:#2563eb}.toh-quick-helper{font-size:12px;color:#64748b;margin-top:8px}.toh-multi-upload{position:relative;margin-bottom:14px}.toh-multi-upload input[type=file]{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}.toh-upload-plus{display:flex!important;align-items:center;gap:12px;border:2px dashed #cbd5e1!important;background:#f8fafc;border-radius:16px;padding:16px!important;cursor:pointer;margin:0!important}.toh-upload-plus span{width:44px;height:44px;border-radius:14px;background:#2563eb;color:#fff;font-size:30px;font-weight:900;display:flex;align-items:center;justify-content:center;line-height:1}.toh-upload-plus b{display:block;color:#0f172a}.toh-upload-plus small{display:block;color:#64748b;margin-top:3px}.toh-upload-list{display:grid;gap:8px;margin-top:10px}.toh-upload-item,.toh-result-file-item{display:flex;align-items:center;gap:10px;border:1px solid #e5e7eb;background:#fff;border-radius:12px;padding:10px;text-decoration:none}.toh-upload-item span,.toh-result-file-item span{width:28px;height:28px;border-radius:50%;background:#2563eb;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900;flex:0 0 auto}.toh-upload-item b,.toh-result-file-item b{color:#0f172a;font-size:13px;word-break:break-word}.toh-upload-item small{margin-left:auto;color:#64748b}.toh-result-file-list{display:grid;gap:8px;margin:8px 0 14px}.toh-result-file-item:hover{border-color:#2563eb;background:#eff6ff}

/* Fast time chips visible inside real Nhận task popup 6.9.3 */
.toh-app-dialog .toh-quick-time-wrap{
    display:block!important;
    margin:14px 0 16px!important;
    padding:14px!important;
    border:1px solid #e2e8f0!important;
    border-radius:18px!important;
    background:#f8fafc!important;
}
.toh-app-dialog .toh-quick-title{
    margin:0 0 10px!important;
    color:#0f172a!important;
    font-size:13px!important;
    font-weight:900!important;
}
.toh-app-dialog .toh-quick-grid{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:8px!important;
}
.toh-app-dialog .toh-quick-grid button{
    width:auto!important;
    min-height:38px!important;
    margin:0!important;
    padding:8px 6px!important;
    border:1px solid #dbe3ef!important;
    border-radius:12px!important;
    background:#fff!important;
    color:#0f172a!important;
    font-size:13px!important;
    font-weight:900!important;
    cursor:pointer!important;
}
.toh-app-dialog .toh-quick-grid button.active,
.toh-app-dialog .toh-quick-grid button:hover{
    background:#2563eb!important;
    color:#fff!important;
    border-color:#2563eb!important;
}
.toh-app-dialog .toh-quick-helper{
    margin-top:8px!important;
    color:#64748b!important;
    font-size:12px!important;
    line-height:1.4!important;
}
@media(max-width:520px){
    .toh-app-dialog .toh-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}


/* Fast time buttons visibility fix v6.9.4 */
.toh-fast-time-dialog-v694 .toh-app-dialog-card{width:560px!important;max-width:92vw!important;}
.toh-fast-time-wrap-v694{display:block!important;margin:14px 0 16px!important;padding:14px!important;border:1px solid #e5e7eb!important;border-radius:16px!important;background:#f8fafc!important;}
.toh-fast-time-grid-v694{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;}
.toh-fast-time-grid-v694 button{display:block!important;min-height:38px!important;border:1px solid #dbe3ef!important;background:#fff!important;color:#0f172a!important;border-radius:12px!important;padding:8px!important;font-weight:900!important;cursor:pointer!important;}
.toh-fast-time-grid-v694 button.active,.toh-fast-time-grid-v694 button:hover{background:#2563eb!important;color:#fff!important;border-color:#2563eb!important;}
@media(max-width:520px){.toh-fast-time-grid-v694{grid-template-columns:repeat(3,minmax(0,1fr))!important;}}


/* Return file visible card 7.0.7 */
.toh-result-visible-card{margin-top:18px;padding:16px;border:1px solid #e5e7eb;border-radius:18px;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 12px 30px rgba(15,23,42,.06)}
.toh-result-visible-card h4{margin:0 0 12px!important;font-size:15px!important;font-weight:900!important;color:#0f172a!important}
.toh-result-visible-list{display:grid;gap:10px}
.toh-result-visible-item{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px;border:1px solid #eef2f7;border-radius:14px;background:#fff;text-decoration:none!important;color:#0f172a!important}
.toh-result-visible-item span{width:30px;height:30px;border-radius:11px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:950}
.toh-result-visible-item b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.toh-result-visible-item small{padding:6px 10px;border-radius:999px;background:#ecfdf5;color:#047857;font-weight:900;white-space:nowrap}
.toh-result-visible-single{display:inline-flex!important;align-items:center;gap:8px;padding:10px 14px!important;border-radius:12px!important;background:#eef2ff!important;color:#2563eb!important;font-weight:900!important;text-decoration:none!important}


/* SOUND + BROWSER NOTIFICATION UI 7.0.8 */
.toh-live-toast{
    background:linear-gradient(135deg,#2563eb 0%,#7c3aed 55%,#0f172a 100%) !important;
    border:1px solid rgba(255,255,255,.22) !important;
    box-shadow:0 28px 90px rgba(37,99,235,.35),0 12px 32px rgba(124,58,237,.24) !important;
    padding:16px 18px 16px 54px !important;
    overflow:hidden;
}
.toh-live-toast:before{
    content:'🔔';
    position:absolute;
    left:16px;
    top:16px;
    width:28px;
    height:28px;
    border-radius:12px;
    background:rgba(255,255,255,.18);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:15px;
}
.toh-live-toast:after{
    content:'';
    position:absolute;
    inset:auto 0 0 0;
    height:3px;
    background:rgba(255,255,255,.55);
    animation:tohNoticeBar 3.5s linear forwards;
}
.toh-live-toast b{font-size:15px !important;letter-spacing:.1px;}
.toh-live-toast small{font-size:12.5px !important;color:rgba(255,255,255,.88) !important;}
@keyframes tohNoticeBar{from{width:100%;}to{width:0%;}}
@media(max-width:640px){
    .toh-live-toast{left:14px !important;right:14px !important;top:76px !important;max-width:none !important;min-width:0 !important;}
}


/* v7.0.9 - Sound enable button */
.toh-sound-enable{
    position:fixed;
    right:28px;
    bottom:28px;
    z-index:999999;
    border:0;
    border-radius:999px;
    padding:14px 20px;
    font-weight:900;
    font-size:15px;
    color:#fff;
    cursor:pointer;
    background:linear-gradient(135deg,#2563eb,#7c3aed);
    box-shadow:0 18px 45px rgba(37,99,235,.35),0 8px 18px rgba(124,58,237,.22);
    transition:transform .18s ease, box-shadow .18s ease;
}
.toh-sound-enable:hover{transform:translateY(-2px);box-shadow:0 22px 55px rgba(37,99,235,.42),0 10px 22px rgba(124,58,237,.28)}
.toh-sound-enable:active{transform:translateY(0) scale(.98)}

/* TELEGRAM SETTINGS 7.1.0 */
.telegram-settings-section{display:block;padding:0;}
.toh-telegram-settings,.toh-settings-loading{background:rgba(255,255,255,.96);border:1px solid rgba(124,58,237,.12);box-shadow:0 18px 50px rgba(30,41,59,.10);border-radius:24px;padding:24px;margin:0 0 24px;}
.toh-settings-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px;}
.toh-settings-head h2{margin:0;font-size:24px;color:#111827;}
.toh-settings-head p{margin:8px 0 0;color:#64748b;line-height:1.5;}
.toh-telegram-badge{padding:8px 12px;border-radius:999px;background:linear-gradient(135deg,#7c3aed,#2563eb);color:#fff;font-weight:800;font-size:12px;white-space:nowrap;box-shadow:0 8px 20px rgba(79,70,229,.22);}
.toh-telegram-form label{display:block;margin:14px 0 7px;font-weight:800;color:#334155;}
.toh-telegram-form input[type="text"],.toh-telegram-form input:not([type]){width:100%;box-sizing:border-box;border:1px solid #e2e8f0;border-radius:14px;padding:12px 14px;background:#fff;color:#0f172a;outline:none;transition:.2s;}
.toh-telegram-form input:focus{border-color:#8b5cf6;box-shadow:0 0 0 4px rgba(139,92,246,.12);}
.toh-telegram-form small{display:block;color:#64748b;margin-top:6px;}
.toh-switch-row{display:flex!important;align-items:center;gap:12px;background:linear-gradient(135deg,#f8fafc,#eef2ff);border:1px solid #e0e7ff;border-radius:16px;padding:14px 16px;margin-bottom:18px!important;}
.toh-switch-row input{width:20px;height:20px;accent-color:#7c3aed;}
.toh-telegram-map{margin-top:20px;padding:18px;border-radius:20px;background:#f8fafc;border:1px solid #e2e8f0;}
.toh-telegram-map h3{margin:0 0 4px;color:#111827;}
.toh-telegram-map p{margin:0 0 14px;color:#64748b;}
.toh-telegram-chat-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;}
.toh-telegram-chat-row button,.toh-settings-actions button{border:0;border-radius:14px;padding:12px 16px;font-weight:900;cursor:pointer;background:linear-gradient(135deg,#7c3aed,#2563eb);color:white;box-shadow:0 10px 24px rgba(37,99,235,.20);}
.toh-telegram-chat-row button{background:#111827;box-shadow:none;}
.toh-settings-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px;}
.toh-settings-actions button:nth-child(2){background:#0f172a;}
.toh-telegram-help{margin-top:18px;padding:14px 16px;border-radius:16px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;line-height:1.55;}
@media(max-width:700px){.toh-settings-head{display:block}.toh-telegram-chat-row{grid-template-columns:1fr}.toh-settings-actions{display:grid}.toh-settings-actions button{width:100%;}}

/* v7.1.1 - Order Telegram reminder */
.toh-telegram-reminder,.toh-my-telegram-box{background:linear-gradient(135deg,#fff 0%,#f7f2ff 55%,#eff6ff 100%);border:1px solid rgba(124,58,237,.18);border-radius:22px;padding:22px;box-shadow:0 18px 45px rgba(88,28,135,.10);margin-bottom:18px;position:relative;overflow:hidden}.toh-telegram-reminder:before,.toh-my-telegram-box:before{content:"";position:absolute;right:-70px;top:-70px;width:180px;height:180px;background:radial-gradient(circle,rgba(124,58,237,.18),transparent 70%);pointer-events:none}.toh-telegram-reminder h2{margin:0 0 8px;font-size:22px;color:#3b0764}.toh-telegram-reminder p{margin:0 0 16px;color:#5b6475;line-height:1.55}.toh-open-my-telegram,.toh-my-telegram-box button[type="submit"]{border:0;border-radius:14px;padding:12px 18px;font-weight:800;color:#fff;background:linear-gradient(135deg,#7c3aed,#2563eb);box-shadow:0 12px 25px rgba(37,99,235,.24);cursor:pointer}.toh-open-my-telegram:hover,.toh-my-telegram-box button[type="submit"]:hover{transform:translateY(-1px);filter:brightness(1.04)}.toh-my-telegram-box input[name="telegram_username"]{width:100%;box-sizing:border-box;border:1px solid rgba(124,58,237,.25);border-radius:16px;padding:14px 16px;font-size:16px;background:#fff;outline:none}.toh-my-telegram-box input[name="telegram_username"]:focus{border-color:#7c3aed;box-shadow:0 0 0 4px rgba(124,58,237,.10)}.toh-my-telegram-box small{display:block;margin-top:8px;color:#64748b}.toh-my-telegram-box .toh-telegram-help{margin-top:16px;background:rgba(255,255,255,.72);border:1px solid rgba(124,58,237,.12);border-radius:16px;padding:14px;color:#475569}

/* v7.1.4 Telegram polished controls */
.toh-telegram-event-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.toh-event-toggle{background:#fff;border:1px solid #e6eaf2;border-radius:16px;padding:14px 16px;box-shadow:0 10px 25px rgba(15,23,42,.04)}.toh-event-toggle span{font-weight:700;color:#17233c}.toh-telegram-form textarea{font-family:inherit;line-height:1.55;background:#fff;border:1px solid #dfe6f1;border-radius:16px;padding:14px 16px;color:#17233c;box-shadow:0 8px 24px rgba(15,23,42,.04);resize:vertical}.toh-telegram-form textarea:focus,.toh-telegram-form input:focus{outline:none;border-color:#7c3aed;box-shadow:0 0 0 4px rgba(124,58,237,.12)}.toh-telegram-map h3{display:flex;align-items:center;gap:8px}.toh-telegram-map h3:before{content:'🔔';font-size:18px}.toh-telegram-help{background:linear-gradient(135deg,#f6f3ff,#eef7ff);border:1px solid #ded6ff;border-radius:18px;padding:16px 18px;color:#334155}.toh-settings-actions button{border-radius:14px}.toh-switch-row input[type=checkbox]{accent-color:#7c3aed}@media(max-width:768px){.toh-telegram-event-grid{grid-template-columns:1fr}.toh-telegram-form textarea{rows:5}}

/* v7.1.6 - Required Telegram channel onboarding */
.toh-telegram-channel-card{margin:18px 0;padding:16px 18px;border-radius:18px;background:linear-gradient(135deg,#eef2ff,#f5f3ff);border:1px solid rgba(124,58,237,.22);display:flex;align-items:center;justify-content:space-between;gap:14px;box-shadow:0 14px 30px rgba(79,70,229,.08)}
.toh-telegram-channel-card b{color:#17233c;font-size:16px}.toh-telegram-channel-card p{margin:4px 0 0;color:#64748b;line-height:1.45}.toh-telegram-channel-card a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:#fff;background:linear-gradient(135deg,#7c3aed,#2563eb);font-weight:900;border-radius:14px;padding:12px 16px;white-space:nowrap;box-shadow:0 12px 24px rgba(37,99,235,.22)}
.toh-telegram-channel-card.warn{background:#fff7ed;border-color:#fed7aa}.toh-telegram-channel-card.warn b{color:#9a3412}.toh-telegram-confirm-row{margin-top:16px!important;background:rgba(255,255,255,.78);border:1px solid rgba(124,58,237,.16);border-radius:16px;padding:14px 16px!important}.toh-telegram-confirm-row span{font-weight:800;color:#334155}.toh-my-telegram-box .toh-telegram-form input[type=checkbox]{width:auto;margin-right:8px}.toh-my-telegram-box .toh-telegram-form input[name="telegram_username"]::placeholder{color:#94a3b8}
@media(max-width:700px){.toh-telegram-channel-card{display:block}.toh-telegram-channel-card a{margin-top:12px;width:100%;box-sizing:border-box}}


/* =========================================================
   v7.2.8 COMPACT UI - GLOBAL 10PX DASHBOARD SCALE
   ========================================================= */
.toh-full-front,
.toh-full-front *{
    font-size:10px!important;
    line-height:1.35!important;
}
.toh-full-front h1,.toh-full-front h2,.toh-full-front h3,
.toh-full-front h4,.toh-full-front h5,.toh-full-front h6{
    letter-spacing:-.01em!important;
    line-height:1.2!important;
}
.toh-full-front h1{font-size:18px!important}.toh-full-front h2{font-size:16px!important}.toh-full-front h3{font-size:14px!important}.toh-full-front h4{font-size:12px!important}
.toh-brand h2,.toh-login-card h2{font-size:16px!important}.toh-brand p,.toh-login-card p{font-size:10px!important}
.toh-logo{width:42px!important;height:42px!important;border-radius:13px!important}.toh-sidebar{width:auto!important;padding:12px!important;gap:12px!important}.toh-app{grid-template-columns:220px 1fr!important}
.toh-new-order{font-size:11px!important;padding:13px 12px!important;border-radius:14px!important}.toh-nav{gap:5px!important}.toh-nav a{font-size:10px!important;padding:10px 11px!important;border-radius:10px!important}.toh-user{padding:10px!important;border-radius:13px!important;gap:8px!important}.toh-avatar,.toh-face{width:32px!important;height:32px!important}
.toh-topbar{height:56px!important;padding:0 16px!important;gap:12px!important}.toh-menu{font-size:19px!important}.toh-search{height:34px!important;border-radius:12px!important;max-width:560px!important}.toh-search input{font-size:10px!important}.toh-top-user{gap:10px!important}
.toh-content{height:calc(100vh - 56px)!important;grid-template-columns:minmax(0,1fr) 330px!important}.toh-left,.toh-detail{padding:14px!important}.toh-detail h2{font-size:15px!important;margin-bottom:12px!important}.toh-close{font-size:16px!important}
.toh-section-title{font-size:16px!important;margin-bottom:8px!important}.toh-panel,.toh-task-head,.toh-table-wrap,.toh-staff-head,.toh-role-grid div{border-radius:14px!important}.toh-panel{padding:12px!important;margin-bottom:12px!important}.toh-panel-head,.toh-task-head,.toh-staff-head{gap:9px!important}.toh-panel-head button,.toh-task-head button,.toh-task-head select,.toh-staff-head button{height:30px!important;border-radius:9px!important;padding:0 10px!important;font-size:10px!important}
.toh-stat-grid{gap:8px!important;margin-bottom:12px!important}.toh-stat{padding:12px!important;min-height:82px!important;border-radius:14px!important}.toh-stat span,.toh-stat small{font-size:10px!important}.toh-stat b{font-size:22px!important;margin:5px 0!important}
.toh-members{gap:8px!important;margin-top:10px!important}.toh-member{border-radius:11px!important;padding:9px!important;gap:7px!important}.toh-member span{width:30px!important;height:30px!important;border-width:3px!important}.toh-role-note{padding:9px 10px!important;border-radius:11px!important;margin-bottom:10px!important}
.toh-task-head{padding:11px!important}.toh-table{min-width:760px!important}.toh-table th,.toh-table td{padding:9px 8px!important;font-size:10px!important}.toh-badge{padding:4px 7px!important;border-radius:8px!important;font-size:9px!important}.toh-tag{padding:4px 7px!important;border-radius:8px!important;font-size:9px!important;margin:0 4px 4px 0!important}.toh-actions{gap:8px!important;margin-top:11px!important}.toh-actions button{padding:10px 8px!important;border-radius:10px!important;font-size:10px!important}
.toh-modal-card{width:500px!important;max-width:92vw!important;border-radius:20px!important;padding:18px!important}.toh-modal-close{right:14px!important;top:10px!important;font-size:20px!important}.toh-modal-card h2{font-size:18px!important;margin-bottom:12px!important}.toh-modal label{font-size:10px!important;margin:8px 0 5px!important}.toh-modal input,.toh-modal select,.toh-modal textarea{font-size:10px!important;min-height:38px!important;border-radius:11px!important;padding:10px 12px!important;margin-bottom:8px!important}.toh-modal textarea{min-height:88px!important}.toh-modal form button{font-size:11px!important;padding:12px!important;border-radius:11px!important}
.toh-login-card{width:360px!important;border-radius:20px!important;padding:26px!important}.toh-login-logo{width:56px!important;height:56px!important;border-radius:16px!important;font-size:22px!important}.toh-login-card a{font-size:10px!important;padding:10px 18px!important;border-radius:10px!important}
.toh-reset-pass{font-size:9px!important;padding:6px 9px!important;border-radius:8px!important}
/* Compact media */
.toh-media-wrap,.toh-media-shell,.toh-media-hero,.toh-media-toolbar,.toh-media-card{font-size:10px!important}.toh-media-hero{padding:14px 16px!important;border-radius:18px!important}.toh-media-toolbar{padding:12px!important;border-radius:18px!important;gap:10px!important}.toh-media-tab{height:36px!important;padding:0 14px!important;border-radius:12px!important;font-size:10px!important}.toh-media-search,.toh-media-filter{height:34px!important;border-radius:12px!important;font-size:10px!important}.toh-media-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))!important;gap:12px!important}.toh-media-card{border-radius:16px!important}.toh-media-thumb{height:120px!important}.toh-media-body{padding:10px!important}.toh-media-title{font-size:10px!important}.toh-media-meta,.toh-media-owner,.toh-media-size{font-size:9px!important}.toh-media-actions{gap:7px!important}.toh-media-actions button,.toh-media-actions a{height:34px!important;border-radius:11px!important;font-size:10px!important}
/* Compact return task popup */
.toh-return-modal,.toh-return-modal *,.toh-return-card,.toh-return-card *{font-size:10px!important}.toh-return-card{max-width:560px!important;border-radius:22px!important;padding:18px!important}.toh-return-upload{padding:12px!important;border-radius:16px!important}.toh-return-file-row{padding:9px!important;border-radius:12px!important}.toh-return-submit{height:44px!important;border-radius:14px!important;font-size:11px!important}
/* Notification / badges */
.toh-notify-toast,.toh-notify-toast *,.toh-telegram-panel,.toh-telegram-panel *{font-size:10px!important}.toh-notify-toast{border-radius:14px!important;padding:10px 12px!important}.toh-bell-badge{font-size:9px!important;min-width:16px!important;height:16px!important}
@media(max-width:1200px){.toh-app{grid-template-columns:1fr!important}.toh-content{grid-template-columns:1fr!important;height:auto!important}.toh-detail{display:none!important}.toh-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:780px){.toh-topbar{height:auto!important;padding:10px!important;flex-wrap:wrap!important}.toh-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.toh-media-thumb{height:100px!important}.toh-modal-card{width:94vw!important}}

/* =========================================================
   v7.3.0 POLISHED LAYOUT UI - balanced compact dashboard
   ========================================================= */
:root{--toh-bg:#f3f7fc;--toh-card:#ffffff;--toh-ink:#0f172a;--toh-soft:#eef4ff;--toh-line:#e3eaf5;--toh-blue:#2563eb;--toh-violet:#7c3aed;--toh-shadow:0 14px 36px rgba(15,23,42,.07)}
body.toh-standalone-page{background:var(--toh-bg)!important}
.toh-full-front{background:var(--toh-bg)!important;color:var(--toh-ink)!important}
.toh-app{grid-template-columns:205px minmax(0,1fr)!important;background:linear-gradient(180deg,#f8fbff,#eef4fb)!important}
.toh-sidebar{width:205px!important;padding:12px 10px!important;background:linear-gradient(180deg,#061529 0%,#071224 65%,#050b16 100%)!important;border-right:1px solid rgba(255,255,255,.06)!important;box-shadow:10px 0 34px rgba(2,6,23,.14)!important}
.toh-brand{gap:9px!important;padding:4px 2px 10px!important}.toh-brand h2{font-size:14px!important;white-space:nowrap!important}.toh-brand p{font-size:8.5px!important;opacity:.82!important}.toh-logo{width:36px!important;height:36px!important;border-radius:12px!important;box-shadow:0 10px 22px rgba(79,70,229,.32)!important}
.toh-new-order{min-height:42px!important;padding:10px 12px!important;border-radius:13px!important;background:linear-gradient(135deg,#2f6df3,#2563eb)!important;box-shadow:0 14px 30px rgba(37,99,235,.25)!important;text-transform:uppercase!important;letter-spacing:.01em!important}
.toh-nav{gap:4px!important}.toh-nav a{min-height:32px!important;display:flex!important;align-items:center!important;gap:6px!important;padding:8px 10px!important;border-radius:11px!important;font-weight:850!important;color:#e6eefb!important;opacity:.9!important}.toh-nav a.active,.toh-nav a:hover{background:linear-gradient(135deg,rgba(37,99,235,.34),rgba(14,116,144,.22))!important;color:#76b8ff!important;opacity:1!important;box-shadow:inset 0 0 0 1px rgba(96,165,250,.12)!important}
.toh-user{padding:9px!important;border-radius:14px!important;background:rgba(255,255,255,.09)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)!important}.toh-avatar,.toh-face{width:30px!important;height:30px!important}.toh-user b{font-size:10px!important}.toh-user small,.toh-user em{font-size:8.5px!important}
.toh-main{min-width:0!important;overflow:hidden!important}.toh-topbar{height:54px!important;margin:0!important;padding:0 16px!important;background:rgba(255,255,255,.92)!important;border-bottom:1px solid var(--toh-line)!important;box-shadow:0 8px 30px rgba(15,23,42,.04)!important;backdrop-filter:blur(12px)!important}.toh-menu{width:34px!important;height:34px!important;border-radius:11px!important;display:grid!important;place-items:center!important;background:#fff!important;border:1px solid var(--toh-line)!important;box-shadow:0 6px 16px rgba(15,23,42,.04)!important}.toh-search{height:34px!important;max-width:520px!important;border-radius:12px!important;border-color:var(--toh-line)!important;background:#f8fbff!important}.toh-top-user{gap:9px!important;font-weight:900!important}.toh-top-user b{font-size:10px!important}.toh-top-user .toh-logout,.toh-top-user a,.toh-logout{height:32px!important;padding:0 13px!important;border-radius:10px!important;background:#0f172a!important;color:#fff!important;display:inline-flex!important;align-items:center!important;text-decoration:none!important;font-weight:950!important}
.toh-content{grid-template-columns:minmax(0,1fr) 330px!important;height:calc(100vh - 54px)!important;gap:12px!important;padding:12px!important;overflow:hidden!important}.toh-left{padding:0!important;border-radius:18px!important;overflow:auto!important}.toh-detail{border:1px solid var(--toh-line)!important;border-radius:18px!important;background:rgba(255,255,255,.94)!important;box-shadow:var(--toh-shadow)!important;padding:15px!important}.toh-detail h2{font-size:15px!important}.toh-detail::-webkit-scrollbar,.toh-left::-webkit-scrollbar{width:8px}.toh-detail::-webkit-scrollbar-thumb,.toh-left::-webkit-scrollbar-thumb{background:#cbd8ea;border-radius:999px}
.toh-role-note{border-radius:12px!important;margin:0 0 12px!important;padding:10px 12px!important;background:linear-gradient(135deg,#eff6ff,#f3e8ff)!important;border:1px solid #c7ddff!important;box-shadow:0 8px 20px rgba(37,99,235,.05)!important}.toh-table-wrap,.toh-panel,.toh-task-head{border-color:var(--toh-line)!important;background:rgba(255,255,255,.96)!important;box-shadow:var(--toh-shadow)!important}.toh-table th{background:#f5f8fc!important;color:#52627a!important}.toh-table td{background:rgba(255,255,255,.96)!important}.toh-task-row:hover td,.toh-task-row.active td{background:#eef6ff!important}
/* Media page refined */
.toh-media-page{padding:0 0 24px!important;max-width:1180px!important;margin:0 auto!important}.toh-media-head{min-height:86px!important;margin:0 0 12px!important;padding:16px 20px!important;border-radius:22px!important;background:radial-gradient(circle at 80% 0%,rgba(124,58,237,.14),transparent 32%),linear-gradient(135deg,#fff,#f7f3ff 58%,#eef7ff)!important;border:1px solid rgba(124,58,237,.14)!important;box-shadow:0 18px 46px rgba(79,70,229,.10)!important}.toh-media-head h2{font-size:16px!important;margin:0 0 5px!important}.toh-media-head p{font-size:9.5px!important}.toh-media-total{min-width:88px!important;padding:13px 15px!important;border-radius:18px!important}.toh-media-total b{font-size:20px!important}.toh-media-total span{font-size:8.5px!important}
.toh-media-toolbar{position:sticky!important;top:0!important;z-index:50!important;display:grid!important;grid-template-columns:auto minmax(220px,1fr)!important;align-items:center!important;margin:0 0 14px!important;padding:10px!important;border-radius:22px!important;background:rgba(255,255,255,.93)!important;border:1px solid rgba(226,232,240,.96)!important;box-shadow:0 18px 40px rgba(15,23,42,.08)!important;backdrop-filter:blur(16px)!important}.toh-media-tabs{display:flex!important;gap:8px!important;align-items:center!important}.toh-media-tab{height:38px!important;min-height:0!important;padding:0 15px!important;border-radius:14px!important;font-size:10px!important;box-shadow:0 8px 18px rgba(15,23,42,.04)!important}.toh-media-tab.active{box-shadow:0 14px 28px rgba(37,99,235,.22)!important}.toh-media-controls{display:flex!important;justify-content:flex-end!important;gap:8px!important}.toh-media-search-wrap,.toh-media-select-wrap{height:36px!important;min-width:0!important;border-radius:13px!important;padding:0 11px!important;box-shadow:none!important}.toh-media-search-wrap{width:min(100%,280px)!important}.toh-media-select-wrap{width:170px!important}.toh-media-search,.toh-media-select-wrap select{height:34px!important;font-size:10px!important}
.toh-media-department{margin-top:10px!important}.toh-media-department h3{font-size:13px!important;margin:0 0 10px!important}.toh-media-department h3 span{font-size:8.5px!important;padding:4px 8px!important}.toh-media-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(180px,1fr))!important;gap:12px!important;align-items:start!important}.toh-media-card{border-radius:18px!important;border:1px solid rgba(226,232,240,.94)!important;box-shadow:0 12px 28px rgba(15,23,42,.07)!important;background:#fff!important;transition:transform .18s ease, box-shadow .18s ease!important}.toh-media-card:hover{transform:translateY(-3px)!important;box-shadow:0 18px 42px rgba(15,23,42,.12)!important}.toh-media-preview{height:116px!important;border:0!important;background:#f7f9fd!important}.toh-media-preview img{width:100%!important;height:100%!important;object-fit:cover!important}.toh-media-preview:after{font-size:8px!important;padding:5px 8px!important;opacity:.62!important;transform:translate(-50%,-50%) rotate(-14deg)!important}.toh-media-info{padding:9px 10px 10px!important}.toh-media-info strong{display:block!important;font-size:10px!important;line-height:1.25!important;margin-bottom:4px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.toh-media-info small{display:block!important;font-size:9px!important;color:#64748b!important;min-height:12px!important}.toh-media-info span{display:block!important;font-size:9px!important;margin-top:5px!important;color:#334155!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.toh-media-task-row{margin:7px 0 6px!important}.toh-media-task-code{max-width:calc(100% - 42px)!important;font-size:8.8px!important;padding:5px 7px!important}.toh-copy-task-id{height:22px!important;min-width:38px!important;border-radius:9px!important;font-size:8px!important}.toh-media-info em,.toh-media-size{font-size:8.5px!important;padding:5px 7px!important;border-radius:999px!important;background:#f1f5f9!important;color:#475569!important}.toh-media-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin-top:9px!important}.toh-media-open,.toh-media-download{height:34px!important;min-height:0!important;border-radius:12px!important;font-size:9.5px!important;font-weight:950!important}.toh-media-lightbox-card{max-width:min(980px,86vw)!important;max-height:88vh!important;border-radius:22px!important}.toh-media-lightbox-head{height:46px!important;padding:0 14px!important}.toh-media-lightbox-body img{max-height:calc(88vh - 46px)!important;object-fit:contain!important}
/* Forms/modals refined */
.toh-modal-card,.toh-return-card{border-radius:22px!important;box-shadow:0 28px 90px rgba(15,23,42,.28)!important}.toh-modal input,.toh-modal select,.toh-modal textarea,.toh-return-card input,.toh-return-card textarea{border-color:#dde6f2!important;background:#fff!important}.toh-actions button,.toh-modal form button,.toh-return-submit{box-shadow:0 12px 24px rgba(15,23,42,.08)!important}
@media(max-width:1320px){.toh-content{grid-template-columns:minmax(0,1fr) 300px!important}.toh-media-grid{grid-template-columns:repeat(auto-fill,minmax(165px,1fr))!important}.toh-media-preview{height:104px!important}}
@media(max-width:980px){.toh-app{grid-template-columns:1fr!important}.toh-sidebar{position:relative!important;width:auto!important}.toh-content{grid-template-columns:1fr!important;height:auto!important}.toh-detail{display:none!important}.toh-media-toolbar{grid-template-columns:1fr!important}.toh-media-controls{justify-content:stretch!important}.toh-media-search-wrap,.toh-media-select-wrap{width:100%!important}.toh-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}


/* v7.3.1 - compact header + media toolbar layout fix */
.toh-app{
    grid-template-columns:220px minmax(0,1fr)!important;
}
.toh-sidebar{
    width:220px!important;
    z-index:30!important;
}
.toh-main{
    position:relative!important;
    z-index:1!important;
    min-width:0!important;
    background:#f3f7fc!important;
}
.toh-topbar{
    height:48px!important;
    margin:10px 12px 0!important;
    padding:0 12px!important;
    border-radius:16px!important;
    border:1px solid rgba(226,232,240,.95)!important;
    background:rgba(255,255,255,.96)!important;
    box-shadow:0 10px 26px rgba(15,23,42,.045)!important;
    position:sticky!important;
    top:8px!important;
    z-index:80!important;
}
.toh-menu{
    width:30px!important;
    height:30px!important;
    border-radius:10px!important;
    font-size:16px!important;
}
.toh-search{
    height:30px!important;
    max-width:460px!important;
    border-radius:11px!important;
    font-size:9.5px!important;
}
.toh-top-user{gap:7px!important;min-width:max-content!important;}
.toh-top-user b{font-size:9.5px!important;}
.toh-bell,.toh-chat{transform:scale(.86)!important;transform-origin:center!important;}
.toh-logout,.toh-top-user .toh-logout,.toh-top-user a{
    height:30px!important;
    padding:0 12px!important;
    border-radius:10px!important;
    font-size:9px!important;
}
.toh-content{
    height:calc(100vh - 68px)!important;
    padding:12px!important;
    gap:10px!important;
    grid-template-columns:minmax(0,1fr) 310px!important;
}
.toh-left{
    padding:0!important;
    border-radius:18px!important;
}
.toh-detail{
    border-radius:18px!important;
    padding:14px!important;
}

/* smaller beautiful media controls */
.toh-media-page{
    max-width:1050px!important;
}
.toh-media-head{
    min-height:68px!important;
    padding:12px 16px!important;
    margin-bottom:10px!important;
    border-radius:18px!important;
}
.toh-media-head h2{font-size:14px!important;margin-bottom:3px!important;}
.toh-media-head p{font-size:8.8px!important;}
.toh-media-total{
    min-width:70px!important;
    padding:10px 12px!important;
    border-radius:15px!important;
}
.toh-media-total b{font-size:17px!important;}
.toh-media-total span{font-size:7.8px!important;}
.toh-media-toolbar{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    min-height:52px!important;
    padding:8px 10px!important;
    margin:0 0 12px!important;
    border-radius:18px!important;
}
.toh-media-tabs{
    display:flex!important;
    gap:7px!important;
    align-items:center!important;
    flex:0 0 auto!important;
}
.toh-media-tab{
    height:32px!important;
    min-height:32px!important;
    padding:0 12px!important;
    border-radius:12px!important;
    font-size:9px!important;
    white-space:nowrap!important;
}
.toh-media-controls{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:8px!important;
    flex:1 1 auto!important;
    min-width:0!important;
}
.toh-media-select-wrap,
.toh-media-search-wrap{
    height:32px!important;
    min-height:32px!important;
    border-radius:12px!important;
    padding:0 10px!important;
    background:#fff!important;
}
.toh-media-select-wrap{
    width:150px!important;
    flex:0 0 150px!important;
}
.toh-media-search-wrap{
    width:250px!important;
    flex:0 1 250px!important;
}
.toh-media-search,
.toh-media-select-wrap select{
    height:30px!important;
    font-size:9px!important;
}
.toh-media-grid{
    grid-template-columns:repeat(auto-fill,minmax(170px,1fr))!important;
    gap:11px!important;
}
.toh-media-card{border-radius:16px!important;}
.toh-media-preview{height:106px!important;}
.toh-media-info{padding:8px 9px 9px!important;}
.toh-media-info strong{font-size:9.5px!important;}
.toh-media-actions{gap:7px!important;margin-top:8px!important;}
.toh-media-open,.toh-media-download{height:30px!important;border-radius:11px!important;font-size:8.8px!important;}

@media(max-width:1320px){
    .toh-app{grid-template-columns:205px minmax(0,1fr)!important;}
    .toh-sidebar{width:205px!important;}
    .toh-content{grid-template-columns:minmax(0,1fr) 295px!important;}
    .toh-media-search-wrap{width:220px!important;flex-basis:220px!important;}
    .toh-media-select-wrap{width:135px!important;flex-basis:135px!important;}
}
@media(max-width:980px){
    .toh-app{grid-template-columns:1fr!important;}
    .toh-sidebar{width:auto!important;}
    .toh-topbar{margin:8px!important;top:6px!important;}
    .toh-content{height:auto!important;grid-template-columns:1fr!important;}
    .toh-media-toolbar{flex-direction:column!important;align-items:stretch!important;}
    .toh-media-tabs,.toh-media-controls{width:100%!important;justify-content:stretch!important;}
    .toh-media-tab{flex:1 1 0!important;}
    .toh-media-select-wrap,.toh-media-search-wrap{width:100%!important;flex:1 1 0!important;}
}

/* =========================================================
   v7.3.2 PRO UI SIDEBAR - 12px sidebar + clean SPA navigation
   ========================================================= */
.toh-app{grid-template-columns:220px minmax(0,1fr)!important;}
.toh-sidebar{
    width:220px!important;
    min-width:220px!important;
    padding:14px 11px!important;
    gap:13px!important;
    overflow:hidden auto!important;
}
.toh-brand{padding:4px 3px 12px!important;gap:10px!important;}
.toh-brand h2{font-size:15px!important;line-height:1.05!important;letter-spacing:-.03em!important;}
.toh-brand p{font-size:10px!important;line-height:1.2!important;color:#aebbd0!important;}
.toh-logo{width:40px!important;height:40px!important;border-radius:14px!important;}
.toh-new-order{
    min-height:46px!important;
    font-size:12px!important;
    line-height:1!important;
    border-radius:14px!important;
    margin:2px 0 8px!important;
}
.toh-nav{gap:7px!important;padding:0 0 8px!important;}
.toh-nav a{
    min-height:38px!important;
    padding:0 12px!important;
    border-radius:13px!important;
    display:flex!important;
    align-items:center!important;
    gap:9px!important;
    font-size:12px!important;
    line-height:1.15!important;
    font-weight:850!important;
    letter-spacing:-.015em!important;
    color:#dbeafe!important;
    opacity:.88!important;
    transition:background .16s ease, color .16s ease, opacity .16s ease, transform .16s ease, box-shadow .16s ease!important;
    position:relative!important;
}
.toh-nav a:hover{
    opacity:1!important;
    color:#fff!important;
    transform:translateX(2px)!important;
    background:rgba(37,99,235,.20)!important;
}
.toh-nav a.active,
.toh-nav a.toh-active{
    opacity:1!important;
    color:#8fd0ff!important;
    background:linear-gradient(135deg,rgba(37,99,235,.44),rgba(14,116,144,.27))!important;
    box-shadow:inset 0 0 0 1px rgba(96,165,250,.22),0 10px 22px rgba(37,99,235,.12)!important;
}
.toh-nav a.active:before,
.toh-nav a.toh-active:before{
    content:""!important;
    position:absolute!important;
    left:0!important;
    top:10px!important;
    bottom:10px!important;
    width:3px!important;
    border-radius:999px!important;
    background:linear-gradient(180deg,#38bdf8,#8b5cf6)!important;
}
.toh-fixed-menu-icon,.toh-nav a>span:first-child{font-size:13px!important;line-height:1!important;}
.toh-sidebar-user,.toh-user{font-size:12px!important;}
.toh-user b,.toh-sidebar-user strong{font-size:12px!important;line-height:1.1!important;}
.toh-user small,.toh-sidebar-user span{font-size:10px!important;}
.toh-topbar{
    margin:10px 12px 0!important;
    left:auto!important;
    right:auto!important;
    width:auto!important;
    max-width:none!important;
    box-sizing:border-box!important;
}
.toh-content{padding-top:12px!important;}
.toh-full-front.sidebar-collapsed .toh-app{grid-template-columns:70px minmax(0,1fr)!important;}
.toh-full-front.sidebar-collapsed .toh-sidebar{width:70px!important;min-width:70px!important;padding:12px 8px!important;}
.toh-full-front.sidebar-collapsed .toh-brand h2,
.toh-full-front.sidebar-collapsed .toh-brand p,
.toh-full-front.sidebar-collapsed .toh-new-order,
.toh-full-front.sidebar-collapsed .toh-nav a{font-size:0!important;justify-content:center!important;padding:0!important;}
.toh-full-front.sidebar-collapsed .toh-nav a:after{font-size:18px!important;}
.toh-full-front.sidebar-collapsed .toh-nav a{width:44px!important;height:44px!important;margin:0 auto!important;border-radius:16px!important;}
.toh-full-front.sidebar-collapsed .toh-nav a.active:before{display:none!important;}
@media(max-width:980px){
    .toh-app{grid-template-columns:1fr!important;}
    .toh-sidebar{width:auto!important;min-width:0!important;}
    .toh-topbar{margin:8px!important;}
}

/* 7.4.1 SIDEBAR INITIALS + BRAND UPLOAD UI FIX */
.toh-sidebar{overflow:hidden!important;}
.toh-brand{align-items:center!important;min-width:0!important;}
.toh-brand>div:not(.toh-logo){min-width:0!important;overflow:hidden!important;}
.toh-brand h2{max-width:165px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:14px!important;line-height:1.1!important;}
.toh-brand p{max-width:165px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:10px!important;}
.toh-nav a{font-size:12px!important;gap:10px!important;min-height:40px!important;}
.toh-menu-initial{display:none;align-items:center;justify-content:center;width:28px;height:28px;border-radius:10px;background:rgba(255,255,255,.10);color:#fff;font-weight:900;font-size:12px!important;line-height:1!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.toh-nav a.active .toh-menu-initial,.toh-nav a.toh-active .toh-menu-initial{background:rgba(255,255,255,.18);color:#fff;}
.toh-full-front.sidebar-collapsed .toh-app{grid-template-columns:82px minmax(0,1fr)!important;}
.toh-full-front.sidebar-collapsed .toh-sidebar{width:82px!important;min-width:82px!important;padding:14px 10px!important;align-items:center!important;}
.toh-full-front.sidebar-collapsed .toh-brand{justify-content:center!important;width:100%!important;}
.toh-full-front.sidebar-collapsed .toh-brand>div:not(.toh-logo),
.toh-full-front.sidebar-collapsed .toh-new-order{display:none!important;}
.toh-full-front.sidebar-collapsed .toh-logo{width:44px!important;height:44px!important;margin:0 auto 12px!important;}
.toh-full-front.sidebar-collapsed .toh-nav{width:100%!important;align-items:center!important;gap:10px!important;}
.toh-full-front.sidebar-collapsed .toh-nav a{width:48px!important;height:48px!important;min-height:48px!important;padding:0!important;margin:0 auto!important;border-radius:17px!important;font-size:0!important;justify-content:center!important;}
.toh-full-front.sidebar-collapsed .toh-nav a>*:not(.toh-menu-initial){display:none!important;}
.toh-full-front.sidebar-collapsed .toh-nav a .toh-menu-initial{display:flex!important;font-size:15px!important;width:32px;height:32px;}
.toh-full-front.sidebar-collapsed .toh-user{width:52px!important;height:52px!important;padding:6px!important;justify-content:center!important;}
.toh-full-front.sidebar-collapsed .toh-user>div:not(.toh-avatar),
.toh-full-front.sidebar-collapsed .toh-user b,
.toh-full-front.sidebar-collapsed .toh-user small,
.toh-full-front.sidebar-collapsed .toh-user em{display:none!important;}
.toh-full-front.sidebar-collapsed .toh-avatar{width:40px!important;height:40px!important;}
.toh-full-front.sidebar-collapsed .toh-topbar{margin-left:10px!important;}
.toh-upload-field input[type=text]{min-width:0!important;}
.toh-upload-btn:hover{filter:brightness(1.08);transform:translateY(-1px);}
.toh-brand-form label{font-size:11px!important;font-weight:850!important;}
.toh-brand-form input{font-size:11px!important;}


/* =========================================================
   v7.4.2 SIDEBAR COLLAPSE CLEAN FIX
   - Remove duplicate legacy letters/icons in collapsed sidebar
   - Keep only one clean initial badge per menu item
   ========================================================= */
.toh-full-front.sidebar-collapsed .toh-nav a .toh-menu-letter,
.toh-full-front.sidebar-collapsed .toh-nav a .toh-fixed-menu-icon,
.toh-full-front.sidebar-collapsed .toh-nav a .toh-menu-icon,
.toh-full-front.sidebar-collapsed .toh-nav a .menu-icon,
.toh-full-front.sidebar-collapsed .toh-nav a .icon,
.toh-sidebar.is-collapsed .toh-nav a .toh-menu-letter,
body.toh-sidebar-collapsed .toh-nav a .toh-menu-letter{
    display:none!important;
    width:0!important;
    height:0!important;
    min-width:0!important;
    opacity:0!important;
    pointer-events:none!important;
}
.toh-full-front.sidebar-collapsed .toh-nav a,
body.toh-sidebar-collapsed .toh-nav a,
.toh-sidebar.is-collapsed .toh-nav a{
    width:46px!important;
    height:46px!important;
    min-height:46px!important;
    padding:0!important;
    margin:0 auto 8px!important;
    border-radius:16px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:0!important;
    font-size:0!important;
    line-height:0!important;
    letter-spacing:0!important;
    text-indent:0!important;
    overflow:hidden!important;
    white-space:nowrap!important;
}
.toh-full-front.sidebar-collapsed .toh-nav a > *:not(.toh-menu-initial),
body.toh-sidebar-collapsed .toh-nav a > *:not(.toh-menu-initial),
.toh-sidebar.is-collapsed .toh-nav a > *:not(.toh-menu-initial){
    display:none!important;
}
.toh-full-front.sidebar-collapsed .toh-nav a .toh-menu-initial,
body.toh-sidebar-collapsed .toh-nav a .toh-menu-initial,
.toh-sidebar.is-collapsed .toh-nav a .toh-menu-initial{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:31px!important;
    height:31px!important;
    min-width:31px!important;
    border-radius:11px!important;
    background:rgba(255,255,255,.12)!important;
    color:#eef6ff!important;
    font-size:14px!important;
    font-weight:900!important;
    line-height:1!important;
    text-indent:0!important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.10)!important;
}
.toh-full-front.sidebar-collapsed .toh-nav a.active .toh-menu-initial,
.toh-full-front.sidebar-collapsed .toh-nav a.toh-active .toh-menu-initial,
body.toh-sidebar-collapsed .toh-nav a.active .toh-menu-initial,
.toh-sidebar.is-collapsed .toh-nav a.active .toh-menu-initial{
    background:linear-gradient(135deg,var(--toh-tab-color,#2563eb),#7c3aed)!important;
    color:#fff!important;
    box-shadow:0 10px 22px rgba(37,99,235,.32)!important;
}
.toh-full-front.sidebar-collapsed .toh-nav a::before,
.toh-full-front.sidebar-collapsed .toh-nav a::after,
body.toh-sidebar-collapsed .toh-nav a::before,
body.toh-sidebar-collapsed .toh-nav a::after,
.toh-sidebar.is-collapsed .toh-nav a::before,
.toh-sidebar.is-collapsed .toh-nav a::after{
    display:none!important;
    content:none!important;
}
.toh-full-front.sidebar-collapsed .toh-sidebar{
    overflow:hidden!important;
}

/* v7.4.3 - clean sidebar initials + admin sidebar background color */
.toh-full-front:not(.sidebar-collapsed) .toh-menu-initial,
.toh-full-front:not(.sidebar-collapsed) .toh-menu-letter,
.toh-full-front:not(.sidebar-collapsed) .toh-fixed-menu-icon{
    display:none!important;
}
.toh-full-front:not(.sidebar-collapsed) .toh-nav a{
    justify-content:flex-start!important;
    gap:9px!important;
    padding-left:14px!important;
    overflow:hidden!important;
}
.toh-full-front:not(.sidebar-collapsed) .toh-nav a > *:not(.toh-menu-initial):not(.toh-menu-letter):not(.toh-fixed-menu-icon){
    display:inline-flex!important;
}
.toh-full-front.sidebar-collapsed .toh-nav a{
    width:44px!important;
    height:44px!important;
    min-height:44px!important;
    padding:0!important;
    margin:2px auto!important;
    border-radius:13px!important;
    justify-content:center!important;
    align-items:center!important;
    font-size:0!important;
    overflow:visible!important;
}
.toh-full-front.sidebar-collapsed .toh-nav a > *:not(.toh-menu-initial):not(.toh-menu-letter){
    display:none!important;
}
.toh-full-front.sidebar-collapsed .toh-menu-initial,
.toh-full-front.sidebar-collapsed .toh-menu-letter{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    border-radius:11px!important;
    background:rgba(255,255,255,.10)!important;
    color:#eaf2ff!important;
    font-size:13px!important;
    line-height:1!important;
    font-weight:900!important;
    margin:0!important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)!important;
}
.toh-full-front.sidebar-collapsed .toh-nav a.active .toh-menu-initial,
.toh-full-front.sidebar-collapsed .toh-nav a.active .toh-menu-letter{
    background:linear-gradient(135deg,var(--toh-sidebar-active,#2563eb),#2563eb)!important;
    color:#fff!important;
    box-shadow:0 10px 24px rgba(37,99,235,.28)!important;
}
.toh-sidebar{background:linear-gradient(180deg,var(--toh-sidebar-bg,#071529),#061222)!important;}

/* v7.4.5 - no header search + animated company message marquee */
.toh-topbar{
  display:flex!important;align-items:center!important;gap:10px!important;
  min-height:56px!important;padding:10px 16px!important;overflow:visible!important;
}
.toh-search{flex:0 1 520px!important;min-width:260px!important;max-width:520px!important;}
.toh-company-message{
  flex:1 1 auto!important;min-width:220px!important;max-width:620px!important;height:var(--toh-message-height,44px)!important;
  border-radius:16px!important;border:1px solid rgba(99,102,241,.16)!important;
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(239,246,255,.9),rgba(245,243,255,.94))!important;
  box-shadow:0 12px 34px rgba(99,102,241,.08)!important;display:flex!important;align-items:center!important;overflow:hidden!important;position:relative!important;
}
.toh-company-message.is-text{padding:0 15px!important;gap:8px!important;}
.toh-company-message.is-text:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.7),transparent);transform:translateX(-120%);animation:tohShimmer 4.8s linear infinite;pointer-events:none;}
.toh-company-message.is-text span{font-size:15px!important;z-index:1}.toh-company-message.is-text b{font-size:11px!important;font-weight:900!important;color:#1e293b!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;z-index:1;letter-spacing:.01em!important}
.toh-company-message.has-image img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;}
.toh-live-clock{height:44px!important;min-width:112px!important;border-radius:16px!important;background:linear-gradient(135deg,var(--toh-primary,#6C4BFF),#2563eb)!important;color:#fff!important;box-shadow:0 14px 32px rgba(37,99,235,.22)!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;line-height:1!important;white-space:nowrap!important;}
.toh-live-clock .toh-clock-time{font-size:15px!important;font-weight:950!important;letter-spacing:.02em!important}.toh-live-clock .toh-clock-date{font-size:8.5px!important;font-weight:800!important;margin-top:4px!important;opacity:.88!important}
@keyframes tohShimmer{0%{transform:translateX(-120%)}45%,100%{transform:translateX(120%)}}
.toh-brand-form .toh-brand-wide{grid-column:1/-1!important;}
.toh-brand-form select,.toh-brand-form input[type=number]{height:42px;border:1px solid #dbe3ef;border-radius:12px;padding:0 12px;background:#fff;font-weight:800;outline:0;}
.toh-full-front:not(.sidebar-collapsed) .toh-menu-initial{display:none!important;}
.toh-full-front.sidebar-collapsed .toh-nav a{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;}
.toh-full-front.sidebar-collapsed .toh-menu-initial{display:grid!important;place-items:center!important;width:36px!important;height:36px!important;margin:0 auto!important;border-radius:13px!important;background:rgba(255,255,255,.1)!important;border:1px solid rgba(255,255,255,.12)!important;color:#fff!important;font-size:16px!important;font-weight:950!important;}
.toh-full-front.sidebar-collapsed .toh-nav a.active .toh-menu-initial{background:linear-gradient(135deg,var(--toh-sidebar-active,#2563eb),var(--toh-primary,#6C4BFF))!important;box-shadow:0 12px 28px rgba(37,99,235,.32)!important;}
@media(max-width:1280px){.toh-company-message{display:none!important}.toh-live-clock{min-width:100px!important}.toh-search{max-width:480px!important}}
@media(max-width:800px){.toh-live-clock{display:none!important}.toh-search{flex:1 1 100%!important;min-width:0!important}}


/* v7.4.5 - Header message replaces global search */
.toh-topbar{gap:12px!important;}
.toh-topbar > .toh-search{display:none!important;}
.toh-company-message{
  flex:1 1 auto!important;
  max-width:none!important;
  min-width:360px!important;
  margin-left:4px!important;
  padding:0!important;
  background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(240,249,255,.92),rgba(245,243,255,.98))!important;
  border:1px solid rgba(124,58,237,.18)!important;
  box-shadow:0 14px 34px rgba(37,99,235,.08), inset 0 1px 0 rgba(255,255,255,.9)!important;
}
.toh-company-message.is-text{gap:0!important;}
.toh-company-message.is-text:before{display:none!important;}
.toh-message-track{
  display:flex!important;
  align-items:center!important;
  gap:34px!important;
  width:max-content!important;
  min-width:100%!important;
  padding-left:100%!important;
  white-space:nowrap!important;
  animation:tohMarqueeRightToLeft 34s linear infinite!important;
}
.toh-company-message:hover .toh-message-track{animation-play-state:paused!important;}
.toh-message-track span{
  display:inline-flex!important;
  align-items:center!important;
  font-size:11.5px!important;
  line-height:1!important;
  font-weight:900!important;
  color:#1e293b!important;
  letter-spacing:.01em!important;
  text-shadow:0 1px 0 rgba(255,255,255,.65)!important;
}
@keyframes tohMarqueeRightToLeft{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}
.toh-brand-form textarea{
  width:100%!important;
  min-height:105px!important;
  resize:vertical!important;
  border:1px solid #dbe3ef!important;
  border-radius:14px!important;
  padding:12px 14px!important;
  background:#fff!important;
  font-size:12px!important;
  line-height:1.55!important;
  font-weight:800!important;
  color:#0f172a!important;
  outline:0!important;
}
.toh-brand-form label small{display:block!important;margin:4px 0 7px!important;color:#64748b!important;font-size:10px!important;font-weight:700!important;}
@media(max-width:1280px){.toh-company-message{display:flex!important;min-width:280px!important}.toh-live-clock{min-width:100px!important}}
@media(max-width:900px){.toh-company-message{min-width:0!important}.toh-message-track span{font-size:10px!important}.toh-live-clock{display:none!important}}

/* v7.4.6 - polished header marquee + compact profile dropdown */
.toh-topbar{display:grid!important;grid-template-columns:52px minmax(280px,1fr) auto auto;align-items:center;gap:14px;padding:12px 18px!important;border-radius:22px;background:rgba(255,255,255,.86);backdrop-filter:blur(18px);box-shadow:0 18px 40px rgba(15,23,42,.06);overflow:visible!important}
.toh-company-message.is-text{height:46px!important;border:1px solid rgba(124,58,237,.18)!important;border-radius:18px!important;background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(245,243,255,.9))!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.45);overflow:hidden;min-width:0;position:relative;display:flex;align-items:center}
.toh-company-message.is-text:before,.toh-company-message.is-text:after{content:'';position:absolute;top:0;bottom:0;width:42px;z-index:2;pointer-events:none}.toh-company-message.is-text:before{left:0;background:linear-gradient(90deg,#fff,transparent)}.toh-company-message.is-text:after{right:0;background:linear-gradient(270deg,#fff,transparent)}
.toh-message-track{display:inline-flex!important;gap:32px;white-space:nowrap;animation:tohMarquee var(--toh-message-speed,28s) linear infinite;will-change:transform;padding-left:100%}.toh-message-track:hover{animation-play-state:paused}.toh-message-track span{display:inline-flex;align-items:center;font-weight:900;font-size:12px;color:#0f172a;letter-spacing:.01em}.toh-message-track span:after{content:'•';margin-left:28px;color:#8b5cf6}
@keyframes tohMarquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.toh-live-clock{height:46px!important;min-width:112px;border-radius:16px!important;background:linear-gradient(135deg,var(--toh-primary,#6c4bff),#06b6d4)!important;color:#fff!important;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 14px 28px rgba(37,99,235,.18)}.toh-clock-time{font-size:16px!important;line-height:1;font-weight:950}.toh-clock-date{font-size:9px!important;font-weight:800;opacity:.9;margin-top:4px}
.toh-top-actions{display:flex;align-items:center;gap:9px;position:relative}.toh-noti-pill{height:42px;width:42px;border:0;border-radius:15px;background:#fff;box-shadow:0 12px 25px rgba(15,23,42,.08);position:relative;cursor:pointer}.toh-noti-pill span{font-size:16px}.toh-noti-pill em{position:absolute;right:3px;top:3px;background:#ef4444;color:#fff;border-radius:999px;font-style:normal;font-size:9px;font-weight:900;min-width:18px;height:18px;display:flex;align-items:center;justify-content:center}
.toh-profile-wrap{position:relative}.toh-profile-chip{height:46px;border:1px solid rgba(37,99,235,.18);background:#fff;border-radius:16px;display:flex;align-items:center;gap:9px;padding:5px 10px 5px 6px;cursor:pointer;box-shadow:0 12px 28px rgba(15,23,42,.08);min-width:138px}.toh-profile-avatar{width:34px;height:34px;border-radius:12px;background:linear-gradient(135deg,var(--toh-primary,#6c4bff),#38bdf8);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:950;overflow:hidden;flex:none}.toh-profile-avatar img{width:100%;height:100%;object-fit:cover}.toh-profile-avatar.big{width:46px;height:46px;border-radius:16px}.toh-profile-meta{display:flex;flex-direction:column;align-items:flex-start;line-height:1.1;min-width:0}.toh-profile-meta b{font-size:11px;color:#0f172a;max-width:78px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.toh-profile-meta small{font-size:9px;color:#22c55e;font-weight:800}.toh-profile-chip i{font-style:normal;color:#64748b;font-weight:900;margin-left:auto}
.toh-profile-dropdown{position:absolute;right:0;top:56px;width:240px;background:#fff;border:1px solid #e5e7eb;border-radius:18px;box-shadow:0 24px 60px rgba(15,23,42,.16);padding:10px;z-index:10000;display:none}.toh-profile-wrap.open .toh-profile-dropdown{display:block}.toh-profile-head{display:flex;align-items:center;gap:10px;padding:10px;border-radius:14px;background:linear-gradient(135deg,#f8fafc,#f5f3ff);margin-bottom:6px}.toh-profile-head b{font-size:12px}.toh-profile-head small{display:block;color:#22c55e;font-weight:800;font-size:10px;margin-top:2px}.toh-profile-item{width:100%;border:0;background:transparent;border-radius:12px;text-align:left;padding:10px 11px;font-size:11px;font-weight:800;color:#334155;cursor:pointer}.toh-profile-item:hover{background:#f1f5f9;color:#2563eb}.toh-profile-item#tohLogout{color:#ef4444;border-top:1px solid #eef2f7;margin-top:6px;border-radius:0 0 12px 12px}
.toh-profile-modal{position:fixed;inset:0;background:rgba(15,23,42,.55);backdrop-filter:blur(12px);z-index:99999;display:none;align-items:center;justify-content:center;padding:20px}.toh-profile-modal.open{display:flex}.toh-profile-box{width:min(520px,92vw);background:#fff;border-radius:24px;padding:22px;box-shadow:0 30px 90px rgba(15,23,42,.22);position:relative}.toh-profile-close{position:absolute;right:16px;top:14px;width:38px;height:38px;border:0;border-radius:12px;background:#f1f5f9;font-size:22px;cursor:pointer}.toh-profile-box h2{margin:0 0 5px;font-size:18px}.toh-profile-box p{margin:0 0 16px;color:#64748b}.toh-profile-box label{display:block;font-size:11px;font-weight:900;color:#334155;margin:12px 0}.toh-profile-box input,.toh-profile-box textarea{width:100%;border:1px solid #dbe3ef;border-radius:14px;padding:12px;font-size:12px;margin-top:6px}.toh-profile-box>button[type=submit]{width:100%;height:46px;border:0;border-radius:15px;background:linear-gradient(135deg,var(--toh-primary,#6c4bff),#2563eb);color:#fff;font-weight:950;margin-top:10px;cursor:pointer}
.toh-sidebar:not(.is-collapsed) .toh-menu-initial,.toh-sidebar:not(.is-collapsed) .toh-menu-letter{display:none!important}.toh-sidebar.is-collapsed .toh-nav a{justify-content:center!important;padding:0!important;width:42px!important;height:42px!important;margin:7px auto!important}.toh-sidebar.is-collapsed .toh-menu-initial,.toh-sidebar.is-collapsed .toh-menu-letter{display:flex!important;align-items:center;justify-content:center;width:30px;height:30px;border-radius:12px;background:rgba(255,255,255,.12);color:#fff;font-weight:950;font-size:13px}.toh-sidebar.is-collapsed .toh-nav a span:not(.toh-menu-initial):not(.toh-menu-letter),.toh-sidebar.is-collapsed .toh-nav a b,.toh-sidebar.is-collapsed .toh-nav a small{display:none!important}
@media(max-width:1100px){.toh-topbar{grid-template-columns:46px 1fr auto}.toh-live-clock{display:none}.toh-profile-meta{display:none}.toh-profile-chip{min-width:auto}.toh-company-message.is-text{max-width:100%}}

/* v7.4.7 - larger balanced header layout */
.toh-topbar{
  min-height:72px!important;
  height:auto!important;
  display:grid!important;
  grid-template-columns:52px minmax(420px,1fr) 124px auto!important;
  align-items:center!important;
  gap:14px!important;
  padding:14px 18px!important;
  margin:14px 16px 10px!important;
  border-radius:24px!important;
  background:rgba(255,255,255,.94)!important;
  border:1px solid rgba(226,232,240,.95)!important;
  box-shadow:0 18px 45px rgba(15,23,42,.07)!important;
  backdrop-filter:blur(18px)!important;
  overflow:visible!important;
}
.toh-menu{
  width:42px!important;
  height:42px!important;
  border-radius:14px!important;
  background:#fff!important;
  border:1px solid rgba(203,213,225,.75)!important;
  box-shadow:0 10px 24px rgba(15,23,42,.07)!important;
  font-size:20px!important;
}
.toh-company-message.is-text{
  height:50px!important;
  min-width:0!important;
  width:100%!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(246,243,255,.96),rgba(240,249,255,.94))!important;
  border:1px solid rgba(124,58,237,.18)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 12px 28px rgba(124,58,237,.08)!important;
}
.toh-message-track{
  gap:42px!important;
  animation-duration:var(--toh-message-speed,28s)!important;
}
.toh-message-track span{
  font-size:12.5px!important;
  font-weight:950!important;
  color:#172033!important;
}
.toh-live-clock{
  width:124px!important;
  min-width:124px!important;
  height:50px!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,var(--toh-primary,#6C4BFF),#06b6d4)!important;
  box-shadow:0 15px 34px rgba(37,99,235,.22)!important;
}
.toh-live-clock .toh-clock-time{font-size:16px!important;font-weight:950!important;}
.toh-live-clock .toh-clock-date{font-size:9px!important;font-weight:900!important;}
.toh-top-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  min-width:max-content!important;
}
.toh-noti-pill{
  width:42px!important;
  height:42px!important;
  border-radius:15px!important;
  background:#fff!important;
  box-shadow:0 12px 25px rgba(15,23,42,.08)!important;
}
.toh-profile-chip{
  height:50px!important;
  min-width:148px!important;
  border-radius:18px!important;
  padding:6px 10px 6px 7px!important;
  border:1px solid rgba(37,99,235,.18)!important;
  box-shadow:0 12px 28px rgba(15,23,42,.08)!important;
}
.toh-profile-avatar{width:36px!important;height:36px!important;border-radius:14px!important;}
.toh-profile-meta b{font-size:11px!important;max-width:82px!important;text-transform:uppercase!important;}
.toh-profile-meta small{font-size:9px!important;}
.toh-top-user{display:none!important;}
@media(max-width:1280px){
  .toh-topbar{grid-template-columns:48px minmax(260px,1fr) auto!important;margin:10px!important;}
  .toh-live-clock{display:none!important;}
}
@media(max-width:860px){
  .toh-topbar{grid-template-columns:44px 1fr auto!important;padding:10px!important;gap:9px!important;}
  .toh-company-message.is-text{height:42px!important;}
  .toh-message-track span{font-size:10px!important;}
  .toh-profile-chip{min-width:auto!important;width:46px!important;padding:5px!important;}
  .toh-profile-meta,.toh-profile-chip i{display:none!important;}
  .toh-noti-pill{display:none!important;}
}

/* v7.4.7 - settings controls polish */
.toh-brand-form input[name="header_message_speed"]{max-width:180px!important;}


/* v7.4.8 - balanced premium header + working adjustable marquee speed */
.toh-topbar{
  min-height:78px!important;
  grid-template-columns:52px minmax(0,1fr) 126px auto!important;
  gap:16px!important;
  padding:13px 18px!important;
  margin:16px 18px 14px!important;
  border-radius:26px!important;
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(248,250,252,.93))!important;
  border:1px solid rgba(226,232,240,.95)!important;
  box-shadow:0 18px 42px rgba(15,23,42,.075)!important;
}
.toh-company-message.is-text{
  height:52px!important;
  min-width:0!important;
  border-radius:21px!important;
  padding:0!important;
  overflow:hidden!important;
  background:linear-gradient(90deg,rgba(255,255,255,.98),rgba(250,245,255,.96),rgba(240,249,255,.96))!important;
  border:1px solid rgba(139,92,246,.22)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 14px 32px rgba(124,58,237,.09)!important;
}
.toh-company-message.is-text:before{width:64px!important;background:linear-gradient(90deg,rgba(255,255,255,1),rgba(255,255,255,.74),transparent)!important;z-index:3!important;display:block!important;}
.toh-company-message.is-text:after{width:64px!important;background:linear-gradient(270deg,rgba(255,255,255,1),rgba(255,255,255,.74),transparent)!important;z-index:3!important;display:block!important;}
.toh-message-track{
  display:inline-flex!important;
  align-items:center!important;
  width:max-content!important;
  gap:34px!important;
  padding-left:0!important;
  white-space:nowrap!important;
  animation-name:tohMarqueeFull!important;
  animation-duration:var(--toh-message-speed,12s)!important;
  animation-timing-function:linear!important;
  animation-iteration-count:infinite!important;
  will-change:transform!important;
}
.toh-message-track span{
  font-size:12px!important;
  line-height:1!important;
  font-weight:950!important;
  color:#0f172a!important;
  padding:0 4px!important;
}
.toh-message-track span:after{content:'•';margin-left:28px;color:#8b5cf6;font-weight:950!important;}
@keyframes tohMarqueeFull{0%{transform:translateX(100%)}100%{transform:translateX(-100%)}}
.toh-live-clock{height:52px!important;border-radius:20px!important;background:linear-gradient(135deg,#c6d91f,#0ea5e9)!important;box-shadow:0 15px 34px rgba(14,165,233,.22)!important;}
.toh-clock-time{font-size:18px!important;letter-spacing:.02em!important}.toh-clock-date{font-size:9px!important}
.toh-top-actions{gap:12px!important}.toh-noti-pill{width:44px!important;height:44px!important;border-radius:17px!important}.toh-profile-chip{height:52px!important;border-radius:20px!important;min-width:156px!important;padding:6px 11px 6px 7px!important;background:rgba(255,255,255,.97)!important}
.toh-profile-avatar{width:38px!important;height:38px!important;border-radius:15px!important}.toh-profile-meta b{font-size:11px!important}.toh-profile-meta small{font-size:9px!important}
.toh-brand-form input[name="header_message_speed"]{max-width:140px!important}
@media(max-width:1280px){.toh-topbar{grid-template-columns:48px minmax(220px,1fr) auto!important}.toh-live-clock{display:none!important}.toh-profile-chip{min-width:52px!important}.toh-profile-meta{display:none!important}}
@media(max-width:780px){.toh-company-message.is-text{height:42px!important}.toh-message-track span{font-size:10px!important}.toh-topbar{margin:10px!important}}

/* v7.5.0 login + storage gallery backup polish */
.toh-app-login{min-height:100vh;display:grid;place-items:center;position:relative;overflow:hidden;background:#071126!important;font-size:12px!important}
.toh-login-bg{position:absolute;inset:0;background:radial-gradient(circle at 18% 22%,rgba(37,99,235,.42),transparent 28%),radial-gradient(circle at 78% 36%,rgba(124,58,237,.44),transparent 28%),radial-gradient(circle at 52% 82%,rgba(16,185,129,.26),transparent 28%),linear-gradient(135deg,#061120,#111827 50%,#1e1b4b)!important}
.toh-login-bg:after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(255,255,255,.04),transparent 35%,rgba(255,255,255,.03));backdrop-filter:blur(2px)}
.toh-login-orb{position:absolute;border-radius:999px;filter:blur(30px);opacity:.55;animation:tohOrbFloat 9s ease-in-out infinite alternate}.toh-login-orb.one{width:260px;height:260px;background:#2563eb;left:12%;top:18%}.toh-login-orb.two{width:340px;height:340px;background:#7c3aed;right:12%;top:22%;animation-delay:1.5s}.toh-login-orb.three{width:300px;height:300px;background:#10b981;left:43%;bottom:8%;animation-delay:3s}@keyframes tohOrbFloat{from{transform:translateY(0) scale(1)}to{transform:translateY(-22px) scale(1.06)}}
.toh-login-shell{position:relative;z-index:2;width:min(440px,92vw);margin-right:42vw}.toh-login-card{border-radius:26px!important;background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(248,250,252,.94))!important;border:1px solid rgba(255,255,255,.72)!important;box-shadow:0 35px 100px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.8)!important;padding:34px!important}.toh-login-card-head{display:flex!important;gap:14px!important;align-items:center!important;margin-bottom:26px!important}.toh-login-card-head h3{font-size:24px!important;line-height:1.05!important;margin:0!important;letter-spacing:-.03em!important}.toh-login-card-head p{font-size:12px!important;margin:6px 0 0!important;color:#64748b!important}.toh-login-card form{display:grid!important;gap:13px!important}.toh-login-card label{font-size:12px!important;font-weight:900!important;text-align:left!important;color:#0f172a!important;margin:8px 0 0!important}.toh-login-card input{height:54px!important;border-radius:18px!important;border:1px solid #e2e8f0!important;background:#f8fafc!important;padding:0 18px!important;font-size:14px!important;outline:0!important;transition:.18s!important}.toh-login-card input:focus{background:#fff!important;border-color:#8b5cf6!important;box-shadow:0 0 0 5px rgba(139,92,246,.12)!important}.toh-login-card button[type=submit]{height:58px!important;margin-top:16px!important;border:0!important;border-radius:18px!important;background:linear-gradient(135deg,var(--toh-primary),#2563eb)!important;color:#fff!important;font-weight:950!important;font-size:16px!important;letter-spacing:.02em!important;box-shadow:0 18px 34px rgba(37,99,235,.28)!important;cursor:pointer!important}.toh-login-help{margin-top:24px!important;border-radius:18px!important;background:rgba(248,250,252,.9)!important;border:1px solid #e2e8f0!important;padding:16px!important;text-align:center!important}.toh-login-help span{display:block;color:#64748b;font-size:12px}.toh-login-help b{font-size:13px;color:#0f172a}.toh-mini-logo{width:56px!important;height:56px!important;border-radius:18px!important;display:grid!important;place-items:center!important;background:linear-gradient(135deg,var(--toh-primary),#2563eb)!important;color:#fff!important;font-weight:950!important;box-shadow:0 16px 34px rgba(37,99,235,.22)!important}
@media(max-width:900px){.toh-login-shell{margin:0}.toh-login-card{padding:26px!important}.toh-login-card-head h3{font-size:21px!important}}
.toh-storage-gallery-page{display:block!important}.toh-storage-hero{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:22px 24px;border-radius:24px;background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(245,243,255,.95));border:1px solid #e5e7eb;box-shadow:0 24px 55px rgba(15,23,42,.08);margin-bottom:18px}.toh-storage-hero h2{font-size:22px;margin:4px 0 6px}.toh-storage-hero p{margin:0;color:#64748b;font-size:12px}.toh-storage-kicker{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:#eef2ff;color:#4338ca;font-weight:900;font-size:10px;text-transform:uppercase;letter-spacing:.06em}.toh-storage-actions{display:flex;gap:10px;flex-wrap:wrap}.toh-storage-actions a,.toh-storage-actions button,.toh-storage-restore button{height:42px;border:0;border-radius:14px;padding:0 16px;font-weight:950;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.toh-storage-backup-btn{background:linear-gradient(135deg,#16a34a,#22c55e)!important;color:#fff!important;box-shadow:0 15px 30px rgba(34,197,94,.22)}#tohStorageCleanup{background:#ef4444!important;color:#fff!important;box-shadow:0 15px 30px rgba(239,68,68,.18)}.toh-storage-summary{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px!important;margin:0 0 18px!important}.toh-storage-summary>div{border-radius:20px!important;background:#fff!important;border:1px solid #e5e7eb!important;box-shadow:0 16px 34px rgba(15,23,42,.06)!important;padding:18px!important}.toh-storage-summary span{display:block;font-size:11px;color:#64748b;font-weight:800}.toh-storage-summary b{font-size:24px;color:#0f172a}.toh-storage-restore{display:grid;grid-template-columns:minmax(0,1fr) 260px auto;gap:12px;align-items:center;border:1px dashed #c4b5fd;background:linear-gradient(135deg,#fff,#faf5ff);border-radius:20px;padding:14px 16px;margin-bottom:18px}.toh-storage-restore b{display:block;font-size:13px}.toh-storage-restore small{display:block;color:#64748b;font-size:11px;margin-top:3px}.toh-storage-restore input[type=file]{height:42px;border:1px solid #e5e7eb;border-radius:13px;background:#fff;padding:9px}.toh-storage-restore button{background:linear-gradient(135deg,#7c3aed,#2563eb);color:#fff}.toh-storage-dep{border-radius:24px;background:#fff;border:1px solid #e5e7eb;box-shadow:0 24px 55px rgba(15,23,42,.08);padding:18px;margin-bottom:18px}.toh-storage-dep>h3{font-size:18px;margin:0 0 12px;color:#0f172a}.toh-storage-day{margin-top:12px}.toh-storage-day-head{display:flex;justify-content:space-between;align-items:center;background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;padding:12px 14px;margin-bottom:12px}.toh-storage-day-head b{font-size:13px}.toh-storage-day-head span{font-size:11px;color:#64748b;font-weight:800}.toh-storage-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px}.toh-storage-card{border:1px solid #e5e7eb;border-radius:20px;background:#fff;overflow:hidden;box-shadow:0 18px 34px rgba(15,23,42,.07);transition:.18s}.toh-storage-card:hover{transform:translateY(-3px);box-shadow:0 24px 48px rgba(15,23,42,.12)}.toh-storage-card.is-expired{opacity:.62}.toh-storage-thumb{height:132px;background:#f1f5f9;display:grid;place-items:center;text-decoration:none;color:#64748b}.toh-storage-thumb img{width:100%;height:100%;object-fit:cover;display:block}.toh-storage-thumb span{font-size:34px}.toh-storage-info{padding:12px 13px 4px;display:grid;gap:4px}.toh-storage-info b{font-size:11px;color:#4f46e5;background:#eef2ff;border-radius:999px;padding:5px 8px;width:max-content}.toh-storage-info strong{font-size:12px;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.toh-storage-info small{font-size:10px;color:#64748b}.toh-storage-open{margin:10px 13px 13px;height:36px;border-radius:12px;background:#eff6ff;color:#2563eb;text-decoration:none;display:flex;align-items:center;justify-content:center;font-weight:950;font-size:11px}.toh-storage-empty{border-radius:22px;background:#fff;border:1px solid #e5e7eb;box-shadow:0 18px 34px rgba(15,23,42,.06);padding:32px;text-align:center}@media(max-width:900px){.toh-storage-hero,.toh-storage-restore{grid-template-columns:1fr;display:grid}.toh-storage-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}.toh-storage-gallery{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}}
.toh-app-login[style*="--toh-login-bg-image"] .toh-login-bg{background:linear-gradient(135deg,rgba(6,17,32,.88),rgba(17,24,39,.82)),var(--toh-login-bg-image) center/cover no-repeat!important}.toh-login-brand-message{display:inline-flex;align-items:center;gap:7px;margin-bottom:18px;padding:8px 12px;border-radius:999px;background:linear-gradient(135deg,#eef2ff,#f5f3ff);color:#4338ca;font-size:11px;font-weight:900;border:1px solid #ddd6fe}


/* v7.5.1 Storage compact premium UI */
.toh-storage-gallery-page{
  --toh-storage-radius:18px;
  --toh-storage-shadow:0 18px 45px rgba(15,23,42,.08);
  --toh-storage-border:1px solid rgba(226,232,240,.92);
}
.toh-storage-gallery-page .toh-storage-hero{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:14px!important;
  padding:18px 20px!important;
  border-radius:22px!important;
  background:
    radial-gradient(circle at 82% 10%, rgba(124,58,237,.13), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,250,252,.96))!important;
  border:1px solid rgba(226,232,240,.95)!important;
  box-shadow:0 20px 52px rgba(15,23,42,.08)!important;
  margin-bottom:12px!important;
  overflow:hidden!important;
}
.toh-storage-gallery-page .toh-storage-hero:before{
  content:"";position:absolute;inset:0 0 auto;height:3px;
  background:linear-gradient(90deg,var(--toh-primary,#6c4bff),#06b6d4,#22c55e);
  opacity:.9;
}
.toh-storage-gallery-page .toh-storage-kicker{
  display:inline-flex!important;align-items:center!important;gap:6px!important;
  padding:5px 9px!important;border-radius:999px!important;
  background:linear-gradient(135deg,#eef2ff,#f5f3ff)!important;
  color:#4f46e5!important;font-size:9.5px!important;font-weight:950!important;
  letter-spacing:.04em!important;margin-bottom:6px!important;
}
.toh-storage-gallery-page .toh-storage-hero h2{
  margin:0 0 4px!important;font-size:17px!important;line-height:1.15!important;
  color:#0f172a!important;font-weight:950!important;
}
.toh-storage-gallery-page .toh-storage-hero p{
  max-width:610px!important;margin:0!important;font-size:11px!important;line-height:1.55!important;color:#64748b!important;
}
.toh-storage-gallery-page .toh-storage-actions{
  display:grid!important;grid-template-columns:1fr!important;gap:8px!important;min-width:156px!important;
}
.toh-storage-gallery-page .toh-storage-actions a,
.toh-storage-gallery-page .toh-storage-actions button{
  height:34px!important;border-radius:12px!important;padding:0 14px!important;
  font-size:10.5px!important;font-weight:950!important;box-shadow:none!important;
  transform:none!important;white-space:nowrap!important;
}
.toh-storage-gallery-page .toh-storage-backup-btn{
  background:linear-gradient(135deg,#16a34a,#22c55e)!important;color:#fff!important;
  box-shadow:0 12px 25px rgba(34,197,94,.20)!important;
}
.toh-storage-gallery-page #tohStorageCleanup{
  background:linear-gradient(135deg,#fb7185,#ef4444)!important;color:#fff!important;
  box-shadow:0 12px 25px rgba(239,68,68,.16)!important;
}
.toh-storage-gallery-page .toh-storage-summary{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;margin:0 0 12px!important;
}
.toh-storage-gallery-page .toh-storage-summary>div{
  min-height:72px!important;border-radius:16px!important;padding:13px 15px!important;
  background:rgba(255,255,255,.96)!important;border:1px solid rgba(226,232,240,.95)!important;
  box-shadow:0 14px 30px rgba(15,23,42,.055)!important;
  display:flex!important;flex-direction:column!important;justify-content:center!important;
}
.toh-storage-gallery-page .toh-storage-summary span{
  font-size:9.5px!important;font-weight:900!important;color:#64748b!important;margin:0 0 5px!important;
}
.toh-storage-gallery-page .toh-storage-summary b{
  font-size:22px!important;line-height:1!important;font-weight:950!important;color:#0f172a!important;
}
.toh-storage-gallery-page .toh-storage-restore{
  display:grid!important;grid-template-columns:minmax(0,1fr) 260px 190px!important;
  gap:10px!important;align-items:center!important;
  margin:0 0 14px!important;padding:12px!important;
  border-radius:18px!important;border:1px dashed rgba(124,58,237,.35)!important;
  background:
    linear-gradient(135deg,rgba(255,255,255,.98),rgba(250,245,255,.88))!important;
  box-shadow:0 14px 34px rgba(124,58,237,.055)!important;
}
.toh-storage-gallery-page .toh-storage-restore b{font-size:11.5px!important;color:#0f172a!important}
.toh-storage-gallery-page .toh-storage-restore small{font-size:9.5px!important;color:#64748b!important;line-height:1.45!important}
.toh-storage-gallery-page .toh-storage-restore input[type=file]{
  height:34px!important;border-radius:11px!important;padding:6px 8px!important;font-size:10px!important;background:#fff!important;
}
.toh-storage-gallery-page .toh-storage-restore button{
  height:34px!important;border-radius:11px!important;font-size:10.5px!important;font-weight:950!important;
  background:linear-gradient(135deg,var(--toh-primary,#7c3aed),#2563eb)!important;color:#fff!important;
}
.toh-storage-gallery-page .toh-storage-dep{
  padding:14px!important;border-radius:22px!important;background:rgba(255,255,255,.98)!important;
  border:1px solid rgba(226,232,240,.96)!important;box-shadow:0 20px 45px rgba(15,23,42,.065)!important;
}
.toh-storage-gallery-page .toh-storage-dep>h3{
  font-size:14px!important;margin:0 0 10px!important;display:flex!important;align-items:center!important;gap:7px!important;
}
.toh-storage-gallery-page .toh-storage-dep>h3:before{content:"🗂️";font-size:13px}
.toh-storage-gallery-page .toh-storage-day-head{
  min-height:34px!important;padding:8px 11px!important;border-radius:14px!important;margin-bottom:10px!important;
  background:linear-gradient(135deg,#f8fafc,#fff)!important;
}
.toh-storage-gallery-page .toh-storage-day-head b{font-size:11px!important;color:#0f172a!important}
.toh-storage-gallery-page .toh-storage-day-head span{font-size:9.5px!important;color:#64748b!important;font-weight:900!important}
.toh-storage-gallery-page .toh-storage-gallery{
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important;
  gap:10px!important;
}
.toh-storage-gallery-page .toh-storage-card{
  border-radius:17px!important;background:#fff!important;box-shadow:0 14px 28px rgba(15,23,42,.065)!important;
  overflow:hidden!important;border:1px solid rgba(226,232,240,.95)!important;
}
.toh-storage-gallery-page .toh-storage-card:hover{transform:translateY(-2px)!important;box-shadow:0 20px 40px rgba(15,23,42,.10)!important}
.toh-storage-gallery-page .toh-storage-thumb{height:105px!important;background:#f1f5f9!important}
.toh-storage-gallery-page .toh-storage-thumb img{object-fit:cover!important}
.toh-storage-gallery-page .toh-storage-info{padding:9px 10px 0!important;gap:3px!important}
.toh-storage-gallery-page .toh-storage-info b{font-size:9px!important;padding:4px 7px!important;border-radius:999px!important;color:#4f46e5!important;background:#eef2ff!important}
.toh-storage-gallery-page .toh-storage-info strong{font-size:10.5px!important;line-height:1.35!important;color:#0f172a!important}
.toh-storage-gallery-page .toh-storage-info small{font-size:9px!important;color:#64748b!important;line-height:1.35!important}
.toh-storage-gallery-page .toh-storage-open{
  height:30px!important;margin:8px 10px 10px!important;border-radius:11px!important;font-size:10px!important;
  background:linear-gradient(135deg,#eff6ff,#eef2ff)!important;color:#2563eb!important;font-weight:950!important;
}
.toh-storage-gallery-page .toh-storage-empty{border-radius:18px!important;padding:24px!important;font-size:12px!important}
@media(max-width:1100px){
  .toh-storage-gallery-page .toh-storage-restore{grid-template-columns:1fr!important}
  .toh-storage-gallery-page .toh-storage-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:720px){
  .toh-storage-gallery-page .toh-storage-hero{grid-template-columns:1fr!important}
  .toh-storage-gallery-page .toh-storage-actions{grid-template-columns:1fr 1fr!important;min-width:0!important}
  .toh-storage-gallery-page .toh-storage-gallery{grid-template-columns:repeat(auto-fill,minmax(135px,1fr))!important}
}

/* PRO TRACKING v7.6.0 */
.toh-time-cell{cursor:pointer;user-select:none;transition:.2s;}
.toh-time-cell:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(37,99,235,.18);}
.toh-track-overlay{position:fixed;inset:0;z-index:999999;background:rgba(15,23,42,.52);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;padding:24px;}
.toh-track-loading,.toh-track-modal{width:min(560px,calc(100vw - 32px));background:#fff;border-radius:24px;box-shadow:0 30px 90px rgba(15,23,42,.32);overflow:hidden;border:1px solid rgba(226,232,240,.9);}
.toh-track-loading{padding:28px;text-align:center;font-weight:900;color:#334155;}
.toh-track-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #eef2f7;background:linear-gradient(135deg,#f8fbff,#f4edff);}
.toh-track-head h3{margin:0;font-size:18px;font-weight:900;color:#0f172a;}
.toh-track-close{width:38px;height:38px;border:0;border-radius:14px;background:#eef2ff;color:#0f172a;font-weight:900;font-size:20px;cursor:pointer;}
.toh-track-body{padding:18px 20px;max-height:70vh;overflow:auto;}
.toh-track-timeline{position:relative;display:flex;flex-direction:column;gap:12px;}
.toh-track-item{display:grid;grid-template-columns:18px 1fr;gap:12px;padding:12px;border:1px solid #eef2f7;border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.06);}
.toh-track-dot{width:14px;height:14px;border-radius:99px;background:linear-gradient(135deg,#7c3aed,#2563eb);margin-top:3px;box-shadow:0 0 0 5px #ede9fe;}
.toh-track-item b{display:block;font-size:13px;color:#0f172a;margin-bottom:3px;}
.toh-track-item small{display:block;font-size:11px;color:#64748b;margin-bottom:6px;}
.toh-track-item p{margin:0;font-size:12px;line-height:1.45;color:#334155;}
.toh-track-chip{display:inline-flex;margin-left:6px;padding:3px 8px;border-radius:99px;background:#e0f2fe;color:#0369a1;font-weight:800;font-size:11px;}
.toh-track-note,.toh-track-empty{margin-top:14px;padding:12px 14px;border-radius:16px;background:#f8fafc;color:#475569;font-size:12px;line-height:1.45;}

/* v7.6.2 Enterprise Timeline Popup */
.toh-track-overlay{position:fixed!important;inset:0!important;z-index:999999!important;background:rgba(15,23,42,.56)!important;backdrop-filter:blur(10px)!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:24px!important}
.toh-track-loading{width:min(760px,calc(100vw - 32px));background:#fff;border-radius:28px;padding:32px;text-align:center;font-weight:900;color:#334155;box-shadow:0 30px 100px rgba(15,23,42,.30)}
.toh-track-modal.toh-enterprise-timeline{width:min(780px,calc(100vw - 32px))!important;max-height:88vh!important;background:#fff!important;border-radius:30px!important;overflow:hidden!important;box-shadow:0 35px 120px rgba(15,23,42,.32)!important;border:1px solid rgba(226,232,240,.92)!important;font-size:12px!important;color:#0f172a!important}
.toh-enterprise-timeline .toh-track-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;padding:24px 28px!important;background:linear-gradient(135deg,#f8fbff,#f4edff 55%,#ecfeff)!important;border-bottom:1px solid #edf2f7!important}
.toh-enterprise-timeline .toh-track-head h3{margin:0 0 6px!important;font-size:22px!important;font-weight:950!important;letter-spacing:-.02em!important;color:#0f172a!important}
.toh-enterprise-timeline .toh-track-head small{font-size:12px!important;color:#64748b!important;font-weight:700!important}
.toh-enterprise-timeline .toh-track-close{width:46px!important;height:46px!important;border:0!important;border-radius:16px!important;background:#eef6ff!important;color:#0f172a!important;font-size:24px!important;font-weight:900!important;cursor:pointer!important;box-shadow:0 12px 34px rgba(15,23,42,.08)!important}
.toh-enterprise-timeline .toh-track-body{padding:22px 28px 28px!important;max-height:calc(88vh - 96px)!important;overflow:auto!important;background:linear-gradient(180deg,#fff,#fbfdff)!important}
.toh-et-title{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-bottom:16px!important;padding:16px 18px!important;border-radius:20px!important;background:#f8fafc!important;border:1px solid #edf2f7!important}
.toh-et-title strong{display:block!important;font-size:17px!important;line-height:1.3!important;color:#0f172a!important;font-weight:950!important;max-width:520px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.toh-et-title span{display:inline-flex!important;margin-top:6px!important;padding:5px 10px!important;border-radius:999px!important;background:#eef2ff!important;color:#4338ca!important;font-weight:900!important;font-size:11px!important}
.toh-et-title>b{flex:none!important;padding:8px 12px!important;border-radius:999px!important;background:#dcfce7!important;color:#15803d!important;font-weight:950!important;font-size:11px!important;text-transform:uppercase!important}
.toh-et-summary{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin-bottom:14px!important}
.toh-et-summary>div{padding:15px!important;border-radius:18px!important;background:#fff!important;border:1px solid #eaf0f7!important;box-shadow:0 12px 30px rgba(15,23,42,.05)!important;min-height:88px!important}
.toh-et-summary span{display:block!important;font-size:11px!important;color:#64748b!important;font-weight:850!important;margin-bottom:7px!important}
.toh-et-summary strong{display:block!important;font-size:20px!important;font-weight:950!important;color:#0f172a!important;letter-spacing:-.03em!important}
.toh-et-summary small{display:block!important;margin-top:5px!important;color:#64748b!important;font-size:10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.toh-et-summary .is-alert{background:#fff1f2!important;border-color:#fecdd3!important}
.toh-et-summary .is-alert strong{color:#dc2626!important}
.toh-et-warning{padding:12px 14px!important;margin:0 0 14px!important;border-radius:16px!important;background:#fff7ed!important;color:#c2410c!important;border:1px solid #fed7aa!important;font-weight:900!important;font-size:12px!important}
.toh-et-timeline{position:relative!important;display:flex!important;flex-direction:column!important;gap:10px!important;margin-top:8px!important}
.toh-et-step{display:grid!important;grid-template-columns:20px 1fr!important;gap:13px!important;padding:14px!important;border:1px solid #edf2f7!important;border-radius:18px!important;background:#fff!important;box-shadow:0 10px 28px rgba(15,23,42,.045)!important;position:relative!important}
.toh-et-step i{width:15px!important;height:15px!important;border-radius:50%!important;margin-top:4px!important;background:#94a3b8!important;box-shadow:0 0 0 5px #f1f5f9!important}
.toh-et-step.done i{background:#22c55e!important;box-shadow:0 0 0 5px #dcfce7!important}
.toh-et-step.wait i,.toh-et-step.warn i{background:#f59e0b!important;box-shadow:0 0 0 5px #fef3c7!important}
.toh-et-step.danger i{background:#ef4444!important;box-shadow:0 0 0 5px #fee2e2!important}
.toh-et-step.muted{opacity:.76!important;background:#f8fafc!important}
.toh-et-step b{display:block!important;font-size:14px!important;color:#0f172a!important;font-weight:950!important;margin-bottom:4px!important}
.toh-et-step p{margin:0!important;color:#334155!important;font-size:12px!important;line-height:1.45!important;font-weight:650!important}
.toh-et-step small{display:block!important;margin-top:6px!important;color:#64748b!important;font-size:11px!important;font-weight:750!important}
.toh-et-viewers{margin-top:15px!important;padding:16px!important;border-radius:20px!important;background:#f8fafc!important;border:1px dashed #cbd5e1!important}
.toh-et-viewers>div{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;margin-bottom:10px!important}
.toh-et-viewers b{font-size:14px!important;font-weight:950!important;color:#0f172a!important}
.toh-et-viewers small{font-size:11px!important;color:#64748b!important;max-width:360px!important;line-height:1.4!important}
.toh-et-viewers ul{margin:0!important;padding:0!important;list-style:none!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.toh-et-viewers li{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;padding:10px 12px!important;border-radius:14px!important;background:#fff!important;border:1px solid #e5e7eb!important}
.toh-et-viewers li span{font-weight:900!important;color:#0f172a!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.toh-et-viewers li em{font-style:normal!important;font-size:10px!important;color:#64748b!important;white-space:nowrap!important}
.toh-et-raw{margin-top:14px!important;border-radius:18px!important;background:#fff!important;border:1px solid #edf2f7!important;overflow:hidden!important}
.toh-et-raw summary{cursor:pointer!important;padding:13px 15px!important;font-weight:950!important;color:#334155!important;background:#f8fafc!important}
.toh-et-raw div{display:grid!important;grid-template-columns:120px 1fr 150px!important;gap:8px!important;padding:10px 15px!important;border-top:1px solid #f1f5f9!important;font-size:11px!important;color:#475569!important}
.toh-et-raw strong{color:#0f172a!important}.toh-et-raw em{font-style:normal!important;text-align:right!important;color:#64748b!important}
@media(max-width:760px){.toh-enterprise-timeline .toh-track-head{padding:20px!important}.toh-enterprise-timeline .toh-track-body{padding:18px!important}.toh-et-summary{grid-template-columns:1fr 1fr!important}.toh-et-viewers ul{grid-template-columns:1fr!important}.toh-et-raw div{grid-template-columns:1fr!important}.toh-et-title{align-items:flex-start!important;flex-direction:column!important}.toh-et-title strong{white-space:normal!important}}

/* v7.6.3 - refined enterprise audit popup typography */
.toh-track-modal.toh-enterprise-timeline,
.toh-track-modal.toh-enterprise-timeline *{
    font-family:'Bai Jamjuree',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif!important;
    letter-spacing:-.01em!important;
    box-sizing:border-box!important;
}
.toh-track-modal.toh-enterprise-timeline{
    width:min(760px,calc(100vw - 34px))!important;
    border-radius:28px!important;
    background:rgba(255,255,255,.98)!important;
    box-shadow:0 34px 105px rgba(15,23,42,.28)!important;
    border:1px solid rgba(226,232,240,.95)!important;
    color:#172033!important;
}
.toh-enterprise-timeline .toh-track-head{
    padding:22px 26px!important;
    background:linear-gradient(135deg,#fbfdff 0%,#f6f2ff 52%,#ecfeff 100%)!important;
}
.toh-enterprise-timeline .toh-track-head h3{
    font-size:20px!important;
    font-weight:600!important;
    line-height:1.25!important;
    margin:0 0 6px!important;
    color:#111827!important;
}
.toh-enterprise-timeline .toh-track-head small{
    font-size:12px!important;
    font-weight:500!important;
    color:#64748b!important;
}
.toh-enterprise-timeline .toh-track-close{
    width:44px!important;
    height:44px!important;
    border-radius:16px!important;
    font-size:22px!important;
    font-weight:500!important;
    background:#f1f5f9!important;
    color:#0f172a!important;
    box-shadow:0 10px 24px rgba(15,23,42,.06)!important;
}
.toh-enterprise-timeline .toh-track-body{
    padding:20px 26px 26px!important;
    background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)!important;
}
.toh-et-title{
    padding:14px 16px!important;
    margin-bottom:14px!important;
    border-radius:18px!important;
    background:#f8fafc!important;
    border:1px solid #eaf0f7!important;
}
.toh-et-title strong{
    font-size:15px!important;
    font-weight:600!important;
    line-height:1.35!important;
    color:#111827!important;
}
.toh-et-title span{
    font-size:10.5px!important;
    font-weight:500!important;
    padding:5px 10px!important;
    color:#4f46e5!important;
    background:#eef2ff!important;
}
.toh-et-title>b{
    text-transform:none!important;
    font-size:10.5px!important;
    font-weight:600!important;
    padding:7px 11px!important;
    background:#dcfce7!important;
    color:#15803d!important;
}
.toh-et-summary{
    gap:10px!important;
    margin-bottom:12px!important;
}
.toh-et-summary>div{
    min-height:78px!important;
    padding:13px 14px!important;
    border-radius:16px!important;
    box-shadow:0 10px 24px rgba(15,23,42,.04)!important;
}
.toh-et-summary span{
    font-size:10.5px!important;
    font-weight:500!important;
    color:#64748b!important;
    margin-bottom:6px!important;
}
.toh-et-summary strong{
    font-size:17px!important;
    font-weight:600!important;
    color:#111827!important;
    letter-spacing:-.02em!important;
}
.toh-et-summary small{
    font-size:10px!important;
    font-weight:400!important;
    color:#7c8ba1!important;
}
.toh-et-warning{
    margin:0 0 12px!important;
    padding:11px 13px!important;
    border-radius:14px!important;
    font-size:11.5px!important;
    font-weight:500!important;
    line-height:1.45!important;
}
.toh-et-timeline{
    gap:9px!important;
}
.toh-et-step{
    grid-template-columns:18px 1fr!important;
    gap:12px!important;
    padding:13px 14px!important;
    border-radius:17px!important;
    box-shadow:0 9px 22px rgba(15,23,42,.035)!important;
}
.toh-et-step i{
    width:12px!important;
    height:12px!important;
    margin-top:5px!important;
    box-shadow:0 0 0 5px #f1f5f9!important;
}
.toh-et-step b{
    font-size:13px!important;
    font-weight:600!important;
    margin-bottom:4px!important;
    color:#172033!important;
}
.toh-et-step p{
    font-size:11.5px!important;
    font-weight:400!important;
    line-height:1.55!important;
    color:#475569!important;
}
.toh-et-step small{
    font-size:10.5px!important;
    font-weight:400!important;
    line-height:1.5!important;
    color:#64748b!important;
}
.toh-et-viewers{
    margin-top:14px!important;
    padding:14px!important;
    border-radius:18px!important;
    background:#f8fafc!important;
}
.toh-et-viewers b{
    font-size:13px!important;
    font-weight:600!important;
    color:#172033!important;
}
.toh-et-viewers small{
    font-size:10.5px!important;
    font-weight:400!important;
    line-height:1.5!important;
}
.toh-et-viewers li{
    padding:9px 11px!important;
    border-radius:13px!important;
}
.toh-et-viewers li span{
    font-size:11.5px!important;
    font-weight:500!important;
    color:#172033!important;
    text-transform:none!important;
}
.toh-et-viewers li em{
    font-size:10px!important;
    font-weight:400!important;
}
.toh-et-raw summary{
    font-size:12px!important;
    font-weight:500!important;
    padding:12px 14px!important;
}
.toh-et-raw div{
    font-size:10.5px!important;
    font-weight:400!important;
    line-height:1.45!important;
}
.toh-et-raw strong,
.toh-et-raw em{
    font-weight:500!important;
}
@media(max-width:760px){
    .toh-track-modal.toh-enterprise-timeline{border-radius:22px!important;}
    .toh-enterprise-timeline .toh-track-head{padding:18px!important;}
    .toh-enterprise-timeline .toh-track-head h3{font-size:18px!important;}
    .toh-enterprise-timeline .toh-track-body{padding:16px!important;}
}


/* v7.7.12 Chat Room */
.chat-section{display:none}.toh-chat-shell{background:linear-gradient(135deg,#ffffff,#f8fbff);border:1px solid #e5e7eb;border-radius:24px;box-shadow:0 18px 50px rgba(15,23,42,.08);overflow:hidden}.toh-chat-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 20px;border-bottom:1px solid #e5e7eb;background:linear-gradient(135deg,#f5f3ff,#eff6ff)}.toh-chat-head h2{margin:0 0 4px;font-size:22px;font-weight:800;color:#0f172a}.toh-chat-head p{margin:0;color:#64748b;font-size:13px}.toh-chat-room-badge{display:inline-flex;padding:8px 12px;border-radius:999px;background:#fff;color:#2563eb;font-weight:800;font-size:12px;box-shadow:0 8px 20px rgba(37,99,235,.12)}.toh-chat-messages{height:min(58vh,560px);min-height:360px;overflow:auto;padding:18px;background:linear-gradient(180deg,#fff,#f8fafc)}.toh-chat-empty{text-align:center;color:#94a3b8;padding:40px 10px;font-size:13px}.toh-chat-msg{display:flex;gap:10px;margin:0 0 12px;align-items:flex-end}.toh-chat-msg.me{justify-content:flex-end}.toh-chat-avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900;overflow:hidden;flex:0 0 auto}.toh-chat-avatar img{width:100%;height:100%;object-fit:cover}.toh-chat-bubble{max-width:min(680px,78%);padding:10px 12px;border-radius:16px;background:#fff;border:1px solid #e5e7eb;box-shadow:0 10px 25px rgba(15,23,42,.06)}.toh-chat-msg.me .toh-chat-bubble{background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;border-color:transparent}.toh-chat-meta{display:flex;gap:8px;align-items:center;margin-bottom:5px;font-size:11px;color:#64748b}.toh-chat-msg.me .toh-chat-meta{color:rgba(255,255,255,.78)}.toh-chat-text{font-size:13px;line-height:1.55;white-space:pre-wrap;word-break:break-word}.toh-chat-form{display:flex;gap:10px;padding:14px;border-top:1px solid #e5e7eb;background:#fff}.toh-chat-form input{flex:1;border:1px solid #dbe2ea;border-radius:16px;padding:12px 14px;font-size:14px;outline:none}.toh-chat-form input:focus{border-color:#7c3aed;box-shadow:0 0 0 4px rgba(124,58,237,.10)}.toh-chat-form button{border:0;border-radius:16px;padding:0 22px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;font-weight:900;cursor:pointer;box-shadow:0 12px 25px rgba(37,99,235,.20)}@media(max-width:720px){.toh-chat-head{align-items:flex-start;flex-direction:column}.toh-chat-messages{height:60vh;min-height:300px}.toh-chat-bubble{max-width:86%}.toh-chat-form{padding:10px}.toh-chat-form button{padding:0 14px}}

/* v7.7.14 Chat Room Pro polish */
.toh-chat-toolbar{display:flex;justify-content:space-between;align-items:center;padding:10px 18px;background:#fff;border-bottom:1px solid #eef2f7}.toh-chat-tip{font-size:12px;color:#475569;background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:7px 12px}.toh-chat-form-pro{align-items:stretch}.toh-chat-compose-main{flex:1;display:flex;flex-direction:column;gap:9px}.toh-chat-form textarea{width:100%;resize:none;border:1px solid #dbe2ea;border-radius:16px;padding:12px 14px;font-size:14px;outline:none;min-height:46px}.toh-chat-form textarea:focus{border-color:#7c3aed;box-shadow:0 0 0 4px rgba(124,58,237,.10)}.toh-chat-compose-tools{display:flex;gap:10px;flex-wrap:wrap}.toh-chat-file-btn,.toh-chat-mention-select{height:38px;border:1px solid #e2e8f0;background:#f8fafc;border-radius:999px;padding:0 13px;font-size:12px;font-weight:800;color:#334155;display:inline-flex;align-items:center;cursor:pointer;max-width:100%}.toh-chat-file-btn input{display:none!important}.toh-chat-file-btn[data-file]:not([data-file=""]){background:#ecfeff;border-color:#67e8f9;color:#0e7490}.toh-chat-file-btn[data-file]:after{content:attr(data-file);margin-left:7px;max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toh-chat-mention-select{appearance:auto;cursor:pointer}.toh-chat-msg.mentioned .toh-chat-bubble{border-color:#f59e0b;box-shadow:0 18px 40px rgba(245,158,11,.14)}.toh-chat-mention{display:inline-flex;margin:0 0 8px;padding:6px 10px;border-radius:999px;background:#fff7ed;color:#c2410c;font-size:12px;font-weight:900}.toh-chat-mention.hot{background:#fef2f2;color:#dc2626}.toh-chat-attachment{margin-top:10px}.toh-chat-code{display:inline-flex;align-items:center;gap:6px;margin-bottom:8px;border-radius:999px;background:#eef2ff;color:#3730a3;padding:6px 10px;font-size:12px;font-weight:800}.toh-chat-image{display:block;max-width:min(360px,100%);max-height:280px;border-radius:18px;border:1px solid rgba(148,163,184,.35);object-fit:cover}.toh-chat-video{display:block;max-width:min(420px,100%);max-height:320px;border-radius:18px;border:1px solid rgba(148,163,184,.35);background:#0f172a}.toh-chat-file-card{display:inline-flex;align-items:center;gap:10px;max-width:360px;border:1px solid #e2e8f0;background:#fff;border-radius:16px;padding:12px 14px;text-decoration:none;color:#0f172a;font-weight:800}.toh-chat-msg.me .toh-chat-code{background:rgba(255,255,255,.18);color:#fff}.toh-chat-msg.me .toh-chat-file-card{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.28);color:#fff}.toh-chat-msg.me .toh-chat-mention{background:rgba(255,255,255,.18);color:#fff}@media(max-width:720px){.toh-chat-form-pro{flex-direction:column}.toh-chat-compose-tools{flex-direction:column}.toh-chat-file-btn,.toh-chat-mention-select{width:100%;justify-content:center}.toh-chat-form-pro button{height:44px}.toh-chat-file-btn[data-file]:after{max-width:160px}}


/* =========================================================
   v7.7.15 Chat layout polish + Enter to send
   ========================================================= */
.toh-section.chat-section{height:calc(100vh - 150px);min-height:620px;overflow:hidden!important;padding:0!important;background:transparent!important}
.toh-chat-shell{height:100%;display:grid;grid-template-rows:auto auto 1fr auto;border-radius:28px!important;background:#fff!important;border:1px solid rgba(148,163,184,.22)!important;box-shadow:0 24px 70px rgba(15,23,42,.10)!important;overflow:hidden!important}
.toh-chat-head{padding:18px 22px!important;background:linear-gradient(135deg,#ffffff 0%,#f8fbff 45%,#f4f0ff 100%)!important;border-bottom:1px solid rgba(226,232,240,.9)!important}
.toh-chat-head h2{font-size:20px!important;letter-spacing:-.02em!important}.toh-chat-head p{font-size:12px!important;color:#64748b!important}
.toh-chat-room-badge{background:linear-gradient(135deg,#eef2ff,#eff6ff)!important;color:#4f46e5!important;border:1px solid rgba(99,102,241,.16)!important;box-shadow:none!important}
.toh-chat-toolbar{padding:9px 18px!important;background:#fbfdff!important;border-bottom:1px solid rgba(226,232,240,.8)!important}.toh-chat-tip{background:#f1f5ff!important;color:#475569!important;border-color:#dbeafe!important}
.toh-chat-messages{height:auto!important;min-height:0!important;padding:24px 28px!important;background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%)!important;scroll-behavior:smooth!important}
.toh-chat-msg{gap:12px!important;margin-bottom:16px!important;align-items:flex-end!important}.toh-chat-msg.me{padding-left:14%!important}.toh-chat-msg:not(.me){padding-right:14%!important}
.toh-chat-avatar{width:38px!important;height:38px!important;box-shadow:0 10px 24px rgba(37,99,235,.18)!important}
.toh-chat-bubble{max-width:720px!important;border-radius:22px 22px 22px 8px!important;padding:14px 16px!important;background:#fff!important;border:1px solid rgba(226,232,240,.95)!important;box-shadow:0 14px 34px rgba(15,23,42,.07)!important}.toh-chat-msg.me .toh-chat-bubble{border-radius:22px 22px 8px 22px!important;background:linear-gradient(135deg,#2563eb 0%,#6d28d9 100%)!important;box-shadow:0 18px 42px rgba(79,70,229,.24)!important}
.toh-chat-meta{font-size:12px!important;margin-bottom:7px!important}.toh-chat-text{font-size:14px!important;line-height:1.55!important}.toh-chat-image{max-width:min(520px,100%)!important;max-height:360px!important;border-radius:20px!important}.toh-chat-video{max-width:min(560px,100%)!important;max-height:380px!important;border-radius:20px!important}
.toh-chat-form-pro{display:grid!important;grid-template-columns:1fr auto!important;gap:12px!important;align-items:end!important;padding:16px 18px!important;background:rgba(255,255,255,.96)!important;border-top:1px solid rgba(226,232,240,.95)!important;box-shadow:0 -12px 30px rgba(15,23,42,.04)!important}
.toh-chat-compose-main{gap:10px!important}.toh-chat-form textarea{min-height:48px!important;max-height:130px!important;border-radius:18px!important;background:#fff!important;padding:14px 16px!important;font-size:14px!important;line-height:1.45!important;box-shadow:inset 0 1px 0 rgba(15,23,42,.02)!important}.toh-chat-form textarea:focus{border-color:#6366f1!important;box-shadow:0 0 0 4px rgba(99,102,241,.10)!important}
.toh-chat-compose-tools{display:grid!important;grid-template-columns:auto minmax(220px,320px) 1fr!important;align-items:center!important;gap:10px!important}.toh-chat-file-btn,.toh-chat-mention-select{height:40px!important;border-radius:14px!important;background:#f8fafc!important;border:1px solid #e2e8f0!important;color:#334155!important;font-size:12px!important;box-shadow:none!important}.toh-chat-mention-select{width:100%!important}.toh-chat-file-btn[data-file]:after{max-width:190px!important}
.toh-chat-form-pro button{height:96px!important;min-width:76px!important;border-radius:20px!important;padding:0 18px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:linear-gradient(135deg,#2563eb,#7c3aed)!important;box-shadow:0 16px 34px rgba(37,99,235,.24)!important;transition:transform .15s ease,opacity .15s ease!important}.toh-chat-form-pro button:hover{transform:translateY(-1px)!important}.toh-chat-form-pro button:disabled{opacity:.65!important;transform:none!important}.toh-chat-form-pro button span{font-weight:900!important;font-size:13px!important}
@media(max-width:1100px){.toh-section.chat-section{height:calc(100vh - 120px)}.toh-chat-msg.me{padding-left:6%!important}.toh-chat-msg:not(.me){padding-right:6%!important}.toh-chat-compose-tools{grid-template-columns:1fr!important}.toh-chat-form-pro button{height:54px!important;min-width:100%!important}}
@media(max-width:720px){.toh-section.chat-section{height:calc(100vh - 90px);min-height:520px}.toh-chat-head{padding:14px!important}.toh-chat-toolbar{display:none!important}.toh-chat-messages{padding:16px 12px!important}.toh-chat-msg.me,.toh-chat-msg:not(.me){padding-left:0!important;padding-right:0!important}.toh-chat-bubble{max-width:82vw!important}.toh-chat-form-pro{grid-template-columns:1fr!important;padding:12px!important}.toh-chat-form-pro button{height:48px!important}.toh-chat-avatar{width:32px!important;height:32px!important}}

/* =========================================================
   v7.7.16 CHAT ISOLATION + COMPACT LAYOUT FIX
   ========================================================= */
body:not(.toh-chat-active) .toh-section.chat-section{display:none!important;visibility:hidden!important;height:0!important;min-height:0!important;overflow:hidden!important;margin:0!important;padding:0!important;border:0!important}
body.toh-chat-active .toh-left{display:flex!important;flex-direction:column!important;min-height:0!important}
body.toh-chat-active .toh-section.chat-section{display:block!important;visibility:visible!important;height:calc(100vh - 205px)!important;min-height:520px!important;max-height:720px!important;margin:0!important;padding:0!important;overflow:hidden!important;background:transparent!important;border:0!important;box-shadow:none!important}
body.toh-chat-active .dashboard-section,body.toh-chat-active .task-section,body.toh-chat-active .staff-section,body.toh-chat-active .toh-staff-section,body.toh-chat-active .department-section,body.toh-chat-active .kpi-section,body.toh-chat-active .storage-section,body.toh-chat-active .media-section,body.toh-chat-active .my-telegram-section,body.toh-chat-active .telegram-settings-section,body.toh-chat-active .settings-section,body.toh-chat-active .templates-section{display:none!important}
body.toh-chat-active .toh-role-note{display:none!important}
body.toh-chat-active .toh-chat-shell{height:100%!important;display:grid!important;grid-template-rows:auto 1fr auto!important;border-radius:24px!important;background:#fff!important;border:1px solid rgba(203,213,225,.75)!important;box-shadow:0 18px 48px rgba(15,23,42,.08)!important;overflow:hidden!important}
body.toh-chat-active .toh-chat-head{padding:14px 18px!important;background:linear-gradient(135deg,#fff,#f6f8ff)!important;border-bottom:1px solid #e5e7eb!important}
body.toh-chat-active .toh-chat-head h2{font-size:18px!important;margin:0 0 2px!important}
body.toh-chat-active .toh-chat-head p{font-size:12px!important;margin:0!important}
body.toh-chat-active .toh-chat-toolbar{display:none!important}
body.toh-chat-active .toh-chat-room-badge{padding:6px 10px!important;font-size:12px!important;box-shadow:none!important}
body.toh-chat-active .toh-chat-messages{height:auto!important;min-height:0!important;padding:18px 20px!important;background:linear-gradient(180deg,#fff,#f8fafc)!important;overflow-y:auto!important;overflow-x:hidden!important}
body.toh-chat-active .toh-chat-msg{margin-bottom:12px!important;gap:10px!important}
body.toh-chat-active .toh-chat-msg.me{padding-left:18%!important;justify-content:flex-end!important}
body.toh-chat-active .toh-chat-msg:not(.me){padding-right:18%!important}
body.toh-chat-active .toh-chat-avatar{width:32px!important;height:32px!important;font-size:13px!important}
body.toh-chat-active .toh-chat-bubble{max-width:620px!important;padding:11px 13px!important;border-radius:18px 18px 18px 7px!important;box-shadow:0 10px 26px rgba(15,23,42,.06)!important}
body.toh-chat-active .toh-chat-msg.me .toh-chat-bubble{border-radius:18px 18px 7px 18px!important}
body.toh-chat-active .toh-chat-meta{font-size:11px!important;margin-bottom:5px!important}
body.toh-chat-active .toh-chat-text{font-size:13px!important;line-height:1.45!important}
body.toh-chat-active .toh-chat-image{max-width:min(420px,100%)!important;max-height:260px!important;border-radius:16px!important}
body.toh-chat-active .toh-chat-video{max-width:min(460px,100%)!important;max-height:280px!important;border-radius:16px!important}
body.toh-chat-active .toh-chat-code,body.toh-chat-active .toh-chat-mention{font-size:11px!important;padding:5px 9px!important;margin-bottom:6px!important}
body.toh-chat-active .toh-chat-form-pro{display:grid!important;grid-template-columns:1fr 58px!important;gap:10px!important;align-items:stretch!important;padding:12px 14px!important;background:#fff!important;border-top:1px solid #e5e7eb!important;box-shadow:0 -8px 22px rgba(15,23,42,.04)!important}
body.toh-chat-active .toh-chat-compose-main{gap:8px!important;min-width:0!important}
body.toh-chat-active .toh-chat-form textarea{min-height:42px!important;max-height:96px!important;border-radius:16px!important;padding:11px 14px!important;font-size:13px!important;line-height:1.4!important}
body.toh-chat-active .toh-chat-compose-tools{display:grid!important;grid-template-columns:150px minmax(180px,280px) 1fr!important;gap:8px!important;align-items:center!important}
body.toh-chat-active .toh-chat-file-btn,body.toh-chat-active .toh-chat-mention-select{height:36px!important;border-radius:13px!important;font-size:12px!important;padding:0 12px!important;background:#f8fafc!important}
body.toh-chat-active .toh-chat-file-btn[data-file]:after{max-width:120px!important}
body.toh-chat-active .toh-chat-form-pro button{height:auto!important;min-width:58px!important;width:58px!important;border-radius:18px!important;padding:0!important;box-shadow:0 12px 25px rgba(37,99,235,.20)!important}
body.toh-chat-active .toh-chat-form-pro button span{font-size:12px!important}
@media(max-width:1100px){body.toh-chat-active .toh-section.chat-section{height:calc(100vh - 165px)!important;min-height:480px!important}body.toh-chat-active .toh-chat-msg.me{padding-left:6%!important}body.toh-chat-active .toh-chat-msg:not(.me){padding-right:6%!important}body.toh-chat-active .toh-chat-compose-tools{grid-template-columns:1fr!important}body.toh-chat-active .toh-chat-form-pro{grid-template-columns:1fr!important}body.toh-chat-active .toh-chat-form-pro button{height:44px!important;width:100%!important}}
@media(max-width:720px){body.toh-chat-active .toh-section.chat-section{height:calc(100vh - 120px)!important;min-height:460px!important}body.toh-chat-active .toh-chat-head{padding:12px!important}body.toh-chat-active .toh-chat-messages{padding:14px 10px!important}body.toh-chat-active .toh-chat-msg.me,body.toh-chat-active .toh-chat-msg:not(.me){padding-left:0!important;padding-right:0!important}body.toh-chat-active .toh-chat-bubble{max-width:82vw!important}}

/* =========================================================
   v7.7.17 UI PRO CHAT + COMPACT SEND BAR
   ========================================================= */
body.toh-chat-active .toh-chat-shell{grid-template-rows:auto 1fr auto!important;border-radius:26px!important;max-width:100%!important}
body.toh-chat-active .toh-chat-messages{padding:16px 18px!important}
body.toh-chat-active .toh-chat-form-pro{display:block!important;padding:12px 14px 14px!important;background:linear-gradient(180deg,#fff,#fbfdff)!important}
body.toh-chat-active .toh-chat-compose-main{display:flex!important;flex-direction:column!important;gap:9px!important}
body.toh-chat-active .toh-chat-input-wrap{position:relative!important;width:100%!important}
body.toh-chat-active .toh-chat-form textarea{width:100%!important;box-sizing:border-box!important;min-height:44px!important;max-height:108px!important;border-radius:18px!important;padding:12px 15px!important}
body.toh-chat-active .toh-chat-compose-tools{display:grid!important;grid-template-columns:auto 1fr 86px!important;align-items:center!important;gap:10px!important}
body.toh-chat-active .toh-chat-file-btn{width:auto!important;justify-content:center!important;height:40px!important;border-radius:14px!important;background:#f8fafc!important}
body.toh-chat-active .toh-chat-helper{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#64748b!important;font-size:12px!important;background:#f8fafc!important;border:1px solid #e2e8f0!important;border-radius:14px!important;padding:11px 13px!important;height:40px!important;box-sizing:border-box!important}
body.toh-chat-active .toh-chat-form-pro button{position:static!important;width:86px!important;height:40px!important;min-width:86px!important;border-radius:14px!important;padding:0 16px!important;box-shadow:0 10px 22px rgba(37,99,235,.20)!important}
body.toh-chat-active .toh-chat-form-pro button span{font-size:12px!important;text-transform:uppercase!important}
.toh-chat-mention-pop{position:absolute;left:8px;right:auto;bottom:calc(100% + 8px);z-index:20;width:min(320px,calc(100% - 16px));background:#fff;border:1px solid #dbe2ea;border-radius:18px;box-shadow:0 18px 45px rgba(15,23,42,.14);padding:8px;display:none;max-height:260px;overflow:auto}
.toh-chat-mention-item{width:100%;display:flex;align-items:center;gap:9px;border:0;background:transparent;border-radius:12px;padding:9px 10px;cursor:pointer;text-align:left;color:#0f172a}
.toh-chat-mention-item:hover{background:#eef2ff}.toh-chat-mention-item span{width:24px;height:24px;border-radius:999px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900}.toh-chat-mention-item b{font-size:13px}
.toh-nav a{position:relative}.toh-chat-notice-badge{position:absolute;right:12px;top:50%;transform:translateY(-50%);min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#ef4444;color:#fff;font-size:11px;line-height:20px;text-align:center;box-shadow:0 8px 18px rgba(239,68,68,.35)}
.toh-chat-room-badge[data-unread]:after{content:attr(data-unread);display:inline-flex;margin-left:7px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;align-items:center;justify-content:center;background:#ef4444;color:#fff;font-size:10px;font-weight:900}
.toh-chat-mention-select{display:none!important}
@media(max-width:1100px){body.toh-chat-active .toh-chat-compose-tools{grid-template-columns:1fr 1fr!important}body.toh-chat-active .toh-chat-form-pro button{width:100%!important;min-width:100%!important;grid-column:1/-1}}
@media(max-width:720px){body.toh-chat-active .toh-chat-compose-tools{grid-template-columns:1fr!important}.toh-chat-helper{display:none!important}body.toh-chat-active .toh-chat-form-pro button{height:42px!important}}


/* v7.7.18 - Pro compact chat layout, mention UI, admin delete */
body.toh-chat-active .toh-chat-form-pro{padding:12px 14px!important;background:#fff!important}
body.toh-chat-active .toh-chat-compose-main{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
body.toh-chat-active .toh-chat-compose-tools{display:grid!important;grid-template-columns:auto 1fr auto!important;gap:10px!important;align-items:center!important}
body.toh-chat-active .toh-chat-form-pro button[type="submit"]{width:92px!important;min-width:92px!important;height:40px!important;border-radius:14px!important;align-self:center!important;justify-self:end!important;background:linear-gradient(135deg,#2563eb,#7c3aed)!important;box-shadow:0 12px 24px rgba(37,99,235,.22)!important}
body.toh-chat-active .toh-chat-helper{display:block!important;min-width:0!important;text-overflow:ellipsis!important;overflow:hidden!important;white-space:nowrap!important;background:#f8fafc!important;border:1px solid #e2e8f0!important;border-radius:14px!important;padding:10px 12px!important;color:#64748b!important;font-size:12px!important;height:40px!important;box-sizing:border-box!important}
body.toh-chat-active .toh-chat-file-btn{height:40px!important;border-radius:14px!important;padding:0 14px!important;background:#f8fafc!important;border:1px solid #e2e8f0!important;color:#0f172a!important;box-shadow:none!important}
body.toh-chat-active .toh-chat-input-wrap{position:relative!important}
.toh-chat-mention-pop{position:absolute!important;left:10px!important;bottom:calc(100% + 10px)!important;width:min(360px,calc(100% - 20px))!important;max-height:230px!important;overflow:auto!important;background:rgba(255,255,255,.98)!important;border:1px solid #dbeafe!important;border-radius:18px!important;box-shadow:0 22px 55px rgba(15,23,42,.16)!important;padding:8px!important;z-index:9999!important;backdrop-filter:blur(14px)!important}
.toh-chat-mention-pop:before{content:'Chọn người cần tag';display:block;padding:5px 8px 8px;color:#64748b;font-size:11px;font-weight:700}
.toh-chat-mention-item{width:100%!important;height:auto!important;min-height:40px!important;display:flex!important;align-items:center!important;gap:10px!important;margin:0 0 4px!important;padding:8px 10px!important;border:0!important;border-radius:13px!important;background:transparent!important;color:#0f172a!important;box-shadow:none!important;text-align:left!important;cursor:pointer!important;line-height:1.2!important}
.toh-chat-mention-item:hover{background:linear-gradient(135deg,#eef2ff,#f8fafc)!important;transform:none!important}
.toh-chat-mention-item span{width:28px!important;height:28px!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;background:linear-gradient(135deg,#2563eb,#7c3aed)!important;color:#fff!important;font-size:13px!important;font-weight:900!important;flex:0 0 auto!important}
.toh-chat-mention-item b{font-size:13px!important;font-weight:800!important;color:#0f172a!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.toh-chat-mention{display:inline-flex!important;align-items:center!important;gap:7px!important;border-radius:999px!important;background:#fff7ed!important;color:#c2410c!important;border:1px solid #fed7aa!important;font-weight:800!important;max-width:100%!important}
.toh-chat-mention span{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:210px!important}.toh-chat-mention em{font-style:normal!important;font-weight:700!important;font-size:10px!important;color:#ea580c!important}
.toh-chat-meta{position:relative!important;padding-right:28px!important}.toh-chat-msg.me .toh-chat-meta{padding-right:28px!important}
.toh-chat-delete{position:absolute!important;right:0!important;top:-4px!important;width:22px!important;height:22px!important;min-width:22px!important;border:0!important;border-radius:999px!important;padding:0!important;background:rgba(15,23,42,.08)!important;color:#64748b!important;font-size:16px!important;line-height:22px!important;font-weight:900!important;box-shadow:none!important;cursor:pointer!important;opacity:.55!important}
.toh-chat-delete:hover{opacity:1!important;background:#ef4444!important;color:#fff!important}
.toh-chat-msg.me .toh-chat-delete{background:rgba(255,255,255,.20)!important;color:#fff!important}.toh-chat-msg.me .toh-chat-delete:hover{background:#ef4444!important}
body.role-manager .toh771-alert-toast,body.role-manager .toh771-newsbar{display:none!important}
@media(max-width:720px){body.toh-chat-active .toh-chat-compose-tools{grid-template-columns:1fr!important}body.toh-chat-active .toh-chat-form-pro button[type="submit"]{width:100%!important;min-width:100%!important}.toh-chat-mention-pop{width:calc(100% - 20px)!important}}


/* =========================================================
   v7.7.19 - Visible @ tag people list + brighter chat colors
   ========================================================= */
body.toh-chat-active .toh-chat-head{
    background:linear-gradient(135deg,#eef6ff 0%,#f5f3ff 48%,#fff7ed 100%)!important;
    border-bottom:1px solid #dbeafe!important;
}
body.toh-chat-active .toh-chat-room-badge{
    background:linear-gradient(135deg,#2563eb,#7c3aed)!important;
    color:#fff!important;
    border:0!important;
    box-shadow:0 10px 24px rgba(37,99,235,.22)!important;
}
body.toh-chat-active .toh-chat-room-badge:before{content:'Kênh ';font-weight:600;opacity:.9}
body.toh-chat-active .toh-chat-messages{
    background:radial-gradient(circle at top left,rgba(59,130,246,.10),transparent 34%),radial-gradient(circle at bottom right,rgba(124,58,237,.10),transparent 36%),#fbfdff!important;
}
body.toh-chat-active .toh-chat-msg:not(.me) .toh-chat-bubble{
    background:#ffffff!important;
    border:1px solid #dbeafe!important;
    box-shadow:0 14px 34px rgba(30,64,175,.08)!important;
}
body.toh-chat-active .toh-chat-msg.me .toh-chat-bubble{
    background:linear-gradient(135deg,#2563eb 0%,#7c3aed 100%)!important;
    color:#fff!important;
    border:1px solid rgba(255,255,255,.16)!important;
    box-shadow:0 18px 42px rgba(79,70,229,.25)!important;
}
body.toh-chat-active .toh-chat-msg.me .toh-chat-text,
body.toh-chat-active .toh-chat-msg.me .toh-chat-meta b,
body.toh-chat-active .toh-chat-msg.me .toh-chat-meta span{color:#fff!important}
body.toh-chat-active .toh-chat-msg.mentioned .toh-chat-bubble{
    border-color:#f97316!important;
    box-shadow:0 18px 44px rgba(249,115,22,.18)!important;
}
body.toh-chat-active .toh-chat-mention-pop{
    width:min(430px,calc(100% - 20px))!important;
    max-height:320px!important;
    padding:10px!important;
    border-radius:22px!important;
    background:rgba(255,255,255,.98)!important;
    border:1px solid #bfdbfe!important;
    box-shadow:0 28px 70px rgba(15,23,42,.20)!important;
}
body.toh-chat-active .toh-chat-mention-pop:before{
    content:'Chọn người cần tag';
    display:block!important;
    padding:6px 10px 10px!important;
    color:#334155!important;
    font-size:12px!important;
    font-weight:900!important;
}
body.toh-chat-active .toh-chat-mention-item{
    display:grid!important;
    grid-template-columns:42px 1fr!important;
    gap:11px!important;
    align-items:center!important;
    width:100%!important;
    min-height:56px!important;
    padding:9px 11px!important;
    margin:0 0 7px!important;
    border:1px solid #e2e8f0!important;
    border-radius:16px!important;
    background:#fff!important;
    box-shadow:0 8px 18px rgba(15,23,42,.04)!important;
    color:#0f172a!important;
    overflow:hidden!important;
}
body.toh-chat-active .toh-chat-mention-item:hover,
body.toh-chat-active .toh-chat-mention-item:focus{
    background:linear-gradient(135deg,#eff6ff,#f5f3ff)!important;
    border-color:#93c5fd!important;
    outline:none!important;
}
body.toh-chat-active .toh-chat-mention-item .toh-mention-avatar,
body.toh-chat-active .toh-chat-mention-item span{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    border-radius:14px!important;
    background:linear-gradient(135deg,#06b6d4,#7c3aed)!important;
    color:#fff!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:15px!important;
    font-weight:900!important;
    overflow:hidden!important;
    font-style:normal!important;
}
body.toh-chat-active .toh-chat-mention-item .toh-mention-avatar img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    border-radius:14px!important;
    display:block!important;
}
body.toh-chat-active .toh-chat-mention-item strong{
    min-width:0!important;
    display:flex!important;
    flex-direction:column!important;
    gap:3px!important;
}
body.toh-chat-active .toh-chat-mention-item b{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    color:#0f172a!important;
    font-size:14px!important;
    line-height:1.25!important;
    font-weight:900!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}
body.toh-chat-active .toh-chat-mention-item small{
    display:block!important;
    color:#64748b!important;
    font-size:11px!important;
    line-height:1.25!important;
    font-weight:700!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}
body.toh-chat-active .toh-chat-mention{
    background:#fff7ed!important;
    color:#9a3412!important;
    border-color:#fdba74!important;
}
body.toh-chat-active .toh-chat-msg.me .toh-chat-mention{
    background:rgba(255,255,255,.18)!important;
    color:#fff!important;
    border-color:rgba(255,255,255,.28)!important;
}
body.toh-chat-active .toh-chat-notice-badge:empty{display:none!important}
body.toh-chat-active .toh-chat-notice-badge{background:#ef4444!important;color:#fff!important}
@media(max-width:720px){body.toh-chat-active .toh-chat-mention-pop{width:calc(100% - 20px)!important;max-height:280px!important}body.toh-chat-active .toh-chat-mention-item{grid-template-columns:38px 1fr!important;min-height:52px!important}.toh-chat-mention-item .toh-mention-avatar{width:38px!important;height:38px!important}}


/* =========================================================
   v7.7.20 - Telegram/Zalo inspired compact chat + admin styling settings
   ========================================================= */
:root{--toh-chat-bg:#dbeafe;--toh-chat-left:#ffffff;--toh-chat-right:#d9fdd3;--toh-chat-accent:#2ea6ff}
body.toh-chat-active .toh-chat-shell{border-radius:22px!important;overflow:hidden!important;background:#fff!important;border:1px solid #d9e4f2!important;box-shadow:0 18px 55px rgba(15,23,42,.10)!important}
body.toh-chat-active .toh-chat-head{padding:12px 18px!important;background:#fff!important;border-bottom:1px solid #e5edf7!important}
body.toh-chat-active .toh-chat-head h2{font-size:18px!important;margin:0!important;color:#0f172a!important}
body.toh-chat-active .toh-chat-head p{font-size:12px!important;color:#64748b!important;margin-top:3px!important}
.toh-chat-head-actions{display:flex!important;align-items:center!important;gap:10px!important}.toh-chat-settings-toggle{height:34px!important;border:1px solid #dbeafe!important;background:#f8fbff!important;color:#2563eb!important;border-radius:999px!important;padding:0 12px!important;font-size:12px!important;font-weight:800!important;cursor:pointer!important;box-shadow:none!important}.toh-chat-settings-toggle:hover{background:#eff6ff!important}
body.toh-chat-active .toh-chat-room-badge{background:var(--toh-chat-accent)!important;color:#fff!important;border-radius:999px!important;padding:8px 12px!important;box-shadow:0 10px 24px rgba(46,166,255,.23)!important}
.toh-chat-settings-panel{padding:12px 16px!important;background:#f8fbff!important;border-bottom:1px solid #e5edf7!important}.toh-chat-settings-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr)) auto!important;gap:10px!important;align-items:end!important}.toh-chat-settings-grid label{display:flex!important;flex-direction:column!important;gap:5px!important;color:#475569!important;font-size:11px!important;font-weight:800!important}.toh-chat-settings-grid input{height:36px!important;border:1px solid #dbe2ea!important;border-radius:12px!important;padding:0 10px!important;background:#fff!important;color:#0f172a!important;box-shadow:none!important}.toh-chat-settings-grid input[type=color]{padding:3px!important}.toh-chat-save-settings{height:36px!important;border:0!important;border-radius:12px!important;background:linear-gradient(135deg,#2563eb,#7c3aed)!important;color:#fff!important;padding:0 14px!important;font-weight:900!important;cursor:pointer!important}
.toh-chat-banner{display:none;align-items:center!important;gap:10px!important;padding:9px 16px!important;background:linear-gradient(135deg,#eff6ff,#f5f3ff)!important;border-bottom:1px solid #dbeafe!important;color:#1e293b!important;font-size:12px!important;font-weight:800!important}.toh-chat-banner img{width:42px!important;height:42px!important;border-radius:12px!important;object-fit:cover!important;box-shadow:0 8px 18px rgba(15,23,42,.12)!important}.toh-chat-banner span{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.toh-chat-active .toh-chat-messages{background-color:var(--toh-chat-bg)!important;background-size:360px!important;background-position:center!important;padding:16px 18px!important;scroll-behavior:smooth!important}
body.toh-chat-active .toh-chat-msg{gap:8px!important;margin-bottom:8px!important;align-items:flex-end!important}.toh-chat-msg:not(.me) .toh-chat-avatar{order:0!important}.toh-chat-msg.me .toh-chat-avatar{display:none!important}
body.toh-chat-active .toh-chat-avatar{width:34px!important;height:34px!important;box-shadow:0 6px 16px rgba(15,23,42,.12)!important;border:2px solid rgba(255,255,255,.85)!important}
body.toh-chat-active .toh-chat-bubble{max-width:min(620px,72%)!important;border:0!important;border-radius:14px!important;padding:8px 10px!important;box-shadow:0 3px 11px rgba(15,23,42,.10)!important}.toh-chat-msg:not(.me) .toh-chat-bubble{background:var(--toh-chat-left)!important;color:#111827!important;border-radius:6px 14px 14px 14px!important}.toh-chat-msg.me .toh-chat-bubble{background:var(--toh-chat-right)!important;color:#0f172a!important;border-radius:14px 6px 14px 14px!important}.toh-chat-msg.me .toh-chat-meta,.toh-chat-msg.me .toh-chat-meta b,.toh-chat-msg.me .toh-chat-meta span,.toh-chat-msg.me .toh-chat-text{color:#0f172a!important}.toh-chat-meta{font-size:10px!important;margin-bottom:4px!important;color:#64748b!important}.toh-chat-text{font-size:13px!important;line-height:1.42!important;color:inherit!important}.toh-chat-image{max-width:min(360px,100%)!important;border-radius:12px!important}.toh-chat-attachment{margin-top:7px!important}.toh-chat-code{background:rgba(37,99,235,.08)!important;color:#1d4ed8!important;border-radius:999px!important;display:inline-flex!important}
body.toh-chat-active .toh-chat-form-pro{padding:10px 12px!important;background:#fff!important;border-top:1px solid #dbe2ea!important;box-shadow:0 -8px 28px rgba(15,23,42,.06)!important}.toh-chat-input-wrap{position:relative!important}.toh-chat-form textarea{border-radius:18px!important;border:1px solid #dbe2ea!important;min-height:42px!important;padding:12px 14px!important;background:#fff!important}.toh-chat-compose-tools{grid-template-columns:auto 1fr 78px!important}.toh-chat-form-pro button[type=submit]{width:78px!important;min-width:78px!important;background:var(--toh-chat-accent)!important;border-radius:16px!important;box-shadow:0 10px 24px rgba(46,166,255,.25)!important}
body.toh-chat-active .toh-chat-mention-pop{left:0!important;right:0!important;bottom:calc(100% + 8px)!important;width:100%!important;max-height:290px!important;padding:8px!important;background:#fff!important;border:1px solid #dbeafe!important;border-radius:16px!important;box-shadow:0 20px 55px rgba(15,23,42,.18)!important;overflow:auto!important;z-index:10050!important}.toh-chat-mention-pop:before{content:'Gợi ý nhắc tên'!important;display:block!important;padding:6px 9px 8px!important;color:#64748b!important;font-size:12px!important;font-weight:900!important}.toh-chat-mention-item{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;width:100%!important;min-height:58px!important;gap:11px!important;align-items:center!important;padding:8px 10px!important;margin:0!important;border:0!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important;text-align:left!important;color:#0f172a!important}.toh-chat-mention-item + .toh-chat-mention-item{border-top:1px solid #f1f5f9!important}.toh-chat-mention-item:hover,.toh-chat-mention-item:focus{background:#eff6ff!important;outline:none!important}.toh-chat-mention-item .toh-mention-avatar{width:42px!important;height:42px!important;border-radius:50%!important;overflow:hidden!important;background:linear-gradient(135deg,#60a5fa,#a78bfa)!important;display:flex!important;align-items:center!important;justify-content:center!important;color:#fff!important;font-style:normal!important;font-size:15px!important;font-weight:900!important}.toh-chat-mention-item .toh-mention-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important}.toh-chat-mention-item strong{display:flex!important;flex-direction:column!important;min-width:0!important}.toh-chat-mention-item b{display:block!important;color:#0f172a!important;font-size:14px!important;font-weight:900!important;line-height:1.25!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.toh-chat-mention-item small{display:block!important;color:#64748b!important;font-size:12px!important;font-weight:700!important;line-height:1.25!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.toh-chat-mention{background:#fff7ed!important;color:#c2410c!important;border:1px solid #fed7aa!important;border-radius:999px!important;padding:4px 8px!important}.toh-chat-msg.me .toh-chat-mention{background:#e0f2fe!important;color:#0369a1!important;border-color:#bae6fd!important}
@media(max-width:980px){.toh-chat-settings-grid{grid-template-columns:1fr 1fr!important}.toh-chat-save-settings{grid-column:1/-1!important}.toh-chat-compose-tools{grid-template-columns:1fr!important}.toh-chat-form-pro button[type=submit]{width:100%!important;min-width:100%!important}.toh-chat-helper{display:none!important}}@media(max-width:720px){body.toh-chat-active .toh-chat-bubble{max-width:84vw!important}.toh-chat-settings-grid{grid-template-columns:1fr!important}.toh-chat-banner span{white-space:normal!important}.toh-chat-mention-pop{max-height:250px!important}}


/* =========================================================
   v7.7.22 - Clean compact @ mention dropdown + hardened chat image upload settings
   ========================================================= */
body.toh-chat-active #tohChatMentionPop.toh-chat-mention-pop{
    position:absolute!important;
    left:0!important;
    right:auto!important;
    bottom:calc(100% + 10px)!important;
    width:420px!important;
    max-width:min(420px,calc(100vw - 36px))!important;
    max-height:268px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding:8px!important;
    background:#ffffff!important;
    border:1px solid #dbeafe!important;
    border-radius:18px!important;
    box-shadow:0 22px 60px rgba(15,23,42,.18)!important;
    z-index:999999!important;
}
body.toh-chat-active #tohChatMentionPop.toh-chat-mention-pop:before{
    content:'Gợi ý nhắc tên'!important;
    display:block!important;
    height:auto!important;
    padding:6px 10px 9px!important;
    margin:0!important;
    color:#475569!important;
    font-size:12px!important;
    line-height:1.2!important;
    font-weight:900!important;
    background:transparent!important;
    border:0!important;
}
body.toh-chat-active #tohChatMentionPop .toh-chat-mention-item{
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:56px!important;
    display:grid!important;
    grid-template-columns:42px minmax(0,1fr)!important;
    align-items:center!important;
    column-gap:12px!important;
    margin:0 0 6px 0!important;
    padding:8px 10px!important;
    border:1px solid #eef2f7!important;
    border-radius:15px!important;
    background:#fff!important;
    box-shadow:0 5px 14px rgba(15,23,42,.04)!important;
    color:#0f172a!important;
    cursor:pointer!important;
    text-align:left!important;
    overflow:hidden!important;
}
body.toh-chat-active #tohChatMentionPop .toh-chat-mention-item:hover,
body.toh-chat-active #tohChatMentionPop .toh-chat-mention-item.is-active{
    background:linear-gradient(135deg,#eff6ff 0%,#f5f3ff 100%)!important;
    border-color:#93c5fd!important;
}
body.toh-chat-active #tohChatMentionPop .toh-mention-avatar{
    grid-column:1!important;
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    border-radius:50%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:linear-gradient(135deg,#38bdf8,#7c3aed)!important;
    color:#fff!important;
    font-style:normal!important;
    font-weight:900!important;
    font-size:15px!important;
    overflow:hidden!important;
}
body.toh-chat-active #tohChatMentionPop .toh-mention-avatar img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    border-radius:50%!important;
}
body.toh-chat-active #tohChatMentionPop .toh-chat-mention-item strong{
    grid-column:2!important;
    min-width:0!important;
    max-width:100%!important;
    display:block!important;
    padding:0!important;
    margin:0!important;
    overflow:hidden!important;
}
body.toh-chat-active #tohChatMentionPop .toh-chat-mention-item b,
body.toh-chat-active #tohChatMentionPop .toh-chat-mention-item small{
    display:block!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    text-align:left!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
}
body.toh-chat-active #tohChatMentionPop .toh-chat-mention-item b{
    color:#0f172a!important;
    font-size:14px!important;
    line-height:1.25!important;
    font-weight:900!important;
}
body.toh-chat-active #tohChatMentionPop .toh-chat-mention-item small{
    margin-top:3px!important;
    color:#64748b!important;
    font-size:12px!important;
    line-height:1.25!important;
    font-weight:700!important;
}
body.toh-chat-active #tohChatMentionPop .toh-chat-mention-empty{
    padding:12px!important;
    color:#64748b!important;
    font-size:13px!important;
    font-weight:700!important;
}
.toh-chat-upload-setting{display:grid!important;grid-template-columns:minmax(0,1fr)86px!important;gap:7px!important;align-items:center!important}.toh-chat-upload-setting input[type=file]{display:none!important}.toh-chat-upload-setting-btn{height:36px!important;border:0!important;border-radius:12px!important;background:var(--toh-chat-accent,#2ea6ff)!important;color:#fff!important;font-size:12px!important;font-weight:900!important;cursor:pointer!important;box-shadow:0 8px 18px rgba(46,166,255,.22)!important}.toh-chat-upload-setting-btn:hover{filter:brightness(.96)}
@media(max-width:720px){body.toh-chat-active #tohChatMentionPop.toh-chat-mention-pop{width:calc(100vw - 32px)!important;max-height:240px!important}.toh-chat-upload-setting{grid-template-columns:1fr!important}.toh-chat-upload-setting-btn{width:100%!important}}

/* UPGRADE 7.7.23 - Meal break deadline preview */
.toh-meal-deadline-preview{margin:14px 0 14px;padding:14px 16px;border:1px solid #bfdbfe;border-radius:16px;background:#eff6ff;color:#0f172a;display:grid;gap:5px;box-shadow:0 8px 24px rgba(37,99,235,.08)}
.toh-meal-deadline-preview b{font-size:13px;text-transform:uppercase;color:#2563eb;font-weight:900}
.toh-meal-deadline-preview strong{font-size:24px;line-height:1.2;font-weight:950;color:#0f172a}
.toh-meal-deadline-preview small{font-size:13px;color:#64748b;font-weight:800}


/* =========================================================
   v7.7.24 - Meal break settings UI PRO
   ========================================================= */
.toh-meal-settings-card{
  grid-column:1/-1!important;
  position:relative!important;
  margin:10px 0 4px!important;
  padding:18px!important;
  border:1px solid rgba(99,102,241,.18)!important;
  border-radius:24px!important;
  background:
    radial-gradient(circle at 0% 0%, rgba(124,58,237,.10), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(34,211,238,.10), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.98))!important;
  box-shadow:0 18px 45px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.9)!important;
  overflow:hidden!important;
}
.toh-meal-settings-card:before{
  content:""!important;position:absolute!important;left:0!important;top:0!important;bottom:0!important;width:5px!important;
  background:linear-gradient(180deg,#8b5cf6,#2563eb,#06b6d4)!important;border-radius:24px 0 0 24px!important;
}
.toh-meal-card-head{display:flex!important;align-items:center!important;gap:12px!important;margin:0 0 16px!important;position:relative!important;z-index:1!important;}
.toh-meal-icon{width:44px!important;height:44px!important;border-radius:16px!important;background:linear-gradient(135deg,#8b5cf6,#2563eb)!important;color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:22px!important;box-shadow:0 14px 28px rgba(37,99,235,.22)!important;flex:0 0 auto!important;}
.toh-meal-card-head b{display:block!important;font-size:14px!important;line-height:1.25!important;color:#0f172a!important;font-weight:950!important;letter-spacing:-.01em!important;}
.toh-meal-card-head small{display:block!important;margin-top:4px!important;color:#64748b!important;font-size:11px!important;font-weight:750!important;}
.toh-meal-card-grid{display:grid!important;grid-template-columns:1.1fr 1fr 1fr 1.4fr!important;gap:12px!important;align-items:end!important;position:relative!important;z-index:1!important;}
.toh-brand-form .toh-meal-control{display:flex!important;flex-direction:column!important;gap:7px!important;margin:0!important;padding:14px!important;border:1px solid rgba(219,227,239,.95)!important;border-radius:18px!important;background:rgba(255,255,255,.86)!important;box-shadow:0 10px 25px rgba(15,23,42,.045)!important;min-width:0!important;}
.toh-brand-form .toh-meal-control span{font-size:11px!important;font-weight:950!important;color:#334155!important;line-height:1.2!important;}
.toh-brand-form .toh-meal-control input,
.toh-brand-form .toh-meal-control select{
  width:100%!important;max-width:100%!important;height:44px!important;border:1px solid #dbe3ef!important;border-radius:14px!important;background:#fff!important;padding:0 13px!important;color:#0f172a!important;font-size:13px!important;font-weight:900!important;box-shadow:none!important;outline:0!important;appearance:auto!important;-webkit-appearance:auto!important;box-sizing:border-box!important;
}
.toh-brand-form .toh-meal-control input[type="time"]{min-width:0!important;letter-spacing:.02em!important;}
.toh-brand-form .toh-meal-control input:focus,
.toh-brand-form .toh-meal-control select:focus{border-color:#8b5cf6!important;box-shadow:0 0 0 4px rgba(139,92,246,.12)!important;}
.toh-brand-form .toh-meal-toggle select{background:linear-gradient(135deg,#f8fafc,#fff)!important;}
.toh-brand-form .toh-meal-label input{font-size:12px!important;font-weight:850!important;}
@media(max-width:1180px){.toh-meal-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.toh-meal-label{grid-column:1/-1!important}}
@media(max-width:720px){.toh-meal-settings-card{padding:15px!important;border-radius:20px!important}.toh-meal-card-grid{grid-template-columns:1fr!important}.toh-meal-label{grid-column:auto!important}.toh-meal-card-head{align-items:flex-start!important}.toh-meal-icon{width:40px!important;height:40px!important;border-radius:14px!important}}
