.order-heading { margin-bottom: 15px; }
.order-heading .order-hed-collum { padding:0 5px;margin: 20px 0;display: grid;    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; }
    
#of-drawing-table_wrapper .badge-success { color:#28a745; }
#of-drawing-table_wrapper .badge-danger { color:#dc3545; }
#of-drawing-table_wrapper a.os-drawing-approved, #of-drawing-table_wrapper a.os-drawing-rejected { font-size:24px; }

/* Reason column styling to prevent truncation */
#of-drawing-table_wrapper th:nth-child(6),
#drawing-list-table_wrapper th:nth-child(6) {
    min-width: 200px;
    max-width: 300px;
}

#of-drawing-table_wrapper td:nth-child(6),
#drawing-list-table_wrapper td:nth-child(6) {
    min-width: 200px;
    max-width: 300px;
    word-wrap: break-word;
    white-space: normal;
}

/* Enhanced rejection reason textarea styling */
#rejectionReason {
    font-family: inherit;
    line-height: 1.5;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#rejectionReason:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#rejectionReason::-webkit-scrollbar {
    width: 8px;
}

#rejectionReason::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#rejectionReason::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#rejectionReason::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Character count styling */
#charCount {
    font-weight: 500;
}

#charCount.text-warning {
    color: #ffc107 !important;
}

#charCount.text-danger {
    color: #dc3545 !important;
}

/* Modal adjustments for better textarea display */
#statusModal .modal-dialog {
    max-width: 500px;
}

#statusModal .modal-body {
    padding: 20px;
}

/* Tooltip styling for truncated reason text */
.reason-tooltip {
    position: relative;
    cursor: help;
}

.reason-tooltip:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    max-width: 300px;
    word-wrap: break-word;
}

.table-responsive { display: block;width: 100%;overflow-x: auto;-webkit-overflow-scrolling: touch; }
label { display: block;font-weight: bold;margin-bottom: 5px; }
.nav-btn { display: flex;;align-items: center;gap: 10px; margin-top: 20px;}

#preview-tableStep1, #preview-tableStep11 { white-space: nowrap; }

.accordion-toggle { cursor: pointer;background-color: #f4f4f4;padding: 10px;margin: 0;font-weight: bold;border: 1px solid #ccc; }
.accordion-toggle.active { background-color: #e2e2e2; }
.accordion-content { padding: 10px;border: 1px solid #ccc;border-top: none; }

.input-tooltip {
  position: absolute;
  background: #f44336;
  color: #fff;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.input-tooltip::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 10px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #f44336 transparent;
}

form#of-order-form textarea,form#of-order-form select{
    min-height: auto;
    border: 1px solid #dddedf;
}
#of-order-form .order-ul-box {
    color: #444;
}
#of-order-form .order-ul-box li {
    margin-bottom: 0;
    line-height: 1.6;
}
#of-order-form .order-ul-box ul {
    margin-bottom: 5px;
}
div#of-order-table_wrapper th {
    font-size: 14px;
}
form#of-order-form {
    max-width: 100%;
    margin: 50px auto 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    background: #ffffff;
    padding: 20px;
    overflow-x: hidden;
    border-radius: 8px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}
.order-heading .order-hed-collum-text, .col2-set {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.mb-3.wsp-tex {
    display: flex;
    flex-wrap: wrap;
}
body.blog.modal-open {
    padding-right: 0 !important;
}
form#of-order-form table td {
    padding: 5px;
}
form#of-order-form input, #statusModal input {
	 border: 1px solid #dddedf;
	 line-height: 25px;
	 width: 100%;
	text-align: left;
    color:#000;
	margin-bottom: 0;
}
form#of-order-form td textarea {
	line-height: 25px;
	text-align: left;
    color:#000;
	margin-bottom: 0;
	padding: 3px 20px 3px 8px !important;
}
form#of-order-form td select {
    height: auto !important;
    font-size: 13px !important;
    text-align: left;
	width: auto;
    padding: 5px 20px 5px 8px !important;
    color:#000;
	margin-bottom: 0;
}
form#of-order-form td select {
    background-image: url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20256%20448%22%20enable-background%3D%22new%200%200%20256%20448%22%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E.arrow%7Bfill%3A%23424242%3B%7D%3C%2Fstyle%3E%3Cpath%20class%3D%22arrow%22%20d%3D%22M255.9%20168c0-4.2-1.6-7.9-4.8-11.2-3.2-3.2-6.9-4.8-11.2-4.8H16c-4.2%200-7.9%201.6-11.2%204.8S0%20163.8%200%20168c0%204.4%201.6%208.2%204.8%2011.4l112%20112c3.1%203.1%206.8%204.6%2011.2%204.6%204.4%200%208.2-1.5%2011.4-4.6l112-112c3-3.2%204.5-7%204.5-11.4z%22%2F%3E%3C%2Fsvg%3E%0A);
    background-position: right 6px center;
    background-repeat: no-repeat;
    background-size: auto 50% !important;
    padding: 10px 30px 10px 10px;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
}

form#of-order-form table input {
    line-height: normal;
	    min-width: 80px;
    border-radius: 0;
}

