* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #f4f7fc;
    color: #1f2937;
}

.container {
    width: 95%;
    max-width: 1600px;
    margin: auto;
    padding: 30px 0;
}

/* MAIN HEADER */
.main-header {
    background: #233d90;
    border-bottom: 1px solid #e8edf5;
    z-index: 999;
    padding: 18px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.header-inner {
    width: 95%;
    max-width: 1600px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.header-left-main {
    display: flex;
    align-items: center;
    gap: 50px;
    flex: 1;
    min-width: 0;
}

.logo-area {
    width: 300px;
    max-width: 100%;
    flex-shrink: 0;
}

.logo-area img {
    width: 100%;
    object-fit: contain;
    display: block;
}
header.main-header.login-header .header-left-main {
justify-content: center;
}header.main-header.login-header .header-left-main .logo-area img {
    width: 60%;
    margin: 0 auto;
}

/* CSS logo fallback — matches Smoother Movers branding */
.brand-logo {
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.brand-box {
    background: #fff;
    color: #233d90;
    padding: 6px 10px 6px 12px;
    margin-right: 2px;
}

.brand-outline {
    color: transparent;
    -webkit-text-stroke: 1.5px #fff;
    text-stroke: 1.5px #fff;
    padding: 0 1px;
}

.brand-solid {
    color: #fff;
    font-weight: 800;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    transition: 0.3s;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    background: #edf4ff;
    color: #2563eb;
}

.header-right-main {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.search-box input {
    width: 280px;
    padding: 14px 20px;
    border-radius: 16px;
    border: 1px solid #dbe4f0;
    background: #f8fbff;
    outline: none;
}

.icon-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 16px;
    background: #f5f8fd;
    cursor: pointer;
    font-size: 18px;
}

.profile-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fbff;
    padding: 10px 14px;
    border-radius: 18px;
}

.profile-box img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-text h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
    color: #111827;
    line-height: 1.2;
}

.profile-text span {
    font-size: 13px;
    color: #6b7280;
    display: block;
    line-height: 1.2;
}

/* PROFILE DROPDOWN */
.profile-wrapper {
    position: relative;
}
.profile-text span, .dropdown-header span {
	text-transform: capitalize;
}

.profile-box {
    cursor: pointer;
}

.profile-box:hover {
    background: #f5f7fb;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 220px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.15);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 99999;
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 16px;
    border-bottom: 1px solid #eef2f7;
}

.dropdown-header h4 {
    margin: 0;
    font-size: 15px;
    color: #111827;
}

.dropdown-header span {
    font-size: 13px;
    color: #6b7280;
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    transition: 0.3s;
}

.profile-dropdown a:hover {
    background: #f8fafc;
    padding-left: 22px;
}

.profile-dropdown a.logout {
    color: #dc2626;
}
.bgdanger .finalnote-comment {
    background: #ff000026;
}
.bgdanger h2.card-title {
    color: red;
}
/*popup email */
.email-popup, .sms-popup{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.6);
    z-index:9999;
}
.popup-box{
    width:300px;
    max-width:90%;
    background:#fff;
    margin:80px auto;
    padding:20px;
    border-radius:10px;
}
.email-popup-content{
    width:600px;
    max-width:90%;
    background:#fff;
    margin:80px auto;
    padding:20px;
    border-radius:10px;
}

.popup-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:15px;
}

#closeEmailPopup, #closeSmsPopup{
    cursor:pointer;
    font-size:24px;
    font-weight:bold;
}

#email_addresses{
    width:100%;
    padding:10px;
    min-height:120px;
}

.popup-footer{
    margin-top:15px;
    text-align:right;
}
.btn-loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}
.ministry-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
div#confirmedTable_info {
    margin-top: 15px;
    margin-left: 15px;
}
div#customersTable_info {
    margin-top: 15px;
}
div#confirmedTable_info {
    margin-top: 15px;
    margin-left: 20px;
}



@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}
/*popup code end here*/

/* TOP HEADER */
.top-header {
    background: #fff;
    padding: 22px 30px;
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.top-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
    padding: 22px 30px;
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
    margin-bottom: 30px;
}

.header-left h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 8px;
}

.header-left span {
    color: #6b7280;
    font-size: 15px;
}

