/* Existing account layouts, scoped to the R12 workspace. */
.tp-r12{
  --th-navy:#1a2b5d;
  --th-navy-dark:#152348;
  --th-gold:#dd9933;

  --th-bg:#f6f8fc;
  --th-card:#ffffff;
  --th-text:#0f172a;
  --th-muted:#64748b;

  --th-border:rgba(226,232,240,.95);
  --th-shadow:0 18px 45px rgba(15,23,42,.08);
  --th-shadow-sm:0 10px 25px rgba(15,23,42,.06);

  --th-radius:8px; 
  --th-focus: 0 0 0 4px rgba(26,43,93,.12);
}
.tp-r12 #th-client-details{ color:var(--th-text); }
.tp-r12 body,.tp-r12 .main-content{ background: var(--th-bg) !important; }
.tp-r12 .th-shell{
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 14px 34px;
  box-sizing:border-box;
}
.tp-r12 .th-hero{
  position:relative;
  border-radius: var(--th-radius);
  padding: 18px 18px;
  border: 1px solid rgba(255,255,255,.55);
  background:
    radial-gradient(circle at 18% 10%, rgba(221,153,51,.14), transparent 42%),
    radial-gradient(circle at 90% 20%, rgba(26,43,93,.20), transparent 45%),
    linear-gradient(135deg, rgba(26,43,93,.92), rgba(21,35,72,.95));
  box-shadow: 0 22px 55px rgba(26,43,93,.18);
  overflow:hidden;
  margin-bottom: 14px;
}
.tp-r12 .th-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.10), transparent 35%),
    radial-gradient(circle at 30% 120%, rgba(255,255,255,.10), transparent 45%);
  pointer-events:none;
}
.tp-r12 .th-hero-row{
  position:relative;
  z-index:1;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.tp-r12 .th-title{
  margin:0;
  font-size: 20px;
  font-weight: 950;
  color:#fff;
  letter-spacing:.2px;
}
.tp-r12 .th-sub{
  margin-top:6px;
  font-size: 13px;
  font-weight: 750;
  color: rgba(255,255,255,.88);
}
.tp-r12 .th-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color:#fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.tp-r12 #th-client-details .card{
  background: var(--th-card);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius);
  box-shadow: var(--th-shadow-sm);
  overflow:hidden;
  margin-bottom: 14px;
}
.tp-r12 #th-client-details .card-body{ padding: 14px 14px; }
.tp-r12 #th-client-details .card-title{
  font-size: 14px;
  font-weight: 950;
  color: var(--th-navy);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.tp-r12 #th-client-details .row.d-md-block{ margin-left: -6px; margin-right: -6px; }
.tp-r12 #th-client-details .row.d-md-block > [class*="col-"]{ padding-left: 6px; padding-right: 6px; }
.tp-r12 #th-client-details .col-form-label{
  font-size: 12px !important;
  font-weight: 900 !important;
  color: #334155 !important;
}
.tp-r12 #th-client-details .form-control,.tp-r12 #th-client-details .custom-select,.tp-r12 #th-client-details select{
  width:100%;
  border-radius: var(--th-radius) !important;
  border: 1px solid rgba(226,232,240,.95) !important;
  background:#fff !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: var(--th-text) !important;
  box-shadow: 0 10px 22px rgba(15,23,42,.04) !important;
  transition: box-shadow .18s ease, border-color .18s ease, transform .12s ease;
  min-height: 44px;
}
.tp-r12 #th-client-details .form-control:focus,.tp-r12 #th-client-details .custom-select:focus,.tp-r12 #th-client-details select:focus{
  border-color: rgba(26,43,93,.40) !important;
  box-shadow: var(--th-focus), 0 14px 34px rgba(15,23,42,.08) !important;
  outline: none !important;
}
.tp-r12 #th-client-details select{
  background-image: linear-gradient(45deg, transparent 50%, rgba(100,116,139,.9) 50%),
                    linear-gradient(135deg, rgba(100,116,139,.9) 50%, transparent 50%),
                    linear-gradient(to right, transparent, transparent) !important;
  background-position: calc(100% - 18px) calc(1em + 2px),
                       calc(100% - 13px) calc(1em + 2px),
                       calc(100% - 2.6em) 0.5em !important;
  background-size: 5px 5px, 5px 5px, 1px 1.6em !important;
  background-repeat: no-repeat !important;
}
.tp-r12 #th-client-details .form-control[disabled],.tp-r12 #th-client-details .custom-select[disabled],.tp-r12 #th-client-details select[disabled],.tp-r12 #th-client-details input[disabled]{
  background: rgba(15,23,42,.03) !important;
  color: var(--th-muted) !important;
  cursor:not-allowed;
  box-shadow: none !important;
}
.tp-r12 #inputPhone{
  text-align: right !important;
  direction: ltr !important;
  padding-right: 14px !important;
  font-variant-numeric: tabular-nums;
}
.tp-r12 #th-client-details .controls.form-check label{
  font-size: 13px;
  font-weight: 850;
  color: var(--th-text);
}
.tp-r12 #th-client-details .form-check-input{
  width: 18px;
  height: 18px;
  accent-color: var(--th-navy);
}
.tp-r12 #th-client-details .btn{
  border-radius: var(--th-radius) !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.tp-r12 #th-client-details .btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(15,23,42,.10);
}
.tp-r12 #th-client-details .btn:active{ transform: translateY(0); }
.tp-r12 #th-client-details .btn-primary{
  background: linear-gradient(135deg, var(--th-navy), var(--th-navy-dark)) !important;
  border: 1px solid rgba(26,43,93,.30) !important;
  color:#fff !important;
}
.tp-r12 #th-client-details .btn-primary:hover{
  box-shadow: 0 18px 44px rgba(26,43,93,.20) !important;
}
.tp-r12 #th-client-details .btn-default{
  background:#fff !important;
  border: 1px solid rgba(226,232,240,.95) !important;
  color: var(--th-text) !important;
}
.tp-r12 #th-client-details .form-group{ margin-bottom: 12px; }
.tp-r12 .th-note{
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 750;
  color: var(--th-muted);
  line-height: 1.5;
}
.tp-r12 #th-client-details input.toggle-switch-success{
  transform: scale(1.02);
}
.tp-r12 #th-client-details .alert{
  border-radius: var(--th-radius) !important;
  border: 1px solid rgba(226,232,240,.95) !important;
  box-shadow: 0 10px 22px rgba(15,23,42,.05) !important;
}

