/* =====================================================
   IDBI THEME VARIABLES (NO DESIGN CHANGE)
===================================================== */
:root {
	--idbi-green: #00836c;
	--idbi-orange: #f37021;
	--idbi-dark: #0a4f3d;
	--idbi-dark-hover: #083f31;

	--idbi-danger: #d32f2f;
	--idbi-danger-hover: #b71c1c;

	--idbi-success: #27ae60;
	--idbi-warning: #e67e22;
	--idbi-info: #2980b9;

	--idbi-bg: #ffffff;
	--idbi-page-bg: #f4f6f8;

	--idbi-border: rgb(38, 149, 55);
	--idbi-muted: #999;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}
/* Header background (green) */
.ui-datepicker-header {
    background: #00836c !important;
    color: #fff !important;
    border: none !important;
}

/* Outer border (green) */
.ui-datepicker {
    border: 1px solid #00836c !important;
     background: #e6f4ea !important; 
}

/* Selected date (orange) */
.ui-datepicker .ui-state-active {
   
    background: #f36f21 !important;
    color: #fff !important;
    border: none !important;
}

.ui-datepicker-header  {
    color: #fff !important;
    border: none !important;
}
/* Make prev/next buttons visible */
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    display: block;           /* ensure they render */
    opacity: 1 !important;    /* visible */
    pointer-events: auto !important; /* clickable */
    color: black !important;
    
    background-color: white !important; /* darker green hover */
    width: 25px !important	;
}

/* Optional hover style */
.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
    background-color: #f58220 !important; /* darker green hover */
    color: rgb(255, 255, 255) !important;
    border-color: #f58220 !important;
}

/* Ensure the arrow icons are not hidden */
.ui-datepicker .ui-icon {
    background-image: none !important; /* keep default or empty if you want text arrows */
}
/* ================= GLOBAL ================= */
body {
	margin: 0;
	font-family: "Segoe UI", Arial, sans-serif;
	background: var(--idbi-page-bg);
}

#appLogo{
	height:40px;
}


/* ================= LAYOUT ================= */
.layout {
	display: flex;
	min-height: 100vh;
}

.sidebar {
	width: 20%;
	background: var(--idbi-bg);
	border-right: 1px solid #ddd;
	padding: 20px;
}

.content {
	width: 80%;
	padding: 30px;
	background: var(--idbi-bg);
}

/* ================= SIDEBAR ================= */
.sidebar .logo {
	width: 100%;
}

.progress-bar {
	height: 10px;
	background: #cfd8dc;
	border-radius: 5px;
	overflow: hidden;
	margin-bottom: 20px;
}

.progress {
	height: 100%;
	background: #2ecc71;
}

.steps {
	list-style: none;
	padding: 0;
	margin: 0;
}

.steps li {
	padding: 12px;
	margin-bottom: 8px;
	border-radius: 4px;
	font-size: 14px;
}

.steps li a {
	display: block;
	color: inherit;
	text-decoration: none;
}

.steps li.done {
	background: #e6f7ec;
	border-left: 4px solid #2e7d32;
}

.steps li.done a {
	color: #2e7d32;
	font-weight: 600;
}

.steps li.active {
	background: #e3f2fd;
	border-left: 4px solid #1565c0;
}

.steps li.active a {
	color: #1565c0;
	font-weight: 700;
}

.steps li.disabled {
	background: #f1f1f1;
	color: var(--idbi-muted);
	cursor: not-allowed;
}

/* ================= FORM ================= */
.form-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: 40px;
	row-gap: 20px;
}

.form-group {
	display: flex;
	flex-direction: column;
}

.form-group label {
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--idbi-green);
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title {
	color: var(--idbi-green);
}

.form-group input,
.form-group select,
#otherSectorText,
.table-input,
textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid gray;
	border-radius: 4px;
	background-color: var(--idbi-bg);
	color: #333;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#otherSectorText{
	margin: 10px 0;
}

