.calio-dashboard-widget {
    color: #1d2327;
}

.calio-dashboard-widget__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.calio-dashboard-widget__stat {
    min-width: 0;
    padding: 12px 10px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #f6f7f7;
    text-align: center;
}

.calio-dashboard-widget__stat strong,
.calio-dashboard-widget__stat span {
    display: block;
}

.calio-dashboard-widget__stat strong {
    margin-bottom: 3px;
    color: #135e96;
    font-size: 24px;
    line-height: 1;
}

.calio-dashboard-widget__stat span {
    overflow-wrap: anywhere;
    color: #50575e;
    font-size: 12px;
}

.calio-dashboard-widget__details {
    margin-bottom: 16px;
    border-top: 1px solid #dcdcde;
    border-bottom: 1px solid #dcdcde;
}

.calio-dashboard-widget__details summary {
    padding: 11px 0;
    font-weight: 600;
    cursor: pointer;
}

.calio-dashboard-widget__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    max-height: 230px;
    margin: 0 0 12px;
    overflow: auto;
}

.calio-dashboard-widget__list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f1;
}

.calio-dashboard-widget__list li span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.calio-dashboard-widget__list small {
    flex: 0 0 auto;
    padding: 2px 6px;
    border-radius: 999px;
    background: #e7f5ff;
    color: #0a4b78;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.calio-dashboard-widget__release {
    padding: 12px;
    border-left: 4px solid #2271b1;
    background: #f0f6fc;
}

.calio-dashboard-widget__release-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.calio-dashboard-widget__release-heading span {
    color: #50575e;
    font-weight: 600;
}

.calio-dashboard-widget__release ul {
    margin: 9px 0 0 18px;
    list-style: disc;
}

.calio-dashboard-widget__release li:last-child {
    margin-bottom: 0;
}

.calio-dashboard-widget__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

@media screen and (max-width: 520px) {
    .calio-dashboard-widget__stats,
    .calio-dashboard-widget__list {
        grid-template-columns: 1fr;
    }
}

.calio-marketing-hud {
    color: #1d2327;
}

.calio-marketing-hud__summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.calio-marketing-hud__summary > div {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #f6f7f7;
}

.calio-marketing-hud__summary span,
.calio-marketing-hud__summary strong {
    display: block;
}

.calio-marketing-hud__summary span,
.calio-marketing-hud__summary small {
    color: #646970;
    font-size: 12px;
}

.calio-marketing-hud__summary strong {
    margin-top: 3px;
    overflow-wrap: anywhere;
    font-size: 17px;
}

.calio-marketing-hud__summary > small {
    text-align: right;
}

.calio-marketing-hud__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.calio-marketing-hud__tabs {
    display: inline-flex;
    padding: 3px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #f6f7f7;
}

.calio-marketing-hud__tabs button {
    min-height: 32px;
    padding: 5px 12px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #50575e;
    font-weight: 600;
    cursor: pointer;
}

.calio-marketing-hud__tabs button:hover {
    color: #135e96;
}

.calio-marketing-hud__tabs button.is-active {
    background: #fff;
    color: #135e96;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calio-marketing-hud__tabs button:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 1px;
}

.calio-marketing-hud__panel:not(.is-active) {
    display: none;
}

.calio-marketing-hud__geo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 12px;
}

.calio-marketing-hud__list {
    min-width: 0;
    border: 1px solid #dcdcde;
    border-radius: 7px;
    background: #fff;
}

.calio-marketing-hud__list h3 {
    margin: 0;
    padding: 11px 13px;
    border-bottom: 1px solid #dcdcde;
    background: #f6f7f7;
    font-size: 13px;
}

.calio-marketing-hud__row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f1;
}

.calio-marketing-hud__row:last-child {
    border-bottom: 0;
}

.calio-marketing-hud__rank {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e7f5ff;
    color: #0a4b78;
    font-size: 11px;
    font-weight: 700;
}

.calio-marketing-hud__row-copy {
    min-width: 0;
}

.calio-marketing-hud__row-copy strong,
.calio-marketing-hud__row-copy small {
    display: block;
}

.calio-marketing-hud__row-copy strong {
    overflow-wrap: anywhere;
}

.calio-marketing-hud__row-copy small {
    margin-top: 2px;
    color: #646970;
    font-size: 11px;
}

