/* =========================================================
   CS Grăsuții România
   MyBB 1.8 - RoundoDarko Premium

   File: radius.css / shape fallback
   Version: v1 FINAL CLEAN

   Scope:
   - fallback pentru rotunjiri MyBB stock;
   - păstrează colțuri premium;
   - NU forțează 2px peste modulele deja locked.
========================================================= */


/* =========================================================
   01. TABLE EDGE CLEANUP
========================================================= */

tr td.trow1:first-child,
tr td.trow2:first-child,
tr td.trow_shaded:first-child{
	border-left:0;
}

tr td.trow1:last-child,
tr td.trow2:last-child,
tr td.trow_shaded:last-child{
	border-right:0;
}

.tborder tbody tr:last-child > td{
	border-bottom:0;
}

.tborder tbody tr:last-child > td:first-child{
	border-bottom-left-radius:16px;
}

.tborder tbody tr:last-child > td:last-child{
	border-bottom-right-radius:16px;
}


/* =========================================================
   02. TABLE / HEADER RADIUS FALLBACK
========================================================= */

.tborder{
	border-radius:22px !important;
}

.thead{
	border-top-left-radius:16px;
	border-top-right-radius:16px;
}

.thead_collapsed{
	border-bottom-left-radius:16px;
	border-bottom-right-radius:16px;
}

.thead_left{
	border-top-right-radius:0;
}

.thead_right{
	border-top-left-radius:0;
}

.tcat_menu{
	border-radius:0 !important;
}

.tborder tbody:nth-last-child(2) .tcat_collapse_collapsed{
	border-bottom-left-radius:16px !important;
	border-bottom-right-radius:16px !important;
}


/* =========================================================
   03. FORM / COMPONENT RADIUS FALLBACK
========================================================= */

button,
input.button,
input.textbox,
input.invalid_field,
input.valid_field,
select{
	border-radius:999px !important;
}

textarea,
.editor_control_bar,
blockquote,
.codeblock,
fieldset,
.pm_alert,
.red_alert,
.popup_menu,
a.button,
div.error{
	border-radius:16px !important;
}

.postbit_buttons > a{
	border-radius:999px !important;
}


/* =========================================================
   04. POPUP ITEM RADIUS
========================================================= */

.popup_menu .popup_item_container:first-child .popup_item{
	border-top-left-radius:12px;
	border-top-right-radius:12px;
}

.popup_menu .popup_item_container:last-child .popup_item{
	border-bottom-left-radius:12px;
	border-bottom-right-radius:12px;
}


/* =========================================================
   05. PAGINATION / POLL RADIUS
========================================================= */

.pagination a,
.pagination .pagination_current{
	border-radius:999px !important;
}

.pollbar{
	position:relative;
	border-radius:999px !important;
	overflow:hidden;
}


/* =========================================================
   06. CLASSIC POST FALLBACK
   PostBit Premium rămâne în postbit CSS.
========================================================= */

.post.classic .post_author{
	border-radius:0 16px 16px 0;
}


/* =========================================================
   07. RESPONSIVE
========================================================= */

@media (max-width:700px){
	.tborder{
		border-radius:16px !important;
	}

	.thead,
	.thead_collapsed,
	.tborder tbody tr:last-child > td:first-child,
	.tborder tbody tr:last-child > td:last-child,
	.tborder tbody:nth-last-child(2) .tcat_collapse_collapsed{
		border-radius:12px !important;
	}

	textarea,
	.editor_control_bar,
	blockquote,
	.codeblock,
	fieldset,
	.pm_alert,
	.red_alert,
	.popup_menu,
	a.button,
	div.error{
		border-radius:14px !important;
	}
}