﻿:root {
    --card-title-color: #0d6efd;
}

.card-title {
    color: var(--card-title-color);
}

.table td,
.table th {
    vertical-align: middle;
}

.min-w-180 {
    min-width: 180px;
}

.category-page-demo {
    background-color: #fcfcfc;
    color: #334155;
}

.category-page-demo .page-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.category-page-demo .page-header h1 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.category-page-demo .stats-group {
    font-size: 0.85rem;
    color: #94a3b8;
}

.category-page-demo .stats-group b {
    color: #475569;
    margin-left: 0.2rem;
}

.category-page-demo .stats-sep {
    margin: 0 0.75rem;
    color: #e2e8f0;
}

.category-page-demo .action-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.category-page-demo .action-panel.edit-mode {
    border-left: 4px solid #f59e0b;
    background-color: #fffcf5;
}

.category-page-demo .label-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    display: block;
}

.category-page-demo .form-control-custom {
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 38px;
    line-height: 1.2;
}

.category-page-demo .form-control-custom:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.category-page-demo .action-submit-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-page-demo .btn-create {
    background-color: #3b82f6;
    border: none;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    border-radius: 6px;
    transition: background-color 0.2s, transform 0.2s;
    text-decoration: none;
}

.category-page-demo .btn-create:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.category-page-demo .btn-cancel-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    color: #64748b;
    background: #ffffff;
    text-decoration: none;
}

.category-page-demo .btn-cancel-edit:hover {
    border-color: #94a3b8;
    color: #475569;
}

.items-page-demo .btn-cancel-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    color: #64748b;
    background: #ffffff;
    text-decoration: none;
}

.items-page-demo .btn-cancel-edit:hover {
    border-color: #94a3b8;
    color: #475569;
}

.category-page-demo .list-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.category-page-demo .list-card .table {
    margin-bottom: 0;
}

.category-page-demo .list-card .table thead th {
    background: #f8fafc;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.category-page-demo .list-card .table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.category-page-demo .list-card .table tbody tr:last-child td {
    border-bottom: none;
}

.category-page-demo .badge-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.category-page-demo .badge-status.active {
    background-color: #f0fdf4;
    color: #16a34a;
    border-color: #dcfce7;
}

.category-page-demo .action-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.category-page-demo .action-form {
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
}

.category-page-demo .btn-op {
    border: none;
    background: transparent;
    color: #94a3b8;
    transition: color 0.2s;
    font-size: 1.05rem;
    text-decoration: none;
    padding: 0;
    line-height: 1;
    width: 1.1rem;
    height: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    appearance: none;
    -webkit-appearance: none;
}

.category-page-demo .btn-op i {
    line-height: 1;
    display: block;
}

.category-page-demo .btn-op:hover {
    color: #3b82f6;
}

.category-page-demo .btn-op-del:hover {
    color: #ef4444;
}

.category-page-demo .row-editing {
    background-color: #fffbeb;
}

.category-page-demo .row-editing .fw-bold {
    color: #d97706;
}

@media (max-width: 767.98px) {
    .category-page-demo .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .category-page-demo .action-submit-group {
        justify-content: flex-start;
    }
}

.items-page-demo {
    background-color: #fcfcfc;
    color: #334155;
}

.items-page-demo .page-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.items-page-demo .page-header h1 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.items-page-demo .stats-group {
    font-size: 0.85rem;
    color: #94a3b8;
}

.items-page-demo .stats-group b {
    color: #475569;
    margin-left: 0.2rem;
}

.items-page-demo .stats-sep {
    margin: 0 0.75rem;
    color: #e2e8f0;
}

.items-page-demo .action-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.items-page-demo .label-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    display: block;
}

.items-page-demo .form-control-custom {
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 38px;
    line-height: 1.2;
}

.items-page-demo .form-control-custom:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.category-page-demo select.form-control-custom,
.items-page-demo select.form-control-custom {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2rem;
    cursor: pointer;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5.5 7.5L10 12l4.5-4.5' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.58rem center;
    background-size: 14px 14px;
}

.category-page-demo select.form-control-custom::-ms-expand,
.items-page-demo select.form-control-custom::-ms-expand {
    display: none;
}

.items-page-demo .action-submit-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.items-page-demo .btn-create {
    background-color: #3b82f6;
    border: none;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    border-radius: 6px;
    transition: background-color 0.2s, transform 0.2s;
    text-decoration: none;
}

.items-page-demo .btn-create:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    color: #ffffff;
}

.items-page-demo .btn-filter {
    background-color: #64748b;
}

.items-page-demo .btn-filter:hover {
    background-color: #475569;
}

.items-page-demo .list-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.items-page-demo .list-card .table {
    margin-bottom: 0;
}