.tp-r12{
        --th-navy:#1a2b5d;
        --th-navy-dark:#152348;
        --th-gold:#dd9933;

        --th-bg:#f6f8fc;
        --th-card:#ffffff;
        --th-text:#0f172a;
        --th-muted:#64748b;

        --th-border:rgba(226,232,240,.95);
        --th-shadow:0 18px 45px rgba(15,23,42,.08);
        --th-shadow-sm:0 10px 25px rgba(15,23,42,.06);

        --th-radius:18px;
        --th-radius-sm:14px;
    }
.tp-r12 #th-um *{ box-sizing:border-box; }
.tp-r12 .th-um{
        font-family: inherit;
        color: var(--th-text);
    }
.tp-r12 .th-um-shell{
        max-width: 1200px;
        margin: 0 auto;
        padding: 10px 10px 28px;
    }
.tp-r12 .th-card{
        background: var(--th-card);
        border: 1px solid var(--th-border);
        border-radius: var(--th-radius);
        box-shadow: var(--th-shadow-sm);
        overflow: hidden;
        margin-bottom: 14px;
    }
.tp-r12 .th-card-head{
        padding: 16px 16px 12px;
        background:
            radial-gradient(circle at top left, rgba(26,43,93,.08), transparent 55%),
            radial-gradient(circle at bottom right, rgba(221,153,51,.10), transparent 60%),
            #ffffff;
        border-bottom: 1px solid var(--th-border);
        display:flex;
        align-items:flex-start;
        justify-content:space-between;
        gap: 12px;
    }
.tp-r12 .th-title{
        margin: 0;
        font-weight: 800;
        letter-spacing: -.02em;
        font-size: 18px;
        line-height: 1.25;
        color: var(--th-navy);
    }
.tp-r12 .th-sub{
        margin: 6px 0 0;
        color: var(--th-muted);
        font-size: 13px;
        line-height: 1.4;
    }
.tp-r12 .th-card-body{
        padding: 14px 16px 16px;
    }
.tp-r12 .th-note{
        margin: 10px 0 0;
        padding: 10px 12px;
        border-radius: 8px;
        background: rgba(15,23,42,.03);
        border: 1px dashed rgba(100,116,139,.35);
        color: var(--th-muted);
        font-size: 13px;
    }
.tp-r12 .th-table{
        width:100%;
        border-collapse: separate;
        border-spacing: 0 10px;
        margin: 0;
    }
.tp-r12 .th-table thead th{
        font-size: 12px;
        color: var(--th-muted);
        font-weight: 700;
        letter-spacing: .02em;
        text-transform: uppercase;
        padding: 0 10px 6px;
        border: 0 !important;
        background: transparent !important;
    }
.tp-r12 .th-row{
        background: #fff;
        border: 1px solid var(--th-border);
        box-shadow: 0 10px 25px rgba(15,23,42,.05);
        border-radius: 8px;
        overflow: hidden;
    }
.tp-r12 .th-table tbody td{
        border-top: 0 !important;
        vertical-align: middle;
        padding: 14px 14px;
        background: transparent !important;
    }
.tp-r12 .th-user{
        display:flex;
        align-items:flex-start;
        gap: 12px;
        min-width: 0;
    }
.tp-r12 .th-avatar{
        width: 40px;
        height: 40px;
        border-radius: 8px;
        display:flex;
        align-items:center;
        justify-content:center;
        background:
            radial-gradient(circle at top left, rgba(26,43,93,.18), transparent 55%),
            radial-gradient(circle at bottom right, rgba(221,153,51,.18), transparent 60%),
            rgba(15,23,42,.03);
        border: 1px solid rgba(226,232,240,.95);
        color: var(--th-navy);
        flex: 0 0 40px;
    }
.tp-r12 .th-avatar i{ font-size: 16px; opacity:.9; }
.tp-r12 .th-user-meta{ min-width: 0; }
.tp-r12 .th-email{
        font-weight: 800;
        font-size: 14px;
        line-height: 1.25;
        color: var(--th-text);
        word-break: break-word;
    }
.tp-r12 .th-badges{
        margin-top: 6px;
        display:flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items:center;
    }
.tp-r12 .th-chip{
        display:inline-flex;
        align-items:center;
        gap: 6px;
        padding: 5px 10px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 700;
        border: 1px solid rgba(226,232,240,.95);
        background: rgba(15,23,42,.02);
        color: var(--th-muted);
        white-space: nowrap;
    }
.tp-r12 .th-chip--owner{
        background: rgba(26,43,93,.08);
        color: var(--th-navy);
        border-color: rgba(26,43,93,.18);
    }
.tp-r12 .th-chip--2fa-on{
        background: rgba(34,197,94,.10);
        color: #0f5132;
        border-color: rgba(34,197,94,.22);
    }
.tp-r12 .th-chip--2fa-off{
        background: rgba(100,116,139,.08);
        color: var(--th-muted);
        border-color: rgba(100,116,139,.18);
    }
