:root{
      --bg:#f4f6f8;
      --card:#fff;
      --text:#1f2937;
      --muted:#6b7280;
      --line:#e5e7eb;
      --primary:#0b57d0;
      --primary-dark:#0842a0;
      --ok:#137333;
      --ok-bg:#e6f4ea;
      --warn:#8a4b00;
      --warn-bg:#fef7e0;
      --danger:#b3261e;
      --danger-bg:#fce8e6;

      --fs-heading:25px;
      --fs-section:18px;
      --fs-option:18px;
      --fs-body:16px;
      --fs-note:13px;
      --fs-chip:13px;
      --fs-button:16px;
    }

    *{ box-sizing:border-box; }

    body{
      margin:0;
      font-family:var(--font-ui);
      background:var(--bg);
      color:var(--text);
      font-synthesis:none;
      -webkit-font-smoothing:antialiased;
      -moz-osx-font-smoothing:grayscale;
    }

    button,
input,
textarea,
select,
option{
      font-family:inherit;
    }

    button{
      font-synthesis:none;
    }

    .wrap{
      max-width:760px;
      margin:0 auto;
      padding:22px 14px 44px;
    }

    .hero{ margin-bottom:14px; }
    .hero h1{
      margin:0 0 7px;
      font-size:var(--fs-heading);
      line-height:1.25;
      text-align:center;
    }
    .hero-unit{
      font-weight:800;
      text-transform:uppercase;
      white-space:nowrap;
    }
    .hero p{
      margin:0;
      color:var(--muted);
      font-size:var(--fs-body);
      line-height:1.5;
    }

    .card{
      background:var(--card);
      border:1px solid var(--line);
      border-radius:14px;
      padding:18px;
      margin-bottom:14px;
      box-shadow:0 1px 2px rgba(0,0,0,.04);
    }

    .hidden{ display:none !important; }

    .loader{
      display:flex;
      align-items:center;
      gap:4px;
      color:var(--muted);
      font-size:14px;
    }
    .spin{
      width:18px;height:18px;border-radius:50%;
      border:2px solid #d7dce2;
      border-top-color:var(--primary);
      animation:spin .8s linear infinite;
    }
    @keyframes spin{ to{ transform:rotate(360deg); } }


    .loader-block{
      display:flex;
      flex-direction:column;
      gap:10px;
    }

    .progress-track{
      width:100%;
      height:6px;
      border-radius:999px;
      overflow:hidden;
      background:rgba(11,87,208,.12);
      position:relative;
    }

    .progress-track-lg{
      height:7px;
    }

    .progress-track-compact{
      height:5px;
      width:100%;
      min-width:180px;
    }

    .progress-bar{
      height:100%;
      width:0;
      border-radius:inherit;
      background:linear-gradient(90deg, rgba(11,87,208,.55) 0%, var(--primary) 58%, rgba(11,87,208,.82) 100%);
      transition:width .18s ease;
    }

    .progress-bar.indeterminate{
      position:absolute;
      inset:0 auto 0 -42%;
      width:42%;
      animation:progressIndeterminate 1.2s ease-in-out infinite;
    }

    @keyframes progressIndeterminate{
      0%{ transform:translateX(0); }
      100%{ transform:translateX(340%); }
    }

    .activity-progress{
      position:fixed;
      top:0;
      left:0;
      right:0;
      height:3px;
      z-index:9000;
      pointer-events:none;
      opacity:0;
      transition:opacity .12s ease;
    }

    .activity-progress.visible{
      opacity:1;
    }

    .activity-progress-track{
      position:absolute;
      inset:0;
      overflow:hidden;
      background:transparent;
    }

    .activity-progress-bar{
      height:100%;
      width:0%;
      border-radius:0 999px 999px 0;
      background:var(--primary);
      box-shadow:0 0 5px rgba(11,87,208,.28);
      transition:width .18s ease-out;
      will-change:width;
    }

    .activity-progress-percent{
      position:absolute;
      top:5px;
      right:max(8px, env(safe-area-inset-right));
      min-width:30px;
      padding:2px 5px;
      border-radius:7px;
      background:rgba(255,255,255,.92);
      color:var(--primary);
      font-size:10px;
      line-height:1.2;
      font-weight:700;
      text-align:center;
      box-shadow:0 1px 4px rgba(15,23,42,.10);
      opacity:.95;
    }

    .loading-progress-row{
      display:grid;
      grid-template-columns:minmax(0,1fr) 38px;
      align-items:center;
      gap:8px;
      width:100%;
    }

    .loading-progress-percent{
      color:var(--primary);
      font-size:12px;
      line-height:1;
      font-weight:700;
      text-align:right;
      font-variant-numeric:tabular-nums;
    }


    .message{
      border-radius:10px;
      padding:12px 13px;
      font-size:14px;
      line-height:1.5;
    }
    .message.error{ background:var(--danger-bg);color:var(--danger); }

    .install-card{
      border-color:#d9e5fb;
      background:#f8fbff;
      padding:14px 16px;
    }

    .install-row{
      display:flex;
      align-items:center;
      gap:12px;
    }

    .install-icon{
      width:42px;
      height:42px;
      border-radius:11px;
      display:grid;
      place-items:center;
      flex:0 0 42px;
      background:var(--primary);
      color:#fff;
      font-weight:800;
      font-size:13px;
      letter-spacing:.2px;
    }

    .install-main{
      min-width:0;
      flex:1;
    }

    .install-title{
      font-weight:700;
      font-size:var(--fs-body);
      margin-bottom:3px;
    }

    .install-text{
      color:var(--muted);
      font-size:var(--fs-note);
      line-height:1.45;
    }

    .install-actions{
      display:flex;
      gap:7px;
      flex:0 0 auto;
    }

    .install-btn{
      border:0;
      border-radius:9px;
      padding:9px 11px;
      background:var(--primary);
      color:#fff;
      font-size:12px;
      font-weight:700;
      cursor:pointer;
      white-space:nowrap;
    }

    .install-close{
      border:0;
      background:transparent;
      color:var(--muted);
      font-size:20px;
      line-height:1;
      padding:7px;
      cursor:pointer;
    }

    .report-link-btn,