form#of-order-form table tr td:first-child input[readonly] {
    background: #808080;
    color: #fff;
    text-align: center;
    min-width: 50px;
}

form#of-order-form table#tableStep1 td:first-child , form#of-order-form table#tableStep1 th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
}

form#of-order-form h3 {
    font-size: 22px;
    font-family: Arial, Helvetica, sans-serif;
}
th, td { padding: 12px 15px;border: 1px solid #ddd;text-align: center; }
th { background-color:#808080;color: white;font-weight: bold; }
td { background-color: #fafafa;vertical-align: middle;padding:0; }

td input, td select {
    width: 100%;
    padding: 5px !important;
    border: 1px solid #ddd;
    border-radius: 0px;
    font-size: 14px;
	line-height: 20px;
    background-color: #fff;
    transition: all 0.3s ease;
}
form#of-order-form table  th {
    line-height: 1.2;
}
form#of-order-form table tbody {
	border-bottom: 1px solid #ddd;
    border-top: 1px solid #ddd;
}
form#of-order-form table button i.fas.fa-trash-alt {
    color: #fff;
}
td input:focus, td select:focus { border-color: #eee;outline: none; }
td input[type="number"], td input[type="text"] { width: 100px; }
table tbody td:first-child input[type="number"] { width:50px;border:none; }
td select { width: 100px;height: 36px; }

   
#step1 table td button, #step2 table td button, #step3 table td button, .add-row button, .nav-btn button {
    color: #ffffff;
    background-color: #55555e;
	padding: 0.5rem 1rem;
}
#step1 table td button:focus, #step1 table td button:hover,#step2 table td button:focus, #step2 table td button:hover, #step3 table td button:focus, #step3 table td button:hover, .add-row button:focus, .add-row button:hover, .nav-btn button:focus, .nav-btn button:hover {
    color: #ffffff;
    background-color: #3f4047;
	padding: 0.5rem 1rem;
}

.loader {
    display: none; 
    position: fixed;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
nav.-myaccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}
nav.-myaccount-navigation ul li {
    margin: 0;
}
nav.-myaccount-navigation ul li a:hover, nav.-myaccount-navigation ul li.active a {
    background: #000;
    color: #53f9ac;
}
nav.-myaccount-navigation ul li a {
    padding: 15px;
    display: block;
    width: 100%;
    line-height: 1;
    color: #000;
    background: #f8f8f8;
    text-decoration: none;
}

#uap-login-form input {
	width: 100%;
	border: 1px solid #ddd;
	color: #000;
}
main.sections_group .section_wrapper.os-my-order,.section_wrapper.os-my-order,.page.page-id-102 main.sections_group .section_wrapper
{
    max-width: 1500px;
}
table#of-order-table {
    border: 1px solid #ddd;
}
div#wsp-container .progress-bar {
    background-color: #000;
}
.step-container {
  position: relative;
  text-align: center;
  transform: translateY(-43%);
}
a.view-order.button {
    padding: 7px 50px;
    font-size: 14px;
}
a.download-drawing.button {
    padding: 7px 20px;
    font-size: 14px;
}

.step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #000;
  border: 2px solid #000;
  line-height: 30px;
  font-weight: bold;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  cursor: pointer; /* Added cursor pointer */
}

.step-line {
  position: absolute;
  top: 16px;
  left: 50px;
  width: calc(100% - 100px);
  height: 2px;
  background-color: #007bff;
  z-index: -1;
} 
.step-circle:nth-child(1)::after {
    content: "Order Details";
    display: block;
    position: absolute;
    bottom: -30px;
    width: 120px;
    color: #000;
}
.step-circle:nth-child(2)::after {
    content: "Post & Hardwares";
    display: block;
    position: absolute;
    bottom: -30px;
    width: 150px;
    color: #000;
}
.step-circle:nth-child(3)::after {
    content: "Battens";
    display: block;
    position: absolute;
    bottom: -30px;
    width: 100px;
    color: #000;
}
div#of-order-table_wrapper th.hed-width-dr.sorting {
    min-width: 120px;
}
div#of-order-table_wrapper th {
    font-size: 14px;
}
div#of-order-table_wrapper th.hed-width.sorting {
    min-width: 150px;
}
.table-responsive-box table.dataTable {
    border: 1px solid #ddd;
}

@media screen and (min-width: 1599px) {
	.page.page-id-98 main.sections_group .section_wrapper{
		max-width: 1500px;
	}
	
}
@media screen and (max-width: 1130px) {
	.table-responsive-box{
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}
@media screen and (min-width: 768px) {
	.page.page-id-98 div#Subheader {
		padding: 170px 0 25px;
	}
}
@media screen and (max-width: 767px) {
	body .section_wrapper.os-my-order {
		max-width: 100% !important;
	}
	.row .mrg-25 {
		margin-top: 25px;
	}
}
@media screen and (max-width: 599px) {
	.step-circle:nth-child(1)::after,.step-circle:nth-child(2)::after,.step-circle:nth-child(3)::after{
		width: auto;
		line-height: 1.2;
	}
	#of-order-form .order-ul-box ul {
		margin-left: 20px;
	}
}