.tp-r12 .th-last{
        margin-top: 8px;
        font-size: 12px;
        color: var(--th-muted);
    }
.tp-r12 .th-actions{
        display:flex;
        justify-content:flex-end;
        gap: 10px;
        flex-wrap: wrap;
    }
.tp-r12 .th-btn{
        appearance:none;
        border: 1px solid rgba(226,232,240,.95);
        background: #fff;
        color: var(--th-navy);
        font-weight: 800;
        border-radius: 8px;
        padding: 10px 12px;
        font-size: 13px;
        line-height: 1;
        display:inline-flex;
        align-items:center;
        gap: 8px;
        transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
        box-shadow: 0 10px 22px rgba(15,23,42,.05);
        text-decoration:none !important;
    }
.tp-r12 .th-btn:hover{
        transform: translateY(-1px);
        box-shadow: 0 14px 34px rgba(15,23,42,.08);
        border-color: rgba(26,43,93,.22);
        color: var(--th-navy);
    }
.tp-r12 .th-btn:active{ transform: translateY(0); }
.tp-r12 .th-btn-primary{
        background: linear-gradient(135deg, var(--th-navy), var(--th-navy-dark));
        color: #fff !important;
        border-color: rgba(26,43,93,.35);
    }
.tp-r12 .th-btn-primary:hover{
        border-color: rgba(221,153,51,.35);
        box-shadow: 0 16px 40px rgba(26,43,93,.18);
    }
.tp-r12 .th-btn-danger{
        background: #fff;
        border-color: rgba(239,68,68,.25);
        color: #b91c1c !important;
    }
.tp-r12 .th-btn-danger:hover{
        background: rgba(239,68,68,.06);
        border-color: rgba(239,68,68,.35);
        box-shadow: 0 16px 40px rgba(239,68,68,.12);
    }
.tp-r12 .th-btn.disabled,.tp-r12 .th-btn[disabled],.tp-r12 .btn.disabled,.tp-r12 .btn[disabled]{
        opacity: .55 !important;
        cursor: not-allowed !important;
        pointer-events: none !important;
        transform: none !important;
        box-shadow: none !important;
    }
.tp-r12 .th-form{
        display:grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }
.tp-r12 .th-input{
        width:100%;
        border: 1px solid rgba(226,232,240,.95);
        border-radius: 8px;
        padding: 12px 12px;
        font-size: 14px;
        background: #fff;
        box-shadow: 0 10px 24px rgba(15,23,42,.04);
        outline: none;
        transition: border-color .12s ease, box-shadow .12s ease;
    }
.tp-r12 .th-input:focus{
        border-color: rgba(26,43,93,.35);
        box-shadow: 0 0 0 4px rgba(26,43,93,.10), 0 14px 34px rgba(15,23,42,.08);
    }
.tp-r12 .th-radio-row{
        display:flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items:center;
    }
.tp-r12 .th-radio{
        display:flex;
        align-items:center;
        gap: 8px;
        padding: 10px 12px;
        border-radius: 8px;
        border: 1px solid rgba(226,232,240,.95);
        background: rgba(15,23,42,.02);
        box-shadow: 0 10px 22px rgba(15,23,42,.04);
        cursor: pointer;
        user-select:none;
        font-weight: 700;
        color: var(--th-text);
    }
.tp-r12 .th-radio input{ margin:0; }
.tp-r12 #invitePermissions{
        border-radius: var(--th-radius-sm);
        border: 1px solid rgba(226,232,240,.95);
        background:
            radial-gradient(circle at top left, rgba(26,43,93,.06), transparent 55%),
            rgba(15,23,42,.02);
        padding: 12px 12px 4px;
    }
.tp-r12 #invitePermissions .form-check{
        display:block;
        margin: 0 0 10px;
        padding: 10px 12px;
        border-radius: 8px;
        border: 1px solid rgba(226,232,240,.95);
        background: #fff;
        box-shadow: 0 10px 22px rgba(15,23,42,.04);
    }
.tp-r12 #invitePermissions .form-check .text-muted{
        display:inline-block;
        margin-top: 4px;
        font-size: 12px;
        color: var(--th-muted) !important;
    }
.tp-r12 .th-modal .modal-content{
        border-radius: 8px;
        border: 1px solid rgba(226,232,240,.95);
        box-shadow: 0 22px 70px rgba(15,23,42,.22);
        overflow: hidden;
    }
.tp-r12 .th-modal .modal-header{
        border-bottom: 1px solid rgba(226,232,240,.95);
        background: linear-gradient(135deg, rgba(26,43,93,.10), rgba(221,153,51,.10));
    }
.tp-r12 .th-modal .modal-title{
        font-weight: 900;
        color: var(--th-navy);
        letter-spacing: -.02em;
    }
.tp-r12 .th-modal .modal-body p{ color: var(--th-text); }
.tp-r12 .th-modal .modal-footer{
        border-top: 1px solid rgba(226,232,240,.95);
        background: rgba(15,23,42,.02);
    }
@media (max-width: 991px){.tp-r12 .th-actions{ justify-content:flex-start; }
.tp-r12 .th-table thead{ display:none; }
.tp-r12 .th-table,.tp-r12 .th-table tbody,.tp-r12 .th-table tr,.tp-r12 .th-table td{ display:block; width:100%; }
.tp-r12 .th-table tr.th-row{ margin-bottom: 10px; }
.tp-r12 .th-table tbody td{ padding: 12px 12px; }
.tp-r12 .th-actions{ padding-top: 10px; }
}

