/* Merged from src/css/permissions.css */
::-webkit-input-placeholder {
    font-style: italic;
}

:-moz-placeholder {
    font-style: italic;
}

::-moz-placeholder {
    font-style: italic;
}

:-ms-input-placeholder {
    font-style: italic;
}

th {
    font-size: 12px;
    font-weight: normal;
    padding-bottom: 10px;
    border-bottom: 1px solid rgb(205, 208, 212);
}

td:not(:first-child) {
    padding-left: 10px;
}

th:not(:first-child) {
    padding-left: 10px;
}

td {
    font-size: 14px;
    padding-bottom: 10px;
}

tr {
    padding-bottom: 10px;
}

tr .hidden-menu {
    visibility: hidden;
}

tr:hover .hidden-menu {
    visibility: visible;
}

.swal2-confirm {
    line-height: 5px;
}

.swal2-cancel {
    line-height: 5px;
}

tbody>tr:hover {
    background-color: var(--da-surface-alt);
}

th:hover {
    border-right: 1px solid rgb(205, 208, 212);
    background-color: var(--da-surface-alt);
}

.textBox {
    border-radius: 0;
    background-color: var(--da-surface-alt);
    font-size: 14px;
    outline: none;
    width: 100%;
    border: 0;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 10px;
}

/* Style for Users container and panel */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: var(--da-surface-alt);
    margin: 0;
    padding: 0;
    color: var(--da-text);
}

.container {
    display: flex;
    height: 100vh;
}

/* Left panel - User list */
.sidebar {
    width: 40%;
    background-color: var(--da-surface);
    border-right: 1px solid var(--da-border-strong);
    padding: 20px;
    overflow-y: auto;
}

.sidebar h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #0078d4;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: var(--da-surface-alt);
}

th,
td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid var(--da-border-strong);
}

th {
    font-size: 14px;
    color: var(--da-text-secondary);
}

td {
    font-size: 14px;
}

tr:hover {
    background-color: var(--da-surface-alt);
    cursor: pointer;
}

/* Button style */
.btn {
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.btn-primary {
    background-color: #0078d4;
    color: white;
}

/* Right panel - User details */
.content {
    flex: 1;
    background-color: var(--da-surface-alt);
    padding: 15px;
    overflow-y: auto;
}

.userdetailcard {
    background-color: var(--da-surface);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 20px 30px;
    position: relative;
}

.section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #0078d4;
}

.perm-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--da-border-strong);
    align-items: center;
}

.perm-row label {
    font-size: 14px;
}

.dropdown {
    border: 1px solid var(--da-border-strong);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
    background-color: var(--da-surface);
}

.no-user {
    text-align: center;
    color: #777;
    margin-top: 80px;
    font-size: 15px;
}

/* Small close icon, no background */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    color: var(--da-text);
    font-size: 18px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

.close-btn:hover {
    color: var(--da-text);
    transform: scale(1.2);
}

/* Clicking on button making it active */
#licensedUsersTable tr.active {
    background-color: var(--da-row-selected);
    color: var(--da-text);
}

#licensedUsersTable {
    border-collapse: collapse;
    border: 1px solid var(--da-border-strong);
}

#licensedUsersTable thead th {
    background: var(--da-surface-alt);
    color: var(--da-text);
    font-weight: 600;
    font-size: 12px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--da-border-strong);
}

#licensedUsersTable tbody td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--da-border-strong);
}

#licensedUsersTable tbody tr:last-child td {
    border-bottom: none;
}

#licenseTablesRow {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.license-table-col {
    flex: 1 1 41%;
    min-width: 280px;
}

.license-table-col--fixed {
    flex-grow: 0;
}

.licensed-users-search-box {
    position: relative;
    margin-bottom: 10px;
}

.licensed-users-search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--da-text-secondary);
    font-size: 13px;
}

.licensed-users-search-box input {
    width: 100%;
    box-sizing: border-box;
    border-radius: 2px;
    background-color: var(--da-surface-alt);
    border: 1px solid var(--da-border-strong);
    font-size: 13px;
    outline: none;
    padding: 6px 10px 6px 30px;
}

