.mycred-po-wrapper {
    max-width: 800px; margin: auto; padding: 2rem;
}

.text-center {
    text-align:center;
}
.full-width {
    width:100%;
}

.po-action-form {
    margin-top: 2rem;
    max-width: 500px;
    background: #f1f1f1;
    padding: 1rem;
    border: 1px solid #ccc;
}
.po-action-form form {
    display: inline-block;
    margin-right: 10px;
}
.po-action-form input[type="submit"] {
    padding: 8px 16px;
    border: none;
    color: #fff;
    cursor: pointer;
}
.report-issue-btn {
    background: #dc3545 !important;
}
.release-funds-btn {
    background: #28a745 !important;
}

.abandon-btn {
    background: #fd7e14 !important; 
}
.po-action-success {
    margin-bottom: 10px;
    color: green;
}


.po-transfer-form {
    margin-top: 2rem;
    max-width: 500px;
    background: #f9f9f9;
    padding: 1rem;
    border: 1px solid #ddd;
}
.po-transfer-form input[type="number"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
}
.po-transfer-form input[type="submit"] {
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    border: none;
}
.po-transfer-success {
    margin-bottom: 10px;
    color: green;
}
.po-transfer-error {
    margin-bottom: 10px;
    color: red;
}
.po-transfer-limit-reached {
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    margin-top: 1rem;
}


.mycred-transfers-wrapper {
    max-width: 800px;
    margin: 2rem auto;
}
.mycred-transfers-table {
    width: 100%;
    border-collapse: collapse;
}
.mycred-transfers-table th,
.mycred-transfers-table td {
    border: 1px solid #ddd;
    padding: 8px;
}
.mycred-transfers-table th {
    background-color: #f4f4f4;
    text-align: left;
}
.mycred-transfers-empty {
    text-align: center;
    padding: 1rem;
    font-style: italic;
}



.po-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: Arial, sans-serif;
}

.po-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #222;
}

.po-meta {
    margin-bottom: 2rem;
    padding: 0 10px;
}

.po-meta__item {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.po-files,
.po-submissions__files {
    list-style: disc;
    margin-left: 1.5rem;
}

.po-files li,
.po-submissions__files li {
    margin-bottom: 0.5rem;
}

.po-submissions {
    margin-top: 2rem;
    /* border-top: 1px solid #ccc; */
    padding-top: 1rem;
}

.po-submissions__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.po-submissions__item {
    background: #f7f7f7;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.po-submissions__header {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.po-submissions__message {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.po-work-form {
    margin-top: 2rem;
    background: #f8f8f8;
    padding: 15px;
    border: 1px solid #ddd;
    max-width: 600px;
    border-radius: 8px;
}
.po-work-form textarea {
    width: 100%;
    height: 100px;
    margin-bottom: 1rem;
}
.po-work-form input[type="file"] {
    margin-bottom: 1rem;
}
.po-work-form input[type="submit"] {
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    border: none;
}
.po-work-success {
    margin: 1rem 0;
    color: green;
}
.po-work-error {
    margin: 1rem 0;
    color: red;
}

.mycred-summary-table .mycred-et-table{
    font-size: 12px;
    width:100%;
    max-width:100%;
}

#linked-task .select2-container, #recipient-username .select2-container{ 
    height:auto !important;
}

#linked-task .select2-selection, #recipient-username .select2-selection{ 
    height:auto !important;
}

.select2-container, .select2-selection{ 
    height:auto !important;
}

.mycred-et-table-wrapper table.dataTable {
    table-layout: fixed;
    width: 100% !important;
}

.mycred-et-table-wrapper table.dataTable th,
.mycred-et-table-wrapper table.dataTable td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mycred-et-table-wrapper table.dataTable th select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}


.mycred-et-table-wrapper table.dataTable thead>tr>th.sorting:before,
table.dataTable thead>tr>th.sorting_desc:before {
    content: "" !important;
}

.mycred-et-table-wrapper  table.dataTable thead>tr>th.sorting:after,
table.dataTable thead>tr>th.sorting_desc:after {
    content: "" !important;
}

.mycred-et-table-wrapper {
    font-family: inherit;
    font-size: 14px;
    color: #333;
}

/* Improve search + entries area */
.mycred-et-table-wrapper .dataTables_wrapper .dataTables_filter input,
.mycred-et-table-wrapper .dataTables_wrapper .dataTables_length select {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    box-shadow: none;
    outline: none;
}

.mycred-et-table-wrapper .dataTables_wrapper .dataTables_filter input {
    width: 160px;
}

.mycred-et-table-wrapper .dataTables_wrapper .dataTables_length {
    margin-bottom: 10px;
}