.admin-close-btn,
.link-btn,
.btn,
.weekly-mini-btn{
      font-family:var(--font-ui);
      font-synthesis:none;
    }

    @media (max-width:560px){
      .install-row{
        align-items:flex-start;
      }

      .install-actions{
        flex-direction:column;
        align-items:flex-end;
      }

      .install-btn{
        padding:8px 9px;
      }
    }

    .inapp-card{
      text-align:center;
      padding:22px 18px;
    }

    .inapp-icon{
      font-size:36px;
      line-height:1;
      margin-bottom:10px;
    }

    .inapp-card h2{
      margin:0 0 10px;
      font-size:var(--fs-section);
    }

    .inapp-card p{
      margin:0 auto 12px;
      max-width:560px;
      color:var(--muted);
      font-size:var(--fs-body);
      line-height:1.55;
    }

    .inapp-steps{
      text-align:left;
      max-width:520px;
      margin:14px auto;
      padding:12px 14px;
      background:#f8fafc;
      border:1px solid var(--line);
      border-radius:10px;
      color:var(--text);
      font-size:var(--fs-body);
      line-height:1.6;
    }

    .copy-btn{
      width:100%;
      border:0;
      border-radius:10px;
      background:var(--primary);
      color:#fff;
      padding:13px 16px;
      font-weight:700;
      font-size:var(--fs-button);
      cursor:pointer;
      margin-top:6px;
    }

    .copy-btn.secondary{
      background:#edf2f7;
      color:var(--text);
      margin-top:10px;
    }

    .fallback-note{
      margin-top:10px;
      padding:10px 12px;
      border-radius:9px;
      background:var(--warn-bg);
      color:var(--warn);
      font-size:var(--fs-note);
      font-weight:700;
      line-height:1.45;
    }

    .copy-result{
      margin-top:10px;
      min-height:18px;
      color:var(--ok);
      font-size:13px;
      font-weight:700;
    }

    .login{
      text-align:center;
      padding:24px 18px;
    }
    .login h2{ margin:0 0 8px;font-size:var(--fs-section); }
    .login p{
      margin:0 auto 18px;
      max-width:520px;
      color:var(--muted);
      font-size:var(--fs-body);
      line-height:1.55;
    }
    #googleButton{
      min-height:44px;
      display:flex;
      justify-content:center;
    }
    .auth-note{
      margin-top:12px;
      color:var(--muted);
      font-size:12px;
      line-height:1.5;
    }

    .identity{
      display:flex;
      gap:12px;
      align-items:flex-start;
      flex-wrap:wrap;
      position:relative;
    }
    .avatar{
      width:45px;height:45px;border-radius:50%;
      background:#e8f0fe;
      display:grid;place-items:center;
      font-weight:700;color:var(--primary);
      flex:0 0 auto;
      overflow:hidden;
    }
    .avatar img{ width:100%;height:100%;object-fit:cover; }
    .identity-main{
      min-width:0;
      flex:1;
      position:relative;
      padding-right:220px;
    }

    
    .identity-title{
      font-size:var(--fs-note);color:var(--muted);margin-bottom:3px;
    }
    .identity-name{ font-size:var(--fs-body);font-weight:700; }
    .identity-email{
      font-size:var(--fs-body);font-weight:700;word-break:break-word;
    }

    

    
    .link-btn{
      border:0;background:transparent;color:var(--primary);
      font-size:var(--fs-note);font-weight:700;cursor:pointer;padding:8px;
    }

    

    .report-link-btn{
      border:1px solid #b9cdf5;
      background:#eef4ff;
      color:var(--primary);
      border-radius:8px;
      font-size:var(--fs-note);
      font-weight:700;
      cursor:pointer;
      padding:8px 10px;
      text-decoration:none;
      white-space:nowrap;
      box-sizing:border-box;
      width:100%;
      min-height:38px;
      display:flex;
      align-items:center;
      justify-content:center;
      text-align:center;
    }

    #adminRegistrationLockBtn{
      grid-column:auto;
    }

    

    

    .report-link-btn:hover{
      background:#e4edff;
    }

    
    
    
    
    .approval-badge{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-width:22px;
      height:22px;
      padding:0 6px;
      border-radius:999px;
      background:#0b57d0;
      color:#fff;
      font-size:12px;
      font-weight:850;
    }
    .approval-module-card h2{
      margin:0;
      font-size:21px;
      color:var(--text);
    }
    
    .approval-list{
      display:grid;
      gap:10px;
      margin-top:14px;
    }
    .approval-item{
      border:1px solid #dfe7f2;
      border-radius:12px;
      padding:13px;
      background:#fbfdff;
    }
    .approval-item-clickable{
      cursor:pointer;
      -webkit-tap-highlight-color:transparent;
    }
    .approval-item-clickable:focus-visible{
      outline:2px solid color-mix(in srgb,var(--primary,#0866ff) 72%,transparent);
      outline-offset:2px;
    }
    .approval-item-clickable:active{
      background:color-mix(in srgb,#fbfdff 94%,var(--primary,#0866ff));
    }
    .approval-item-head{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:10px;
      margin-bottom:8px;
    }
    .approval-name{
      flex:1 1 auto;
      min-width:0;
      font-size:16px;
      font-weight:850;
      line-height:1.35;
      color:var(--text);
      overflow-wrap:anywhere;
    }
    .approval-type{
      font-size:12px;
      font-weight:800;
      color:var(--primary);
      background:#eaf2ff;
      border-radius:999px;
      padding:4px 8px;
      white-space:nowrap;
    }
    .approval-meta{
      color:#475467;
      font-size:13px;
      line-height:1.5;
      margin-bottom:8px;
    }
    .approval-change-list{
      display:grid;
      gap:5px;
      margin:8px 0 10px;
      padding:9px 10px;
      border:1px solid #e2e9f2;
      border-radius:10px;
      background:#f4f7fb;
      font-size:13px;
      line-height:1.45;
      min-width:0;
    }
    .approval-change-line{
      min-width:0;
      color:#475467;
      overflow-wrap:anywhere;
      word-break:normal;
    }
    .approval-change-line b{
      color:#344054;
      font-weight:750;
    }
    .approval-detail{
      color:var(--text);
      font-size:14px;
      line-height:1.5;
      margin-bottom:10px;
      padding:9px 10px;
      border-radius:9px;
      background:#f5f8fc;
    }
    .approval-actions{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:8px;
    }
    .approval-btn{
      min-height:40px;
      border-radius:9px;
      font:inherit;
      font-size:13px;
      font-weight:800;
      cursor:pointer;
    }
    .approval-btn.approve{
      border:1px solid #1e9a50;
      background:#eaf8ef;
      color:#14743a;
    }
    .approval-btn.reject{
      border:1px solid #d99b9b;
      background:#fff3f3;
      color:#a52121;
    }
    .approval-status{
      min-height:20px;
      margin-top:10px;
      font-size:13px;
      font-weight:700;
      text-align:center;
    }
    .approval-status.ok{ color:#18783c; }
    .approval-status.error{ color:#b42318; }

    /* Central Approval content */
    .approval-management-group-v534{
      border:1px solid #dce6f5;
      border-radius:14px;
      padding:10px;
      background:#f8fbff;
      display:grid;
      gap:9px;
    }
    .approval-management-group-head-v534{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      padding:1px 2px 2px;
    }
    .approval-management-group-head-v534 strong{ display:block; font-size:14px; color:#344054; }
    .approval-management-group-head-v534 small{ display:block; margin-top:2px; color:#667085; font-size:11px; }
    .approval-management-group-head-v534 button{
      flex:0 0 auto;
      min-height:34px;
      border:1px solid #8fb7ff;
      border-radius:9px;
      padding:7px 10px;
      background:#eaf2ff;
      color:#1459c7;
      font:inherit;
      font-size:11px;
      font-weight:850;
      cursor:pointer;
    }
    .approval-item.management-v534{
      border-color:#bfd2f2;
      background:#fff;
    }

    .registration-lock-btn.locked{
      border-color:#ca3131;
      background:#fff1f1;
      color:#a52121;
    }

    
    
    
    #adminRegistrationLockBtn{ --ui-btn-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222.1%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20width%3D%2218%22%20height%3D%2212%22%20x%3D%223%22%20y%3D%2210%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%2010V7a5%205%200%200%201%2010%200v3%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2216%22%20r%3D%221%22%2F%3E%3C%2Fsvg%3E"); }
    #adminRegistrationLockBtn.locked{ --ui-btn-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222.1%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20width%3D%2218%22%20height%3D%2212%22%20x%3D%223%22%20y%3D%2210%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%2010V7a5%205%200%200%201%209.33-2.5%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2216%22%20r%3D%221%22%2F%3E%3C%2Fsvg%3E"); }
    
    .admin-close-btn{ --ui-btn-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222.1%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M18%206%206%2018%22%2F%3E%3Cpath%20d%3D%22m6%206%2012%2012%22%2F%3E%3C%2Fsvg%3E"); }

    #adminRegistrationLockBtn,
.admin-close-btn{
      gap:4px;
      align-items:center;
      justify-content:center;
      transition:
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease,
        opacity .18s ease,
        transform .15s ease;
    }

    #adminRegistrationLockBtn::before,
.admin-close-btn::before{
      content:"";
      display:block;
      width:21px;
      height:21px;
      flex:0 0 21px;
      background-color:currentColor;
      -webkit-mask:var(--ui-btn-icon) center / contain no-repeat;
      mask:var(--ui-btn-icon) center / contain no-repeat;
      pointer-events:none;
      transition:transform .18s ease, opacity .18s ease;
    }

    #adminRegistrationLockBtn:hover{
      background:#e3edff;
      border-color:#a8c1f0;
    }

    #adminRegistrationLockBtn:hover::before,
.admin-close-btn:hover::before{
      transform:scale(1.04);
    }

    .admin-close-btn:hover{
      background:#dfeaff;
      border-color:#8fb3ee;
      color:#084fbf;
    }

    #adminRegistrationLockBtn:active,
.admin-close-btn:active{
      transform:translateY(1px);
    }

    

    @media (max-width:560px){
      #adminRegistrationLockBtn,
.admin-close-btn{
        gap:6px;
      }

      #adminRegistrationLockBtn::before,
.admin-close-btn::before{
        width:22px;
        height:22px;
        flex-basis:22px;
      }

      
    }

    @media (max-width:430px){
      

      #adminRegistrationLockBtn::before{
        width:18px;
        height:18px;
        flex-basis:18px;
      }
    }

    

    @media (max-width:370px){
      

      #adminRegistrationLockBtn::before{
        width:16px;
        height:16px;
        flex-basis:16px;
      }
    }

    .registration-lock-notice{
      margin-bottom:14px;
      border:1px solid #e7b2b2;
      border-radius:10px;
      padding:11px 12px;
      background:#fff5f5;
      color:#8d2424;
      font-size:var(--fs-note);
      font-weight:700;
      line-height:1.45;
    }

    .report-module-card{
      padding:16px;
    }

    

    

    

    .report-section{
      margin-top:14px;
      border:1px solid var(--line);
      border-radius:11px;
      overflow:hidden;
      background:#fff;
    }

    .report-section-head{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      padding:10px 12px;
      background:#f6f8fb;
      border-bottom:1px solid var(--line);
    }

    .report-section-title{
      min-width:0;
      font-size:var(--fs-body);
      font-weight:800;
      line-height:1.35;
    }

    .report-section-count{
      flex:0 0 auto;
      border-radius:999px;
      padding:3px 7px;
      background:#eaf1ff;
      color:var(--primary);
      font-size:11px;
      font-weight:700;
    }

    .report-table-wrap{
      overflow:auto;
      -webkit-overflow-scrolling:touch;
    }

    .report-table{
      width:100%;
      min-width:980px;
      border-collapse:collapse;
      font-size:12px;
      line-height:1.35;
    }

    .report-table th,
.report-table td{
      padding:8px 9px;
      border-right:1px solid #e8ebef;
      border-bottom:1px solid #e8ebef;
      vertical-align:top;
      text-align:left;
      white-space:normal;
    }

    .report-table th{
      background:#fafbfc;
      font-weight:800;
      text-align:center;
      white-space:nowrap;
    }

    .report-table th:first-child,
.report-table td:first-child{
      width:42px;
      text-align:center;
    }

    .report-table tr:last-child td{
      border-bottom:0;
    }

    .report-table th:last-child,
.report-table td:last-child{
      border-right:0;
    }


    .report-list-export{
      background:#fff;
    }

    .report-exact-card{
      margin-top:14px;
      border:1px solid var(--line);
      border-radius:11px;
      overflow:hidden;
      background:#fff;
    }

    .report-exact-preview{
      min-height:110px;
      padding:10px;
      overflow:auto;
      background:#f4f5f7;
      display:flex;
      align-items:flex-start;
      justify-content:center;
    }

    .report-exact-preview.fast-data-preview{
      display:block;
      min-height:0;
      padding:0;
      background:#fff;
    }

    .report-exact-preview.fast-data-preview .report-section-head{
      margin:0;
    }

    .report-exact-preview img{
      display:block;
      max-width:100%;
      height:auto;
      background:#fff;
      box-shadow:0 1px 5px rgba(0,0,0,.12);
    }

    .report-exact-loading,
.report-exact-error{
      width:100%;
      padding:22px 12px;
      text-align:center;
      font-size:var(--fs-note);
      line-height:1.45;
    }

    .report-exact-loading{
      color:var(--muted);
    }

    .report-exact-error{
      color:var(--danger);
      background:var(--danger-bg);
      border-radius:8px;
    }

    .report-list-actions{
      display:flex;
      flex-wrap:wrap;
      justify-content:center;
      align-items:center;
      gap:10px;
      padding:12px 14px 14px;
      border-top:1px solid var(--line);
      background:#fff;
    }

    .report-list-btn{
      border:1px solid #b9cdf5;
      background:#eef4ff;
      color:var(--primary);
      border-radius:8px;
      padding:8px;

      font-family:inherit;
      font-size:13px;
      font-weight:700;
      font-style:normal;
      font-variant:normal;
      line-height:1.25;
      cursor:pointer;
      text-align:center;
      min-height:40px;
    }

    

    

    .report-list-btn:hover{
      background:#e4edff;
    }

    .report-list-btn:disabled{
      opacity:.55;
      cursor:wait;
    }

    @media (max-width:700px){
      .report-list-actions{
        gap:8px;
        padding:10px 10px 14px;
      }
    }

    .report-loading,
.report-error{
      border-radius:9px;
      padding:13px;
      text-align:center;
      font-size:var(--fs-note);
      line-height:1.45;
    }

    .report-loading{
      background:#f8fafc;
      color:var(--muted);
    }

    .report-error{
      background:var(--danger-bg);
      color:var(--danger);
    }

    .weekly-card{
      padding:16px;
      font-family:var(--font-ui);
    }

    .weekly-card *,
.weekly-card button{
      font-family:inherit;
    }

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    .weekly-list{
      display:grid;
      gap:8px;
    }

    .weekly-item{
      border:1px solid var(--line);
      border-radius:10px;
      padding:11px 12px;
      background:#fff;
    }

    .weekly-item-top{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:10px;
    }

    .weekly-person{
      font-family:inherit;
      font-size:var(--fs-body);
      font-weight:700;
      line-height:1.35;
    }

    .weekly-type{
      flex:0 0 auto;
      border-radius:999px;
      padding:3px 7px;
      background:#eef4ff;
      color:#2b5ea8;
      font-size:11px;
      font-weight:700;
    }

    /* v5.9: Summary card title = Họ tên - Loại đăng ký. */
    .weekly-person-with-type{
      min-width:0;
    }

    .weekly-title-separator{
      color:inherit;
    }

    .weekly-type-inline{
      color:#2b5ea8;
      font:inherit;
      font-weight:700;
    }

    .weekly-detail{
      margin-top:5px;
      font-size:var(--fs-note);
      line-height:1.45;
      color:var(--text);
    }

    .weekly-travel{
      margin-top:4px;
      font-size:var(--fs-note);
      color:#49627c;
      line-height:1.4;
    }

    .weekly-note{
      margin-top:4px;
      padding:6px 8px;
      border-radius:7px;
      background:#f8fafc;
      font-size:var(--fs-note);
      color:#334155;
      line-height:1.45;
      word-break:break-word;
    }

    .weekly-submitted{
      margin-top:5px;
      color:var(--muted);
      font-size:11px;
    }

    .weekly-registered-by{
      margin-top:4px;
      color:var(--muted);
      font-size:11px;
      word-break:break-word;
    }

    .weekly-actions{
      display:flex;
      gap:7px;
      margin-top:9px;
      flex-wrap:wrap;
    }

    .weekly-mini-btn{
      border:1px solid #bfd0ee;
      border-radius:8px;
      background:#fff;
      color:var(--primary);
      padding:7px 10px;
      font:inherit;
      font-size:12px;
      font-weight:700;
      cursor:pointer;
    }

    .weekly-mini-btn.danger{
      border-color:#efc2c2;
      color:#a52525;
      background:#fffafa;
    }

    .weekly-edit-note{
      margin-top:6px;
      color:#6b7280;
      font-size:11px;
    }

    .weekly-action-status{
      margin-bottom:10px;
      border-radius:8px;
      padding:9px 10px;
      font-size:12px;
      line-height:1.4;
    }

    .weekly-action-status.ok{
      background:#edf9f0;
      color:#236b35;
    }

    .weekly-action-status.error{
      background:var(--danger-bg);
      color:var(--danger);
    }

    .edit-mode-box{
      margin-bottom:12px;
      border:1px solid #e3b75f;
      border-radius:9px;
      padding:10px 11px;
      background:#fff9e9;
      color:#715516;
      font-size:12px;
      line-height:1.45;
    }

    .weekly-loading,
.weekly-error{
      border-radius:9px;
      padding:12px;
      text-align:center;
      font-size:var(--fs-note);
      line-height:1.45;
    }

    .weekly-loading{
      background:#f8fafc;
      color:var(--muted);
    }

    .weekly-error{
      background:var(--danger-bg);
      color:var(--danger);
    }

    .notify-card{
      padding:14px 16px;
    }

    .notify-row{
      display:flex;
      align-items:center;
      gap:12px;
    }

    .notify-main{
      flex:1;
      min-width:0;
    }

    .notify-title{
      font-size:var(--fs-body);
      font-weight:700;
      margin-bottom:3px;
    }

    .notify-text{
      color:var(--muted);
      font-size:var(--fs-note);
      line-height:1.45;
    }

    .notify-ok{
      color:var(--ok);
      font-weight:700;
    }

    .small-action-btn{
      border:0;
      border-radius:9px;
      background:var(--primary);
      color:#fff;
      padding:9px 11px;
      font-size:12px;
      font-weight:700;
      white-space:nowrap;
      cursor:pointer;
    }

    .small-action-btn:disabled{
      opacity:.55;
      cursor:not-allowed;
    }


    /* V5.10.4 - Push permission reminder: global modal / mobile bottom sheet. */
    .push-permission-overlay{
      position:fixed;
      inset:0;
      z-index:6150;
      display:flex;
      align-items:center;
      justify-content:center;
      padding:18px;
      box-sizing:border-box;
      background:rgba(15,23,42,.46);
      backdrop-filter:blur(2px);
      -webkit-backdrop-filter:blur(2px);
    }
    .push-permission-overlay.hidden{display:none !important;}
    .push-permission-panel{
      width:min(430px, calc(100vw - 36px));
      background:#fff;
      color:var(--text);
      border:1px solid #dbe4f1;
      border-radius:20px;
      box-shadow:0 24px 70px rgba(15,23,42,.28);
      padding:22px 20px 17px;
      box-sizing:border-box;
      text-align:center;
    }
    .push-permission-icon{
      width:54px;
      height:54px;
      margin:0 auto 12px;
      border-radius:17px;
      display:grid;
      place-items:center;
      background:#eaf2ff;
      color:var(--primary);
    }
    .push-permission-icon svg{
      width:28px;
      height:28px;
      fill:none;
      stroke:currentColor;
      stroke-width:1.9;
      stroke-linecap:round;
      stroke-linejoin:round;
    }
    .push-permission-title{
      margin:0;
      font-size:20px;
      line-height:1.3;
      font-weight:850;
      letter-spacing:-.01em;
    }
    .push-permission-text{
      margin:8px auto 0;
      max-width:360px;
      color:#596579;
      font-size:14px;
      line-height:1.55;
    }
    .push-permission-guide{
      margin:13px 0 0;
      padding:11px 12px;
      border:1px solid #dce6f5;
      border-radius:12px;
      background:#f7faff;
      color:#40506a;
      font-size:13px;
      line-height:1.5;
      text-align:left;
      white-space:pre-line;
    }
    .push-permission-actions{
      display:grid;
      gap:8px;
      margin-top:18px;
    }
    .push-permission-primary,
    .push-permission-later{
      width:100%;
      min-height:47px;
      border-radius:11px;
      font:inherit;
      font-size:14px;
      font-weight:800;
      cursor:pointer;
    }
    .push-permission-primary{
      border:0;
      background:var(--primary);
      color:#fff;
      box-shadow:0 7px 18px rgba(37,99,235,.20);
    }
    .push-permission-primary:disabled{opacity:.55;cursor:not-allowed;}
    .push-permission-later{
      border:0;
      background:transparent;
      color:#667085;
    }
    .push-permission-later:hover{background:#f5f7fa;}
    .push-permission-reminder{
      margin-top:4px;
      color:#98a2b3;
      font-size:11px;
      line-height:1.4;
    }
    html[data-theme="dark"] .push-permission-panel{
      background:#151b26;
      border-color:#2f394a;
      color:#f2f4f7;
    }
    html[data-theme="dark"] .push-permission-icon{background:#162b4f;}
    html[data-theme="dark"] .push-permission-text{color:#b8c1ce;}
    html[data-theme="dark"] .push-permission-guide{
      background:#111a28;
      border-color:#31405a;
      color:#c7d0dc;
    }
    html[data-theme="dark"] .push-permission-later{color:#b3bdca;}
    html[data-theme="dark"] .push-permission-later:hover{background:#202938;}
    @media (max-width:560px){
      .push-permission-overlay{
        align-items:flex-end;
        padding:10px;
      }
      .push-permission-panel{
        width:100%;
        border-radius:22px 22px 13px 13px;
        padding:20px 17px calc(14px + env(safe-area-inset-bottom));
      }
      .push-permission-title{font-size:19px;}
      .push-permission-text{font-size:14px;}
      .push-permission-primary, .push-permission-later{min-height:48px;}
    }

    .admin-card h2{
      margin:0 0 4px;
      font-size:var(--fs-section);
    }

    .admin-panel-head{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:12px;
    }

    .admin-close-btn{
      display:inline-flex;
      flex-direction:row;
      align-items:center;
      justify-content:center;
      gap:7px;
      border:1px solid #a9c5f4;
      background:#eaf2ff;
      color:var(--primary);
      border-radius:9px;
      padding:8px 12px;
      min-height:38px;
      font-size:12px;
      line-height:1;
      font-weight:700;
      cursor:pointer;
      white-space:nowrap;
      box-sizing:border-box;
    }

    .admin-badge{
      display:inline-block;
      padding:3px 7px;
      border-radius:999px;
      background:#eef4ff;
      color:var(--primary);
      font-size:var(--fs-chip);
      font-weight:700;
      margin-bottom:12px;
    }

    .admin-card textarea{
      min-height:90px;
    }

    .admin-subsection{
      border:1px solid var(--line);
      border-radius:10px;
      padding:12px;
      margin:0 0 16px;
      background:#fbfcfe;
    }

    .admin-subsection-title{
      font-size:var(--fs-body);
      font-weight:700;
      margin-bottom:9px;
    }

    .auto-push-row{
      display:flex;
      align-items:center;
      gap:10px;
      padding:9px 0;
      border-bottom:1px solid #eef0f2;
    }

    .auto-push-row:last-of-type{
      border-bottom:0;
    }

    .auto-push-main{
      flex:1;
      min-width:0;
    }

    .auto-push-title{
      font-weight:700;
      font-size:var(--fs-body);
      margin-bottom:2px;
    }

    .auto-push-note{
      color:var(--muted);
      font-size:var(--fs-note);
      line-height:1.4;
    }

    .switch{
      position:relative;
      width:46px;
      height:26px;
      flex:0 0 46px;
    }

    .switch input{
      opacity:0;
      width:0;
      height:0;
    }

    .switch-slider{
      position:absolute;
      inset:0;
      border-radius:999px;
      background:#cbd1d8;
      cursor:pointer;
      transition:.18s;
    }

    .switch-slider::before{
      content:"";
      position:absolute;
      width:20px;
      height:20px;
      left:3px;
      top:3px;
      border-radius:50%;
      background:#fff;
      box-shadow:0 1px 3px rgba(0,0,0,.2);
      transition:.18s;
    }

    .switch input:checked + .switch-slider{
      background:var(--primary);
    }

    .switch input:checked + .switch-slider::before{
      transform:translateX(20px);
    }

    .switch input:disabled + .switch-slider{
      opacity:.55;
      cursor:not-allowed;
    }

    .auto-push-status{
      margin-top:8px;
      color:var(--muted);
      font-size:var(--fs-note);
      line-height:1.45;
    }

    .push-presets{
      display:grid;
      gap:7px;
      margin-top:7px;
    }

    .push-preset{
      display:flex;
      align-items:center;
      gap:9px;
      border:1px solid var(--line);
      border-radius:9px;
      padding:10px 11px;
      cursor:pointer;
      background:#fff;
      font-size:var(--fs-body);
    }

    .push-preset input[type="radio"]{
      width:19px;
      height:19px;
      margin:0;
      flex:0 0 19px;
      accent-color:var(--primary);
    }

    .admin-result{
      margin-top:9px;
      min-height:18px;
      color:var(--muted);
      font-size:var(--fs-note);
      line-height:1.45;
    }

    .admin-result.ok{
      color:var(--ok);
      font-weight:700;
    }

    .admin-result.error{
      color:var(--danger);
      font-weight:700;
    }

    .field{ margin-bottom:18px; }
    .field:last-child{ margin-bottom:0; }

    .name-field{
      position:relative;
    }

    .name-suggestions{
      position:absolute;
      z-index:3000;
      left:0;
      right:0;
      top:100%;
      margin-top:5px;
      background:#fff;
      border:1px solid #c9cdd2;
      border-radius:10px;
      box-shadow:0 8px 24px rgba(15,23,42,.14);
      max-height:min(260px, 50vh);
      overflow-y:auto;
      -webkit-overflow-scrolling:touch;
    }

    .name-suggestion{
      width:100%;
      border:0;
      border-bottom:1px solid #eef0f2;
      background:#fff;
      color:var(--text);
      text-align:left;
      padding:12px 14px;
      font:inherit;
      font-size:var(--fs-body);
      cursor:pointer;
    }

    .name-suggestion:last-child{
      border-bottom:0;
    }

    .name-suggestion:active,
.name-suggestion:hover,
.name-suggestion.active{
      background:#eef4ff;
    }

    .name-suggestion-empty{
      padding:12px 14px;
      color:var(--muted);
      font-size:var(--fs-note);
    }
    label.title{
      display:block;font-weight:700;font-size:var(--fs-section);margin-bottom:8px;
    }
    .hint{
      color:var(--muted);font-size:var(--fs-note);margin-top:6px;line-height:1.45;
    }

    input[type="text"],
textarea{
      width:100%;
      border:1px solid #c9cdd2;
      border-radius:9px;
      padding:12px;
      font:inherit;
      font-size:var(--fs-body);
      background:#fff;
      outline:none;
    }
    input:focus,
textarea:focus{
      border-color:var(--primary);
      box-shadow:0 0 0 2px rgba(11,87,208,.12);
    }
    textarea{ min-height:96px;resize:vertical; }

    .types{
      display:grid;
      grid-template-columns:1fr;
      gap:9px;
    }
    .type{
      border:1px solid var(--line);
      border-radius:10px;
      padding:14px 16px;
      display:flex;
      align-items:center;
      gap:14px;
      cursor:pointer;
    }
    .type.off{
      opacity:.57;
      cursor:not-allowed;
      background:#fafafa;
    }
    .type input[type="radio"]{
      width:22px;
      height:22px;
      margin:0;
      flex:0 0 22px;
      align-self:center;
      accent-color:var(--primary);
      cursor:pointer;
    }
    .type-main{ flex:1; }
    .type-name{
      font-weight:700;
      font-size:var(--fs-option);
      line-height:1.45;
      margin-bottom:4px;
    }
    .status{
      font-size:var(--fs-chip);border-radius:999px;padding:3px 7px;display:inline-block;
    }
    .status.open{ color:var(--ok);background:var(--ok-bg); }
    .status.closed{ color:var(--warn);background:var(--warn-bg); }

    .permission-options{
      display:grid;
      gap:10px;
      margin-top:8px;
    }

    .permission-option{
      border:1px solid var(--line);
      border-radius:10px;
      padding:14px 16px;
      display:flex;
      align-items:center;
      gap:14px;
      background:#fff;
    }

    .permission-option input[type="radio"]{
      width:22px;
      height:22px;
      margin:0;
      flex:0 0 22px;
      align-self:center;
      accent-color:var(--primary);
      cursor:pointer;
    }

    .permission-option-main{
      flex:1;
      min-width:0;
    }

    .permission-option-title{
      font-weight:700;
      font-size:var(--fs-option);
      line-height:1.45;
      margin-bottom:8px;
    }

    .permission-inline{
      display:flex;
      align-items:center;
      gap:8px;
      flex-wrap:nowrap;
    }

    .permission-inline span{
      white-space:nowrap;
    }

    .permission-x{
      width:72px !important;
      min-width:72px;
      max-width:72px;
      padding:7px 8px !important;
      text-align:center;
      font-size:var(--fs-option) !important;
      line-height:1.2;
      flex:0 0 72px;
    }

    .permission-line{
      display:grid;
      grid-template-columns:minmax(0,1fr) 72px;
      align-items:center;
      column-gap:8px;
      font-weight:700;
      font-size:var(--fs-option);
      line-height:1.35;
      min-height:44px;
    }

    .permission-line span{
      display:block;
      min-width:0;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }

    @media (max-width: 480px){
      .permission-option{
        padding:12px;
        gap:10px;
      }

      .permission-option input[type="radio"]{
        width:20px;
        height:20px;
        flex:0 0 20px;
      }

      .permission-line{
        grid-template-columns:minmax(0,1fr) 68px;
        column-gap:6px;
        font-size:15px;
      }

      .permission-x{
        width:68px !important;
        min-width:68px;
        max-width:68px;
        flex:0 0 68px;
        padding:6px 6px !important;
        font-size:15px !important;
      }
    }

    .permission-option-other{
      align-items:flex-start;
    }

    .permission-option-other > input[type="radio"]{
      align-self:flex-start;
      margin-top:2px;
    }

    .permission-other{
      margin-top:8px;
      min-height:85px;
      font-size:var(--fs-body);
    }

    .btn{
      width:100%;
      border:0;
      border-radius:10px;
      background:var(--primary);
      color:#fff;
      padding:13px 16px;
      font-weight:700;
      font-size:var(--fs-button);
      cursor:pointer;
    }
    .btn:hover{ background:var(--primary-dark); }
    .btn:disabled{ opacity:.55;cursor:not-allowed; }
    .btn.secondary{
      margin-top:10px;background:#edf2f7;color:var(--text);
    }

    .server-time{
      display:none !important;
    }

    .summary h2{
      margin:0 0 12px;font-size:21px;color:var(--ok);
    }
    .summary-row{
      display:grid;
      grid-template-columns:175px 1fr;
      gap:10px;
      padding:9px 0;
      border-bottom:1px solid #eef0f2;
      line-height:1.45;
    }
    .summary-row:last-child{ border-bottom:0; }
    .summary-label{ color:var(--muted);font-size:var(--fs-note); }
    .summary-value{ font-weight:700;word-break:break-word;font-size:var(--fs-body); }

    .sync-note{
      margin:14px 0 2px;
      padding:10px 12px;
      border-radius:9px;
      background:#eef4ff;
      color:#35506f;
      font-size:var(--fs-note);
      line-height:1.45;
    }
    .sync-note.ok{ background:var(--ok-bg);color:var(--ok); }
    .sync-note.warn{ background:var(--warn-bg);color:var(--warn); }

    @media (max-width:560px){
      .wrap{ padding:14px 10px 30px; }
      .identity{
        align-items:flex-start;
        flex-wrap:wrap;
      }

      .identity-main{
        min-width:0;
        flex:1 1 calc(100% - 60px);
        padding-right:156px;
      }

      .identity-main.admin-mobile-account{
        position:relative;
        padding-right:156px;
      }

      

      

      

      #adminRegistrationLockBtn{
        grid-column:auto;
      }

      
      .card{ padding:15px;border-radius:12px; }
      .hero h1{ font-size:21px; }
      .summary-row{ grid-template-columns:1fr;gap:3px; }
      .identity-email{ font-size:var(--fs-body); }

      .report-link-btn{
        font-size:11px;
        line-height:1.25;
        white-space:normal;
        word-break:break-word;
        padding:7px 6px;
        min-height:48px;
      }
    }

    
    
    
    
    

    
    
    
    @keyframes supportIn{
      from{ opacity:0; transform:translateY(-6px) scale(.99); }
      to{ opacity:1; transform:none; }
    }
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    

    @media (max-width:560px){
      
      

      
      
      
      
      
      @keyframes supportUp{
        from{ opacity:0; transform:translateY(18px); }
        to{ opacity:1; transform:none; }
      }
    }

    .release-overlay{
      position:fixed;
      inset:0;
      z-index:6000;
      background:rgba(15,23,42,.38);
      display:flex;
      align-items:center;
      justify-content:center;
      padding:18px;
      box-sizing:border-box;
    }
    .release-overlay.hidden{ display:none !important; }
    .release-panel{
      width:min(520px, calc(100vw - 36px));
      max-height:min(78vh, 720px);
      overflow:auto;
      background:#fff;
      border:1px solid #d8e1ef;
      border-radius:18px;
      box-shadow:0 22px 60px rgba(15,23,42,.24);
      padding:20px;
      box-sizing:border-box;
    }
    .release-head{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:14px;
      margin-bottom:10px;
    }
    .release-kicker{
      color:var(--primary);
      font-size:12px;
      font-weight:800;
      text-transform:uppercase;
      letter-spacing:.04em;
      margin-bottom:4px;
    }
    .release-title{
      color:var(--text);
      font-size:20px;
      line-height:1.3;
      font-weight:850;
    }
    .release-close{
      width:36px;
      height:36px;
      flex:0 0 36px;
      border:1px solid #d7dfeb;
      border-radius:10px;
      background:#f7f9fc;
      color:#5f6b7a;
      font-size:24px;
      line-height:1;
      display:grid;
      place-items:center;
      cursor:pointer;
      padding:0;
    }
    .release-summary{
      color:#475467;
      font-size:14px;
      line-height:1.55;
      margin:8px 0 12px;
    }
    .release-notes{
      margin:0;
      padding:0;
      list-style:none;
      display:grid;
      gap:8px;
    }
    .release-notes li{
      position:relative;
      padding:10px 12px 10px 36px;
      border:1px solid #e3eaf5;
      border-radius:11px;
      background:#f8fbff;
      color:var(--text);
      font-size:14px;
      line-height:1.45;
    }
    .release-notes li::before{
      content:"✓";
      position:absolute;
      left:12px;
      top:9px;
      color:var(--primary);
      font-weight:900;
    }
    .release-ok{
      width:100%;
      min-height:44px;
      margin-top:16px;
      border:0;
      border-radius:10px;
      background:var(--primary);
      color:#fff;
      font:inherit;
      font-size:14px;
      font-weight:800;
      cursor:pointer;
    }
    @media (max-width:560px){
      .release-overlay{
        align-items:flex-end;
        padding:10px;
      }
      .release-panel{
        width:100%;
        max-height:82vh;
        border-radius:20px 20px 12px 12px;
        padding:18px;
      }
      .release-title{ font-size:18px; }
    }

    .release-panel{
      font-family:var(--font-ui);
      font-synthesis:none;
      -webkit-font-smoothing:antialiased;
      -moz-osx-font-smoothing:grayscale;
    }

    .release-kicker,
.release-title,
.release-ok,
.release-notes li::before{
      font-weight:700 !important;
    }

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    :root{
      --fs-heading:24px;
      --fs-section:18px;
      --fs-option:17px;
      --fs-body:15px;
      --fs-note:13px;
      --fs-chip:13px;
      --fs-button:14px;
    }

    .identity-account-row{
      display:flex;
      align-items:center;
      justify-content:flex-end;
      gap:8px;
    }

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    


    .identity-title,
.hint,
.status,
.chip,
.summary-meta,
.weekly-meta{
      font-size:var(--fs-note) !important;
    }

    .identity-name,
.identity-email,
.field-label,
.approval-name,
.summary-person-name{
      font-size:var(--fs-body) !important;
    }

    .report-link-btn,
.btn{
      font-size:var(--fs-button) !important;
      font-weight:700 !important;
    }

    .approval-module-card h2,
.summary-module-head h2{
      font-size:var(--fs-section) !important;
    }

    .approval-name,
.approval-type,
.approval-badge{
      font-weight:700 !important;
    }

    @media (max-width:560px){
      :root{
        --fs-heading:22px;
        --fs-section:17px;
        --fs-option:17px;
        --fs-body:15px;
        --fs-note:13px;
        --fs-chip:13px;
        --fs-button:12px;
      }

      

      

      

      

      
    }

    

    .identity-main{
      min-height:0;
      padding-right:0;
      display:grid;
      grid-template-columns:minmax(0, 1fr) auto;
      grid-template-areas:
        "title actions"
        "name actions"
        "email actions";
      column-gap:18px;
      row-gap:2px;
      align-items:start;
      align-content:start;
    }

    .identity-title{
      grid-area:title;
      margin:0 0 3px 0;
      line-height:1.25;
    }
    .identity-name{
      grid-area:name;
      margin:0;
      line-height:1.25;
    }
    .identity-email{
      grid-area:email;
      margin:1px 0 0 0;
      line-height:1.25;
    }

    

    

    

    

    

    

    

    

    .result-action-row{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:9px;
      margin:13px 0 9px;
    }
    .result-action-btn{
      min-height:42px;
      border-radius:10px;
      font:inherit;
      font-size:var(--fs-button);
      font-weight:700;
      cursor:pointer;
    }
    .result-action-btn.edit{
      border:1px solid #9fc1f6;
      background:#eef4ff;
      color:var(--primary);
    }
    .result-action-btn.cancel{
      border:1px solid #e2a8a8;
      background:#fff6f6;
      color:#a52121;
    }

    .name-suggestions{
      overscroll-behavior:contain;
      scrollbar-gutter:stable;
    }
    .name-suggestion{
    }

    
    
    
    
    

    html[data-theme="dark"]{
      --bg:#0d1117;
      --card:#161b22;
      --text:#e8edf3;
      --muted:#a7b0bf;
      --line:#303946;
      --primary:#8ab4f8;
      --primary-dark:#aecbfa;
      --ok:#81c995;
      --ok-bg:#173923;
      --warn:#f6c26b;
      --warn-bg:#3b2b0d;
      --danger:#ff8a80;
      --danger-bg:#3d1d1b;
      color-scheme:dark;
    }

    html[data-theme="dark"] body{ background:var(--bg); color:var(--text); }
    html[data-theme="dark"] .card,
html[data-theme="dark"] .release-panel{
      background:var(--card) !important;
      border-color:var(--line) !important;
      color:var(--text) !important;
      box-shadow:0 1px 2px rgba(0,0,0,.35);
    }

    html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] textarea,
html[data-theme="dark"] select{
      background:#0f141b !important;
      color:var(--text) !important;
      border-color:#3b4655 !important;
    }

    html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{ color:#7f8a99 !important; }

    html[data-theme="dark"] .name-suggestions,
html[data-theme="dark"] .name-suggestion,
html[data-theme="dark"] .type,
html[data-theme="dark"] .permission-option,
html[data-theme="dark"] .weekly-card,
html[data-theme="dark"] .approval-item,
html[data-theme="dark"] .inapp-steps{
      background:#111821 !important;
      color:var(--text) !important;
      border-color:#34404f !important;
    }

    html[data-theme="dark"] .approval-management-group-v534{
      background:#111821;
      border-color:#34404f;
    }
    html[data-theme="dark"] .approval-management-group-head-v534 strong,
html[data-theme="dark"] .approval-management-group-head-v534 small{ color:var(--text); }
    html[data-theme="dark"] .approval-management-group-head-v534 button{
      background:#172b49;
      border-color:#385889;
      color:#9fc1ff;
    }

    html[data-theme="dark"] .approval-change-list{
      background:#0f141b;
      border-color:#34404f;
    }
    html[data-theme="dark"] .approval-change-line,
html[data-theme="dark"] .approval-change-line b{ color:var(--text); }

    html[data-theme="dark"] .name-suggestion:hover,
html[data-theme="dark"] .name-suggestion.active{
      background:#182338 !important;
    }

    

    html[data-theme="dark"] .report-link-btn,
html[data-theme="dark"] .result-action-btn.edit{
      background:#17233a !important;
      border-color:#385889 !important;
      color:#9fc1ff !important;
    }

    html[data-theme="dark"] .result-action-btn.cancel,
html[data-theme="dark"] .weekly-mini-btn.danger{
      background:#321d20 !important;
      border-color:#78454a !important;
      color:#ff9a92 !important;
    }

    
    

    html[data-theme="dark"] .release-head{
      background:var(--card) !important;
      border-color:var(--line) !important;
    }

    html[data-theme="dark"] .btn.secondary,
html[data-theme="dark"] .weekly-mini-btn{
      background:#202833 !important;
      color:var(--text) !important;
      border-color:#3a4657 !important;
    }

    html[data-theme="dark"] .sync-note{
      background:#17233a;
      color:#c2d2ec;
    }
    html[data-theme="dark"] .weekly-note{
      background:#111722 !important;
      color:#c4d3e5 !important;
      border:1px solid #233144 !important;
    }
    html[data-theme="dark"] .message.error{ background:var(--danger-bg); color:var(--danger); }
    html[data-theme="dark"] .summary-row,
    html[data-theme="dark"] .weekly-row{ border-color:#303946 !important; }

    /* High contrast Weekly & Summary in Dark Mode */
    html[data-theme="dark"] .weekly-item{
      background:#141b25 !important;
      border-color:#273447 !important;
      color:#edf2f8 !important;
    }
    html[data-theme="dark"] .weekly-person{
      color:#f0f4f9 !important;
    }
    html[data-theme="dark"] .weekly-travel{
      color:#9bb1cb !important;
    }
    html[data-theme="dark"] .weekly-type,
    html[data-theme="dark"] .weekly-type-inline{
      background:rgba(56,128,245,.20) !important;
      color:#8bb6ff !important;
    }
    html[data-theme="dark"] .weekly-action-status.ok{
      background:rgba(35,107,53,.25) !important;
      color:#8ae4a4 !important;
    }
    html[data-theme="dark"] .weekly-title-separator{
      color:#64748b !important;
    }
    html[data-theme="dark"] .hero h1{ color:#f2f5f9 !important; }
    html[data-theme="dark"] .hero p{ color:#9bb0c9 !important; }
    html[data-theme="dark"] .field > label,
    html[data-theme="dark"] .field-label{ color:#cbd5e1 !important; }
    html[data-theme="dark"] .hint,
    html[data-theme="dark"] .form-hint{ color:#8fa0b5 !important; }
    html[data-theme="dark"] .summary-lookup-type{ color:#f0f4f9 !important; }
    html[data-theme="dark"] .summary-lookup-detail{ color:#c4d2e2 !important; }
    html[data-theme="dark"] .summary-lookup-time{ color:#9ab0c8 !important; }

    @media (max-width:560px){
      .identity-main{
        display:block;
        padding-right:0;
        min-height:auto;
      }

      

      

      
    }

/* v4.05 - FIX CĂN CỤM TÀI KHOẢN TRÊN MOBILE */



    html[data-theme="dark"] .progress-track{
      background:rgba(138,180,248,.18);
    }


/* =========================================================
   v4.10 - ACCOUNT HEADER RESPONSIVE
   Mobile: thông tin tài khoản ở trên, 3 mục ngay bên dưới.
   Desktop: 3 mục nằm ngang bên phải.
   ========================================================= */
.identity{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:
    "account quick"
    "modules modules"
    "approval approval";
  column-gap:28px;
  row-gap:12px;
  align-items:center !important;
}
.identity-account-block{
  grid-area:account;
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}
.identity-account-block .avatar{
  width:52px;
  height:52px;
  flex:0 0 52px;
  align-self:center;
}
.identity-main,
.identity-main.admin-mobile-account{
  min-width:0;
  padding:0 !important;
  display:flex !important;
  flex-direction:column;
  justify-content:center;
  gap:0;
  min-height:52px;
}
.identity-title{
  margin:0 0 3px !important;
  line-height:1.2 !important;
}
.identity-name{
  margin:0 !important;
  line-height:1.16 !important;
}
.identity-email{
  margin:2px 0 0 !important;
  line-height:1.16 !important;
  overflow-wrap:anywhere;
  word-break:normal;
}








@media (max-width:560px){
  .identity{
    grid-template-columns:1fr;
    grid-template-areas:
      "account"
      "quick"
      "modules"
      "approval";
    row-gap:12px;
    align-items:stretch !important;
  }
  .identity-account-block{
    gap:12px;
    align-items:center;
  }
  .identity-account-block .avatar{
    width:54px;
    height:54px;
    flex-basis:54px;
    align-self:center;
  }
  .identity-main,
.identity-main.admin-mobile-account{
    min-height:54px;
    display:flex !important;
    justify-content:center;
    padding:0 !important;
  }
  .identity-title{ margin-bottom:2px !important; }
  .identity-name,
.identity-email{ line-height:1.12 !important; }
  .identity-email{ margin-top:2px !important; }
  
  
  
  
}



    html[data-theme="dark"] .activity-progress-percent{
      background:rgba(22,27,34,.94);
      color:#9fc1ff;
      box-shadow:0 1px 4px rgba(0,0,0,.28);
    }

    html[data-theme="dark"] .loading-progress-percent{
      color:#9fc1ff;
    }


    /* v4.14 - trạng thái thời gian thực của nút Mở/Khóa đăng ký */
    #adminRegistrationLockBtn.action-lock{
      --ui-btn-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222.1%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%2210%22%20width%3D%2218%22%20height%3D%2211%22%20rx%3D%222%22/%3E%3Cpath%20d%3D%22M7%2010V7a5%205%200%200%201%2010%200v3%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2215.5%22%20r%3D%221%22/%3E%3C/svg%3E");
      background:#fff2f2 !important;
      border-color:#e49a9a !important;
      color:#c62828 !important;
    }

    #adminRegistrationLockBtn.action-lock:hover{
      background:#ffe7e7 !important;
      border-color:#d87575 !important;
      color:#b71c1c !important;
    }

    #adminRegistrationLockBtn.action-open{
      --ui-btn-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222.1%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%2210%22%20width%3D%2218%22%20height%3D%2211%22%20rx%3D%222%22/%3E%3Cpath%20d%3D%22M8%2010V7a5%205%200%200%201%209-3%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2215.5%22%20r%3D%221%22/%3E%3C/svg%3E");
      background:#effaf2 !important;
      border-color:#8dcea0 !important;
      color:#16823a !important;
    }

    #adminRegistrationLockBtn.action-open:hover{
      background:#e3f7e8 !important;
      border-color:#6fbd86 !important;
      color:#0f6f30 !important;
    }

    html[data-theme="dark"] #adminRegistrationLockBtn.action-lock{
      background:#3b1f22 !important;
      border-color:#7b444a !important;
      color:#ff9c96 !important;
    }

    html[data-theme="dark"] #adminRegistrationLockBtn.action-open{
      background:#173923 !important;
      border-color:#356d48 !important;
      color:#8fdaa5 !important;
    }


/* v4.17.5 - in-place pull-to-refresh. Keep current module open. */
html,
body{
  overscroll-behavior-y:none;
}
#weeklySummaryCard,
#approvalModuleCard{
  overscroll-behavior-y:contain;
}


/* Mobile: khóa zoom trang để giữ bố cục ứng dụng ổn định. */
html,
body{
  touch-action:pan-x pan-y;
  -ms-touch-action:pan-x pan-y;
}
button,
a,
input,
select,
textarea,
[role="button"]{
  touch-action:manipulation;
}


/* =========================================================
   v4.17.18 - Non-blocking toast for successful Copy image
   ========================================================= */
.app-toast{
  position:fixed;
  left:50%;
  bottom:calc(24px + env(safe-area-inset-bottom, 0px));
  z-index:99999;
  transform:translate(-50%, 14px) scale(.98);
  opacity:0;
  pointer-events:none;
  max-width:min(88vw, 420px);
  padding:11px 16px;
  border-radius:999px;
  background:rgba(20,29,43,.92);
  color:#fff;
  font:600 14px/1.25 var(--font-ui);
  box-shadow:0 10px 28px rgba(15,23,42,.22);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  transition:opacity .18s ease, transform .18s ease;
}
.app-toast.show{
  opacity:1;
  transform:translate(-50%, 0) scale(1);
}
.app-toast-success{
  background:rgba(23,122,72,.94);
}
.app-toast-error{
  background:rgba(185,28,28,.94);
}
.app-toast-info{
  background:rgba(20,29,43,.92);
}
@media (max-width:700px){
  body.app-shell-active-v587 .app-toast{
    bottom:calc(96px + env(safe-area-inset-bottom, 0px));
  }
}
@media (min-width:700px){
  .app-toast{
    bottom:28px;
  }
}


/* =========================================================
   v4.17.27 - Notification Center redesign
   Compact iOS-style bottom sheet, semantic icons, cleaner rows.
   ========================================================= */



















































































/* =========================================================
   v4.17.28 - Notification contextual actions
   Bấm thẻ -> chi tiết -> mở đúng module / đúng bản ghi.
   ========================================================= */





























































@keyframes notificationTargetPulse297{
  0%,
100%{ transform:translateZ(0) scale(1); }
  50%{ transform:translateZ(0) scale(1.012); }
}


















/* =========================================================
   v4.17.29 - Notification Center: taller mobile sheet
   ========================================================= */



/* =========================================================
   v4.17.30 - Notification Center full-bleed flat mode
   Mục tiêu: tab Thông báo phẳng, tràn viền như app native.
   ========================================================= */



/* v4.18.0 - Báo cáo v233: trạng thái lỗi nhẹ, không che SOURCE/PDF cũ */


/* =========================================================
   v4.18.4 - Pull refresh: compact progress only
   ========================================================= */

/* Thanh tiến trình duy nhất: mảnh, sát mép trên, có %. */
.activity-progress{
  height:4px;
  z-index:10050;
}

.activity-progress-percent{
  top:7px;
  right:max(8px, env(safe-area-inset-right));
  min-width:34px;
  padding:2px 6px;
  border-radius:8px;
  font-size:10.5px;
  font-variant-numeric:tabular-nums;
}


/* =========================================================
   v4.18.5 - Báo cáo xem nhanh từ SOURCE, không nhúng PDF
   ========================================================= */
.report-exact-preview.fast-data-preview{
  display:block !important;
  min-height:0 !important;
  height:auto !important;
  overflow:visible !important;
  background:var(--card, #fff) !important;
}
html[data-theme="dark"] .report-exact-preview.fast-data-preview{
  background:#151d27 !important;
}


/* =========================================================
   v4.18.6 - FLAT FULL-SCREEN MODULES ON MOBILE
   Tổng hợp / Báo cáo / Phê duyệt
   mở phẳng, tràn viền trên mobile.
   ========================================================= */
@media (max-width:700px){
  /* ===== 4 module chính đang là card trong trang ===== */
  #weeklySummaryCard,
#approvalModuleCard{
    position:fixed !important;
    inset:0 !important;
    z-index:4800 !important;
    width:100vw !important;
    height:100dvh !important;
    max-width:none !important;
    max-height:none !important;
    margin:0 !important;
    padding:0 14px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    background:#f4f7fb !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
  }

  #weeklySummaryCard.hidden,
#approvalModuleCard.hidden{
    display:none !important;
  }

  /* ===== Header phẳng, sticky, giống Notification ===== */
  

  

  

  /* Nút đóng vuông, chỉ còn icon X để gọn như tab Thông báo */
  #weeklySummaryCard .admin-close-btn,
#approvalModuleCard .admin-close-btn{
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    min-height:42px !important;
    flex:0 0 42px !important;
    padding:0 !important;
    gap:0 !important;
    border:1px solid #d8e0ea !important;
    border-radius:14px !important;
    background:#f8fafc !important;
    color:#5b6778 !important;
    font-size:0 !important;
    line-height:0 !important;
  }

  #weeklySummaryCard .admin-close-btn::before,
#approvalModuleCard .admin-close-btn::before{
    width:19px !important;
    height:19px !important;
    flex:0 0 19px !important;
  }

  /* ===== TỔNG HỢP ===== */
  

  

  

  

  

  

  /* ===== BÁO CÁO ===== */
#reportModuleContent{
    margin:0 !important;
    padding:0 0 6px !important;
    background:transparent !important;
  }

  

  /* ===== PHÊ DUYỆT ===== */
  #approvalModuleContent{
    margin:0 !important;
    padding:0 !important;
  }

  #approvalModuleCard .approval-list{
    display:grid;
    gap:8px;
  }

  /* ===== GỬI THÔNG BÁO ===== */
  

  

  /* ===== HỖ TRỢ: cũng chuyển từ bottom-sheet thành full-screen ===== */
  

  

  

  

  

  /* Nội dung phẳng hơn: bỏ cảm giác card lồng card quá nhiều */
  

  /* Dark mode */
  html[data-theme="dark"] #weeklySummaryCard,
html[data-theme="dark"] #approvalModuleCard{
    background:#0f151d !important;
  }

  

  html[data-theme="dark"] #weeklySummaryCard .admin-close-btn,
html[data-theme="dark"] #approvalModuleCard .admin-close-btn{
    background:#18212c !important;
    border-color:#34404f !important;
    color:#aeb8c5 !important;
  }
}


/* =========================================================
   v4.18.9 - SAFE TOP AREA FOR MAIN HERO
   Tránh tiêu đề chính nằm trong vùng blur/fade của iOS 27.
   ========================================================= */
@media (max-width:700px){
  :root{
    --main-safe-top:
      max(
        72px,
        calc(env(safe-area-inset-top, 0px) + 18px)
      );
  }

  

  #pageHero{
    position:relative;
    z-index:2;
    margin-top:0 !important;
    padding-top:0 !important;
    background:transparent;
  }

  #pageHero h1{
    margin-top:0 !important;
  }
}

