    *{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html body{
    background:#fafafa;
    color:#2A2723;
    font-size: 16px!important;
}

body a{color:rgb(42, 39, 35);}
body a:hover{color:var(--e-global-color-primary);}

.small-button{padding:.4rem 1rem!important;}

.mt-24{margin-top:16px;}
.mb-24{margin-bottom:16px;}

p{color:#7a7a7a;}

.page-id-1323  header#site-header , footer#site-footer {
    display: none;
}
.page-id-1394  header#site-header , footer#site-footer {
    display: none;
}
.page-id-1422  header#site-header , footer#site-footer {
    display: none;
}
.page-id-1450  header#site-header , footer#site-footer {
    display: none;
}
.page-id-1474  header#site-header , footer#site-footer {
    display: none;
}
.page-id-1585  header#site-header , footer#site-footer {
    display: none;
}
.tab-dashboard-wrapper{
    display:flex;
    min-height:100vh;
}

.mt-20{margin-top:20px;}
.mt-10{margin-top:10px;}

/* SIDEBAR */
h1,h2,h3,h4,h5,h6{
    margin:0 !important;
    padding:0;
}
.tab-sidebar{
    width:290px;
    background:#08111d;
    color:#fff;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.tab-logo{
    display:flex;
    align-items:center;
    gap:15px;
    padding:10px 20px;
    border-bottom:1px solid rgba(255,255,255,0.08);
}

.tab-logo img{
    width:140px;
    display: block;
}

.tab-sidebar-menu{
    padding:15px 12px;
    display:flex;
    flex-direction:column;
    gap:6px;
}

.tab-sidebar-menu a{
    color:#fff;
    text-decoration:none;
    padding:14px 16px;
    border-radius:10px;
    display:flex;
    align-items:center;
    gap:14px;
    font-size:14px;
    transition:0.3s;
}

.tab-sidebar-menu a:hover,
.tab-sidebar-menu a.active{
    background:var(--e-global-color-primary);
    color:#fff;
}
.tab-sidebar-menu a.sub-menu:hover,
.tab-sidebar-menu a.sub-menu.active{
    color:var(--e-global-color-primary);
    background: transparent;
}
.tab-sidebar-menu a i{
    width:18px;
}

.tab-menu-heading{
    padding:10px 24px;
    color:var(--e-global-color-primary);
    font-size:16px;
    font-weight:bold;
}

.secondary-menu .sub-menu {
    position: relative;
    padding-left: 30px;
    margin-left: 18px;
}

.bottom-menu{
    margin-top:10px;
}

.tab-sidebar-support{
    margin-top:auto;
    padding: 9px 15px;
    border-top:1px solid rgba(255,255,255,0.08);
}

.tab-sidebar-support a{
    color:#fff;
    text-decoration:none;
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px 15px;
}

/* MAIN */

.tab-main-content{
    flex:1;
    display:flex;
    flex-direction:column;
}