.items-page-demo .list-card .table thead th {
    background: #f8fafc;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.items-page-demo .list-card .table tbody td {
    padding: 0.9rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.items-page-demo .list-card .table tbody tr:last-child td {
    border-bottom: none;
}

.items-page-demo .badge-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.items-page-demo .badge-status.active {
    background-color: #f0fdf4;
    color: #16a34a;
    border-color: #dcfce7;
}

.items-page-demo .badge-status.used {
    background-color: #eff6ff;
    color: #2563eb;
    border-color: #dbeafe;
}

.items-page-demo .badge-status.repairing,
.items-page-demo .badge-status.warranty {
    background-color: #fff7ed;
    color: #c2410c;
    border-color: #ffedd5;
}

.items-page-demo .badge-status.scrapped {
    background-color: #fef2f2;
    color: #dc2626;
    border-color: #fee2e2;
}

.items-page-demo .action-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.items-page-demo .action-form {
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
}

.items-page-demo .btn-op {
    border: none;
    background: transparent;
    color: #94a3b8;
    transition: color 0.2s;
    font-size: 1.05rem;
    text-decoration: none;
    padding: 0;
    line-height: 1;
    width: 1.1rem;
    height: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.items-page-demo .btn-op:hover {
    color: #3b82f6;
}

.items-page-demo .btn-op-del:hover {
    color: #ef4444;
}

@media (max-width: 991.98px) {
    .items-page-demo .action-submit-group {
        justify-content: flex-start;
    }
}

.items-page-demo .page-subtitle {
    color: #94a3b8;
    font-size: 0.86rem;
    margin-top: 0.25rem;
}

.item-form-page .action-panel {
    padding-top: 1.35rem;
}

.item-form-page textarea.form-control-custom {
    min-height: 112px;
    resize: vertical;
}

.item-form-page .action-submit-group {
    margin-top: 0.25rem;
}

.item-action-page .item-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.item-action-page .item-meta-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    padding: 0.65rem 0.8rem;
}

.item-action-page .item-meta-card span {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
}

.item-action-page .item-meta-card strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.92rem;
    color: #1e293b;
}

.item-action-page textarea.form-control-custom {
    min-height: 112px;
    resize: vertical;
}

.item-action-page .btn-action-danger {
    background-color: #ef4444;
}

.item-action-page .btn-action-danger:hover {
    background-color: #dc2626;
}

.item-view-page .item-panel-head {
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.item-view-page .item-detail-grid {
    padding: 0.75rem 1.25rem 0.9rem;
}

.item-view-page .item-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.52rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.item-view-page .item-detail-row:last-child {
    border-bottom: none;
}

.item-view-page .item-detail-row span {
    color: #64748b;
    font-size: 0.82rem;
}

.item-view-page .item-detail-row strong {
    color: #1e293b;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: right;
}

.item-view-page .item-actions-wrap {
    border-top: 1px solid #e2e8f0;
    margin-top: 0.45rem;
}

.item-view-page .item-actions-wrap .item-panel-head {
    border-bottom: none;
    background: transparent;
    padding-bottom: 0.35rem;
}

.item-view-page .item-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0 1.25rem 1.1rem;
}

.item-view-page .item-action-grid .btn-create {
    text-align: center;
    padding: 0.48rem 0.55rem;
    font-size: 0.8rem;
}

.item-view-page .btn-danger-light {
    background: #ef4444;
}

.item-view-page .btn-danger-light:hover {
    background: #dc2626;
}

.item-view-page .list-card .table tbody td {
    font-size: 0.84rem;
}

@media (max-width: 1199.98px) {
    .item-view-page .item-action-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .item-action-page .item-meta-grid {
        grid-template-columns: 1fr;
    }

    .item-view-page .item-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .item-view-page .item-detail-row {
        flex-direction: column;
        gap: 0.35rem;
    }

    .item-view-page .item-detail-row strong {
        text-align: left;
    }
}

.dashboard-page-demo {
    background-color: #fcfcfc;
    color: #334155;
}

.dashboard-page-demo .page-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.dashboard-page-demo .page-header h1 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.dashboard-page-demo .page-subtitle {
    color: #94a3b8;
    font-size: 0.86rem;
    margin-top: 0.25rem;
}

.dashboard-page-demo .action-submit-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-page-demo .btn-create {
    background-color: #3b82f6;
    border: none;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    border-radius: 6px;
    transition: background-color 0.2s, transform 0.2s;
    text-decoration: none;
}

.dashboard-page-demo .btn-create:hover {
    background-color: #2563eb;
    color: #ffffff;
    transform: translateY(-1px);
}

.dashboard-page-demo .kpi-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-page-demo .kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.95rem 1rem;
}

.dashboard-page-demo .kpi-card span {
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
}

.dashboard-page-demo .kpi-card strong {
    display: block;
    margin-top: 0.25rem;
    font-size: 1.55rem;
    color: #1e293b;
    line-height: 1.1;
}

.dashboard-page-demo .dashboard-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.dashboard-page-demo .dashboard-panel-head {
    background: #f8fafc;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.dashboard-page-demo .dashboard-panel-body {
    padding: 1rem;
}

.dashboard-page-demo .focus-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.85rem 1rem;
}

.dashboard-page-demo .focus-title {
    font-weight: 700;
    color: #1e293b;
}

