/*--------------------------------------------------------------
 IR UPDATER
--------------------------------------------------------------*/
/* ======== Reset ======== */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
html, body {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	color: var(--default);
	font-family: "Poppins", "Zen Kaku Gothic New", sans-serif;
	background: var(--background);
}
/* #irNewsUpdater {
	background: var(--background-2);
} */
html {
	font-size: 62.5%;
}
@media (max-width: 576px) {
	html {
		font-size: 56.25%;
	}
}

body {
	font-size: 1.6rem;
	line-height: 1.6;
	background: var(--background);
}

h1, h2, h3, h4, h5, h6 {
	font-family: "Poppins", "Zen Kaku Gothic New", sans-serif;
	margin-bottom: 1.5rem;
	color: var(--default);
}
label {
	display: block;
	margin-bottom: .5rem;
	font-weight: 600;
	color: var(--default);
}
input, select, textarea {
	width: 100%;
	padding: .8rem;
	font-size: 1.6rem;
	border: 1px solid var(--gray);
	border-radius: 4px;
	box-sizing: border-box;       
}
textarea {
	height: 10rem;
}
button {
	margin-right: 1rem;
	padding: 1rem 1.5rem;
	background-color: var(--tertiary);
	color: var(--white);
	font-size: inherit;
	font-family: inherit;
	border: none;
	border-radius: 4px;
	cursor: pointer;   
}
button:hover {
	background-color: rgba(var(--tertiary-rgb), .6);
}
button:disabled,
button:disabled:hover {
	color: var(--white);
	border: none!important;
	background-color: var(--gray);
	cursor: not-allowed;
}

section {
	position: relative;
	padding: 5rem 0;
	overflow: hidden;
}

/* #irNewsUpdater .container {
	background: var(--white);
} */

/* ======== Colors ======== */
:root {
	--primary: #ef5423;
	--primary-rgb: 239, 84, 35;
	--secondary: #61d0a4;
	--secondary-rgb: 97, 208, 164;
	--tertiary: #68cbd4;
	--tertiary-rgb: 104, 203, 212;
	--quaternary: #c1beb5;
	--quaternary-rgb: 193, 190, 181;

	--default: #4a403e;
	--default-rgb: 74, 64, 62;
	--background: #fdfcfc;
	--background-rgb: 253, 252, 252;
	--background-2: #f6f4f4;
	--background-2-rgb: 246, 244, 244;
	--white: #fff;
	--white-rgb: 255, 255, 255;

	--gray: #dcdde2;
	--gray-rgb: 220, 221, 226;
	--dark: #27262a;
	--dark-rgb: 39, 38, 42;
	--black: #000;
	--black-rgb: 0, 0, 0;
	--success: #8fd162;
	--success-rgb: 143, 209, 98;
	--info: #5bc0de;
	--info-rgb: 91, 192, 222;
	--warning: #f0ad4e;
	--warning-rgb: 240, 173, 78;
	--danger: #d9534f;
	--danger-rgb: 217, 83, 79;
}

/* IR Library */
.container {
	max-width: 900px;
	margin: 0 auto;
	padding: 3rem;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(var(--gray-rgb), .5);
}
h1 {
	margin-top: 0;
	padding-bottom: .5rem;
	font-weight: 600;
	border-bottom: 1px solid var(--gray);
	
}

.instructions-wrapper {
	position: fixed;
	bottom: 0;
	right: 0;
	display: block;
	width: 360px;
	padding: 1rem;
}
.instructions-wrapper .instructions {
	border-left: 10px solid var(--secondary);
}
.instructions {
	margin: 2rem 0;
	padding: 1.5rem;
	background-color: rgba(var(--gray-rgb), .25);
	border-left: 4px solid var(--secondary);
}
.instructions h3 {
	margin-top: 0;
	color: var(--default);
}
.instructions ol {
	margin-bottom: 0;
	padding-left: 2rem;
}
.instructions ol li {
	line-height: 1.8;
}
.instructions i {
	margin-right: .5rem;
	font-size: 20px;
}

.form-group {
	margin-bottom: 2rem;
}

.tab-container {
	margin-top: 2rem;
}
.tab-buttons {
	display: flex;
	border-bottom: 1px solid var(--gray);
}
.tab-button {
	margin-right: .5rem;
	padding: 1rem 1.5rem;
	background-color: var(--gray);
	border: none;
	border-radius: 4px 4px 0 0;
	cursor: pointer;
}
.tab-button.active {
	background-color: var(--primary);
	border: 1px solid var(--primary);
	border-bottom: none;
}
.tab-button i {
	margin-right: .5rem;
}
.tab-content {
	display: none;
	padding: 2rem;
	border: 1px solid var(--gray);
	border-top: none;
}
.tab-content.active {
	display: block;
}