/* HEADER */
.tab-page-header{display: flex; align-items: center; justify-content: space-between;}
.back-button-area a{border: 1px solid var(--e-global-color-primary);
  padding: 5px 10px;
  border-radius: 10px;
  background-color: color-mix( in srgb, var(--e-global-color-primary) 25%, transparent );
}
.back-button-area a:hover{background-color:var(--e-global-color-primary); color:#fff;}

.tab-top-header {
    background: #fff;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
}

.tab-header-left{
    display:flex;
    align-items:center;
    gap:40px;
}

.tab-header-icon{
    font-size:22px;
    color:#222;
    cursor:pointer;
}

.tab-header-box{
    padding-right:30px;
    border-right:1px solid #ececec;
}

.tab-header-label{
    font-size:13px;
    display:flex;
    align-items:center;
    gap:8px;
    color:#7a7a7a;
}

.tab-header-value{
    color:#2A2723;
}

.tab-header-right{
    display:flex;
    align-items:center;
    gap:20px;
}

.tab-user-box{
    display:flex;
    align-items:center;
    gap:12px;
}

.tab-user-avatar{
    width:45px;
    height:45px;
    border-radius:50%;
    background:#08111d;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
    font-size: 14px;
}

.tab-user-info span{
    display:block;
    font-size:13px;
    color:#7a7a7a;
}

.tab-user-info strong{
    font-size:16px;
}

.tab-logout-btn{
    background:var(--e-global-color-primary);
    color:#fff;
    text-decoration:none;
    padding:10px 15px;
    border-radius:10px;
    font-weight:600;
    transition:0.3s;
}
.tab-logout-btn:hover{
    background:var(--e-global-color-secondary);
    color:#fff;
}
.tab-logout-btn i{
    margin-right:8px;
}

/* CONTENT */

.tab-page-content {
    flex: 1;
    padding: 0 16px 16px 16px;
}

/* FOOTER */

.footer-logo{position: sticky;
  bottom: 0;
  padding: 20px;
  display: flex;
  align-items: center;
  gap:10px;
}
.footer-logo span{font-size:14px;}
.footer-logo span small{
width: 100%;
  display: block;
  font-size: 11px;
  border-top:1px solid #7a7a7a; padding-top:5px; margin-top:5px;
}

.footer-logo img{width: 45px;}

.tab-dashboard-footer{
    height:70px;
    background:#fff;
    border-top:1px solid #eee;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 40px;
}

.tab-footer-left{
    color:#7a7a7a;
    font-size:14px;
}

.tab-footer-right{
    display:flex;
    gap:16px;
}

.tab-footer-right a{
    color:#7a7a7a;
    text-decoration:none;
    font-size:14px;
}
/* COLLAPSE SIDEBAR */

.tab-sidebar{
    transition:0.3s ease;
}

.tab-sidebar.collapsed{
    width:90px;
}

.tab-sidebar.collapsed .tab-logo-text,
.tab-sidebar.collapsed .tab-sidebar-menu a span,
.tab-sidebar.collapsed .tab-menu-heading,
.tab-sidebar.collapsed .secondary-menu,
.tab-sidebar.collapsed .tab-sidebar-support span{
    display:none;
}

.tab-sidebar.collapsed .tab-sidebar-menu a{
    justify-content:center;
}

.tab-sidebar.collapsed .tab-sidebar-support a{
    justify-content:center;
}

.tab-sidebar.collapsed .tab-logo{
    justify-content:center;
}

/* TREE MENU LINES */

.secondary-menu{
    position:relative;
}

.secondary-menu .sub-menu {
    position: relative;
    padding-left: 30px;
    margin-left: 18px;
}


/* Vertical Line */

.secondary-menu .sub-menu::before {
    content: '';
    position: absolute;
    left: 0;
    top: -12px;
    width: 1px;
    height: 45px;
    background: rgba(255,255,255,0.15);
}

/* Horizontal Line */

.secondary-menu .sub-menu::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 14px;
    height: 1px;
    background: rgba(255,255,255,0.15);
}

/* PAGE HEADER */

.tab-page-header{
    padding:8px 16px;
}

.tab-page-header h1 {
    font-size: 26px !important;
    color: #2A2723;
}
.tab-page-header p {
    margin-bottom: 0 !important; margin-block-end: 0 !important;
}

/* GRID */

.tab-dashboard-grid{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:16px;
}