.tp-r12{
  --th-navy:#1a2b5d;
  --th-navy-dark:#152348;
  --th-gold:#dd9933;

  --th-bg:#f6f8fc;
  --th-card:#ffffff;
  --th-text:#0f172a;
  --th-muted:#64748b;

  --th-border:rgba(226,232,240,.95);
  --th-shadow:0 18px 45px rgba(15,23,42,.08);
  --th-shadow-sm:0 10px 25px rgba(15,23,42,.06);

  --th-radius:8px;
  --th-focus: 0 0 0 4px rgba(26,43,93,.12);
}
.tp-r12 #th-contacts{ color:var(--th-text); }
.tp-r12 body,.tp-r12 .main-content{ background: var(--th-bg) !important; }
.tp-r12 #th-contacts *{ box-sizing:border-box; }
.tp-r12 .th-shell{
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 14px 34px;
}
.tp-r12 .th-hero{
  position:relative;
  border-radius: var(--th-radius);
  padding: 16px 16px;
  border: 1px solid rgba(255,255,255,.28);
  background:
    radial-gradient(circle at 18% 10%, rgba(221,153,51,.14), transparent 42%),
    radial-gradient(circle at 90% 20%, rgba(26,43,93,.20), transparent 45%),
    linear-gradient(135deg, rgba(26,43,93,.92), rgba(21,35,72,.95));
  box-shadow: 0 22px 55px rgba(26,43,93,.18);
  overflow:hidden;
  margin-bottom: 14px;
}
.tp-r12 .th-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.10), transparent 35%),
    radial-gradient(circle at 30% 120%, rgba(255,255,255,.10), transparent 45%);
  pointer-events:none;
}
.tp-r12 .th-hero-row{
  position:relative;
  z-index:1;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.tp-r12 .th-hero-title{
  margin:0;
  font-size: 20px;
  font-weight: 950;
  color:#fff;
  letter-spacing:.2px;
}
.tp-r12 .th-hero-sub{
  margin-top:6px;
  font-size: 13px;
  font-weight: 750;
  color: rgba(255,255,255,.88);
}
.tp-r12 .th-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color:#fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.tp-r12 #th-contacts .card{
  background: var(--th-card);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius);
  box-shadow: var(--th-shadow-sm);
  overflow:hidden;
  margin-bottom: 14px;
}
.tp-r12 #th-contacts .card-body{ padding: 14px 14px; }
.tp-r12 #th-contacts .card-title{
  font-size: 15px;
  font-weight: 950;
  color: var(--th-navy);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.tp-r12 #th-contacts .alert.alert-block.alert-info{
  border-radius: var(--th-radius) !important;
  border: 1px solid var(--th-border) !important;
  background:
    radial-gradient(circle at top left, rgba(26,43,93,.06), transparent 55%),
    radial-gradient(circle at bottom right, rgba(221,153,51,.08), transparent 60%),
    #ffffff !important;
  color: var(--th-text) !important;
  box-shadow: var(--th-shadow-sm) !important;
  padding: 14px 14px !important;
  margin-bottom: 14px !important;
}
.tp-r12 #th-contacts .alert .row{
  align-items: center;
}
.tp-r12 #th-contacts #inputContactId{
  font-weight: 900 !important;
}
.tp-r12 #th-contacts .col-form-label{
  font-size: 12px !important;
  font-weight: 900 !important;
  color:#334155 !important;
}
.tp-r12 #th-contacts .form-control,.tp-r12 #th-contacts .custom-select,.tp-r12 #th-contacts select{
  width:100%;
  border-radius: var(--th-radius) !important;
  border: 1px solid rgba(226,232,240,.95) !important;
  background:#fff !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: var(--th-text) !important;
  box-shadow: 0 10px 22px rgba(15,23,42,.04) !important;
  transition: box-shadow .18s ease, border-color .18s ease, transform .12s ease;
  min-height: 44px;
}
.tp-r12 #th-contacts .form-control:focus,.tp-r12 #th-contacts .custom-select:focus,.tp-r12 #th-contacts select:focus{
  border-color: rgba(26,43,93,.40) !important;
  box-shadow: var(--th-focus), 0 14px 34px rgba(15,23,42,.08) !important;
  outline: none !important;
}
.tp-r12 #inputPhone{
  text-align: right !important;
  direction: ltr !important;
  padding-right: 14px !important;
  font-variant-numeric: tabular-nums;
}
.tp-r12 #th-contacts select{
  background-image: linear-gradient(45deg, transparent 50%, rgba(100,116,139,.9) 50%),
                    linear-gradient(135deg, rgba(100,116,139,.9) 50%, transparent 50%),
                    linear-gradient(to right, transparent, transparent) !important;
  background-position: calc(100% - 18px) calc(1em + 2px),
                       calc(100% - 13px) calc(1em + 2px),
                       calc(100% - 2.6em) 0.5em !important;
  background-size: 5px 5px, 5px 5px, 1px 1.6em !important;
  background-repeat: no-repeat !important;
}
.tp-r12 #th-contacts .form-group{ margin-bottom: 12px; }
.tp-r12 #th-contacts .controls.form-check label{
  font-size: 13px;
  font-weight: 850;
  color: var(--th-text);
}
.tp-r12 #th-contacts .form-check-input{
  width: 18px;
  height: 18px;
  accent-color: var(--th-navy);
}
.tp-r12 #th-contacts .btn{
  border-radius: var(--th-radius) !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.tp-r12 #th-contacts .btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(15,23,42,.10);
}
.tp-r12 #th-contacts .btn:active{ transform: translateY(0); }
.tp-r12 #th-contacts .btn-primary{
  background: linear-gradient(135deg, var(--th-navy), var(--th-navy-dark)) !important;
  border: 1px solid rgba(26,43,93,.30) !important;
  color:#fff !important;
}
.tp-r12 #th-contacts .btn-primary:hover{
  box-shadow: 0 18px 44px rgba(26,43,93,.20) !important;
}
.tp-r12 #th-contacts .btn-default{
  background:#fff !important;
  border: 1px solid rgba(226,232,240,.95) !important;
  color: var(--th-text) !important;
}
.tp-r12 #th-contacts .alert{
  border-radius: var(--th-radius) !important;
  border: 1px solid var(--th-border) !important;
  box-shadow: 0 10px 22px rgba(15,23,42,.05) !important;
}

