/* KAM administration — approved commercial master composition. */
#tab-kams{--kam-ink:#081d42;--kam-muted:#657a99;--kam-line:#d8e5f4;--kam-blue:#0875ef;--kam-page:#f4f8fd;box-sizing:border-box;min-height:100%;padding:28px;background:var(--kam-page);color:var(--kam-ink);overflow-x:hidden}
#tab-kams,#tab-kams *{box-sizing:border-box}
#tab-kams .kamsManagementHeader{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(420px,.78fr);gap:30px;align-items:center;margin-bottom:26px}
#tab-kams .kamsManagementHeader .eyebrow{margin-bottom:7px;color:#2e80df;font-size:13px;font-weight:900;letter-spacing:.04em}
#tab-kams .kamsManagementHeader h2{margin:0;color:#071735;font-size:40px;line-height:1.03;font-weight:900;letter-spacing:-.025em}
#tab-kams .kamsManagementHeader>div>p{margin:8px 0 0;color:var(--kam-muted);font-size:16px;line-height:1.35}
#tab-kams .kamsHeaderNotice{display:flex;align-items:center;gap:16px;min-height:88px;padding:18px 22px;border:1px solid #c5e0ff;border-radius:14px;background:#edf7ff;color:#376797;box-shadow:0 6px 16px rgba(39,107,178,.04)}
#tab-kams .kamsHeaderNotice>span,#tab-kams .kamsAssignmentCard h3>span{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:#187ce2;color:#fff;font-family:Georgia,serif;font-size:21px;font-weight:900}
#tab-kams .kamsHeaderNotice p{margin:0;font-size:15px;line-height:1.45}
#tab-kams .kamsHeaderNotice strong{color:#0d3771;font-weight:900}
#tab-kams .kamsMetrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:24px}
#tab-kams .kamsMetricCard{position:relative;display:flex;align-items:center;gap:24px;min-height:112px;padding:18px 24px;border:1px solid var(--kam-line);border-radius:14px;background:#fff;box-shadow:0 8px 20px rgba(25,67,117,.055)}
#tab-kams .kamsMetricIcon{display:grid;place-items:center;flex:0 0 66px;width:66px;height:66px;border-radius:14px;background:#dbf7e9;color:#0c9e5d;font-size:33px;font-weight:900}
#tab-kams .kamsMetricIcon svg{width:35px;height:35px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#tab-kams .kamsMetricCard.inactive .kamsMetricIcon{background:#ffe1e7;color:#e72f4e}
#tab-kams .kamsMetricCard.unknown .kamsMetricIcon{background:#e8edf3;color:#63748e;border-radius:13px}
#tab-kams .kamsMetricCard p{margin:0 0 5px;color:#526b8f;font-size:15px;font-weight:700}
#tab-kams .kamsMetricCard strong{display:block;color:var(--kam-ink);font-size:34px;line-height:1;font-weight:900}
#tab-kams .kamsMetricInfo{position:absolute;right:22px;top:50%;display:grid;place-items:center;width:23px;height:23px;margin-top:-12px;border:2px solid #587398;border-radius:50%;color:#587398;font-family:Georgia,serif;font-weight:900}
#tab-kams .kamsManagementWorkspace{display:grid;grid-template-columns:minmax(0,1.58fr) minmax(360px,1fr);gap:24px;align-items:start}
#tab-kams .panel{border:1px solid var(--kam-line)!important;border-radius:15px!important;background:#fff!important;box-shadow:0 8px 24px rgba(25,67,117,.055)!important;color:var(--kam-ink)!important}
#tab-kams .kamsRegisteredCard{min-width:0;padding:24px 26px 26px}
#tab-kams .kamsCardTitle{display:flex;align-items:center;justify-content:space-between;gap:16px}
#tab-kams .kamsCardTitle h3{margin:0;color:var(--kam-ink);font-size:25px;line-height:1.2;font-weight:900}
#tab-kams .kamsCardTitle small{color:#6d82a0;font-size:13px}
#tab-kams .kamsExportButton{display:flex;align-items:center;justify-content:center;gap:10px;min-width:146px;height:44px;border:1px solid #c8d8eb!important;border-radius:10px!important;background:#fff!important;color:#15345f!important;font-size:14px;font-weight:850}
#tab-kams .kamsFilters{display:grid;grid-template-columns:minmax(0,1fr) 235px;gap:18px;align-items:end;margin:28px 0 18px}
#tab-kams .kamsFilters .field{position:relative;margin:0}
#tab-kams .kamsFilters label{display:block;margin:0 0 7px;color:var(--kam-ink);font-size:13px;font-weight:850}
#tab-kams .kamsFilters input,#tab-kams .kamsFilters select,#tab-kams .kamsCreateForm input,#tab-kams .kamsManagementTable input{width:100%;height:48px;border:1px solid #c9d8e9!important;border-radius:9px!important;background:#fff!important;color:var(--kam-ink)!important;font-size:14px}
#tab-kams .kamsSearchField>span{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:#6983a7;font-size:27px;line-height:1;pointer-events:none}
#tab-kams .kamsSearchField input{padding-left:52px!important}
#tab-kams .srOnly{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
#tab-kams .kamsTableScroll{width:100%;overflow-x:auto;border:1px solid #d9e5f2;border-radius:12px}
#tab-kams .kamsManagementTable{width:100%;min-width:700px;border-collapse:collapse;background:#fff;color:var(--kam-ink)}
#tab-kams .kamsManagementTable th{padding:14px 18px;background:#eff5fc;color:#244b79;font-size:13px;font-weight:850;text-align:left}
#tab-kams .kamsManagementTable th:nth-child(1){width:29%}
#tab-kams .kamsManagementTable th:nth-child(2){width:36%}
#tab-kams .kamsManagementTable th:nth-child(3){width:19%}
#tab-kams .kamsManagementTable th:nth-child(4){width:16%;text-align:right}
#tab-kams .kamsManagementTable td{height:51px;padding:9px 18px;border-top:1px solid #dce7f3;color:#4c6587;font-size:13px;vertical-align:middle}
#tab-kams .kamsManagementTable td:first-child strong{color:#203b63;font-weight:800}
#tab-kams .kamsManagementTable td:nth-child(2){white-space:nowrap}
#tab-kams .kamsStatusPill{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:88px;padding:7px 13px;border-radius:999px;background:#daf7e7;color:#17824d;font-weight:850}
#tab-kams .kamsStatusPill.inactive{background:#ffe8ca;color:#9b650b}
#tab-kams .kamsStatusPill i{width:9px;height:9px;border-radius:50%;background:#13aa63}
#tab-kams .kamsStatusPill.inactive i{background:#e49a16}
#tab-kams .kamsRowActions{position:relative;display:flex;align-items:center;justify-content:flex-end;gap:9px}
#tab-kams .kamsIconButton{display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:8px;background:transparent;color:#3e608a;font-size:21px;font-weight:850;cursor:pointer}
#tab-kams .kamsIconButton:hover,#tab-kams .kamsIconButton:focus-visible{background:#edf5ff;color:#0875ef}
#tab-kams .kamsIconButton:disabled{cursor:wait;opacity:.5}
#tab-kams .kamsActionMenu{position:absolute;z-index:5;right:0;top:38px;display:grid;min-width:142px;padding:6px;border:1px solid #d4e1ef;border-radius:10px;background:#fff;box-shadow:0 12px 28px rgba(21,51,88,.16)}
#tab-kams .kamsActionMenu[hidden]{display:none}
#tab-kams .kamsActionMenu button{padding:9px 10px;border:0;border-radius:7px;background:#fff;color:#28486f;text-align:left;font-weight:750;cursor:pointer}
#tab-kams .kamsActionMenu button:hover{background:#eef6ff}
#tab-kams .kamsActionMenu button.danger{color:#c52f48}
#tab-kams .kamsEmptyState{height:120px!important;text-align:center;color:#7185a1!important}
#tab-kams .kamsCountSummary{margin:24px 2px 0;color:#67809f;font-size:13px}
#tab-kams .kamsManagementSidebar{display:grid;gap:22px;min-width:0}
#tab-kams .kamsCreateCard{padding:24px 26px 26px}
#tab-kams .kamsCreateForm{display:grid;gap:23px;margin-top:28px}
#tab-kams .kamsCreateForm label{display:block;margin-bottom:8px;color:var(--kam-ink);font-size:13px;font-weight:850}
#tab-kams .kamsCreateForm .btn{width:100%;min-height:58px;border-radius:10px!important;background:linear-gradient(135deg,#1478ef,#086ae5)!important;color:#fff!important;font-size:18px;font-weight:850;box-shadow:0 9px 18px rgba(8,112,235,.18)}
#tab-kams .kamsOperationStatus{min-height:18px;margin:0;color:#238052;font-size:12px}
#tab-kams .kamsOperationStatus.error{color:#bd2d46}
#tab-kams .kamsAssignmentCard{display:grid;grid-template-columns:minmax(0,1fr) 100px;align-items:center;gap:14px;min-height:190px;padding:24px 26px;border:1px solid #c4e0ff;border-radius:15px;background:#edf7ff;color:#3d699b;box-shadow:0 8px 22px rgba(24,102,182,.05)}
#tab-kams .kamsAssignmentCard h3{display:flex;align-items:center;gap:12px;margin:0 0 18px;color:#1871cf;font-size:18px;font-weight:900}
#tab-kams .kamsAssignmentCard h3>span{width:28px;height:28px;flex-basis:28px;font-size:19px}
#tab-kams .kamsAssignmentCard p{margin:0;font-size:14px;line-height:1.6}
#tab-kams .kamsAssignmentCard strong{color:#154b88}
#tab-kams .kamsCalendarMark{position:relative;display:grid;place-items:center;justify-self:end;width:68px;height:62px;border-radius:8px;background:linear-gradient(#4285f4 0 24%,#fff 24%);box-shadow:0 5px 13px rgba(32,83,143,.14);color:#286fc8;font-size:25px}
#tab-kams .kamsCalendarMark span{position:absolute;right:-10px;bottom:-10px;display:grid;place-items:center;width:31px;height:31px;border:3px solid #edf7ff;border-radius:50%;background:#41b85d;color:#fff;font-size:18px;font-weight:900}

