/* ============================================================
   ABOTRIX PUBLIC PLATFORM V23.2.1
   Layout conflict correction
   ============================================================ */

/* ------------------------------------------------------------
   CARD TEXT CONTRAST
   ------------------------------------------------------------ */

.platform-feature-card h3 {
    color: #f4f9ff !important;
}

.platform-feature-card > p {
    color: #a9c7dc !important;
}

.platform-feature-card .feature-label {
    color: #31d6f4 !important;
}

/* ------------------------------------------------------------
   COMMAND CENTER — REMOVE LARGE EMPTY AREA
   ------------------------------------------------------------ */

.platform-feature-card.platform-feature-large {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100% !important;
}

.platform-feature-large .command-center-preview {
    flex: 1 1 auto !important;

    display: flex !important;
    flex-direction: column !important;

    min-height: 500px !important;
}

.platform-feature-large .command-center-toolbar,
.platform-feature-large .command-metrics {
    flex: 0 0 auto !important;
}

.platform-feature-large .command-chart {
    flex: 1 1 auto !important;

    display: flex !important;
    align-items: stretch !important;

    min-height: 260px !important;
    margin-top: 18px !important;
}

.platform-feature-large .command-chart svg {
    width: 100% !important;
    height: 100% !important;
    min-height: 260px !important;
}

/* ------------------------------------------------------------
   MODULAR WORKSPACE — RESET OLD SPAN STYLES
   ------------------------------------------------------------ */

.module-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.module-list > .abotrix-module-tile {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 76px !important;

    margin: 0 !important;
    padding: 12px 13px !important;

    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) 8px !important;
    align-items: center !important;
    gap: 10px !important;

    border: 1px solid rgba(102, 205, 241, 0.17) !important;
    border-radius: 14px !important;

    color: inherit !important;

    background:
        linear-gradient(
            145deg,
            rgba(25, 72, 100, 0.78),
            rgba(15, 53, 79, 0.76)
        ) !important;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025) !important;
}

/*
 * Important reset:
 * public-v22.css styles every span inside .module-list.
 * The new tiles contain nested spans, so those old pill styles
 * must be removed.
 */

.module-list > .abotrix-module-tile > span,
.module-list .abotrix-module-copy,
.module-list .abotrix-module-copy strong,
.module-list .abotrix-module-copy small {
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    color: inherit !important;
    background: transparent !important;
    box-shadow: none !important;
}

.module-list .abotrix-module-icon {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;

    padding: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 1px solid rgba(92, 218, 247, 0.21) !important;
    border-radius: 11px !important;

    color: #5ce2f8 !important;
    background: rgba(24, 144, 190, 0.16) !important;

    font-size: 10px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
}

.module-list .abotrix-module-copy {
    display: block !important;
    overflow: hidden !important;
}

.module-list .abotrix-module-copy strong {
    display: block !important;
    overflow: hidden !important;

    color: #f1f8ff !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;

    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

.module-list .abotrix-module-copy small {
    display: block !important;
    margin-top: 4px !important;

    color: #8eb5cf !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
}

.module-list .abotrix-module-status {
    width: 7px !important;
    min-width: 7px !important;
    height: 7px !important;
    min-height: 7px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block !important;

    border: 0 !important;
    border-radius: 50% !important;

    background: #43e9ad !important;

    box-shadow:
        0 0 0 4px rgba(67, 233, 173, 0.07),
        0 0 12px rgba(67, 233, 173, 0.43) !important;
}

/* ------------------------------------------------------------
   BRANCH CARD
   ------------------------------------------------------------ */

.branch-list > div {
    color: #eaf6ff !important;
}

.branch-list strong {
    color: #eaf6ff !important;
}

.branch-list small {
    color: #8fb5cf !important;
}

.abotrix-branch-summary span {
    color: #91b6cf !important;
}

/* ------------------------------------------------------------
   ANALYTICS
   ------------------------------------------------------------ */

.analytics-bars > div > span {
    color: #91b7cf !important;
}

.analytics-bars i {
    background: rgba(219, 238, 249, 0.22) !important;
}

/* ------------------------------------------------------------
   DEPLOYMENT — REMOVE WHITE BUTTON OVERRIDE
   ------------------------------------------------------------ */

.deployment-options-mini {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 9px !important;
}

.deployment-options-mini .deployment-mini-button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 102px !important;

    margin: 0 !important;
    padding: 17px 8px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;

    border: 1px solid rgba(107, 206, 241, 0.18) !important;
    border-radius: 13px !important;

    color: #cce8f7 !important;

    background:
        linear-gradient(
            145deg,
            rgba(24, 69, 96, 0.8),
            rgba(15, 52, 77, 0.82)
        ) !important;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025) !important;
}

.deployment-options-mini .deployment-mini-button span {
    margin: 0 !important;
    padding: 0 !important;

    color: #41d7f5 !important;
    background: transparent !important;

    font-size: 19px !important;
    line-height: 1 !important;
}

.deployment-options-mini .deployment-mini-button strong {
    color: #dff3ff !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

.deployment-options-mini
.deployment-mini-button.abotrix-deployment-active {
    border-color: rgba(61, 218, 247, 0.52) !important;

    color: #ffffff !important;

    background:
        linear-gradient(
            145deg,
            rgba(24, 115, 151, 0.91),
            rgba(15, 76, 108, 0.93)
        ) !important;

    box-shadow:
        0 14px 32px rgba(0, 10, 28, 0.21),
        inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
}

.deployment-options-mini
.deployment-mini-button:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(70, 217, 247, 0.42) !important;

    background:
        linear-gradient(
            145deg,
            rgba(28, 91, 120, 0.9),
            rgba(17, 63, 91, 0.91)
        ) !important;
}

.deployment-options-mini
.deployment-mini-button.abotrix-deployment-active::after {
    top: 6px !important;
    right: 7px !important;

    color: #53edb8 !important;
    font-size: 6px !important;
}

.abotrix-deployment-detail {
    color: #a8c9dc !important;
}

.abotrix-deployment-detail strong {
    color: #eef9ff !important;
}

/* ------------------------------------------------------------
   WORKFLOW
   ------------------------------------------------------------ */

.automation-flow span {
    color: #f0f8ff !important;
}

.abotrix-workflow-footer {
    color: #93b7cf !important;
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 1100px) {
    .platform-feature-large .command-center-preview {
        min-height: 430px !important;
    }

    .module-list {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .platform-feature-card.platform-feature-large {
        min-height: auto !important;
    }

    .platform-feature-large .command-center-preview {
        min-height: 390px !important;
    }

    .platform-feature-large .command-chart,
    .platform-feature-large .command-chart svg {
        min-height: 220px !important;
    }

    .deployment-options-mini {
        grid-template-columns: 1fr !important;
    }

    .deployment-options-mini .deployment-mini-button {
        min-height: 76px !important;
    }
}