.tp-r12{
            --th-navy:#1a2b5d;
            --th-navy-dark:#152348;
            --th-gold:#dd9933;

            --th-bg:#f6f8fc;
            --th-card:#ffffff;
            --th-text:#0f172a;
            --th-muted:#64748b;

            --th-border:rgba(226,232,240,.95);
            --th-shadow-sm:0 10px 25px rgba(15,23,42,.06);

            --th-radius:8px;
            --th-focus: 0 0 0 4px rgba(26,43,93,.12);
        }
.tp-r12 #th-sso *{ box-sizing:border-box; }
.tp-r12 #th-sso .card{
            background: var(--th-card);
            border: 1px solid var(--th-border);
            border-radius: var(--th-radius);
            box-shadow: var(--th-shadow-sm);
            overflow:hidden;
            margin-bottom: 14px;
        }
.tp-r12 #th-sso .card-body{
            padding: 14px 14px;
        }
.tp-r12 #th-sso .card-title{
            font-size: 14px;
            font-weight: 950;
            color: var(--th-navy);
            margin-bottom: 10px;
            letter-spacing: -.01em;
        }
.tp-r12 #th-sso .alert{
            border-radius: var(--th-radius) !important;
            border: 1px solid var(--th-border) !important;
            box-shadow: 0 10px 22px rgba(15,23,42,.05) !important;
        }
.tp-r12 #th-sso .th-sso-row{
            display:flex;
            align-items:center;
            justify-content:space-between;
            gap: 12px;
            padding: 12px 12px;
            border-radius: var(--th-radius);
            border: 1px solid var(--th-border);
            background:
                radial-gradient(circle at top left, rgba(26,43,93,.06), transparent 55%),
                radial-gradient(circle at bottom right, rgba(221,153,51,.08), transparent 60%),
                rgba(15,23,42,.02);
            box-shadow: 0 10px 22px rgba(15,23,42,.04);
        }
.tp-r12 #th-sso .th-sso-meta{
            display:flex;
            flex-direction:column;
            gap: 4px;
            min-width: 0;
        }
.tp-r12 #th-sso .th-sso-label{
            display:flex;
            align-items:center;
            gap: 8px;
            font-weight: 950;
            color: var(--th-text);
            letter-spacing: -.01em;
        }
.tp-r12 #th-sso .th-chip{
            display:inline-flex;
            align-items:center;
            gap: 8px;
            padding: 6px 10px;
            border-radius: 999px;
            border: 1px solid rgba(226,232,240,.95);
            background: #fff;
            box-shadow: 0 10px 22px rgba(15,23,42,.04);
            font-size: 12px;
            font-weight: 900;
            white-space: nowrap;
            margin-left: 6px;
        }
.tp-r12 #th-sso .th-chip--on{
            color: #0f5132;
            border-color: rgba(34,197,94,.22);
            background: rgba(34,197,94,.10);
        }
.tp-r12 #th-sso .th-chip--off{
            color: var(--th-muted);
            border-color: rgba(100,116,139,.18);
            background: rgba(100,116,139,.08);
        }
.tp-r12 #th-sso .th-sso-desc{
            font-size: 12.5px;
            font-weight: 750;
            color: var(--th-muted);
            line-height: 1.5;
        }
.tp-r12 #th-sso input.toggle-switch-success{
            transform: scale(1.04);
            margin: 0;
        }
.tp-r12 #th-sso .th-sso-foot{
            margin: 10px 0 0;
            padding: 10px 12px;
            border-radius: var(--th-radius);
            border: 1px dashed rgba(100,116,139,.35);
            background: rgba(15,23,42,.02);
            color: var(--th-muted);
            font-size: 12.5px;
            font-weight: 750;
        }