.header-right {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* CARDS */
.card {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #2563eb;
}

/* PAGE MUTED */
.page-muted {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
}

/* LOGIN PAGE */
.login-page {
    min-height: calc(100vh - 92px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.login-card .card-title {
    text-align: center;
    margin-bottom: 8px;
}

.login-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 28px;
}

.login-header .header-inner {
    justify-content: center;
}

.login-header .logo-area {
    width: auto;
    text-align: center;
}

/* BUTTONS */
.action-btn {
    border: none;
    padding: 14px 22px;
    border-radius: 14px;
    background: #f9d40a;
    color: #1f2937;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.action-btn.full-width {
    width: 100%;
    height: 58px;
    border-radius: 16px;
    margin-top: 8px;
}

/* ALERTS */
.alert {
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

/* CONTACT GRID */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.contact-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #111827;
}

.contact-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* INPUT GROUPS */
.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.input-group label {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    background: #f8fbff;
    font-size: 15px;
    outline: none;
    height: 40px;
}

.input-group select {
    height: 40px;
    width: 100%;
    padding: 8px 6px 8px 15px;
    border: 1px solid #d7dce7;
    border-radius: 10px;
    background: #f8fbff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23000' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.input-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

textarea {
    resize: none;
    height: 100px !important;
}

/* GRID SYSTEMS */
.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

/* MATERIALS SECTION */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.material-heading {
    font-size: 32px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 22px;
}

.material-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.material-row label {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
}

.material-row input {
    width: 100%;
    height: 40px;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    background: #f8fbff;
    padding: 0 18px;
    outline: none;
    font-size: 15px;
}

/* BEDROOM SECTION */
.bedroom-options {
    display: flex;
    align-items: center;
    gap: 34px;
    flex-wrap: wrap;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    color: #111827;
}

.radio-item input[type="radio"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
}

/* INSURANCE */
.insurance-input-wrap {
    margin-top: 18px;
    display: none;
}

.insurance-input-wrap input {
    width: auto;
    height: 40px;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    background: #f8fbff;
    padding: 0 18px;
    font-size: 16px;
    outline: none;
}

.radio-wrap {
    display: flex;
    gap: 30px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.radio-wrap label {
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* ESTIMATE TOTALS */
.estimate-totals-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr) auto minmax(220px, 1fr);
    gap: 24px;
    align-items: end;
    padding-top: 30px;
}

.estimate-field label {
    display: block;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #111827;
}

.estimate-field input {
    width: 100%;
    height: 40px;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    background: #f8fbff;
    padding: 0 18px;
    font-size: 16px;
    outline: none;
}

.estimate-symbol {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    padding-bottom: 12px;
    white-space: nowrap;
}

/* MOVE OPTIONS */
.move-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.move-input {
    display: none;
    margin-top: 0;
}

.move-input input {
    width: 100%;
    height: 40px;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    background: #f8fbff;
    padding: 0 18px;
    font-size: 16px;
    outline: none;
}

/* LABOUR TABLE */
.labour-table {
    overflow: auto;
    border-radius: 20px;
    border: 1px solid #e6ecf5;
}

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

thead {
    background: #f5f8ff;
}

thead th {
    padding: 20px;
    text-align: left;
    font-size: 15px;
}

tbody td {
    padding: 14px;
    border-top: 1px solid #eef2f7;
}

.table-input {
    width: 100%;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #d9e2ef;
    background: #f8fbff;
    height: 40px;
}

/* SUMMARY */
.summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.summary-box {
    background: #f8fbff;
    padding: 28px;
    border-radius: 22px;
    text-align: center;
    border: 1px solid #e8eef8;
}

.summary-box h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #6b7280;
}

.summary-box h2 {
    font-size: 28px;
    color: #2563eb;
}

/* NOTES SECTION */
.notes-section textarea {
    height: 200px !important;
}

.customer-comment {
    padding: 15px;
    border: 1px solid #d7dce7;
    border-radius: 16px;
    background: #f8fbff;
    font-size: 15px;
    outline: none;
    height: 200px;
}

/* WORKER ROW */
.worker-row {
    display: flex;
    gap: 18px;
    align-items: center;
}

.worker-row input {
    padding: 15px;
    border: 1px solid #d7dce7;
    border-radius: 16px;
    background: #f8fbff;
    font-size: 15px;
    outline: none;
    width: calc(100% / 3 - 12px);
}

.worker-row label {
    width: 200px;
}

/* SUBMIT BUTTON */
.submit-wrapper {
    text-align: center;
}

.submit-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.submit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* TOGGLE SWITCH */
.switch {
    position: relative;
    display: inline-block;
    width: 65px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #d6dce6;
    transition: .4s;
    border-radius: 100px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background: white;
    transition: .4s;
    border-radius: 50%;
}

.switch input:checked+.slider {
    background: #2563eb;
}

.switch input:checked+.slider:before {
    transform: translateX(30px);
}

.switch-text {
    width: calc(100% - 75px);
}

/* SERVICE / DISPATCH */
.ministry-box {
    background: #f8fbff;
    padding: 22px;
    border-radius: 20px;
    border: 1px solid #e4ebf5;
    margin-top: 15px;
}

.ministry-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.ministry-top h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.ministry-top p {
    font-size: 14px;
    color: #64748b;
}

.ministry-note {
    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
}

/* PLUS BUTTON */
.plus-btn-storage {
    border: none;
    border-radius: 5px;
    background: #233d90;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .2);
    padding: 5px 8px;
}

.plus-btn-storage:hover {
    transform: scale(1.08);
}

/* PICKUP / DELIVERY ADDRESS */
.pickup-delivery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.address-card {
    background: #f8fbff;
    border: 1px solid #e4ebf5;
    border-radius: 24px;
    padding: 24px;
}

.address-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 22px;
    color: #111827;
}

.address-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.full-width {
    grid-column: 1 / -1;
}

.address-fields .input-group input {
    height: 40px;
}

/* DASHBOARD FOOTER */
.dashboard-footer {
    padding: 25px 30px;
    text-align: center;
    border-top: 1px solid #e7edf5;
    margin-top: 40px;
    background: #fff;
}

.dashboard-footer p {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    margin: 0;
}

/* VALUE ENTERED OPTION */
.value-entered-option {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    flex-wrap: wrap;
}

.value-entered-option .insurance-input-wrap {
    width: 100%;
    margin-left: 28px;
    margin-top: 10px;
}

.value-entered-option .insurance-input-wrap input {
    width: 100%;
}

/* MOBILE ACTIONS */
.mobile-actions {
    position: relative;
    display: none;
}

.menu-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: #2563eb;
    color: #fff;
    border-radius: 10px;
    font-size: 22px;
    cursor: pointer;
}

