/* ============================================================
   143tech HaloPSA Self-Service Portal — Faithful Replica CSS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

/* ---------- Base (Bootstrap handles reset) ---------- */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #F5F7FA;
    color: #303030;
    line-height: 1.5;
    min-height: 100vh;
    padding-top: 60px;
}

body.portal {
    font-family: 'Poppins', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---------- Container Utilities ---------- */
.portal-container {
    padding: 24px 0;
}

.portal-container-height {
    min-height: calc(100vh - 60px);
}

.container-max {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- Demo Banner / App Notice ---------- */
.demo-banner {
    background: #FFF3E0;
    border-bottom: 1px solid #FFB74D;
    color: #E65100;
    text-align: center;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.app-notice {
    height: 27px;
    background-color: rgb(6, 68, 108);
    color: rgb(255, 255, 255);
    text-align: center;
    line-height: 27px;
    font-size: 13px;
    z-index: 99;
}

/* ---------- Navigation (.nhd-nav) ---------- */
.nhd-nav {
    background: #06446C;
    color: #FFFFFF;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.nhd-nav-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.nhd-nav-leftAlign.nhd-nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 40px;
}

.nhd-nav-topItem {
    display: inline-block;
}

.nhd-nav-brandingLogo {
    height: 32px;
    width: auto;
}

.nhd-nav-brandingText {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nhd-nav-brandingText .brand-accent {
    font-weight: 400;
    opacity: 0.8;
}

.nhd-nav-rightAlign.nhd-nav-login {
    display: flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

.nhd-nav-rightAlign.nhd-nav-options {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: flex-end;
}

.nhd-nav .buttoncontainer.hastext {
    display: inline-block;
}

.nhd-nav .nhd-nav-btn {
    color: #FFFFFF;
    padding: 8px 14px;
    border: none;
    box-shadow: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
    display: inline-block;
}

.nhd-nav .nhd-nav-btn:hover,
.nhd-nav .nhd-nav-btn.active {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

.nhd-nav .nhd-nav-btn.profile-btn {
    background: transparent;
    padding: 0;
    border: none;
    cursor: pointer;
}

.nhd-nav .nhd-nav-myprofile-image {
    display: flex;
    align-items: center;
}

.nhd-nav .profile-circle.for-nhd-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.nhd-nav .profile-circle .initials {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Legacy nav-buttons/nav-right kept for backward compat */

/* Legacy header support */
.portal-header {
    background: #06446C;
    display: flex;
    align-items: center;
    padding: 0 24px;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 40px;
    flex-shrink: 0;
}

.header-logo .logo-box {
    background: #0F61A1;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 18px;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 1px;
}

.header-logo .logo-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 500;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.header-nav a {
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    box-shadow: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.active {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

/* User Avatar / Profile Circle */
.user-avatar {
    width: 36px;
    height: 36px;
    background: #0F61A1;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* ---------- Language Dropdown (.langdrop) ---------- */
.langdrop {
    width: 200px;
    margin: 0 auto;
    border: 1px solid #CCC;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    color: #303030;
    background: #FFFFFF;
    cursor: pointer;
    appearance: auto;
}

.lang-switcher {
    position: relative;
}

.lang-switcher-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s, border-color 0.15s;
    min-width: 100px;
    justify-content: space-between;
}

.lang-switcher-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-switcher-btn .arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

[x-cloak] {
    display: none !important;
}

.lang-dropdown {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 0;
    background: #FFFFFF;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    overflow: hidden;
    z-index: 200;
}

.lang-dropdown form {
    display: block;
}

.lang-dropdown button {
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: #303030;
    transition: background 0.12s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-dropdown button:hover {
    background: #F5F7FA;
}

.lang-dropdown button.active-lang {
    background: #E3F2FD;
    color: #06446C;
    font-weight: 600;
}

/* ---------- Home Page Hero / Search Screen ---------- */
.page-portal-background {
    width: 100%;
}

.searchscreen {
    position: relative;
}

.searchscreen .portal-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
}

.searchscreen .searchbar-container {
    position: relative;
    z-index: 1;
    padding: 40px 0 80px;
    text-align: center;
}

.portal .search-title {
    font-size: 2.5rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 40px;
}

.portal .searchbox {
    border-radius: .75rem;
}

.searchbox {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
}

.searchscreen .searchbox {
    height: 60px;
}

.searchbox > div {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: .75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    height: 100%;
    overflow: hidden;
}

.searchbox .searchbutton {
    padding: 0 12px 0 18px;
    font-size: 18px;
    flex-shrink: 0;
}

.searchbox .searchholder {
    flex: 1;
    height: 100%;
}

.searchbox .searchholder input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    color: #303030;
    background: transparent;
    padding: 16px 24px 16px 0;
}

.searchscreen .searchbox input[type=text] {
    font-size: 16px !important;
}

#searchscreen-searchbar::placeholder {
    color: #808080;
}

.portal .searchbox:focus-within {
    border: 2px solid #9ca6af;
}

/* Legacy search bar support */
.search-bar-wrapper {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 32px;
    padding: 4px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
}

.search-bar .search-icon {
    color: #9BB4C4;
    font-size: 18px;
    flex-shrink: 0;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #303030;
    background: transparent;
}

.search-bar input::placeholder {
    color: #9BB4C4;
}

/* ---------- Dashboard Cards (.dashbuttons) ---------- */
.dashbuttons.row {
    /* Bootstrap .row handles flex layout; col-sm-6 / col-md-4 handle widths */
}

.hvr-bob {
    padding: 12px;
}

.card.dashbtn {
    background: #FFFFFF;
    border-radius: .75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
    padding: 32px 24px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    height: 100%;
}

.portal .dashbtn:hover,
.card.dashbtn:hover {
    background-color: #fff;
    box-shadow: 0 20px 30px 0 rgba(36, 50, 66, .14);
}

.card.dashbtn.noborder {
    border: none;
}

.card.dashbtn .card-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #06446C;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 16px;
    flex-shrink: 0;
}

.card.dashbtn .card-img i {
    color: white;
}

/* When card-img contains an image (catalog), override circle styling */
.card.dashbtn .card-img:has(img) {
    width: 100px;
    height: 100px;
    border-radius: 0;
    background: transparent;
}

.card.dashbtn .card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card.dashbtn .card-title {
    color: #303030;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card.dashbtn .card-desc,
.card.dashbtn .card-text {
    color: #666666;
    font-size: 13px;
    line-height: 1.5;
}

/* Legacy home cards grid */
.home-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .home-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .home-cards {
        grid-template-columns: 1fr;
    }
}

.home-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.home-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.home-card .card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #06446C;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.home-card .card-title {
    font-size: 16px;
    font-weight: 600;
    color: #303030;
}

.home-card .card-desc {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
}

/* ---------- Service Catalog Cards ---------- */
.catalog-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.catalog-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.catalog-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.catalog-card .cat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #06446C;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.catalog-card .cat-info {
    flex: 1;
    min-width: 0;
}

.catalog-card .cat-title {
    font-size: 16px;
    font-weight: 600;
    color: #303030;
    margin-bottom: 4px;
}

.catalog-card .cat-desc {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
}

.catalog-card .cat-count {
    font-size: 12px;
    color: #06446C;
    font-weight: 600;
    margin-top: 6px;
}

/* ---------- Category Services — Card Grid ---------- */
.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.category-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #06446C;
}

/* Service tile card (thinner than catalog category cards) */
.svc-card {
    background: #FFFFFF;
    border-radius: .75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
    padding: 20px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.svc-card:hover {
    background-color: #fff;
    box-shadow: 0 20px 30px 0 rgba(36, 50, 66, .14);
    text-decoration: none;
    color: inherit;
}

.svcatalog-item-pic {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svcatalog-item-pic img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.svcatalog-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #303030;
    line-height: 1.4;
}

/* Legacy service-item styles kept for backward compat */

/* ---------- Status Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.badge-submitted {
    background: #E3F2FD;
    color: #1565C0;
}

.badge-pending_approval {
    background: #FFF3E0;
    color: #E65100;
}

.badge-approved {
    background: #E8F5E9;
    color: #2E7D32;
}

.badge-in_progress {
    background: #E3F2FD;
    color: #1565C0;
    animation: pulse-bg 2s infinite;
}

.badge-completed {
    background: #E8F5E9;
    color: #2E7D32;
}

.badge-rejected {
    background: #FFEBEE;
    color: #C62828;
}

.badge-error {
    background: #FFEBEE;
    color: #C62828;
}

/* Legacy status-* badge classes */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.status-badge::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 10px;
}

.status-submitted { background: #E3F2FD; color: #1565C0; }
.status-submitted::before { content: "\f0e0"; }
.status-pending_approval { background: #FFF3E0; color: #E65100; }
.status-pending_approval::before { content: "\f017"; }
.status-approved { background: #E8F5E9; color: #2E7D32; }
.status-approved::before { content: "\f00c"; }
.status-in_progress { background: #E3F2FD; color: #1565C0; animation: pulse-bg 2s infinite; }
.status-in_progress::before { content: "\f013"; }
.status-completed { background: #E8F5E9; color: #2E7D32; }
.status-completed::before { content: "\f560"; }
.status-rejected { background: #FFEBEE; color: #C62828; }
.status-rejected::before { content: "\f00d"; }
.status-error { background: #FFEBEE; color: #C62828; }
.status-error::before { content: "\f071"; }

@keyframes pulse-bg {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ---------- Approval Tier Badges ---------- */
.badge-tier-1 {
    background: #E8F5E9;
    color: #2E7D32;
}

.badge-tier-2 {
    background: #FFF3E0;
    color: #E65100;
}

.badge-tier-3 {
    background: #FFF3E0;
    color: #E65100;
}

.badge-tier-4 {
    background: #FCE4EC;
    color: #AD1457;
}

.badge-tier-5 {
    background: #FFEBEE;
    color: #C62828;
}

.badge-time {
    background: #F5F7FA;
    color: #666666;
}

/* ---------- Priority Badges ---------- */
.priority-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.priority-low { background: #F5F7FA; color: #666666; }
.priority-medium { background: #E3F2FD; color: #1565C0; }
.priority-high { background: #FFF3E0; color: #E65100; }
.priority-critical { background: #FFEBEE; color: #C62828; }

/* ---------- Forms (.details-form) ---------- */
.details-form {
    width: 100%;
}

.details-group {
    margin-bottom: 24px;
}

.card-panel {
    background: #FFFFFF;
    padding: 24px;
    margin-bottom: 16px;
}

.details-group.card-panel {
    border-radius: .75rem;
    box-shadow: 0 4px 8px 0 rgba(24, 50, 71, .1);
}

.card-panel h3.col-form-label {
    color: #06446C;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #E8EEF2;
    padding-bottom: 12px;
    margin-bottom: 16px;
    display: block;
    width: 100%;
}

.form-control {
    width: 100%;
    border: 1px solid #CCC;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    color: #303030;
    background: #FFFFFF;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.form-control:focus {
    border-color: #06446C;
    box-shadow: 0 0 0 2px rgba(6, 68, 108, 0.15);
}

.form-control::placeholder {
    color: #9BB4C4;
}

.details-form label,
.form-group label {
    display: block;
    color: #333333;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label .req {
    color: #dc3545;
    margin-left: 2px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group .checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group .checkbox-wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #06446C;
}

.form-group .error-msg {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

/* Legacy form wrapper */
.form-wrapper {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 32px;
    max-width: 720px;
}

.form-wrapper h2 {
    font-size: 20px;
    font-weight: 700;
    color: #06446C;
    margin-bottom: 4px;
}

.form-wrapper .form-subtitle {
    font-size: 14px;
    color: #666666;
    margin-bottom: 28px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

/* ---------- Tables (.ReactTable) ---------- */
.ReactTable {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    background: #FFFFFF;
}

.rt-table {
    width: 100%;
}

.rt-thead.-header {
    background: #F5F7FA;
    border-bottom: 2px solid #E8EEF2;
}

.rt-thead .rt-tr {
    display: flex;
}

.rt-th {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 13px;
    color: #06446C;
    text-align: left;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.rt-th:hover {
    background: rgba(6, 68, 108, 0.05);
}

.rt-tbody {
    width: 100%;
}

.rt-tbody .rt-tr-group {
    border-bottom: 1px solid #F0F0F0;
}

.rt-tbody .rt-tr {
    display: flex;
    border-bottom: 1px solid #F0F0F0;
    transition: background 0.12s;
}

.rt-tbody .rt-tr.-odd {
    background: #FAFBFC;
}

.rt-tbody .rt-tr:hover {
    background: #EDF4F8;
}

.rt-td {
    padding: 12px 16px;
    font-size: 14px;
    color: #303030;
}

.rt-noData {
    text-align: center;
    padding: 40px 24px;
    color: #9BB4C4;
    font-size: 14px;
}

/* Pagination */
.rt-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-top: 1px solid #E8EEF2;
    gap: 8px;
}

/* Legacy tickets table */
.tickets-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.tickets-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #06446C;
}

.filter-bar {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-bar select {
    padding: 8px 14px;
    border: 1px solid #CCC;
    border-radius: 6px;
    font-size: 13px;
    color: #303030;
    background: #FFFFFF;
    cursor: pointer;
}

.tickets-table {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.tickets-table table {
    width: 100%;
    border-collapse: collapse;
}

.tickets-table thead {
    background: #F5F7FA;
}

.tickets-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #06446C;
    border-bottom: 2px solid #E8EEF2;
}

.tickets-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #303030;
    border-bottom: 1px solid #F0F0F0;
}

.tickets-table tbody tr {
    cursor: pointer;
    transition: background 0.12s;
}

.tickets-table tbody tr:hover {
    background: #EDF4F8;
}

.tickets-table tbody tr:nth-child(odd) {
    background: #FAFBFC;
}

.tickets-table tbody tr:nth-child(odd):hover {
    background: #EDF4F8;
}

.tickets-table tbody tr:last-child td {
    border-bottom: none;
}

/* ---------- Buttons ---------- */
.nhd-button.curve {
    background: #06446C;
    color: #FFFFFF;
    border-radius: 20px;
    padding: 8px 24px;
    border: none;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nhd-button.curve:hover {
    background: #0F61A1;
}

.solidbutton.fabtn {
    background: #F5F7FA;
    color: #06446C;
    border: 1px solid #CCC;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.solidbutton.fabtn:hover {
    background: #E8EEF2;
}

.btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.15s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: #06446C;
    color: #FFFFFF;
    border-radius: 6px;
    padding: 10px 24px;
}

.btn-primary:hover {
    background: #0F61A1;
}

.btn-success {
    background: #28a745;
    color: #FFFFFF;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: #FFFFFF;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-secondary {
    background: #F5F7FA;
    color: #333333;
    border: 1px solid #CCC;
}

.btn-secondary:hover {
    background: #E8EEF2;
}

.btn-warning {
    background: #FFB74D;
    color: #FFFFFF;
}

.btn-warning:hover {
    background: #FFA726;
}

/* ---------- Ticket Detail ---------- */
.ticket-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .ticket-detail-layout {
        grid-template-columns: 1fr;
    }
}

.ticket-info-card {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 28px;
}

.ticket-info-card h2 {
    font-size: 18px;
    font-weight: 600;
    color: #06446C;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #F0F0F0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 13px;
    color: #666666;
    font-weight: 400;
}

.info-value {
    font-size: 14px;
    color: #303030;
    font-weight: 500;
    text-align: right;
}

.form-data-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #E8EEF2;
}

.form-data-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: #06446C;
    margin-bottom: 12px;
}

/* ---------- Timeline ---------- */
.timeline-card {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 28px;
}

.timeline-card h2 {
    font-size: 18px;
    font-weight: 600;
    color: #06446C;
    margin-bottom: 24px;
}

.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #E8EEF2;
}

.timeline-entry {
    position: relative;
    margin-bottom: 24px;
}

.timeline-entry:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #06446C;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    z-index: 1;
}

.timeline-dot.dot-submit { background: #1565C0; }
.timeline-dot.dot-approve { background: #2E7D32; }
.timeline-dot.dot-reject { background: #C62828; }
.timeline-dot.dot-progress { background: #E65100; }
.timeline-dot.dot-complete { background: #2E7D32; }
.timeline-dot.dot-comment { background: #0F61A1; }
.timeline-dot.dot-error { background: #C62828; }

.timeline-content {
    background: #F5F7FA;
    border-radius: 8px;
    padding: 12px 16px;
}

.timeline-actor {
    font-size: 13px;
    font-weight: 700;
    color: #06446C;
}

.timeline-message {
    font-size: 13px;
    color: #666666;
    margin-top: 2px;
}

.timeline-time {
    font-size: 11px;
    color: #9BB4C4;
    margin-top: 4px;
}

/* Simulation Buttons */
.sim-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---------- Chat Widget (.halo-chat-bot) ---------- */
.halo-chat-bot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.chat-circle {
    width: 56px;
    height: 56px;
    background: #06446C;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    border: none;
    transition: background 0.15s, transform 0.15s;
}

.chat-circle:hover {
    background: #0F61A1;
    transform: scale(1.05);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
    color: #666666;
    gap: 0;
    background: transparent;
    padding: 0;
    list-style: none;
}

.breadcrumb a {
    color: #06446C;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .sep {
    margin: 0 8px;
    color: #CCC;
}

.breadcrumb .current {
    color: #666666;
}

/* ---------- Knowledge Base ---------- */
.kb-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .kb-layout {
        grid-template-columns: 1fr;
    }
}

.kb-sidebar {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 20px;
    align-self: start;
}

.kb-sidebar h3 {
    font-size: 13px;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.kb-sidebar-item {
    display: block;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    color: #666666;
    cursor: pointer;
    transition: background 0.12s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.kb-sidebar-item:hover {
    background: #F5F7FA;
}

.kb-sidebar-item.active {
    background: #E3F2FD;
    color: #06446C;
    font-weight: 600;
}

.kb-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kb-article {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.kb-article-header {
    padding: 16px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.12s;
}

.kb-article-header:hover {
    background: #F5F7FA;
}

.kb-article-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: #06446C;
}

.kb-article-header .chevron {
    color: #9BB4C4;
    transition: transform 0.2s;
    font-size: 12px;
}

.kb-article-header .chevron.open {
    transform: rotate(180deg);
}

.kb-article-body {
    display: none;
    padding: 0 24px 20px;
    font-size: 14px;
    color: #666666;
    line-height: 1.7;
}

.kb-article-body.open {
    display: block;
}

/* ---------- Reports / Dashboard ---------- */
.reports-header {
    margin-bottom: 28px;
}

.reports-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #06446C;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

@media (max-width: 900px) {
    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .stat-cards {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 24px;
    text-align: center;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #FFFFFF;
}

.stat-card .stat-icon.icon-tickets { background: #06446C; }
.stat-card .stat-icon.icon-sla { background: #A4DD00; }
.stat-card .stat-icon.icon-time { background: #E65100; }
.stat-card .stat-icon.icon-approvals { background: #0F61A1; }

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 800;
    color: #303030;
}

.stat-card .stat-label {
    font-size: 13px;
    color: #666666;
    margin-top: 4px;
}

/* Bar chart placeholder */
.chart-placeholder {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 28px;
}

.chart-placeholder h3 {
    font-size: 16px;
    font-weight: 600;
    color: #06446C;
    margin-bottom: 20px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 180px;
    padding-top: 8px;
}

.chart-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar {
    width: 100%;
    max-width: 48px;
    border-radius: 6px 6px 0 0;
    transition: height 0.4s;
}

.chart-bar-label {
    font-size: 11px;
    color: #666666;
    text-align: center;
    white-space: nowrap;
}

.chart-bar-value {
    font-size: 11px;
    font-weight: 700;
    color: #303030;
}

/* ---------- Page Title (reusable) ---------- */
.page-title {
    font-size: 22px;
    font-weight: 700;
    color: #06446C;
    margin-bottom: 24px;
}

.portal .page-title h1,
.portal .details-form .details-group-header.title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 200;
}

/* ---------- Main Content ---------- */
.portal-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #9BB4C4;
}

.empty-state .empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 15px;
}

/* ---------- Flash Messages ---------- */
.flash-success {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.flash-error {
    background: #FFEBEE;
    color: #C62828;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.flash-warning {
    background: #FFF3E0;
    color: #E65100;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* ---------- Loading Indicator ---------- */
[wire\:loading] {
    opacity: 0.6;
    pointer-events: none;
}

/* ---------- Hamburger Menu ---------- */
.nhd-nav-hamburger {
    display: none;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 20px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
}

.nhd-nav-hamburger:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .nhd-nav {
        padding: 0 12px;
    }

    .nhd-nav-hamburger {
        display: inline-flex;
        align-items: center;
    }

    .nhd-nav-rightAlign.nhd-nav-options {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #06446C;
        flex-direction: column;
        padding: 8px 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .nhd-nav-rightAlign.nhd-nav-options.mobile-open {
        display: flex;
    }

    .nhd-nav-rightAlign.nhd-nav-options .buttoncontainer.hastext {
        display: block;
        width: 100%;
    }

    .nhd-nav-rightAlign.nhd-nav-options .nhd-nav-btn {
        display: block;
        width: 100%;
        text-align: left;
        padding: 12px 24px;
        border-radius: 0;
    }

    .nhd-nav-leftAlign.nhd-nav-logo {
        margin-right: auto;
    }

    .portal-main {
        padding: 16px 12px 40px;
    }

    .container-max {
        padding: 0 12px;
    }

    .details-form .row {
        flex-direction: column;
    }

    .details-form .col-lg-6,
    .details-form .col-md-6 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .ticket-detail-layout {
        grid-template-columns: 1fr;
    }

    .searchscreen .searchbar-container {
        padding: 24px 0 48px;
    }

    .portal .search-title {
        font-size: 22px;
    }

    .dashbuttons {
        margin: -8px;
    }

    .hvr-bob {
        width: 100%;
        padding: 8px;
    }

    /* Tables: horizontal scroll on mobile */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-responsive table {
        min-width: 600px;
    }

    /* ReactTable: horizontal scroll on mobile */
    .ReactTable {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .rt-table {
        min-width: 700px;
    }

    /* KB sidebar: horizontal scrollable tabs on mobile */
    .col-lg-3.col-md-4 .card-panel {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    /* Footer columns stack */
    .page-footer .col-lg-6 {
        margin-bottom: 16px;
    }

    /* Back button smaller */
    .backbtn {
        width: 40px;
        margin: 5px 12px;
    }
}

/* ---------- Misc Utilities ---------- */
.text-muted {
    color: #666666;
}

.text-primary {
    color: #06446C;
}

.text-success {
    color: #A4DD00;
}

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

/* ---------- Back Button ---------- */
.backbtn {
    background-color: rgb(6, 68, 108);
    width: 50px;
    border: none;
    margin: 5px 20px;
    border-radius: 8px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.15s;
}

.backbtn:hover {
    background-color: #0F61A1;
}

/* ---------- Footer ---------- */
.page-footer {
    padding: 20px 0 24px;
}

.page-footer a:hover {
    opacity: 0.85;
}

/* SVG icon helper */
.icon-svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: middle;
}

/* ---------- HaloPSA Custom Overrides ---------- */
h5 {
    color: #333333;
    font-family: 'Poppins', sans-serif;
}

.ReactModalPortal, body .portal {
    font-family: 'Poppins', sans-serif;
}

.icon-menu-option i {
    color: white;
}

.portal footer a[href*="usehalo.com"] {
    display: none !important;
}