/* Khi chạy dạng standalone/PWA, ưu tiên đúng safe-area của thiết bị. */
@media (max-width:700px) and (display-mode:standalone){
  :root{
    --main-safe-top:
      max(
        76px,
        calc(env(safe-area-inset-top, 0px) + 20px)
      );
  }
}


/* =========================================================
   v4.19.1 - COMPACT MAIN HERO
   Không dùng min 72/76px nữa. Dùng safe-area thật của iOS + khoảng đệm nhỏ.
   ========================================================= */
@media (max-width:700px){
  :root{
    --main-safe-top:
      max(
        18px,
        calc(env(safe-area-inset-top, 0px) + 4px)
      );
  }

  .wrap{
    padding-top:var(--main-safe-top) !important;
  }

  #pageHero{
    position:relative;
    z-index:2;
    margin:
      0
      -14px
      14px !important;
    padding:
      8px
      14px
      12px !important;
    background:var(--bg) !important;
    border-bottom:1px solid rgba(203,213,225,.58);
  }

  #pageHero h1{
    margin:0 !important;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-width:0;
    font-size:21px !important;
    line-height:1.22 !important;
    font-weight:850 !important;
    letter-spacing:-.025em;
    text-align:center;
  }

  

  #pageHero .hero-unit{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:25px;
    padding:3px 8px;
    border:1px solid #bed0ef;
    border-radius:999px;
    background:#edf4ff;
    color:#2457a6;
    font-size:12px !important;
    line-height:1;
    font-weight:850;
    letter-spacing:.02em;
    text-transform:uppercase;
  }
}