.tab-dashboard-left{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.tab-dashboard-right{
    display:flex;
    flex-direction:column;
    gap:16px;
}

/* CARD */

.tab-card{
    background:#fff;
    border-radius:10px;
    padding:12px;
    border:1px solid #ececec;
    width: 100%;
}

.tab-good-form{ display:grid;
    grid-template-columns:1fr 1fr;
    gap:0 16px;}

.tab-form-group{margin-bottom:10px;}

    
.tab-card-header{margin-bottom:12px;}

.tab-card-header.between{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.tab-card-header h3{
    font-size:22px;
    display:flex;
    align-items:center;
    gap:10px;
}

.tab-card-header a{
    color:var(--e-global-color-primary);
    text-decoration:none;
    font-weight:600;
}

/* LAST RECORD */

.tab-last-record-inner{
    display:flex;
    gap:16px;
}

.tab-last-record-image img{
    width:140px;
    height:140px;
    object-fit:cover;
    border-radius:10px;
}

.tab-record-label,
.tab-record-title-label{
    font-size:14px;
    margin-bottom:6px;
}

.tab-record-number{
    margin-bottom:8px;
}

.tab-record-title {
    font-size: 18px;
    margin-bottom: 4px;
}

.tab-record-date{
       line-height:1.6;
}

.tab-last-record-button{
    margin-left:auto;
}

.tab-last-record-button a{
    background:var(--e-global-color-primary);
    color:#fff;
    text-decoration:none;
    padding:16px 28px;
    border-radius:10px;
    font-weight:600;
    display: inline-block;
    transition:0.3s ease;
}
.tab-last-record-button a:hover{
    background:var(--e-global-color-secondary);
    color:#fff;
}
/* TABLE */

.tab-table-wrapper{
    overflow:auto;
}

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

.tab-record-table th{
    text-align:left;
    padding:6px;
}

.tab-record-table td {
    padding: 6px;
    padding-top:8px; 
    vertical-align:middle;  
}
td.tab-record-thumb img {
    width: 45px;
}
.tab-status {
    padding: 6px 10px;
    display: inline-block;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.tab-status.private{
    background:#f5e7c8;
    color:#8a6417;
}

.tab-status.public{
    background:#dcf5e3;
    color:#187848;
}

/* BOTTOM GRID */

.tab-bottom-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}



.tab-summary-grid{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:30px;
}
.my-record-summary{display:flex; align-items:center; gap:20px;}
.my-record-summary .tab-card-header{margin-bottom:0;}
.tab-summary-grid div{text-align: center; display: flex; gap: 7px; align-items: center;}

.tab-summary-grid strong {
    font-size: 24px;
    margin-bottom: 0;
}

.tab-summary-grid span{
    color:#7a7a7a;
}

.tab-summary-grid.green strong{
    color:#157347;
}

/* QUICK LINKS */

.tab-quick-links{
    display:flex;
    flex-direction:column;
}

.tab-quick-links a{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 0;
    border-bottom:1px solid #f1f1f1;
    text-decoration:none;
    color:#2A2723;
}

/* STATUS LIST */

.tab-status-list{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.tab-status-list div{
    display:flex;
    justify-content:space-between;
}

.tab-status-list span{
    color:#7a7a7a;
}

/* HELP */

.tab-help-box p{
    margin-bottom:20px;
}

.tab-help-box a{
    display:inline-block;
    background:var(--e-global-color-primary);
    color:#fff;
    text-decoration:none;
    padding:14px 24px;
    border-radius:10px;
    font-weight:600;
    transition:0.3s;
}

.tab-help-box a:hover{
    background:var(--e-global-color-secondary);
    color:#fff;
}
.tab-success-message{
    background:#dff5e4;
    color:#1d6b35;
    padding:15px 20px;
    border-radius:10px;
    margin-bottom:16px;
    border:1px solid #b7e4c3;
    font-weight:600;
}

/* NEW LAST RECORD UI */

.tab-last-record-card {
    padding: 12px;
    min-height: 100%;
}

.tab-version-count{
    font-size:14px;
}

.tab-version-count strong{
    color:#2A2723;
}
.tab-meta-row{
    display:flex;
    align-items:center;
    gap:12px;
    font-size:14px;
}
.tab-last-record-box {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
    padding-top: 12px;
    border-top: 1px solid #ececec;
    background: #fafafa;
}

.tab-last-record-left{
    display:flex;
    gap:22px;
    flex:1;
}

.tab-last-record-image{
    width:120px;
    height:120px;
}

div .tab-last-record-image img{width:100%; height:100%; object-fit:cover; border-radius:10px;}

.tab-last-record-content{
    flex:1;
}

.tab-record-top-meta{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;
    margin-bottom:6px;
}

.tab-record-badge {
    background: #08111d;
    color: #fff;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 400;
}

.tab-record-status{
    background:#fff3cd;
    color:#8a6417;
     padding: 2px 8px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 400;
}

.tab-record-main-title {
    margin-bottom: 8px !important;
    color: #2A2723;
}
form .form-control {
    border: 1px solid #bfbfbf !important;
    padding: 10px !important;
    font-size: 12px !important;
    min-height: auto !important;
}
.tab-record-mini-meta{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
     font-size:14px;
}

.tab-record-mini-meta span{
    display:flex;
    align-items:center;
    gap:8px;
}

.tab-last-record-actions{
    width:300px;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.tab-action-link {
    font-size: 12px;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    padding: 6px 10px;
    text-decoration: none;
    color: #2A2723;
    font-weight: 500;
    transition: 0.3s ease;
}

.tab-action-link:hover{
    background:var(--e-global-color-primary);
    color:#fff;
}

.tab-action-link.active{
    background:var(--e-global-color-primary);
    color:#fff;
    border-color:var(--e-global-color-primary);
}

.tab-no-record{
    padding:20px;
    background:#fafafa;
    border-radius:10px;
   }


/* SEARCH RECORD CARD */

.tab-search-record-card{
    padding:12px;
    margin: 0px;
    height: 100%;
}

.tab-record-search-form{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.tab-search-field{
    display:flex;
    flex-direction:column;
}

div label{
    font-size:12px;
    font-weight:600;
    margin-bottom:6px!important;
    color:#2A2723;
}

.tab-search-submit{
    grid-column:1 / -1;
}

.page-id-1323 .tab-search-btn {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
}

.tab-search-btn:hover{
    background:var(--e-global-color-secondary);
}

.tab-search-btn i{
    margin-right:6px;
}
/* TAB PREMIUM SERVICES */

.tab-premium-services-card {
    padding: 12px;
    margin-top: 16px;
}

.tab-premium-services-grid{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap: 8px;
}

.tab-premium-box{
    display:flex;
    align-items:flex-start;
    gap:16px;
    padding:8px;
    border:1px solid #ececec;
    border-radius:10px;
    background:#fff;
    text-decoration:none;
    transition:0.3s ease;
}

.tab-premium-box:hover{
    transform:translateY(-2px);
    border-color:var(--e-global-color-primary);
    box-shadow:0 10px 30px rgba(0,0,0,0.05);
}
.tab-premium-content p {
    margin-bottom: 0px !important;
}
.tab-premium-icon{
    width:40px;
    height: 40px;;
    min-width:40px;
    border-radius:10px;
    background:#08111d;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
}

.tab-premium-content h6{
    font-size:16px !important;
    margin-bottom:8px;
    color:#2A2723;
}

.tab-premium-content p{
    font-size:14px;
    line-height:1.6;
}

/* VOICE TO TEXT & TAB AGENT TOOLS */

.tab-ai-tools-card{
    padding: 12px;
     grid-column: 1 / -1;
}

.tab-ai-tools-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

.tab-ai-tool-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 8px;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    transition: 0.3s ease;
}

.tab-ai-tool-box:hover{
    transform:translateY(-2px);
    border-color:var(--e-global-color-primary);
    box-shadow:0 10px 30px rgba(0,0,0,0.05);
}

.tab-ai-tool-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: #08111d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.tab-ai-tool-content h6 {
    font-size: 16px !important;
}

.tab-ai-tool-content p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 0px !important;
}

/* FULL WIDTH SECTION */


/* FULL WIDTH BOTTOM GRID */

.tab-bottom-grid-full{
    display:grid;
    grid-template-columns:1fr;
    gap:16px;
}



/* TABCR Form for Professional & Institutional  CSS */

.tab-pro-record-wrapper{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.tab-pro-header-grid{
    display:grid;
    grid-template-columns:2fr 0.5fr;
    gap:30px;
}

div .tab-primary-image-box{height:211px;}
div .tab-primary-image-box img{height:100%; width:100%; object-fit: cover; border-radius:10px;}


.tab-pro-meta-grid{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:20px;
    margin-bottom:16px;
}

.tab-pro-meta-box span{
    display:block;
    font-size:13px;
    color:#7a7a7a;
    margin-bottom:8px;
}

div .tab-pro-meta-box h6{font-size:16px;}

.tab-pro-meta-box strong{
    font-size:24px;
    color:#2A2723;
}

.not-anchored{
    color:#d62828;
}

.tab-pro-meta-link{
    margin-top:15px; text-align: center;
}

.tab-pro-meta-link a{
    color:var(--e-global-color-primary);
    text-decoration:none;
    font-weight:600;
}

.tab-pro-description h4,
.tab-pro-header-right h4{
    margin-bottom:14px;
}

.tab-primary-image-box img{
    width:100%;
    border-radius:10px;
    object-fit:cover;
}

.tab-small-btn{
    border:1px solid #ddd;
    border-radius:10px;
    text-decoration:none;
    color:#2A2723;
    display: flex;
  align-items: center;
  gap: 5px; 
}
.tab-header-actions{
    display:flex;
    gap:12px;
}
/*
.tab-log-list,
.tab-notes-list{
    margin-top:20px;
    display:flex;
    flex-direction:column;
    gap:15px;
}*/
.tab-notes-list{
    margin-top:20px;
    display:flex;
    flex-direction:column;
    gap:15px;
}
/*
.tab-log-item,
.tab-note-item{
    padding:18px;
    border:1px solid #ececec;
    border-radius:10px;
    background:#fafafa;
}*/

.tab-note-item{
    padding:18px;
    border:1px solid #ececec;
    border-radius:10px;
    background:#fafafa;
}
/*.tab-log-item strong,
.tab-note-item strong{
    display:block;
    margin-bottom:10px;
}*/
.tab-log-list{
    margin-top:20px;
    display:flex;
    flex-direction:column;
    gap:8px;

    max-height:110px; /* approx 2 items */
    overflow-y:auto;

    padding-right:5px;
}

.tab-log-item{
    display:flex;
    align-items:center;
    gap:10px;

    padding:8px 12px;

    border:1px solid #ececec;
    border-radius:8px;
    background:#fafafa;

    min-height:40px;
}

.tab-log-date{
    font-size:13px;
    font-weight:600;
    white-space:nowrap;
}

.tab-log-message{
    font-size:13px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.tab-note-item strong{
    display:block;
    margin-bottom:10px;
}

.tab-subrecord-search-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    margin-bottom:16px;
}

.tab-additional-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

.tab-additional-box{
    border:1px solid #ececec;
    border-radius:10px;
    padding:20px;
}

.tab-additional-box h5{
    margin-bottom:16px;
}

.tab-reports-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

.tab-report-box{
    border:1px solid #ececec;
    border-radius:10px;
    padding:16px;
}

.tab-report-box h5{
    margin-bottom:12px;
}

.tab-report-box p{
    margin-bottom:20px;
    }

.tab-sign-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

.tab-sign-box{
    border:1px solid #ececec;
    border-radius:10px;
    padding:16px;
}

.tab-sign-box h4{
    margin-bottom:20px;
}

.tab-sign-box input{
    margin-bottom:16px;
}

.tab-sign-box p{
    margin-bottom:20px;
    line-height:1.7;
}

/* SUB RECORD POPUP */
.tab-subrecord-popup{

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.6);

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 9999;

}

/* INNER BOX */
.tab-subrecord-popup-inner{

    background: #fff;
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    padding:16px;
}

/* HEADER */
.tab-popup-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tab-popup-header h4{
    margin: 0;
}

/* CLOSE BUTTON */
#close-subrecord-popup{
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}

/* FORM */
.tab-popup-form{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tab-popup-form input,
.tab-popup-form textarea{
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius:10px;
}

.tab-popup-form textarea{
    min-height: 120px;
    resize: vertical;
}
.tab-upload-box{
    border: 2px dashed #dcdcdc;
    border-radius: 10px;
    padding:6.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.tab-visibility-note{background: #f5f5f5; font-size:12px;
  padding: 8px;
  border-radius: 5px;
  margin-top: 10px;
  display: block;}

.tab-upload-box input[type="file"]{
    width: 100%;
}

.tab-record-row{
    cursor:pointer;
    transition:background 0.2s ease;
}

.tab-record-row:hover{
    background:#f8f8f8;
}

.tab-form-buttons{display: flex; gap:15px; align-items:center;}

div .top-banner{position: relative;}
div .top-banner img{border-radius:10px; display: block; width:100%;}
.tab-goodform-tools-top{display: flex; gap: 15px; justify-content: flex-end; position: absolute; top: 20px; z-index: 1; right: 20px;}   
.tab-goodform-tools {display: flex; gap: 15px; justify-content: flex-end; position: absolute; bottom: 20px; z-index: 1; right: 20px;}   
.tab-goodform-tools a{border:1px solid var(--e-global-color-primary); padding:5px 10px; border-radius:10px; background-color:color-mix( in srgb, var(--e-global-color-primary) 25%, transparent );}
.tab-goodform-tools a:hover{background-color:var(--e-global-color-primary); color:#fff;}
.tab-record-search-form{
    display:grid;
    grid-template-columns: 1fr 1fr;
    align-items:center;
    gap:10px;
    margin-bottom:16px;
    max-width:520px;
}

.tab-record-search-form button{
    height:42px;
    padding:0 20px;
    border:none;
    border-radius:6px;
    cursor:pointer;
    white-space:nowrap;
}
.tab-reset-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:42px;
    padding:0 18px;
    border-radius:6px;
    text-decoration:none;
    cursor:pointer;
    font-size:14px;
    line-height:1;
}

.page-id-1450 .tab-record-search-form{display:flex;}

.tab-record-visibility{
    margin-top:20px;
}

.tab-label{
    display:block;
    font-size:14px;
    font-weight:600;
    margin-bottom:10px;
}

.tab-visibility-options{
    display:flex;
    gap:20px;
    align-items:center;
}

.tab-visibility-options label{
    display:flex;
    align-items:center;
    gap:6px;
    font-size:14px;
    cursor:pointer;
}

.tab-help-text{
    margin-top:8px;
    font-size:12px;
    color:#777;
}
.tab-extended-notes-wrapper{
    margin-top:10px;
}

.tab-extended-notes-date{
    font-size:13px;
    font-weight:600;
    margin-bottom:12px;
    color:#666;
}

.tab-extended-notes-display{
    padding:16px;
    background:#f7f7f7;
    border-radius:8px;
    line-height:1.7;
    font-size:14px;
}

.pagination-last{display:flex; align-items: center; justify-content: space-between;}
.tab-pagination{display:flex; gap:10px;}

/* public form code. */

.tab-public-layout{
    background:#f5f5f5;
}
.tab-dashboard-card-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}
@media(max-width:991px){

    .tab-public-header{
        flex-direction:column;
        gap:20px;
    }

}


.record-details{display:grid; grid-template-columns:3fr 1fr; gap:16px;}
.record-details .inner{display: grid; grid-template-columns: 1fr; gap: 16px;}


/* Publc form code end here */


/* public form fields css */
/* PUBLIC RECORD WRAPPER */
.tab-public-record-wrapper{
    display:flex;
    flex-direction:column;
    gap:16px;
}

/* PUBLIC GRID */
.tab-public-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

/* TEXTAREA */
.tab-public-record-wrapper textarea.form-control{
    min-height:140px;
    resize:vertical;
}

.tab-public-featured-image{height:100%;}

/* FEATURED IMAGE */
div .tab-public-featured-image img{
    width:100%;
    max-width:500px;
    display:block;
    border-radius: 10px;
    height: 100%;
    object-fit: cover;
}

/* EMPTY STATE */
.tab-empty-state{
    padding:30px;
    border:1px dashed #d0d5dd;
    border-radius:12px;
    background:#f9fafb;
    text-align:center;
    color:#667085;
}

/* PHOTO GRID */
.tab-public-photo-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

/* PHOTO ITEM */
.tab-public-photo-item img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:12px;
    display:block;
}

/* SUPPORT DOCS */
.tab-supporting-docs{
    padding:10px 0;
}

.tab-doc-link{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:12px 18px;
    border-radius:10px;
    border:1px solid #d0d5dd;
    background:#f9fafb;
    text-decoration:none;
    font-weight:600;
}

/* TABLE IMAGE */
.tab-record-table img{
    display:block;
}

/* LIGHTBOX */
.tab-lightbox-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.9);
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    visibility:hidden;
    transition:0.3s;
    z-index:99999;
    padding:30px;
}

