/* QC297 Account/Management
 * Page geometry uses .qc-page; child-tab geometry/typography uses the shared
 * .qc-subtabs/.qc-subtab system. This module only owns business-pane styling.
 */
.account-management-pane{min-width:0}
.account-management-section:not(.qc-accordion){padding:10px 0}
.account-management-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:4px 0 12px}
.account-management-section-head h3{margin:0;font-size:1rem;font-weight:850}
.account-management-section-head span{font-size:.78rem;color:#6b7280;text-align:right}
.account-management-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.account-management-toolbar input,.account-management-toolbar select{min-width:0;flex:1 1 180px;border:1px solid #d7dce5;border-radius:12px;padding:10px 12px;background:var(--card,#fff);color:inherit;font:inherit}
.account-management-toolbar button,.account-editor-actions button,.account-profile-self-actions button,.account-own-request-status button{border:0;border-radius:10px;padding:9px 12px;font:inherit;font-weight:700;cursor:pointer;background:#edf2ff;color:#1547a8}
.account-change-card{border:1px solid #e1e5ec;border-radius:14px;background:var(--card,#fff);padding:12px}
.account-change-card strong{display:block}
.account-change-meta{font-size:.82rem;color:#68707d}
.account-personnel-list{display:grid;gap:6px}
.account-personnel-row{
  display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;
  border:1px solid #e1e5ec;border-radius:11px;background:var(--card,#fff);padding:8px 10px;
  cursor:pointer;transition:border-color .14s ease,background-color .14s ease,transform .14s ease;
}
.account-personnel-row:hover{border-color:#bfd0ea;background:#fbfdff}
.account-personnel-row:active{transform:scale(.995)}
.account-personnel-row:focus-visible{outline:2px solid rgba(24,119,242,.35);outline-offset:2px}
.account-personnel-row-main{min-width:0;flex:1 1 auto}
.account-personnel-row-title{display:flex;align-items:baseline;gap:7px;min-width:0}
.account-personnel-row-title strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9rem;line-height:1.2}
.account-personnel-id{flex:0 0 auto;font-size:.72rem;font-weight:800;color:#58708f}
.account-personnel-row-meta{margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem;line-height:1.25;color:#68707d}
.account-personnel-status{
  flex:0 0 auto;border-radius:999px;padding:3px 7px;font-size:.64rem;line-height:1.1;font-weight:800;letter-spacing:.02em;
  background:#eef1f5;color:#667085;
}
.account-personnel-status.active{background:#eaf7ee;color:#20743a}
.account-personnel-status.inactive{background:#f2f4f7;color:#667085}
.account-editor-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.account-change-card.rejected{border-color:#e6a6a6}
.account-personnel-editor{border:1px solid #cbd6e6;border-radius:14px;padding:12px;margin-bottom:12px;background:#f8fbff}
.account-personnel-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.account-personnel-editor-grid label{font-size:.78rem;color:#596273}
.account-personnel-editor-grid input,.account-personnel-editor-grid select{width:100%;box-sizing:border-box;margin-top:4px;border:1px solid #d7dce5;border-radius:10px;padding:9px;font:inherit}
.account-change-diff{margin-top:8px;font-size:.82rem}.account-change-diff div{padding:3px 0}
.account-profile-self-actions{display:flex;justify-content:center;margin:12px 0 0}
.account-own-request-status{margin-top:10px}
.account-own-request-status-line{display:flex;align-items:center;justify-content:space-between;gap:10px;border-left:3px solid #e0b84e;padding:8px 10px;background:#fff9e9;border-radius:8px;font-size:.82rem;color:#596273}
.account-own-request-status-line strong{color:var(--text,#111827)}
.account-own-request-status-line button{flex:0 0 auto;padding:6px 9px;font-size:.76rem}
.account-registration-control-v596{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e1e5ec;border-radius:14px;padding:12px;background:var(--card,#fff)}
.account-registration-copy-v596{min-width:0;flex:1 1 auto;font-size:.84rem;color:#68707d;line-height:1.45}
.account-registration-control-v596 .registration-lock-btn{flex:0 0 auto;width:auto;min-width:220px;max-width:100%;margin:0!important}
.account-server-inline-v596{min-width:0}
.account-server-inline-v596 .server-admin-toolbar{margin-top:2px}
.account-feedback-v596{max-width:760px;margin:0 auto}

@media(max-width:600px){
  .account-personnel-editor-grid{grid-template-columns:1fr}
  .account-management-section-head{align-items:flex-start;flex-direction:column;gap:3px}
  .account-management-toolbar{align-items:stretch;flex-wrap:nowrap}
  .account-management-toolbar input{flex:1 1 auto;min-width:0}
  .account-management-toolbar button{flex:0 0 auto}
  .account-registration-control-v596{align-items:stretch;flex-direction:column}
  .account-registration-control-v596 .registration-lock-btn{width:100%}
}

@media(min-width:1200px){
  .account-management-toolbar{flex-wrap:nowrap}
}

/* Góp ý: tái sử dụng API/handler cũ, nhưng style thuộc module Tài khoản/Quản lý. */
.account-feedback-v596 .support-feedback-label{
  display:block;margin:10px 0 6px;color:var(--text);font-size:13px;font-weight:700;
}
.account-feedback-v596 .support-feedback-input,
.account-feedback-v596 .support-feedback-textarea{
  width:100%;box-sizing:border-box;border:1px solid #cfd8e6;border-radius:10px;
  background:#fff;color:var(--text);font:inherit;font-size:14px;padding:10px 12px;outline:none;
}
.account-feedback-v596 .support-feedback-textarea{min-height:150px;resize:vertical;line-height:1.5}
.account-feedback-v596 .support-feedback-input:focus,
.account-feedback-v596 .support-feedback-textarea:focus{border-color:#8fb3ee;box-shadow:0 0 0 3px rgba(11,87,208,.08)}
.account-feedback-v596 .support-feedback-btn{
  width:100%;min-height:44px;margin-top:12px;border-radius:11px;border:1px solid #0b57d0;
  background:#0b57d0;color:#fff;font:inherit;font-size:14px;font-weight:700;cursor:pointer;
}
.account-feedback-v596 .support-feedback-btn:disabled{opacity:.58;cursor:not-allowed}
.account-feedback-v596 .support-feedback-result{min-height:20px;margin-top:8px;font-size:13px;font-weight:700;color:#20743a;text-align:center}
.account-feedback-v596 .support-feedback-result.error{color:#b42318}
.account-feedback-v596 .support-attach-row{display:flex;align-items:center;gap:10px;margin-top:12px;flex-wrap:wrap}
.account-feedback-v596 .support-attach-btn{
  min-height:42px;border:1px solid #b9cdf5;background:#eef4ff;color:var(--primary);border-radius:10px;
  padding:9px 12px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;
}
.account-feedback-v596 .support-attach-note{color:var(--muted);font-size:12px;line-height:1.4}
.account-feedback-v596 .support-attach-list{display:grid;gap:7px;margin-top:9px}
.account-feedback-v596 .support-attach-item{display:flex;align-items:center;gap:8px;min-width:0;padding:8px 10px;border:1px solid #e1e8f2;background:#f8fbff;border-radius:9px;font-size:12px;color:#344054}
.account-feedback-v596 .support-attach-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-feedback-v596 .support-attach-size{color:var(--muted);white-space:nowrap}
.account-feedback-v596 .support-attach-remove{border:0;background:transparent;color:#b42318;font:inherit;font-size:18px;line-height:1;padding:0 2px;cursor:pointer}
html[data-theme="dark"] .account-feedback-v596 .support-feedback-input,
html[data-theme="dark"] .account-feedback-v596 .support-feedback-textarea{background:#0f141b;color:var(--text);border-color:#3b4655}
html[data-theme="dark"] .account-feedback-v596 .support-attach-item{background:#111821;color:var(--text);border-color:#34404f}
html[data-theme="dark"] .account-feedback-v596 .support-attach-btn{background:#17233a;border-color:#385889;color:#9fc1ff}

/* Inline self-profile editor: view và edit dùng chung đúng một surface, không tạo form ở cuối trang. */
.account-own-profile-surface{min-width:0}
.account-own-profile-view.hidden,.account-own-profile-editor.hidden{display:none!important}
.account-own-profile-editor{
  margin:0;
  scroll-margin-top:96px;
  border-color:#cbd6e6;
  background:var(--card,#fff);
}
.account-own-profile-editor-head{display:flex;flex-direction:column;gap:3px;margin:0 0 12px}
.account-own-profile-editor-head strong{font-size:15px;color:var(--text,#111827)}
.account-own-profile-editor-head span{font-size:12px;line-height:1.4;color:var(--muted,#6b7280)}
.account-own-profile-editor-actions{position:relative;padding-bottom:max(2px,env(safe-area-inset-bottom))}
.account-own-profile-editor-actions button{min-height:42px;flex:1 1 150px}
.account-own-profile-editor-actions button.secondary{background:#eef1f5;color:var(--text,#111827)}

@media(max-width:600px){
  .account-own-profile-editor{padding:11px}
  .account-own-profile-editor-actions{gap:7px}
  .account-own-profile-editor-actions button{flex:1 1 0;min-width:0}
}

html[data-theme="dark"] .account-own-profile-editor{background:var(--card,#111821);border-color:#34404f}
html[data-theme="dark"] .account-own-profile-editor-actions button.secondary{background:#202833;color:var(--text,#e5e7eb)}

/* Account identity content inside the shared app-shell header.
 * Container spacing/height and title/subtitle typography are owned centrally by
 * .app-shell-header-main-v587 / .app-shell-title-v587 / .app-shell-subtitle-v587. */
.account-shell-avatar{
  width:40px!important;height:40px!important;flex:0 0 40px!important;
  border:1px solid var(--line,#e5e7eb);background:#e8eef8;
  color:var(--primary,#1877f2);font-size:16px;font-weight:850;
}
.account-shell-copy{min-width:0;flex:1 1 auto}
.account-shell-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-shell-meta{
  display:flex;align-items:center;gap:5px;min-width:0;max-width:100%;
  margin-top:3px!important;white-space:nowrap;overflow:hidden;
}
.account-shell-role{flex:0 0 auto;font-weight:700;color:#2457a6}
.account-shell-meta-separator{flex:0 0 auto;color:var(--muted,#667085)}
.account-shell-email{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-shell-switch{
  flex:0 0 auto;border:0;background:transparent;color:#1666c5;
  padding:2px 0;margin:-2px 0;font:inherit;font-weight:700;line-height:inherit;
  cursor:pointer;white-space:nowrap;
}
html[data-theme="dark"] .account-shell-role{color:#9fc1ff}
html[data-theme="dark"] .account-shell-switch{color:#8bb8ff}

/* V5.10.9 · Personnel lifecycle: destructive action only lives in detail sheet. */
.account-management-toolbar button.secondary{background:#eef1f5;color:var(--text,#111827)}
.account-management-toolbar button.is-inactive-view{background:#fff4e5;color:#9a4b00}
.qc-detail-action.personnel-danger-action{
  flex:1 1 100%;margin-top:8px;border-color:#d92d20;background:#fff;color:#b42318;
}
.qc-detail-action.personnel-danger-action:hover{background:#fff1f0}
.qc-detail-action.personnel-restore-action{flex:1 1 100%;margin-top:6px}
.qc-detail-action.personnel-danger-action:disabled,
.qc-detail-action.personnel-restore-action:disabled{opacity:.55;cursor:not-allowed;transform:none}
html[data-theme="dark"] .account-management-toolbar button.secondary{background:#202833;color:var(--text,#e5e7eb)}
html[data-theme="dark"] .account-management-toolbar button.is-inactive-view{background:#3a2a17;color:#ffc778}
html[data-theme="dark"] .qc-detail-action.personnel-danger-action{background:#2b1716;border-color:#8f2d28;color:#ffaca6}

/* =========================================================
   V5.10.30 · QUẢN LÝ GỌN, RÕ CẤP
   Nhóm cha chỉ là section label; chức năng con nằm trong card list.
   Tránh kiểu "card trong card", tránh hai nhóm trông như tab con.
   ========================================================= */
#accountPaneManage.qc-accordion-group{
  display:block;
  width:min(100%,1080px);
  margin:0 auto;
  padding:16px 0 4px;
}

/* Nhóm cha: label nhẹ, không phải card. */
.account-manage-group-heading{
  position:relative;
  display:flex;
  align-items:flex-start;
  gap:0;
  min-width:0;
  margin:0 2px 9px;
  padding:1px 0 1px 13px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.account-manage-group-heading::before{
  content:"";
  position:absolute;
  left:0;
  top:2px;
  width:4px;
  height:34px;
  border-radius:999px;
  background:#0866ff;
}
.account-manage-group-heading-system{
  margin-top:27px;
}
.account-manage-group-heading-system::before{background:#7c3aed}
.account-manage-group-icon{display:none!important}
.account-manage-group-copy{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.account-manage-group-copy strong{
  color:var(--text,#101828);
  font-size:17px;
  line-height:1.25;
  font-weight:900;
  letter-spacing:-.01em;
}
.account-manage-group-copy small{
  color:var(--muted,#667085);
  font-size:11.5px;
  line-height:1.35;
  font-weight:500;
}
.account-manage-group-heading::after{display:none!important}

/* Mỗi nhóm là một card list duy nhất; các hàng con nối liền nhau. */
#accountPaneManage > .account-manage-row.qc-accordion{
  width:100%;
  box-sizing:border-box;
  margin:0!important;
  padding:0!important;
  border:1px solid var(--line,#e4e7ec);
  border-top:0;
  border-radius:0;
  background:var(--card,#fff);
  box-shadow:none;
  overflow:hidden;
}
#accountPaneManage > .account-manage-row-first.qc-accordion{
  border-top:1px solid var(--line,#e4e7ec);
  border-radius:15px 15px 0 0;
}
#accountPaneManage > .account-manage-row-last.qc-accordion{
  border-radius:0 0 15px 15px;
}
#accountPaneManage > .account-manage-row.qc-accordion + .account-manage-row.qc-accordion{
  border-top:1px solid color-mix(in srgb,var(--line,#e4e7ec) 78%,transparent);
}

/* Ghi đè style cũ của các section hệ thống để không tạo khe trắng/card thứ hai. */
#accountPaneManage > .server-admin-section.account-manage-row{
  margin-top:0!important;
  padding:0!important;
  background:var(--card,#fff)!important;
}

#accountPaneManage > .account-manage-row .qc-accordion-trigger{
  min-height:70px;
  padding:11px 15px;
  gap:12px;
  background:transparent;
}
#accountPaneManage > .account-manage-row .qc-accordion-trigger:hover{background:#fafcff}
#accountPaneManage > .account-manage-row .qc-accordion-trigger-copy{
  position:relative;
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:3px;
  padding-left:52px;
  flex-wrap:nowrap;
}
#accountPaneManage > .account-manage-row .qc-accordion-trigger-copy::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:40px;
  height:40px;
  border-radius:12px;
  background-color:#eef4ff;
  background-position:center;
  background-repeat:no-repeat;
  background-size:21px 21px;
}
#accountPaneManage > .account-manage-row .qc-accordion-title{
  font-size:15.5px;
  line-height:1.25;
  font-weight:850;
  color:var(--text,#101828);
}
#accountPaneManage > .account-manage-row .qc-accordion-meta{
  max-width:100%;
  color:var(--muted,#667085);
  font-size:11.5px;
  line-height:1.35;
  font-weight:500;
  white-space:normal;
}
#accountPaneManage > .account-manage-row .qc-accordion-chevron{
  width:24px;
  height:24px;
  flex:0 0 24px;
  border-radius:0;
  background:transparent!important;
  color:#667085;
  transition:transform .16s ease,color .16s ease;
}
#accountPaneManage > .account-manage-row .qc-accordion-chevron::before{
  width:7px;height:7px;border-width:2px;transform:rotate(-45deg);
}
#accountPaneManage > .account-manage-row.qc-accordion.is-open > .qc-accordion-trigger .qc-accordion-chevron{
  transform:rotate(90deg);
  color:#0866ff;
  background:transparent!important;
}
#accountPaneManage > .account-manage-row.qc-accordion.is-open > .qc-accordion-trigger{background:#fbfdff}
#accountPaneManage > .account-manage-row .qc-accordion-panel-inner{padding:2px 15px 16px}

/* Icon theo chức năng, vừa đủ nhận diện. */
#accountRegistrationControlSection .qc-accordion-trigger-copy::before{
  background-color:#e8f8ef;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M12 18v-6'/%3E%3Cpath d='M9 15h6'/%3E%3C/svg%3E");
}
#accountPersonnelSection .qc-accordion-trigger-copy::before{
  background-color:#eaf3ff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230866ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}
#accountAdminPushSection .qc-accordion-trigger-copy::before{
  background-color:#fff6df;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e89a00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E");
}
.server-device-section-v56 .qc-accordion-trigger-copy::before{
  background-color:#f1edff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2' width='10' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E");
}
.server-excel-section-v51024 .qc-accordion-trigger-copy::before{
  background-color:#e7f8ee;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 3h10l6 6v12H4z'/%3E%3Cpath d='M14 3v6h6'/%3E%3Cpath d='m8 13 4 5'/%3E%3Cpath d='m12 13-4 5'/%3E%3C/svg%3E");
}

@media(min-width:1200px){
  body.app-shell-active-v587 #identityCard.qc-page{max-width:1180px!important}
}

@media(max-width:700px){
  #accountPaneManage.qc-accordion-group{width:100%;padding:13px 0 2px}
  .account-manage-group-heading{margin:0 4px 8px;padding-left:11px}
  .account-manage-group-heading::before{width:3px;height:31px}
  .account-manage-group-heading-system{margin-top:23px}
  .account-manage-group-copy strong{font-size:16px}
  .account-manage-group-copy small{font-size:11px}

  #accountPaneManage > .account-manage-row.qc-accordion{width:100%;margin:0!important}
  #accountPaneManage > .account-manage-row-first.qc-accordion{border-radius:14px 14px 0 0}
  #accountPaneManage > .account-manage-row-last.qc-accordion{border-radius:0 0 14px 14px}
  #accountPaneManage > .account-manage-row .qc-accordion-trigger{min-height:66px;padding:10px 12px}
  #accountPaneManage > .account-manage-row .qc-accordion-trigger-copy{padding-left:47px;gap:2px}
  #accountPaneManage > .account-manage-row .qc-accordion-trigger-copy::before{width:36px;height:36px;border-radius:10px;background-size:19px 19px}
  #accountPaneManage > .account-manage-row .qc-accordion-title{font-size:14.5px}
  #accountPaneManage > .account-manage-row .qc-accordion-meta{font-size:11px}
  #accountPaneManage > .account-manage-row .qc-accordion-panel-inner{padding:2px 12px 14px}
}

html[data-theme="dark"] .account-manage-group-copy strong{color:var(--text,#e5e7eb)}
html[data-theme="dark"] #accountPaneManage > .account-manage-row.qc-accordion{
  background:var(--card,#111821)!important;
  border-color:#34404f;
}
html[data-theme="dark"] #accountPaneManage > .account-manage-row.qc-accordion + .account-manage-row.qc-accordion{border-top-color:#34404f}
html[data-theme="dark"] #accountPaneManage > .account-manage-row .qc-accordion-trigger:hover,
html[data-theme="dark"] #accountPaneManage > .account-manage-row.qc-accordion.is-open > .qc-accordion-trigger{background:#141d28}

/* Không để lộ nội dung accordion khi đóng. */
#accountPaneManage > .account-manage-row:not(.is-open) > .qc-accordion-panel{display:none!important}
#accountPaneManage > .account-manage-row.is-open > .qc-accordion-panel{display:block!important;overflow:hidden}
