/* Stiluri de bază pentru tabele */
table{
  border-spacing:0;
  border-collapse:collapse
}

caption{
  padding-top:8px;
  padding-bottom:8px;
  color:#777;
  text-align:left
}

th{
  text-align:left
}

td,th{
  padding:0
}

/* Clasa .table și variantele sale */
.table{
  width:100%;
  max-width:100%;
  margin-bottom:20px
}

.table>tbody>tr>td,
.table>tbody>tr>th,
.table>tfoot>tr>td,
.table>tfoot>tr>th,
.table>thead>tr>td,
.table>thead>tr>th{
  padding:8px;
  line-height:1.42857143;
  vertical-align:top;
  border-top:1px solid #ddd
}

.table>thead>tr>th{
  vertical-align:bottom;
  border-bottom:2px solid #ddd
}

.table>caption+thead>tr:first-child>td,
.table>caption+thead>tr:first-child>th,
.table>colgroup+thead>tr:first-child>td,
.table>colgroup+thead>tr:first-child>th,
.table>thead:first-child>tr:first-child>td,
.table>thead:first-child>tr:first-child>th{
  border-top:0
}

.table>tbody+tbody{
  border-top:2px solid #ddd
}

.table .table{
  background-color:#fff
}

/* Table condensed */
.table-condensed>tbody>tr>td,
.table-condensed>tbody>tr>th,
.table-condensed>tfoot>tr>td,
.table-condensed>tfoot>tr>th,
.table-condensed>thead>tr>td,
.table-condensed>thead>tr>th{
  padding:5px
}

/* Table bordered */
.table-bordered{
  border:1px solid #ddd
}

.table-bordered>tbody>tr>td,
.table-bordered>tbody>tr>th,
.table-bordered>tfoot>tr>td,
.table-bordered>tfoot>tr>th,
.table-bordered>thead>tr>td,
.table-bordered>thead>tr>th{
  border:1px solid #ddd
}

.table-bordered>thead>tr>td,
.table-bordered>thead>tr>th{
  border-bottom-width:2px
}

/* Table striped */
.table-striped>tbody>tr:nth-of-type(odd){
  background-color:#f9f9f9
}

/* Table hover */
.table-hover>tbody>tr:hover{
  background-color:#f5f5f5
}

/* Table responsive */
.table-responsive{
  min-height:.01%;
  overflow-x:auto
}

@media screen and (max-width:767px){
  .table-responsive{
    width:100%;
    margin-bottom:15px;
    overflow-y:hidden;
    -ms-overflow-style:-ms-autohiding-scrollbar;
    border:1px solid #ddd
  }
  .table-responsive>.table{
    margin-bottom:0
  }
  .table-responsive>.table>tbody>tr>td,
  .table-responsive>.table>tbody>tr>th,
  .table-responsive>.table>tfoot>tr>td,
  .table-responsive>.table>tfoot>tr>th,
  .table-responsive>.table>thead>tr>td,
  .table-responsive>.table>thead>tr>th{
    white-space:nowrap
  }
  .table-responsive>.table-bordered{
    border:0
  }
  .table-responsive>.table-bordered>tbody>tr>td:first-child,
  .table-responsive>.table-bordered>tbody>tr>th:first-child,
  .table-responsive>.table-bordered>tfoot>tr>td:first-child,
  .table-responsive>.table-bordered>tfoot>tr>th:first-child,
  .table-responsive>.table-bordered>thead>tr>td:first-child,
  .table-responsive>.table-bordered>thead>tr>th:first-child{
    border-left:0
  }
  .table-responsive>.table-bordered>tbody>tr>td:last-child,
  .table-responsive>.table-bordered>tbody>tr>th:last-child,
  .table-responsive>.table-bordered>tfoot>tr>td:last-child,
  .table-responsive>.table-bordered>tfoot>tr>th:last-child,
  .table-responsive>.table-bordered>thead>tr>td:last-child,
  .table-responsive>.table-bordered>thead>tr>th:last-child{
    border-right:0
  }
  .table-responsive>.table-bordered>tbody>tr:last-child>td,
  .table-responsive>.table-bordered>tbody>tr:last-child>th,
  .table-responsive>.table-bordered>tfoot>tr:last-child>td,
  .table-responsive>.table-bordered>tfoot>tr:last-child>th{
    border-bottom:0
  }
}

/* Stiluri pentru print */
@media print{
  .table{
    border-collapse:collapse!important
  }
  .table td,
  .table th{
    background-color:#fff!important
  }
  .table-bordered td,
  .table-bordered th{
    border:1px solid #ddd!important
  }
}
/* Stiluri de bază pentru input */
button,input,optgroup,select,textarea{
  margin:0;
  font:inherit;
  color:inherit
}

button,input,select,textarea{
  font-family:inherit;
  font-size:inherit;
  line-height:inherit
}

input{
  line-height:normal
}