.tab-lightbox-overlay.active{
    opacity:1;
    visibility:visible;
}

.tab-lightbox-image{
    max-width:90%;
    max-height:90vh;
    border-radius:14px;
}

.tab-lightbox-close{
    position:absolute;
    top:20px;
    right:30px;
    color:#fff;
    font-size:40px;
    cursor:pointer;
    line-height:1;
}

.tab-lightbox-trigger img{
    cursor:pointer;
    transition:0.3s;
}

.tab-lightbox-trigger:hover img{
    transform:scale(1.02);
}
/* view subrecords popup css */

.tab-subrecord-view-popup{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.7);
    z-index:99999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.tab-subrecord-view-inner{
    background:#fff;
    width:100%;
    max-width:800px;
    border-radius:14px;
    overflow:hidden;
    max-height:90vh;
    overflow-y:auto;
}

.tab-subrecord-main-image-wrap img{
    width:100%;
    border-radius:12px;
    margin-bottom:20px;
}

.tab-view-subrecord-btn{
    border:none;
    background:none;
    cursor:pointer;
    font-size:18px;
}
.tab-subrecord-gallery{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
    gap:15px;
    margin-bottom:20px;
    margin-top: 10px;
    cursor: pointer;
}

#view-subrecord-number{margin: 5px 0 !important;}