.licensed-users-search-box input:focus {
    border-color: #0078d4;
}

.licensed-users-panel {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--da-border-strong);
    border-radius: 4px;
}

.licensed-users-panel .licensed-users-search-box {
    margin-bottom: 10px;
}

.licensed-users-toolbar {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.licensed-users-toolbar .licensed-users-search-box {
    flex: 1 1 auto;
    margin-bottom: 0;
    min-width: 0;
}

.btn-add-user {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 13px;
    padding: 6px 14px;
}

.licensed-users-pagination {
    margin-top: 10px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pagination-controls .btn {
    background-color: var(--da-surface-alt);
    color: var(--da-text);
    border: 1px solid var(--da-border-strong);
    padding: 4px 10px;
}

.pagination-controls .btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.pagination-controls .pagination-info {
    font-size: 12px;
    color: var(--da-text-secondary);
}

.no-licensed-users {
    padding: 12px 4px;
    font-size: 13px;
    color: var(--da-text-secondary);
}

#workTypesTable th,
#workTypesTable td {
    padding: 6px;
    text-align: left;
}

/* Merged from src/css/PTSConfiguration.css */
.createWorkTypeButton {
    font-size: 12px;
    background-color: #0078d4;
}

th {
    font-size: 12px;
    font-weight: normal;
    padding-bottom: 10px;
    border-bottom: 1px solid rgb(205, 208, 212) !important;
}

td:not(:first-child) {
    padding-left: 10px;
}

th:not(:first-child) {
    padding-left: 10px;
}

td {
    font-size: 14px;
}

tr {
    padding-bottom: 10px;
}

tr .hidden-menu {
    visibility: hidden;
}

tr:hover .hidden-menu {
    visibility: visible;
}

.swal2-confirm {
    line-height: 5px;
    font-size: 12px !important;
    background-color: #0078d4 !important;
}

.swal2-popup {
    border-radius: 0 !important;
}

.swal2-cancel {
    line-height: 5px;
    font-size: 12px !important;
}

tbody>tr:hover {
    background-color: var(--da-surface-alt);
}

th:hover {
    border-right: 1px solid rgb(205, 208, 212);
    background-color: var(--da-surface-alt);
}

.caret-off::after {
    display: none;
}

a {
    all: unset;
    cursor: pointer;
}

.swal2-input {
    border-radius: 0 !important;
    height: 30px !important;
    font-size: 14px !important;
    background-color: var(--da-surface-alt) !important;
    outline: none !important;
}

.grid-container {
    overflow-y: visible;
    height: auto;
}

nav {
    padding-top: 15px;
}

.textBox {
    border-radius: 0;
    background-color: var(--da-surface-alt);
    font-size: 14px;
    outline: none;
    width: 100%;
    border: 0;
    padding-top: 8px;
}

/* Merged from src/css/admin-configuration/permissions.css */
.body {
    overflow: scroll;
    display: block;
}

.azdev-button {
    background-color: #0078d4;
    color: white;
    border: 0;
    border-radius: 2px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    height: 32px;
}

.azdev-button:hover {
    background-color: #106ebe;
}

.azdev-button i {
    margin-right: 6px;
    font-size: 16px;
}

/* Confirm (Primary) button */
.swal2-confirm {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #0078d4 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 2px !important;
    height: 32px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
    transition: background-color 0.2s ease !important;
}

/* Hover state for Confirm */
.swal2-confirm:hover {
    background-color: #106ebe !important;
}

/* Cancel (Secondary) button */
.swal2-cancel {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: transparent !important;
    color: var(--da-text) !important;
    border: 1px solid #8a8886 !important;
    border-radius: 2px !important;
    height: 32px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
    transition: background-color 0.2s ease !important;
}

/* Hover state for Cancel */
.swal2-cancel:hover {
    background-color: var(--da-surface-alt) !important;
}

/* Popup shape */
.swal2-popup {
    border-radius: 0 !important;
}

/* Remove focus outline from buttons */
.swal2-confirm:focus,
.swal2-cancel:focus {
    outline: none !important;
    box-shadow: none !important;
}

.dropdown-menu {
    border-radius: 8px;
}

.dropdown-item {
    font-size: 14px;
    padding: 8px 12px;
    color: var(--da-text) !important;
    text-decoration: none !important;
}

.dropdown-item i {
    width: 18px;
}

.dropdown-item:focus,
.dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.06);
    width: auto;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.licensed-user-avatar-cell {
    width: 40px;
    white-space: nowrap;
}