.action-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 180px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    overflow: hidden;
    display: none;
    z-index: 9999;
}

.action-dropdown.active {
    display: block;
}

.action-dropdown a {
    display: block;
    padding: 14px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f1f1f1;
}

.action-dropdown a:last-child {
    border-bottom: none;
}

.action-dropdown a:hover {
    background: #f8fafc;
}

/* INSURANCE COUNT ROW */
.insurance-count-row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 12px;
	align-items: end;
}
.estimate-totals-row {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr) auto minmax(220px, 1fr);
	gap: 24px;
	align-items: end;
	padding-top: 30px;
}
.data-table a {
	text-decoration: none;
	color: #000;
}
.finalnote-comment {
	border: 1px solid #d7dce7;
	padding: 15px;
	background: #f8fbff;
	border-radius: 16px;
	margin-top: 10px;
}
.table-filters.mb-3 {
	position: absolute;
	left: 40%;
    z-index: 10;
}
/*date range*/
.datesetfilter {
    position: relative;
}
.dateRangeset {
	position: absolute;
	left: 24%;
	top: 0px;
}
.dateRangeset .table-filters {
	position: relative;
	left: 0;
	z-index: 10;
	top: -8px;
}
.dateRangeset .table-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin-bottom: 15px;
}

.dateRangeset .table-filters input[type="date"] {
	width: 170px;
	padding: 10px;
}

.dateRangeset .table-filters button {
    white-space: nowrap;
}
.table-filters .input-group {
	margin: auto;
}