.divider{background-color: var(--e-global-color-primary); height:1px; margin:15px 0;}

.tab-parent-record-info{display: flex; gap: 20px; align-items:center;}
.tab-parent-main-image{width:150px;}

.tab-subrecord-gallery-image{
    width:100%;
    height:140px;
    object-fit:cover;
    border-radius:12px;
}
.tab-gallery-lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.92);
    z-index:999999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:30px;
}

.tab-gallery-lightbox.active{
    display:flex;
}

.tab-gallery-lightbox img{
    max-width:90%;
    max-height:90%;
    border-radius:14px;
}

#tabGalleryLightboxClose{
    position:absolute;
    top:20px;
    right:30px;
    color:#fff;
    font-size:42px;
    cursor:pointer;
}
.tab-public-subrecord-open{
    cursor:pointer;
    color:#0d6efd;
}

.tab-public-subrecord-open:hover{
    text-decoration:underline;
}

.tab-public-subrecord-popup{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.7);
    z-index:99999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:30px;
}

.tab-public-subrecord-popup-inner{
    background:#fff;
    width:100%;
    max-width:900px;
    max-height:90vh;
    overflow-y:auto;
    border-radius:16px;
    padding:20px;
    position:relative;
}

.tab-public-popup-close{
    position:absolute;
    top:20px;
    right:20px;
    border:none;
    background:none;
    font-size:34px;
    cursor:pointer;
}

