@media (max-width: 600px) {
    .tthc-btn-mobile-list {
        background: rgb(0,144,255) !important;
        border: none !important;
        font-size: 0 !important;
        padding: 10px 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        width: 44px;
        height: 44px;
        margin: 0 auto;
    }
    .tthc-btn-mobile-list .dashicons {
        color: #fff !important;
        font-size: 22px !important;
        margin: 0;
        z-index: 2;
    }
    .tthc-btn-mobile-list {
        background: rgb(0 86 179) !important;
        color: #fff !important;
    }
}
@media (max-width: 600px) {
    .tthc-btn-mobile-list {
        position: relative;
    }
    .tthc-btn-mobile-list .dashicons {
        position: relative;
        z-index: 2;
    }
}
@media (max-width: 600px) {
    .tthc-btn-mobile-list {
        background: rgb(0 86 179) !important;
        border-radius: 8px;
        box-shadow: none;
    }
    .tthc-btn-mobile-list {
        background: rgb(0 86 179) !important;
        border-radius: 8px;
        box-shadow: none;
    }
    .tthc-btn-mobile-list .dashicons {
        color: #1976d2 !important;
        font-size: 24px;
        filter: none;
    }
    .tthc-btn-mobile-list .dashicons {
        color: rgb(0 86 179) !important;
        font-size: 24px;
        filter: none;
    }
}
@media (max-width: 600px) {
    .tthc-btn-mobile-list .dashicons {
        color: #fff !important;
    }
    .tthc-btn-mobile-list[style*="background:#ff9800"] .dashicons {
        color: #fff !important;
    }
}
@media (max-width: 600px) {
    .tthc-btn-mobile-list {
        font-size: 0 !important;
        padding: 10px 12px;
    }
    .tthc-btn-mobile-list .dashicons {
        font-size: 22px;
        margin-right: 0;
    }
}
/* Responsive bảng danh sách thủ tục hành chính */
@media (max-width: 600px) {
    .tthc-table-wrapper {
        overflow-x: auto;
        padding: 0;
    }
    .tthc-table {
        min-width: 600px;
        font-size: 0.95rem;
    }
    .tthc-table th, .tthc-table td {
        padding: 6px 8px;
        word-break: break-word;
    }
    .tthc-table th {
        font-size: 1rem;
    }
    .tthc-table td {
        font-size: 0.95rem;
    }
}
/* Responsive: chỉ hiển thị progress bar trên desktop, card trên mobile */
.tthc-process-bar-responsive-mobile { display: none !important; }
.tthc-process-bar-responsive { display: flex !important; }
@media (max-width: 600px) {
    .tthc-process-bar-responsive { display: none !important; }
    .tthc-process-bar-responsive-mobile { display: flex !important; }
}
/* Card quy trình 5 bước */
.tthc-process-card-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 24px auto;
    max-width: 900px;
    justify-content: center;
}
.tthc-process-card {
    background: #fff;
    border: 2px solid #c62828;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 18px 16px;
    min-width: 140px;
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.3s, border-color 0.3s, background 0.3s;
    cursor: pointer;
    position: relative;
}
.tthc-process-card.active {
    background: #fdeaea;
    border-color: #c62828;
    box-shadow: 0 0 0 4px #f5c6cb;
}
.tthc-process-card-circle {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #c62828;
    border-radius: 50%;
    color: #c62828;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.tthc-process-card-label {
    color: #c62828;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
}
@media (max-width: 600px) {
    .tthc-process-card-bar {
        gap: 12px;
    }
    .tthc-process-card {
        min-width: 45%;
        flex: 1 1 45%;
        margin-bottom: 0;
    }
}
/* Tiến trình nộp thủ tục giống hình minh họa */
.tthc-progress-bar,
.tthc-process-bar-horizontal,
.tthc-process-bar-vertical {
    transition: all 0.3s;
}