.actionbtnSet {
	background: #f9d40add;
	border: 1px solid #f9d40a;
	border-radius: 10px;
	padding: 10px;
    cursor: pointer;
    font-size: 15px;
    color: #000;
    font-weight: 600;
    text-decoration: none;
}
.actionbtnSet:hover {
	transform: translateY(-2px);
}
.action-menu-btn{
    display:none;
}
.status-badge.status-confirmed,
.status-badge.Confirmed {
	background: #dcfce7;
	color: #166534;
}
.status-badge.status-needs-estimate,
.status-badge.Estimate {
	background: #fef9c3;
	color: #854d0e;
}
.status-badge.status-tentative,
.status-badge.Tentative {
	background: #f1f5f9;
	color: #475569;
}
.status-badge.status-cancelled {
	background: #fee2e2;
	color: #991b1b;
}
.status-badge.status-rebook-later {
	background: #dbeafe;
	color: #1d4ed8;
}
.status-badge.status-rejected,
.status-badge.Rejected {
	background: #ff0000b5;
	color: #fff;
}
.status-badge.status-not-in-region {
	background: #e0f2fe;
	color: #075985;
}
.status-badge.status-fully-booked {
	background: #111827;
	color: #fff;
}
.status-badge.status-pending {
	background: #f3f4f6;
	color: #4b5563;
}
.wi-desc {
	width: 66%;
}
.wi-desc-mat {
	width: 50%;
}
.mat-qty {
	width: 8%;
}
.mat-price {
	width: 120px;
}
.mat-total {
	width: 135px;
}
.st-mt-dy {
	width: 150px;
}
/*new code for estimate header*/
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    flex-wrap: wrap;
    gap: 15px;
}

/* Left Side */
.header-left {
    flex: 1;
    min-width: 250px;
}


.header-left > span, .email-tracking, .email-tracking span {
    font-size: 12px;
    color: #6c757d;
}

.header-left > span + span {
    margin-left: 5px;
}

/* Stats Container (Opened/Clicked info) */
.header-left .stats-container {
    margin-top: 8px;
    font-size: 13px;
    color: #6c757d;
}

.header-left .stats-container > div {
    margin-bottom: 2px;
}
/*email history popoup*/
/* ===============================
   Email History Popup
================================= */

.email-history-btn{
    background:#1e88e5;
    color:#fff;
    border:none;
    border-radius:6px;
    padding:10px 18px;
    cursor:pointer;
    font-size:14px;
    font-weight:600;
    transition:.3s;
}

.email-history-btn:hover{
    background:#1565c0;
}

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

.email-history-popup.active{
    display:flex;
}

.email-history-modal{
    width:900px;
    max-width:100%;
    max-height:90vh;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    box-shadow:0 20px 60px rgba(0,0,0,.25);
}

.email-history-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 25px;
    border-bottom:1px solid #eee;
}

.email-history-header h2{
    margin:0;
    font-size:22px;
}

.email-history-header button{
    border:none;
    background:none;
    font-size:32px;
    cursor:pointer;
    color:#666;
}

.email-history-body{
    overflow:auto;
    padding:25px;
}

.email-summary{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
    margin-bottom:35px;
}

.summary-box{
    background:#f8f9fb;
    border:1px solid #ececec;
    border-radius:10px;
    padding:20px;
    text-align:center;
}

.summary-number{
    display:block;
    font-size:28px;
    font-weight:bold;
    color:#1e88e5;
}

.summary-title{
    display:block;
    margin-top:8px;
    color:#666;
    font-size:14px;
}

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

.timeline:before{
    content:"";
    position:absolute;
    left:10px;
    top:0;
    bottom:0;
    width:2px;
    background:#dcdcdc;
}

.timeline-item{
    position:relative;
    margin-bottom:25px;
}

.timeline-dot{
    position:absolute;
    left:-30px;
    top:8px;
    width:16px;
    height:16px;
    background:#1e88e5;
    border-radius:50%;
}

.timeline-content{
    background:#fafafa;
    border:1px solid #ececec;
    border-radius:8px;
    padding:15px;
}

.timeline-content h4{
    margin:0 0 8px;
    font-size:17px;
}

.timeline-date{
    color:#888;
    font-size:13px;
    margin-bottom:8px;
}

.no-history{
    text-align:center;
    color:#888;
    padding:50px;
}

@media(max-width:768px){

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

}

@media(max-width:480px){

    .email-summary{
        grid-template-columns:1fr;
    }

}

/*emai lhistory end here */
/*Profile*/

.profile-image-preview{

    text-align:center;
    margin-bottom:20px;

}