.calio-marketing-hud__revenue {
    color: #135e96;
    font-weight: 700;
    text-align: right;
}

.calio-marketing-hud__empty,
.calio-marketing-hud__notice {
    margin: 0;
    padding: 18px;
    text-align: center;
}

.calio-marketing-hud__status {
    min-height: 17px;
    margin: 7px 0 0;
    color: #b32d2e;
    font-size: 12px;
}

@media screen and (max-width: 900px) {
    .calio-marketing-hud__summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calio-marketing-hud__summary > small {
        grid-column: 1 / -1;
        text-align: left;
    }

    .calio-marketing-hud__geo-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 520px) {
    .calio-marketing-hud__summary {
        grid-template-columns: 1fr;
    }

    .calio-marketing-hud__summary > small {
        grid-column: auto;
    }

    .calio-marketing-hud__toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .calio-marketing-hud__tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calio-marketing-hud__row {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .calio-marketing-hud__revenue {
        grid-column: 2;
        text-align: left;
    }
}

.calio-order-monitor {
    color: #1d2327;
}

.calio-order-monitor__intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.calio-order-monitor__intro > div,
.calio-order-monitor__intro strong,
.calio-order-monitor__intro span {
    display: block;
}

.calio-order-monitor__intro > div span,
.calio-order-monitor__cached {
    margin-top: 3px;
    color: #646970;
    font-size: 12px;
}

.calio-order-monitor__cached {
    flex: 0 0 auto;
    margin: 0;
}

.calio-order-monitor__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.calio-order-monitor__card {
    min-width: 0;
    padding: 14px;
    border: 1px solid #dcdcde;
    border-radius: 7px;
    background: #fff;
}

.calio-order-monitor__card.is-completed {
    border-color: #b8d8c2;
    background: #f1f8f3;
}

.calio-order-monitor__card.is-pending {
    border-color: #e4cf93;
    background: #fff9e8;
}

.calio-order-monitor__card.has-risk {
    border-color: #d63638;
    background: #fcdddd;
    box-shadow: inset 0 0 0 1px rgba(214, 54, 56, 0.1);
}

.calio-order-monitor__card-head {
    display: flex;
    align-items: center;
    gap: 9px;
}

.calio-order-monitor__card-head .dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
    line-height: 1;
}

.calio-order-monitor__card.is-completed .dashicons {
    color: #008a20;
}

.calio-order-monitor__card.is-pending .dashicons {
    color: #996800;
}

.calio-order-monitor__card.is-risk .dashicons {
    color: #b32d2e;
}

.calio-order-monitor__card-head strong,
.calio-order-monitor__card-head small {
    display: block;
}

.calio-order-monitor__card-head small {
    margin-top: 2px;
    color: #646970;
    font-size: 11px;
}

.calio-order-monitor__amount {
    margin-top: 16px;
    overflow-wrap: anywhere;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
}

.calio-order-monitor__card.has-risk .calio-order-monitor__amount,
.calio-order-monitor__card.has-risk .calio-order-monitor__card-head strong {
    color: #8a2424;
}

.calio-order-monitor__progress {
    display: block;
    width: 100%;
    height: 7px;
    margin-top: 14px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #dcdcde;
    appearance: none;
}

.calio-order-monitor__progress::-webkit-progress-bar {
    border-radius: 999px;
    background: #dcdcde;
}

.calio-order-monitor__progress::-webkit-progress-value {
    border-radius: 999px;
    background: #2271b1;
}

.calio-order-monitor__progress::-moz-progress-bar {
    border-radius: 999px;
    background: #2271b1;
}

.calio-order-monitor__card.is-completed .calio-order-monitor__progress::-webkit-progress-value {
    background: #008a20;
}

.calio-order-monitor__card.is-completed .calio-order-monitor__progress::-moz-progress-bar {
    background: #008a20;
}

.calio-order-monitor__card.is-pending .calio-order-monitor__progress::-webkit-progress-value {
    background: #dba617;
}

.calio-order-monitor__card.is-pending .calio-order-monitor__progress::-moz-progress-bar {
    background: #dba617;
}

.calio-order-monitor__card.is-risk .calio-order-monitor__progress::-webkit-progress-value {
    background: #d63638;
}