/* PWA standalone: vẫn dùng safe-area thực, không cộng thêm một khoảng cố định lớn. */
@media (max-width:700px) and (display-mode:standalone){
  :root{
    --main-safe-top:
      max(
        18px,
        calc(env(safe-area-inset-top, 0px) + 4px)
      );
  }
}

@media (max-width:390px){
  #pageHero h1{
    gap:6px;
    font-size:19px !important;
  }

  #pageHero .hero-unit{
    min-height:23px;
    padding:3px 7px;
    font-size:11px !important;
  }
}

html[data-theme="dark"] #pageHero{
  border-bottom-color:#293443;
}

html[data-theme="dark"] #pageHero .hero-unit{
  background:#172a45;
  border-color:#35547c;
  color:#a9c8ff;
}


/* =========================================================
   v4.19.5 - BRAND HERO
   Tiêu đề chính giống header module nhưng nổi bật hơn:
   nền trắng phẳng, chữ đậm rõ, PTM dạng badge, gạch nhấn xanh.
   ========================================================= */
#pageHero{
  position:relative;
}

@media (max-width:700px){
  #pageHero{
    margin:
      0
      -14px
      12px !important;
    padding:
      10px
      14px
      14px !important;
    background:#fff !important;
    border-top:0 !important;
    border-bottom:1px solid #e4e9f1 !important;
    box-shadow:none !important;
  }

  #pageHero::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:5px;
    width:48px;
    height:3px;
    transform:translateX(-50%);
    border-radius:999px;
    background:#1f66d1;
  }

  #pageHero h1{
    margin:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    min-width:0;
    text-align:center !important;
    color:#182235 !important;
    font-size:clamp(21px, 5.55vw, 24px) !important;
    line-height:1.16 !important;
    font-weight:900 !important;
    letter-spacing:-.035em !important;
    text-rendering:optimizeLegibility;
    -webkit-font-smoothing:antialiased;
  }

  #pageHero .hero-title-main{
    min-width:0;
    white-space:nowrap;
  }

  #pageHero .hero-unit{
    flex:0 0 auto;
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    min-height:24px !important;
    padding:3px 8px !important;
    border:1px solid #b7cdf2 !important;
    border-radius:999px !important;
    background:#edf4ff !important;
    color:#1f5fb9 !important;
    font-size:10.5px !important;
    line-height:1 !important;
    font-weight:900 !important;
    letter-spacing:.045em !important;
    box-shadow:none !important;
  }
}

@media (max-width:390px){
  #pageHero h1{
    gap:6px !important;
    font-size:20px !important;
  }

  #pageHero .hero-unit{
    min-height:22px !important;
    padding:3px 7px !important;
    font-size:10px !important;
  }

  #pageHero::after{
    width:42px;
  }
}

@media (min-width:701px){
  #pageHero{
    margin-bottom:14px !important;
    padding:10px 14px 13px !important;
    background:#fff;
    border:1px solid var(--line);
    border-radius:12px;
  }

  #pageHero::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:5px;
    width:52px;
    height:3px;
    transform:translateX(-50%);
    border-radius:999px;
    background:var(--primary);
  }

  #pageHero h1{
    margin:0 !important;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    font-size:25px !important;
    line-height:1.18 !important;
    font-weight:900 !important;
    letter-spacing:-.03em !important;
  }
}

html[data-theme="dark"] #pageHero{
  background:#111821 !important;
  border-color:#293443 !important;
}

html[data-theme="dark"] #pageHero h1{
  color:#eaf0f7 !important;
}

html[data-theme="dark"] #pageHero::after{
  background:#7aa7ff !important;
}

html[data-theme="dark"] #pageHero .hero-unit{
  background:#172a45 !important;
  border-color:#35547c !important;
  color:#a9c8ff !important;
}


/* =========================================================
   v4.20.0 - TRA CỨU trong TỔNG HỢP
   ========================================================= */


.summary-lookup-shell{
  display:block;
}

.summary-lookup-search{
  margin-bottom:10px;
}

.summary-lookup-input-wrap{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:0 12px;
  border:1px solid #cfd8e5;
  border-radius:12px;
  background:#fff;
}

.summary-lookup-input-wrap:focus-within{
  border-color:#5d8fd9;
  box-shadow:0 0 0 3px rgba(47,111,210,.10);
}

.summary-lookup-input-wrap svg{
  width:18px;
  height:18px;
  flex:0 0 18px;
  fill:none;
  stroke:#778397;
  stroke-width:2;
  stroke-linecap:round;
}

#summaryLookupInput{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
  font:inherit;
  font-size:14px;
  padding:10px 0;
}

.summary-lookup-suggestions{
  display:grid;
  gap:4px;
  margin-top:6px;
}

.summary-lookup-person-btn{
  width:100%;
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:8px 11px;
  border:1px solid #e1e7ef;
  border-radius:10px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:13px;
  font-weight:700;
  text-align:left;
  cursor:pointer;
}

.summary-lookup-person-btn:active{
  background:#f3f7fd;
}

.summary-lookup-self-badge,
.summary-lookup-profile-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  padding:3px 7px;
  border-radius:999px;
  background:#edf4ff;
  color:#2457a6;
  font-size:9.5px;
  font-weight:850;
  letter-spacing:.03em;
}

.summary-lookup-no-match,
.summary-lookup-loading,
.summary-lookup-error{
  padding:18px 12px;
  border-radius:12px;
  text-align:center;
  font-size:12.5px;
  line-height:1.45;
}

.summary-lookup-loading{
  background:#f8fafc;
  color:#667085;
}

.summary-lookup-error{
  background:#fff1f0;
  color:#b42318;
}

.summary-lookup-profile{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding:12px;
  margin-bottom:8px;
  border:1px solid #dfe6ef;
  border-radius:12px;
  background:#fff;
}

.summary-lookup-profile-name{
  color:#1f2937;
  font-size:15px;
  font-weight:850;
  line-height:1.25;
}

.summary-lookup-profile-meta{
  margin-top:3px;
  color:#667085;
  font-size:11.5px;
  line-height:1.35;
}

.summary-lookup-period-tabs{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:4px;
  margin-bottom:8px;
  padding:4px;
  border:1px solid #e0e6ef;
  border-radius:11px;
  background:#edf2f7;
}

.summary-lookup-period-btn{
  min-height:34px;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  color:#5f6c7e;
  font:inherit;
  font-size:10.5px;
  font-weight:800;
  cursor:pointer;
}

.summary-lookup-period-btn.active{
  background:#fff;
  color:var(--primary);
  border-color:#c8d6eb;
  box-shadow:0 1px 3px rgba(15,23,42,.06);
}

.summary-lookup-rows{
  display:grid;
  gap:6px;
}

.summary-lookup-row{
  padding:10px 11px;
  border:1px solid #e2e7ee;
  border-radius:11px;
  background:#fff;
}

.summary-lookup-row-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.summary-lookup-type{
  color:#26364a;
  font-size:13px;
  font-weight:800;
}

.summary-lookup-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  padding:3px 7px;
  border-radius:999px;
  font-size:9.5px;
  font-weight:850;
}

.summary-lookup-status.registered{
  background:#eef4ff;
  color:#2457a6;
}
.summary-lookup-status.approved{
  background:#eaf7ef;
  color:#278552;
}
.summary-lookup-status.pending{
  background:#fff7e6;
  color:#9a6615;
}
.summary-lookup-status.rejected{
  background:#fff0ef;
  color:#bd3f37;
}

.summary-lookup-detail,
.summary-lookup-travel,
.summary-lookup-note{
  margin-top:5px;
  color:#4f5d70;
  font-size:11.5px;
  line-height:1.38;
}

.summary-lookup-time{
  margin-top:6px;
  color:#98a2b3;
  font-size:10.5px;
}

html[data-theme="dark"] .summary-lookup-input-wrap,
html[data-theme="dark"] .summary-lookup-person-btn,
html[data-theme="dark"] .summary-lookup-profile,
html[data-theme="dark"] .summary-lookup-row,
html[data-theme="dark"] .summary-lookup-period-btn.active{
  background:#151d27;
  border-color:#303b49;
}


/* =========================================================
   v4.20.1 - LOOKUP RETENTION + SMART NOTIFICATION TAP
   ========================================================= */
.summary-lookup-history-note{
  margin:-2px 0 8px;
  padding:6px 8px;
  border-radius:8px;
  background:#f6f8fb;
  color:#667085;
  font-size:10.5px;
  line-height:1.3;
  text-align:center;
}









html[data-theme="dark"] .summary-lookup-history-note{
  background:#111923;
  color:#aab4c1;
}




/* =========================================================
   v4.20.6 - TRA CỨU THEO 3 NHÓM
   ========================================================= */
.summary-lookup-period-tabs,
.summary-lookup-history-note{
  display:none !important;
}

.summary-lookup-sections{
  display:grid;
  gap:10px;
}

.summary-lookup-section{
  overflow:hidden;
  border:1px solid #dfe6ef;
  border-radius:12px;
  background:#fff;
}

.summary-lookup-section-head{
  padding:10px 11px 9px;
  border-bottom:1px solid #e8edf3;
  background:#f8fafc;
}

.summary-lookup-section-title{
  color:#1f2937;
  font-size:14px;
  line-height:1.2;
  font-weight:850;
}

.summary-lookup-section-subtitle{
  margin-top:2px;
  color:#7a8697;
  font-size:10.5px;
  line-height:1.25;
}

.summary-lookup-section > .summary-lookup-rows{
  padding:7px;
}

.summary-lookup-week-group + .summary-lookup-week-group{
  border-top:1px solid #edf1f5;
}

.summary-lookup-week-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:7px 9px;
  background:#f4f7fb;
  color:#40526a;
  font-size:10.5px;
  line-height:1.2;
  font-weight:800;
}

.summary-lookup-week-heading span{
  flex:0 0 auto;
  color:#8a96a7;
  font-size:9.5px;
  font-weight:700;
}

.summary-lookup-week-group .summary-lookup-rows{
  padding:6px 7px 7px;
}

@media (max-width:700px){
  .summary-lookup-sections{
    gap:8px;
  }

  .summary-lookup-section-head{
    padding:9px 10px 8px;
  }

  .summary-lookup-section-title{
    font-size:13.5px;
  }

  .summary-lookup-section-subtitle{
    font-size:10px;
  }

  .summary-lookup-week-heading{
    padding:6px 8px;
  }
}

html[data-theme="dark"] .summary-lookup-section{
  background:#151d27;
  border-color:#303b49;
}

html[data-theme="dark"] .summary-lookup-section-head,
html[data-theme="dark"] .summary-lookup-week-heading{
  background:#111923;
  border-color:#303b49;
}

html[data-theme="dark"] .summary-lookup-section-title{
  color:#eaf0f7;
}


/* =========================================================
   v4.20.7 - TRA CỨU: QUY CHẾ | TRANH THỦ | PHÉP
   ========================================================= */
.summary-lookup-type-tabs{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:4px;
  margin-bottom:8px;
  padding:4px;
  border:1px solid #dfe6ef;
  border-radius:11px;
  background:#eef2f7;
}

.summary-lookup-type-tab{
  min-width:0;
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:6px 4px;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  color:#647184;
  font:inherit;
  font-size:10.5px;
  line-height:1.1;
  font-weight:850;
  cursor:pointer;
}

.summary-lookup-type-tab b{
  min-width:17px;
  height:17px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 4px;
  border-radius:999px;
  background:#dfe6ef;
  color:#687689;
  font-size:9px;
  line-height:1;
  font-weight:850;
}

.summary-lookup-type-tab.active{
  background:#fff;
  color:var(--primary);
  border-color:#c8d6eb;
  box-shadow:0 1px 3px rgba(15,23,42,.06);
}

.summary-lookup-type-tab.active b{
  background:#e9f1ff;
  color:#2457a6;
}

.summary-lookup-selected-section{
  display:block;
}

.summary-lookup-selected-section .summary-lookup-section{
  margin:0;
}

@media (max-width:390px){
  .summary-lookup-type-tab{
    font-size:10px;
    gap:3px;
    padding-left:2px;
    padding-right:2px;
  }

  .summary-lookup-type-tab b{
    min-width:16px;
    height:16px;
    padding:0 3px;
    font-size:8.5px;
  }
}

html[data-theme="dark"] .summary-lookup-type-tabs{
  background:#111923;
  border-color:#303b49;
}

html[data-theme="dark"] .summary-lookup-type-tab{
  color:#a9b3c0;
}

html[data-theme="dark"] .summary-lookup-type-tab.active{
  background:#151d27;
  border-color:#35547c;
  color:#9fc1ff;
}

html[data-theme="dark"] .summary-lookup-type-tab b{
  background:#263342;
  color:#b5c0cd;
}

html[data-theme="dark"] .summary-lookup-type-tab.active b{
  background:#172a45;
  color:#a9c8ff;
}


/* =========================================================
   v4.20.9 - ĐỒNG BỘ TIÊU ĐỀ TẤT CẢ MODULE
   Kiểu Thông báo + icon outline + title lớn hơn ~2pt
   ========================================================= */

.module-unified-head{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
}

.module-heading{
  min-width:0;
  display:flex !important;
  align-items:center !important;
  gap:11px !important;
}

.module-heading-copy{
  min-width:0;
}

.module-head-icon{
  width:40px !important;
  height:40px !important;
  flex:0 0 40px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:13px !important;
  background:#eef4ff !important;
  color:#2457a6 !important;
}

.module-head-icon svg{
  width:22px !important;
  height:22px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:1.9 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}

/* 19px cũ -> 22px, xấp xỉ tăng 2pt */


/* Đồng bộ khoảng cách subtitle ngay dưới title */


/* Badge Quản trị nằm như dòng phụ, không đẩy lệch title */


/* Close button cũng đồng bộ kích thước giữa các module */
#weeklySummaryCard .admin-close-btn,
#approvalModuleCard .admin-close-btn{
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  min-height:42px !important;
  flex:0 0 42px !important;
  border:1px solid #d8e0ea !important;
  border-radius:14px !important;
  background:#f8fafc !important;
  color:#5b6778 !important;
}

/* Notification icon inherits the common geometry exactly */


html[data-theme="dark"] .module-head-icon{
  background:#172a45 !important;
  color:#a9c8ff !important;
}