.result {
	margin-top: 3rem;
	padding: 1.5rem;
	background-color: #f9f9f9;
	border: 1px solid var(--gray);
	border-radius: 4px;
}
.code {
	max-height: 300px;
	margin-top: 1rem;
	padding: 1.5rem;
	font-family: Consolas, monospace;
	background-color: #f5f5f5;
	border-radius: 4px;
	border: 1px solid var(--gray);
	white-space: pre-wrap;
	overflow-y: auto;      
}
.success-message {
	display: none;
	margin-top: 1rem;
	padding: 1rem;
	text-align: center;
	color: #3c763d;
	background-color: var(--secondary);
	border-radius: 4px;     
}
.file-input-container {
	position: relative;
	display: inline-block;
	overflow: hidden;  
}
.file-input-container input[type=file] {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
	opacity: 0;     
}
.file-input-button {
	display: inline-block;
	padding: 1rem 1.5rem;
	color:  var(--white);
	background-color: var(--default);
	border-radius: 4px;      
}
.file-name {
	margin-left: 1rem;
}
.preview-container {
	margin: 2rem 0;
	padding: 1.5rem;
	border: 1px solid var(--gray);
	border-radius: 10px;     
}
.preview-title {
	margin-bottom: 1rem;
	font-weight: bold;      
}
.preview-content {
	max-height: 300px;
	padding: 1rem;
	background-color: transparent;
	border-radius: 4px;
	overflow-y: auto;     
}
.error-message {
	display: none;
	margin-top: 1rem;
	padding: 1rem;
	color: #721c24;
	background-color: #f8d7da;
	border: 1px solid #f5c6cb;
	border-radius: 4px;         
}
.loading {
	display: none;
	margin: 2rem 0;
	text-align: center;
}
.loading-spinner {
	width: 30px;
	height: 30px;
	margin: 0 auto;
	border: 4px solid var(--white);
	border-top: 4px solid var(--secondary);
	border-radius: 50%;
	animation: spin 2s linear infinite;
}
@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.checkbox-group {
	margin-top: 1.5rem;
}
.checkbox-container {
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
}
.checkbox-container input[type="checkbox"] {
	position: relative;
	width: 20px;
	height: 20px;
	margin-top: -0.4rem;
	margin-right: 1rem;
	background-color: var(--white);
	border-radius: 3px;
	border: 1px solid var(--gray);
	vertical-align: middle;
    cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}
.checkbox-container input[type=checkbox]:checked {
	background: var(--tertiary);
	border: none;
}
.checkbox-container input[type=checkbox]:checked::after {
	content: "\eb7b";
	position: absolute;
	top: .1rem;
	left: .1rem;
    padding: .2rem;
	color: var(--white);
	font-family: 'remixicon';
	font-weight: 900;
	font-size: 14px;
}
.info-box {
	margin: 1.5rem 0;
	padding: 1.2rem;
	border-left: 4px solid var(--tertiary);
	background-color: rgba(var(--tertiary-rgb), .125);
	border-radius: 0;
}
.warning-box {
	margin: 1.5rem 0;
	padding: 1.2rem;
	background-color: #f3d8e3;
	border-left: 4px solid #d0618d;
	border-radius: 4px;
}
.category-label {
	display: inline-block;
	margin: 0 .5rem;
	padding: .25rem .5rem;
	color: var(--white);
	font-size: 12px;
	border-radius: 0;
}