@media (max-width: 600px) {
    .tthc-progress-bar,
    .tthc-process-bar-horizontal {
        flex-direction: column !important;
        height: auto !important;
        min-width: 0;
        max-width: 100%;
        padding: 0 8px;
    }
    .tthc-process-step {
        flex: unset !important;
        width: 100%;
        min-width: 0;
        margin-bottom: 24px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        position: relative;
    }
    .tthc-process-circle {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-right: 16px;
        margin-bottom: 0;
    }
    .tthc-process-label {
        font-size: 1rem;
        text-align: left;
        margin-bottom: 0;
        color: #c62828;
        font-weight: bold;
    }
    .tthc-progress-bar::before,
    .tthc-process-bar-horizontal::before {
        display: none;
    }
    .tthc-process-step:not(:last-child)::after {
        content: "";
        position: absolute;
        left: 20px;
        top: 40px;
        width: 2px;
        height: 32px;
        background: #e0e0e0;
        z-index: 0;
        border-radius: 1px;
    }
    .tthc-process-step.done:not(:last-child)::after {
        background: #c62828;
    }
}
.tthc-progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 32px 0 24px 0;
    position: relative;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    height: 90px;
}
.tthc-progress-bar::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 24px;
    right: 24px;
    height: 6px;
    background: #e0e0e0;
    z-index: 0;
    border-radius: 3px;
}
.tthc-process-step {
    text-align: center;
    position: relative;
    flex: 1;
    z-index: 1;
    background: none;
}
.tthc-process-step.done .tthc-process-circle {
    background: #c62828;
    color: #fff;
    border-color: #c62828;
}
.tthc-process-step.done .tthc-process-label {
    color: #c62828;
    font-weight: bold;
}
.tthc-process-step.active .tthc-process-circle {
    background: #fff;
    color: #c62828;
    border-color: #c62828;
    box-shadow: 0 0 0 4px #f5c6cb;
}
.tthc-process-step.active .tthc-process-label {
    color: #c62828;
    font-weight: bold;
}
.tthc-process-circle {
    width: 48px;
    height: 48px;
    background: #fff;
    border: 4px solid #c62828;
    border-radius: 50%;
    color: #c62828;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.tthc-process-label {
    color: #888;
    font-size: 1rem;
    font-weight: 500;
}
.tthc-process-desc {
    background: #fffbe6;
    color: #333;
    padding: 12px 24px;
    border-radius: 6px;
    margin: 0 auto 24px auto;
    max-width: 900px;
    font-size: 1.1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.tthc-process-bar .tthc-process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 40px;
    left: 50%;
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    z-index: -1;
    border-radius: 3px;
    transform: translateX(24px);
}
.tthc-process-step.done:not(:last-child)::after {
    background: #c62828;
}
.tthc-search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.tthc-search-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1.1rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.tthc-table-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 24px;
    margin-top: 0;
}
.tthc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.tthc-table th, .tthc-table td {
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    text-align: center;
}
.tthc-table th {
    background: #0056b3;
    color: #fff;
}
.tthc-title-link {
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
}
.tthc-title-link:hover {
    text-decoration: underline;
}
.tthc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0056b3;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}
.tthc-btn:hover {
    background: #003974;
}
.tthc-btn .dashicons {
    font-size: 1.2em;
}
.tthc-pagination {
    text-align: center;
    margin-top: 20px;
}
.tthc-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}
.tthc-pagination .current {
    background-color: #1976d2;
    color: #fff;
    border-color: #1976d2;
}
.tthc-pagination a.page-numbers:hover {
    background-color: #f5f5f5;
}

.tthc-process-header {
    display: flex;
    align-items: center;
    background: #fdeaea;
    padding: 12px 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.tthc-process-header .dashicons {
    font-size: 2rem;
    color: #c62828;
    background: #fff;
    border-radius: 50%;
    padding: 8px;
    margin-right: 16px;
}
.tthc-process-bar-vertical {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 auto 24px auto;
    max-width: 900px;
    width: 100%;
    position: relative;
}
.tthc-process-bar-vertical .tthc-process-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 120px;
}
.tthc-process-bar-vertical .tthc-process-circle {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}
.tthc-process-bar-vertical .tthc-process-label {
    font-size: 1.05rem;
    font-weight: 500;
    color: #888;
    margin-bottom: 8px;
}
.tthc-process-bar-vertical .tthc-process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 24px;
    left: 50%;
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    z-index: 0;
    border-radius: 3px;
    transform: translateX(24px);
}
.tthc-process-bar-vertical .tthc-process-step.done:not(:last-child)::after {
    background: #c62828;
}
.tthc-process-bar-vertical .tthc-process-step.active .tthc-process-circle {
    box-shadow: 0 0 0 4px #f5c6cb;
}
.tthc-process-bar-vertical .tthc-process-step.active .tthc-process-label {
    color: #c62828;
    font-weight: bold;
}
.tthc-process-bar-vertical .tthc-process-step.done .tthc-process-circle {
    background: #c62828;
    color: #fff;
    border-color: #c62828;
}
.tthc-process-bar-vertical .tthc-process-step.done .tthc-process-label {
    color: #c62828;
    font-weight: bold;
}

.tthc-process-bar-horizontal {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto 24px auto;
    max-width: 900px;
    width: 100%;
    height: 110px;
    position: relative;
}
/* Fix đều số thứ tự và label cho horizontal bar */
.tthc-process-bar-horizontal .tthc-process-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 110px;
    max-width: 160px;
}
.tthc-process-bar-horizontal .tthc-process-circle {
    width: 48px;
    height: 48px;
    background: #fff;
    border: 4px solid #c62828;
    border-radius: 50%;
    color: #c62828;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.tthc-process-bar-horizontal .tthc-process-label {
    color: #c62828;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 8px;
    text-align: center;
}
.tthc-process-bar-horizontal .tthc-process-step:first-child .tthc-process-label {
    color: #c62828;
    font-weight: bold;
}
.tthc-process-bar-horizontal .tthc-process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 28px;
    left: 50%;
    width: 100%;
    height: 6px;
    background: #c62828;
    z-index: 0;
    border-radius: 3px;
    transform: translateX(28px);
}
.tthc-process-bar-horizontal .tthc-process-step.active .tthc-process-circle {
    box-shadow: 0 0 0 4px #f5c6cb;
}
.tthc-process-bar-horizontal .tthc-process-step.active .tthc-process-label {
    color: #c62828;
    font-weight: bold;
}
.tthc-process-bar-horizontal .tthc-process-step.done .tthc-process-circle {
    background: #c62828;
    color: #fff;
    border-color: #c62828;
}
.tthc-process-bar-horizontal .tthc-process-step.done .tthc-process-label {
    color: #c62828;
    font-weight: bold;
}
.tthc-process-header a {
    margin-left: auto;
    color: #ff9800;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: underline;
}

.tthc-process-bar,
.tthc-process-bar-vertical,
.tthc-process-bar-horizontal {
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}
.tthc-process-bar-horizontal {
    justify-content: space-between;
    align-items: center;
    height: 110px;
}