.mycred-et-table-wrapper .dataTables_wrapper .dataTables_filter {
    margin-bottom: 10px;
    text-align: right;
}

/* Improve dropdown filters in header */
.mycred-et-table-wrapper table.dataTable th select {
    padding: 5px 8px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    background-color: #fff;
}

/* Table look and feel */
.mycred-et-table-wrapper table.dataTable {
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #ddd;
}

.mycred-et-table-wrapper table.dataTable thead th {
    background-color: #f7f7f7;
    color: #333;
    font-weight: 600;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.mycred-et-table-wrapper table.dataTable td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* Pagination buttons */
.mycred-et-table-wrapper .dataTables_wrapper .dataTables_paginate {
    margin-top: 10px;
    text-align: right;
}

.mycred-et-table-wrapper .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f5f5f5;
    color: #333 !important;
    cursor: pointer;
    font-size: 13px;
}

.mycred-et-table-wrapper .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--bb-primary-button-background-regular);
    color: #fff !important;
    border-color: var(--bb-primary-button-background-regular);
}

/* Info text below table */
.mycred-et-table-wrapper .dataTables_wrapper .dataTables_info {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

.mycred-et-table-wrapper table{
    font-size:12px;
    line-height: 12px;
}


.bb-full-link a.mycred-et-noti-link {
    position: relative;
    z-index: 2;
}

/* Hide duplicates in overlay (the first bb-full-link span) */
li.read-item > span.bb-full-link a.mycred-et-noti-link {
    display: none;
}

li.read-item > span.bb-full-link a.mycred-et-noti-link img {
    display: none !important;
}

li.read-item  .bb-full-link img {
    display: none !important;
}

.po-todo-item{
    margin-bottom: 5px;
}


.po-todo-list ul { list-style: none; padding: 0; margin: 0; }
.po-todo-list li { margin: 6px 0; }
.po-todo-list span.done { text-decoration: line-through; color: #888; }

.po-todo-list {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: #f9f9f9;
}

.po-todo-list h3 {
    margin-top: 0;
    font-size: 18px;
    color: #333;
}

.po-todo-list ul {
    list-style: none;
    padding: 0;
}

.po-todo-list li {
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    margin-bottom: 10px;
    padding: 10px;
    background: #fff;
}

.po-todo-list input[type="checkbox"] {
    margin-right: 10px;
}

.po-todo-list .done {
    text-decoration: line-through;
    color: #888;
}

.po-todo-list li.checked {
    background: #f0f8f0;
    border-color: #28a745;
}

.po-todo-list li.checked input[type="checkbox"] {
    accent-color: #28a745;
}

.po-todo-list .dashicons{
    font-size: 15px;
    vertical-align: middle;
    width: 15px;
    height: 15px;
}

.po-custom-section-divider {
        border-bottom:  1px solid #000;
            margin: 20px 0;
}


.po-status {
    color: #fff;
    padding: 4px 10px;
    border-radius: 5px;
    font-weight: 600;
}

/* Status Colors */
.po-status-pending {
    background-color: #ffb100; /* orange/yellow */
    color: #000;
}

.po-status-accepted {
    background-color: #3498db; /* blue */
}

.po-status-canceled {
    background-color: #e74c3c; /* red */
}

.po-status-completed {
    background-color: #2ecc71; /* green */
}


.po-action-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
      margin-bottom: 20px;
}

.po-action-block {
  flex: 1 1 calc(33.333% - 20px);
  min-width: 280px;
  box-sizing: border-box;
}
.po-action-block:empty {
  display: none;
}

/* Optional: add a nice consistent style */
.po-action-form,
.po-transfer-form {
  background: #f8f8f8;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
}

.margin-bottom-zero {
    margin-bottom:0px
}
.color-red {
    color:red;
}

.todo-progress-bar {
    background: #edf0f4;
    border-radius: 50px;
    height: 20px;
    overflow: hidden;
    margin-bottom: 10px;
}
.todo-progress-fill {
    background: linear-gradient(90deg, #28a745, #20c997);
    height: 100%;
    border-radius: 50px;
    text-align: center;
    color: #fff;
    font-size: 10px;
    line-height: 20px;
    transition: width 0.4s ease;
}

.todo-progress-wrapper {
    padding:20px 0px;
}
.po-todo-checkbox[disabled] + span {
    opacity: 0.5;
    cursor: not-allowed;
}
.po-todo-checkbox[disabled] {
    cursor: not-allowed;
}


/* Mobile view: stack in columns */
@media (max-width: 768px) {
  .po-action-blocks {
    flex-direction: column;
  }
  .po-action-block {
    width: 100%;
  }
}