.licensed-user-name-cell {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#licensedUsersTable td:last-child {
    white-space: nowrap;
    text-align: right;
}

.user-suggestions-dropdown {
    top: 100%;
    left: 0;
    min-width: 100%;
    width: max-content;
    max-width: min(90vw, 560px);
    overflow-x: auto;
}

#userSuggestionsTable {
    width: 100%;
    table-layout: auto;
}

#userSuggestionsTable th,
#userSuggestionsTable td {
    white-space: nowrap;
    padding-right: 16px;
}

.avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0078d4;
    color: white;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #d1d5db;
}

.license-popup {
    width: 420px !important;
    padding: 18px 20px 20px !important;
}

.license-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dbeafe;
}

.license-title {
    font-weight: 500;
    color: #374151;
}

.license-count {
    color: #374151;
}

.license-input-wrapper {
    display: flex;
    justify-content: center;
    margin: 18px 0;
}

.license-input {
    width: 100%;
    height: 32px;
    text-align: center;
    font-size: 14px;
}

/* ══════════════════════════════════════════════════
   SUBSCRIPTION TAB
   ══════════════════════════════════════════════════ */

/* Hero card */
.sub-hero-card {
    border-radius: 8px;
    color: #fff;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sub-hero--active {
    background: linear-gradient(135deg, #0078d4, #004e8c);
}

.sub-hero--trial {
    background: linear-gradient(135deg, #ca8a00, #92620a);
}

.sub-hero--expiring {
    background: linear-gradient(135deg, #ca8a00, #92620a);
}

.sub-hero--expired {
    background: linear-gradient(135deg, #c4262e, #8a1a1f);
}

.sub-plan-name {
    font-size: 20px;
    font-weight: 700;
}

.sub-hero-meta {
    font-size: 12px;
    opacity: .85;
    margin-top: 4px;
}

.sub-hero-right {
    text-align: right;
    flex-shrink: 0;
}

.sub-hero-label {
    font-size: 11px;
    opacity: .75;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.sub-hero-date {
    font-size: 16px;
    font-weight: 600;
}

.sub-days-left {
    font-size: 12px;
    opacity: .8;
    margin-top: 2px;
}

/* Status badges */
.sub-status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.sub-status--active {
    background: #dff6dd;
    color: #107c10;
}

.sub-status--trial {
    background: #fff4ce;
    color: #ca8a00;
}

/* ===== Usage Report tab (#nav-usagereport) ===== */
.ur-wrap { padding: 20px 20px 32px; }
.ur-month-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.ur-month-select { max-width: 220px; }

.ur-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.ur-kpi-card { border: 1px solid #edebe9; border-radius: 6px; padding: 14px 16px; background: #fff; }
.ur-kpi-icon { width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; font-size: 14px; float: right; }
.ur-kpi-label { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: #605e5c; margin-bottom: 6px; }
.ur-kpi-value { font-size: 22px; font-weight: 700; color: #323130; }

.ur-card { border: 1px solid #edebe9; border-radius: 6px; margin-bottom: 16px; overflow: hidden; }
.ur-card-header { background: #f3f2f1; padding: 10px 16px; font-size: 13px; font-weight: 600; border-bottom: 1px solid #edebe9; display: flex; align-items: center; gap: 8px; }
.ur-card-header i { color: #0078d4; }
.ur-card-body { padding: 16px; }
.ur-card-body.p-0 { padding: 0; }

.ur-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.ur-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: #605e5c; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid #edebe9; }
.ur-table td { padding: 9px 10px; border-bottom: 1px solid #edebe9; vertical-align: middle; }
.ur-table tr:last-child td { border-bottom: none; }
.ur-table tbody tr:hover { background: #f3f2f1; }
.ur-module-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.ur-module-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.ur-pct-track { width: 90px; height: 6px; background: #edebe9; border-radius: 999px; overflow: hidden; display: inline-block; vertical-align: middle; margin-left: 8px; }
.ur-pct-fill { display: block; height: 100%; border-radius: 999px; background: #0078d4; }

/* CSS-bar trend chart (no charting library — extension iframe blocks CDNs) */
.ur-trend { display: flex; gap: 8px; height: 180px; padding-top: 6px; }
.ur-yaxis { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; height: 100%; padding-bottom: 19px; box-sizing: border-box; min-width: 34px; }
.ur-ytick { font-size: 10px; color: #a19f9d; line-height: 1; }
.ur-plot { flex: 1; display: flex; align-items: flex-end; gap: 6px; height: 100%; }
.ur-tcol { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.ur-tbars { flex: 1; display: flex; align-items: flex-end; gap: 3px; width: 100%; justify-content: center; }
.ur-tbar { width: 40%; max-width: 16px; border-radius: 3px 3px 0 0; min-height: 2px; }
.ur-tbar-ai { background: #0078d4; }
.ur-tbar-agent { background: #5c2d91; }
.ur-tlabel { font-size: 10px; line-height: 13px; color: #605e5c; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ur-trend-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: #605e5c; }
.ur-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.ur-swatch-ai { background: #0078d4; }
.ur-swatch-agent { background: #5c2d91; }

.ur-empty-state { text-align: center; padding: 40px 20px; color: #605e5c; }
.ur-empty-state i { font-size: 28px; opacity: .5; margin-bottom: 8px; display: block; }

@media (max-width: 900px) { .ur-kpi-grid { grid-template-columns: repeat(2, 1fr); } }


.sub-status--expiring {
    background: #fff4ce;
    color: #ca8a00;
}

.sub-status--expired {
    background: #fde7e9;
    color: #c4262e;
}

/* Panels */
.sub-panel {
    background: var(--da-surface);
    border: 1px solid var(--da-border-strong);
    border-radius: 6px;
    overflow: hidden;
}

.sub-panel-header {
    background: var(--da-surface-alt);
    border-bottom: 1px solid var(--da-border-strong);
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--da-text-secondary);
    display: flex;
    align-items: center;
    gap: 7px;
}

.sub-panel-body {
    padding: 14px 16px;
}

/* Seat rows */
.sub-seat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--da-border-strong);
}

.sub-seat-row:last-child {
    border-bottom: none;
}

.sub-seat-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-size: 14px;
    flex-shrink: 0;
}

.sub-seat-name {
    font-size: 13px;
    font-weight: 500;
}

.sub-seat-detail {
    font-size: 11px;
    color: var(--da-text-secondary);
}

.sub-seat-bar-wrap {
    min-width: 140px;
    flex-shrink: 0;
}

.sub-seat-bar-track {
    height: 5px;
    background: var(--da-surface-alt);
    border-radius: 999px;
    overflow: hidden;
}

.sub-seat-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width .4s;
}

/* Token rows */
.sub-token-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.sub-token-label {
    font-size: 12px;
    color: var(--da-text-secondary);
    width: 110px;
    flex-shrink: 0;
}

.sub-token-num {
    font-size: 12px;
    font-weight: 600;
    min-width: 80px;
    text-align: right;
}

/* Account grid */
.sub-account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sub-info-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--da-text-secondary);
    margin-bottom: 2px;
}

.sub-info-value {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Copy button */
.sub-copy-btn {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    color: var(--da-text-secondary);
    font-size: 13px;
    line-height: 1;
}

.sub-copy-btn:hover {
    color: #0078d4;
}

/* Subscription Tab - Added by feature/subscription-tab-enhancement2 */