@media (max-width:700px){
  .module-heading{
    gap:10px !important;
  }

  .module-head-icon{
    width:40px !important;
    height:40px !important;
    flex-basis:40px !important;
  }

  
}


/* =========================================================
   v4.20.11 - THU GỌN FORM TRANH THỦ / PHÉP
   ========================================================= */

/* Các lựa chọn trong đăng ký Phép sát nhau hơn, nhưng giữ nguyên cỡ chữ */
#phepField .permission-options{
  gap:6px !important;
  margin-top:6px !important;
}

#phepField .permission-option{
  padding:10px 14px !important;
  gap:12px !important;
}

#phepField .permission-line{
  min-height:36px !important;
}

#phepField .permission-option-title{
  margin-bottom:5px !important;
}

/* Ô nhập "thứ" gọn hơn theo chiều cao */
#phepField .permission-x{
  padding-top:5px !important;
  padding-bottom:5px !important;
  min-height:36px !important;
  height:36px !important;
}

/* Ô nhập nội dung Tranh thủ thấp hơn */
#detailField #detail{
  min-height:64px !important;
  height:64px !important;
  padding-top:9px !important;
  padding-bottom:9px !important;
}

/* Ô "Nội dung khác" của Phép thấp hơn */
#phepField .permission-other{
  min-height:58px !important;
  height:58px !important;
  margin-top:6px !important;
  padding-top:9px !important;
  padding-bottom:9px !important;
}

/* Khoảng cách ghi chú phía dưới cũng thu gọn nhẹ */
#phepField .hint,
#detailField > .hint{
  margin-top:5px !important;
}

@media (max-width:480px){
  #phepField .permission-options{
    gap:5px !important;
  }

  #phepField .permission-option{
    padding:9px 11px !important;
    gap:9px !important;
  }

  #phepField .permission-line{
    min-height:34px !important;
  }

  #phepField .permission-x{
    min-height:34px !important;
    height:34px !important;
    padding-top:4px !important;
    padding-bottom:4px !important;
  }

  #detailField #detail{
    min-height:60px !important;
    height:60px !important;
  }

  #phepField .permission-other{
    min-height:54px !important;
    height:54px !important;
  }
}


/* =========================================================
   v4.20.13 - PHÉP / NỘI DUNG KHÁC DẠNG PLACEHOLDER INLINE
   ========================================================= */
#phepField .permission-option-other{
  align-items:center !important;
}

#phepField .permission-option-other > input[type="radio"]{
  align-self:center !important;
  margin-top:0 !important;
}

#phepField .permission-option-main-other{
  display:flex;
  align-items:center;
  min-height:40px;
}

#phepField .permission-other-inline{
  width:100%;
  margin-top:0 !important;
  border:0 !important;
  outline:none !important;
  box-shadow:none !important;
  background:transparent !important;
  resize:none;
  min-height:40px !important;
  height:40px !important;
  padding:0 !important;
  font-size:var(--fs-option) !important;
  line-height:1.45 !important;
  color:var(--text) !important;
}

#phepField .permission-other-inline::placeholder{
  color:var(--muted) !important;
  opacity:1;
  font-weight:700;
}

#phepField .permission-option-other:focus-within{
  border-color:var(--primary) !important;
  box-shadow:0 0 0 2px rgba(26, 115, 232, .10);
}

#phepField .permission-option-other .permission-other-inline:focus{
  outline:none !important;
}

@media (max-width:480px){
  #phepField .permission-option-main-other{
    min-height:36px;
  }

  #phepField .permission-other-inline{
    min-height:36px !important;
    height:36px !important;
  }
}


/* =========================================================
   v5.02 - FIX NÚT X ĐÓNG MODULE
   ========================================================= */

/* Nút chỉ có icon vẫn giữ vuông 42x42 */


/*
  admin-close-btn có cả icon X + chữ ĐÓNG.
  Không được ép width=42px như nút icon-only.
*/
#weeklySummaryCard .admin-close-btn,
#approvalModuleCard .admin-close-btn{
  position:static !important;
  width:auto !important;
  min-width:88px !important;
  max-width:none !important;
  height:42px !important;
  min-height:42px !important;
  flex:0 0 auto !important;

  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;

  padding:0 13px !important;
  box-sizing:border-box !important;

  border:1px solid #d8e0ea !important;
  border-radius:14px !important;
  background:#f8fafc !important;
  color:#5b6778 !important;

  font-size:13px !important;
  line-height:1 !important;
  font-weight:800 !important;
  white-space:nowrap !important;
  overflow:visible !important;
  text-indent:0 !important;
}

/* Icon X phải nằm trong flow, không được thò ra ngoài */
#weeklySummaryCard .admin-close-btn::before,
#approvalModuleCard .admin-close-btn::before{
  position:static !important;
  inset:auto !important;
  transform:none !important;

  display:block !important;
  width:18px !important;
  height:18px !important;
  min-width:18px !important;
  flex:0 0 18px !important;

  margin:0 !important;
  padding:0 !important;
  background-color:currentColor !important;
}

/* Hover/active vẫn giữ gọn, không làm icon lệch */
#weeklySummaryCard .admin-close-btn:hover::before,
#approvalModuleCard .admin-close-btn:hover::before{
  transform:none !important;
}

@media (max-width:560px){
  #weeklySummaryCard .admin-close-btn,
#approvalModuleCard .admin-close-btn{
    min-width:84px !important;
    height:40px !important;
    min-height:40px !important;
    padding:0 11px !important;
    gap:6px !important;
    border-radius:13px !important;
    font-size:12.5px !important;
  }

  #weeklySummaryCard .admin-close-btn::before,
#approvalModuleCard .admin-close-btn::before{
    width:17px !important;
    height:17px !important;
    min-width:17px !important;
    flex-basis:17px !important;
  }
}

html[data-theme="dark"] #weeklySummaryCard .admin-close-btn,
html[data-theme="dark"] #approvalModuleCard .admin-close-btn{
  background:#151d27 !important;
  border-color:#303b49 !important;
  color:#b8c3d1 !important;
}


/* v5.03 - textarea auto grow */
#detailField #detail{
  min-height:64px !important;
  height:auto !important;
  overflow:hidden !important;
  resize:none !important;
}

#phepField .permission-option-other{
  align-items:flex-start !important;
}

#phepField .permission-option-other > input[type="radio"]{
  align-self:flex-start !important;
  margin-top:8px !important;
}

#phepField .permission-option-main-other{
  display:block !important;
  align-items:stretch !important;
  min-height:0 !important;
  width:100% !important;
}

#phepField .permission-other-inline{
  display:block !important;
  width:100% !important;
  min-height:40px !important;
  height:auto !important;
  max-height:none !important;
  overflow:hidden !important;
  resize:none !important;
  white-space:pre-wrap !important;
  overflow-wrap:anywhere !important;
  word-break:break-word !important;
}


/* =========================================================
   v5.04 - TÀI KHOẢN THƯỜNG: TỔNG HỢP + TRẠNG THÁI DUYỆT 1 HÀNG
   ========================================================= */













/* =========================================================
   v5.05 - NORMAL USER: TỔNG HỢP | TRẠNG THÁI DUYỆT
   BẮT BUỘC CÙNG 1 HÀNG NGANG
   ========================================================= */















/* =========================================================
   v5.07 - TRANH THỦ: Ô NHẬP XỔ NGAY DƯỚI Ô LỰA CHỌN
   ========================================================= */
#types > #detailField.tranh-thu-inline-v507{
  display:block;
  margin:-2px 0 7px !important;
  padding:0 !important;
}

#types > #detailField.tranh-thu-inline-v507.hidden{
  display:none !important;
}

#types > #detailField.tranh-thu-inline-v507 #detailTitle,
#types > #detailField.tranh-thu-inline-v507 #detailHint{
  display:none !important;
}

#types > #detailField.tranh-thu-inline-v507 #detail{
  display:block;
  width:100%;
  min-height:48px !important;
  height:auto !important;
  margin:0 !important;
  padding:11px 13px !important;
  border:1px solid #9fc4f6 !important;
  border-radius:10px !important;
  background:#f8fbff !important;
  color:var(--text) !important;
  font-size:var(--fs-body) !important;
  line-height:1.4 !important;
  overflow:hidden !important;
  resize:none !important;
  box-sizing:border-box !important;
}

#types > #detailField.tranh-thu-inline-v507 #detail:focus{
  outline:none !important;
  border-color:var(--primary) !important;
  box-shadow:0 0 0 2px rgba(26,115,232,.10) !important;
}

html[data-theme="dark"] #types > #detailField.tranh-thu-inline-v507 #detail{
  background:#111923 !important;
  border-color:#35547c !important;
}


/* =========================================================
   v5.09 HOTFIX - PHÉP CÙNG KHỐI, CHỈ DÙNG CSS
   Không di chuyển DOM => tránh đơ giao diện.
   ========================================================= */

/* Khi Phép được chọn, bỏ khoảng hở giữa khối loại đăng ký và phần lựa chọn Phép. */
.field:has(#types input[name="regType"][value="Phép"]:checked){
  margin-bottom:0 !important;
}

/* Card PHÉP là phần đầu của cùng một khối. */
.field:has(#types input[name="regType"][value="Phép"]:checked)
#types .type:has(input[name="regType"][value="Phép"]){
  margin-bottom:0 !important;
  border-color:#b8cff1 !important;
  border-bottom-color:transparent !important;
  border-radius:10px 10px 0 0 !important;
  background:#f8fbff !important;
}

/* phepField nằm nguyên vị trí DOM cũ, chỉ kéo sát lên và nối viền. */
#phepField:not(.hidden){
  margin-top:0 !important;
  margin-bottom:18px !important;
  padding:7px 8px 8px !important;
  border:1px solid #b8cff1 !important;
  border-top:0 !important;
  border-radius:0 0 10px 10px !important;
  background:#f8fbff !important;
}

/* Bỏ tiêu đề lặp "Nội dung phép" để nhìn như phần thân của card Phép. */
#phepField:not(.hidden) .title{
  display:none !important;
}

#phepField:not(.hidden) .permission-options{
  gap:5px !important;
  margin:0 !important;
}

#phepField:not(.hidden) .permission-option{
  margin:0 !important;
  padding:9px 11px !important;
  border:1px solid #d9e4f2 !important;
  border-radius:8px !important;
  background:#fff !important;
}

#phepField:not(.hidden) .permission-option:has(input[type="radio"]:checked){
  border-color:#8fb8ee !important;
  background:#f1f7ff !important;
}

#phepField:not(.hidden) .hint{
  margin:6px 3px 1px !important;
  padding:0 !important;
  font-size:10.5px !important;
  line-height:1.3 !important;
}

/* Nội dung khác tiếp tục auto-grow từ v5.03/v5.07. */
#phepField:not(.hidden) .permission-other-inline{
  height:auto !important;
  max-height:none !important;
  overflow:hidden !important;
  resize:none !important;
}

html[data-theme="dark"]
.field:has(#types input[name="regType"][value="Phép"]:checked)
#types .type:has(input[name="regType"][value="Phép"]),
html[data-theme="dark"] #phepField:not(.hidden){
  background:#111923 !important;
  border-color:#35547c !important;
}

html[data-theme="dark"] #phepField:not(.hidden) .permission-option{
  background:#151d27 !important;
  border-color:#303f52 !important;
}

@media (max-width:480px){
  #phepField:not(.hidden){
    padding:6px 7px 7px !important;
  }

  #phepField:not(.hidden) .permission-option{
    padding:8px 9px !important;
  }
}


/* =========================================================
   TRANH THỦ: MỘT KHỐI, MỘT KHUNG VIỀN
   ========================================================= */

/* Khi được chọn, chính card Tranh thủ nở cao xuống dưới. */
#types .type.tranh-thu-expanded-v510{
  align-items:flex-start !important;
  border-color:#8fb8ee !important;
  background:#f8fbff !important;
  padding-top:13px !important;
  padding-bottom:13px !important;
}

/* Radio căn theo phần đầu card, không nằm giữa toàn khối cao. */
#types .type.tranh-thu-expanded-v510 > input[type="radio"]{
  align-self:flex-start !important;
  margin-top:3px !important;
}

/* Main chiếm toàn bộ phần còn lại. */
#types .type.tranh-thu-expanded-v510 .type-main{
  min-width:0 !important;
  width:100% !important;
}

/* Khi mở Tranh thủ, bỏ hẳn "Đang mở 24/24". */
#types .type.tranh-thu-expanded-v510 .status{
  display:none !important;
}

/* Tiêu đề Tranh thủ nằm ngay trên nội dung nhập. */
#types .type.tranh-thu-expanded-v510 .type-name{
  margin-bottom:5px !important;
}

/* detailField nằm trong card, không có khung riêng. */
#types .type.tranh-thu-expanded-v510
#detailField.tranh-thu-inside-card-v510{
  display:block !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
}

/* Không hiện label/hint lặp lại trong card. */
#types .type.tranh-thu-expanded-v510
#detailField.tranh-thu-inside-card-v510 > #detailTitle,
#types .type.tranh-thu-expanded-v510
#detailField.tranh-thu-inside-card-v510 > #detailHint{
  display:none !important;
}

/* Chỉ còn 1 viền ngoài của card Tranh thủ.
   Textarea không có border/background riêng. */
#types .type.tranh-thu-expanded-v510
#detailField.tranh-thu-inside-card-v510 #detail{
  display:block !important;
  width:100% !important;
  min-height:34px !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  outline:none !important;
  box-shadow:none !important;
  background:transparent !important;
  color:var(--text) !important;
  font-size:var(--fs-body) !important;
  line-height:1.42 !important;
  overflow:hidden !important;
  resize:none !important;
  box-sizing:border-box !important;
}

/* Focus vẫn chỉ nhấn viền ngoài của cả card, không sinh viền thứ hai. */
#types .type.tranh-thu-expanded-v510:focus-within{
  border-color:var(--primary) !important;
  box-shadow:0 0 0 2px rgba(26,115,232,.08) !important;
}

html[data-theme="dark"] #types .type.tranh-thu-expanded-v510{
  background:#111923 !important;
  border-color:#4f78ae !important;
}

@media (max-width:480px){
  #types .type.tranh-thu-expanded-v510{
    padding-top:11px !important;
    padding-bottom:11px !important;
  }

  #types .type.tranh-thu-expanded-v510
  #detailField.tranh-thu-inside-card-v510 #detail{
    min-height:32px !important;
  }
}


/* =========================================================
   v5.11 - PHÉP: BỎ BOX TRẮNG CỦA TỪNG LỰA CHỌN
   Tất cả lựa chọn nằm trong cùng một khối Phép.
   ========================================================= */
#phepField:not(.hidden) .permission-options{
  gap:0 !important;
  margin:0 !important;
}

#phepField:not(.hidden) .permission-option{
  margin:0 !important;
  padding:10px 9px !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

/* Chỉ dùng đường phân cách mảnh giữa các dòng, không tạo box riêng. */
#phepField:not(.hidden) .permission-option + .permission-option{
  border-top:1px solid rgba(91, 126, 168, .18) !important;
}

/* Chọn một mục vẫn không sinh box trắng/xanh riêng. */
#phepField:not(.hidden) .permission-option:has(input[type="radio"]:checked){
  border-left:0 !important;
  border-right:0 !important;
  border-bottom:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

/* Focus ở Nội dung khác không tạo khung riêng quanh dòng. */
#phepField:not(.hidden) .permission-option-other:focus-within{
  border-left:0 !important;
  border-right:0 !important;
  border-bottom:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

/* Ô "thứ" vẫn giữ viền để nhận biết nơi nhập dữ liệu. */
#phepField:not(.hidden) .permission-x{
  background:rgba(255,255,255,.72) !important;
}

/* Nội dung khác giữ kiểu inline, không có khung input riêng. */
#phepField:not(.hidden) .permission-other-inline{
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

html[data-theme="dark"] #phepField:not(.hidden) .permission-option,
html[data-theme="dark"] #phepField:not(.hidden) .permission-option:has(input[type="radio"]:checked),
html[data-theme="dark"] #phepField:not(.hidden) .permission-option-other:focus-within{
  background:transparent !important;
  box-shadow:none !important;
}

html[data-theme="dark"] #phepField:not(.hidden) .permission-option + .permission-option{
  border-top-color:rgba(150, 175, 205, .18) !important;
}

html[data-theme="dark"] #phepField:not(.hidden) .permission-x{
  background:rgba(255,255,255,.05) !important;
}


/* =========================================================
   v5.12 - PHÂN CẤP THỊ GIÁC: CHA -> CON
   Mục chính: Quy chế / Tranh thủ / Phép
   Mục con: nội dung Tranh thủ / các lựa chọn Phép
   ========================================================= */

/* ---------- TRANH THỦ: phần con nằm trong chính card cha ---------- */

/* Card cha vẫn là cấp chính. */
#types .type.tranh-thu-expanded-v510{
  position:relative !important;
}

/* Phần nội dung con: thụt vào + vạch dẫn dọc. */
#types .type.tranh-thu-expanded-v510
#detailField.tranh-thu-inside-card-v510{
  position:relative !important;
  margin-top:7px !important;
  margin-left:2px !important;
  padding-left:18px !important;
}

/* Vạch dẫn cho biết đây là nội dung con của Tranh thủ. */
#types .type.tranh-thu-expanded-v510
#detailField.tranh-thu-inside-card-v510::before{
  content:"";
  position:absolute;
  left:2px;
  top:1px;
  bottom:1px;
  width:2px;
  border-radius:2px;
  background:rgba(26,115,232,.34);
}

/* Nhãn nhỏ để mắt hiểu ngay đây là phần nội dung con. */
#types .type.tranh-thu-expanded-v510
#detailField.tranh-thu-inside-card-v510::after{
  content:"Nội dung";
  display:block;
  position:relative;
  margin:0 0 3px 0;
  color:var(--muted);
  font-size:10px;
  line-height:1.15;
  font-weight:700;
  letter-spacing:.02em;
  text-transform:uppercase;
}

/* Nội dung nhập nhỏ nhẹ hơn tiêu đề cha. */
#types .type.tranh-thu-expanded-v510
#detailField.tranh-thu-inside-card-v510 #detail{
  font-size:calc(var(--fs-body) - 1px) !important;
  font-weight:500 !important;
  line-height:1.4 !important;
}

/* ---------- PHÉP: card cha + nhóm con thụt vào ---------- */

/* Khi Phép được chọn, trạng thái "Đang mở" biến mất để nhường chỗ cho phần con. */
.field:has(#types input[name="regType"][value="Phép"]:checked)
#types .type:has(input[name="regType"][value="Phép"]) .status{
  display:none !important;
}

/* Card Phép vẫn là cấp chính, rõ hơn phần con. */
.field:has(#types input[name="regType"][value="Phép"]:checked)
#types .type:has(input[name="regType"][value="Phép"]){
  border-bottom-color:#b8cff1 !important;
  border-radius:10px !important;
  background:#f8fbff !important;
}

/* Phần lựa chọn con thụt vào rõ ràng, không còn ngang cấp với card Phép. */
#phepField:not(.hidden){
  position:relative !important;
  width:calc(100% - 34px) !important;
  margin:5px 0 18px 34px !important;
  padding:18px 0 0 16px !important;

  /* Bỏ khung lớn bao ngoài nhóm con; chỉ giữ vạch dẫn dọc. */
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
}