@media(max-width:1024px){
 #tab-kams{padding:22px 18px}
 #tab-kams .kamsManagementHeader{grid-template-columns:1fr}
 #tab-kams .kamsManagementWorkspace{grid-template-columns:1fr}
 #tab-kams .kamsManagementSidebar{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
 #tab-kams{padding:16px 10px}
 #tab-kams .kamsManagementHeader{gap:16px;margin-bottom:18px}
 #tab-kams .kamsManagementHeader h2{font-size:31px}
 #tab-kams .kamsManagementHeader>div>p{font-size:14px}
 #tab-kams .kamsHeaderNotice{min-height:auto;padding:14px}
 #tab-kams .kamsMetrics{grid-template-columns:1fr;gap:10px}
 #tab-kams .kamsMetricCard{min-height:86px;padding:12px 15px}
 #tab-kams .kamsMetricIcon{width:54px;height:54px;flex-basis:54px}
 #tab-kams .kamsRegisteredCard,#tab-kams .kamsCreateCard{padding:18px 14px}
 #tab-kams .kamsCardTitle{align-items:flex-start;flex-direction:column}
 #tab-kams .kamsExportButton{width:100%}
 #tab-kams .kamsFilters{grid-template-columns:1fr;gap:12px;margin-top:18px}
 #tab-kams .kamsManagementSidebar{grid-template-columns:1fr}
 #tab-kams .kamsAssignmentCard{grid-template-columns:1fr;padding:18px}
 #tab-kams .kamsCalendarMark{justify-self:center}
}