.tp-r12{
  --th-navy:#1a2b5d;
  --th-navy-dark:#152348;
  --th-gold:#dd9933;
  --th-card:#ffffff;
  --th-soft:#f8fafc;
  --th-border:#e2e8f0;
  --th-text:#0f172a;
  --th-muted:#64748b;
  --th-shadow: 0 18px 55px rgba(15,23,42,.10);
  --th-shadow2: 0 10px 28px rgba(15,23,42,.08);
  --th-radius:18px;
}
.tp-r12 #th-emails{ padding: 16px 0 28px; }
.tp-r12 #th-emails .th-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
  box-sizing: border-box;
}
.tp-r12 #th-emails *{ box-sizing:border-box; }
.tp-r12 #th-emails .th-hero{
  background: linear-gradient(135deg, var(--th-navy), var(--th-navy-dark));
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(26,43,93,.18);
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}
.tp-r12 #th-emails .th-hero:before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(circle at 12% 18%, rgba(221,153,51,.20), transparent 45%),
    radial-gradient(circle at 86% 70%, rgba(255,255,255,.12), transparent 55%);
  opacity:.55;
  pointer-events:none;
}
.tp-r12 #th-emails .th-hero-inner{ position:relative; display:flex; gap:12px; align-items:flex-start; }
.tp-r12 #th-emails .th-hero-ico{
  width:44px; height:44px; flex:0 0 44px;
  border-radius:14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  display:flex; align-items:center; justify-content:center;
  color:#fff;
}
.tp-r12 #th-emails .th-hero h3{ margin:0; color:#fff; font-weight:900; font-size:18px; }
.tp-r12 #th-emails .th-hero p{ margin:4px 0 0; color: rgba(255,255,255,.82); font-weight:650; font-size:13px; line-height:1.45; }
.tp-r12 #th-emails .th-stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 14px;
}
.tp-r12 #th-emails .th-stat{
  background: var(--th-card);
  border: 1px solid var(--th-border);
  border-radius: 14px;
  padding: 14px 14px 14px 14px;
  box-shadow: 0 6px 18px rgba(15,23,42,.05);
  position:relative;
  overflow:hidden;
}
.tp-r12 #th-emails .th-stat:before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:4px;
  background: var(--th-gold);
  opacity:.95;
}
.tp-r12 #th-emails .th-stat-top{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.tp-r12 #th-emails .th-stat-label{
  font-size:11px;
  font-weight:900;
  letter-spacing:.45px;
  text-transform:uppercase;
  color: var(--th-muted);
}
.tp-r12 #th-emails .th-stat-val{
  margin-top: 6px;
  font-size: 26px;
  font-weight: 950;
  color: var(--th-navy);
  line-height: 1;
}
.tp-r12 #th-emails .th-stat-ico{
  width:38px; height:38px;
  border-radius:12px;
  background: rgba(26,43,93,.06);
  border: 1px solid rgba(26,43,93,.10);
  display:flex; align-items:center; justify-content:center;
  color: var(--th-navy);
  flex:0 0 auto;
}
.tp-r12 #th-emails .th-filters{
  background: var(--th-card);
  border: 1px solid var(--th-border);
  border-radius: 14px;
  box-shadow: var(--th-shadow2);
  padding: 14px;
  margin-bottom: 14px;
}
.tp-r12 #th-emails .th-f-row{
  display:flex;
  gap:10px;
  align-items:flex-end;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  padding-bottom: 2px;
}
.tp-r12 #th-emails .th-f-row::-webkit-scrollbar{ height: 6px; }
.tp-r12 #th-emails .th-f-row::-webkit-scrollbar-thumb{ background: rgba(100,116,139,.25); border-radius: 99px; }
.tp-r12 #th-emails .th-f-item{ min-width: 180px; flex: 0 0 auto; }
.tp-r12 #th-emails .th-f-item label{
  display:block;
  font-weight:900;
  font-size:11px;
  color: var(--th-text);
  text-transform:uppercase;
  letter-spacing:.45px;
  margin-bottom: 6px;
}
.tp-r12 #th-emails .th-input{
  width:100%;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid var(--th-border);
  background: #fff;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--th-text);
  outline:none;
  transition: .2s ease;
}
.tp-r12 #th-emails .th-input:focus{
  border-color: rgba(26,43,93,.50);
  box-shadow: 0 0 0 3px rgba(26,43,93,.08);
}
.tp-r12 #th-emails .th-f-row2{
  display:flex;
  gap:10px;
  align-items:flex-end;
  margin-top: 10px;
}
.tp-r12 #th-emails .th-search{ flex:1; min-width: 0; }
.tp-r12 #th-emails .th-reset{
  flex:0 0 auto;
  min-width: 140px;
}
.tp-r12 #th-emails .th-btn{
  width:100%;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid var(--th-border);
  background: #fff;
  color: var(--th-navy);
  font-weight: 950;
  font-size: 13px;
  cursor:pointer;
  display:inline-flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  transition: .2s ease;
}
.tp-r12 #th-emails .th-btn:hover{
  background: var(--th-soft);
  border-color: rgba(26,43,93,.25);
}
.tp-r12 #th-emails .th-card{
  background: var(--th-card);
  border: 1px solid var(--th-border);
  border-radius: 14px;
  box-shadow: var(--th-shadow);
  overflow:hidden;
}
.tp-r12 #th-emails .th-card-head{
  padding: 14px 14px;
  border-bottom: 1px solid var(--th-border);
  display:flex; align-items:center; gap:10px;
}
.tp-r12 #th-emails .th-card-head .ico{
  width:40px; height:40px;
  border-radius: 12px;
  background: rgba(26,43,93,.06);
  border: 1px solid rgba(26,43,93,.10);
  display:flex; align-items:center; justify-content:center;
  color: var(--th-navy);
}
.tp-r12 #th-emails .th-card-head .txt{ line-height:1.15; }
.tp-r12 #th-emails .th-card-head .txt b{ display:block; font-size:14px; font-weight:950; color: var(--th-text); }
.tp-r12 #th-emails .th-card-head .txt small{ display:block; margin-top:2px; color: var(--th-muted); font-weight:700; font-size:12px; }
.tp-r12 #th-emails .th-table-wrap{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
}
.tp-r12 #th-emails .th-table-wrap::-webkit-scrollbar{ height: 8px; }
.tp-r12 #th-emails .th-table-wrap::-webkit-scrollbar-thumb{ background: rgba(100,116,139,.25); border-radius: 99px; }
.tp-r12 #tableEmailsList{
  width:100% !important;
  min-width: 720px; 
}
.tp-r12 #tableEmailsList thead th{
  font-size: 11px !important;
  font-weight: 950 !important;
  text-transform: uppercase;
  letter-spacing: .45px;
  color: var(--th-muted) !important;
  background: var(--th-soft) !important;
  border-bottom: 1px solid var(--th-border) !important;
  padding: 14px 14px !important;
  white-space: nowrap;
}
.tp-r12 #tableEmailsList tbody td{
  padding: 14px 14px !important;
  vertical-align: middle !important;
  border-top: 1px solid rgba(226,232,240,.85) !important;
  color: var(--th-text);
}
.tp-r12 #tableEmailsList tbody tr:hover{ background: rgba(26,43,93,.02) !important; cursor:pointer; }
.tp-r12 #tableEmailsList td.th-subject{
  font-weight: 800;
  color: var(--th-text);
}
.tp-r12 #tableEmailsList .th-clip{ margin-left: 8px; color: var(--th-muted); }
.tp-r12 #tableEmailsList .th-view-btn{
  border-radius: 999px;
  border: 1px solid rgba(26,43,93,.18);
  background: #fff;
  color: var(--th-navy);
  font-weight: 950;
  font-size: 13px;
  padding: 10px 14px;
  min-height: 38px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  white-space: nowrap;
}
.tp-r12 #tableEmailsList .th-view-btn:hover{
  background: var(--th-soft);
  border-color: rgba(26,43,93,.25);
}
.tp-r12 #th-emails .dataTables_filter,.tp-r12 #th-emails .dataTables_length{ display:none !important; }
.tp-r12 #th-emails .dataTables_info{
  padding: 12px 14px !important;
  color: var(--th-muted) !important;
  font-weight: 700 !important;
}
.tp-r12 #th-emails .dataTables_paginate{
  padding: 10px 14px 14px !important;
}
.tp-r12 #th-emails .dataTables_paginate ul.pagination{
  display:flex !important;
  flex-wrap: nowrap !important;
  gap: 8px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  padding-bottom: 6px;
  margin: 0 !important;
}
.tp-r12 #th-emails .dataTables_paginate ul.pagination::-webkit-scrollbar{ height: 6px; }
.tp-r12 #th-emails .dataTables_paginate ul.pagination::-webkit-scrollbar-thumb{ background: rgba(100,116,139,.25); border-radius: 99px; }
.tp-r12 #th-emails .dataTables_paginate .page-item .page-link{
  border-radius: 12px !important;
  border: 1px solid var(--th-border) !important;
  color: var(--th-navy) !important;
  font-weight: 900 !important;
  min-width: 40px;
  height: 40px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.tp-r12 #th-emails .dataTables_paginate .page-item.active .page-link{
  background: linear-gradient(135deg, var(--th-gold), #f3b24a) !important;
  border-color: var(--th-gold) !important;
  color:#fff !important;
}
.tp-r12 #th-emails .dataTables_paginate .page-item.disabled .page-link{
  opacity: .5;
}
@media (max-width: 820px){.tp-r12 #tableEmailsList{ min-width: 680px; }
.tp-r12 #tableEmailsList thead th:last-child,.tp-r12 #tableEmailsList tbody td:last-child{
    position: sticky;
    right: 0;
    background: #fff;
    z-index: 3;
    border-left: 1px solid rgba(226,232,240,.85);
  }