input[type=checkbox],input[type=radio]{
  -webkit-box-sizing:border-box;
  -moz-box-sizing:border-box;
  box-sizing:border-box;
  padding:0
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button{
  height:auto
}

input[type=search]{
  -webkit-box-sizing:content-box;
  -moz-box-sizing:content-box;
  box-sizing:content-box;
  -webkit-appearance:textfield
}

input[type=search]::-webkit-search-cancel-button,
input[type=search]::-webkit-search-decoration{
  -webkit-appearance:none
}

input[type=search]{
  -webkit-box-sizing:border-box;
  -moz-box-sizing:border-box;
  box-sizing:border-box
}

input[type=checkbox],input[type=radio]{
  margin:4px 0 0;
  margin-top:1px\9;
  line-height:normal
}

input[type=file]{
  display:block
}

input[type=range]{
  display:block;
  width:100%
}

input[type=file]:focus,
input[type=checkbox]:focus,
input[type=radio]:focus{
  outline:5px auto -webkit-focus-ring-color;
  outline-offset:-2px
}

input[type=search]{
  -webkit-appearance:none
}

/* Form control - stiluri pentru input-uri în formulare */
.form-control{
  display:block;
  width:100%;
  height:34px;
  padding:6px 12px;
  font-size:14px;
  line-height:1.42857143;
  color:#555;
  background-color:#fff;
  background-image:none;
  border:1px solid #ccc;
  border-radius:4px;
  -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);
  box-shadow:inset 0 1px 1px rgba(0,0,0,.075);
  -webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
  -o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;
  transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s
}

.form-control:focus{
  border-color:#66afe9;
  outline:0;
  -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
  box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)
}

.form-control::-moz-placeholder{
  color:#999;
  opacity:1
}

.form-control:-ms-input-placeholder{
  color:#999
}

.form-control::-webkit-input-placeholder{
  color:#999
}

.form-control::-ms-expand{
  background-color:transparent;
  border:0
}

.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control{
  background-color:#eee;
  opacity:1
}

.form-control[disabled],
fieldset[disabled] .form-control{
  cursor:not-allowed
}

textarea.form-control{
  height:auto
}

/* Media queries pentru input-uri de tip date/timp */
@media screen and (-webkit-min-device-pixel-ratio:0){
  input[type=date].form-control,
  input[type=time].form-control,
  input[type=datetime-local].form-control,
  input[type=month].form-control{
    line-height:34px
  }
  .input-group-sm input[type=date],
  .input-group-sm input[type=time],
  .input-group-sm input[type=datetime-local],
  .input-group-sm input[type=month],
  input[type=date].input-sm,
  input[type=time].input-sm,
  input[type=datetime-local].input-sm,
  input[type=month].input-sm{
    line-height:30px
  }
  .input-group-lg input[type=date],
  .input-group-lg input[type=time],
  .input-group-lg input[type=datetime-local],
  .input-group-lg input[type=month],
  input[type=date].input-lg,
  input[type=time].input-lg,
  input[type=datetime-local].input-lg,
  input[type=month].input-lg{
    line-height:46px
  }
}

/* Checkbox și radio stiluri */
.checkbox input[type=checkbox],
.checkbox-inline input[type=checkbox],
.radio input[type=radio],
.radio-inline input[type=radio]{
  position:absolute;
  margin-top:4px\9;
  margin-left:-20px
}

fieldset[disabled] input[type=checkbox],
fieldset[disabled] input[type=radio],
input[type=checkbox].disabled,
input[type=checkbox][disabled],
input[type=radio].disabled,
input[type=radio][disabled]{
  cursor:not-allowed
}

/* Input sizing - mărimi */
.input-sm{
  height:30px;
  padding:5px 10px;
  font-size:12px;
  line-height:1.5;
  border-radius:3px
}

select.input-sm{
  height:30px;
  line-height:30px
}

select[multiple].input-sm,
textarea.input-sm{
  height:auto
}

.input-lg{
  height:46px;
  padding:10px 16px;
  font-size:18px;
  line-height:1.3333333;
  border-radius:6px
}

select.input-lg{
  height:46px;
  line-height:46px
}

select[multiple].input-lg,
textarea.input-lg{
  height:auto
}

/* Input groups */
.input-group{
  position:relative;
  display:table;
  border-collapse:separate
}

.input-group[class*=col-]{
  float:none;
  padding-right:0;
  padding-left:0
}

.input-group .form-control{
  position:relative;
  z-index:2;
  float:left;
  width:100%;
  margin-bottom:0
}

.input-group .form-control:focus{
  z-index:3
}

.input-group-lg>.form-control,
.input-group-lg>.input-group-addon,
.input-group-lg>.input-group-btn>.btn{
  height:46px;
  padding:10px 16px;
  font-size:18px;
  line-height:1.3333333;
  border-radius:6px
}

select.input-group-lg>.form-control,
select.input-group-lg>.input-group-addon,
select.input-group-lg>.input-group-btn>.btn{
  height:46px;
  line-height:46px
}