.tab-public-popup-gallery{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
    gap:15px;
    margin-bottom:20px;
}

.tab-public-asset-item{margin-top:15px;}

.tab-public-popup-image{
    width:100%;
    height:140px;
    object-fit:cover;
    border-radius:10px;
}

.tab-public-popup-meta{
    margin:10px 0;
}

.tab-public-popup-description{
    margin:20px 0;
}

.tab-public-asset-check{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:10px;
    font-size:14px;
    font-weight:600;
}
/* laptop */
@media(max-width:1200px){

 .tab-header-left {
    gap: 20px;
}
.tab-header-label, .tab-header-box,.tab-user-info {
    font-size: 12px;
}
.tab-dashboard-grid {
    grid-template-columns: 1fr;
}
.tab-record-search-form {
     max-width: 100%; 
}
}


/* tab */
@media(max-width:991px){

    .tab-public-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .tab-public-photo-grid{
        grid-template-columns:repeat(2,1fr);
    }
    .tab-pro-header-grid,
    .tab-additional-grid,
    .tab-reports-grid,
    .tab-sign-grid,
    .tab-dashboard-grid,
    .tab-pro-meta-grid{
        grid-template-columns:1fr;
    }

.tab-premium-services-grid {
    grid-template-columns: 1fr 1fr;
}


    .tab-last-record-box{
        flex-direction:column;
        align-items:flex-start;
    }

    .tab-last-record-left{
        flex-direction:column;
        align-items:flex-start;
    }

    .tab-last-record-image img{
        width:100%;
        max-width:220px;
        height:auto;
    }

    .tab-last-record-actions{
        width:100%;
    }

    .tab-record-main-title{
        font-size:20px;
    }
}

@media(max-width:767px){

    .tab-public-grid{
        grid-template-columns:1fr;
    }

    .tab-public-photo-grid{
        grid-template-columns:1fr;
    }

    .tab-bottom-grid-full{
        grid-template-columns:1fr;
    }
.tab-ai-tools-grid {
    grid-template-columns: 1fr;
}
  .tab-premium-services-grid{
        grid-template-columns:1fr;
    }
.tab-record-search-form{
        grid-template-columns:1fr;
    }
}