.tp-r12 #tableEmailsList thead th:last-child{ background: var(--th-soft); z-index: 4; }
}
@media (max-width: 520px){.tp-r12 #th-emails .th-wrap{ padding: 0 12px; }
.tp-r12 #th-emails .th-hero{ padding: 14px; border-radius: 16px; }
.tp-r12 #th-emails .th-hero-ico{ width:40px; height:40px; border-radius: 12px; }
.tp-r12 #th-emails .th-hero h3{ font-size: 16px; }
.tp-r12 #th-emails .th-hero p{ font-size: 12px; }
.tp-r12 #th-emails .th-stat{ padding: 12px; }
.tp-r12 #th-emails .th-stat-ico{ width:34px; height:34px; border-radius: 11px; }
.tp-r12 #th-emails .th-stat-val{ font-size: 22px; margin-top: 0; line-height: 1; }
.tp-r12 #th-emails .th-stat-label{
    display:block;
    margin-top: 6px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .40px;
    text-transform: uppercase;
    color: var(--th-muted);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
.tp-r12 #th-emails .th-filters{ padding: 12px; }
.tp-r12 #th-emails .th-f-item{ min-width: 160px; }
.tp-r12 #th-emails .th-input{ min-height: 38px; font-size: 13px; border-radius: 12px; }
.tp-r12 #th-emails .th-btn{ min-height: 38px; font-size: 12px; }
.tp-r12 #tableEmailsList .th-view-btn{
    font-size: 12px;
    padding: 9px 12px;
    min-height: 36px;
  }
}
@media (hover:none) and (pointer:coarse){.tp-r12 #th-emails .th-input{ font-size: 16px; }
}
.tp-r12 #tableEmailsList td,.tp-r12 #tableEmailsList th{
  position: static !important;
}
.tp-r12 #tableEmailsList td:last-child,.tp-r12 #tableEmailsList td:last-child *{
  position: static !important;
  transform: none !important;
}