select[multiple].input-group-lg>.form-control,
select[multiple].input-group-lg>.input-group-addon,
select[multiple].input-group-lg>.input-group-btn>.btn,
textarea.input-group-lg>.form-control,
textarea.input-group-lg>.input-group-addon,
textarea.input-group-lg>.input-group-btn>.btn{
  height:auto
}

.input-group-sm>.form-control,
.input-group-sm>.input-group-addon,
.input-group-sm>.input-group-btn>.btn{
  height:30px;
  padding:5px 10px;
  font-size:12px;
  line-height:1.5;
  border-radius:3px
}

select.input-group-sm>.form-control,
select.input-group-sm>.input-group-addon,
select.input-group-sm>.input-group-btn>.btn{
  height:30px;
  line-height:30px
}

select[multiple].input-group-sm>.form-control,
select[multiple].input-group-sm>.input-group-addon,
select[multiple].input-group-sm>.input-group-btn>.btn,
textarea.input-group-sm>.form-control,
textarea.input-group-sm>.input-group-addon,
textarea.input-group-sm>.input-group-btn>.btn{
  height:auto
}

.input-group .form-control,
.input-group-addon,
.input-group-btn{
  display:table-cell
}

.input-group .form-control:not(:first-child):not(:last-child),
.input-group-addon:not(:first-child):not(:last-child),
.input-group-btn:not(:first-child):not(:last-child){
  border-radius:0
}

.input-group-addon,
.input-group-btn{
  width:1%;
  white-space:nowrap;
  vertical-align:middle
}

.input-group-addon{
  padding:6px 12px;
  font-size:14px;
  font-weight:400;
  line-height:1;
  color:#555;
  text-align:center;
  background-color:#eee;
  border:1px solid #ccc;
  border-radius:4px
}

.input-group-addon.input-sm{
  padding:5px 10px;
  font-size:12px;
  border-radius:3px
}

.input-group-addon.input-lg{
  padding:10px 16px;
  font-size:18px;
  border-radius:6px
}

.input-group-addon input[type=checkbox],
.input-group-addon input[type=radio]{
  margin-top:0
}

.input-group .form-control:first-child,
.input-group-addon:first-child,
.input-group-btn:first-child>.btn,
.input-group-btn:first-child>.btn-group>.btn,
.input-group-btn:first-child>.dropdown-toggle,
.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,
.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){
  border-top-right-radius:0;
  border-bottom-right-radius:0
}

.input-group-addon:first-child{
  border-right:0
}

.input-group .form-control:last-child,
.input-group-addon:last-child,
.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,
.input-group-btn:first-child>.btn:not(:first-child),
.input-group-btn:last-child>.btn,
.input-group-btn:last-child>.btn-group>.btn,
.input-group-btn:last-child>.dropdown-toggle{
  border-top-left-radius:0;
  border-bottom-left-radius:0
}

.input-group-addon:last-child{
  border-left:0
}

.input-group-btn{
  position:relative;
  font-size:0;
  white-space:nowrap
}

.input-group-btn>.btn{
  position:relative
}

.input-group-btn>.btn+.btn{
  margin-left:-1px
}

.input-group-btn>.btn:active,
.input-group-btn>.btn:focus,
.input-group-btn>.btn:hover{
  z-index:2
}

.input-group-btn:first-child>.btn,
.input-group-btn:first-child>.btn-group{
  margin-right:-1px
}

.input-group-btn:last-child>.btn,
.input-group-btn:last-child>.btn-group{
  z-index:2;
  margin-left:-1px
}

/* Input-uri în butoane toggle */
[data-toggle=buttons]>.btn input[type=checkbox],
[data-toggle=buttons]>.btn input[type=radio],
[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],
[data-toggle=buttons]>.btn-group>.btn input[type=radio]{
  position:absolute;
  clip:rect(0,0,0,0);
  pointer-events:none
}

/* Form inline - input-uri în formulare inline */
.form-inline .checkbox input[type=checkbox],
.form-inline .radio input[type=radio]{
  position:relative;
  margin-left:0
}

/* Navbar form - input-uri în navbar */
.navbar-form .checkbox input[type=checkbox],
.navbar-form .radio input[type=radio]{
  position:relative;
  margin-left:0
}

/* Input-uri pentru button submit/reset */
input[type=button].btn-block,
input[type=reset].btn-block,
input[type=submit].btn-block{
  width:100%
}

/* 1. Centrează "devin" și "și" — forțat, peste Bootstrap */
.ex-fractii td[rowspan="2"] {
    vertical-align: middle !important;
    text-align: center !important;
}

/* 2. Aliniază border-bottom cu restul celulelor */
.ex-fractii tr:first-child td:nth-child(2),
.ex-fractii tr:first-child td:nth-child(4) {
    border-bottom: 1px solid #424242 !important;
}