.form-group input:focus,
.form-group select:focus,
#otherSectorText:focus {
	outline: none;
	border-color: var(--idbi-orange);
	box-shadow: 0 0 0 1px var(--idbi-orange);
}

.mandatory,
.required {
	color: red;
}

.date-display {
	font-size: 12px;
	color: #005568;
	margin-top: 4px;
}

/* ================= SECTIONS ================= */
.section-box {
	background: var(--idbi-bg);
	padding: 20px;
	margin-bottom: 25px;
	border-radius: 6px;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}

.section-title {
	font-weight: 700;
	font-size: 16px;
	margin-bottom: 12px;
	border-bottom: 2px solid #e0e0e0;
	padding-bottom: 6px;
}

/* ================= TABLE ================= */
.doc-table {
	width: 100%;
	border-collapse: collapse;
}

.doc-table tr {
	border-bottom: 1px solid #808080;
}

.doc-table td {
	padding: 1vh 0;
}

/* ================= CHECKBOX / RADIO ================= */
input[type="checkbox"],
input[type="radio"] {
	accent-color: var(--idbi-green);
	width: 16px;
	height: 16px;
	cursor: pointer;
}

/* ================= FILE INPUT ================= */
input[type="file"] {
	width: 100%;
	font-size: 14px;
	appearance: none;
	-webkit-appearance: none;
	accent-color: var(--idbi-green);
}

input[type="file"]::-webkit-file-upload-button,
input[type="file"]::file-selector-button {
	background-color: var(--idbi-green);
	color: #fff;
	border: none;
	padding: 6px 14px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	margin-right: 10px;
}

input[type="file"]::-webkit-file-upload-button:hover,
input[type="file"]::file-selector-button:hover {
	background-color: #096832;
}

/* ================= BUTTONS ================= */
.btn-primary {
	background: var(--idbi-green);
	color: #fff;
	padding: 10px 30px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
}
.btn-primary-sm {
	background: var(--idbi-green);
	color: #fff;
	padding: 5px 15px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	font-size: small;
}

.btn-primary:hover {
	background: var(--idbi-orange);
}

.btn-secondary {
	background: #6c757d;
	color: #fff;
	padding: 8px 18px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	margin: 10px 0;
}

.btn-danger {
	background-color: var(--idbi-danger);
	color: #fff;
	padding: 8px 18px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	border: 0;
	margin: 10px 0;
}

.btn-danger:hover {
	background-color: var(--idbi-danger-hover);
}

/* ================= ICONS ================= */
.icon {
	display: inline-block;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	text-align: center;
	line-height: 18px;
	font-weight: bold;
	font-size: 12px;
	margin-right: 6px;
	color: #fff;
}

.icon-success {
	background-color: var(--idbi-success);
}

.icon-lock {
	background-color: var(--idbi-warning);
}

.icon-info {
	background-color: var(--idbi-info);
}

/* ================= MISC ================= */
.logout-btn {
	display: block;
	width: 100%;
	padding: 8px 0;
	margin-top: 20px;
	background-color: #ff4d4f;
	color: #fff;
	border-radius: 4px;
	font-weight: bold;
	text-align: center;
	border: 0;
}

.logout-btn:hover {
	background-color: rgb(200, 0, 0);
}

.std-phone-wrapper {
	display: flex;
	gap: 10px;
	width: 100%;
}

.std-phone-wrapper select {
	width: fit-content;
}

.std-phone-wrapper input {
	flex: 1;
	width: 100%;
}

