/*
	Topic thread

	using tables for layout is ass. new non-table css added Nov 2024 
		-mwic 
*/

/* Wrapper to hold the two sections side by side 
		//overridden by 
.cc_layout_wrapper {
    display: flex;
    gap: 1rem; /* Space between the two sections 
    align-items: flex-start; /* Align both sections at the top */
}

/* Parent container for the two tables */
.nocc_container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
    gap: 10px; /* Optional: adds space between the two sections */
}

/* Topic table styling */
.nocc_topic_table {
    flex: 1; /* Allows equal width */
    max-width: 50%; /* Ensures it doesn't grow larger than 50% */
    border: 1px solid #ccc;
    padding: 1rem;
    background-color: #f9f9f9;
    overflow-y: auto; /* Enables scrolling if content overflows */
    box-sizing: border-box;
}

/* Post table styling */
.nocc_post_table {
    flex: 1; /* Allows equal width */
    max-width: 50%; /* Ensures it doesn't grow larger than 50% */
    border: 1px solid #ccc;
    padding: 1rem;
    background-color: #f9f9f9;
    overflow-y: auto; /* Enables scrolling if content overflows */
    box-sizing: border-box;
}
/* Adjust flex container for topic and post tables */
.cc_container {
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping */
    justify-content: space-between; /* Space out the two tables */
    width: calc(100% - 160px); /* Subtract the left margin of the parent container */
/*    margin-left: 160px; /* Align with the parent container's left margin */
    box-sizing: border-box; /* Ensure padding/borders don't affect width */
}

.mixversation_headline { 
	font-weight: bold;
	font-size: 2em; 
}

.cc_task_item { 
margin-top:1em; 

}

/* Individual table styles */
.cc_topic_table,
.cc_post_table {
    flex: 1; /* Ensure equal width */
/*    max-width: 50%; /* Ensure no table exceeds 50% width */
    border: 1px solid #ccc;
    padding: 1rem;
    background-color: #f9f9f9;
    overflow-y: auto; /* Enable scrolling for overflow content */
    box-sizing: border-box;
}

.cc_post_table {
    flex: 1; /* Ensure equal width */
/*    max-width: 50%; /* Ensure no table exceeds 50% width */
    border: 1px solid #ccc;
    padding: 1rem;
    background-color: #f9f9f9;
    overflow-y: auto; /* Enable scrolling for overflow content */
    box-sizing: border-box;
}

.cc_mp_table {
    flex: 1; /* Ensure equal width */
/*    max-width: 50%; /* Ensure no table exceeds 50% width */
    border: 1px solid #ccc;
    padding: 1rem;
	margin:.3em; 
    background-color: #f9f9f9;
    overflow-y: auto; /* Enable scrolling for overflow content */
    box-sizing: border-box;
}

/* Optional: Add styling for the container when the viewport is small */
@media (max-width: 768px) {
    .cc_container {
        flex-direction: column; /* Stacks the tables vertically */
    }
    .cc_topic_table, .cc_post_table {
        max-width: 100%; /* Full width on smaller screens */
    }
}

.cc_post { 
	margin-top: 1.5em; 
}

.cc_topic_row {
    display: flex;
    border-bottom: 1px solid #ccc;
    padding: 1rem 0;
}

.cc_topic_avatar img {
    width: 79px;
    height: auto;
    float: right;
}

.cc_topic_content {
    flex: 1;
    padding-left: 1rem;
}

.cc_topic_date,
.cc_topic_info,
.cc_topic_see,
.cc_topic_thumb {
    margin-bottom: 0.5rem;
}

.cc_post_table {
    /* Add styles for the right-hand div */
}


table.cc_topic_thread {
	clear: left;
}

div.forum_cmds a {
	float: left;
	margin-right: 1.0em;
}
table.cc_topic_thread div.cc_topic_commands a {
	float: left;
	margin-right: 1.0em;
}

table.cc_topic_thread td {
	vertical-align: top;
}

table.cc_topic_thread .user_role {
	margin-top: 3px;
	text-align: center;
	text-transform: uppercase;
	}

table.cc_topic_thread td.cc_topic_head {
	padding-top: 1.4em;
	padding-right: 1.0em;
}

table.cc_topic_thread td.cc_topic_body {
	padding-top: 1.4em;
}

table.cc_topic_thread td.cc_topic_body div.cc_topic_date {
}

table.cc_topic_thread td.cc_topic_body div.cc_topic_text {
}

table.cc_topic_thread td.cc_topic_body div.cc_topic_commands,
table.cc_topic_thread td.cc_topic_body div.cc_topic_date,
table.cc_topic_thread td.cc_topic_body div.cc_topic_text {
	padding: 4px 0px 4px 15px;
	margin: 0px;
	width: 85%;
}

table.cc_topic_thread td.cc_topic_body div.cc_topic_commands,
table.cc_topic_thread td.cc_topic_reply div.cc_topic_commands { 
	height: 2.1em;
	white-space: nowrap;
}


table.cc_topic_thread td.cc_topic_reply { 
	padding: 6px;
}

table.cc_topic_thread td.cc_topic_reply div.cc_topic_reply_body { 
	padding: 5px 5px 3px 21px;
	background-image: url('../images/reply-arrow.gif');
	background-position: 0px 10px;
	background-repeat: no-repeat;
	width: 85%;
}

table.cc_topic_thread td.cc_topic_reply div.cc_topic_reply_body div.cc_topic_reply_head { 
	margin: 0px; 
	padding: 4px;
}

table.cc_topic_thread td.cc_topic_reply div.cc_topic_reply_text { 
	float:left;
	padding: 8px;
}

table.cc_topic_thread td.cc_topic_reply div.cc_topic_commands { 
	clear: left;
}


/*
	Topic browse
*/
table.cc_topic_table {
	margin: 0.2em;
}

table.cc_topic_user_table td.cc_topic_thumb,
table.cc_topic_table td.cc_topic_see, 
table.cc_topic_table td.cc_topic_thumb {
	vertical-align: top;
}

table.cc_topic_user_table td.cc_topic_thumb {
	padding-bottom: 12px;
}

table.cc_topic_table td.cc_topic_see {
	text-align: right;
	padding: 0px 1.0em 1.0em 0em;
}

table.cc_topic_user_table td.cc_topic_date,
table.cc_topic_table td.cc_topic_date {
	vertical-align: top;
	text-align: right;
	padding-right: 1.0em;
	padding-bottom: 0.2em;
}

table.cc_topic_table td.cc_topic_thumb_head {
	font-size: 1.2em;
	vertical-align: top;
}

table.cc_topic_user_table td.cc_topic_thumb a,
table.cc_topic_table td.cc_topic_thumb a {
	font-style: italic;
	font-weight: normal;
}

.leftby_link {
	text-align: right;
	margin: 0px 2em 2em 0px;
	float: right;
}
a.topic_flag {
	float: right;
	margin-right: 12px;
	padding: 1px;
}
a.topic_permalink {
	float: right;
	display: block;
	margin-right: 1em;
}

.topic_deleted {
	width: 60%;
	margin: 1em 0px 0px 0px;
	padding: 2px 0px 2px 4em;
}
.topic_deleted a.user_link {
	font-weight: normal;
}
	
.topic_reply_head {
	width: 70%;
	margin: 3em auto;
}

.topic_reply_head h3 {
	padding: 0.5em;
}

.topic_reply_text {
	padding: 1em;
}

.topic_throttled_msg {
    margin: 10px;
    padding: 10px;
    font-weight: bold;
    border: 1px solid black;
	font-size: 1.2em;
}

.topic_throttle_msg a {
    color: blue;
}