/* Vạch dẫn dọc của nhánh con Phép. */
#phepField:not(.hidden)::before{
  content:"";
  position:absolute;
  left:1px;
  top:0;
  bottom:4px;
  width:2px;
  border-radius:2px;
  background:rgba(26,115,232,.34);
}

/* Nhãn nhỏ "Lựa chọn" đặt ở đầu nhánh con. */
#phepField:not(.hidden)::after{
  content:"Lựa chọn";
  position:absolute;
  left:16px;
  top:0;
  color:var(--muted);
  font-size:10px;
  line-height:1.15;
  font-weight:700;
  letter-spacing:.02em;
  text-transform:uppercase;
}

/* Các dòng con giữ sạch, không box riêng. */
#phepField:not(.hidden) .permission-option{
  min-height:42px !important;
  padding:8px 7px !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}

/* Chỉ phân cách rất nhẹ giữa các mục con. */
#phepField:not(.hidden) .permission-option + .permission-option{
  border-top:1px solid rgba(91,126,168,.14) !important;
}

/* Radio con nhỏ hơn radio của mục Phép để tạo cấp bậc. */
#phepField:not(.hidden) .permission-option input[type="radio"]{
  width:17px !important;
  height:17px !important;
  flex:0 0 17px !important;
}

/* Chữ mục con nhẹ và nhỏ hơn mục cha. */
#phepField:not(.hidden) .permission-line,
#phepField:not(.hidden) .permission-option-title,
#phepField:not(.hidden) .permission-other-inline{
  font-size:calc(var(--fs-option) - 1px) !important;
  font-weight:600 !important;
}

/* Ô nhập thứ là control cấp 3 nên nhỏ gọn hơn. */
#phepField:not(.hidden) .permission-x{
  width:62px !important;
  min-width:62px !important;
  max-width:62px !important;
  flex:0 0 62px !important;
  min-height:32px !important;
  height:32px !important;
  padding:4px 6px !important;
  border-radius:7px !important;
  font-size:14px !important;
}

/* Điều chỉnh grid của dòng để hợp ô nhập nhỏ hơn. */
#phepField:not(.hidden) .permission-line{
  grid-template-columns:minmax(0,1fr) 62px !important;
  column-gap:7px !important;
  min-height:34px !important;
}

/* Khi chọn một mục con: chỉ nhấn bằng màu chữ / nền rất nhẹ,
   không biến nó thành một card ngang cấp mới. */
#phepField:not(.hidden) .permission-option:has(input[type="radio"]:checked){
  background:rgba(26,115,232,.045) !important;
  border-radius:6px !important;
}

/* Nội dung khác vẫn là cấp con, tự nở/co. */
#phepField:not(.hidden) .permission-option-other:focus-within{
  background:rgba(26,115,232,.035) !important;
  border-radius:6px !important;
  box-shadow:none !important;
}

/* Hint là cấp thấp nhất, thụt theo nhánh con. */
#phepField:not(.hidden) .hint{
  margin:6px 5px 0 !important;
  font-size:10px !important;
  opacity:.88;
}

/* ---------- DARK MODE ---------- */
html[data-theme="dark"]
#types .type.tranh-thu-expanded-v510
#detailField.tranh-thu-inside-card-v510::before,
html[data-theme="dark"]
#phepField:not(.hidden)::before{
  background:rgba(95,154,230,.48);
}

html[data-theme="dark"] #phepField:not(.hidden){
  background:transparent !important;
}

html[data-theme="dark"]
#phepField:not(.hidden) .permission-option:has(input[type="radio"]:checked){
  background:rgba(79,120,174,.12) !important;
}

/* ---------- MOBILE ---------- */
@media (max-width:480px){
  #types .type.tranh-thu-expanded-v510
  #detailField.tranh-thu-inside-card-v510{
    padding-left:15px !important;
  }

  #phepField:not(.hidden){
    width:calc(100% - 26px) !important;
    margin-left:26px !important;
    padding-left:14px !important;
  }

  #phepField:not(.hidden)::after{
    left:14px;
  }

  #phepField:not(.hidden) .permission-option{
    padding:7px 4px !important;
  }

  #phepField:not(.hidden) .permission-option input[type="radio"]{
    width:16px !important;
    height:16px !important;
    flex:0 0 16px !important;
  }

  #phepField:not(.hidden) .permission-x{
    width:58px !important;
    min-width:58px !important;
    max-width:58px !important;
    flex-basis:58px !important;
  }

  #phepField:not(.hidden) .permission-line{
    grid-template-columns:minmax(0,1fr) 58px !important;
  }
}


/* =========================================================
   v5.13 - THIẾT KẾ LẠI "HÌNH THỨC ĐĂNG KÝ": MƯỢT, HIỆN ĐẠI, PHÂN CẤP RÕ
   Toàn bộ khối này chỉ THÊM (transition, radio tự vẽ, mở/đóng có animation).
   Không sửa giá trị nào của các khối v4.20.x-v5.12 phía trên — chúng vẫn
   quyết định layout/màu/khoảng cách; khối này chỉ khiến các thay đổi đó
   diễn ra mượt thay vì bật/tắt đột ngột, và bổ sung radio + thanh nhấn mới.
   ========================================================= */

/* ---------- 1) Radio tự vẽ: viền tròn + chấm giữa "nảy" khi chọn ---------- */
.types .type input[type="radio"],
.permission-option input[type="radio"]{
  appearance:none;
  -webkit-appearance:none;
  position:relative;
  margin:0;
  border:2px solid #c7d2e0;
  border-radius:50%;
  background:#fff;
  transition:border-color .18s ease, transform .12s ease, box-shadow .18s ease;
}

.types .type input[type="radio"]::before,
.permission-option input[type="radio"]::before{
  content:"";
  position:absolute;
  inset:0;
  margin:auto;
  width:0;
  height:0;
  border-radius:50%;
  background:var(--primary);
  transition:width .2s cubic-bezier(.34,1.56,.64,1), height .2s cubic-bezier(.34,1.56,.64,1);
}

.types .type input[type="radio"]:checked,
.permission-option input[type="radio"]:checked{
  border-color:var(--primary);
}

.types .type input[type="radio"]:checked::before{
  width:10px;
  height:10px;
}

.permission-option input[type="radio"]:checked::before{
  width:8px;
  height:8px;
}

.types .type input[type="radio"]:active,
.permission-option input[type="radio"]:active{
  transform:scale(.9);
}

.types .type.off input[type="radio"]{
  border-color:#d7dbe0;
  cursor:not-allowed;
}

.types .type.off input[type="radio"]::before{
  background:#9aa3af;
}

.types .type input[type="radio"]:focus-visible,
.permission-option input[type="radio"]:focus-visible{
  outline:2px solid var(--primary);
  outline-offset:2px;
}

html[data-theme="dark"] .types .type input[type="radio"],
html[data-theme="dark"] .permission-option input[type="radio"]{
  background:#0f141b;
  border-color:#3b4655;
}

html[data-theme="dark"] .types .type.off input[type="radio"]{
  border-color:#303946;
}

html[data-theme="dark"] .types .type.off input[type="radio"]::before{
  background:#5b6472;
}


/* ---------- 2) Card mục lớn: hover nhẹ + thanh nhấn bên trái khi được chọn ---------- */
.types .type{
  position:relative;
  transition:border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .12s ease;
}

.types .type:not(.off):hover{
  border-color:#b9c8dd;
  box-shadow:0 2px 10px rgba(15,23,42,.07);
}

.types .type:not(.off):active{
  transform:scale(.997);
}

.types .type::before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  bottom:10px;
  width:3px;
  border-radius:0 3px 3px 0;
  background:var(--primary);
  opacity:0;
  transform:scaleY(.4);
  transform-origin:center;
  transition:opacity .2s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
  pointer-events:none;
}

.types .type:has(input[type="radio"]:checked)::before{
  opacity:1;
  transform:scaleY(1);
}

html[data-theme="dark"] .types .type:not(.off):hover{
  border-color:#3c5c8c;
  box-shadow:0 2px 10px rgba(0,0,0,.28);
}


/* ---------- 3) Khối PHÉP: xổ ra/thu lại mượt bằng CSS Grid, không giật ---------- */
#phepField{
  display:grid;
  grid-template-rows:1fr;
  overflow:hidden;
  opacity:1;
  transition:
    grid-template-rows .34s cubic-bezier(.4,0,.2,1),
    opacity .26s ease,
    margin .34s cubic-bezier(.4,0,.2,1),
    padding .34s cubic-bezier(.4,0,.2,1),
    width .34s cubic-bezier(.4,0,.2,1),
    border-color .2s ease;
}

#phepField.hidden{
  display:grid !important;
  grid-template-rows:0fr !important;
  opacity:0;
  margin:0 !important;
  padding:0 !important;
  pointer-events:none;
}

#phepField > .phep-accordion-body{
  min-height:0;
  overflow:hidden;
}

/* Vạch dẫn dọc mềm hơn: mờ dần ở hai đầu thay vì một dải phẳng cứng. */
#phepField:not(.hidden)::before{
  background:linear-gradient(
    to bottom,
    rgba(11,87,208,0) 0%,
    rgba(11,87,208,.4) 14%,
    rgba(11,87,208,.4) 86%,
    rgba(11,87,208,0) 100%
  ) !important;
}

/* Từng dòng lựa chọn con: hover + đổi nền có mượt, không bật/tắt đột ngột. */
#phepField:not(.hidden) .permission-option{
  cursor:pointer;
  transition:background-color .18s ease, border-radius .18s ease;
}

#phepField:not(.hidden) .permission-option:hover{
  background:rgba(11,87,208,.045) !important;
  border-radius:6px !important;
}

html[data-theme="dark"] #phepField:not(.hidden)::before{
  background:linear-gradient(
    to bottom,
    rgba(138,180,248,0) 0%,
    rgba(138,180,248,.5) 14%,
    rgba(138,180,248,.5) 86%,
    rgba(138,180,248,0) 100%
  ) !important;
}

html[data-theme="dark"] #phepField:not(.hidden) .permission-option:hover{
  background:rgba(138,180,248,.08) !important;
}


/* ---------- 4) Khối TRANH THỦ: nội dung xổ ra có fade + trượt nhẹ ---------- */
#detailField.tranh-thu-inline-v507{
  opacity:1;
  transform:translateY(0);
  transition:opacity .26s ease, transform .26s cubic-bezier(.4,0,.2,1);
}

#detailField.tranh-thu-inline-v507.hidden{
  display:block !important;
  opacity:0;
  transform:translateY(-6px);
  pointer-events:none;
}

#types .type.tranh-thu-expanded-v510{
  transition:background-color .2s ease, border-color .2s ease, padding .2s ease;
}


/* ---------- 5) Người dùng giảm hiệu ứng chuyển động: tắt animation ---------- */
@media (prefers-reduced-motion: reduce){
  .types .type,
.types .type::before,
.types .type input[type="radio"],
.types .type input[type="radio"]::before,
.permission-option input[type="radio"],
.permission-option input[type="radio"]::before,
#phepField,
#phepField:not(.hidden) .permission-option,
#detailField.tranh-thu-inline-v507,
#types .type.tranh-thu-expanded-v510{
    transition-duration:.001ms !important;
  }
}


/* v5.14 - dropdown thứ + ngày/tháng cho Phép */
#phepField:not(.hidden) .permission-line{
  grid-template-columns:minmax(0,1fr) 132px !important;
  column-gap:8px !important;
}
#phepField:not(.hidden) .permission-weekday-select-v514{
  width:132px !important; min-width:132px !important; max-width:132px !important;
  height:34px !important; min-height:34px !important;
  padding:4px 24px 4px 8px !important;
  border:1px solid #b9c6d5 !important; border-radius:8px !important;
  background:rgba(255,255,255,.82) !important; color:var(--text) !important;
  font-size:13px !important; font-weight:650 !important; cursor:pointer !important;
  appearance:auto !important; -webkit-appearance:menulist !important;
}
#phepField:not(.hidden) .permission-weekday-select-v514:focus{
  outline:none !important; border-color:var(--primary) !important;
  box-shadow:0 0 0 2px rgba(26,115,232,.10) !important;
}
#phepField:not(.hidden) .permission-option:has(.permission-weekday-select-v514:focus){
  background:rgba(26,115,232,.05) !important; border-radius:6px !important;
}
html[data-theme="dark"] #phepField:not(.hidden) .permission-weekday-select-v514{
  background:rgba(255,255,255,.06) !important; border-color:#46566b !important;
}
@media (max-width:480px){
  #phepField:not(.hidden) .permission-line{ grid-template-columns:minmax(0,1fr) 118px !important; column-gap:6px !important; }
  #phepField:not(.hidden) .permission-weekday-select-v514{
    width:118px !important; min-width:118px !important; max-width:118px !important;
    padding-left:6px !important; padding-right:20px !important; font-size:12px !important;
  }
  #phepField:not(.hidden) .permission-line span{
    white-space:normal !important; overflow:visible !important; text-overflow:clip !important; line-height:1.25 !important;
  }
}


/* =========================================================
   v5.15 - TEXTAREA AUTO-GROW MƯỢT NHƯ KHUNG CHAT
   ========================================================= */
#detailField #detail,
#phepField #phepOther{
  box-sizing:border-box !important;
  overflow-y:hidden !important;
  resize:none !important;
  transition:
    height .16s cubic-bezier(.22,.61,.36,1),
    border-color .15s ease,
    box-shadow .15s ease !important;
  will-change:height;
}

/* Tranh thủ: gọn khi 1 dòng, nở xuống dưới khi xuống dòng/wrap. */
#types .type.tranh-thu-expanded-v510
#detailField.tranh-thu-inside-card-v510 #detail{
  min-height:44px !important;
  max-height:none !important;
  overflow-y:hidden !important;
}

/* Nội dung khác của Phép cũng dùng cùng cơ chế. */
#phepField .permission-other-inline,
#phepField:not(.hidden) .permission-other-inline{
  min-height:34px !important;
  max-height:none !important;
  overflow-y:hidden !important;
  resize:none !important;
}

/* Người dùng bật Reduce Motion thì vẫn auto-grow nhưng không animate. */
@media (prefers-reduced-motion: reduce){
  #detailField #detail,
#phepField #phepOther{
    transition:
      border-color .15s ease,
      box-shadow .15s ease !important;
  }
}


/* =========================================================
   QC297 - LAYOUT WIDTH SAFETY
   Không khóa gesture ngang ở cấp document/module.
   Chỉ giữ giới hạn kích thước để nội dung không vô tình rộng hơn viewport.
   ========================================================= */
html,
body{
  width:100% !important;
  max-width:100% !important;
}

body{
  position:relative;
}

/* Khung app không được rộng hơn viewport. */
.wrap,
main,
.card,
.identity,
#app{
  max-width:100% !important;
  box-sizing:border-box !important;
}

/* Các module/panel giữ kích thước trong viewport; không khóa gesture ngang. */
#weeklySummaryCard,
#approvalModuleCard{
  max-width:100vw !important;
  box-sizing:border-box !important;
}

/* Tab con tự quản lý vùng cuộn ngang tại modules/subtabs/subtabs.css/js. */

/* Các khu vực con thông thường của Báo cáo cũng không làm cả module trượt ngang. */



/* Mobile full-screen modules: chỉ cố định kích thước, không khóa ngang. */
@media (max-width:700px){
  #weeklySummaryCard,
#approvalModuleCard{
    left:0 !important;
    right:0 !important;
    width:100vw !important;
    max-width:100vw !important;
  }

  .wrap{
    width:100% !important;
    max-width:100vw !important;
  }
}


/* =========================================================
   v5.21 - SMART FOCUS / SELECTED STATE
   ========================================================= */

/* Trạng thái chọn rõ hơn nhưng không phóng/nhảy layout. */
.types .type:has(> input[type="radio"]:checked){
  border-color:#8eb9ef !important;
  background:linear-gradient(
    90deg,
    rgba(26,115,232,.055) 0%,
    rgba(26,115,232,.018) 100%
  ) !important;
  box-shadow:0 2px 9px rgba(26,115,232,.07) !important;
}

/* Vạch trái gọn hơn, tránh cảm giác "focus" quá gắt. */
.types .type:has(> input[type="radio"]:checked)::before{
  width:3px !important;
  top:12px !important;
  bottom:12px !important;
  opacity:.88 !important;
}

/* Không dùng scale ở card khi chạm vì tạo cảm giác giao diện bị rung. */
.types .type:not(.off):active{
  transform:none !important;
}

/* Radio vẫn phản hồi nhẹ nhưng không co quá mạnh. */
.types .type input[type="radio"]:active,
.permission-option input[type="radio"]:active{
  transform:scale(.96) !important;
}

/* Touch không để lại focus ring kiểu desktop.
   Keyboard vẫn có :focus-visible để đảm bảo accessibility. */
@media (hover:none) and (pointer:coarse){
  .types .type input[type="radio"]:focus:not(:focus-visible),
.permission-option input[type="radio"]:focus:not(:focus-visible){
    outline:none !important;
    box-shadow:none !important;
  }
}

html[data-theme="dark"]
.types .type:has(> input[type="radio"]:checked){
  background:linear-gradient(
    90deg,
    rgba(91,145,219,.14) 0%,
    rgba(91,145,219,.045) 100%
  ) !important;
  border-color:#4f78ae !important;
}


/* =========================================================
   v5.23 - SMART REGISTRATION HINTS
   ========================================================= */
.status.suggest{
  color:#0d6b3a !important;
  background:#e7f7ec !important;
  max-width:100%;
  white-space:normal;
  line-height:1.25;
}

.status.warn{
  color:#a65700 !important;
  background:#fff1d8 !important;
  max-width:100%;
  white-space:normal;
  line-height:1.25;
}

.status.info{
  color:#4f5f73 !important;
  background:#edf1f5 !important;
  max-width:100%;
  white-space:normal;
  line-height:1.25;
}

.status.loading{
  color:#52677f !important;
  background:#eef3f8 !important;
  max-width:100%;
  white-space:normal;
  line-height:1.25;
}

/* =========================================================
   v5.25 - LỜI NHẮC NGẮN, TRUNG TÍNH, DỄ CHỊU
   ========================================================= */
.status.suggest{
  color:#176b43 !important;
  background:#ebf7ef !important;
}

.status.warn{
  color:#805b22 !important;
  background:#fff7e9 !important;
}

.status.info,
.status.loading{
  color:#59697a !important;
  background:#f1f4f7 !important;
}

html[data-theme="dark"] .status.suggest{
  color:#86e0aa !important;
  background:rgba(44,128,78,.24) !important;
}

html[data-theme="dark"] .status.warn{
  color:#ffc77b !important;
  background:rgba(169,94,0,.22) !important;
}

html[data-theme="dark"] .status.info,
html[data-theme="dark"] .status.loading{
  color:#c5d0dd !important;
  background:rgba(103,122,145,.18) !important;
}



/* =========================================================
   v5.26 - INLINE HINTS ĐỒNG NHẤT DESKTOP / IPHONE
   ========================================================= */

/* Bỏ pseudo label cũ để không bị NỘI DUNG/LỰA CHỌN lặp 2 lần. */
#types .type.tranh-thu-expanded-v510
#detailField.tranh-thu-inside-card-v510::after,
#phepField:not(.hidden)::after{
  content:none !important;
  display:none !important;
}