.action-bar {
	margin-top: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.file-actions {
	max-width: 30vw;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: flex;
	flex-direction: column;
}
.card{
	margin: 10px 0;
}

/* ===== TABLE ===== */
/*.doc-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    margin-top: 15px;
	
}

.doc-table th,
.doc-table td {
    border: 1px solid #ddd;
    padding: 10px;
    font-size: 13px;
    text-align: left;
}

.doc-table th {
    background-color: var(--idbi-green);
    color: #fff;
    font-weight: 600;
}

.doc-table tr:nth-child(even) {
    background-color: rgb(240, 250, 240);
}

.doc-table tr:hover {
    background-color: rgb(225, 250, 225);
}*/

.doc-table td input,
.doc-table td textarea {
	width:300px;
    padding: 6px 8px;
    font-size: 13px;
}

.doc-table th {
    color: var(--idbi-green);
	padding-bottom: 1vh;
    font-weight: 600;
}


/* ===== STEP 5 IDBI TABLE - FIT WITHOUT SCROLL ===== */

.step5-table {
  width: 100% !important;
  table-layout: fixed;          /*   force columns fit */
  border-collapse: collapse;
}

.step5-table th,
.step5-table td {
  padding: 6px 8px;             /*   reduce padding */
  vertical-align: top;
  box-sizing: border-box;
  word-break: break-word;
}

.step5-table th {
  font-size: 13px;
}

.step5-table td {
  font-size: 13px;
}

/*   inputs should not overflow */
.step5-table input.step5-input {
  width: 100%;
  max-width: 100%;
  border: 1px solid gray;
  padding: 6px 8px;
  font-size: 13px;
}

/*   Make action column small */
.step5-table th:last-child,
.step5-table td:last-child {
  width: 90px;
  text-align: center;
}

/*   Optional: make columns balanced */
.step5-table th:nth-child(1),
.step5-table td:nth-child(1) {
  width: 30%; /* Branch Name */
}

.step5-table th:nth-child(2),
.step5-table td:nth-child(2) {
  width: 15%; /* Sol ID */
}

.step5-table th:nth-child(3),
.step5-table td:nth-child(3),
.step5-table th:nth-child(4),
.step5-table td:nth-child(4) {
  width: 20%; /* From/To Date */
}

/*   Rounded focus ring (no sharp edges) */
.step5-table input,
.step5-table select,
.step5-table textarea {
    border-radius: 4px; /* same as your normal input */
}

.step5-table input:focus,
.step5-table select:focus,
.step5-table textarea:focus {
    outline: none;
	border: 2px solid;
    border-color: var(--idbi-orange) !important;
    border-radius: 4px; /*   important */
}


/*   Center align all td content in IDBI table */
#idbiBlock .step5-table td {
    vertical-align: middle !important;   /* center vertically */
    text-align: center;                  /* center horizontally */
}

/*   But keep input full width inside cell */
#idbiBlock .step5-table td input {
    text-align: left;                    /* input text normal */
}

/*   Action column already center (button) */
#idbiBlock .step5-table td:last-child {
    text-align: center;
}

/* ==========================
   Step 5 layout fixes
   (moved from inline style)
   ========================== */

.step5-table td,
.step5-table th {
    vertical-align: top;
    box-sizing: border-box;
}

.step5-input {
    width: 100%;
    box-sizing: border-box;
}

.step5-wrap {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}


.error-text{
	color: red;
	font-size: small;
}
#otherRelevantInfo{
	width: 95%;
}
.disp-none{
	display: none;
}

.partner-card {	
	
    padding: 15px;
    margin-bottom: 20px;
	border-bottom: 1px solid lightgray;
}

.partner-heading {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--idbi-green);
}
.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* default hidden */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #ffffff;
    z-index: 9999;
}

.loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #00a651;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/*a{
	color:var(--idbi-orange)
}*/
/*a:hover{
	color:var(--idbi-orange);
}
*/

.selected-preview{
    margin-top:5px;
    color: var(--idbi-dark);
    padding-bottom: 5px;
}
/* .selected-file-view-btn{
    margin-top:5px;
    border:1px solid var(--idbi-orange);
    padding: 1px 5px;
    text-decoration: none;
} */

