/* =========================================================
   Dashboard v2.3
   Stats, KPI cards and dashboard hierarchy
   Moved from utp.css during CSS Architecture Split.
   ========================================================= */

/* KPI / Stat Cards v1.1 */
.utp-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--utp-space-4);
}

.utp-stat-card {
    background: var(--utp-color-surface);
    border: var(--utp-border-width) solid var(--utp-color-border);
    border-radius: var(--utp-radius-lg);
    padding: var(--utp-space-5);
    box-shadow: var(--utp-shadow-sm);
}


.utp-stat-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--utp-shadow-md);
}

.utp-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--utp-color-primary);
    opacity: .9;
}

.utp-stat-card-hotels::before,
.utp-stat-card-reservations::before {
    background: var(--utp-color-hotels);
}

.utp-stat-card-finance::before,
.utp-stat-card-payments::before,
.utp-stat-card-revenue::before {
    background: var(--utp-color-finance);
}

.utp-stat-card-documents::before {
    background: var(--utp-color-documents);
}

.utp-stat-card-operations::before,
.utp-stat-card-transfers::before {
    background: var(--utp-color-operations);
}

.utp-stat-label {
    display: block;
    margin-bottom: 8px;
    font-size: var(--utp-font-xs);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--utp-color-muted);
}

.utp-stat-value {
    display: block;
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
    color: var(--utp-color-text);
}

.utp-stat-note {
    display: block;
    margin-top: 8px;
    font-size: var(--utp-font-xs);
    color: var(--utp-color-muted);
}

.utp-stat-note-positive {
    color: #047857;
}

.utp-stat-note-warning {
    color: #92400e;
}

.utp-stat-note-danger {
    color: #b91c1c;
}

/* Dashboard section hierarchy */
.utp-dashboard-section {
    margin-top: var(--utp-space-6);
}

.utp-dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--utp-space-4);
    margin: var(--utp-space-6) 0 var(--utp-space-4);
}

.utp-dashboard-title {
    margin: 0;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--utp-color-text);
}

.utp-dashboard-subtitle {
    margin: 6px 0 0;
    font-size: var(--utp-font-sm);
    color: var(--utp-color-muted);
}
/* Compatibility: existing stats/dashboard markup */
.ids-utp .ids-stats-grid,
.ids-utp .ids-dashboard-stats,
.ids-utp .ids-summary-grid,
.ids-utp .ids-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--utp-space-4);
    margin: var(--utp-space-5) 0 var(--utp-space-6);
}

.ids-utp .ids-stat-card,
.ids-utp .ids-dashboard-stat,
.ids-utp .ids-summary-card,
.ids-utp .ids-kpi-card {
    position: relative;
    min-height: 92px;
    padding: 18px 20px;
    background: var(--utp-color-surface);
    border: var(--utp-border-width) solid var(--utp-color-border);
    border-radius: var(--utp-radius-lg);
    box-shadow: var(--utp-shadow-sm);
    overflow: hidden;
    transition: var(--utp-transition);
}

.ids-utp .ids-stat-card:hover,
.ids-utp .ids-dashboard-stat:hover,
.ids-utp .ids-summary-card:hover,
.ids-utp .ids-kpi-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--utp-shadow-md);
}

.ids-utp .ids-stat-card::before,
.ids-utp .ids-dashboard-stat::before,
.ids-utp .ids-summary-card::before,
.ids-utp .ids-kpi-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--utp-color-primary);
}

.ids-utp .ids-stat-card h3,
.ids-utp .ids-dashboard-stat h3,
.ids-utp .ids-summary-card h3,
.ids-utp .ids-kpi-card h3,
.ids-utp .ids-stat-card .label,
.ids-utp .ids-dashboard-stat .label {
    margin: 0 0 10px;
    font-size: var(--utp-font-sm);
    font-weight: 600;
    color: var(--utp-color-muted);
}

.ids-utp .ids-stat-card strong,
.ids-utp .ids-dashboard-stat strong,
.ids-utp .ids-summary-card strong,
.ids-utp .ids-kpi-card strong,
.ids-utp .ids-stat-card .value,
.ids-utp .ids-dashboard-stat .value {
    display: block;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--utp-color-text);
}

/* Compatibility: dashboard headings */
.ids-utp .ids-dashboard-header,
.ids-utp .ids-page-header,
.ids-utp .ids-module-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--utp-space-4);
    margin: var(--utp-space-6) 0 var(--utp-space-4);
}

.ids-utp .ids-dashboard-header h1,
.ids-utp .ids-dashboard-header h2,
.ids-utp .ids-page-header h1,
.ids-utp .ids-page-header h2,
.ids-utp .ids-module-header h1,
.ids-utp .ids-module-header h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--utp-color-text);
}
@media (max-width: 960px) {
    .ids-utp .ids-stats-grid,
    .ids-utp .ids-dashboard-stats,
    .ids-utp .ids-summary-grid,
    .ids-utp .ids-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .utp-dashboard-header,
    .ids-utp .ids-dashboard-header,
    .ids-utp .ids-page-header,
    .ids-utp .ids-module-header {
        flex-direction: column;
    }

    .ids-utp .ids-stats-grid,
    .ids-utp .ids-dashboard-stats,
    .ids-utp .ids-summary-grid,
    .ids-utp .ids-kpi-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   UTP Home Workspace v3.3 Compact Pass
   Final UI polish before integrations.
   ========================================================= */

.utp-home-v31{
    margin-top:18px;
}

.utp-home-intro{
    background:#ffffff;
    border:1px solid rgba(15,23,42,.08);
    border-radius:18px;
    padding:18px 22px;
    margin-bottom:18px;
    box-shadow:0 10px 26px rgba(15,23,42,.05);
}

.utp-home-intro h2{
    margin:4px 0 6px;
    font-size:26px;
    line-height:1.15;
    letter-spacing:-.03em;
}

.utp-home-intro p{
    margin:0;
    max-width:620px;
    color:#53627a;
    font-size:14px;
    line-height:1.45;
}

.utp-home-section{
    margin-top:14px;
    background:#fff;
    border:1px solid rgba(15,23,42,.08);
    border-radius:18px;
    padding:18px;
    box-shadow:0 10px 26px rgba(15,23,42,.05);
}

.utp-section-header{
    margin-bottom:12px;
}

.utp-section-header h3{
    margin:4px 0 0;
    font-size:22px;
    line-height:1.2;
    letter-spacing:-.02em;
}

.utp-section-header p{
    margin:4px 0 0;
    color:#53627a;
    font-size:13px;
    line-height:1.4;
}

.utp-workspace-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}