.tp-r12{
  --th-navy:#1a2b5d;
  --th-navy-dark:#152348;
  --th-gold:#dd9933;

  --th-bg:#f6f8fc;
  --th-card:#ffffff;
  --th-text:#0f172a;
  --th-muted:#64748b;
  --th-border:rgba(226,232,240,.95);

  --th-shadow:0 18px 45px rgba(15,23,42,.08);
  --th-shadow-sm:0 10px 25px rgba(15,23,42,.06);

  --th-radius:8px;
  --th-focus:rgba(221,153,51,.25);

  --th-good:#16a34a;
  --th-bad:#dc2626;
}
.tp-r12 #th-user-security{ max-width: 920px; margin: 0 auto; padding: 18px 14px 45px; }
.tp-r12 #th-user-security *{ box-sizing: border-box; }
.tp-r12 #th-user-security .th-hero{
  border-radius: var(--th-radius);
  border: 1px solid var(--th-border);
  background:
    radial-gradient(900px 260px at 10% -10%, rgba(221,153,51,.20), transparent 60%),
    radial-gradient(900px 260px at 90% 0%, rgba(26,43,93,.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.72));
  box-shadow: var(--th-shadow-sm);
  padding: 16px;
  overflow: hidden;
}
.tp-r12 #th-user-security .th-hero-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.tp-r12 #th-user-security .th-title{
  margin:0;
  font-weight: 1000;
  color: var(--th-navy);
  letter-spacing: -.02em;
  font-size: 1.25rem;
  line-height: 1.15;
}
.tp-r12 #th-user-security .th-sub{
  margin: 6px 0 0;
  color: var(--th-muted);
  font-weight: 700;
  font-size: .95rem;
  max-width: 760px;
}
.tp-r12 #th-user-security .th-chiprow{
  display:flex; gap:8px; flex-wrap:wrap; align-items:center;
}
.tp-r12 #th-user-security .th-chip{
  display:inline-flex; align-items:center; gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(26,43,93,.12);
  background: rgba(26,43,93,.06);
  color: var(--th-navy);
  font-weight: 900;
  font-size: .85rem;
  white-space: nowrap;
}
.tp-r12 #th-user-security .th-stack{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.tp-r12 #th-user-security .th-card{
  background: var(--th-card);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius);
  box-shadow: var(--th-shadow-sm);
  overflow: hidden;
}
.tp-r12 #th-user-security .th-card-hd{
  padding: 14px 16px;
  border-bottom: 1px solid var(--th-border);
  background: linear-gradient(180deg, rgba(246,248,252,.9), rgba(255,255,255,.9));
  display:flex; align-items:center; justify-content:space-between; gap: 12px;
  flex-wrap: wrap;
}
.tp-r12 #th-user-security .th-card-hd h3{
  margin:0;
  font-size: 1rem;
  font-weight: 1000;
  color: var(--th-text);
}
.tp-r12 #th-user-security .th-card-hd .th-meta{
  color: var(--th-muted);
  font-weight: 800;
  font-size: .9rem;
}
.tp-r12 #th-user-security .th-card-bd{ padding: 14px 16px; }
.tp-r12 #th-user-security .th-divider{
  height: 1px;
  background: rgba(226,232,240,.95);
  margin: 14px 0;
}
.tp-r12 #th-user-security label{
  color: var(--th-text);
  font-weight: 900;
  font-size: .92rem;
  margin-bottom: 6px;
}
.tp-r12 #th-user-security .form-group{ margin-bottom: 12px; }
.tp-r12 #th-user-security .th-input,.tp-r12 #th-user-security .th-select{
  width: 100%;
  height: 44px;
  border-radius: var(--th-radius);
  border: 1px solid rgba(148,163,184,.35);
  background: #fff;
  color: var(--th-text);
  padding: 9px 12px;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
  font-weight: 800;
}
.tp-r12 #th-user-security .th-input:focus,.tp-r12 #th-user-security .th-select:focus{
  border-color: rgba(221,153,51,.85);
  box-shadow: 0 0 0 4px var(--th-focus);
}
.tp-r12 #th-user-security .th-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  align-items:center;
}
.tp-r12 #th-user-security .th-btn{
  border: 0;
  border-radius: var(--th-radius);
  padding: 10px 12px;
  font-weight: 1000;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  text-decoration:none !important;
}
.tp-r12 #th-user-security .th-btn:hover{ transform: translateY(-1px); }
.tp-r12 #th-user-security .th-btn:active{ transform: translateY(0); }
.tp-r12 #th-user-security .th-btn-primary{
  background: linear-gradient(135deg, var(--th-navy), var(--th-navy-dark));
  color: #fff;
  box-shadow: 0 14px 30px rgba(26,43,93,.18);
}
.tp-r12 #th-user-security .th-btn-ghost{
  background: #fff;
  color: var(--th-text);
  border: 1px solid rgba(226,232,240,.95);
}
.tp-r12 #th-user-security .th-btn-good{
  background: rgba(22,163,74,.12);
  color: #14532d;
  border: 1px solid rgba(22,163,74,.22);
}
.tp-r12 #th-user-security .th-btn-danger{
  background: rgba(220,38,38,.10);
  color: #7f1d1d;
  border: 1px solid rgba(220,38,38,.22);
}
.tp-r12 #th-user-security .th-state{
  display:flex; align-items:center; gap: 8px;
  color: var(--th-muted);
  font-weight: 900;
  font-size: .92rem;
  margin: 0 0 10px;
}
.tp-r12 #th-user-security .th-dot{
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(100,116,139,.7);
  box-shadow: 0 0 0 4px rgba(100,116,139,.15);
}
.tp-r12 #th-user-security .th-dot.on{
  background: rgba(22,163,74,.95);
  box-shadow: 0 0 0 4px rgba(22,163,74,.18);
}
.tp-r12 #th-user-security .th-dot.off{
  background: rgba(220,38,38,.85);
  box-shadow: 0 0 0 4px rgba(220,38,38,.14);
}
.tp-r12 #th-user-security .th-note{
  border-radius: var(--th-radius);
  border: 1px solid rgba(221,153,51,.22);
  background: rgba(221,153,51,.10);
  padding: 10px 12px;
  color: rgba(15,23,42,.92);
  font-weight: 750;
  font-size: .92rem;
  line-height: 1.45;
}
.tp-r12 #th-user-security .th-muted{ color: var(--th-muted); font-weight: 700; }
.tp-r12 #th-user-security .th-small{ font-size: .9rem; }
@media (max-width: 575px){.tp-r12 #th-user-security{ padding: 14px 10px 34px; }
.tp-r12 #th-user-security .th-hero{ padding: 14px; }
.tp-r12 #th-user-security .th-title{ font-size: 1.15rem; }
}