.calio-order-monitor__card.is-risk .calio-order-monitor__progress::-moz-progress-bar {
    background: #d63638;
}

.calio-order-monitor__percentage {
    margin-top: 6px;
    color: #50575e;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}

.calio-order-monitor__alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 11px 12px;
    border: 1px solid #d63638;
    border-radius: 6px;
    background: #fcdddd;
    color: #8a2424;
}

.calio-order-monitor__alert .dashicons {
    flex: 0 0 auto;
}

.calio-order-monitor__alert p {
    margin: 0;
}

.calio-order-monitor__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.calio-order-monitor__footer > span {
    color: #646970;
    font-size: 12px;
}

.calio-order-monitor__notice {
    padding: 12px;
    border-left: 4px solid #dba617;
    background: #fff9e8;
}

.calio-order-monitor__notice p {
    margin: 0;
}

@media screen and (max-width: 782px) {
    .calio-order-monitor__grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 520px) {
    .calio-order-monitor__intro,
    .calio-order-monitor__footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

.calio-inventory-hud {
    color: #1d2327;
}

.calio-inventory-hud__summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.calio-inventory-hud__stat {
    min-width: 0;
    padding: 11px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #f6f7f7;
}

.calio-inventory-hud__stat strong,
.calio-inventory-hud__stat span {
    display: block;
}

.calio-inventory-hud__stat strong {
    margin-bottom: 3px;
    font-size: 22px;
    line-height: 1;
}

.calio-inventory-hud__stat span {
    color: #50575e;
    font-size: 12px;
}

.calio-inventory-hud__stat.is-total strong {
    color: #135e96;
}

.calio-inventory-hud__stat.is-low strong,
.calio-inventory-hud__stat.is-out strong {
    color: #b32d2e;
}

.calio-inventory-hud__controls {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(170px, 0.8fr) auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 8px;
}

.calio-inventory-hud__search input {
    width: 100%;
}

.calio-inventory-hud__threshold {
    display: grid;
    gap: 6px;
    color: #50575e;
    font-size: 12px;
    font-weight: 600;
}

.calio-inventory-hud__threshold input {
    width: 100%;
    margin: 0;
}

.calio-inventory-hud__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.calio-inventory-hud__status {
    min-height: 18px;
    margin-bottom: 6px;
    color: #646970;
    font-size: 12px;
}

.calio-inventory-hud__table-wrap {
    max-height: 430px;
    overflow: auto;
    border: 1px solid #dcdcde;
}

.calio-inventory-hud__table {
    border: 0;
    box-shadow: none;
}

.calio-inventory-hud__table thead {
    position: sticky;
    z-index: 2;
    top: 0;
}

.calio-inventory-hud__table th {
    background: #f6f7f7;
}

.calio-inventory-hud__table th:nth-child(1) {
    width: 48%;
}

.calio-inventory-hud__table th:nth-child(2) {
    width: 20%;
}

.calio-inventory-hud__table th:nth-child(3),
.calio-inventory-hud__table th:nth-child(4) {
    width: 16%;
}

.calio-inventory-hud__table td {
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.calio-inventory-hud__table tr.is-low-stock td {
    background: #fcdddd;
    color: #8a2424;
}

.calio-inventory-hud__table tr.is-low-stock:hover td {
    background: #f8caca;
}

.calio-stock-pill {
    display: inline-flex;
    min-width: 28px;
    justify-content: center;
    padding: 3px 7px;
    border-radius: 999px;
    background: #e7f5ff;
    color: #0a4b78;
    font-size: 11px;
    font-weight: 700;
}

.is-low-stock .calio-stock-pill {
    background: #b32d2e;
    color: #fff;
}

.calio-inventory-hud__empty,
.calio-inventory-hud__notice {
    margin: 0;
    padding: 18px;
    text-align: center;
}

@media screen and (max-width: 900px) {
    .calio-inventory-hud__controls {
        grid-template-columns: 1fr 1fr;
    }

    .calio-inventory-hud__buttons {
        grid-column: 1 / -1;
    }
}

@media screen and (max-width: 520px) {
    .calio-inventory-hud__summary,
    .calio-inventory-hud__controls {
        grid-template-columns: 1fr;
    }

    .calio-inventory-hud__buttons {
        grid-column: auto;
    }

    .calio-inventory-hud__table {
        min-width: 620px;
    }
}