.category-reports {
	background-color: #1a6899;
}
.category-disclosures {
	background-color: #1a7d99;
}
.category-others {
	background-color: #1a998a;
}
.category-meeting {
	background-color: #1a996a;
}
.category-publisher {
	background-color: #1a9399;
}
.category-info {
	background-color: #6c757d;
}
.category-notice {
	background-color: #1a3e99;
}
.form-group-inline {
	display: flex;
	gap: 1rem;
}
.form-group-inline > div {
	flex: 1;
}
.toggle-container {
	display: flex;
	align-items: center;
	margin-top: 1rem;
}
.toggle-switch {
	position: relative;
	display: inline-block;
	width: 60px;
	height: 34px;
	margin-right: 1rem;
}
.toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}
.toggle-slider {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: var(--gray);
	border-radius: 34px;
	transition: .4s;
	cursor: pointer;      
}
.toggle-slider:before {
	position: absolute;
	left: 4px;
	bottom: 4px;
	content: "";
	width: 26px;
	height: 26px;
	background-color: var(--white);
	border-radius: 50%;
	transition: .4s;       
}
input:checked + .toggle-slider {
	background-color: var(--secondary);
}
input:checked + .toggle-slider:before {
	transform: translateX(26px);
}
.toggle-label {
	font-weight: normal;
}
.fiscal-year-info {
	margin: 1.5rem 0;
	padding: 1.2rem;
	background-color: rgba(var(--tertiary-rgb), .125);
	border-left: 4px solid var(--tertiary);
	border-radius: 4px;
}
.fiscal-year-warning {
	margin: 1.5rem 0;
	padding: 1.2rem;
	background-color: #f3d8e3;
	border-left: 4px solid #d0618d;
	display: none;
}
.input-with-button {
	display: flex;
	gap: 1rem;
}
.input-with-button input {
	flex: 1;
}
.input-with-button button {
	white-space: nowrap;
}
.debug-info {
	display: none;
	max-height: 300px;
	margin-top: 2rem;
	padding: 1rem;
	font-size: 1.2rem;
	font-family: monospace;
	background-color: var(--background);
	border: 1px solid var(--gray);
	overflow-y: auto;
}
.html-preview {
	display: none;
	max-height: 300px;
	margin-top: 2rem;
	padding: 1rem;
	font-size: 1.2rem;
	font-family: monospace;
	background-color: var(--white);
	border: 1px solid var(--gray);
	overflow-y: auto;
}
.next-button, .preview-button {
	color: var(--white);
	border: 1px solid var(--primary);
	background: var(--primary);
}
.next-button:hover, .preview-button:hover {
	color: var(--primary);
	background: var(--white);
}
.back-button {
	color: var(--primary);
	border: 1px solid var(--primary);
	background: var(--white);
}
.back-button:hover {
	color: var(--white);
	border: 1px solid var(--primary);
	background: var(--primary);
}

.news-item {
	position: relative;
	margin-bottom: 1rem;
	padding: 1.5rem 2rem;
	background: rgba(var(--secondary-rgb), .025);
	border-radius: 8px;
	border: 1px solid rgba(var(--secondary-rgb), .25);
}
.news-item-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
}
.news-item-title {
	margin: 0;
	font-weight: bold;
}
.remove-news-item {
	display: inline-block;
	padding: .25rem 1rem;
	color: var(white);
	font-size: 16px;
	background-color:var(--danger);
	border: none;
	border-radius: 4px;
	cursor: pointer;		
}
.remove-news-item i {
	margin-right: .25rem;
	font-size: 18px;
}
.remove-news-item:hover {
	background-color: rgba(var(--danger-rgb), .6);	
}
#add-news-item-button, .add-news-item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-bottom: 2rem;
	padding: 1rem 1.5rem;
	color: var(--white);
	background-color: var(--secondary);
	font-size: 16px;
	border: 1px solid var(--secondary);
	border-radius: 4px;
	cursor: pointer;
}
.add-news-item i {
	margin-right: 1rem;
}
#add-news-item-button:hover, .add-news-item:hover {
	color: var(--secondary);
	background-color: var(--white);
}

#news-items-container,
.news-items-container {
	margin-top: 2rem;
	margin-bottom: 2rem;
}
.news-summary {
	margin-bottom: 1rem;
	padding: 1rem;
	background-color: #f9f9f9;
	border-radius: 4px;	
}
.radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.5rem;
}
.radio-container {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	margin-right: 2rem;
	cursor: pointer;
}
.radio-container input[type="radio"] {
	position: relative;
	width: 16px;
	height: 16px;
	margin-right: .5rem;
	border: 1px solid var(--gray);
	border-radius: 50%;
	vertical-align: -2px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
}
.radio-container input[type="radio"]:checked {
	border: 1px solid var(--tertiary);
}
.radio-container input[type="radio"]:checked:before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: .9rem;
	height: .9rem;
	border-radius: 50%;
	background: var(--tertiary);
	transform: translate(-50%, -50%);
}
.radio-container label {
	margin-bottom: 0;
	cursor: pointer;
}
.news-item-divider {
	margin: 1.5rem 0 1rem;
	border: none;
	border-top: 1px dashed var(--secondary);
}