.profile-image-preview img{

    width:180px;
    height:180px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid #ddd;

}

.profile-upload{

    margin-bottom:20px;

}
/*profile end here*/
/* ============================================ */
/* RESPONSIVE MEDIA QUERIES */
/* ============================================ */

/* TABLET LARGE (1024px) */
@media (max-width: 1200px) {
    .header-left-main {
        gap: 24px;
    }

    .logo-area {
        width: 240px;
    }

    .brand-logo {
        font-size: 20px;
    }

    .main-nav a {
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-left-main {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 20px;
    }

    .main-nav {
        width: 100%;
    }

    .header-right-main {
        width: 100%;
        justify-content: flex-end;
    }
}

/* TABLET (991px) */
@media (max-width: 991px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-left-main {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 20px;
    }

    .main-nav {
        width: 100%;
        flex-wrap: wrap;
    }

    .header-right-main {
        width: 100%;
        justify-content: flex-end;
    }

    .estimate-totals-row {
        grid-template-columns: 1fr;
    }

    .estimate-symbol {
        padding-bottom: 0;
        text-align: center;
    }

    .customer-comment {
        height: auto;
    }

    .materials-grid {
        grid-template-columns: 1fr;
        gap: 0px;
    }

    .pickup-delivery-grid {
        grid-template-columns: 1fr;
    }

    .grid,
    .grid-2,
    .grid-3,
    .grid-4,
    .summary {
        grid-template-columns: 1fr;
    }

    .top-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-right {
        width: 100%;
        justify-content: flex-start;
    }

    .search-box input {
        width: 100%;
    }
}

/* MOBILE (768px) */
@media (max-width: 768px) {
    .main-header {
        padding: 12px 0;
    }

    .header-left-main {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 15px;
    }

    .logo-area {
        width: 100%;
        text-align: center;
    }

    .logo-area img {
        max-width: 250px;
        margin: 0 auto;
    }

    .brand-logo {
        font-size: 17px;
        justify-content: center;
    }

    /* Horizontal nav scroll */
    .main-nav {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav a {
        flex-shrink: 0;
        font-size: 14px;
        padding: 10px 16px;
    }

    .header-right-main {
        width: 100%;
        justify-content: center;
    }

    .profile-wrapper {
    position: relative;
    margin: 0 auto;
}

    .profile-box {
        width: 100%;
        justify-content: space-between;
    }

    .profile-text h4 {
        font-size: 14px;
    }

    .profile-text span {
        font-size: 12px;
    }

    .profile-box img {
        width: 42px;
        height: 42px;
    }

    /* Top header */
    .top-header {
        padding: 18px;
    }

    .header-left h1 {
        font-size: 22px;
    }

    .header-right {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .action-btn {
        width: 100%;
        text-align: center;
    }

    input.action-btn {
        width: 100%;
        min-width: 100%;
    }

    /* Contact fields */
    .contact-fields {
        grid-template-columns: 1fr;
    }

    .input-group input {
        height: 40px;
        border-radius: 50px;
    }

    .input-group select,
    .material-row input {
        border-radius: 50px;
    }

    .plus-btn-storage {
        white-space: nowrap;
    }

    /* Bedroom options */
    .bedroom-options {
        gap: 10px;
    }

    .radio-item {
        font-size: 16px;
        gap: 7px;
    }

    .radio-item input[type="radio"] {
        width: 16px;
        height: 16px;
    }

    .radio-wrap {
        display: flex;
        gap: 30px;
        margin-top: 10px;
        flex-wrap: wrap;
        flex-direction: column;
        align-items: flex-start;
    }

    /* Labour table responsive */
    .labour-table table,
    .labour-table tbody,
    .labour-table tr,
    .labour-table td {
        display: block;
        width: 100%;
    }

    .labour-table thead {
        display: none;
    }

    .labour-table tr {
        background: #fff;
        border: 1px solid #dbe2ef;
        border-radius: 24px;
        padding: 16px;
        margin-bottom: 16px;
    }

    .labour-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        border: none;
        padding: 8px 0;
    }

    .labour-table td::before {
        font-size: 14px;
        font-weight: 600;
        color: #64748b;
        min-width: 90px;
        content: attr(data-label);
    }

    .table-input {
        width: 65%;
        margin: 0;
        border-radius: 50px;
    }

    .insurance-input-wrap input,
    .estimate-field input,
    .move-input input {
        border-radius: 50px;
    }

    /* Last row (Add More button row) */
    .labour-table tbody tr:last-child {
        border: none;
        background: transparent;
        padding: 0;
        margin-top: 10px;
        box-shadow: none;
    }
.last-td{
        display: block;
        padding: 0;
        text-align: center !important;
    }
    .last-td:before{
        display: none;
        content: none;
    }
    .last-td button{
        width: 100%;
        max-width: 220px;
        margin: auto;
    }
    .labour-table tbody tr:last-child .plus-btn-storage {
        width: 100%;
        max-width: 220px;
        margin: auto;
    }

    .labour-table {
        border: none !important;
    }

    /* Move options */
    .move-options-grid {
        grid-template-columns: 1fr;
    }

    /* Submit button */
    .submit-wrapper {
        text-align: center;
    }

    .submit-btn {
        width: 100%;
    }

    /* Materials */
    .material-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .material-heading {
        font-size: 24px;
    }

    h2.material-heading.couch-next-heading {
        display: none;
    }

    /* Address */
    .address-fields {
        grid-template-columns: 1fr;
    }

    .address-card {
        padding: 18px;
    }

    .address-title {
        font-size: 18px;
    }

    /* Mobile actions */
    .desktop-actions {
        display: none;
    }

    .mobile-actions {
        display: block;
        width: 100%;
    }

    .action-menu-btn {
        width: 100%;
        height: 48px;
        border: none;
        border-radius: 14px;
        background: #2563eb;
        color: #fff;
        font-size: 15px;
        font-weight: 600;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 18px;
        cursor: pointer;
    }

    .action-menu {
        position: absolute;
        top: 58px;
        left: 0;
        width: 240px;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, .12);
        padding: 8px;
        display: none;
        z-index: 999;
    }

    .action-menu.active {
        display: block;
        width: 100%;
    }

    .action-menu a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px;
        text-decoration: none;
        color: #1f2937;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 500;
    }

    .action-menu a:hover {
        background: #f3f6fb;
    }

    /* Insurance count row */
    .insurance-count-row {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 12px;
        align-items: end;
    }

    .insurance-count-row .estimate-field:nth-child(1) {
        grid-column: 1;
    }

    .insurance-count-row .estimate-symbol:nth-child(2) {
        grid-column: 2;
        align-self: end;
        padding-bottom: 15px;
    }

    .insurance-count-row .estimate-field:nth-child(3) {
        grid-column: 3;
    }

    .insurance-count-row .estimate-symbol:nth-child(4) {
        grid-column: 1;
        text-align: right;
        padding-bottom: 15px;
        margin: 0;
    }

    .insurance-count-row .estimate-field:nth-child(5) {
        grid-column: 2 / 4;
        margin-top: 0;
    }

    .insurance-count-row .estimate-field:nth-child(5) label {
        display: none;
    }

    .materials-table .input-group {
        width: 100%;
    }

    .insurance-input-wrap {
        margin-top: 0px;
        width: 100%;
    }

    /* Login page */
    .login-card {
        padding: 32px 24px;
    }
}
/*mobile responsive */
    @media(max-width:576px){
        .login-header .logo-area{width:100%}
        .login-page {
            min-height: auto;
        }

    }
    /* =========================
   Mobile Header
========================= */