/* Wrap STD & Phone side by side */
.std-phone-wrapper {
    display: flex;
    gap: 10px;         /* spacing between STD and phone */
    align-items: center;
}

/* STD input box */
.std-code {
    flex: 0 0 20%;      /* fixed 20% width, no grow, no shrink */
    max-width: 20%;
    box-sizing: border-box;
}

/* Telephone input box */
.telephone {
    flex: 1;            /* take remaining space */
    min-width: 70%;     /* ensure enough space */
    box-sizing: border-box;
}


/* Spinner */
.loader {
  border: 16px solid #f3f3f3;
  border-color: transparent;
  border-radius: 50%;
  border-top: 16px solid #f58220; /* IDBI Orange */
  border-bottom: 16px solid #0f7d3b; /* IDBI Green */

  width: 120px;
  height: 120px;

  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-overlay{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;

  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(3px);

  z-index: 9999;
}


.result-modal{
    display:none;
    position:fixed;
    z-index:9999;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.5);
    align-items:center;
    justify-content:center;
}

.result-modal-content{
    background:#fff;
    padding:50px 80px;
    border-radius:6px;
    text-align:center;
    min-width:320px;
}

.result-modal-content p{
    font-size:large;
    font-weight: 500;
    font-style: italic;
    margin-bottom:20px;
}

select {
    text-transform: uppercase;
}

.error-text {
	color: red;
	font-size: 12px;
	display: block;
	margin-top: 3px;
}

.error-box {
	color: red;
	font-size: 13px;
	margin-bottom: 10px;
}
.session-modal-overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.session-modal-box{
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    width: 380px;
    text-align: center;
}

.session-continue-btn{
    margin-top: 15px;
    padding: 8px 20px;
    width: fit-content;
}
.form-grid-4{
    grid-template-columns: repeat(4, 1fr);
}
.hidden{
    display:none;
}
.visible{
    display:block;
}
.loader-visible {
    display: flex;
}

.loader-hidden {
    display: none;
}
.hidden-field {
    display: none;
}
.hidden-section{
    display:none;
}

.visible-section{
    display:block;
}
.text-left{
    text-align:left;
}

.text-center{
    text-align:center;
}

.w-90{
    width:90px;
}
.w-10p{
    width:10% !important;
}
.w-15p{
    width:15% !important;
}
.w-20p{
    width:20% !important;
}
.w-25p{
    width:25% !important;
}
.w-35p{
    width:35% !important;
}
.w-50p{
    width:50% !important;
}
.w-85p{
    width:85% !important;
}
.w-100p{
    width:100%;
}
.mt-6{
    margin-top:6px;
}
.mt-10{
    margin-top:10px;
}
.flex-visible {
    display: flex !important;
}

.block-visible {
    display: block !important;
}
.th-left-25 {
    width: 25%;
    text-align: left;
}
.th-left-35 {
    width: 35%;
    text-align: left;
}

.th-center-25 {
    width: 25%;
    text-align: center;
}
.th-center-15 {
    width: 15%;
    text-align: center;
}
.th-center-10 {
    width: 10%;
    text-align: center;
}
.table-layout-fixed{
	table-layout: fixed;
}
.vertical-align-top{
	vertical-align: top;
}
.border-box{
	box-sizing: border-box;
}
.assignment-textarea{
    width:100% !important;
    box-sizing:border-box;
    resize:vertical;
}
.all-center{
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;	
}
.vh-100{
	height: 100vh;
}
.vw-100{
	width: 100vw;
}
.screen-note{
	margin: 0;
	font-size: xx-large;
	font-style: italic;
	font-weight: 500;
	
}
.screen-greeting{
	margin: 10px 0;
	font-size: x-large;
	font-style: italic;
	font-weight: 500;
	color: var(--idbi-orange);
}
.bg-white{
	background: white;
}
.notes {
    margin-top: 25px;
    padding: 15px;
    border-left: 4px solid #f58220;
    background: #fff8f1;
}