/* Nhãn thật */
.tranh-thu-subtitle-v526,
.phep-subtitle-v526{
  color:var(--muted);
  font-size:10px;
  line-height:1.15;
  font-weight:700;
  letter-spacing:.02em;
  text-transform:uppercase;
}

.tranh-thu-subtitle-v526{
  display:none;
}

#types .type.tranh-thu-expanded-v510
#detailField.tranh-thu-inside-card-v510
.tranh-thu-subtitle-v526{
  display:block;
  margin:0 0 5px 0;
}

.phep-subtitle-v526{
  display:none;
}

#phepField:not(.hidden) .phep-subtitle-v526{
  display:block;
  margin:0 0 6px 0;
}

/* Registration message visual styles moved to core/messages/messages.css. */

/* Pseudo label trước đây dùng padding-top 18px; với label thật thì bỏ. */


html[data-theme="dark"]
.registration-inline-hint-v526.suggest{
  color:#86e0aa;
  background:rgba(44,128,78,.24);
}

html[data-theme="dark"]
.registration-inline-hint-v526.warn{
  color:#ffc77b;
  background:rgba(169,94,0,.22);
}

html[data-theme="dark"]
.registration-inline-hint-v526.info,
html[data-theme="dark"]
.registration-inline-hint-v526.loading{
  color:#c5d0dd;
  background:rgba(103,122,145,.18);
}


/* =========================================================
   v5.28 - LỜI NHẮC THAY VỊ TRÍ NHÃN PHỤ
   ========================================================= */

/* Không còn NỘI DUNG / LỰA CHỌN. */
.tranh-thu-subtitle-v526,
.phep-subtitle-v526{
  display:none !important;
}

/* Lời nhắc là phần tử đầu tiên của nội dung con. */
#types .type.tranh-thu-expanded-v510
#detailField.tranh-thu-inside-card-v510
.registration-inline-hint-v526,
#phepField:not(.hidden)
.registration-inline-hint-v526{
  margin-top:0 !important;
  margin-bottom:7px !important;
}

/* Nếu không có lời nhắc thì không để lại khoảng trống. */
.registration-inline-hint-v526.hidden{
  display:none !important;
  margin:0 !important;
  padding:0 !important;
}

/* Phép không còn dòng hướng dẫn cuối khối. */
#phepField:not(.hidden) > .phep-accordion-body > .hint{
  display:none !important;
}

/* Giữ khối con gọn khi không có lời nhắc. */
#phepField:not(.hidden){
  padding-top:0 !important;
}

#types .type.tranh-thu-expanded-v510
#detailField.tranh-thu-inside-card-v510{
  padding-top:0 !important;
}


/* =========================================================
   v5.31 - STABLE NAME FOCUS
   ========================================================= */
#formCard,
.name-field{
  scroll-margin-top:10px;
}

/* Chỉ nhấn nhẹ ô đang nhập, không scale/transform toàn card. */
#formCard .name-field #name:focus{
  border-color:var(--primary) !important;
  box-shadow:0 0 0 2px rgba(26,115,232,.08) !important;
}


/* =========================================================
   REPORT TABLE - horizontal scroll area
   ========================================================= */

/* Bảng dữ liệu có vùng cuộn ngang riêng khi nội dung rộng. */


/* Bảng giữ min-width hiện có để thực sự có không gian scroll ngang. */


/* Bảng/PDF và tab con dùng cuộn ngang riêng khi cần. */


/* =========================================================
   v5.37 - THÔNG BÁO: CHỮ LỚN HƠN, GỌN HƠN, TẬN DỤNG KHÔNG GIAN
   ========================================================= */







/* Desktop/tablet cũng tăng nhẹ khả năng đọc. */














/* Mobile: ưu tiên khả năng đọc nhưng không tăng chiều cao vô ích. */


/* Dark mode tương ứng với card mới. */



/* =========================================================
   v5.45 - DESKTOP: KHÔI PHỤC BỀ RỘNG HỢP LÝ + CUỘN CHUỘT
   ========================================================= */

/*
  v5.19 khóa trượt ngang bằng:
    .wrap { max-width:100% !important; }
  Quy tắc đó vô tình ghi đè max-width:760px gốc trên máy tính,
  làm toàn bộ app kéo giãn theo màn hình 16:9/2K/4K.
  Chỉ khôi phục giới hạn này trên desktop; mobile giữ nguyên.
*/
@media (min-width:701px){
  html{
    width:100% !important;
    max-width:100% !important;
    overflow-y:auto !important;
    overscroll-behavior-y:auto !important;
    scrollbar-gutter:stable;
  }

  body{
    width:100% !important;
    max-width:none !important;
    min-height:100vh !important;
    overflow-y:visible !important;
    overscroll-behavior-y:auto !important;
  }

  main.wrap,
.wrap{
    width:calc(100% - 28px) !important;
    max-width:760px !important;
    min-height:0 !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding:22px 14px 44px !important;
    overflow:visible !important;
  }

  #app{
    width:100% !important;
    max-width:100% !important;
    overflow:visible !important;
  }

  /* Card/module trong trang bám theo khung 760px, không tràn theo viewport. */
  .card,
.identity,
#formCard,
#identityCard,
#weeklySummaryCard,
#approvalModuleCard{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
  }

  /*
    Desktop dùng scroll của document.
    Không giữ bất kỳ overflow-y:hidden nào ở shell chính.
  */
  main.wrap,
main.wrap > #app{
    overflow-y:visible !important;
  }
}

/* Mobile/PWA vẫn dùng layout hiện tại, không bị ảnh hưởng bởi fix desktop. */
@media (max-width:700px){
  main.wrap,
.wrap{
    width:100% !important;
    max-width:100vw !important;
  }
}


/* =========================================================
   v5.47 - DESKTOP WHEEL / SCROLL CHAIN FIX
   ========================================================= */
@media (min-width:701px){
  /*
    Main page/card chỉ là nội dung của document, không phải scroll-container.
    Điều này tránh Chrome giữ wheel trong card rồi không truyền ra trang.
  */
  main.wrap,
main.wrap > #app,
#identityCard,
#formCard{
    overflow-x:visible !important;
    overflow-y:visible !important;
    overscroll-behavior-y:auto !important;
  }

  /* Các list/panel thật sự cần scroll riêng vẫn được giữ nguyên. */
  .name-suggestions,
/*
    Wheel trên input/button/card vẫn phải cuộn trang như web desktop thông thường.
    touch-action không liên quan chuột nhưng để auto giúp tránh các rule mobile
    cũ ảnh hưởng thiết bị Windows có cả mouse + touchscreen.
  */
  main.wrap,
main.wrap button,
main.wrap input,
main.wrap textarea,
main.wrap select,
main.wrap [role="button"]{
    touch-action:auto !important;
  }
}


/* ===== APPROVAL HISTORY ===== */


.approval-history-relation{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  margin:0 0 8px;
  padding:3px 8px;
  border-radius:999px;
  background:#eef4ff;
  color:#245da8;
  font-size:11.5px;
  font-weight:850;
}
.approval-history-relation.rejected{
  background:#fff1f1;
  color:#a52121;
}
.approval-history-decision{
  color:#475467;
  font-size:13px;
  line-height:1.5;
  margin-top:4px;
}