.mobile-menu-toggle{
    display:none;
}
.date-row {
	display: flex;
}

@media (max-width:768px){

.header-inner{
    flex-direction:column;
    align-items:stretch;
    gap:15px;
}

.header-left-main{
    display:flex;
    justify-content:space-between;
    align-items:center;
    width:100%;
}

.logo-area{
    width:260px;
}

.mobile-menu-toggle{
    display:flex;
    align-items:center;
    justify-content:center;
    width:45px;
    height:45px;
    border:none;
    border-radius:10px;
    background:#f9d40a;
    color:#233d90;
    font-size:24px;
    cursor:pointer;
}

.main-nav{
    display:none;
    width:100%;
    flex-direction:column;
    background:#233d90;
    margin-top:15px;
    border-radius:15px;
    overflow:hidden;
}

.main-nav.show {
	display: flex;
	position: absolute;
	z-index: 999999;
	top: 53px;
	width: 95%;
}

.main-nav a{
    width:100%;
    padding:15px 20px;
    border-radius:0;
    border-bottom:1px solid rgba(255,255,255,.15);
}

.main-nav a:last-child{
    border-bottom:none;
}

.profile-wrapper{
    width:100%;
}

.profile-box{
    width:100%;
}

.profile-dropdown{
    width:100%;
}
/*dashboard table recent estimates*/
.data-table{
    overflow:visible;
}

.data-table table,
.data-table tbody,
.data-table tr,
.data-table td{
    display:block;
    /*width:100%;*/
}

.data-table thead{
    display:none;
}

.data-table tr{
    background:#fff;
    border-radius:20px;
    padding:18px;
    margin-bottom:18px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    border:1px solid #edf2f7;
}

.data-table td{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:15px;
    border:none;
    padding:10px 0;
}

.data-table td::before{
    content:attr(data-label);
    font-weight:700;
    color:#64748b;
    min-width:100px;
    flex-shrink:0;
}

.data-table td a{
    text-align:right;
    flex:1;
    word-break:break-word;
}

.customer-cell{
    text-align:right;
}

.customer-cell strong{
    display:block;
}

.customer-cell span{
    display:block;
    font-size:12px;
    color:#6b7280;
}

.status-badge{
    display:inline-flex;
}
.table-filters.mb-3 {
	left: 47%;
}
    .input-group.statusfilter {
        top: -10px !important;
        left: 51% !important;
    }
/*quick list*/
.dateRangeset{
        position:static;
        width:100%;
        margin:0px;
    }

    .dateRangeset .table-filters{
        position:static;
        left:auto;
        top:auto;
        display:flex !important;
        flex-direction:column;
        gap:15px;
        width:100%;
        padding:15px;
        background:#fff;
        border:1px solid #e5e7eb;
        border-radius:12px;
    }

    /* Title */
    .filter-title{
        width:100%;
        text-align:center;
    }

    .filter-title p{
        margin:0;
        font-size:15px;
        font-weight:600;
    }

    /* ==========================
       Date Row
    ========================== */

    .date-row{
        display:flex;
        gap:10px;
        width:100%;
    }

    .date-row .input-group{
        flex:1;
        margin:0;
    }

    .date-row .input-group input{
        width:100%;
        height:44px;
    }

    /* ==========================
       Buttons Row
    ========================== */

    .button-row{
        display:flex;
        gap:10px;
        width:100%;
    }

    .button-row .actionbtnSet{
        flex:1;
        display:flex;
        align-items:center;
        justify-content:center;
        height:44px;
        margin:0;
        padding:0 8px;
        font-size:13px;
        text-decoration:none;
        white-space:nowrap;
    }
    .dateRangeset .table-filters input[type="date"] {
	    width: 150px;
        font-size: 14px;
    }
    #statusFilter {
        width: 165px !important;
    }
    .dateRangeset .table-filters {
        margin-bottom: 0px;
    }
    .odd td:first-child, .even td:first-child {
        border-top: none !important;
    }
    /*estimate dropdown*/
    .action-menu-btn{
    display:flex;
    width:100%;
    height:48px;
    border:none;
    border-radius:12px;
    background:#233d90;
    color:#fff;
    font-weight:600;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    margin-bottom:10px;
}

.desktop-actions{
    display:none;
    flex-direction:column;
    gap:10px;
}

.desktop-actions.show{
    display:flex;
}

.desktop-actions .action-btn{
    width:100%;
    margin:0;
}
.estimate-page .input-group {
	margin-bottom: 0px;
}
.estimate-page .summary-box {
	margin-top: 15px;
}
.ministry-box .ministry-inner {
	display: block;
    width: 100%;
}
.ministry-box .ministry-box {
	margin-bottom: 10px;
}
 .estimate-updateBtn .card{
        display:flex;
        justify-content:space-between;
        align-items:center;
        gap:10px;
        text-align:left !important;
    }

    .estimate-updateBtn .action-btn{
        flex:1;
        margin:0 !important;
        height:44px;
        display:flex;
        align-items:center;
        justify-content:center;
        padding:0 12px;
        white-space:nowrap;
    }
    .box-total {
	display: block !important;
}

}