.utp-workspace-launch-card{
    min-height:108px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    background:#fff;
    border:1px solid rgba(15,23,42,.08);
    border-radius:16px;
    padding:16px;
    box-shadow:0 8px 22px rgba(15,23,42,.045);
    transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.utp-workspace-launch-card:hover{
    transform:translateY(-2px);
    border-color:rgba(255,94,68,.32);
    box-shadow:0 14px 34px rgba(15,23,42,.08);
}

.utp-workspace-launch-card h4{
    margin:0 0 4px;
    font-size:18px;
    line-height:1.2;
    letter-spacing:-.02em;
}

.utp-workspace-launch-card p{
    margin:0;
    color:#53627a;
    font-size:13px;
    line-height:1.35;
}

.utp-workspace-launch-card a{
    margin-top:12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:max-content;
    min-height:34px;
    padding:0 13px;
    border-radius:11px;
    background:#071223;
    color:#fff;
    font-size:13px;
    font-weight:700;
    text-decoration:none;
}

.utp-workspace-launch-card a:hover{
    background:#ff5e44;
    color:#fff;
}

.utp-quick-action-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
}

.utp-quick-action{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:0 12px;
    background:#fff;
    border:1px solid rgba(15,23,42,.10);
    border-radius:14px;
    color:#071223;
    font-size:13px;
    font-weight:800;
    text-decoration:none;
    box-shadow:0 6px 18px rgba(15,23,42,.04);
    transition:background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.utp-quick-action.primary,
.utp-quick-action:hover{
    background:#ff5e44;
    border-color:#ff5e44;
    color:#fff;
}

.utp-quick-action:hover{
    transform:translateY(-1px);
}

.utp-home-bottom-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    margin-top:14px;
}

.utp-home-panel{
    padding:18px;
    background:#fff;
    border:1px solid rgba(15,23,42,.08);
    border-radius:18px;
    box-shadow:0 10px 26px rgba(15,23,42,.05);
}

.utp-home-panel h3{
    margin:4px 0 10px;
    font-size:21px;
    line-height:1.2;
    letter-spacing:-.02em;
}

.utp-home-panel p{
    margin:0 0 12px;
    color:#53627a;
    font-size:13px;
    line-height:1.4;
}

.utp-activity-row,
.utp-integration-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:8px 0;
    border-top:1px solid rgba(15,23,42,.08);
}

.utp-activity-row strong,
.utp-integration-row strong{
    font-size:13px;
}

.utp-activity-row span{
    color:#53627a;
    font-size:12px;
}

.utp-integration-row span{
    display:inline-flex;
    align-items:center;
    min-height:24px;
    padding:0 9px;
    border-radius:999px;
    background:#fff4e8;
    border:1px solid #ffd5a8;
    color:#a65300;
    font-size:11px;
    font-weight:800;
}

@media (max-width:1100px){
    .utp-workspace-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .utp-quick-action-grid,
    .utp-home-bottom-grid{
        grid-template-columns:1fr 1fr;
    }
}

@media (max-width:700px){
    .utp-workspace-grid,
    .utp-quick-action-grid,
    .utp-home-bottom-grid{
        grid-template-columns:1fr;
    }
}

/* =========================================================
   UTP Workspace Launcher Icons v1.0
   ========================================================= */

.utp-workspace-card-main{
    display:flex;
    align-items:flex-start;
    gap:14px;
}

.utp-workspace-card-icon{
    width:46px;
    height:46px;
    min-width:46px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff4ef;
}

.utp-workspace-card-icon svg{
    width:24px;
    height:24px;
    fill:currentColor;
}

.utp-icon-travel{
    color:#ff5e44;
    background:rgba(255,94,68,.12);
}

.utp-icon-manual{
    color:#2563eb;
    background:rgba(37,99,235,.12);
}

.utp-icon-customers{
    color:#16a34a;
    background:rgba(22,163,74,.12);
}

.utp-icon-finance{
    color:#059669;
    background:rgba(5,150,105,.12);
}

.utp-icon-documents{
    color:#f59e0b;
    background:rgba(245,158,11,.14);
}

.utp-icon-development{
    color:#7c3aed;
    background:rgba(124,58,237,.12);
}

.utp-workspace-card-copy h4{
    margin:0 0 4px;
}

.utp-workspace-card-copy p{
    margin:0;
}

/* =========================================================
   UTP Components Polish v1.2.1
   Wider cards and better launcher rhythm
   ========================================================= */

.utp-home-v31,
.utp-home-section,
.utp-home-bottom-grid,
.utp-workspace-grid {
    width: 100%;
    max-width: none;
}

.utp-home-section {
    padding: 24px;
}

.utp-workspace-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.utp-workspace-launch-card {
    min-height: 168px;
}

.utp-workspace-card-main {
    gap: 16px;
}

.utp-home-bottom-grid {
    gap: 18px;
}