html[data-theme="dark"] .approval-history-relation{ background:#1d3351; color:#9fc5ff; }
html[data-theme="dark"] .approval-history-relation.rejected{ background:#4b2328; color:#ffb4b4; }


/* Mini PC V2 - local login */

/* ===== MiniPC V4.1 - Quản trị máy chủ Surface ===== */
.server-admin-subtitle{
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted, #667085);
}
.server-admin-toolbar{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.server-admin-action{
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  background: #0b5ed7;
  color: #fff;
}
.server-admin-action.secondary{
  background: #eef4ff;
  color: #1849a9;
  border: 1px solid #c7d7fe;
}
.server-admin-action:disabled{ opacity: .55; cursor: wait; }
.server-admin-message{
  border-radius: 10px;
  padding: 9px 11px;
  margin: 8px 0 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid #abefc6;
}
.server-admin-message.error{ background:#fef3f2; color:#b42318; border-color:#fecdca; }
.server-admin-message.working{ background:#eff8ff; color:#175cd3; border-color:#b2ddff; }
.server-health-strip{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.server-health-item{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 12px;
  background: rgba(248,250,252,.85);
  font-size: 12px;
}
.server-health-item span{ color:#667085; font-weight:700; }
.server-health-item strong{ text-align:right; }
.server-health-good{ color:#067647 !important; }
.server-health-bad{ color:#b42318 !important; }
.server-admin-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.server-stat-card{
  border:1px solid rgba(148,163,184,.28);
  border-radius:14px;
  padding:12px;
  background:rgba(255,255,255,.92);
  min-width:0;
}
.server-stat-label{
  display:block;
  color:#667085;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
  margin-bottom:5px;
}
.server-stat-card strong{ display:block; font-size:15px; line-height:1.3; word-break:break-word; }
.server-stat-card small{ display:block; margin-top:5px; color:#667085; font-size:11px; line-height:1.35; }
.server-meter{ height:6px; border-radius:999px; background:#eaecf0; overflow:hidden; margin-top:8px; }
.server-meter > span{ display:block; height:100%; width:0; border-radius:inherit; background:#12b76a; transition:width .25s ease; }
.server-meter > span.warn{ background:#f79009; }
.server-meter > span.danger{ background:#f04438; }
.server-admin-section{
  margin-top:12px;
  padding:12px;
  border:1px solid rgba(148,163,184,.28);
  border-radius:14px;
  background:rgba(255,255,255,.9);
}
.server-admin-section-title{ font-size:13px; font-weight:900; margin-bottom:9px; }
.server-sync-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
}
.server-sync-grid > div{
  text-align:center;
  padding:8px 5px;
  border-radius:10px;
  background:#f8fafc;
  border:1px solid #eaecf0;
}
.server-sync-grid span{ display:block; font-size:10px; color:#667085; font-weight:700; }
.server-sync-grid strong{ display:block; margin-top:3px; font-size:17px; }
.server-count-danger{ color:#b42318; }
.server-admin-meta{ margin-top:9px; display:grid; gap:0; }
.server-admin-meta > div{
  display:grid;
  grid-template-columns:minmax(120px,.8fr) minmax(0,1.2fr);
  gap:10px;
  align-items:start;
  padding:8px 0;
  border-top:1px solid rgba(148,163,184,.18);
}
.server-admin-meta > div:first-child{ border-top:0; }
.server-admin-meta span{ color:#667085; font-size:11px; font-weight:700; }
.server-admin-meta strong{ font-size:11px; text-align:right; overflow-wrap:anywhere; }
.server-recent-sync{ display:grid; gap:7px; }
.server-sync-row{
  padding:9px 10px;
  border-radius:10px;
  border:1px solid #eaecf0;
  background:#f8fafc;
}
.server-sync-row-head{ display:flex; justify-content:space-between; gap:10px; align-items:center; }
.server-sync-row-head strong{ font-size:12px; overflow-wrap:anywhere; }
.server-sync-status{ flex:0 0 auto; border-radius:999px; padding:3px 7px; font-size:9px; font-weight:900; background:#eef2f6; color:#344054; }
.server-sync-status.pending{ background:#fffaeb; color:#b54708; }
.server-sync-status.processing{ background:#eff8ff; color:#175cd3; }
.server-sync-status.error{ background:#fef3f2; color:#b42318; }
.server-sync-row-meta{ margin-top:4px; font-size:10px; color:#667085; }
.server-sync-row-error{ margin-top:5px; font-size:10px; line-height:1.4; color:#b42318; overflow-wrap:anywhere; }
.server-admin-footnote{ margin:12px 2px 2px; color:#667085; font-size:10px; line-height:1.45; }
html[data-theme="dark"] .server-health-item,
html[data-theme="dark"] .server-stat-card,
html[data-theme="dark"] .server-admin-section{ background:rgba(17,24,39,.92); border-color:rgba(148,163,184,.25); }
html[data-theme="dark"] .server-sync-grid > div,
html[data-theme="dark"] .server-sync-row,
html[data-theme="dark"] .server-admin-action.secondary{ background:rgba(30,64,175,.2); color:#bfdbfe; border-color:rgba(96,165,250,.35); }
@media (max-width: 640px){
  .server-admin-toolbar{ grid-template-columns:1fr; }
  .server-health-strip,
.server-admin-grid{ grid-template-columns:1fr; }
  .server-sync-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .server-admin-meta > div{ grid-template-columns:1fr; gap:3px; }
  .server-admin-meta strong{ text-align:left; }
}





/* ================================================================
   V5.0.1 - Copy ảnh 300 DPI fallback cho HTTP LAN
   ================================================================ */
.report-copy-fallback-v501{
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: rgba(15, 23, 42, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-sizing: border-box;
}
.report-copy-fallback-v501.hidden{ display:none !important; }
.report-copy-fallback-card-v501{
  width: min(1100px, 100%);
  max-height: calc(100dvh - 28px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(15,23,42,.32);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.report-copy-fallback-head-v501{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px 12px;
  border-bottom:1px solid #e5e7eb;
}
.report-copy-fallback-title-v501{
  font-size:15px;
  font-weight:800;
  color:#1f2937;
}
.report-copy-fallback-note-v501{
  margin-top:4px;
  font-size:13px;
  line-height:1.45;
  color:#64748b;
}
.report-copy-fallback-close-v501{
  border:0;
  background:#f1f5f9;
  color:#475569;
  width:36px;
  height:36px;
  border-radius:10px;
  font-size:25px;
  line-height:32px;
  cursor:pointer;
  flex:0 0 auto;
}
.report-copy-fallback-image-wrap-v501{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  padding:12px;
  background:#e5e7eb;
  -webkit-overflow-scrolling:touch;
  text-align:center;
}
.report-copy-fallback-image-v501{
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  margin:0 auto;
  background:#fff;
  box-shadow:0 2px 14px rgba(15,23,42,.16);
  -webkit-user-select:auto;
  user-select:auto;
  -webkit-touch-callout:default;
}
.report-copy-fallback-actions-v501{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  padding:12px 16px;
  border-top:1px solid #e5e7eb;
}
.report-copy-fallback-btn-v501{
  min-height:42px;
  padding:0 18px;
  border-radius:11px;
  font-weight:800;
  border:1px solid #cbd5e1;
  cursor:pointer;
}
.report-copy-fallback-btn-v501.secondary{ background:#fff; color:#475569; }
.report-copy-fallback-btn-v501.primary{ background:#1769e0; color:#fff; border-color:#1769e0; }
@media (max-width: 700px){
  .report-copy-fallback-v501{ padding:0; align-items:stretch; }
  .report-copy-fallback-card-v501{ width:100%; max-height:100dvh; height:100dvh; border-radius:0; }
  .report-copy-fallback-head-v501{ padding-top:max(12px, env(safe-area-inset-top)); }
  .report-copy-fallback-actions-v501{ padding-bottom:max(12px, env(safe-area-inset-bottom)); }
}

/* ================================================================
   V5.1 - Google/Gmail authentication entry point
   ================================================================ */
.google-auth-login-wrap{
  margin-top: 16px;
  display: flex;
  justify-content: center;
}
.google-auth-login-btn{
  width: 100%;
  min-height: 50px;
  border: 1px solid #dadce0;
  border-radius: 12px;
  background: #fff;
  color: #202124;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 11px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(60,64,67,.08);
  transition: background .15s,border-color .15s,box-shadow .15s,transform .05s;
}
.google-auth-login-btn:hover{
  background: #f8fafd;
  border-color: #c5c9ce;
  box-shadow: 0 1px 3px rgba(60,64,67,.14);
}
.google-auth-login-btn:active{ transform: translateY(1px); }
.google-auth-login-btn:disabled{ opacity: .6; cursor: wait; }
.google-auth-g{
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-family:var(--font-ui);
  font-size: 18px;
  font-weight: 900;
  color: #4285f4;
  background: #fff;
}

/* ===== V5.1 Excel administration ===== */
.server-admin-note{font-size:11px;line-height:1.55;color:#667085;margin:-2px 0 10px}
.server-excel-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0 10px}
.server-excel-preview{display:grid;gap:7px}
.server-excel-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.server-excel-kpi{padding:9px 7px;border:1px solid #e4e7ec;border-radius:10px;background:#f8fafc;text-align:center}
.server-excel-kpi span{display:block;font-size:9px;color:#667085;font-weight:800;text-transform:uppercase}
.server-excel-kpi strong{display:block;margin-top:3px;font-size:16px}
.server-excel-errors,
.server-excel-warnings{display:grid;gap:5px;margin-top:5px}
.server-excel-line{border-radius:9px;padding:7px 9px;font-size:10px;line-height:1.4;overflow-wrap:anywhere}
.server-excel-line.error{background:#fef3f2;color:#b42318;border:1px solid #fecdca}
.server-excel-line.warning{background:#fffaeb;color:#b54708;border:1px solid #fedf89}
.server-excel-line.ok{background:#ecfdf3;color:#027a48;border:1px solid #abefc6}
.server-excel-audit-title{margin-top:12px;padding-top:10px;border-top:1px solid rgba(148,163,184,.18)}
.server-excel-change-list{font-size:10px;line-height:1.45;color:#475467;padding:4px 1px}
html[data-theme="dark"] .server-excel-kpi{background:rgba(31,41,55,.92);border-color:rgba(148,163,184,.2)}
@media (max-width:640px){.server-excel-actions{grid-template-columns:1fr}.server-excel-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* V5.6 · AI FAST · DEVICE STATS */
.weekly-mini-btn:disabled,
.result-action-btn:disabled{
  opacity:.38;
  cursor:not-allowed;
  filter:grayscale(.25);
  box-shadow:none;
}
.weekly-edit-note.disabled{ opacity:.65; }
.server-device-kpis-v56{ margin-top:10px; }
.server-device-columns-v56{ display:grid; gap:12px; margin-top:12px; }
.server-device-subtitle-v56{ font-weight:800; color:#253044; margin:4px 0 8px; }
.server-device-list-v56{ display:grid; gap:8px; }
.server-device-row{ border:1px solid #dfe6f0; border-radius:12px; padding:10px 12px; background:#fff; }
.server-device-row-head{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.server-device-row-head strong{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.server-device-badge{ flex:0 0 auto; font-size:11px; font-weight:800; color:#2962b6; background:#eef5ff; border-radius:999px; padding:3px 7px; }
.server-device-meta{ margin-top:4px; font-size:12px; line-height:1.45; color:#69758a; word-break:break-word; }
.server-ai-queue-v56{ margin-top:10px; }
@media (min-width:760px){ .server-device-columns-v56{ grid-template-columns:1fr 1fr; } .server-device-columns-v56 > div:last-child{ grid-column:1 / -1; } }




/* =========================================================
   V5.37 - APP SHELL / FACEBOOK-LIKE 4 TAB NAVIGATION
   ========================================================= */
body.app-shell-active-v587 #pageHero{ display:none !important; }
body.app-shell-active-v587 .wrap{ scroll-padding-bottom:calc(82px + env(safe-area-inset-bottom)) !important; }
body.app-shell-active-v587 #app{ min-height:100dvh; padding-bottom:18px; }
body.app-shell-active-v587 #appVersionFooter{ padding-bottom:max(14px,env(safe-area-inset-bottom)); }

.app-shell-header-v587{
  position:sticky;
  top:0;
  z-index:720;
  margin:0 0 12px;
  padding:max(8px, env(safe-area-inset-top)) 2px 8px;
  background:color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter:blur(16px) saturate(145%);
  backdrop-filter:blur(16px) saturate(145%);
}
.app-shell-header-main-v587{
  min-height:66px;
  display:flex;
  align-items:center;
  gap:11px;
  padding:10px 14px;
  border:0;
  border-radius:0;
  background:var(--card);
  box-shadow:none;
}
.app-shell-head-icon-v587{
  width:40px;height:40px;flex:0 0 40px;
  display:grid;place-items:center;
  border-radius:13px;
  background:#eef4ff;
  color:#2457a6;
}
.app-shell-head-icon-v587 svg{
  width:22px;height:22px;display:block;
  fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;
}
.app-shell-header-copy-v587{ min-width:0; }
.app-shell-title-v587{ font-size:22px;font-weight:850;line-height:1.15;letter-spacing:-.018em;color:#1f2937; }
.app-shell-subtitle-v587{ margin-top:3px;font-size:12px;line-height:1.35;color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }

.app-shell-bottom-nav-v587{
  position:fixed;
  z-index:950;
  left:50%;
  transform:translateX(-50%);
  bottom:0;
  width:min(760px, 100vw);
  min-height:64px;
  padding:5px 6px max(5px, env(safe-area-inset-bottom));
  display:flex;
  align-items:stretch;
  gap:1px;
  border:1px solid color-mix(in srgb, var(--line) 90%, transparent);
  border-bottom:0;
  border-radius:17px 17px 0 0;
  background:color-mix(in srgb, var(--card) 96%, transparent);
  -webkit-backdrop-filter:blur(18px) saturate(150%);
  backdrop-filter:blur(18px) saturate(150%);
  box-shadow:0 -7px 26px rgba(15,23,42,.10);
}
.bottom-tab-v587{
  position:relative;
  flex:1 1 0;
  min-width:0;
  min-height:54px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:#65676b;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  padding:4px 1px 3px;
  font:inherit;
  font-size:9.5px;
  font-weight:800;
  line-height:1.1;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.bottom-tab-v587 svg{ width:22px;height:22px;display:block;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round; }
.bottom-tab-v587.active{ color:#0866ff;background:rgba(8,102,255,.075); }
.bottom-tab-v587:active{ transform:scale(.97); }
.bottom-tab-icon-wrap-v587{ position:relative;display:block;line-height:0; }
.bottom-tab-v587 .dw-tab-label{ display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:currentColor;font:inherit; }
.bottom-tab-badge-v587{ position:absolute;top:-7px;right:-10px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;display:grid;place-items:center;background:#e41e3f;color:#fff;border:2px solid var(--card);font-size:9px;font-weight:900;line-height:1; }

/* =========================================================
   V5.38 - REGISTRATION FLOW
   Banner đầu trang -> chọn quân nhân -> chọn hình thức -> form động.
   Trạng thái mở/đóng chỉ còn hiển thị trong chính card Quy chế/Tranh thủ/Phép.
   ========================================================= */
.registration-hero-section{
  margin:0 0 14px;
}
.registration-hero-v536{
  position:relative;
  width:100%;
  height:clamp(210px,22vw,310px);
  min-height:0;
  overflow:hidden;
  isolation:isolate;
  border-radius:22px;
  background:linear-gradient(90deg,#edf6ff 0%,#e1efff 48%,#d6e9ff 100%);
}
.registration-hero-v536::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background:
    radial-gradient(circle at 18% 22%,rgba(255,255,255,.52),transparent 30%),
    radial-gradient(circle at 72% 14%,rgba(255,255,255,.24),transparent 24%);
  pointer-events:none;
}
.registration-hero-copy-v536{
  position:relative;
  z-index:3;
  box-sizing:border-box;
  width:60%;
  height:100%;
  padding:clamp(18px,2vw,30px);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
}
.registration-hero-greeting-v536{
  max-width:100%;
  display:flex;
  align-items:center;
  gap:7px;
  color:#07174e;
  font-size:clamp(28px,3vw,44px);
  line-height:1.05;
  font-weight:900;
  letter-spacing:-.035em;
}
#shellRegistrationName{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.registration-hero-wave-v536{ flex:0 0 auto;font-size:.72em;line-height:1; }
.registration-hero-copy-v536 p{
  max-width:92%;
  margin:12px 0 0;
  color:#374151;
  font-size:clamp(14px,1.35vw,19px);
  line-height:1.38;
}
.registration-hero-art-v536{
  position:absolute;
  z-index:1;
  inset:0 0 0 auto;
  width:56%;
  height:100%;
  overflow:hidden;
  pointer-events:none;
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.5) 10%,#000 23%,#000 100%);
  mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.5) 10%,#000 23%,#000 100%);
}
.registration-hero-art-v536 img{ width:100%;height:100%;object-fit:cover;object-position:center;display:block; }
.registration-choice-heading-v536{
  margin:2px 2px 10px;
  scroll-margin-top:84px;
}
.registration-type-field-v536{ margin-top:0; }

html[data-theme="dark"] .registration-hero-v536{
  background:linear-gradient(90deg,#14243d 0%,#1a365b 50%,#19304f 100%);
}
html[data-theme="dark"] .registration-hero-greeting-v536{ color:#f5f9ff; }
html[data-theme="dark"] .registration-hero-copy-v536 p{ color:#d6dfed; }

@media (max-width:700px){
  .registration-hero-section{ margin-bottom:14px; }
  .registration-hero-v536{
    height:clamp(126px, 32vw, 136px);
    border-radius:18px;
  }
  .registration-hero-copy-v536{
    width:58%;
    padding:clamp(11px,3.2vw,14px);
  }
  .registration-hero-greeting-v536{
    font-size:clamp(26px,7.1vw,31px);
    gap:5px;
  }
  .registration-hero-copy-v536 p{
    max-width:100%;
    margin-top:7px;
    font-size:clamp(13px,3.55vw,15px);
    line-height:1.32;
  }
  .registration-hero-art-v536{ width:44%; }
  .registration-hero-art-v536 img{ object-position:center right; }
  .registration-choice-heading-v536{ margin-top:0;scroll-margin-top:74px; }
}

@media (max-width:390px){
  .registration-hero-copy-v536{ width:59%;padding:11px 10px 11px 12px; }
  .registration-hero-greeting-v536{ font-size:clamp(25px,7vw,29px); }
  .registration-hero-copy-v536 p{ font-size:clamp(12.5px,3.55vw,14px); }
  .registration-hero-art-v536{ width:43%; }
}

/* Bottom tabs replace the old primary-navigation buttons inside the account card. */

/* Primary tab modules no longer need a Close button. */


html[data-theme="dark"] .bottom-tab-v587{ color:#aab4c4; }
html[data-theme="dark"] .bottom-tab-v587.active{ color:#72a7ff;background:rgba(67,132,255,.14); }
html[data-theme="dark"] .app-shell-head-icon-v587{ background:#172a45; color:#a9c8ff; }

@media (max-width:700px){
  body.app-shell-active-v587 main.wrap,
body.app-shell-active-v587 .wrap{ padding-top:6px !important; }
  body.app-shell-active-v587.registration-shell-active-v538 main.wrap,
body.app-shell-active-v587.registration-shell-active-v538 .wrap{ padding-top:max(6px, env(safe-area-inset-top)) !important; }
  .app-shell-header-v587{ margin-left:-2px;margin-right:-2px; }
  .app-shell-bottom-nav-v587{ width:100vw;border-left:0;border-right:0;border-radius:15px 15px 0 0; }
  .bottom-tab-v587{ font-size:9px; }
}
@media (max-width:390px){
  .bottom-tab-v587{ font-size:8.3px;letter-spacing:-.02em; }
  .app-shell-bottom-nav-v587{ padding-left:2px;padding-right:2px; }
}


/* =========================================================
   V5.8.12 - APP SHELL CONTEXT SUBTITLE + DATE/WEEK
   Legacy mobile modules use position:fixed + z-index:4800.
   Keep the 4-tab navigation above them so the user can always
   leave Phê duyệt / Tổng hợp / Báo cáo without closing/reloading.
   ========================================================= */
@media (max-width:700px){
  body.app-shell-active-v587 .app-shell-bottom-nav-v587{
    z-index:5300 !important;
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;
    pointer-events:auto !important;
  }

  body.app-shell-active-v587 #weeklySummaryCard,
body.app-shell-active-v587 #approvalModuleCard{
    scroll-padding-bottom:calc(82px + env(safe-area-inset-bottom, 0px)) !important;
  }
}


/* V5.8.12 - header chung lấy Tổng hợp đăng ký làm mẫu */
html[data-theme="dark"] .app-shell-title-v587{ color:#e8eef7; }
html[data-theme="dark"] .app-shell-subtitle-v587{ color:#9eabc0; }
@media (max-width:700px){
  body.app-shell-active-v587 .app-shell-header-v587{
    margin:0 -14px 12px !important;
    padding:0 !important;
    background:var(--card) !important;
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }
  body.app-shell-active-v587 .app-shell-header-main-v587{
    padding:calc(10px + env(safe-area-inset-top, 0px)) 14px 10px !important;
  }
}


/* Bottom-tab labels are rendered directly in index.html; no icon-only override. */

/* V5.5 CLEAN: legacy child-tab CSS removed; shared styling lives in modules/subtabs/subtabs.css. */

/* The 4 export buttons remain at the end of each report child tab. */


/* Tổng hợp có thể có tới 5 tab con: thu gọn chữ vừa đủ để hiện hết. */


/* Phê duyệt/Báo cáo chỉ có 3 tab con: giữ chữ lớn hơn. */


/* Hidden/permission-gated child tabs must stay hidden despite equal-width flex. */


/* =========================================================
   ACCOUNT PROFILE CONTENT
   Outer page geometry is owned by .qc-page. The account shell identity is owned
   by the shared app-shell header; only profile-content rows remain here.
   ========================================================= */
.account-profile-section-v5818{border-top:1px solid var(--line);padding-top:15px}
.account-profile-section-head-v5818{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.account-profile-section-head-v5818 h3{margin:0;font-size:18px;line-height:1.2;font-weight:900;color:var(--text)}
.account-profile-source-v5818{color:var(--muted);font-size:10px;font-weight:750;white-space:nowrap}
.account-profile-info-v5818{display:grid;gap:2px}
.account-profile-info-row-v5818{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:start;gap:9px;padding:9px 0;color:var(--text)}
.account-profile-info-icon-v5818{width:28px;height:28px;display:grid;place-items:center;color:#111827}
.account-profile-info-icon-v5818 svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.account-profile-info-copy-v5818{min-width:0;line-height:1.35}
.account-profile-info-label-v5818{display:block;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.025em}
.account-profile-info-value-v5818{display:block;margin-top:2px;color:var(--text);font-size:14px;font-weight:650;overflow-wrap:anywhere}
html[data-theme="dark"] .account-profile-info-icon-v5818{color:#e5e7eb}

/* V5.8.22 - account request / shared Gmail gate */
.access-gate-card-v5822{max-width:680px;margin:24px auto;padding:22px;border-radius:24px}
.access-gate-identity-v5822{display:flex;align-items:center;gap:12px;padding:12px 14px;margin-bottom:16px;background:#f6f7f9;border:1px solid #e4e6eb;border-radius:16px}
.access-gate-avatar-v5822{width:44px;height:44px;border-radius:50%;object-fit:cover;background:#e4e6eb}
.access-gate-email-v5822{margin-top:3px;color:#65676b;font-size:13px;word-break:break-all}
.access-gate-label-v5822{display:block;margin:14px 0 7px;font-weight:700}
.access-gate-input-v5822{box-sizing:border-box;width:100%;min-height:46px;border:1px solid #d9dde3;border-radius:13px;background:#fff;padding:10px 12px;font:inherit;color:inherit;outline:none}
.access-gate-input-v5822:focus{border-color:#1877f2;box-shadow:0 0 0 3px rgba(24,119,242,.10)}
.access-person-results-v5822{display:grid;gap:7px;margin-top:8px;max-height:270px;overflow:auto}
.access-person-result-v5822{width:100%;border:1px solid #e2e5e9;border-radius:13px;background:#fff;padding:10px 12px;text-align:left;display:flex;flex-direction:column;gap:3px;color:inherit}
.access-person-result-v5822 strong{font-size:15px}.access-person-result-v5822 small{color:#65676b;font-size:12px}
.access-person-selected-v5822{margin-top:8px;padding:10px 12px;border-radius:13px;background:#eaf3ff;color:#0b57d0;font-weight:700}
.access-manual-v5822{margin-top:16px;padding-top:14px;border-top:1px solid #e5e7eb}.access-manual-title-v5822{font-weight:700;margin-bottom:8px}.access-manual-grid-v5822{display:grid;grid-template-columns:1fr;gap:8px}
.access-submit-v5822{width:100%;margin-top:16px}.access-switch-v5822{width:100%;margin-top:10px;border:0;background:transparent;color:#65676b;font-weight:700;padding:10px}
.provisional-account-banner-v5822{margin:10px 12px 0;padding:11px 13px;border-radius:14px;background:#fff3cd;border:1px solid #ffe69c;color:#664d03;font-size:13px;line-height:1.45}

/* Registration person picker uses the shared unit-group visual; only dropdown edge spacing is contextual. */
.name-suggestions .qc-personnel-group{gap:0}
.name-suggestions .qc-personnel-group + .qc-personnel-group{margin-top:4px}
.name-suggestions .qc-personnel-group-title{padding:8px 14px 5px}
.name-suggestions .qc-personnel-group-items{gap:0}

/* V5.10.12 · DEVICE KPI DRILL-DOWN */
.server-device-kpi-v5111{
  appearance:none;
  width:100%;
  min-width:0;
  font:inherit;
  color:inherit;
  cursor:pointer;
  transition:border-color .15s ease,background .15s ease,box-shadow .15s ease,transform .05s ease;
}
.server-device-kpi-v5111:hover{ border-color:#b8c7dc; background:#f3f7fc; }
.server-device-kpi-v5111:active{ transform:translateY(1px); }
.server-device-kpi-v5111:focus-visible{ outline:3px solid rgba(37,99,235,.2); outline-offset:2px; }
.server-device-kpi-v5111.is-selected{
  border-color:#7baaf7;
  background:#eef5ff;
  box-shadow:inset 0 0 0 1px rgba(37,99,235,.08);
}
.server-device-kpi-v5111.is-selected span,
.server-device-kpi-v5111.is-selected strong{ color:#1f5fbf; }
.server-device-filter-panel-v5111{ margin-top:14px; }
.server-device-filter-head-v5111{ display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:8px; }
.server-device-filter-head-v5111 .server-device-subtitle-v56{ margin:0; }
.server-device-filter-note-v5111{ margin-top:3px; font-size:11px; line-height:1.45; color:#69758a; }
.server-device-filter-count-v5111{ flex:0 0 auto; font-size:12px; color:#526174; white-space:nowrap; }
html[data-theme="dark"] .server-device-kpi-v5111.is-selected{ background:rgba(37,99,235,.16); border-color:rgba(96,165,250,.65); }
@media (max-width:640px){
  .server-device-filter-head-v5111{ align-items:flex-start; }
  .server-device-filter-count-v5111{ margin-top:2px; }
}

/* V5.10.16 - targeted Web Push diagnostic */
.server-push-test-v5116{display:grid;justify-items:center;gap:7px;margin-top:14px;padding:12px 10px;border-top:1px solid #e5eaf1}
.server-secondary-btn-v5116{min-height:42px;padding:9px 14px;border:1px solid #b8c7dc;border-radius:11px;background:#fff;color:#23415f;font-weight:800;font-size:12px;cursor:pointer}
.server-secondary-btn-v5116:hover{background:#f5f8fc}
.server-secondary-btn-v5116:disabled{opacity:.58;cursor:wait}
.server-push-test-status-v5116,.server-push-worker-status-v5116{max-width:760px;text-align:center;font-size:12px;line-height:1.45;color:#657287;word-break:break-word}
.server-push-test-status-v5116.is-ok{color:#167348;font-weight:700}
.server-push-test-status-v5116.is-error{color:#b42318;font-weight:700}
html[data-theme="dark"] .server-push-test-v5116{border-top-color:#364152}
html[data-theme="dark"] .server-secondary-btn-v5116{background:#1f2937;border-color:#4b5a70;color:#e5edf7}
@media (max-width:480px){.server-secondary-btn-v5116{width:100%;font-size:11px;padding-inline:10px}}

@media (max-width: 560px) {
  .hint:not(:empty) {
    font-size: 11px !important;
    padding: 3px 6px !important;
    opacity: 0.85;
  }
}

/* =========================================================
   DARK MODE - BÁO CÁO (REPORTS MODULE) TOÀN DIỆN
   Đảm bảo độ tương phản cao, nền tối đồng bộ, chữ sáng rõ ràng
   ========================================================= */
html[data-theme="dark"] #summaryHubReportPanelV537 .report-exact-card,
html[data-theme="dark"] .report-exact-card,
html[data-theme="dark"] #summaryHubReportPanelV537 .report-exact-preview,
html[data-theme="dark"] .report-exact-preview,
html[data-theme="dark"] #summaryHubReportPanelV537 .report-list-export,
html[data-theme="dark"] .report-list-export {
  background: #151d27 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .report-section-head {
  background: #1a2332 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .report-section-title {
  color: #f0f6fc !important;
  font-weight: 800 !important;
}

html[data-theme="dark"] .report-section-count {
  background: rgba(56, 139, 253, 0.2) !important;
  color: #79c0ff !important;
  border: 1px solid rgba(56, 139, 253, 0.35) !important;
}

html[data-theme="dark"] .report-table {
  background: #151d27 !important;
  color: #e6edf3 !important;
}

html[data-theme="dark"] .report-table th {
  background: #1c2736 !important;
  color: #79c0ff !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  font-weight: 800 !important;
}

html[data-theme="dark"] .report-table td {
  background: #151d27 !important;
  color: #edf2f8 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .report-table tr:nth-child(even) td {
  background: #182230 !important;
}

html[data-theme="dark"] .report-table tr:hover td {
  background: #1f2d3e !important;
}

html[data-theme="dark"] #summaryHubReportPanelV537 .report-list-actions,
html[data-theme="dark"] .report-list-actions {
  background: #182230 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .report-icon-btn--copy {
  background: rgba(56, 139, 253, 0.18) !important;
  border: 1px solid rgba(56, 139, 253, 0.4) !important;
  color: #79c0ff !important;
}
html[data-theme="dark"] .report-icon-btn--word {
  background: rgba(99, 102, 241, 0.18) !important;
  border: 1px solid rgba(99, 102, 241, 0.4) !important;
  color: #a5b4fc !important;
}
html[data-theme="dark"] .report-icon-btn--pdf {
  background: rgba(248, 81, 73, 0.18) !important;
  border: 1px solid rgba(248, 81, 73, 0.4) !important;
  color: #ff7b72 !important;
}
html[data-theme="dark"] .report-icon-btn--print {
  background: rgba(148, 163, 184, 0.18) !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  color: #cbd5e1 !important;
}