.dashboard-page-demo .focus-desc {
    margin-top: 0.2rem;
    font-size: 0.84rem;
    color: #94a3b8;
}

.dashboard-page-demo .focus-value {
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 700;
    color: #3b82f6;
}

.login-page-demo {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(160deg, #f8fbff 0%, #eef4ff 60%, #f7f9fd 100%);
}

.login-page-demo .login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.login-page-demo .login-card {
    width: min(100%, 420px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.3rem 1.35rem 1.15rem;
    box-shadow: 0 18px 28px rgba(15, 23, 42, 0.08);
}

.login-page-demo .login-brand {
    margin-bottom: 1rem;
    text-align: center;
}

.login-page-demo .login-brand h1 {
    margin: 0;
    font-size: 1.35rem;
    color: #1e293b;
    font-weight: 800;
}

.login-page-demo .login-brand p {
    margin: 0.35rem 0 0;
    color: #94a3b8;
    font-size: 0.88rem;
}

.login-page-demo .label-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    display: block;
}

.login-page-demo .form-control-custom {
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 38px;
    line-height: 1.2;
}

.login-page-demo .form-control-custom:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.login-page-demo .btn-create {
    background-color: #3b82f6;
    border: none;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.62rem 1.2rem;
    border-radius: 6px;
    transition: background-color 0.2s, transform 0.2s;
}

.login-page-demo .btn-create:hover {
    background-color: #2563eb;
    color: #ffffff;
    transform: translateY(-1px);
}

.login-page-demo .login-help {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.78rem;
    color: #94a3b8;
    display: grid;
    gap: 0.2rem;
}

@media (max-width: 991.98px) {
    .dashboard-page-demo .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .dashboard-page-demo .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .dashboard-page-demo .kpi-grid {
        grid-template-columns: 1fr;
    }
}

.item-view-v2-page .detail-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.item-view-v2-page .detail-card-head {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.item-view-v2-page .detail-card-head h2 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.item-view-v2-page .detail-card-head h2 i {
    color: #3b82f6;
    font-size: 0.9rem;
}

.item-view-v2-page .detail-card-body {
    padding: 1rem;
}

.item-view-v2-page .detail-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem 1.2rem;
}

.item-view-v2-page .detail-info-item {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: flex-start;
}

.item-view-v2-page .detail-info-item.is-wide strong {
    text-align: right;
    word-break: break-word;
}

.item-view-v2-page .detail-info-item span {
    color: #64748b;
    font-size: 0.82rem;
}

.item-view-v2-page .detail-info-item strong {
    color: #111827;
    font-size: 0.9rem;
    font-weight: 600;
}

.item-view-v2-page .detail-info-item .mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.item-view-v2-page .detail-info-item .serial {
    color: #2563eb;
}

.item-view-v2-page .detail-action-block {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.item-view-v2-page .detail-action-title {
    margin: 0 0 0.7rem;
    font-size: 0.74rem;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.item-view-v2-page .detail-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.item-view-v2-page .btn-flow {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
}

.item-view-v2-page .btn-flow-danger {
    margin-left: auto;
    background: #ef4444;
}

.item-view-v2-page .btn-flow-danger:hover {
    background: #dc2626;
}

.item-view-v2-page .detail-log-table thead th {
    background: #f8fafc;
    font-size: 0.74rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.72rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.item-view-v2-page .detail-log-table tbody td {
    padding: 0.82rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.86rem;
    color: #334155;
}

.item-view-v2-page .detail-log-table tbody tr:hover td {
    background: #f8fbff;
}

.item-view-v2-page .detail-log-table .time-cell {
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.78rem;
}

.item-view-v2-page .detail-log-table .state-cell {
    font-style: italic;
}

.item-view-v2-page .detail-log-table .target-cell,
.item-view-v2-page .detail-log-table .note-cell {
    font-size: 0.8rem;
}

.item-view-v2-page .log-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    padding: 0.18rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.item-view-v2-page .log-pill.is-blue {
    background: #eff6ff;
    color: #1d4ed8;
}

.item-view-v2-page .log-pill.is-green {
    background: #f0fdf4;
    color: #15803d;
}

.item-view-v2-page .log-pill.is-orange {
    background: #fff7ed;
    color: #c2410c;
}

.item-view-v2-page .log-pill.is-red {
    background: #fef2f2;
    color: #dc2626;
}

.item-view-v2-page .log-pill.is-gray {
    background: #f1f5f9;
    color: #475569;
}

.item-view-v2-page .detail-card-foot {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 0.58rem 1rem;
    text-align: right;
    font-size: 0.74rem;
    color: #94a3b8;
}

@media (max-width: 991.98px) {
    .item-view-v2-page .detail-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .item-view-v2-page .detail-info-grid {
        grid-template-columns: 1fr;
    }

    .item-view-v2-page .detail-info-item {
        flex-direction: column;
        gap: 0.35rem;
    }

    .item-view-v2-page .detail-info-item.is-wide strong {
        text-align: left;
    }

    .item-view-v2-page .btn-flow-danger {
        margin-left: 0;
    }

    .item-view-v2-page .detail-action-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
